/* landing.css: the front door. One picture, one name, one way in.

   Owner, 2026-09-19: "The website should not just describe our product ... We don't want our idea just out
   there. Just make it a landing page with the download", and then the picture: "big text saying MONA LISA
   OVERDRIVE with an animated grecian sea background and a marble statue motif".

   So this page says the name and nothing about what the thing is. Everything here is drawn: no photograph,
   no stock art, no file to license. The sea is four wave silhouettes used as masks over theme colours, each
   drifting at its own pace; the lettering is real text filled with a generated marble; the statue and the
   columns are inline SVG in the page.

   This is the one stylesheet on the site with its own palette, because it is a painting and the design tokens
   are for interface. The colours live here, once, as variables, with a night set for the dark theme. */

:root {
  --sky-top: #173f66;
  --sky-mid: #4f8fb8;
  --sky-low: #cfe0dc;
  --sky-glow: #f6e6c6;
  --sun: #fff4d8;
  --sea-far: #8fc3cf;
  --sea-1: #5fa6bd;
  --sea-2: #3d87a6;
  --sea-3: #24688d;
  --sea-4: #124a70;
  --sea-deep: #0b3352;
  --foam: rgb(255 255 255 / 0.55);
  --marble-hi: #fbf9f4;
  --marble-mid: #e4dfd3;
  --marble-lo: #b9b2a3;
  --marble-deep: #7d7667;
  --rock: #3c4a54;
  --ink-on-sky: #f7f4ec;
  --ink-soft: rgb(247 244 236 / 0.82);
  --carve: rgb(6 26 46 / 0.55);
  --btn-ink: #12344f;
}
:root[data-theme="dark"] {
  --sky-top: #050b16;
  --sky-mid: #0f2440;
  --sky-low: #24466a;
  --sky-glow: #3a5f86;
  --sun: #e9f0ff;
  --sea-far: #2b4f73;
  --sea-1: #1f3f60;
  --sea-2: #173350;
  --sea-3: #102740;
  --sea-4: #0a1c30;
  --sea-deep: #050f1c;
  --foam: rgb(210 228 255 / 0.30);
  --marble-hi: #eef1f6;
  --marble-mid: #c9cfd9;
  --marble-lo: #8d96a5;
  --marble-deep: #4d5668;
  --rock: #121a24;
  --carve: rgb(0 0 0 / 0.7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sky-top: #050b16; --sky-mid: #0f2440; --sky-low: #24466a; --sky-glow: #3a5f86; --sun: #e9f0ff;
    --sea-far: #2b4f73; --sea-1: #1f3f60; --sea-2: #173350; --sea-3: #102740; --sea-4: #0a1c30;
    --sea-deep: #050f1c; --foam: rgb(210 228 255 / 0.30);
    --marble-hi: #eef1f6; --marble-mid: #c9cfd9; --marble-lo: #8d96a5; --marble-deep: #4d5668; --rock: #121a24;
    --carve: rgb(0 0 0 / 0.7);
  }
}

html, body { height: 100%; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; padding: 12px 16px; border-radius: 8px;
        background: var(--marble-hi); color: var(--btn-ink); font: 600 15px/1 "IBM Plex Sans", system-ui, sans-serif; }
.skip:focus { top: 12px; }
body.landing { margin: 0; background: var(--sea-deep); color: var(--ink-on-sky); overflow-x: hidden; }

.scene {
  position: relative; min-height: 100svh; isolation: isolate; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(46% 24% at 30% 69%, var(--sky-glow) 0%, transparent 72%),
    linear-gradient(to bottom, var(--sky-top) 0%, var(--sky-mid) 40%, var(--sky-low) 64%, var(--sky-glow) 69.5%);
}

/* ---------- the top line: a mark, and the way in ---------- */
.top { position: relative; z-index: 6; display: flex; align-items: center; justify-content: space-between;
       padding: 20px clamp(20px, 4vw, 48px); }
.top a { color: var(--ink-on-sky); text-decoration: none; font: 500 15px/1 "IBM Plex Sans", system-ui, sans-serif;
         letter-spacing: 0.04em; }
.top .mark { display: inline-flex; align-items: center; gap: 10px; }
.top .mark img { width: 30px; height: 30px; border-radius: 7px; }
.top nav { display: flex; align-items: center; gap: 8px; }
.top nav a { padding: 12px 16px; border-radius: 999px; }
.top nav a:hover, .top nav a:focus-visible { background: rgb(255 255 255 / 0.14); }
.top .theme-toggle { width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgb(255 255 255 / 0.35);
                     background: rgb(255 255 255 / 0.08); color: var(--ink-on-sky); cursor: pointer;
                     display: inline-grid; place-items: center; }
.top .theme-toggle:hover { background: rgb(255 255 255 / 0.18); }

/* ---------- the name ---------- */
.name { position: relative; z-index: 5; align-self: start; text-align: center;
        padding: clamp(8px, 3vh, 40px) 16px 0; }
.name h1 {
  margin: 0; font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif; font-weight: 700;
  font-size: clamp(44px, min(10.4vw, 19vh), 184px); line-height: 0.92; letter-spacing: 0.035em; text-transform: uppercase;
  /* real text, filled with marble: the veins are generated noise, so there is no image file to fetch */
  color: var(--marble-hi);
  background-color: var(--marble-hi);
  background-image:
    linear-gradient(115deg, rgb(255 255 255 / 0.55) 0%, transparent 38%, rgb(60 70 90 / 0.22) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='420'%3E%3Cfilter id='v' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0045 0.016' numOctaves='6' seed='23'/%3E%3CfeColorMatrix type='matrix' values='1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 1'/%3E%3CfeComponentTransfer%3E%3CfeFuncR type='table' tableValues='0.99 0.97 0.74 0.95 0.99 0.98 0.80 0.96 0.99'/%3E%3CfeFuncG type='table' tableValues='0.98 0.96 0.73 0.94 0.98 0.97 0.79 0.95 0.98'/%3E%3CfeFuncB type='table' tableValues='0.95 0.93 0.72 0.92 0.96 0.95 0.78 0.93 0.96'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3C/svg%3E");
  background-size: 100% 100%, 900px 420px;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  /* carved: a hair of light above, the weight of the stone below */
  filter: drop-shadow(0 -1px 0 rgb(255 255 255 / 0.55)) drop-shadow(0 3px 0 var(--marble-lo))
          drop-shadow(0 6px 1px rgb(40 50 66 / 0.55)) drop-shadow(0 22px 30px var(--carve));
}
.name h1 span { display: block; }
.name h1 .over { letter-spacing: 0.085em; }

.meander { display: block; width: min(560px, 70vw); height: 18px; margin: clamp(18px, 3.2vh, 34px) auto 0;
           color: var(--ink-on-sky); opacity: 0.85; }
.whisper { margin: clamp(12px, 2vh, 20px) 0 0; font: 500 clamp(13px, 1.25vw, 17px)/1.4 "IBM Plex Mono", ui-monospace, monospace;
           letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-soft); }

.ways { margin-top: clamp(20px, 3.6vh, 40px); display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.ways a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px;
          border-radius: 999px; text-decoration: none; font: 600 16px/1 "IBM Plex Sans", system-ui, sans-serif;
          letter-spacing: 0.03em; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.ways .stone { color: var(--btn-ink);
               background: linear-gradient(180deg, var(--marble-hi), var(--marble-mid));
               box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 -2px 0 rgb(120 112 96 / 0.35) inset, 0 12px 26px rgb(6 26 46 / 0.35); }
.ways .stone:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 -2px 0 rgb(120 112 96 / 0.35) inset, 0 18px 32px rgb(6 26 46 / 0.42); }
.ways .glass { color: var(--ink-on-sky); border: 1px solid rgb(255 255 255 / 0.7); background: rgb(12 44 74 / 0.42);
               backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ways .glass:hover { background: rgb(12 44 74 / 0.6); transform: translateY(-2px); }
.ways a:focus-visible, .top a:focus-visible, .top button:focus-visible, .foot a:focus-visible {
  outline: 3px solid var(--sun); outline-offset: 3px; }

/* ---------- the sun and its road on the water ---------- */
.sun { position: absolute; z-index: 1; left: 30%; top: 68%; width: clamp(90px, 11vw, 190px); aspect-ratio: 1;
       transform: translate(-50%, -50%); border-radius: 50%;
       background: radial-gradient(circle, var(--sun) 0 46%, rgb(255 244 216 / 0.55) 58%, transparent 72%);
       filter: blur(0.4px); }
.road { position: absolute; z-index: 3; left: 30%; top: 70.5%; bottom: 0; width: clamp(140px, 20vw, 360px);
        transform: translateX(-50%); pointer-events: none; mix-blend-mode: screen; opacity: 0.6; filter: blur(0.7px);
        background:
          repeating-linear-gradient(to bottom, rgb(255 246 222 / 0.0) 0 7px, rgb(255 246 222 / 0.55) 7px 9px, rgb(255 246 222 / 0) 9px 19px);
        -webkit-mask-image: radial-gradient(50% 100% at 50% 0%, #000 0%, transparent 78%);
                mask-image: radial-gradient(50% 100% at 50% 0%, #000 0%, transparent 78%);
        animation: glitter 5.5s ease-in-out infinite alternate; }

/* ---------- the sea: four silhouettes, each a mask over a colour of the theme ---------- */
.sea { position: absolute; z-index: 2; left: 0; right: 0; top: 69.5%; bottom: 0;
       background: linear-gradient(to bottom, var(--sea-far) 0%, var(--sea-1) 18%, var(--sea-3) 60%, var(--sea-deep) 100%); }
.wave { position: absolute; left: 0; width: calc(100% + 1500px); height: 100%; will-change: transform;
        -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x; -webkit-mask-position: 0 0; mask-position: 0 0;
        /* one period is 1200px wide and starts and ends on the same slope, so the seam cannot be seen */
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C200 0 400 0 600 70 C800 140 1000 140 1200 70 V900 H0 Z'/%3E%3C/svg%3E");
                mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1200' height='900' preserveAspectRatio='none'%3E%3Cpath d='M0 70 C200 0 400 0 600 70 C800 140 1000 140 1200 70 V900 H0 Z'/%3E%3C/svg%3E"); }
.wave::after { /* the line of light along each crest */
  content: ""; position: absolute; inset: 0; opacity: 0.9;
  background: linear-gradient(to bottom, var(--foam) 0, transparent 22px); }
.wave.w1 { top: 2%;  background: var(--sea-1); -webkit-mask-size: 760px 100%;  mask-size: 760px 100%;  animation: drift-760 38s linear infinite; opacity: 0.9; }
.wave.w2 { top: 12%; background: var(--sea-2); -webkit-mask-size: 940px 100%;  mask-size: 940px 100%;  animation: drift-940 29s linear infinite reverse; }
.wave.w3 { top: 27%; background: var(--sea-3); -webkit-mask-size: 1200px 100%; mask-size: 1200px 100%; animation: drift-1200 22s linear infinite; }
.wave.w4 { top: 50%; background: linear-gradient(to bottom, var(--sea-4), var(--sea-deep)); -webkit-mask-size: 1500px 100%; mask-size: 1500px 100%; animation: drift-1500 17s linear infinite reverse; }
.bob { position: absolute; inset: 0; animation: bob 7s ease-in-out infinite alternate; }
.bob.b2 { animation-duration: 9s; animation-delay: -3s; }
.bob.b3 { animation-duration: 6s; animation-delay: -1.5s; }
.bob.b4 { animation-duration: 8s; animation-delay: -4s; }

/* ---------- marble, standing in the water ---------- */
.stone-art { position: absolute; z-index: 3; bottom: 0; pointer-events: none;
             filter: drop-shadow(0 18px 22px rgb(6 26 46 / 0.35)); }
.statue { right: clamp(6px, 6vw, 120px); height: min(52vh, 40vw); bottom: 10%; }
.columns { left: clamp(-20px, 4vw, 90px); height: min(36vh, 30vw); bottom: 14%; }
.stone-art svg { height: 100%; width: auto; display: block; overflow: visible; }
.haze { position: absolute; z-index: 1; left: 0; right: 0; top: 62%; height: 12%; pointer-events: none;
        background: linear-gradient(to bottom, transparent, rgb(255 255 255 / 0.20) 45%, transparent); }
.front { z-index: 4; }   /* the nearest wave passes in front of the rock and the column bases */

/* ---------- the foot ---------- */
.foot { position: relative; z-index: 6; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; justify-content: center;
        padding: 18px 20px 22px; font: 500 13px/1.5 "IBM Plex Sans", system-ui, sans-serif; color: var(--ink-soft);
        letter-spacing: 0.03em; }
.foot a { color: var(--ink-on-sky); text-decoration: none; padding: 10px 6px; }
.foot a:hover { text-decoration: underline; text-underline-offset: 4px; }

@keyframes drift-760  { to { transform: translate3d(-760px, 0, 0); } }
@keyframes drift-940  { to { transform: translate3d(-940px, 0, 0); } }
@keyframes drift-1200 { to { transform: translate3d(-1200px, 0, 0); } }
@keyframes drift-1500 { to { transform: translate3d(-1500px, 0, 0); } }
@keyframes bob { from { transform: translateY(-5px); } to { transform: translateY(7px); } }
@keyframes glitter { from { background-position-y: 0; opacity: 0.55; } to { background-position-y: 19px; opacity: 0.9; } }

@media (max-width: 720px) {
  .statue { height: 34vh; right: -4px; bottom: 9%; }
  .columns { height: 25vh; left: -26px; bottom: 12%; }
  .sun, .road { left: 38%; }
  .name { padding-top: 6vh; }
  .name h1 { font-size: clamp(40px, 13.4vw, 96px); }
  .top nav a.hide-xs { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wave, .bob, .road { animation: none; }
}

/* ---------- the download page: the same sea, and one slab of marble with the way in on it ----------
   Signed out, it says two sentences and offers the sign-in. Everything about a build - its version, its size,
   what is in it - arrives from GET /v1/download, which answers invited accounts only, so none of it is in
   this page's source for a stranger to read. */
.scene.quiet { grid-template-rows: auto 1fr auto; }
.scene.quiet .sun { opacity: 0.85; }
.slab-wrap { position: relative; z-index: 5; display: grid; place-items: start center; padding: clamp(8px, 4vh, 48px) 16px 40px; }
.slab { width: min(680px, 100%); border-radius: 18px; padding: clamp(22px, 4vw, 40px);
        color: var(--btn-ink);
        background: linear-gradient(135deg, rgb(255 255 255 / 0.96), rgb(244 240 232 / 0.94) 55%, rgb(226 221 210 / 0.94));
        box-shadow: 0 1px 0 rgb(255 255 255 / 0.9) inset, 0 -3px 0 rgb(120 112 96 / 0.28) inset, 0 30px 60px rgb(6 26 46 / 0.45); }
:root[data-theme="dark"] .slab { color: #0e2236; }
.slab h1 { margin: 0 0 6px; font: 700 clamp(34px, 5vw, 52px)/1 "Cormorant Garamond", Georgia, serif; letter-spacing: 0.02em; }
.slab h2 { margin: 26px 0 8px; font: 600 13px/1.2 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: 0.2em; text-transform: uppercase; color: #4b6074; }
.slab p, .slab li { font: 400 16px/1.6 "IBM Plex Sans", system-ui, sans-serif; color: #1f3a52; }
.slab p { margin: 8px 0 0; }
.slab .lede { font-size: 18px; color: #12344f; }
.slab a { color: #12507e; text-underline-offset: 3px; }
.slab ol, .slab ul { margin: 6px 0 0; padding-left: 22px; }
.slab li + li { margin-top: 6px; }
.slab kbd { font: 600 13px/1 "IBM Plex Mono", ui-monospace, monospace; padding: 3px 7px; border-radius: 6px;
            border: 1px solid #b9b2a3; background: #fff; }
.slab code { font: 500 14px/1.4 "IBM Plex Mono", ui-monospace, monospace; word-break: break-all; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 14px 0 0; padding: 0; list-style: none; }
.facts li { margin: 0; font: 500 14px/1.3 "IBM Plex Mono", ui-monospace, monospace; color: #35506a; }
.facts b { display: block; font: 600 18px/1.3 "IBM Plex Sans", system-ui, sans-serif; color: #12344f; }
.slab .go { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 30px; margin-top: 20px;
            border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
            font: 600 17px/1 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: 0.02em; color: #fbf9f4;
            background: linear-gradient(180deg, #1f5d8c, #123f63); box-shadow: 0 12px 24px rgb(6 26 46 / 0.35); }
.slab .go:hover { transform: translateY(-1px); }
.slab .go[disabled] { opacity: 0.6; cursor: progress; }
.slab .go:focus-visible, .slab a:focus-visible { outline: 3px solid #12507e; outline-offset: 3px; }
.slab .said { margin-top: 14px; font-weight: 500; }
.slab .said[data-tone="danger"] { color: #8a2a1c; }
.slab details { margin-top: 14px; }
.slab summary { cursor: pointer; font: 600 14px/1.4 "IBM Plex Sans", system-ui, sans-serif; color: #12507e; }
[hidden] { display: none !important; }

/* ---------- forms on a slab: request access, and the owner's approve / deny ---------- */
.fld { margin-top: 16px; }
.fld label { display: block; font: 600 14px/1.3 "IBM Plex Sans", system-ui, sans-serif; color: #12344f; margin-bottom: 6px; }
.fld input, .fld textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 10px; border: 1px solid #b9b2a3;
  background: #fff; color: #12344f; font: 400 16px/1.5 "IBM Plex Sans", system-ui, sans-serif; }
.fld textarea { resize: vertical; min-height: 110px; }
.fld input:focus-visible, .fld textarea:focus-visible { outline: 3px solid #12507e; outline-offset: 1px; border-color: #12507e; }
.fld [aria-invalid="true"] { border-color: #8a2a1c; }
.slab .hint, .slab .small { font-size: 14px; color: #4b6074; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.slab .go.plain { background: #fff; color: #8a2a1c; border: 1px solid #d8b4ac; box-shadow: none; margin-left: 10px; }
.slab .quote { padding: 12px 16px; background: #fff; border: 1px solid #d9d3c5; border-radius: 10px; white-space: pre-wrap; }
.slab .said[data-tone="good"] { color: #1d6b3a; }
