/* © 2026 Dionis Kolaj. All rights reserved. */

/* ---------------------------------------------------------------- fonts (SIL Open Font License, self-hosted) */
@font-face { font-family: 'Bricolage'; src: url('../assets/fonts/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../assets/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Mono'; src: url('../assets/fonts/mono.woff2') format('woff2'); font-weight: 100 800; font-display: swap; }

/* ---------------------------------------------------------------- tokens: the app's own navy and blue */
:root {
  --ink: #0e1320;
  --ink-2: #141a2a;
  --ink-3: #1b2335;
  --line: #263049;
  --paper: #f3f1ea;
  --paper-2: #e6e2d6;
  --blue: #5b9dff;
  --blue-2: #9cc4ff;
  --blue-ink: #071226;
  --green: #7fd1a2;
  --amber: #f5b73c;
  --text: #e6ebf5;
  --text-2: #a9b4c8;
  --muted: #7a87a0;
  --on-paper: #141824;
  --on-paper-2: #4b5468;
  --display: 'Bricolage', 'Segoe UI', system-ui, sans-serif;
  --body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --mono: 'Mono', ui-monospace, Consolas, monospace;
  --gutter: max(20px, calc((100vw - 1240px) / 2 + 32px));
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--body); color: var(--text); background: var(--ink); line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
.skip { position: absolute; left: 50%; top: -100px; transform: translateX(-50%); background: var(--blue); color: var(--blue-ink); padding: 10px 18px; font-weight: 700; z-index: 100; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------------------------------------------------------------- the seed (the app's own character) */
.seed .s-body { fill: var(--blue); }
.seed .s-eye { fill: var(--ink); }
.seed .s-stem { stroke: var(--green); stroke-width: 2.4; stroke-linecap: round; fill: none; }
.seed .s-leaf { fill: var(--green); }
.seed .s-flower { fill: var(--amber); }

/* ---------------------------------------------------------------- header */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 68px; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; color: var(--text); transition: color .35s ease, background .35s ease; }
.bar.scrolled { background: color-mix(in srgb, var(--ink) 80%, transparent); backdrop-filter: blur(10px); }
.bar[data-tone=paper] { color: var(--on-paper); }
.bar[data-tone=paper].scrolled { background: color-mix(in srgb, var(--paper) 80%, transparent); }
.bar[data-tone=blue] { color: var(--blue-ink); }
.bar[data-tone=blue].scrolled { background: color-mix(in srgb, var(--blue) 80%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px/1 var(--display); letter-spacing: -.01em; }
.brand .seed { width: 30px; height: 30px; }
.bar-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.bar-nav a { text-decoration: none; opacity: .85; }
.bar-nav a:hover { opacity: 1; }
.bar-cta { padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px currentColor; opacity: 1 !important; }
@media (max-width: 720px) { .bar-nav a:not(.bar-cta) { display: none; } }

/* ---------------------------------------------------------------- the story */
.story { position: relative; }
.backdrop { position: sticky; top: 0; height: 100vh; margin-bottom: -100vh; overflow: hidden; z-index: 0; }
.layer { position: absolute; inset: 0; overflow: hidden; }
.t-ink { background: var(--ink); }
.t-paper { background: var(--paper); }
.t-blue { background: var(--blue); }
/* Each chapter's colour wipes in on a slant over the one before, and back out when scrolling up. */
.layer.wipe { clip-path: polygon(0 0, 0 0, -20% 100%, -20% 100%); transition: clip-path .7s var(--ease); }
.layer.wipe.in { clip-path: polygon(0 0, 120% 0, 100% 100%, -20% 100%); }
.ghost { position: absolute; left: -2vw; bottom: -4vw; font: 800 clamp(120px, 22vw, 360px)/.8 var(--display); letter-spacing: -.05em; white-space: nowrap; opacity: .07; transform: translateX(6vw); transition: transform 1.2s var(--ease); }
.layer.in .ghost { transform: translateX(0); }
.t-paper .ghost { color: var(--on-paper); }
.t-blue .ghost { color: var(--blue-ink); opacity: .1; }
.t-ink .ghost { color: var(--text); opacity: .05; }

.story-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 56px; padding: 0 var(--gutter); }
.cap { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 96px 0 64px; transition: opacity .5s ease, color .4s ease; }
.js .cap { opacity: .14; }
.js .cap.on { opacity: 1; }
.story[data-tone=paper] .cap { color: var(--on-paper); }
.story[data-tone=blue] .cap { color: var(--blue-ink); }
.cap h2 { font: 800 clamp(34px, 4.4vw, 60px)/1.02 var(--display); letter-spacing: -.025em; max-width: 13em; }
.cap p { font-size: clamp(16px, 1.25vw, 19px); max-width: 32em; color: inherit; opacity: .82; }
.tag span { display: inline-block; font: 700 12px/1.6 var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 4px 12px; background: currentColor; transform: skewX(-12deg); }
.story[data-tone=ink] .tag span { background: var(--blue); color: var(--blue-ink); }
.story[data-tone=paper] .tag span { background: var(--on-paper); color: var(--paper); }
.story[data-tone=blue] .tag span { background: var(--blue-ink); color: var(--blue); }
mark { background: none; color: var(--blue); }
.story[data-tone=paper] mark { color: #2f6fd6; }
.story[data-tone=blue] mark { color: var(--paper); }

/* the hero */
.hero { gap: 22px; }
.hero-word .word { font: 800 clamp(96px, 13vw, 200px)/.82 var(--display); letter-spacing: -.055em; }
.hero-word .word span { display: inline-block; }
.def { margin-top: 14px; font-size: clamp(18px, 1.6vw, 24px); color: var(--text-2); }
.def i { font-family: var(--mono); font-style: normal; font-size: .8em; color: var(--blue); margin-right: 4px; }
.lead { font: 700 clamp(24px, 2.6vw, 36px)/1.15 var(--display); letter-spacing: -.015em; max-width: 16em; }
.lead strong { color: var(--blue); font-weight: 800; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.small { font-size: 14px; color: var(--muted); }
.cue { margin-top: 28px; font: 700 11px/1 var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.cue::after { content: ''; display: block; width: 1px; height: 44px; margin: 12px 0 0 4px; background: linear-gradient(var(--muted), transparent); animation: cue 2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.js .hero .hero-word .word span, .js .hero .def, .js .hero .lead, .js .hero .ctas { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .hero.ready .hero-word .word span, .js .hero.ready .def, .js .hero.ready .lead, .js .hero.ready .ctas { opacity: 1; transform: none; }
.js .hero.ready .def { transition-delay: .12s; }
.js .hero.ready .lead { transition-delay: .24s; }
.js .hero.ready .ctas { transition-delay: .36s; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 22px; border-radius: 12px; font: 700 15px/1 var(--body); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--blue); color: var(--blue-ink); box-shadow: 0 10px 30px -10px rgba(91, 157, 255, .7); }
.btn.ghost-btn { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); }
.btn.ghost-btn:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn.soon { opacity: .55; pointer-events: none; }

/* ---------------------------------------------------------------- the app's window, drawn */
.window-col { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; }
.seed-big { width: 120px; height: 120px; }
.seed-big .seed { width: 100%; height: 100%; overflow: visible; }
.seed-big .seed > * { transition: opacity .5s ease, transform .6s var(--ease); transform-box: fill-box; transform-origin: 50% 100%; }
.seed-big .seed .hide { opacity: 0; transform: scale(.4); }
.seed-big.bob .seed { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.appwin { width: min(640px, 100%); border-radius: 14px; overflow: hidden; background: var(--ink); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .06); transition: transform .8s var(--ease); }
.appwin-bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--ink-2); border-bottom: 1px solid var(--line); font: 600 12px/1 var(--body); color: var(--muted); }
.appwin-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.appwin-bar span { margin-left: 10px; }
.appwin-screen { position: relative; height: 400px; overflow: hidden; color: var(--text); font-size: 13px; }
.scr { position: absolute; inset: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; opacity: 0; transform: translateY(14px); transition: opacity .45s ease, transform .6s var(--ease); }
.scr.on { opacity: 1; transform: none; }
.scr h4 { font: 700 15px/1.3 var(--display); color: var(--text); }
.scr .hint { color: var(--muted); font-size: 12px; }
.pill { display: inline-block; font: 600 11px/1 var(--body); padding: 5px 9px; border-radius: 999px; background: var(--ink-3); color: var(--text-2); }
.pill.blue { background: rgba(91, 157, 255, .16); color: var(--blue-2); }
.pill.green { background: rgba(127, 209, 162, .14); color: var(--green); }
.pill.amber { background: rgba(245, 183, 60, .12); color: var(--amber); }
.box { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.sect { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--text-2); }
.sect b { color: var(--text); font-weight: 600; }
.sect::before { content: '▸'; color: var(--blue); font-size: 11px; }
.sect.open::before { content: '▾'; }
.turn { background: rgba(127, 209, 162, .09); border: 1px solid #2b5a41; border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.turn .row { display: flex; gap: 8px; }
.mini-btn { font: 700 11px/1 var(--body); padding: 7px 10px; border-radius: 7px; background: var(--blue); color: var(--blue-ink); }
.mini-btn.ghosted { background: none; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-height: 0; }
.stream { display: flex; flex-direction: column; gap: 6px; }
.stream div { padding: 7px 9px; border-radius: 8px; background: var(--ink-2); border: 1px solid var(--line); font-size: 12px; color: var(--text-2); opacity: 0; transform: translateX(-8px); transition: opacity .4s ease, transform .5s var(--ease); }
.scr.on .stream div { opacity: 1; transform: none; }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); }
.card.top { border-color: #2c4f86; box-shadow: 0 0 0 1px #2c4f86; }
.card b { color: var(--text); font: 700 13px/1.25 var(--display); }
.score { height: 5px; border-radius: 3px; background: var(--ink-3); overflow: hidden; }
.score i { display: block; height: 100%; background: var(--blue); width: 0; transition: width 1s var(--ease) .2s; }
.scr.on .score i { width: var(--w); }
.doc { display: flex; flex-direction: column; gap: 7px; }
.doc .h { font: 700 13px/1.2 var(--display); color: var(--text); margin-top: 4px; }
.doc .ln { height: 7px; border-radius: 4px; background: var(--ink-3); }
.code { font: 12px/1.6 var(--mono); color: var(--text-2); background: #0a0e18; border: 1px solid var(--line); border-radius: 10px; padding: 12px; white-space: pre-wrap; flex: 1; overflow: hidden; }
.code b { color: var(--blue-2); font-weight: 600; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--ink-2); border: 1px solid var(--line); }
.list-row .t { flex: 1; color: var(--text); font-size: 12.5px; }
.list-row .seed { width: 18px; height: 18px; flex: none; }

/* ---------------------------------------------------------------- the sections after the story */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.wrap.narrow { max-width: 820px; }
.band { padding: 120px 0; background: var(--ink); position: relative; }
.band.why { background: var(--paper); color: var(--on-paper); }
.band.why mark { color: #2f6fd6; }
.label { font: 700 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.why .label { color: var(--on-paper-2); }
.band h2, .outro h2 { font: 800 clamp(32px, 4vw, 56px)/1.04 var(--display); letter-spacing: -.025em; max-width: 18em; }
.who { list-style: none; margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.who li { padding: 22px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; transition: transform .3s var(--ease), border-color .3s ease; }
.who li:hover { transform: translateY(-4px); border-color: #2c4f86; }
.who b { font: 800 20px/1.1 var(--display); }
.who span { color: var(--text-2); font-size: 15px; }
.why-grid { margin-top: 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px 40px; }
.why-grid b { font: 800 21px/1.15 var(--display); display: block; margin-bottom: 6px; }
.why-grid p { color: var(--on-paper-2); }

.outro { padding: 140px 0 120px; background: radial-gradient(1200px 500px at 50% 0%, rgba(91, 157, 255, .16), transparent 70%), var(--ink); text-align: center; }
.outro h2 { margin: 0 auto; }
.price-row { margin: 56px auto 22px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; max-width: 820px; text-align: left; }
.price-card { padding: 28px; border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.price-card.main { border-color: #2c4f86; box-shadow: 0 30px 80px -40px rgba(91, 157, 255, .6); }
.price-card .label { margin: 0; }
.price { font: 800 48px/1 var(--display); letter-spacing: -.03em; }
.price small { font: 600 15px/1 var(--body); color: var(--muted); letter-spacing: 0; }
.price-card p:not(.label):not(.price) { color: var(--text-2); flex: 1; }
.price-card .btn { justify-content: center; }
.center { text-align: center; }
.facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 34px; }
.facts li { font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { margin-top: 36px; border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 700 19px/1.3 var(--display); display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--blue); font-size: 24px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 46em; }
.faq a { color: var(--blue-2); }

.foot { border-top: 1px solid var(--line); padding: 34px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

/* the legal pages */
.legal { padding: 130px 0 90px; }
.legal h1 { font: 800 clamp(36px, 5vw, 56px)/1.05 var(--display); letter-spacing: -.025em; margin-bottom: 10px; }
.legal h2 { font: 800 22px/1.2 var(--display); margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.legal pre { white-space: pre-wrap; font: 14px/1.7 var(--body); color: var(--text-2); }
.legal a { color: var(--blue-2); }

/* ---------------------------------------------------------------- narrow screens: no sticky window, each chapter shows its own screen */
.cap .cap-shot { display: none; }
@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; gap: 0; }
  .window-col { display: none; }
  .cap { min-height: 90vh; }
  .cap .cap-shot { display: block; margin-top: 10px; }
  .cap .cap-shot .appwin-screen { height: 340px; }
  .js .cap { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
.cap p.small { font-size: 14px; opacity: .7; }
/* On the blue chapters the seed would vanish into the background: it turns paper there. */
.story[data-tone=blue] .seed-big .s-body, .bar[data-tone=blue] .seed .s-body { fill: var(--paper); }
.cards3 { align-items: start; }
/* A chapter's own copy of its screen (narrow screens) keeps the window's small text, not the chapter's. */
.cap .cap-shot p { font-size: inherit; opacity: 1; max-width: none; }
/* The launch price: the full price struck through while the sale lasts (main.js adds .sale-over after it ends). */
.sale-off { display: none; }
.sale-over .sale-on { display: none; }
.sale-over .sale-off { display: inline; }
.price s, .btn s { opacity: .5; font-weight: 600; margin-right: 4px; }
.price s { font-size: .6em; }
.price-card .sale-tag { align-self: flex-start; flex: none !important; font: 700 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--amber); color: var(--ink) !important; }
.sale-over .price-card .sale-tag { display: none; }
.bar-nav .lang { font: 700 12px/1 var(--mono); letter-spacing: .1em; padding: 6px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px currentColor; opacity: .7; }
@media (max-width: 720px) { .bar-nav a.lang { display: inline-block; } }
.foot .tm { flex-basis: 100%; font-size: 12px; color: var(--muted); opacity: .8; }
