/* Offmind landing — production styles. Light + dark, mobile-first, accessible. */

:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #f0f4f2;
  --ink: #14201e;
  --muted: #52615b;
  --faint: #8a9791;
  --line: #e2e8e5;
  --line-strong: #ccd6d1;
  --accent: #0c8577;
  --accent-ink: #06564b;
  --accent-soft: #e2f1ee;
  --signal: #b5661b;
  --signal-soft: #f6e9d9;
  --go: #3a6ea5;
  --pay: #7a5bb0;
  --shadow-sm: 0 1px 2px rgba(20, 32, 30, .06), 0 6px 20px rgba(20, 32, 30, .05);
  --shadow-lg: 0 24px 60px rgba(20, 32, 30, .12);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1211;
    --surface: #121a18;
    --surface-2: #0f1716;
    --ink: #e9f0ed;
    --muted: #a6b4af;
    --faint: #6e7c77;
    --line: #232e2b;
    --line-strong: #31403b;
    --accent: #2bb6a5;
    --accent-ink: #86ddd2;
    --accent-soft: #113230;
    --signal: #d9903f;
    --signal-soft: #2a2013;
    --go: #7ba7d9;
    --pay: #b79ae0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .28);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
a { color: var(--accent-ink); }
img, svg { max-width: 100%; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- shared ---- */
.eyebrow {
  font-family: var(--font-body); font-weight: 600; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink);
}
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 40px); }
.section h2 { font-size: clamp(28px, 4.6vw, 44px); font-weight: 800; margin-top: 14px; max-width: 20ch; }
.section-lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); margin-top: 18px; max-width: 60ch; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px; text-decoration: none;
  background: var(--accent); color: #fff; border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-lg { font-size: 17px; padding: 15px 28px; }
.btn-sm { padding: 9px 16px; font-size: 15px; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent-ink); }

/* ---- header ---- */
.site-header {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px clamp(20px, 5vw, 40px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark { color: var(--accent); display: block; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; }

/* ---- hero ---- */
.hero {
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(24px, 5vw, 56px) clamp(20px, 5vw, 40px) clamp(48px, 8vw, 88px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); font-weight: 800; margin-top: 18px; }
.hero .lead { font-size: clamp(19px, 2.4vw, 23px); color: var(--muted); margin-top: 22px; max-width: 34ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0;
  font-size: 14px; color: var(--muted); font-weight: 500;
}
.trust-strip li { position: relative; padding-left: 20px; }
.trust-strip li::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; transform: translateY(-50%);
  background: var(--accent); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- hero phone mock ---- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: min(300px, 82vw); aspect-ratio: 9 / 18; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 34px; padding: 14px;
  box-shadow: var(--shadow-lg); transform: rotate(1.5deg);
}
.phone-screen {
  height: 100%; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: hidden;
}
.closure-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px;
  box-shadow: var(--shadow-sm);
}
.cc-title { font-size: 13px; color: var(--muted); margin-top: 8px; }
.cc-value { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin-top: 2px; letter-spacing: -.01em; }
.cc-action {
  display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 600;
  color: var(--accent-ink); border: 1px solid var(--accent); border-radius: 999px; padding: 4px 11px;
}
.card-attend .cc-action { color: var(--signal); border-color: var(--signal); }

/* ---- tags ---- */
.tag {
  display: inline-block; font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .09em; padding: 3px 9px; border-radius: 6px;
  color: var(--accent-ink); background: var(--accent-soft);
}
.tag-attend { color: var(--signal); background: var(--signal-soft); }
.tag-go { color: var(--go); background: color-mix(in srgb, var(--go) 15%, transparent); }
.tag-pay { color: var(--pay); background: color-mix(in srgb, var(--pay) 15%, transparent); }

/* ---- problem ---- */
.problem h2 { max-width: 16ch; }

/* ---- steps ---- */
.steps {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step;
}
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step-n {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink);
  font-family: var(--font-display); font-weight: 800; font-size: 16px;
}
.step h3 { font-size: 19px; font-weight: 700; margin-top: 14px; }
.step p { color: var(--muted); font-size: 16px; margin-top: 6px; }

/* ---- intents ---- */
.intents { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 22px; }
.intent { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.intent h3 { font-size: 18px; font-weight: 700; margin-top: 12px; }
.intent p { color: var(--muted); font-size: 16px; margin-top: 6px; }

/* ---- why / features ---- */
.why h2 { max-width: 24ch; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; border-top: 3px solid var(--accent);
}
.feature:nth-child(2) { border-top-color: var(--signal); }
.feature:nth-child(3) { border-top-color: var(--go); }
.feature h3 { font-size: 20px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 16px; margin-top: 10px; }

/* ---- waitlist ---- */
.waitlist { }
.waitlist-inner {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px;
  padding: clamp(28px, 5vw, 52px); box-shadow: var(--shadow-lg); text-align: center;
}
.waitlist-inner h2 { margin-left: auto; margin-right: auto; }
.waitlist-inner .section-lead { margin-left: auto; margin-right: auto; }
.signup { margin-top: 28px; }
.hidden-field { position: absolute; left: -9999px; }
.field { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.field input[type="email"] {
  flex: 1 1 280px; max-width: 360px; font: inherit; padding: 14px 16px;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 999px;
}
.field input[type="email"]::placeholder { color: var(--faint); }
.field-note { margin-top: 12px; font-size: 14px; color: var(--faint); }
.signup .cf-turnstile { margin: 16px auto 0; display: flex; justify-content: center; }

/* ---- faq ---- */
.faq h2 { max-width: none; }
.faq-list { margin-top: 32px; border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400;
  color: var(--accent); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "\2013"; }
.faq details p { color: var(--muted); font-size: 17px; padding: 0 40px 22px 0; margin: 0; }

/* ---- footer ---- */
.site-footer {
  max-width: var(--maxw); margin: 0 auto; padding: 40px clamp(20px, 5vw, 40px) 56px;
  border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 16px;
  align-items: baseline; justify-content: space-between;
}
.footer-brand { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); font-size: 15px; }
.footer-contact { font-size: 14px; }
.footer-contact a { color: var(--accent-ink); }
.copyright { color: var(--faint); font-size: 13px; }

/* ---- reveal on scroll. Only hides when scripting is enabled, so no-JS users see everything.
   No inline script needed, which keeps the Content-Security-Policy strict. ---- */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---- footer nav + form disclosure ---- */
.footer-nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-nav a:hover { color: var(--accent-ink); }
.field-note a { color: var(--accent-ink); }

/* ---- cookie consent banner ---- */
.consent {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  max-width: 540px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 18px;
  box-shadow: var(--shadow-lg); font-size: 14px; color: var(--muted);
}
.consent p { margin: 0 0 12px; }
.consent a { color: var(--accent-ink); }
.consent-actions { display: flex; gap: 10px; }
.legal { max-width: 720px; margin: 0 auto; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; }
.legal h2 { font-size: 22px; font-weight: 700; margin-top: 34px; }
.legal p, .legal li { color: var(--muted); font-size: 17px; margin-top: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent-ink); }
.legal .updated { color: var(--faint); font-size: 14px; margin-top: 8px; }

/* ---- responsive ---- */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero .lead, .trust-strip { max-width: none; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero h1 { font-size: 38px; }
  .hero .lead { font-size: 18px; }
  .hero-cta { margin-top: 22px; }
  .intents { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
