/* Cenlume landing page styles. Palette mirrors getColors() from the Android app. */
/* Tokens mirror getColors() from the Android app.
   bg and surface are placeholders until app-themes.ts values are shared. */
   :root {
    --bg: #F7F8F6;
    --surface: #FFFFFF;
    --surface-alt: #EEEAF6;
    --text: #0F2B21;
    --muted: #6F7F79;
    --line: #EEF1EF;
    --button: #8976B5;
    --hero: #8976B5;
    --placeholder: #A3B0AA;
    --on-button: #FFFFFF;
    --summary-bg: #8976B5;
    --summary-text: #FFFFFF;
    --green: #2E7D5B;
    --red: #D32F2F;
    --mint: #EEEAF6;
    --track: #E4EAE7;
    --glass: rgba(236, 241, 238, .85);
    --glass-border: rgba(255, 255, 255, .9);
    --shadow: #000000;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
    --max: 1180px;
  }
  
  :root[data-theme="dark"] {
    --bg: #14120F;
    --surface: #211F1C;
    --surface-alt: #302D29;
    --text: #F5F1EB;
    --muted: #AAA198;
    --line: #393530;
    --button: #B0A69A;
    --hero: #211F1C;
    --placeholder: #82796F;
    --on-button: #211F1C;
    --summary-bg: #302D29;
    --summary-text: #F5F1EB;
    --green: #58B88C;
    --red: #E05252;
    --mint: #39332D;
    --track: #393530;
    --glass: rgba(33, 31, 28, .88);
    --glass-border: rgba(245, 241, 235, .10);
  }
  
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #14120F;
      --surface: #211F1C;
      --surface-alt: #302D29;
      --text: #F5F1EB;
      --muted: #AAA198;
      --line: #393530;
      --button: #B0A69A;
      --hero: #211F1C;
      --placeholder: #82796F;
      --on-button: #211F1C;
      --summary-bg: #302D29;
      --summary-text: #F5F1EB;
      --green: #58B88C;
      --red: #E05252;
      --mint: #39332D;
      --track: #393530;
      --glass: rgba(33, 31, 28, .88);
      --glass-border: rgba(245, 241, 235, .10);
    }
  }
  
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.5;
    transition: background .6s var(--ease), color .6s var(--ease);
  }
  a { color: inherit; text-decoration: none; }
  img { display: block; }
  :focus-visible { outline: 2px solid var(--button); outline-offset: 4px; border-radius: 8px; }
  .wrap { width: min(100% - 3rem, var(--max)); margin-inline: auto; }
  
  /* ---------- Buttons ---------- */
  .pill-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .9rem 1.5rem; border-radius: 999px;
    background: var(--button); color: var(--on-button);
    font-weight: 600; font-size: .98rem;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  }
  .pill-btn:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 18px 40px -14px var(--shadow); }
  .link-btn {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .9rem 1.2rem; font-size: .98rem; color: var(--button);
    transition: gap .5s var(--ease);
  }
  .link-btn:hover { gap: .7rem; }
  
  /* ---------- Type ---------- */
  .kicker { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
  .display {
    font-size: clamp(3.2rem, 9vw, 7.4rem);
    line-height: .98; font-weight: 500; letter-spacing: -.045em;
  }
  .serif-em {
    font-family: var(--serif); font-style: italic; font-weight: 400;
    letter-spacing: -.02em; color: var(--button);
  }
  .h2 { font-size: clamp(2.2rem, 5.2vw, 4rem); line-height: 1.02; font-weight: 500; letter-spacing: -.04em; }
  .body-lg { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 36rem; line-height: 1.5; }
  
  /* ---------- Reveal ---------- */
  .reveal {
    opacity: 0; transform: translateY(32px); filter: blur(10px);
    transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease);
    transition-delay: var(--d, 0s);
  }
  .reveal.in { opacity: 1; transform: none; filter: none; }
  
  /* ---------- Phone ---------- */
  .device-wrap { perspective: 1800px; position: relative; }
  .device {
    position: relative;
    width: 300px;
    aspect-ratio: 9 / 19.5;
    border-radius: 56px;
    padding: 10px;
    background: linear-gradient(135deg, #a9a59c 0%, #4b4a46 14%, #22211f 30%, #74716a 48%, #2b2a27 66%, #8f8b82 84%, #3a3936 100%);
    box-shadow:
      inset 0 0 0 1.5px rgba(255,255,255,.22),
      inset 0 0 0 3px #050505,
      0 80px 140px -50px rgba(0,0,0,.45);
    transform-style: preserve-3d;
    transition: transform .9s var(--ease);
    will-change: transform;
  }
  .device::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    background: linear-gradient(115deg, rgba(255,255,255,.18), transparent 30%, transparent 70%, rgba(255,255,255,.08));
    pointer-events: none; z-index: 5;
  }
  .btn-side { position: absolute; background: linear-gradient(90deg, #5a5852, #2a2925); border-radius: 3px; }
  .btn-side.s1 { left: -3px; top: 20%; width: 3px; height: 6%; }
  .btn-side.s2 { left: -3px; top: 29%; width: 3px; height: 10%; }
  .btn-side.s3 { left: -3px; top: 41%; width: 3px; height: 10%; }
  .btn-side.s4 { right: -3px; top: 31%; width: 3px; height: 13%; background: linear-gradient(270deg, #5a5852, #2a2925); }
  .screen { position: relative; width: 100%; height: 100%; border-radius: 46px; overflow: hidden; background: var(--surface); }
  .island {
    position: absolute; top: 17px; left: 50%; transform: translateX(-50%);
    width: 92px; height: 27px; border-radius: 20px; background: #000; z-index: 4;
  }
  .screen img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    opacity: 0; transition: opacity .6s var(--ease); z-index: 2;
  }
  .screen img.ok { opacity: 1; }
  .ph {
    position: absolute; inset: 0; z-index: 1;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
    padding: 1.5rem; text-align: center;
    font-size: .8rem; color: var(--placeholder);
    background: var(--surface);
  }
  .ph b { color: var(--muted); font-weight: 500; font-size: .9rem; }
  
  /* ---------- Glass chips ---------- */
  .glass {
    display: inline-flex; align-items: center; gap: .65rem;
    padding: .5rem 1.1rem .5rem .5rem;
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px -22px var(--shadow);
    font-size: .92rem; font-weight: 500; white-space: nowrap;
  }
  .glass .ico {
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--button); color: var(--on-button);
    display: grid; place-items: center; font-size: .85rem; font-weight: 700;
  }
  
  /* ---------- Hero ---------- */
  .hero { min-height: 100vh; padding: 9.5rem 0 0; text-align: center; overflow: hidden; position: relative; }
  .hero::before {
    content: ""; position: absolute; left: 50%; top: 58%;
    width: 900px; height: 900px; transform: translate(-50%, -50%);
    background: radial-gradient(circle, var(--mint), transparent 62%);
    opacity: .6; pointer-events: none;
  }
  .hero .kicker { margin-bottom: 1.4rem; }
  .hero .display { max-width: 12ch; margin-inline: auto; }
  .hero .body-lg { margin: 1.6rem auto 0; }
  .hero .cta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: 2.1rem; }
  .hero-stage { position: relative; margin-top: 4.5rem; height: 600px; display: flex; justify-content: center; align-items: flex-end; }
  #heroDevice { will-change: transform; transform: rotateX(6deg) rotateY(-20deg) rotateZ(-14deg); }
  .hero-stage .chip { position: absolute; z-index: 3; }
  .chip.c1 { left: 4%; top: 36%; }
  .chip.c2 { right: 3%; top: 20%; }
  .chip.c3 { right: 10%; bottom: 14%; }
  
  /* ---------- Sticky story ---------- */
  .story { position: relative; height: 340vh; margin-top: 8rem; }
  .story-sticky {
    position: sticky; top: 0; height: 100vh;
    display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem;
    width: min(100% - 3rem, var(--max)); margin-inline: auto;
  }
  .story-copy .h2 { margin: 1.1rem 0 2.2rem; }
  .steps { position: relative; min-height: 220px; }
  .step {
    position: absolute; top: 0; left: 0; right: 0;
    opacity: 0; transform: translateY(16px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
  }
  .step.active { opacity: 1; transform: none; }
  .step h3 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 500; letter-spacing: -.03em; margin-bottom: .6rem; }
  .step p { color: var(--muted); font-size: 1.05rem; max-width: 26rem; }
  .progress { display: flex; gap: .45rem; margin-top: 2.6rem; }
  .progress span { height: 3px; width: 34px; border-radius: 3px; background: var(--track); transition: background .5s, width .5s var(--ease); }
  .progress span.on { background: var(--button); width: 58px; }
  .story-device { display: flex; justify-content: center; }
  .story-device .device { width: 290px; }
  
  /* ---------- Statement ---------- */
  .statement { padding: 9rem 0 6rem; }
  .statement p { font-size: clamp(2.2rem, 5.6vw, 4.6rem); line-height: 1.08; font-weight: 500; letter-spacing: -.04em; max-width: 22ch; }
  .statement .w { transition: opacity .35s linear; opacity: .18; }
  
  /* ---------- Shared ---------- */
  .shared { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; padding: 4rem 0 6rem; }
  .shared .body-lg { margin-top: 1.2rem; }
  .draft-stage { position: relative; display: flex; justify-content: center; perspective: 1400px; }
  .draft-card {
    width: min(100%, 380px);
    padding: 1.6rem;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: 0 50px 100px -50px var(--shadow);
    transition: transform .8s var(--ease);
    transform-style: preserve-3d;
  }
  .draft-card .head {
    display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted);
    padding-bottom: 1rem; margin-bottom: 1.1rem; border-bottom: 1px solid var(--line);
  }
  .draft-card .head strong { color: var(--text); font-weight: 500; }
  .draft-card .subj { font-weight: 600; margin-bottom: .6rem; }
  .draft-card p { color: var(--muted); font-size: .95rem; margin-bottom: .75rem; }
  .draft-card .foot {
    margin-top: 1.4rem; padding: .7rem .9rem; border-radius: 12px;
    background: var(--mint); color: var(--text); font-size: .8rem;
  }
  
  /* ---------- Rows ---------- */
  .rows { border-top: 1px solid var(--line); }
  .row {
    display: flex; justify-content: space-between; align-items: center; gap: 2rem;
    padding: 2.4rem 0; border-bottom: 1px solid var(--line);
    transition: padding .6s var(--ease);
  }
  .row:hover { padding-left: 1rem; }
  .row h3 { font-size: clamp(2rem, 4.8vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; }
  .row .tag { color: var(--muted); font-size: .95rem; max-width: 16rem; text-align: right; }
  .row .tag::before { content: "✓ "; color: var(--green); font-weight: 700; }
  
  /* ---------- About ---------- */
  .about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1rem; padding: 6rem 0 0; }
  .card {
    padding: 2.2rem; border-radius: 28px;
    background: var(--surface); border: 1px solid var(--line);
    transition: transform .7s var(--ease), border-color .5s;
  }
  .card:hover { transform: translateY(-6px); border-color: var(--muted); }
  .card h2 { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; margin-bottom: 1rem; }
  .card p { color: var(--muted); margin-bottom: 1rem; }
  .card p:last-child { margin-bottom: 0; }
  .card a.mail { color: var(--button); border-bottom: 1px solid var(--button); }
  
  /* ---------- Footer ---------- */
  footer { margin-top: 7rem; border-top: 1px solid var(--line); padding: 2.4rem 0 3rem; font-size: .8rem; color: var(--muted); }
  footer .row-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
  footer .links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
  footer .links a:hover { color: var(--text); }
  footer .note { margin-top: 1.2rem; }
  
  /* ---------- Responsive ---------- */
  @media (max-width: 960px) {
    .story { height: auto; margin-top: 6rem; }
    .story-sticky { position: static; height: auto; grid-template-columns: 1fr; gap: 3rem; padding: 2rem 0; }
    .step { position: static; opacity: 1; transform: none; margin-bottom: 2rem; }
    .steps { min-height: 0; }
    .progress { display: none; }
    .shared { grid-template-columns: 1fr; gap: 3rem; }
    .about { grid-template-columns: 1fr; }
    .row .tag { display: none; }
  }
  @media (max-width: 560px) {
    .hero-stage { height: 520px; }
    .device { width: 250px; }
    .story-device .device { width: 250px; }
    .chip.c1 { left: 0; top: 30%; }
    .chip.c2 { right: 0; top: 18%; }
    .chip.c3 { display: none; }
    .glass { font-size: .82rem; }
    .hero .cta a { width: 100%; justify-content: center; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; filter: none; }
    .statement .w { opacity: 1 !important; }
    .step { opacity: 1; transform: none; }
  }
  /* Cenlume legal pages: privacy, terms, delete account.
     Tokens mirror the landing page and getColors() from the Android app.
     bg and surface are placeholders until app-themes.ts values are shared. */
  
  :root {
    --bg: #F7F8F6;
    --surface: #FFFFFF;
    --surface-alt: #EEEAF6;
    --text: #0F2B21;
    --muted: #6F7F79;
    --line: #EEF1EF;
    --button: #8976B5;
    --hero: #8976B5;
    --placeholder: #A3B0AA;
    --on-button: #FFFFFF;
    --green: #2E7D5B;
    --red: #D32F2F;
    --mint: #EEEAF6;
    --track: #E4EAE7;
    --glass: rgba(236, 241, 238, .85);
    --glass-border: rgba(255, 255, 255, .9);
    --shadow: #000000;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  }
  
  :root[data-theme="dark"] {
    --bg: #14120F;
    --surface: #211F1C;
    --surface-alt: #302D29;
    --text: #F5F1EB;
    --muted: #AAA198;
    --line: #393530;
    --button: #B0A69A;
    --hero: #211F1C;
    --placeholder: #82796F;
    --on-button: #211F1C;
    --green: #58B88C;
    --red: #E05252;
    --mint: #39332D;
    --track: #393530;
    --glass: rgba(33, 31, 28, .88);
    --glass-border: rgba(245, 241, 235, .10);
  }
  
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #14120F;
      --surface: #211F1C;
      --surface-alt: #302D29;
      --text: #F5F1EB;
      --muted: #AAA198;
      --line: #393530;
      --button: #B0A69A;
      --hero: #211F1C;
      --placeholder: #82796F;
      --on-button: #211F1C;
      --green: #58B88C;
      --red: #E05252;
      --mint: #39332D;
      --track: #393530;
      --glass: rgba(33, 31, 28, .88);
      --glass-border: rgba(245, 241, 235, .10);
    }
  }
  
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  
  body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: background .6s var(--ease), color .6s var(--ease);
  }
  
  a { color: var(--button); text-decoration: none; transition: color .25s; }
  a:hover { color: var(--text); }
  :focus-visible { outline: 2px solid var(--button); outline-offset: 4px; border-radius: 8px; }
  
  /* ---------- Document ---------- */
  .document {
    width: min(100% - 3rem, 720px);
    margin: clamp(7.5rem, 13vw, 9rem) auto 0;
    padding-bottom: 2rem;
  }
  
  .eyebrow {
    font-size: .75rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 1.1rem;
  }
  
  .document h1 {
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -.045em;
    margin-bottom: 1rem;
  }
  
  .document h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -.01em;
    margin: 2.6rem 0 .7rem;
    color: var(--text);
  }
  
  .document p {
    color: var(--text);
    opacity: .88;
    margin-bottom: 1rem;
    font-size: 1rem;
  }
  
  .document p a,
  .document li a {
    color: var(--button);
    border-bottom: 1px solid color-mix(in srgb, var(--button) 40%, transparent);
    transition: border-color .25s;
  }
  .document p a:hover,
  .document li a:hover { border-color: var(--button); color: var(--text); }
  
  .document strong { font-weight: 600; color: var(--text); }
  
  .muted { color: var(--muted) !important; opacity: 1 !important; font-size: .92rem; }
  
  .lead {
    font-size: clamp(1.1rem, 1.7vw, 1.3rem);
    color: var(--muted) !important;
    opacity: 1 !important;
    line-height: 1.5;
    margin-bottom: 2rem;
    max-width: 36rem;
  }
  
  .document ul {
    list-style: none;
    margin: .4rem 0 1.2rem;
    display: grid;
    gap: .7rem;
  }
  .document ul li {
    position: relative;
    padding-left: 1.4rem;
    color: var(--text);
    opacity: .88;
  }
  .document ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--button);
  }
  
  /* ---------- Cards (delete account page) ---------- */
  .card {
    margin-top: 1.25rem;
    padding: 1.8rem;
    border-radius: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    transition: transform .6s var(--ease), border-color .4s;
  }
  .card:hover { transform: translateY(-3px); border-color: var(--muted); }
  .card h2 { margin-top: 0; }
  .card p:last-child, .card ul:last-child { margin-bottom: 0; }
  
  /* ---------- Button ---------- */
  .button {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .85rem 1.4rem;
    border-radius: 999px;
    background: var(--button);
    color: var(--on-button) !important;
    font-weight: 600;
    font-size: .95rem;
    border: none;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  }
  .button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 16px 36px -14px var(--shadow);
    color: var(--on-button) !important;
  }
  
  /* ---------- Footer ---------- */
  .site-footer {
    width: min(100% - 3rem, 720px);
    margin: 5rem auto 0;
    padding: 2.2rem 0 3rem;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .8rem 1.5rem;
    font-size: .82rem;
    color: var(--muted);
  }
  .site-footer a { color: var(--muted); }
  .site-footer a:hover { color: var(--text); }
  
  /* ---------- Responsive ---------- */
  @media (max-width: 560px) {
    .card { padding: 1.4rem; }
    .button { width: 100%; justify-content: center; }
  }
  
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  }
  
  /* ---------- Unified nav (all pages) ---------- */
  .nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    width: min(100% - 2rem, 1040px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .4rem .4rem .4rem .8rem;
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px -26px var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: box-shadow .4s var(--ease);
  }
  
  .brand {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .2rem .4rem;
    font-weight: 600;
    font-size: .95rem;
    letter-spacing: -.01em;
    color: var(--text);
  }
  .mark,
  .brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: var(--button);
    color: var(--on-button);
    font-size: .8rem;
    font-weight: 700;
    transition: transform .6s var(--ease);
  }
  .brand:hover .mark,
  .brand:hover .brand-mark { transform: rotate(-12deg) scale(1.06); }
  
  /* Segmented link group with a highlighted current page */
  .nav-links {
    display: flex;
    align-items: center;
    gap: .15rem;
    padding: .25rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text) 5%, transparent);
  }
  .nav-links a {
    padding: .45rem .9rem;
    border-radius: 999px;
    font-size: .84rem;
    font-weight: 500;
    color: var(--muted);
    white-space: nowrap;
    transition: color .3s, background .3s, box-shadow .3s;
  }
  .nav-links a:hover { color: var(--text); }
  .nav-links a[aria-current="page"] {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 0 0 1px var(--line);
  }
  
  .nav-right { display: flex; align-items: center; gap: .4rem; }
  
  .theme-btn,
  .menu-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--text);
    cursor: pointer;
    transition: transform .5s var(--ease), background .3s;
  }
  .theme-btn:hover { background: var(--surface); transform: rotate(18deg); }
  .theme-btn svg,
  .menu-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  
  /* Show the sun in dark mode and the moon in light mode */
  .theme-btn .i-sun { display: none; }
  .theme-btn .i-moon { display: block; }
  :root[data-theme="dark"] .theme-btn .i-sun { display: block; }
  :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-btn .i-sun { display: block; }
    :root:not([data-theme="light"]) .theme-btn .i-moon { display: none; }
  }
  
  .nav-btn {
    padding: .6rem 1.1rem;
    border-radius: 999px;
    background: var(--button);
    color: var(--on-button);
    font-size: .84rem;
    font-weight: 600;
    transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  }
  .nav-btn:hover { transform: scale(1.04); box-shadow: 0 10px 24px -12px var(--shadow); color: var(--on-button); }
  
  .menu-btn { display: none; }
  
  @media (max-width: 1020px) {
    .menu-btn { display: grid; }
    .nav-links {
      position: absolute;
      top: calc(100% + 10px);
      left: 0;
      right: 0;
      display: none;
      flex-direction: column;
      align-items: stretch;
      gap: .15rem;
      padding: .5rem;
      border-radius: 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      box-shadow: 0 24px 48px -24px var(--shadow);
    }
    .nav.open .nav-links { display: flex; }
    .nav-links a { padding: .8rem 1rem; font-size: .95rem; border-radius: 16px; }
  }
  
  @media (max-width: 560px) {
    .nav-btn { display: none; }
    .nav { padding-left: .6rem; }
  }
  
  /* ---------- Sky background (all pages) ---------- */
  /* Fixed behind content. Sky and cloud colors come from tokens, so light mode is a
     daytime sky and dark mode is a warm night tint. */
  :root {
    --sky-top: #bfe0f5;
    --sky-mid: #e8f4fc;
    --cloud: rgba(255, 255, 255, .95);
  }
  :root[data-theme="dark"] {
    --sky-top: #2a2620;
    --sky-mid: #1c1a16;
    --cloud: rgba(245, 241, 235, .05);
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --sky-top: #2a2620;
      --sky-mid: #1c1a16;
      --cloud: rgba(245, 241, 235, .05);
    }
  }
  
  body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80vh;
    z-index: -2;
    pointer-events: none;
    background:
      radial-gradient(circle, color-mix(in srgb, var(--text) 10%, transparent) 1px, transparent 1.6px) 0 0 / 32px 32px,
      linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 55%, var(--bg) 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70vh;
    z-index: -1;
    pointer-events: none;
    filter: blur(14px);
    -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 45%, transparent 100%);
    background:
      radial-gradient(ellipse 260px 110px at 6% 58%, var(--cloud), transparent 70%),
      radial-gradient(ellipse 320px 130px at 26% 74%, var(--cloud), transparent 70%),
      radial-gradient(ellipse 280px 120px at 74% 66%, var(--cloud), transparent 70%),
      radial-gradient(ellipse 360px 140px at 94% 52%, var(--cloud), transparent 70%),
      radial-gradient(ellipse 200px 90px at 52% 88%, var(--cloud), transparent 70%);
  }
  
  @media (max-width: 560px) {
    body::before { height: 70vh; }
    body::after { height: 60vh; }
  }
  
  /* ---------- Store row (hero) ---------- */
  .store-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .9rem;
    margin-top: 2.1rem;
  }
  .store-label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .95rem;
    color: var(--muted);
  }
  .store-label svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
  }
  .store-pill {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    padding: .45rem;
    border-radius: 999px;
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(170%);
    -webkit-backdrop-filter: blur(20px) saturate(170%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 36px -22px var(--shadow);
  }
  .store-btn {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: transform .4s var(--ease), background .3s;
  }
  .store-btn:hover { transform: translateY(-3px) scale(1.04); background: var(--surface); }
  .store-btn svg { width: 28px; height: 28px; }
  .store-divider {
    width: 1px;
    height: 28px;
    margin: 0 .35rem;
    background: var(--line);
  }
  .store-btn.is-soon { opacity: .6; cursor: default; }
  .store-btn.is-soon:hover { transform: none; background: transparent; }
  .soon-tag {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    padding: .1rem .5rem;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .04em;
    white-space: nowrap;
  }
  
  /* ---------- Store row v2: wider, shorter, Soon beside the App Store icon ---------- */
  .store-pill {
    gap: .3rem;
    padding: .35rem;
    min-width: 220px;
    justify-content: center;
  }
  .store-btn {
    width: auto;
    height: 46px;
    padding: 0 1.3rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
  }
  .store-btn svg { width: 24px; height: 24px; }
  .store-divider { height: 22px; margin: 0 .2rem; }
  .store-btn.is-soon { gap: .55rem; padding-right: 1.1rem; }
  .soon-tag {
    position: static;
    transform: none;
    padding: .15rem .55rem;
    font-size: .66rem;
    line-height: 1.4;
  }
  
  /* Official store icons (img) inside the store row */
  .store-btn img {
    width: 24px;
    height: 24px;
    display: block;
  }
  
  /* ---------- Real logo in the nav (replaces the "C" tile) ---------- */
  .mark-img {
    width: 30px;
    height: 30px;
    display: block;
    border-radius: 9px;
    transition: transform .6s var(--ease);
  }