/* =========================================================================
   Marling — landing page styles
   Mobile-first. Calm, infrastructural. Warm off-white, deep slate, muted teal.
   No web fonts (system stack only) so nothing phones home and the page is fast.
   ========================================================================= */

:root {
  /* Palette */
  --ink:        #1b2a33;  /* primary text / deep slate */
  --ink-soft:   #3a4b54;
  --muted:      #5d6b72;  /* secondary text */
  --line:       #e3ded5;  /* hairline borders on the warm bg */
  --bg:         #f7f5f1;  /* warm off-white */
  --surface:    #fffefb;  /* cards / raised surfaces */
  --accent:     #1f6f78;  /* muted teal */
  --accent-ink: #18585f;  /* darker teal for hover/contrast */
  --accent-bg:  #eef3f2;  /* faint teal wash */
  --error:      #9a3b34;

  --maxw: 1040px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(27, 42, 51, .04), 0 8px 24px rgba(27, 42, 51, .06);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial,
          "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

/* ---- Reset-ish --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

/* ---- Layout helpers ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.container.narrow { max-width: 720px; }

.section { padding-block: clamp(48px, 9vw, 88px); }

/* Alternating section tone for gentle rhythm */
.solution { background: var(--surface); border-block: 1px solid var(--line); }
.second-capture { background: var(--accent-bg); border-top: 1px solid var(--line); }

.section-heading {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-lead {
  color: var(--ink-soft);
  font-size: 1.075rem;
  max-width: 60ch;
}

/* ---- Accessibility utilities ------------------------------------------ */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -48px;
  background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 8px;
  z-index: 100; transition: top .15s ease;
}
.skip-link:focus { top: 12px; text-decoration: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Header / wordmark ------------------------------------------------- */
.site-header { padding-block: 18px; }
.header-inner { display: flex; align-items: center; }
.wordmark {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 650; font-size: 1.2rem;
  letter-spacing: -0.01em;
}
.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark .knot { color: var(--accent); flex: none; }
.wordmark-sm { font-size: 1.05rem; }

/* ---- Hero -------------------------------------------------------------- */
.hero { padding-block: clamp(28px, 6vw, 56px) clamp(44px, 9vw, 80px); }
.hero-inner { max-width: 760px; }
.hero-headline {
  font-size: clamp(2rem, 7.5vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.hero-subhead {
  font-size: clamp(1.075rem, 3vw, 1.3rem);
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 28px;
}

/* ---- Sign-up form ------------------------------------------------------ */
.form-wrap { max-width: 520px; }
.signup-form[hidden] { display: none; }

.field-row { display: flex; flex-direction: column; gap: 10px; }
.email-input {
  flex: 1;
  width: 100%;
  font: inherit;
  padding: 14px 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(27,42,51,.03);
}
.email-input::placeholder { color: #9aa4a8; }
.email-input:focus-visible { border-color: var(--accent); outline-offset: 0; }
.email-input[aria-invalid="true"] { border-color: var(--error); }

.btn {
  font: inherit; font-weight: 600;
  padding: 14px 22px;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }

.form-note { margin-top: 10px; font-size: .9rem; color: var(--muted); }

.form-error {
  margin-top: 10px;
  color: var(--error);
  font-size: .92rem;
  font-weight: 500;
}
.form-error[hidden] { display: none; }
.form-error-static { max-width: 520px; }

/* Honeypot: kept in the DOM (so bots fill it) but off-screen for humans.
   Not display:none — some bots skip hidden fields; this stays "visible". */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* ---- Confirmation state ------------------------------------------------ */
.confirm {
  display: flex; gap: 12px; align-items: flex-start;
  max-width: 520px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.confirm[hidden] { display: none; }
.confirm-mark { color: var(--accent); flex: none; margin-top: 2px; }
.confirm-heading { font-weight: 650; margin-bottom: 2px; }
.confirm-body { color: var(--ink-soft); font-size: .98rem; }

/* ---- Problem cards ----------------------------------------------------- */
.cards { display: grid; gap: 16px; margin-top: 28px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card-title { font-size: 1.075rem; margin-bottom: 8px; }
.card-body { color: var(--muted); font-size: .98rem; }

/* ---- Solution benefits ------------------------------------------------- */
.benefits {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; gap: 22px;
}
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit-mark {
  flex: none; margin-top: 2px;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--accent);
  background: var(--accent-bg);
  border-radius: 9px;
}
.benefit-label { font-size: 1.05rem; margin-bottom: 3px; }
.benefit-body { color: var(--muted); font-size: .98rem; max-width: 46ch; }

/* ---- Footer ------------------------------------------------------------ */
.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
}
.footer-inner { display: grid; gap: 10px; }
.footer-privacy { color: var(--muted); font-size: .92rem; max-width: 60ch; }
.footer-meta { color: var(--muted); font-size: .9rem; }

/* =========================================================================
   Larger viewports — progressive enhancement up from the mobile base.
   ========================================================================= */
@media (min-width: 600px) {
  .field-row { flex-direction: row; align-items: stretch; }
  .email-input { width: auto; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 760px) {
  .benefits { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
  .footer-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 32px;
  }
  .footer-privacy { grid-column: 1 / -1; order: 3; }
}

/* ---- Motion / theme preferences --------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================================
   Revised landing page — supplementary styles (header CTA, hero eyebrow,
   pricing, founding offer, trust line). Variable names reconciled to this
   stylesheet's actual tokens: --muted, --line, --ink, --accent-bg.
   ============================================================================ */

/* ---- Header: persistent CTA button, right-aligned ---- */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-cta { white-space: nowrap; }

/* Button size variants */
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.9rem; }
.btn-lg { padding: 0.95rem 1.6rem; font-size: 1.05rem; }

/* On very narrow screens the header CTA crowds the wordmark — drop it
   (the hero form is immediately below anyway). */
@media (max-width: 30rem) {
  .header-cta { display: none; }
}

/* ---- Hero additions ---- */
.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
/* Subtle emphasis without italics — a weight bump reads cleaner on a headline */
.hero-headline em,
.hero-subhead em {
  font-style: normal;
  font-weight: 700;
}
.hero-trust {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---- Strong form note (reward + scarcity under the button) ---- */
.form-note-strong {
  font-weight: 600;
  color: var(--accent);
}

/* ---- Pricing section ---- */
.pricing .section-lead { margin-bottom: 2rem; }
.price-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 48rem) {
  .price-cards { grid-template-columns: 1fr; }
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.price-card-feature {
  /* the middle (mental-health) card gets a subtle accent highlight */
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 var(--accent), var(--shadow);
}
.price-vertical {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--ink);
}
.price-amount {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 0.75rem;
  color: var(--ink);
}
.price-from {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-right: 0.35rem;
  vertical-align: middle;
}
.price-per {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
}
.price-detail {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/* ---- Founding offer callout ---- */
.founding {
  text-align: center;
  background: var(--accent-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.founding-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.founding-headline {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  max-width: 36ch;
  margin: 0 auto 0.75rem;
  color: var(--ink);
}
.founding-body {
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto 1.4rem;
  color: var(--muted);
}
.founding-note {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---- Footer disclaimer line ---- */
.footer-disclaimer {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
  margin: 0.5rem 0 0;
}
