/* Arrow Escape website: Zen Garden look, same palette and font as the app. */

@font-face { font-family: Outfit; font-weight: 300; font-display: swap; src: url(../fonts/Outfit-Light.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(../fonts/Outfit-Regular.ttf) format("truetype"); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(../fonts/Outfit-Medium.ttf) format("truetype"); }

:root {
  --bg: #EEF1EC;
  --surface: #F8FAF7;
  --surface-muted: #E2E7E1;
  --ink: #24312B;
  --muted: #55635B;
  --accent: #4F7A63;
  --on-accent: #FFFFFF;
  --sand: #E9E2D3;
  --rake: #DDD4C1;
  --dot: #C4B79C;
  --stone: #5E6B64;
  --stone-shadow: #D2C9B8;
  --hint: #4F7A63;
  --danger: #B4553A;
  --gold: #B98A2E;
  --line: #D6DDD6;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
  --radius: 28px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141A17;
    --surface: #1D2521;
    --surface-muted: #29332E;
    --ink: #E4EAE5;
    --muted: #9EABA3;
    --accent: #8FC2A6;
    --on-accent: #10241A;
    --sand: #26231D;
    --rake: #2F2B24;
    --dot: #4F473A;
    --stone: #B9C3BC;
    --stone-shadow: #1D1A15;
    --hint: #8FC2A6;
    --danger: #E38A6B;
    --gold: #DDB45C;
    --line: #2C3632;
    --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 Outfit, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 400; letter-spacing: 0.06em; font-size: 19px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.nav { margin-left: auto; display: flex; gap: 22px; align-items: center; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav a.btn, .nav a.btn:hover { color: var(--on-accent); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px; background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 500; letter-spacing: 0.04em; border: 0; cursor: pointer; font: inherit; font-weight: 500; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--surface-muted); color: var(--ink); }
.btn.small { padding: 9px 18px; font-size: 15px; }
.btn svg { width: 20px; height: 20px; }

/* Hero */
.hero { padding: 56px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 880px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } }
.eyebrow { text-transform: uppercase; letter-spacing: 0.3em; font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.hero h1 { font-weight: 300; font-size: clamp(44px, 7vw, 76px); line-height: 1.02; letter-spacing: 0.04em; margin: 0 0 22px; }
.hero .lead { font-size: 20px; color: var(--muted); font-weight: 300; max-width: 30em; margin: 0 0 32px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero .note { font-size: 14px; color: var(--muted); margin-top: 16px; }

/* Demo phone */
.phone { justify-self: center; width: min(360px, 100%); background: var(--surface); border-radius: 40px; padding: 22px 20px 20px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.demo-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.hearts { display: flex; gap: 6px; }
.hearts svg { width: 20px; height: 20px; }
.hearts .lost { opacity: 0.25; }
.demo-title { text-align: center; font-weight: 300; font-size: 24px; letter-spacing: 0.06em; margin: 6px 0 2px; }
.demo-left { text-align: center; color: var(--muted); font-size: 14px; }
.bar { width: 120px; height: 4px; border-radius: 2px; background: var(--surface-muted); margin: 8px auto 14px; overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.3s ease; }
.garden { background: var(--sand); border-radius: 24px; padding: 14px; position: relative; }
.garden svg { width: 100%; height: auto; display: block; touch-action: manipulation; }
.demo-msg { min-height: 24px; text-align: center; font-size: 15px; color: var(--muted); margin: 12px 0 6px; }
.demo-controls { display: flex; justify-content: center; gap: 10px; }
.overlay { position: absolute; inset: 0; border-radius: 24px; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; background: color-mix(in srgb, var(--sand) 88%, transparent); padding: 20px; }
.overlay.show { display: flex; }
.overlay strong { font-weight: 300; font-size: 30px; letter-spacing: 0.04em; }

/* Arrows in the demo */
.arrow { cursor: pointer; outline: none; }
.arrow:focus-visible .body { stroke: var(--accent); }
.arrow:focus-visible .head { fill: var(--accent); }
.arrow .body, .arrow .shadow-body { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.arrow .body { stroke: var(--stone); }
.arrow .head { fill: var(--stone); }
.arrow .shadow-body { stroke: var(--stone-shadow); }
.arrow .shadow-head { fill: var(--stone-shadow); }
.arrow .hit { fill: none; stroke: transparent; stroke-linecap: round; }
.arrow.hint .body { stroke: var(--hint); }
.arrow.hint .head { fill: var(--hint); }
.arrow.blocked .body { stroke: var(--danger); }
.arrow.blocked .head { fill: var(--danger); }
.arrow.leaving { pointer-events: none; }
.rake { fill: none; stroke: var(--rake); }
.dot { fill: var(--dot); }

/* Sections */
section { padding: 72px 0; }
.section-title { font-weight: 300; font-size: clamp(32px, 4.5vw, 46px); letter-spacing: 0.03em; margin: 0 0 12px; }
.section-lead { color: var(--muted); font-size: 19px; font-weight: 300; margin: 0 0 40px; max-width: 36em; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.step svg { width: 100%; max-width: 220px; height: auto; background: var(--sand); border-radius: 18px; margin-bottom: 18px; }
.step h3, .card h3 { font-weight: 500; font-size: 20px; margin: 0 0 6px; }
.step p, .card p { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); }
.card .icon { width: 48px; height: 48px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.card .icon svg { width: 24px; height: 24px; }

.shots { display: flex; gap: 20px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 auto; width: 220px; scroll-snap-align: start; }
.shots img { width: 220px; height: auto; border-radius: 26px; border: 6px solid var(--ink); box-shadow: var(--shadow); background: var(--surface); }
@media (prefers-color-scheme: dark) { .shots img { border-color: #2C3632; } }
.shots figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }

.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { background: var(--surface); border-radius: 20px; padding: 18px 24px; border: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 500; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 300; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--muted); margin: 12px 0 0; }

.band { background: var(--sand); border-radius: 36px; padding: 56px 32px; text-align: center; }
.band h2 { font-weight: 300; font-size: clamp(30px, 4vw, 42px); margin: 0 0 12px; letter-spacing: 0.03em; }
.band p { color: var(--muted); margin: 0 0 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.doc { padding: 48px 0 80px; }
.doc article { max-width: 760px; }
.doc h1 { font-weight: 300; font-size: clamp(36px, 5vw, 52px); letter-spacing: 0.03em; margin: 0 0 8px; }
.doc .meta { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-weight: 500; font-size: 21px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--ink); }
.doc li { margin-bottom: 6px; }
.doc a { overflow-wrap: anywhere; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 24px; margin: 0 0 8px; }
.doc .toc ol { margin: 8px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; }
@media (max-width: 600px) { .doc .toc ol { columns: 1; } }
.doc .toc a { color: var(--muted); text-decoration: none; }

.notfound { text-align: center; padding: 120px 0; }
.notfound h1 { font-weight: 300; font-size: 64px; margin: 0; }
