/* Wonder Solutions — shared styles */

:root {
  --ink: #14202e;
  --ink-soft: #46586a;
  --paper: #f4f6f5;
  --card: #ffffff;
  --rule: #dbe2e0;
  --green: #1f6f5c;
  --green-deep: #14503f;
  --amber: #a8762c;
  --max: 46rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- masthead ---------- */

.masthead {
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}

.masthead .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-decoration: none;
}

.masthead nav {
  display: flex;
  gap: 1.4rem;
  font-size: 0.9rem;
}

.masthead nav a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.masthead nav a:hover,
.masthead nav a:focus-visible { color: var(--green); border-bottom-color: var(--green); }

/* ---------- type ---------- */

h1 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2rem, 5.5vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.85rem;
}

h2 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
  margin: 2.6rem 0 0.7rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.4rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 0 0 0.9rem;
}

.lede { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.5rem; }

.page { padding: 3.2rem 0 4rem; }

a { color: var(--green-deep); }

/* ---------- signature: message samples ---------- */

.samples {
  margin: 2rem 0 0;
  padding: 1.6rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 4px;
}

.samples p.samples-label {
  margin: 0 0 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.bubble {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 14px 14px 14px 3px;
  padding: 0.75rem 1rem;
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  max-width: 33rem;
}

.bubble:last-child { margin-bottom: 0; }

.bubble .from {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.25rem;
  font-weight: 600;
}

/* ---------- lists / cards ---------- */

.facts {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}

.facts li {
  padding: 0.7rem 0;
  border-top: 1px solid var(--rule);
  display: flex;
  gap: 1rem;
  align-items: baseline;
}

.facts li span:first-child {
  flex: 0 0 8.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.notice {
  background: var(--card);
  border-left: 3px solid var(--green);
  padding: 1rem 1.2rem;
  margin: 1.6rem 0;
  font-size: 0.97rem;
}

/* ---------- form ---------- */

.form { margin-top: 2rem; }

.field { margin-bottom: 1.25rem; }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.field input[type="text"],
.field input[type="tel"],
.field select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: var(--green);
}

.consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1rem 1.1rem;
  margin-bottom: 1.25rem;
  font-size: 0.93rem;
  line-height: 1.55;
}

.consent input { margin-top: 0.3rem; flex-shrink: 0; width: 1.05rem; height: 1.05rem; }

button.go {
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  background: var(--green);
  border: none;
  border-radius: 3px;
  padding: 0.8rem 1.7rem;
  cursor: pointer;
}

button.go:hover { background: var(--green-deep); }
button.go:disabled { background: var(--ink-soft); cursor: not-allowed; }
button.go:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.result { margin-top: 1.2rem; font-size: 0.95rem; }
.result.ok { color: var(--green-deep); font-weight: 600; }
.result.bad { color: #9a2f2f; font-weight: 600; }

.fineprint { font-size: 0.85rem; color: var(--ink-soft); margin-top: 1.4rem; }

/* ---------- legal pages ---------- */

.legal { font-size: 1rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }
.legal li { margin-bottom: 0.4rem; }
.updated { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 2rem; }

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 2rem 0 3rem;
  font-size: 0.87rem;
  color: var(--ink-soft);
}

.foot a { color: var(--ink-soft); }
.foot .legalname { margin-top: 0.6rem; }

@media (max-width: 34rem) {
  .facts li { flex-direction: column; gap: 0.1rem; }
  .facts li span:first-child { flex: none; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
