/* Questmio website – same design system as the app (DS4: neutral surfaces, one persimmon accent, no green).
   No external fonts, scripts or trackers. Text pairs >= 4.5:1 in light and dark (web/tests/palette.test.mjs). */
:root {
  color-scheme: light dark;
  --bg: #F4F4F1; --surface: #FFFFFF; --surface-2: #EEEEEA; --line: #E4E3DE; --outline: #85837C;
  --ink: #1C1B19; --ink-2: #45433E; --muted: #625F58;
  --primary: #E0592A; --primary-strong: #B9420F; --primary-hover: #9E370B; --primary-soft: #FCEBE2; --on-primary: #FFFFFF;
  --accent: #E2A03A; --accent-soft: #FBF1DD; --accent-ink: #855407;
  --success: #2F5E94; --success-soft: #E5EDF7; --danger: #B3204A; --danger-soft: #FBE6EC; --focus: #B9420F;
  --band: #1C1B19; --on-band: #F4F4F1; --on-band-2: #C9C7C0;
  --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(28, 27, 25, .06);
  --shadow-2: 0 12px 32px rgba(28, 27, 25, .12), 0 2px 6px rgba(28, 27, 25, .05);
  --shadow-3: 0 40px 80px rgba(28, 27, 25, .22), 0 12px 24px rgba(28, 27, 25, .10);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211; --surface: #1C1C1A; --surface-2: #262623; --line: #2F2E2B; --outline: #8C8A82;
    --ink: #F3F2EE; --ink-2: #D2D0C9; --muted: #A9A79F;
    --primary: #FF7B4A; --primary-strong: #FF9466; --primary-hover: #FFAD8A; --primary-soft: #3A2117; --on-primary: #1E0D06;
    --accent: #F2B65A; --accent-soft: #382A12; --accent-ink: #F6C97F;
    --success: #92B9EE; --success-soft: #1A2738; --danger: #FF92AE; --danger-soft: #3B1823; --focus: #FFA27C;
    --band: #F3F2EE; --on-band: #121211; --on-band-2: #45433E;
    --shadow-1: none; --shadow-2: 0 14px 40px rgba(0, 0, 0, .5); --shadow-3: 0 40px 90px rgba(0, 0, 0, .6);
  }
}

/* ------------------------------------------------------------------ base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--primary-strong); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.025em; font-weight: 750; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.125rem; letter-spacing: -.012em; }
p { margin: 0 0 1em; color: var(--ink-2); }
img { max-width: 100%; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i.sm { width: 18px; height: 18px; } .i.xs { width: 16px; height: 16px; stroke-width: 2.2; }
[hidden] { display: none !important; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 12px; border: 0;
  background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: color-mix(in srgb, var(--surface-2) 70%, var(--line)); }
.btn.primary { background: var(--primary-strong); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.lg { min-height: 56px; padding: 14px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn.sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; border-radius: 10px; }
.btn[aria-disabled="true"] { opacity: .75; cursor: default; }

/* ------------------------------------------------------------------ header */
header.site { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
header.site .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: var(--shadow-1); }
.main-nav { display: flex; gap: 2px; }
.main-nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; }
.main-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav, .head-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.lang, .signin { padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.lang:hover, .signin:hover { background: var(--surface-2); color: var(--ink); }

/* ------------------------------------------------------------------ hero */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 650; font-size: .875rem; }
.hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); line-height: 1.04; letter-spacing: -.04em; margin: 22px 0 20px; }
.hero h1 em { font-style: normal; color: var(--primary-strong); }
.hero .lead { font-size: clamp(1.075rem, 1.7vw, 1.25rem); line-height: 1.55; max-width: 32em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.checks { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--ink-2); font-size: .95rem; font-weight: 550; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .i { color: var(--primary-strong); }
.device { position: relative; z-index: 0; justify-self: center; width: min(330px, 78vw); }
.phone { border-radius: 48px; padding: 10px; background: #1C1B19; box-shadow: var(--shadow-3); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 844; border-radius: 38px; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-2); font-weight: 650; font-size: .9rem; white-space: nowrap; }
.float .i { color: var(--primary-strong); }
.float.toast { left: -64px; bottom: 112px; background: #1F1E1B; color: #FFFFFF; }
.float.toast .i { color: #FFB894; }
.float.reward { right: -56px; top: 120px; }
.float .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); }
.float small { display: block; color: var(--muted); font-weight: 500; font-size: .8rem; }
.glow { position: absolute; inset: 8% -18% 0; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 22%, transparent), transparent); filter: blur(10px); }

/* ------------------------------------------------------------------ sections */
.section { padding: 96px 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.125rem; margin: 0; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--primary-strong); font-weight: 700; font-size: .95rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.feature .ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-strong); }
.feature p { margin: 0; }

.gallery { display: flex; gap: 28px; justify-content: center; overflow-x: auto; padding: 12px 20px 28px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 236px; margin: 0; text-align: center; scroll-snap-align: center; }
.shot .phone { padding: 7px; border-radius: 36px; box-shadow: var(--shadow-2); }
.shot .phone img { border-radius: 30px; }
.shot figcaption { margin-top: 18px; font-weight: 700; color: var(--ink); }
.shot figcaption span { display: block; color: var(--muted); font-weight: 450; font-size: .925rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.step { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step .num { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 50%; background: var(--ink); color: var(--bg); font-weight: 800; }
.step p { margin: 0; }

.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 64px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); }
.privacy h2 { margin-bottom: 16px; }
.privacy p { font-size: 1.075rem; margin: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; align-items: flex-start; gap: 14px; color: var(--ink); font-weight: 550; }
.ticks .ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-strong); }
.ticks span { padding-top: 6px; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 920px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; gap: 22px; padding: 36px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.plan.featured { border: 2px solid var(--primary-strong); box-shadow: var(--shadow-2); }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 1.3rem; margin: 0; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-size: .8rem; font-weight: 700; white-space: nowrap; }
.price { margin: 0; color: var(--ink); font-size: 2.75rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price small { margin-left: 4px; color: var(--muted); font-size: 1rem; font-weight: 500; letter-spacing: 0; }
.price-sub { margin: -12px 0 0; color: var(--muted); font-size: .95rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); }
.plan li .i { margin-top: 3px; color: var(--primary-strong); }
.plan .btn, .plan .plan-note { margin-top: auto; }
.plan-note { margin-bottom: 0; color: var(--muted); font-size: .9rem; }
.fine { margin: 20px auto 0; max-width: 920px; color: var(--muted); font-size: .875rem; text-align: center; }

.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none; font-weight: 650; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(225deg) translate(-2px, -2px); }
.faq details p { margin: 0; padding: 0 22px 20px; }

.cta-band { padding: 72px 32px; border-radius: var(--r-xl); background: var(--band); text-align: center; }
.cta-band h2 { color: var(--on-band); margin-bottom: 12px; }
.cta-band p { color: var(--on-band-2); font-size: 1.1rem; margin: 0 0 28px; }
.cta-band .fine { color: var(--on-band-2); margin-top: 16px; }

/* ------------------------------------------------------------------ footer */
footer.site { margin-top: 96px; padding: 56px 0 40px; border-top: 1px solid var(--line); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { margin: 0 0 12px; font-size: .9rem; letter-spacing: 0; color: var(--ink); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot-grid a { color: var(--ink-2); text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-brand p { margin: 12px 0 0; max-width: 28em; color: var(--muted); }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.foot-bottom a { color: var(--ink-2); }
/* compact footer of the functional pages */
footer.site > .wrap:not(.foot) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; color: var(--muted); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer.site nav a { color: var(--ink-2); }

/* ------------------------------------------------------------------ functional pages (verify, reset, delete, legal, help) */
.page { padding: 40px 0 72px; }
.panel { width: min(520px, 100%); margin: 0 auto; padding: 32px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.panel h1 { font-size: 1.6rem; }
.field { display: grid; gap: 6px; margin: 0 0 16px; font-weight: 600; font-size: .95rem; }
.field input { font: inherit; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--outline); background: var(--bg); color: var(--ink); }
.msg { margin: 0 0 16px; padding: 12px 14px; border-radius: 12px; background: var(--success-soft); color: var(--ink); }
.msg.error { background: var(--danger-soft); color: var(--danger); }
.note { color: var(--muted); font-size: .92rem; }
.legal { width: min(780px, 100%); margin: 0 auto; }
.legal h1 { font-size: 2rem; } .legal h2 { font-size: 1.3rem; margin-top: 1.6em; } .legal h3 { font-size: 1.05rem; margin-top: 1.2em; }
.legal li { color: var(--ink-2); margin: .3em 0; }
.draft { margin-bottom: 24px; padding: 12px 16px; border-radius: 14px; border: 2px dashed var(--accent); background: var(--accent-soft); color: var(--ink); }
.placeholder { padding: 0 4px; border-radius: 4px; background: #FFF3C4; color: #5A4300; }
@media (prefers-color-scheme: dark) { .placeholder { background: #4A3D10; color: #FFE9A6; } }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .cta, .checks { justify-content: center; }
  .float.toast { left: -28px; } .float.reward { right: -24px; }
  .features { grid-template-columns: 1fr 1fr; }
  .privacy { grid-template-columns: 1fr; gap: 32px; padding: 40px; }
  .gallery { justify-content: flex-start; }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .wrap { width: min(1120px, 100% - 32px); }
  .hero { padding: 40px 0 64px; }
  .section { padding: 72px 0; }
  .features, .steps, .pricing { grid-template-columns: 1fr; }
  .plan { padding: 28px; }
  .privacy { padding: 28px; border-radius: var(--r-lg); }
  .cta-band { padding: 56px 22px; border-radius: var(--r-lg); }
  .float { font-size: .82rem; padding: 10px 12px; }
  .float.toast { left: -12px; bottom: 90px; } .float.reward { right: -12px; top: 90px; }
  .head-actions .lang { display: none; }
}
@media (max-width: 420px) {
  .head-actions .btn { display: none; }
  .btn.lg { width: 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background .15s ease, transform .12s ease; }
  .btn:active { transform: scale(.98); }
  .feature, .step { transition: transform .2s ease, box-shadow .2s ease; }
  .feature:hover, .step:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .float { animation: bob 6s ease-in-out infinite; }
  .float.reward { animation-delay: -3s; }
  @keyframes bob { 50% { transform: translateY(-8px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.invite-code { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: .14em; font-variant-numeric: tabular-nums; text-align: center; color: var(--ink); }
