/* Layout concept: one evening in the room. The page scrolls from lamp-lit dusk into night;
   a single focus ring and a leaf bowl carry the story. Dark-first, with a morning-sage light theme. */
:root {
  --night: #121a15;
  --room: #1b261e;
  --card: #213026;
  --line: rgba(239, 232, 216, 0.12);
  --text: #efe8d8;
  --mist: #a9b5a3;
  --leaf: #a8cf77;
  --leaf-deep: #6e9c43;
  --lamp: #f2b45c;
  --lamp-soft: rgba(242, 180, 92, 0.22);
  --shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", sans-serif;
  --body: "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --night: #eef0e4;
    --room: #e4e8d6;
    --card: #f7f7ee;
    --line: rgba(29, 39, 31, 0.12);
    --text: #1d271f;
    --mist: #56624f;
    --leaf: #4f7a2e;
    --leaf-deep: #3c6122;
    --lamp: #b8721a;
    --lamp-soft: rgba(184, 114, 26, 0.16);
    --shadow: 0 40px 80px -40px rgba(40, 50, 30, 0.45);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --night: #eef0e4; --room: #e4e8d6; --card: #f7f7ee; --line: rgba(29, 39, 31, 0.12);
  --text: #1d271f; --mist: #56624f; --leaf: #4f7a2e; --leaf-deep: #3c6122; --lamp: #b8721a;
  --lamp-soft: rgba(184, 114, 26, 0.16); --shadow: 0 40px 80px -40px rgba(40, 50, 30, 0.45);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 18px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--leaf); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.02; letter-spacing: -0.03em; margin: 0; text-wrap: balance; }
.label { font: 500 13px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lamp); }

/* Nav */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--night) 78%, transparent); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none;
  font: 700 19px var(--display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav nav { display: flex; gap: 24px; align-items: center; }
.nav nav a { color: var(--mist); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--text); }
@media (max-width: 700px) { .nav nav a:not(.keep) { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 16px;
  font: 600 16px var(--body); text-decoration: none; border: 0; cursor: pointer; }
.btn-store { background: var(--text); color: var(--night); }
.btn-store small { display: block; font-size: 11px; font-weight: 400; opacity: .7; }
.btn-store span { line-height: 1.15; text-align: left; }
.btn-line { color: var(--text); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1px var(--mist); }

/* Hero */
.hero { position: relative; padding-block: 64px 96px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, var(--lamp-soft), transparent); z-index: -1; }
#leaves { position: absolute; inset: 0; z-index: -1; pointer-events: none; width: 100%; height: 100%; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.4vw, 96px); margin: 18px 0 24px; }
.hero h1 .leafword { color: var(--leaf); font-style: normal; position: relative; white-space: nowrap; }
.hero p.lead { font-size: clamp(18px, 2vw, 21px); color: var(--mist); max-width: 32em; margin: 0 0 32px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .fine { margin-top: 20px; font: 14px var(--mono); color: var(--mist); letter-spacing: .02em; }
.hero-mark { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow); }

.stage { position: relative; display: grid; place-items: center; min-width: 0; }
.ring { position: absolute; width: min(560px, 118%); aspect-ratio: 1; max-width: 100%; }
.ring circle { fill: none; }
.ring .track { stroke: var(--line); stroke-width: 3; }
.ring .prog { stroke: var(--leaf); stroke-width: 5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; }
.ring .tick { stroke: var(--mist); stroke-width: 2; opacity: .5; }
.phone { position: relative; width: min(300px, 70vw); border-radius: 46px; padding: 10px; background: #0b0f0c;
  box-shadow: var(--shadow), inset 0 0 0 2px #2b3a2f; }
.phone img { border-radius: 37px; width: 100%; aspect-ratio: 414 / 900; object-fit: cover; }
.phone::after { content: ""; position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 31%; height: 25px; border-radius: 20px; background: #050705; }
.timer-chip { position: absolute; right: -2%; top: 14%; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); }
.timer-chip b { display: block; font: 500 30px/1 var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.timer-chip span { font-size: 12px; color: var(--mist); }
.mino { position: absolute; left: -4%; bottom: -6%; width: 150px; filter: drop-shadow(0 16px 20px rgba(0,0,0,.45)); }
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { margin-top: 24px; }
  .mino { width: 104px; left: 0; }
  .timer-chip { right: 0; }
}

/* Story (pinned on desktop) */
section { padding-block: 104px; }
.story { background: var(--room); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.story-steps { display: grid; gap: 40px; }
.story-step { padding-left: 24px; border-left: 2px solid var(--line); transition: border-color .4s; }
.story-step.is-on { border-color: var(--leaf); }
.story-step .label { color: var(--mist); }
.story-step.is-on .label { color: var(--lamp); }
.story-step h3 { font-size: clamp(30px, 3.6vw, 46px); margin: 10px 0 10px; }
.story-step p { margin: 0; color: var(--mist); max-width: 30em; }
.story-shot { position: relative; display: grid; place-items: center; }
.story-shot .phone img { position: absolute; inset: 10px; width: calc(100% - 20px); }
.story-shot .phone img:first-child { position: relative; inset: auto; width: 100%; }
.story-shot .phone .layer { opacity: 0; }
.story-shot .phone .layer.is-on { opacity: 1; }
.no-js .story-shot .phone .layer { display: none; }
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; } .story-shot { order: -1; } }

/* Bowl */
.bowl-sec .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.bowl-sec h2 { font-size: clamp(36px, 5vw, 64px); margin: 14px 0 18px; }
.bowl-sec p { color: var(--mist); margin: 0 0 24px; max-width: 30em; }
.bowl-box { position: relative; aspect-ratio: 1.6; max-width: 480px; width: 100%; justify-self: center; }
#bowl { width: 100%; height: 100%; }
.counter { display: flex; gap: 20px; align-items: baseline; margin-top: 6px; }
.counter b { font: 500 56px/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--leaf); }
.counter span { color: var(--mist); }
@media (max-width: 900px) { .bowl-sec .wrap { grid-template-columns: 1fr; } }

/* Chapters */
.chapters { background: var(--room); overflow: hidden; }
.chapters-head { max-width: 680px; margin-bottom: 56px; }
.chapters-head h2 { font-size: clamp(36px, 5vw, 64px); margin: 14px 0 18px; }
.chapters-head p { color: var(--mist); margin: 0; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: start; }
.shots figure { margin: 0; }
.shots .phone { width: 100%; }
.shots figure:nth-child(2) { transform: translateY(48px); }
.shots figcaption { margin-top: 18px; color: var(--mist); font-size: 15px; }
.shots figcaption b { color: var(--text); display: block; font: 700 19px var(--display); letter-spacing: -.01em; }
@media (max-width: 860px) {
  .shots { grid-template-columns: repeat(3, minmax(220px, 1fr)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
  .shots figure { scroll-snap-align: center; }
  .shots figure:nth-child(2) { transform: none; }
}

/* Details */
.details h2 { font-size: clamp(32px, 4.4vw, 54px); max-width: 640px; margin: 14px 0 48px; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.tile { background: var(--night); padding: 30px; }
.tile .k { font: 500 13px var(--mono); color: var(--lamp); letter-spacing: .08em; text-transform: uppercase; }
.tile h3 { font-size: 24px; margin: 12px 0 8px; letter-spacing: -.02em; }
.tile p { margin: 0; color: var(--mist); font-size: 16px; }
@media (max-width: 860px) { .tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .tiles { grid-template-columns: 1fr; } }

/* Plus */
.plus { position: relative; border-radius: 32px; overflow: hidden; min-height: 520px; display: grid; align-items: end; isolation: isolate; }
.plus .bg { position: absolute; inset: 0; z-index: -2; }
.plus .bg img { width: 100%; height: 100%; object-fit: cover; }
.plus::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, transparent 20%, rgba(14, 20, 16, .92) 78%); }
.plus .copy { padding: 40px; max-width: 640px; color: #efe8d8; }
.plus h2 { font-size: clamp(36px, 5vw, 60px); margin: 12px 0 14px; }
.plus p { color: #d7d0bf; margin: 0 0 12px; }
.plus .label { color: #f2b45c; }
@media (max-width: 600px) { .plus .copy { padding: 24px; } .plus { min-height: 560px; } }

/* Promise */
.promise { text-align: center; }
.promise h2 { font-size: clamp(36px, 5.4vw, 72px); max-width: 900px; margin: 16px auto 20px; }
.promise p { color: var(--mist); max-width: 36em; margin: 0 auto; }

/* FAQ */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq-wrap h2 { font-size: clamp(32px, 4vw, 48px); margin-top: 14px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font: 700 20px var(--display); letter-spacing: -.01em; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--leaf); font: 400 26px/1 var(--mono); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--mist); margin: 12px 0 0; }
@media (max-width: 860px) { .faq-wrap { grid-template-columns: 1fr; gap: 16px; } }

/* Final */
.final { text-align: center; background: radial-gradient(ellipse at 50% 100%, var(--lamp-soft), transparent 60%); }
.final img { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 28px; box-shadow: var(--shadow); }
.final h2 { font-size: clamp(36px, 5vw, 64px); margin-bottom: 16px; }
.final p { color: var(--mist); margin: 0 0 30px; }
.final .mail { font: 500 17px var(--mono); color: var(--text); user-select: all; }

footer { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--mist); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--mist); margin-right: 18px; }

/* Plain document pages */
.doc { max-width: 720px; margin: 0 auto; padding: 56px 20px 88px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); margin: 0 0 24px; }
.doc h2 { font-size: 26px; margin: 44px 0 10px; letter-spacing: -.02em; }
.doc h3 { font-size: 20px; margin: 28px 0 6px; }
.doc p, .doc li { color: var(--mist); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
