/* ==========================================================================
   Reunite — shared stylesheet
   Palette derived from the Reunite logo: teal #17AE9D, charcoal #20282D
   ========================================================================== */

:root {
  --ink:        #20282D;
  --ink-soft:   #4A565C;
  --muted:      #6F7C81;
  --teal:       #17AE9D;
  --teal-deep:  #0E7268;
  --teal-wash:  #E8F6F4;
  --paper:      #FBFBFA;
  --card:       #FFFFFF;
  --line:       #E3E7E6;
  --amber:      #E5A03A;

  --font-head: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1080px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-head {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.1rem, 6.2vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.4rem); }

p { margin: 0 0 1.1em; max-width: 68ch; }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }

:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

img, svg { max-width: 100%; height: auto; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 22px;
}

.wrap--narrow { max-width: 720px; }

section { padding-block: clamp(56px, 9vw, 96px); }

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- Header ---------------------------------------------------- */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,251,250,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px;
}

.brand {
  display: inline-flex; align-items: center;
  text-decoration: none; line-height: 0;
}
.brand img {
  height: 32px; width: auto; display: block;
}
.site-foot .brand img { height: 30px; }

@media (max-width: 480px) {
  .brand img { height: 26px; }
}

.brand__mark {
  width: 22px; height: 22px; flex: none;
  border-radius: 50%;
  border: 3px solid var(--teal);
  border-right-color: transparent;
  transform: rotate(-38deg);
}

.nav { display: flex; align-items: center; gap: 32px; }

.nav__links { display: flex; align-items: center; gap: 28px; }

.nav__links a {
  font-family: var(--font-head);
  font-size: .95rem; font-weight: 500;
  color: var(--ink-soft); text-decoration: none;
  white-space: nowrap;
}
.nav__links a:hover { color: var(--teal-deep); }

/* The header button is an <a>, so state it explicitly — otherwise generic
   link rules can win on specificity and wash the label out. */
.site-head .btn--primary,
.site-head .btn--primary:link,
.site-head .btn--primary:visited { color: #fff; background: var(--teal); }
.site-head .btn--primary:hover,
.site-head .btn--primary:focus-visible { color: #fff; background: var(--teal-deep); }

@media (max-width: 900px) {
  .nav { gap: 22px; }
  .nav__links { gap: 20px; }
}

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ---------- Buttons --------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.btn--primary { background: var(--teal); color: #fff; }
.btn--primary:hover,
.btn--primary:focus-visible { background: var(--teal-deep); color: #fff; }

.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover,
.btn--ghost:focus-visible { border-color: var(--teal); color: var(--teal-deep); background: transparent; }

.btn--onDark { background: #fff; color: var(--ink); }
.btn--onDark:hover { background: var(--teal-wash); color: var(--ink); }

.btn--wide { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: .92rem; }

/* ---------- Hero ------------------------------------------------------ */

.hero { padding-block: clamp(48px, 8vw, 84px) clamp(44px, 7vw, 76px); }

.hero__grid {
  display: grid; gap: clamp(34px, 5vw, 56px);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 880px) {
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
}

.hero h1 { margin-bottom: .35em; }
.hero__lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 46ch; }

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px;
}

.hero__note {
  margin-top: 20px; font-size: .95rem; color: var(--muted);
  font-family: var(--font-head); font-weight: 400;
}

/* Phone / SMS mock — the one piece of orchestrated motion on the page */

.sms {
  background: var(--ink);
  border-radius: 26px;
  padding: 22px 18px 26px;
  box-shadow: 0 24px 50px -28px rgba(32,40,45,.55);
  max-width: 340px; margin-inline: auto; width: 100%;
}

.sms__bar {
  display: flex; align-items: center; gap: 8px;
  color: #8A979D; font-family: var(--font-head);
  font-size: .78rem; margin-bottom: 18px; padding-inline: 6px;
}
.sms__bar span:last-child { margin-left: auto; }

.sms__bubble {
  background: #2E383E; color: #F2F5F4;
  border-radius: 18px 18px 18px 5px;
  padding: 14px 16px;
  font-size: .96rem; line-height: 1.5;
  opacity: 0; transform: translateY(8px);
  animation: bubbleIn .5s ease forwards;
}
.sms__bubble + .sms__bubble { margin-top: 10px; }
.sms__bubble--1 { animation-delay: .35s; }
.sms__bubble--2 { animation-delay: 1.15s; background: var(--teal); color: #06342F; border-radius: 18px 18px 5px 18px; }

.sms__bubble strong { font-family: var(--font-head); font-weight: 600; }

.sms__stamp {
  margin-top: 12px; text-align: center;
  color: #7B888E; font-family: var(--font-head); font-size: .78rem;
  opacity: 0; animation: bubbleIn .5s ease 1.8s forwards;
}

@keyframes bubbleIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .sms__bubble, .sms__stamp { opacity: 1; transform: none; }
}

/* ---------- Generic blocks -------------------------------------------- */

.section--tint { background: var(--teal-wash); }
.section--ink  { background: var(--ink); color: #E8ECEB; }
.section--ink h2 { color: #fff; }
.section--ink p  { color: #BCC6C9; }
.section--ink p a  { color: var(--teal); }

/* Buttons in the dark section must not inherit the link colour above. */
.section--ink .btn--primary,
.section--ink .btn--primary:link,
.section--ink .btn--primary:visited { color: #fff; background: var(--teal); }
.section--ink .btn--primary:hover,
.section--ink .btn--primary:focus-visible { color: #fff; background: var(--teal-deep); }
.section--ink .btn--onDark,
.section--ink .btn--onDark:link,
.section--ink .btn--onDark:visited { color: var(--ink); background: #fff; }
.section--ink .btn--onDark:hover,
.section--ink .btn--onDark:focus-visible { color: var(--ink); background: var(--teal-wash); }

.lead-in { max-width: 56ch; margin-bottom: 40px; }
.lead-in p { color: var(--ink-soft); font-size: 1.08rem; margin-bottom: 0; }

/* Problem list */

.pains {
  display: grid; gap: 26px;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
@media (min-width: 760px) { .pains { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.pain h3 { margin-bottom: .35em; }
.pain p { font-size: 1rem; color: var(--ink-soft); margin-bottom: 0; }

/* Steps — genuinely sequential, so numbered */

.steps { display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(4, 1fr); } }

.step { background: var(--card); padding: 28px 24px 30px; }

.step__num {
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  color: var(--teal-deep);
  display: block; margin-bottom: 14px;
}

.step h3 { font-size: 1.12rem; }
.step p { font-size: .98rem; color: var(--ink-soft); margin-bottom: 0; }

/* Taggable categories */

.tags {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 28px 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) { .tags { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.tag {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 14px;
}

.tag__badge {
  width: 84px; height: 84px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px -12px rgba(32,40,45,.45);
}

.tag svg {
  width: 40px; height: 40px;
  fill: var(--teal);
}

.tag span {
  font-family: var(--font-head); font-weight: 600;
  font-size: .95rem; color: var(--ink);
  line-height: 1.3; max-width: 15ch;
}

/* Item lists */

.items { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 780px) { .items { grid-template-columns: 1fr 1fr; gap: 54px; } }

.items h3 { font-size: 1.05rem; margin-bottom: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; list-style: none; padding: 0; margin: 0; }
.chips li {
  font-family: var(--font-head); font-size: .93rem; font-weight: 500;
  padding: 8px 15px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
}
.chips--later li { background: transparent; border-style: dashed; color: var(--muted); }

/* Split panels — the audience fork */

.fork { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .fork { grid-template-columns: 1fr 1fr; gap: 24px; } }

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 28px 34px;
  display: flex; flex-direction: column;
}
.panel--accent { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }

.panel__price {
  font-family: var(--font-head); font-weight: 700;
  font-size: 2.1rem; color: var(--teal-deep);
  line-height: 1.1; margin: 4px 0 2px;
}
.panel__price small { font-size: .95rem; font-weight: 500; color: var(--muted); display: block; margin-top: 6px; }

.panel ul { list-style: none; padding: 0; margin: 18px 0 26px; }
.panel li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 1rem; color: var(--ink-soft); }
.panel li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--teal);
}
.panel .btn { margin-top: auto; }

/* FAQ */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  font-family: var(--font-head); font-weight: 600; font-size: 1.06rem;
  padding: 20px 40px 20px 0; cursor: pointer; position: relative;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 6px; top: 17px;
  font-size: 1.5rem; font-weight: 400; color: var(--teal-deep);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 6px; font-size: 1rem; color: var(--ink-soft); }
.faq details p:last-child { padding-bottom: 22px; margin-bottom: 0; }

/* Closing CTA */

.closer { text-align: center; }
.closer .wrap { display: flex; flex-direction: column; align-items: center; }
.closer p { margin-inline: auto; }
.closer__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }

/* ---------- Forms ----------------------------------------------------- */

.form-head { padding-block: clamp(40px, 6vw, 64px) 10px; }
.form-head p { color: var(--ink-soft); font-size: 1.1rem; }

.form-wrap { padding-block: 20px clamp(60px, 8vw, 90px); }

.field { margin-bottom: 26px; }

.field > label,
.field > legend,
.field__label {
  display: block;
  font-family: var(--font-head); font-weight: 600; font-size: 1rem;
  margin-bottom: 6px; padding: 0;
}

.field__hint {
  display: block; font-size: .92rem; color: var(--muted);
  margin: -2px 0 10px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body); font-size: 1rem;
  color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px;
}

textarea { min-height: 110px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--teal);
  outline: 2px solid var(--teal-wash);
  outline-offset: 0;
}

fieldset { border: 0; padding: 0; margin: 0 0 26px; }

.choices { display: grid; gap: 8px; }
@media (min-width: 620px) { .choices--two { grid-template-columns: 1fr 1fr; } }

.choice {
  display: flex; align-items: flex-start; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; font-size: 1rem; cursor: pointer;
}
.choice:hover { border-color: var(--teal); }
.choice input { margin: 4px 0 0; accent-color: var(--teal); flex: none; }

.scale { display: flex; flex-wrap: wrap; gap: 8px; }
.scale .choice { flex: 1 1 auto; justify-content: center; min-width: 62px; }

.form-note {
  background: var(--teal-wash); border-radius: var(--radius);
  padding: 18px 20px; font-size: .96rem; color: var(--ink-soft);
  margin-bottom: 30px;
}
.form-note p:last-child { margin-bottom: 0; }

.hp { position: absolute; left: -9999px; }

.form-foot { font-size: .92rem; color: var(--muted); margin-top: 16px; }

/* ---------- Legal page ------------------------------------------------ */

.legal h2 { margin-top: 40px; font-size: 1.35rem; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal__meta { color: var(--muted); font-size: .95rem; }

/* ---------- Footer ---------------------------------------------------- */

.site-foot {
  border-top: 1px solid var(--line);
  padding-block: 40px 48px;
  font-size: .95rem;
}
.site-foot__inner {
  display: flex; flex-wrap: wrap; gap: 18px 34px;
  align-items: baseline; justify-content: space-between;
}
.site-foot a { color: var(--ink-soft); text-decoration: none; }
.site-foot a:hover { color: var(--teal-deep); text-decoration: underline; }
.site-foot__links { display: flex; flex-wrap: wrap; gap: 22px; }
.site-foot__legal { color: var(--muted); width: 100%; margin: 0; font-size: .88rem; }
