/* MARKER marketing site. Colors match the app (src/constants/theme.ts):
   one teal accent on a soft off-white page, deep layered grays in dark mode. */
:root {
  --text: #121615;
  --text-2: #5d6563;
  --bg: #f4f5f3;
  --card: #ffffff;
  --selected: #e4e7e4;
  --accent: #0f5e55;
  --accent-hover: #0c4d46;
  --on-accent: #ffffff;
  --accent-soft: #e2efec;
  --border: #e6e9e6;
  --warning: #c2410c;
  --shadow: 0 1px 6px rgba(18, 22, 21, 0.05);
  --phone-shadow: 0 30px 60px -20px rgba(15, 50, 45, 0.35), 0 8px 20px -8px rgba(15, 50, 45, 0.2);
  --radius: 18px;
  --radius-sm: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --text: #f1f4f3;
    --text-2: #9aa4a1;
    --bg: #0a0c0c;
    --card: #161a19;
    --selected: #262c2b;
    --accent: #4fb3a5;
    --accent-hover: #63c4b6;
    --on-accent: #00201c;
    --accent-soft: #14302c;
    --border: #222827;
    --shadow: none;
    --phone-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); font-weight: 800; max-width: 22ch; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
.accent { color: var(--accent); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.center h2 { margin-inline: auto; }
.sr-only, .hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 20; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; font-weight: 700; color: var(--accent); margin-bottom: 0.75em; }
.lede, .section-lede { font-size: 1.15rem; color: var(--text-2); max-width: 56ch; }
.fine { font-size: 0.85rem; color: var(--text-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--on-accent); border: 0; border-radius: var(--radius-sm);
  padding: 15px 22px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: scale(0.98); opacity: 0.9; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-small { padding: 9px 16px; font-size: 0.95rem; border-radius: 12px; }
.btn-ghost { background: var(--accent-soft); color: var(--accent); }
.btn-ghost:hover { background: var(--selected); }
.link-btn { background: none; border: 0; color: var(--text-2); font: inherit; cursor: pointer; padding: 8px 0; text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: inline-flex; flex-direction: column; gap: 3px; font-weight: 800; font-size: 1.2rem; letter-spacing: 0.02em; color: var(--text); text-decoration: none; }
.brand-bar { width: 18px; height: 3px; border-radius: 2px; background: var(--accent); }
.nav-links { display: none; gap: 28px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 760px) { .nav-links { display: flex; } }

/* Phones */
.phone {
  border-radius: 38px; padding: 9px; background: #101413;
  box-shadow: var(--phone-shadow);
}
.phone img { border-radius: 30px; width: 100%; }
.phone-large { width: min(320px, 82vw); margin: 0 auto; }

/* Hero */
.hero { padding: 48px 0 64px; overflow: hidden; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 96px; } .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero-start { margin-top: 28px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); max-width: 540px; }
.hero-q { font-weight: 700; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  font: inherit; font-weight: 600; font-size: 0.98rem; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.chip:active { transform: scale(0.97); }
.hero-start .fine { margin: 0; }
.hero-phones { position: relative; height: 560px; max-width: 440px; margin: 0 auto; width: 100%; }
.hero-phones .phone { position: absolute; width: 250px; }
.phone-front { right: 0; top: 0; animation: rise 0.8s ease-out both; }
.phone-back { left: 0; top: 70px; transform: rotate(-5deg); opacity: 0.95; animation: rise 0.8s 0.15s ease-out both; }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
@media (max-width: 520px) {
  .hero-phones { height: 440px; }
  .hero-phones .phone { width: 200px; }
}

/* Problem */
.problem { padding: 72px 0; background: var(--card); border-block: 1px solid var(--border); }
.stats { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; gap: 16px; align-items: baseline; padding: 20px; border-radius: var(--radius); background: var(--bg); }
.stat-num { font-size: 2.6rem; font-weight: 800; color: var(--accent); line-height: 1; min-width: 1.2em; }
.stat-label { color: var(--text-2); }

/* Tour */
.tour { padding: 88px 0; }
.tour-grid { display: grid; gap: 40px; margin-top: 36px; align-items: start; }
@media (min-width: 900px) { .tour-grid { grid-template-columns: 1fr 360px; } .tour-phone { position: sticky; top: 88px; } }
.tabs { display: grid; gap: 10px; }
.tabs [role="tab"] {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius); padding: 16px 18px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.tabs [role="tab"]:hover { background: var(--card); }
.tabs [role="tab"][aria-selected="true"] { background: var(--card); border-color: var(--border); box-shadow: var(--shadow); }
.tabs [role="tab"][aria-selected="true"] .tab-title { color: var(--accent); }
.tab-title { display: block; font-weight: 700; font-size: 1.08rem; }
.tab-text { display: none; color: var(--text-2); margin-top: 6px; }
.tabs [role="tab"][aria-selected="true"] .tab-text { display: block; }
.tour-phone img { transition: opacity 0.2s ease; }
.tour-phone img.swap { opacity: 0; }
.caption { text-align: center; font-size: 0.85rem; color: var(--text-2); margin-top: 16px; }

/* Build-your-week quiz */
.build { padding: 88px 0; background: var(--accent-soft); }
.build-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .build-grid { grid-template-columns: 1fr 360px; } }
.quiz { background: var(--card); border-radius: 24px; padding: 28px 22px; box-shadow: var(--shadow); border: 1px solid var(--border); min-height: 470px; display: flex; flex-direction: column; }
@media (min-width: 640px) { .quiz { padding: 36px; } }
.progress { height: 6px; border-radius: 3px; background: var(--selected); overflow: hidden; margin-bottom: 10px; }
.progress span { display: block; height: 100%; width: 20%; background: var(--accent); border-radius: 3px; transition: width 0.35s ease; }
.step-count { font-size: 0.85rem; color: var(--text-2); margin-bottom: 18px; }
.step { border: 0; padding: 0; margin: 0; animation: fade 0.3s ease both; }
@keyframes fade { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.step legend, .step h3 { font-size: 1.55rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px; padding: 0; line-height: 1.2; }
.options { display: grid; gap: 10px; }
.options-row { grid-template-columns: repeat(5, 1fr); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; }
.option span {
  display: block; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--card); transition: background 0.15s ease, border-color 0.15s ease;
}
.option strong { display: block; }
.option small { display: block; color: var(--text-2); font-size: 0.88rem; }
.option:hover span { border-color: var(--accent); }
.option input:checked + span { background: var(--accent-soft); border-color: var(--accent); }
.option input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.option-num span { text-align: center; padding: 16px 0; font-size: 1.3rem; }
.hint { color: var(--text-2); font-size: 0.92rem; margin-top: 14px; }
.quiz-nav { margin-top: auto; padding-top: 12px; }
.if-then { font-size: 1.1rem; font-weight: 600; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; }

/* Signup form */
.signup { display: grid; gap: 10px; margin: 18px 0 10px; }
.signup input[type="email"] {
  font: inherit; padding: 15px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--bg); color: var(--text); min-width: 0;
}
.signup input[type="email"]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.signup input[aria-invalid="true"] { border-color: var(--warning); }
@media (min-width: 560px) { .signup { grid-template-columns: 1fr auto; } .form-msg { grid-column: 1 / -1; } }
.form-msg { margin: 0; font-size: 0.92rem; min-height: 1.4em; }
.form-msg.error { color: var(--warning); }
.signup-inline { max-width: 520px; margin-inline: auto; }

.done { text-align: left; }
.done-check { width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 1.6rem; font-weight: 800; margin-bottom: 16px; animation: pop 0.4s ease-out both; }
@keyframes pop { 0% { scale: 0.4; opacity: 0; } 70% { scale: 1.1; } 100% { scale: 1; opacity: 1; } }

/* Live preview phone, drawn in the app's style */
.phone-live { background: #101413; }
.live { background: var(--bg); border-radius: 30px; min-height: 560px; padding: 26px 18px; }
.live-top { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
.live-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 4px; }
.live-sub { color: var(--text-2); font-size: 0.9rem; margin-bottom: 16px; }
.live-days { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.live-days li { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 11px 14px; animation: fade 0.3s ease both; }
.live-days li.ghost { height: 58px; background: var(--selected); border-color: transparent; opacity: 0.6; }
.live-days li.rest { background: transparent; border-style: dashed; color: var(--text-2); padding: 7px 14px; font-size: 0.85rem; }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.day-name { font-weight: 700; font-size: 0.95rem; }
.day-type { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.day-detail { font-size: 0.8rem; color: var(--text-2); }
.live-note { font-size: 0.8rem; color: var(--text-2); margin: 14px 0 0; }

/* Trust */
.trust { padding: 88px 0; }
.cards { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 700px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--text-2); margin: 0; }
.founder { margin: 48px 0 0; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); max-width: 760px; }
.founder blockquote { margin: 0; font-size: 1.2rem; font-weight: 500; }
.founder figcaption { color: var(--text-2); font-size: 0.95rem; }

/* FAQ */
.faq { padding: 72px 0; background: var(--card); border-block: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { color: var(--text-2); margin: 12px 0 0; }

/* Privacy policy and other plain text pages */
.legal { padding-top: 56px; padding-bottom: 80px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; max-width: none; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 0.4em; }

/* Final + footer */
.final { padding: 96px 0; }
.footer { padding: 40px 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; gap: 8px; }
.footer p { margin: 0; color: var(--text-2); }
