/* Landing page of Ğ1nkgo. Everything is scoped under `html.landing`, so none
   of it touches the Flutter app once it boots (the class becomes `app`). */

/* DM Sans (SIL OFL 1.1), served from here: no font service is contacted.
   Text is set at 500 and 700, headings at 800. */
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/dm-sans-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/dm-sans-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/dm-sans-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/dm-sans-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/dm-sans-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/dm-sans-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f5f0e1;
  --paper-2: #ece5cf;
  --card: #fffcf2;
  --ink: #14261b;
  --ink-soft: #46584b;
  --line: rgba(20, 38, 27, 0.13);
  --leaf: #a6cf1a;
  --leaf-soft: #d9ec93;
  --green: #2f5a1c;
  --gold: #e3a20b;
  --gold-soft: #f7d98a;
  --btn: #22421a;
  --btn-ink: #fbf8ec;
  --term: #2b3a2f;
  --lcd: #c8dba0;
  --shadow: 0 30px 60px -25px rgba(34, 52, 20, 0.45);
  --display: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --text: "DM Sans", "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a13;
    --paper-2: #16241b;
    --card: #172a1e;
    --ink: #eef1e2;
    --ink-soft: #b3c1af;
    --line: rgba(238, 241, 226, 0.12);
    --leaf: #b9e23a;
    --leaf-soft: #3d5a1c;
    --green: #c4e86a;
    --gold: #f5c24a;
    --gold-soft: #6b5310;
    --btn: #c4e86a;
    --btn-ink: #10200f;
    --term: #0b130e;
    --lcd: #9fbf62;
    --shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
  }
}

html.landing {
  scroll-behavior: smooth;
  /* Scroll snapping: a scroll ends with the next section lined up under the
     header instead of anywhere in between. Gentle ("proximity") by default;
     one page per section on screens big enough to hold one (below). */
  scroll-snap-type: y proximity;
  scroll-padding-top: 64px;
}
html.landing body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.landing #landing {
  position: relative;
  min-height: 100vh;
  /* clip, not hidden: hidden would break the sticky header. */
  overflow: clip;
  /* Paper grain and two soft lights. */
  background:
    radial-gradient(60rem 40rem at 85% -10%, color-mix(in srgb, var(--leaf) 22%, transparent), transparent 60%),
    radial-gradient(40rem 30rem at -10% 40%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 60%),
    var(--paper);
}
html.landing #landing::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.1 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-color-scheme: dark) {
  html.landing #landing::before { mix-blend-mode: screen; opacity: 0.15; }
}

#landing * { box-sizing: border-box; }
#landing a { color: inherit; }
#landing h1, #landing h2, #landing h3 { font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
#landing h2 { text-wrap: balance; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; max-width: 18ch; }
#landing h3 { font-size: 1.3rem; line-height: 1.2; margin-bottom: 0.4rem; font-weight: 700; }
#landing em { font-style: normal; color: var(--green); }
#landing .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#landing section { position: relative; padding: clamp(4rem, 9vw, 7.5rem) clamp(16px, 5vw, 64px); max-width: 1240px; margin: 0 auto; }
#landing .kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--green); margin: 0 0 0.9rem;
}
#landing .kicker::before { content: ""; width: 1.6rem; height: 2px; background: var(--gold); }

/* Header */
#landing .top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.8rem clamp(16px, 5vw, 64px);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
#landing .top.scrolled { border-bottom-color: var(--line); }
#landing .brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.35rem; }
#landing .brand-leaf { width: 30px; height: 30px; fill: var(--leaf); transform: rotate(-8deg); transition: transform .5s cubic-bezier(.3,1.6,.5,1); }
#landing .brand:hover .brand-leaf { transform: rotate(14deg) scale(1.1); }
#landing .top-actions { display: flex; align-items: center; gap: 0.6rem; }
#landing select {
  appearance: none; -webkit-appearance: none;
  font: 700 0.9rem var(--text); color: var(--ink);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 0.7rem center / 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.45rem 2rem 0.45rem 0.9rem; cursor: pointer; max-width: 9.5rem;
}
#landing .link-btn {
  font: 700 0.92rem var(--text); color: var(--ink); background: none; border: 1px solid var(--ink);
  border-radius: 999px; padding: 0.45rem 1rem; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s;
}
#landing .link-btn:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) {
  #landing .brand span { display: none; }
  #landing select { max-width: 7.2rem; }
}

/* Buttons */
#landing .btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 700 1.05rem var(--text); border-radius: 999px; padding: 0.95rem 1.5rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .2s, box-shadow .2s, background .2s;
}
#landing .btn-primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--btn) 80%, transparent); }
#landing .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--btn) 90%, transparent); }
#landing .btn-primary .arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
#landing .btn-primary:hover .arrow { transform: translateX(4px); }
#landing .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
#landing .btn-ghost:hover { border-color: var(--ink); }
#landing button:focus-visible, #landing a:focus-visible, #landing select:focus-visible, #landing .shots:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 3px;
}

/* Hero */
#landing .hero {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding-top: clamp(2.5rem, 6vw, 5rem);
}
#landing .eyebrow { font-weight: 700; color: var(--ink-soft); margin: 0 0 1.1rem; display: flex; align-items: center; gap: .6rem; }
#landing .eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 5px color-mix(in srgb, var(--leaf) 30%, transparent); animation: pulse 2.4s infinite; }
#landing h1 { text-wrap: balance; font-size: clamp(2.2rem, 4.8vw, 3.8rem); line-height: 1.16; letter-spacing: -0.035em; }
#landing h1 em { display: block; margin-top: .15em; }
#landing .lead { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: var(--ink-soft); max-width: 36ch; margin: 1.4rem 0 2rem; }
#landing .cta { display: flex; flex-wrap: wrap; gap: 0.8rem; }
#landing .fine { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1rem; }

#landing .hero-visual { position: relative; display: grid; place-items: center; min-height: 560px; }
#landing .big-leaf { position: absolute; width: min(520px, 110%); aspect-ratio: 1; left: 50%; top: 50%; translate: -50% -50%; rotate: -14deg; overflow: visible; }
#landing .big-leaf-fill { fill: var(--leaf); opacity: .9; transform-origin: 60% 85%; animation: sway 9s ease-in-out infinite; }
#landing .big-leaf-vein { fill: none; stroke: color-mix(in srgb, var(--green) 45%, transparent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 900; stroke-dashoffset: 900; animation: draw 2.4s .8s ease forwards; }
@media (prefers-color-scheme: dark) { #landing .big-leaf-fill { opacity: .55; } }

#landing .phone {
  position: relative; width: min(270px, 64vw); aspect-ratio: 411 / 891;
  border-radius: 38px; padding: 10px; background: #111a14;
  box-shadow: var(--shadow), inset 0 0 0 2px #2c3a30;
  rotate: 4deg; animation: float 7s ease-in-out infinite;
}
#landing .phone::before { content: ""; position: absolute; top: 16px; left: 50%; translate: -50% 0; width: 70px; height: 18px; border-radius: 12px; background: #111a14; z-index: 2; }
#landing .phone-screen { width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: #f7f7ee; }
#landing .phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }

#landing .toast {
  position: absolute; z-index: 3; display: grid; gap: 2px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 0.7rem 1rem; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45);
  font-size: 0.82rem; color: var(--ink-soft); max-width: 15rem;
}
#landing .toast b { font-family: var(--display); font-size: 1.15rem; color: var(--ink); }
#landing .toast-in { left: -2%; top: 20%; animation: pop 7s 1.6s infinite both; }
#landing .toast-ud { right: -2%; bottom: 16%; animation: pop 7s 5.1s infinite both; }
#landing .toast-ud b { color: var(--gold); }

/* A few small leaves drifting down the first screen, slowly and barely
   turning: atmosphere, not decoration. */
#landing .drift-leaves { position: absolute; left: 0; right: 0; top: 0; height: 100vh; pointer-events: none; overflow: hidden; z-index: 0; }
#landing .drift-leaves svg { position: absolute; top: -40px; fill: var(--leaf); opacity: .28; animation: drift linear infinite; }
#landing .drift-leaves svg:nth-child(1) { left: 12%; width: 18px; height: 18px; animation-duration: 38s; animation-delay: -5s; }
#landing .drift-leaves svg:nth-child(2) { left: 46%; width: 14px; height: 14px; fill: var(--gold); animation-duration: 46s; animation-delay: -22s; }
#landing .drift-leaves svg:nth-child(3) { left: 63%; width: 22px; height: 22px; animation-duration: 42s; animation-delay: -14s; filter: blur(1.5px); }
#landing .drift-leaves svg:nth-child(4) { left: 84%; width: 16px; height: 16px; fill: var(--gold); animation-duration: 52s; animation-delay: -33s; }
#landing main, #landing .top, #landing .foot { position: relative; z-index: 1; }

/* Reveal on load. Pure CSS, so the text shows even if the script fails; the
   short delay leaves time to swap in the visitor's language first. */
#landing .r { animation: rise .9s cubic-bezier(.2,.8,.2,1) .3s both; }
#landing .hero .r:nth-child(2) { animation-delay: .38s; }
#landing .hero .r:nth-child(3) { animation-delay: .46s; }
#landing .hero .r:nth-child(4) { animation-delay: .54s; }
#landing .hero .r:nth-child(5) { animation-delay: .62s; }
#landing .hero-visual.r { animation-duration: 1.3s; animation-delay: .45s; }

/* Ğ1 and the Universal Dividend */
#landing .g1 { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
#landing .g1-text p { color: var(--ink-soft); max-width: 44ch; font-size: 1.08rem; }
#landing .g1-text h2 { margin-bottom: 1.2rem; }
#landing .ud-scene {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 28px;
  padding: 2rem 1.5rem 1.5rem; box-shadow: var(--shadow);
}
#landing .ud-day { font-family: var(--display); font-size: 1.1rem; color: var(--ink-soft); }
#landing .ud-day b { font-size: 2.2rem; color: var(--ink); display: inline-block; min-width: 2ch; }
#landing .ud-day b.tick { animation: tick .5s ease; }
#landing .ud-row { display: flex; justify-content: space-around; align-items: flex-end; height: 210px; padding-top: 60px; }
#landing .ud-person { position: relative; display: grid; justify-items: center; width: 17%; }
#landing .ud-person .head { width: 26px; height: 26px; border-radius: 50%; background: var(--green); }
#landing .ud-person .body { width: 44px; height: 30px; border-radius: 22px 22px 6px 6px; background: var(--green); margin-top: 4px; }
#landing .ud-person:nth-child(2) .head, #landing .ud-person:nth-child(2) .body { background: var(--gold); }
#landing .ud-person:nth-child(4) .head, #landing .ud-person:nth-child(4) .body { background: color-mix(in srgb, var(--green) 60%, var(--leaf)); }
#landing .ud-person .stack {
  width: 40px; height: calc(var(--n, 1) * 7px); margin-top: 8px; border-radius: 4px;
  background: repeating-linear-gradient(0deg, var(--gold) 0 5px, color-mix(in srgb, var(--gold) 55%, #7a4a00) 5px 7px);
  transition: height .45s cubic-bezier(.3,1.5,.6,1);
}
#landing .ud-person .coin {
  position: absolute; top: -70px; width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffe9a6, var(--gold) 60%, #a86f00);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 40%, transparent);
  opacity: 0; animation: drop 2.6s cubic-bezier(.5,0,.8,.5) infinite;
}
#landing .ud-caption { text-align: center; margin: 1rem 0 0; font-weight: 700; color: var(--ink-soft); }

/* Steps */
#landing .how > h2, #landing .diff > h2, #landing .gallery > h2 { margin-bottom: clamp(2rem, 5vw, 3.5rem); }
#landing .steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2.2rem); counter-reset: s; }
#landing .step { position: relative; }
#landing .step p { color: var(--ink-soft); margin: 0; }
#landing .step-n {
  position: absolute; top: -14px; left: 16px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font: 700 1.1rem var(--display); background: var(--gold); color: #2a1d00;
}
#landing .scene {
  aspect-ratio: 4 / 3; border-radius: 24px; margin-bottom: 1.2rem;
  background: linear-gradient(160deg, var(--paper-2), var(--card));
  border: 1px solid var(--line); overflow: hidden; display: grid; place-items: center;
}
#landing .scene svg { width: 100%; height: 100%; }
#landing .scene text { font-family: var(--text); font-weight: 700; }

/* 1: create */
#landing .sc-phone { fill: color-mix(in srgb, var(--ink) 8%, transparent); stroke: var(--line); stroke-width: 2; }
#landing .sc-card rect:first-child { fill: #183a2a; }
#landing .sc-chip { fill: #e9c43a; }
#landing .sc-card-title { fill: #fff; font-size: 14px; }
#landing .sc-card-num { fill: #d9ecd0; font-size: 12px; font-family: ui-monospace, monospace !important; }
#landing .sc-card { transform-box: fill-box; transform-origin: center; }
/* The recovery phrase, written down on paper. */
#landing .sc-note .paper { fill: #fffdf5; stroke: var(--line); stroke-width: 1.5; }
#landing .sc-note text { fill: #8a8a7a; font-size: 10px; }
#landing .sc-note .line { fill: #3b4a3e; transform-box: fill-box; transform-origin: left; }
#landing .sc-note .tick { fill: none; stroke: #2e9d44; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; }
#landing .sc-note { opacity: 0; transform-box: fill-box; transform-origin: center; }
#landing .scene-create.in .sc-card { animation: card-rise 6s cubic-bezier(.2,.9,.3,1.2) infinite; }
#landing .scene-create.in .sc-note { animation: note 6s infinite; }
#landing .scene-create.in .sc-note .line { animation: write 6s infinite; }
#landing .scene-create.in .sc-note .line:nth-of-type(3) { animation-delay: .35s; }
#landing .scene-create.in .sc-note .line:nth-of-type(4) { animation-delay: .7s; }
#landing .scene-create.in .sc-note .tick { animation: tick-note 6s infinite; }

/* 2: receive */
#landing .sc-term { fill: var(--term); }
#landing .sc-lcd { fill: var(--lcd); }
#landing .sc-amount { font-family: ui-monospace, monospace !important; font-size: 14px; fill: #1d2a14; }
#landing .sc-qr-bg { fill: #fff; }
#landing .sc-qr rect { fill: #111; opacity: 0; }
#landing .sc-keys rect { fill: #cfd3c7; }
#landing .sc-keys rect.ok { fill: #3ea34a; }
#landing .scene-receive.in .sc-qr rect { animation: qr 5s infinite; animation-delay: var(--d); }
#landing .scene-receive.in .sc-amount { animation: type 5s steps(8) infinite; }
#landing .scene-receive.in .sc-keys .ok { animation: press 5s infinite; }

/* 3: pay by scanning the other phone's code */
#landing .sc-p1 > rect:first-child, #landing .sc-p2 > rect:first-child { fill: var(--term); }
#landing .sc-p1 .scr, #landing .sc-p2 .scr { fill: color-mix(in srgb, var(--leaf) 30%, var(--card)); }
#landing .sc-qr2 > rect:first-child { fill: #fff; }
#landing .sc-qr2 .m { fill: #111; }
#landing .sc-price { font-family: ui-monospace, monospace !important; font-size: 10px; fill: var(--ink); }
#landing .sc-finder { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
#landing .sc-beam { fill: #e5484d; opacity: 0; }
#landing .sc-coin circle { fill: var(--gold); stroke: #a86f00; stroke-width: 2; }
#landing .sc-coin text { font-size: 9px; fill: #3a2600; }
#landing .sc-coin { opacity: 0; }
#landing .sc-check { fill: none; stroke: #2e9d44; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
#landing .scene-pay.in .sc-p1 { animation: aim 5s ease-in-out infinite; }
#landing .scene-pay.in .sc-beam { animation: beam 5s ease-in-out infinite; }
#landing .scene-pay.in .sc-coin { animation: hop 5s ease-in-out infinite; }
#landing .scene-pay.in .sc-check { animation: check 5s infinite; }

/* Why cards */
#landing .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1rem, 2.4vw, 1.6rem); }
#landing .card {
  position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line); border-radius: 26px;
  padding: clamp(1.5rem, 3vw, 2.3rem); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
#landing .card:hover { transform: translateY(-4px) rotate(-.3deg); box-shadow: var(--shadow); }
#landing .card::after {
  content: ""; position: absolute; right: -60px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--leaf) 30%, transparent), transparent 70%);
  transition: transform .6s;
}
#landing .card:hover::after { transform: scale(1.4); }
#landing .card.c2::after, #landing .card.c4::after { background: radial-gradient(circle, color-mix(in srgb, var(--gold) 30%, transparent), transparent 70%); }
#landing .card p { color: var(--ink-soft); margin: 0; max-width: 42ch; }
#landing .ic { width: 46px; height: 46px; fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1rem; }

/* Gallery */
#landing .gallery { max-width: none; padding-left: 0; padding-right: 0; }
#landing .gallery > .kicker, #landing .gallery > h2 { margin-left: max(clamp(16px, 5vw, 64px), calc((100vw - 1240px) / 2 + 64px)); }
#landing .shots {
  display: flex; gap: clamp(1rem, 2.5vw, 2rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 1rem max(clamp(16px, 5vw, 64px), calc((100vw - 1240px) / 2 + 64px)) 2rem;
  scrollbar-width: thin;
}
#landing .shots figure { flex: 0 0 auto; width: min(230px, 62vw); margin: 0; scroll-snap-align: center; }
#landing .shots img {
  width: 100%; height: auto; display: block; border-radius: 22px; background: #f7f7ee;
  border: 7px solid #111a14; box-shadow: var(--shadow); transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
#landing .shots figure:nth-child(odd) img { rotate: -1.2deg; }
#landing .shots figure:nth-child(even) img { rotate: 1.2deg; translate: 0 14px; }
#landing .shots figure:hover img { transform: translateY(-8px) rotate(0deg); }
#landing .shots figcaption { text-align: center; margin-top: 1.4rem; font-weight: 700; color: var(--ink-soft); }

/* Why the name: the leaf turns from summer green to autumn gold in view. */
#landing .why-name { display: grid; grid-template-columns: minmax(140px, 300px) 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; }
#landing .why-name p:not(.kicker) { color: var(--ink-soft); font-size: 1.1rem; max-width: 52ch; }
#landing .why-name h2 { margin-bottom: 1rem; }
#landing .autumn-leaf { width: 100%; height: auto; overflow: visible; fill: var(--leaf); rotate: -12deg; transition: fill 2.4s ease .3s, rotate 2.4s ease .3s; }
#landing .why-name.in .autumn-leaf { fill: var(--gold); rotate: 4deg; }
@media (max-width: 700px) {
  #landing .why-name { grid-template-columns: 1fr; }
  #landing .autumn-leaf { width: 140px; }
}

/* Get it */
#landing .get {
  text-align: center; display: grid; justify-items: center;
  margin: 0 clamp(16px, 5vw, 64px) clamp(3rem, 6vw, 5rem); max-width: 1112px;
  background: var(--btn); color: var(--btn-ink); border-radius: 40px; overflow: hidden;
}
@media (min-width: 1240px) { #landing .get { margin-left: auto; margin-right: auto; } }
#landing .get h2 { max-width: none; color: var(--btn-ink); }
#landing .get p { opacity: .85; margin: .8rem 0 2rem; font-size: 1.1rem; }
#landing .get-leaf { position: absolute; width: 380px; height: 380px; right: -90px; top: -110px; fill: color-mix(in srgb, var(--leaf) 30%, transparent); rotate: 30deg; animation: sway 12s ease-in-out infinite; }
#landing .stores { position: relative; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; }
#landing .store {
  display: inline-flex; align-items: center; gap: .7rem; text-align: left; text-decoration: none;
  font: 700 1.05rem var(--text); color: var(--btn); background: var(--btn-ink);
  border: 0; border-radius: 16px; padding: .7rem 1.2rem; cursor: pointer; transition: transform .2s;
}
#landing .store:hover { transform: translateY(-2px); }
#landing .store small { display: block; font-size: .72rem; font-weight: 700; opacity: .75; }
#landing .store svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
#landing .store.soon { cursor: default; background: transparent; color: var(--btn-ink); border: 1.5px dashed color-mix(in srgb, var(--btn-ink) 50%, transparent); }
#landing .store.soon:hover { transform: none; }

/* Footer */
#landing .foot { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 5vw, 64px) 3rem; color: var(--ink-soft); font-size: .92rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
#landing .foot p { margin: 0; }
#landing .foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
#landing .foot a { text-underline-offset: 3px; }

/* Snap points: every section, and the footer so the last page can be reached. */
#landing main > section, #landing .foot { scroll-snap-align: start; }
@media (min-width: 900px) and (min-height: 640px) {
  /* On big screens landing.js moves one section per gesture instead, and a
     CSS snap point would fight it. */
  html.landing.paged { scroll-snap-type: none; }
  /* Each section is a page: at least one screen tall, content centred. */
  #landing main > section:not(.get) {
    min-height: calc(100svh - 64px);
    display: grid; align-content: center;
    padding-top: 2rem; padding-bottom: 2rem;
  }
  #landing .hero-visual { min-height: min(560px, calc(100svh - 160px)); }
  #landing h1 { font-size: clamp(2.2rem, min(4.8vw, 7svh), 3.8rem); }
  #landing .lead { margin: 1rem 0 1.5rem; }
  #landing .phone { width: min(270px, 64vw, calc((100svh - 200px) * 411 / 891)); }
}

/* Layout for small screens */
@media (max-width: 900px) {
  #landing .hero, #landing .g1 { grid-template-columns: 1fr; }
  #landing .hero-visual { min-height: 480px; }
  #landing .steps { grid-template-columns: 1fr; max-width: 520px; }
  #landing .cards { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  #landing .hero-visual { min-height: 440px; }
  #landing .toast { font-size: .75rem; max-width: 11rem; }
  #landing .toast-in { left: 0; }
  #landing .toast-ud { right: 0; }
  #landing .ud-person .body { width: 34px; }
  #landing .ud-person .stack { width: 30px; }
  #landing .btn { width: 100%; justify-content: center; }
}

/* Keyframes */
@keyframes rise { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--leaf) 0%, transparent); } }
@keyframes sway { 50% { transform: rotate(4deg) translateY(-6px); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 50% { translate: 0 -14px; rotate: 2deg; } }
@keyframes pop {
  0%, 4% { opacity: 0; transform: translateY(12px) scale(.9); }
  9%, 42% { opacity: 1; transform: none; }
  50%, 100% { opacity: 0; transform: translateY(-8px) scale(.96); }
}
@keyframes drift { 0% { transform: translate(0, 0) rotate(-12deg); } 50% { transform: translate(24px, 55vh) rotate(10deg); } 100% { transform: translate(-8px, 110vh) rotate(-8deg); } }

@keyframes drop {
  0% { opacity: 0; transform: translateY(0) scale(.6); }
  12% { opacity: 1; transform: translateY(0) scale(1); }
  45% { opacity: 1; transform: translateY(58px); }
  55%, 100% { opacity: 0; transform: translateY(70px) scale(.7); }
}
@keyframes tick { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes card-rise {
  0% { transform: translateY(70px) scale(.7); opacity: 0; }
  18%, 88% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 0; }
}
@keyframes note { 0%, 22% { opacity: 0; transform: translateY(8px) rotate(4deg); } 28%, 90% { opacity: 1; transform: rotate(4deg); } 100% { opacity: 0; transform: rotate(4deg); } }
@keyframes write { 0%, 30% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes tick-note { 0%, 55% { stroke-dashoffset: 30; } 62%, 100% { stroke-dashoffset: 0; } }
@keyframes qr { 0%, 20% { opacity: 0; } 24%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes type { 0% { clip-path: inset(0 0 0 100%); } 18%, 100% { clip-path: inset(0 0 0 0); } }
@keyframes press { 0%, 18% { opacity: 1; } 20% { opacity: .4; } 23%, 100% { opacity: 1; } }
@keyframes aim { 0%, 8% { transform: translateX(-6px); } 22%, 80% { transform: translateX(6px); } 100% { transform: translateX(-6px); } }
@keyframes beam { 0%, 20% { opacity: 0; transform: translateY(0); } 24% { opacity: 1; } 34% { transform: translateY(44px); } 44% { transform: translateY(0); opacity: 1; } 48%, 100% { opacity: 0; } }
@keyframes hop {
  0%, 48% { transform: translate(0, 0); opacity: 0; }
  52% { opacity: 1; }
  64% { transform: translate(56px, -34px); }
  76% { transform: translate(112px, 0); opacity: 1; }
  80%, 100% { transform: translate(112px, 0); opacity: 0; }
}

@keyframes check { 0%, 72% { stroke-dashoffset: 60; opacity: 1; } 80%, 94% { stroke-dashoffset: 0; opacity: 1; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html.landing { scroll-behavior: auto; }
  #landing *, #landing *::before, #landing *::after { animation: none !important; transition: none !important; }
  #landing .drift-leaves { display: none; }
  #landing .big-leaf-vein { stroke-dashoffset: 0; }
  #landing .sc-note, #landing .sc-qr rect { opacity: 1; }
  #landing .sc-note .tick { stroke-dashoffset: 0; }
  #landing .sc-check { stroke-dashoffset: 0; }
  #landing .sc-beam { opacity: 1; }
  #landing .ud-person .coin, #landing .toast { opacity: 1; }
  #landing .ud-person .coin { display: none; }
}
