/* Droiduin — droiduin.com */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../assets/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Mono";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("../assets/fonts/red-hat-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --orange: #f5a63b;
  --orange-deep: #e58f1f;
  --orange-pale: #ffd596;
  --ink: #1a1a1a;
  --ink-2: #26221e;
  --ink-3: #38322b;
  --cream: #fbf3e6;
  --sand: #f3e6d0;
  --sand-2: #e8d8bd;
  --paper: #fffaf2;
  --on-cream-2: #5a4f41;   /* secondary text on cream/sand */
  --on-orange-2: #45290a;  /* secondary text on orange */
  --on-ink-2: #d2c6b3;     /* secondary text on ink */

  --sans: "Outfit", ui-rounded, "Segoe UI", system-ui, sans-serif;
  --mono: "Red Hat Mono", ui-monospace, "DejaVu Sans Mono", monospace;

  --r-tile: clamp(24px, 3vw, 40px);
  --r-win: 14px;
  --gut: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow-win: 0 1px 1px rgb(60 36 4 / .08), 0 10px 24px -6px rgb(60 36 4 / .22), 0 28px 48px -18px rgb(60 36 4 / .28);

  --z-art: 1;
  --z-mascot: 2;
  --z-nav: 50;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  scrollbar-color: var(--ink) var(--sand);
}
::selection { background: var(--ink); color: var(--orange); }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
code { font-family: var(--mono); font-size: .92em; }
strong, b { font-weight: 600; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
.band--ink :focus-visible, .tile--ink :focus-visible, .foot :focus-visible, .term :focus-visible { outline-color: var(--orange); }

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ico .fill, symbol .fill { fill: currentColor; stroke: none; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 999px; }
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gut), 1240px); margin-inline: auto; }

h1, h2, h3 { font-weight: 700; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, min(8.2vw, 11svh), 6rem); line-height: .96; letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.1vw, 1.75rem); letter-spacing: -.02em; line-height: 1.1; }
p { text-wrap: pretty; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: .55em;
  min-height: 52px; padding: 0 1.5em;
  border-radius: 999px; border: 2px solid var(--ink);
  font-weight: 600; font-size: 1.0625rem; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background-color .2s, color .2s, box-shadow .35s var(--ease);
}
.pill--sm { min-height: 42px; font-size: .975rem; padding: 0 1.2em; }
.pill--ink { background: var(--ink); color: var(--cream); }
.pill--cream { background: var(--cream); }
.pill--line { background: transparent; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -10px rgb(26 26 26 / .55); }
.pill--ink:hover { background: var(--ink-3); }
.pill--cream:hover, .pill--line:hover { background: var(--paper); }
.pill:active { transform: translateY(0); box-shadow: none; }
.pill .ico { transition: transform .35s var(--ease); }
.pill:hover .ico { transform: translateY(2px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 12px; z-index: var(--z-nav); padding-inline: var(--gut); height: 0; }
.nav-bar {
  width: min(100%, 1240px); margin-inline: auto; height: 64px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px 0 22px;
  background: var(--cream); border-radius: 999px;
  box-shadow: 0 1px 0 rgb(26 26 26 / .06), 0 12px 28px -14px rgb(60 36 4 / .45);
}
.nav-logo { display: flex; align-items: center; margin-right: auto; border-radius: 8px; }
.nav-logo img { height: 24px; width: auto; }
.nav-links { display: flex; gap: 2px; margin-right: 8px; }
.nav-links a { padding: 10px 14px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: .975rem; transition: background-color .2s; }
.nav-links a:hover { background: var(--sand); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sand); place-items: center; font-size: 1.15rem; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; }
  .nav-bar { position: relative; padding-left: 18px; }
  .nav-links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 10px;
    background: var(--cream); border-radius: 26px;
    box-shadow: 0 18px 36px -14px rgb(60 36 4 / .5);
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav-links a { padding: 14px 16px; font-size: 1.0625rem; }
  .nav[data-open] .nav-links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}
@media (max-width: 420px) {
  .nav-logo img { height: 20px; }
  .nav-cta { padding: 0 1em; }
}

/* ---------- hero ---------- */
.hero { background: var(--orange); padding-top: clamp(108px, 11vw, 136px); overflow: hidden; position: relative; display: flex; flex-direction: column; min-height: min(100svh, 1040px); }
.hero-copy { text-align: center; display: grid; justify-items: center; }
.hero h1 { max-width: 11.5ch; }
.lede { max-width: 56ch; margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(1.0625rem, 1.5vw, 1.3rem); line-height: 1.45; color: var(--on-orange-2); }
.hero .actions { margin-top: clamp(22px, 2.6vw, 32px); justify-content: center; }
.status { margin-top: 16px; font-size: .975rem; color: var(--on-orange-2); max-width: 72ch; }
.status strong { color: var(--ink); }

.stage { position: relative; flex: 1; min-height: clamp(250px, 30vw, 290px); margin-top: clamp(12px, 1.500vw, 20px); width: min(100%, 1440px); margin-inline: auto; }
.mascot { position: absolute; left: 50%; bottom: -1px; width: clamp(280px, min(44vw, 52svh), 620px); height: auto; translate: -50% 0; z-index: var(--z-mascot); overflow: visible; }
.m-body { fill: var(--ink); }
.m-eyes circle { fill: var(--cream); transform-box: fill-box; transform-origin: center; animation: blink 6.5s infinite; }
.m-beak { fill: var(--orange); }
.m-face, .m-eyes, .m-beak { transition: translate .25s ease-out; }
@keyframes blink { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.08); } }
.art-note { margin-top: 4px; font-size: .8125rem; color: var(--on-orange-2); }

.stage-art { position: absolute; inset: 0; z-index: var(--z-art); }
.float { position: absolute; animation: drift 7s ease-in-out infinite alternate; }
.f1 { left: max(3%, calc(50% - 600px)); top: 26%; width: 216px; rotate: -7deg; }
.f2 { left: calc(50% - 392px); top: 2%; width: 200px; rotate: 5deg; animation-duration: 8.5s; animation-delay: -3s; }
.f3 { right: calc(50% - 392px); top: 0; width: 196px; rotate: -5deg; animation-duration: 9s; animation-delay: -5s; }
.f4 { right: max(3%, calc(50% - 600px)); top: 24%; width: 216px; rotate: 7deg; animation-duration: 7.5s; animation-delay: -1.500s; }
@keyframes drift { from { translate: 0 -7px; } to { translate: 0 9px; } }

@media (max-width: 1100px) {
  .f1 { left: 1.5%; width: 190px; top: 42%; }
  .f4 { right: 1.5%; width: 190px; top: 44%; }
  .f2 { left: calc(50% - 44vw + 60px); width: 176px; }
  .f3 { right: calc(50% - 44vw + 60px); width: 172px; }
}
@media (max-width: 820px) {
  .hero { min-height: 0; }
  .stage { min-height: clamp(300px, 62vw, 420px); }
  .mascot { width: clamp(250px, 58vw, 440px); }
  .f1, .f4 { display: none; }
  .f2 { left: 3%; top: auto; bottom: 100px; width: 164px; }
  .f3 { right: 3%; top: auto; bottom: 84px; width: 160px; }
}
@media (max-width: 480px) {
  .hero { padding-top: 94px; }
  .lede { font-size: 1rem; margin-top: 14px; }
  .hero .actions { margin-top: 18px; gap: 8px; }
  .hero .pill { min-height: 48px; padding: 0 1.1em; font-size: 1rem; }
  .status { margin-top: 12px; font-size: .9rem; }
  .stage { min-height: 262px; margin-top: 8px; }
  .mascot { width: 250px; }
  .f2 { left: -14px; width: 150px; bottom: 66px; }
  .f3 { right: -14px; width: 146px; bottom: 52px; }
}

@media (max-height: 840px) and (min-width: 821px) {
  .hero { padding-top: 92px; }
  .lede { margin-top: 14px; font-size: 1.1rem; }
  .hero .actions { margin-top: 18px; }
  .status { margin-top: 10px; }
  .stage { min-height: 240px; }
}

/* ---------- drawn app windows ---------- */
.win {
  --app: var(--ink); --app-ink: var(--cream);
  background: var(--paper); color: var(--ink);
  border-radius: var(--r-win); overflow: hidden;
  box-shadow: var(--shadow-win);
  font-size: 12px; line-height: 1.25; user-select: none;
}
.win-bar { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; background: var(--app); color: var(--app-ink); }
.win-bar b { font-weight: 600; font-size: 12.500px; letter-spacing: 0; }
.win-bar .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.win-btns { margin-left: auto; display: flex; gap: 5px; }
.win-btns i { width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .55; }
.win-btns i:last-child { opacity: 1; }
.win-body { padding: 10px; position: relative; }

.notes { display: grid; gap: 7px; padding-bottom: 14px; }
.note { background: #fff3cf; border-radius: 9px; padding: 9px 10px; display: grid; gap: 5px; }
.note b { font-size: 12px; }
.note span { height: 5px; border-radius: 3px; background: rgb(26 26 26 / .2); }
.note span.s { width: 62%; }
.fab { position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 12px; background: var(--ink); color: #ffd45c; display: grid; place-items: center; box-shadow: 0 6px 12px -4px rgb(0 0 0 / .4); }

.player { display: grid; justify-items: center; gap: 3px; text-align: center; padding-bottom: 12px; }
.cover { width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; background: var(--app, #2d5bd7); display: grid; place-items: center; margin-bottom: 7px; }
.cover svg { width: 76%; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.player small { font-size: 10.500px; color: var(--on-cream-2); }
.transport { display: flex; align-items: center; gap: 14px; margin-top: 7px; }
.transport .ico { width: 15px; height: 15px; fill: currentColor; stroke-width: 1.500; }
.play { width: 32px; height: 32px; border-radius: 50%; background: var(--app, var(--ink)); color: var(--app-ink, #fff); display: grid; place-items: center; }
.play .ico { width: 14px; height: 14px; translate: 1px 0; }

.calc { padding: 10px; background: #26221e; }
.calc output { display: block; text-align: right; color: var(--cream); font: 500 24px/1.2 var(--mono); padding: 6px 4px 10px; font-variant-numeric: tabular-nums; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.keys i { font-style: normal; aspect-ratio: 1.25; display: grid; place-items: center; border-radius: 8px; background: #3a342d; color: var(--cream); font: 500 12px var(--mono); }
.keys .op { background: #554b3f; }
.keys .eq { background: var(--orange); color: var(--ink); }

.files { display: grid; gap: 2px; padding: 8px; }
.files div { display: flex; align-items: center; gap: 9px; padding: 8px 8px; border-radius: 8px; font-weight: 500; }
.files div:nth-child(2) { background: #dcefe6; }
.files .ico { width: 17px; height: 17px; color: #17805a; fill: #bfe3d2; stroke-width: 1.800; }

/* ---------- sections ---------- */
.sec { padding-block: clamp(84px, 11vw, 150px) clamp(40px, 6vw, 80px); }
.sec--tight { padding-block: clamp(56px, 7vw, 100px) clamp(40px, 6vw, 80px); }
.sec-head { text-align: center; display: grid; justify-items: center; gap: clamp(14px, 1.800vw, 22px); margin-bottom: clamp(32px, 4.500vw, 60px); }
.sec-head h2 { max-width: 17ch; }
.sec-head p { max-width: 62ch; font-size: clamp(1.0625rem, 1.350vw, 1.2rem); color: var(--on-cream-2); }

.tile { border-radius: var(--r-tile); padding: clamp(24px, 3.200vw, 44px); position: relative; overflow: hidden; }
.tile > p, .tile-copy > p { margin-top: 12px; max-width: 46ch; }
.tile--sand { background: var(--sand); }
.tile--sand p { color: var(--on-cream-2); }
.tile--orange { background: var(--orange); }
.tile--orange p { color: var(--on-orange-2); }
.tile--orange p strong { color: var(--ink); }
.tile--ink { background: var(--ink); color: var(--cream); }
.tile--ink p { color: var(--on-ink-2); }
.tile--line { background: var(--paper); box-shadow: inset 0 0 0 2px var(--sand-2); }
.tile--line p { color: var(--on-cream-2); }
.aside { font-size: .9rem; }

/* why */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.600vw, 20px); }
.duo .tile { display: grid; grid-template-rows: auto auto 1fr; text-align: center; justify-items: center; padding-bottom: 0; }
.diagram { margin-top: clamp(24px, 3vw, 40px); width: 100%; display: grid; align-items: end; justify-items: center; }
.win.mini { width: 190px; }
.shell { border: 2.500px dashed rgb(26 26 26 / .5); border-radius: 22px; padding: 34px 18px 18px; position: relative; display: grid; justify-items: center; }
.shell .shell { border-radius: 16px; background: rgb(26 26 26 / .06); padding-inline: 20px; }
.usual > .shell { border-bottom: 0; border-radius: 22px 22px 0 0; padding-bottom: 0; }
.usual > .shell > .shell { border-bottom: 0; border-radius: 16px 16px 0 0; padding-bottom: 0; }
.usual .win { border-radius: var(--r-win) var(--r-win) 0 0; box-shadow: none; outline: 2px solid rgb(26 26 26 / .14); }
.usual .win-body { padding-bottom: 22px; }
.tag { position: absolute; top: 9px; left: 0; right: 0; font-size: .78rem; font-weight: 600; letter-spacing: .01em; color: var(--on-cream-2); white-space: nowrap; }
.desk { width: min(100%, 420px); background: var(--orange-pale); border-radius: 18px 18px 0 0; padding: 0 0 0; display: grid; justify-items: center; gap: 22px; overflow: hidden; box-shadow: 0 0 0 2.500px var(--ink); }
.panel { width: 100%; height: 26px; background: var(--ink); display: flex; align-items: center; gap: 6px; padding: 0 12px; }
.panel i { width: 9px; height: 9px; border-radius: 3px; background: var(--cream); opacity: .8; }
.panel span { margin-left: auto; width: 34px; height: 6px; border-radius: 3px; background: var(--cream); opacity: .6; }
.ours .win { margin-bottom: 26px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(12px, 1.600vw, 20px); }
.b-window { grid-column: span 7; display: grid; grid-template-rows: auto 1fr; gap: 24px; }
.b-menu { grid-column: span 5; display: grid; grid-template-rows: auto auto 1fr auto; }
.b-theme { grid-column: span 7; display: grid; grid-template-rows: auto 1fr; gap: 26px; }
.b-privacy { grid-column: span 5; }
.b-trio { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3.500vw, 52px); }
.b-trio h3 { font-size: clamp(1.5rem, 2.500vw, 2.1rem); }
.b-trio p { margin-top: 10px; }

.chips { display: flex; gap: 8px; margin-top: 20px; flex-wrap: wrap; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font-weight: 600; font-size: .975rem; transition: background-color .2s, color .2s; }
.chip:hover { background: var(--sand-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

.demo-window { display: grid; place-items: center; min-height: 250px; background: var(--sand-2); border-radius: 22px; padding: 22px; }
.ratio { height: 206px; width: 275px; transition: width .7s var(--ease); max-width: 100%; }
.ratio[data-ratio="phone"] { width: 122px; }
.ratio[data-ratio="wide"] { width: 366px; }
.ratio .win-bar b { overflow: hidden; text-overflow: ellipsis; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(48px, 1fr)); gap: 6px; height: 176px; overflow: hidden; align-content: start; }
.gallery i { aspect-ratio: 1; border-radius: 8px; background: #f1b9a8; }
.gallery i:nth-child(3n) { background: #c8472f; }
.gallery i:nth-child(4n+1) { background: #ffd45c; }
.gallery i:nth-child(5n+2) { background: #2a2622; }

.launcher { margin-top: 24px; background: var(--ink-2); border-radius: 20px; padding: 12px; align-self: end; box-shadow: inset 0 0 0 1.500px var(--ink-3); }
.search { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--ink-3); color: var(--on-ink-2); font-size: .95rem; margin-bottom: 8px; }
.launcher li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; font-weight: 500; }
.launcher li:nth-child(2) { background: var(--ink-3); }
.launcher li i { width: 30px; height: 30px; border-radius: 9px; background: var(--c); }
.b-menu .aside { margin-top: 16px; }

.controls { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: start; }
.switch { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; min-height: 44px; width: fit-content; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.track { width: 54px; height: 32px; border-radius: 999px; background: var(--sand-2); box-shadow: inset 0 0 0 2px var(--ink); position: relative; transition: background-color .25s; }
.track::after { content: ""; position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: translate .4s var(--ease), background-color .25s; }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { translate: 22px 0; background: var(--orange); }
.switch input:focus-visible + .track { outline: 3px solid var(--ink); outline-offset: 3px; }
.swatches { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.swatches legend { float: left; width: 100%; font-weight: 600; margin-bottom: 10px; padding: 0; }
.swatches label { cursor: pointer; display: grid; }
.swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatches label > span:first-of-type { width: 36px; height: 36px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--sand), 0 0 0 0 var(--ink); transition: box-shadow .25s var(--ease); }
.swatches input:checked + span { box-shadow: 0 0 0 3px var(--sand), 0 0 0 5.500px var(--ink); }
.swatches input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 7px; }

.demo-theme {
  --d-acc: #b85c0c; --d-bg: #fffaf2; --d-fg: #1a1a1a; --d-mute: #6a5f52; --d-soft: #f1e4cd; --d-desk: var(--sand-2);
  background: var(--d-desk); border-radius: 22px; padding: 22px; display: grid; grid-template-columns: minmax(0, 250px) minmax(0, 230px); justify-content: center; align-items: start; align-content: center; gap: 18px;
  transition: background-color .4s;
}
.demo-theme.dark { --d-bg: #24211d; --d-fg: #f6eddf; --d-mute: #b7ab9a; --d-soft: #37322c; --d-desk: #14120f; }
.toast { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 13px; background: var(--d-bg); color: var(--d-fg); font-size: 12px; line-height: 1.3; box-shadow: 0 8px 18px -8px rgb(0 0 0 / .35); transition: background-color .4s, color .4s; }
.toast i { width: 24px; height: 24px; border-radius: 8px; background: var(--d-acc); flex: none; transition: background-color .4s; }
.toast b, .toast span { display: block; }
.toast span { color: var(--d-mute); }
.themed { --app: var(--d-acc); --app-ink: #fff; background: var(--d-bg); color: var(--d-fg); box-shadow: 0 12px 26px -12px rgb(0 0 0 / .45); transition: background-color .4s, color .4s; }
.themed .win-bar { transition: background-color .4s; }
.pod { display: grid; gap: 8px; }
.ep { display: flex; gap: 10px; align-items: center; padding: 7px; border-radius: 10px; background: var(--d-soft); transition: background-color .4s; }
.ep i { width: 30px; height: 30px; border-radius: 8px; background: var(--d-acc); opacity: .9; flex: none; transition: background-color .4s; }
.ep + .ep i { opacity: .5; }
.ep b, .ep span { display: block; }
.ep span { font-size: 10.500px; color: var(--d-mute); }
.bar { height: 5px; border-radius: 3px; background: var(--d-soft); margin-top: 4px; }
.bar span { display: block; width: 38%; height: 100%; border-radius: 3px; background: var(--d-acc); transition: background-color .4s; }
.pod .transport { justify-content: center; margin-top: 2px; }

.perm { margin-top: 24px; }
.seg { display: grid; grid-template-columns: repeat(3, auto); gap: 4px; padding: 4px; border-radius: 999px; background: var(--ink); width: fit-content; max-width: 100%; }
.seg button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--cream); font-weight: 600; font-size: .95rem; white-space: nowrap; transition: background-color .25s, color .25s; }
.seg button:hover { background: var(--ink-3); }
.seg button[aria-checked="true"] { background: var(--orange); color: var(--ink); }
.seg button:focus-visible { outline-color: var(--cream); outline-offset: -5px; }
.gets { margin-top: 16px; background: var(--paper); border-radius: 20px; padding: 6px 18px; }
.gets div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; }
.gets div + div { box-shadow: 0 -1.500px 0 var(--sand); }
.gets dt { color: var(--on-cream-2); font-size: .95rem; }
.gets dd { font-weight: 600; text-align: right; }
.gets dd.swap { animation: swap .45s var(--ease); }
@keyframes swap { from { opacity: 0; translate: 0 6px; filter: blur(3px); } }
.perm .aside { margin-top: 14px; }

@media (max-width: 1000px) {
  .b-window, .b-menu, .b-theme, .b-privacy { grid-column: 1 / -1; }
  .b-menu { grid-template-rows: auto; }
  .launcher { max-width: 420px; width: 100%; }
}
@media (max-width: 760px) {
  .duo { grid-template-columns: 1fr; }
  .demo-theme { grid-template-columns: minmax(0, 260px); }
  .b-trio { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .seg { grid-template-columns: 1fr; border-radius: 26px; width: 100%; }
  .ratio[data-ratio="wide"] { width: 100%; }
}

/* ---------- bands ---------- */
.band { padding-block: clamp(72px, 9vw, 130px); position: relative; }
.band--ink { background: var(--ink); color: var(--cream); border-radius: clamp(28px, 5vw, 64px); margin: clamp(40px, 6vw, 80px) clamp(8px, 1.200vw, 16px) 0; }
.band--ink .sec-head p { color: var(--on-ink-2); }
.band--ink .sec-head h2 { max-width: 20ch; }

.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: clamp(28px, 5vw, 80px); align-items: start; }
.steps { counter-reset: s; display: grid; gap: 6px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; column-gap: 18px; padding: 20px 22px 22px 18px; border-radius: 26px; transition: background-color .3s; cursor: default; }
.steps li::before { content: counter(s); grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 1.3rem; box-shadow: inset 0 0 0 2px var(--ink-3); color: var(--cream); transition: background-color .3s, color .3s, box-shadow .3s; }
.steps li.facet { counter-increment: none; }
.steps li.facet::before { content: "+"; font-weight: 500; font-size: 1.5rem; }
.steps h3 { align-self: center; padding-top: 12px; }
.steps p { grid-column: 2; margin-top: 12px; color: var(--on-ink-2); max-width: 54ch; }
.steps code { color: var(--orange); }
.steps li.on, .steps li:hover, .steps li:focus-visible { background: var(--ink-2); }
.steps li.on::before, .steps li:hover::before, .steps li:focus-visible::before { background: var(--orange); color: var(--ink); box-shadow: none; }

.stack { position: sticky; top: 104px; display: grid; gap: 10px; }
.layer, .side { border-radius: 16px; padding: 13px 18px; background: var(--ink-3); display: grid; gap: 1px; transition: background-color .35s, color .35s, opacity .35s; }
.layer b, .side b { font-weight: 600; }
.layer span, .side span { font-size: .875rem; color: var(--on-ink-2); transition: color .35s; }
.l-apk { justify-self: center; text-align: center; padding-inline: 30px; background: var(--cream); color: var(--ink); }
.l-apk span { color: var(--on-cream-2); font-family: var(--mono); }
.flow { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--on-ink-2); padding: 2px 0; transition: color .35s, opacity .35s; }
.proc { border: 2px solid var(--ink-3); border-radius: 26px; padding: 40px 12px 12px; display: grid; gap: 8px; position: relative; }
.proc-tag { position: absolute; top: 12px; left: 20px; font-size: .85rem; font-weight: 600; color: var(--on-ink-2); }
.side { border: 2px dashed #5a5045; background: transparent; }
.desk-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; transition: opacity .35s; }
.desk-row span { text-align: center; padding: 11px 8px; border-radius: 999px; box-shadow: inset 0 0 0 2px var(--ink-3); font-weight: 500; font-size: .95rem; transition: background-color .35s, color .35s, box-shadow .35s; }
.stack.lit [data-l] { opacity: .42; }
.stack.lit [data-l].hot { opacity: 1; }
.stack.lit .layer.hot, .stack.lit .side.hot { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.stack.lit .layer.hot span, .stack.lit .side.hot span { color: var(--on-orange-2); }
.stack.lit .flow.hot { color: var(--orange); }
.stack.lit .desk-row.hot span { background: var(--orange); color: var(--ink); box-shadow: none; }

@media (max-width: 900px) {
  .how { grid-template-columns: 1fr; }
  .stack { position: static; order: -1; max-width: 460px; width: 100%; justify-self: center; }
  .steps li { padding-inline: 8px; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .steps li::before { width: 44px; height: 44px; font-size: 1.1rem; }
  .steps h3 { padding-top: 9px; }
  .steps p { grid-column: 1 / -1; }
}

/* ---------- what works ---------- */
.tally-row { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: center; margin-bottom: clamp(40px, 6vw, 80px); }
.tally-tile { padding: clamp(20px, 3vw, 36px); max-width: 430px; width: 100%; justify-self: end; }
.tally { display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(5px, .900vw, 10px); }
.tally li { aspect-ratio: 1; border-radius: 28%; background: var(--ink); color: var(--orange); display: grid; place-items: center; }
.tally li .ico { width: 52%; height: 52%; stroke-width: 3; }
.tally.run li { animation: pop .6s var(--ease) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes pop { from { scale: .3; opacity: 0; background: var(--orange-deep); } }
.tally-copy { display: grid; gap: 16px; }
.tally-copy p { color: var(--on-cream-2); max-width: 52ch; }
.tally-copy .big { font-size: clamp(1.6rem, 3.200vw, 2.6rem); line-height: 1.08; letter-spacing: -.025em; font-weight: 500; color: var(--ink); max-width: 17ch; text-wrap: balance; }
.tally-copy .big strong { font-weight: 800; }

.works { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(12px, 1.600vw, 20px); align-items: stretch; }
.acc { background: var(--sand); border-radius: var(--r-tile); padding: clamp(8px, 1.500vw, 18px) clamp(20px, 3vw, 40px); }
.acc details + details { box-shadow: 0 -2px 0 var(--sand-2); }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: clamp(1.2rem, 1.800vw, 1.45rem); font-weight: 600; letter-spacing: -.015em; border-radius: 10px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--ink) no-repeat center / 14px 14px; background-image: linear-gradient(var(--cream), var(--cream)), linear-gradient(var(--cream), var(--cream)); background-size: 14px 2.500px, 2.500px 14px; transition: rotate .45s var(--ease), background-color .2s; }
.acc summary:hover::after { background-color: var(--ink-3); }
.acc details[open] summary::after { rotate: 45deg; }
.acc details p { padding: 0 50px 22px 0; color: var(--on-cream-2); max-width: 64ch; }
.acc details::details-content { block-size: 0; overflow: clip; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
.acc details[open]::details-content { block-size: auto; }
:root { interpolate-size: allow-keywords; }

.nope { padding-bottom: 150px; }
.peek { position: absolute; right: clamp(24px, 3.200vw, 44px); bottom: 0; width: 170px; height: auto; }
.nope h3 { max-width: 14ch; }
.nope ul { margin-top: 22px; display: grid; gap: 18px; }
.nope li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; color: var(--on-ink-2); }
.nope li b { color: var(--cream); }
.nope li .ico { width: 30px; height: 30px; padding: 7px; border-radius: 50%; background: var(--ink-3); color: var(--orange); stroke-width: 3; }

@media (max-width: 900px) {
  .tally-row, .works { grid-template-columns: 1fr; }
  .tally-tile { justify-self: center; }
  .acc details p { padding-right: 0; }
}

/* ---------- compare ---------- */
.cmp-tile { padding: clamp(10px, 1.600vw, 20px); }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 1rem; line-height: 1.4; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 18px clamp(12px, 1.800vw, 24px); }
.cmp thead th { font-size: clamp(1.1rem, 1.600vw, 1.35rem); font-weight: 700; letter-spacing: -.015em; padding-block: 22px 18px; }
.cmp tbody th { font-weight: 600; width: 19%; color: var(--ink); }
.cmp tbody td { color: var(--on-cream-2); width: 27%; }
.cmp tbody tr > * { box-shadow: 0 -2px 0 var(--sand-2); }
.cmp .us { background: var(--orange); color: var(--ink); font-weight: 500; box-shadow: 0 -2px 0 var(--orange-deep); }
.cmp thead .us { border-radius: 26px 26px 0 0; box-shadow: none; font-weight: 700; }
.cmp tbody tr:last-child .us { border-radius: 0 0 26px 26px; }
.fit { margin: clamp(24px, 3vw, 40px) auto 0; max-width: 58ch; text-align: center; font-size: clamp(1.15rem, 1.800vw, 1.45rem); line-height: 1.4; font-weight: 500; letter-spacing: -.01em; }

@media (max-width: 760px) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp tbody tr { padding: 18px 8px 12px; }
  .cmp tbody tr > * { box-shadow: none; }
  .cmp tbody tr + tr { box-shadow: 0 -2px 0 var(--sand-2); }
  .cmp tbody th { width: auto; font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; padding: 0 6px 10px; }
  .cmp tbody td { width: auto; padding: 10px 14px; }
  .cmp tbody td::before { content: attr(data-l); display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
  .cmp .us, .cmp tbody tr:last-child .us { border-radius: 16px; box-shadow: none; margin-bottom: 4px; }
}

/* ---------- get ---------- */
.band--orange { background: var(--orange); margin-top: clamp(40px, 6vw, 80px); border-radius: clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px) 0 0; padding-bottom: 0; overflow: hidden; }
.band--orange .sec-head p { color: var(--on-orange-2); }
.band--orange .sec-head h2 { max-width: 20ch; }
.get { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.need ul { margin-top: 18px; display: grid; gap: 0; }
.need li { padding: 13px 0; color: var(--on-orange-2); box-shadow: 0 -2px 0 var(--orange-deep); }
.need li strong { color: var(--ink); }
.need .actions { margin-top: 26px; }
.band--orange .pill--line:hover { background: var(--orange-pale); }

.term { background: var(--ink); color: var(--cream); border-radius: var(--r-tile); padding: clamp(20px, 2.800vw, 34px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; position: relative; }
.term-h { font-weight: 600; color: var(--on-ink-2); font-size: .95rem; }
.term-h code { color: var(--orange); }
.term-h:not(:first-child) { margin-top: 14px; }
.cmd { min-width: 0; display: flex; align-items: center; gap: 8px; background: var(--ink-2); border-radius: 16px; padding: 6px 6px 6px 18px; box-shadow: inset 0 0 0 1.500px var(--ink-3); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-size: clamp(.8rem, 1.050vw, .9rem); padding: 10px 0; scrollbar-width: none; }
.cmd code::before { content: "$ "; color: var(--orange); }
.copy { flex: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ink-3); color: var(--cream); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.copy:hover { background: var(--orange); color: var(--ink); }
.copy.done { background: var(--orange); color: var(--ink); }
.term-note { margin-top: 6px; color: var(--on-ink-2); font-size: .975rem; }
.term-note strong { color: var(--cream); }
.term-note code { color: var(--orange); }
.copied { position: absolute; right: 22px; top: 18px; font-size: .9rem; font-weight: 600; color: var(--orange); }
.horizon { width: clamp(220px, 30vw, 400px); height: auto; margin: clamp(56px, 7vw, 100px) auto -2px; overflow: visible; }

@media (max-width: 900px) { .get { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.foot { position: relative; margin-top: -1px; background: var(--ink); color: var(--cream); padding-block: clamp(44px, 6vw, 80px) 36px; }
.foot-top { display: grid; gap: 14px; }
.foot-top img { height: 34px; width: auto; }
.foot-top p { color: var(--on-ink-2); }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 32px clamp(24px, 4vw, 64px); margin-top: clamp(36px, 5vw, 60px); }
.foot h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; }
.foot nav { display: grid; align-content: start; justify-items: start; }
.foot nav a { padding: 7px 0; color: var(--on-ink-2); text-decoration: none; }
.foot nav a:hover, .foot-note a:hover { color: var(--orange); }
.foot-note p { color: var(--on-ink-2); max-width: 48ch; }
.foot-note p + p { margin-top: 10px; }
.foot-note a { color: var(--cream); }
.legal { margin-top: clamp(36px, 5vw, 60px); padding-top: 22px; box-shadow: 0 -2px 0 var(--ink-3); font-size: .875rem; color: var(--on-ink-2); }
@media (max-width: 700px) { .foot-cols { grid-template-columns: 1fr 1fr; } .foot-note { grid-column: 1 / -1; } }

/* ---------- entrance (hero only) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .mascot { animation: rise 1.100s var(--ease) both; }
  .stage-art .win { animation: drift 7s ease-in-out infinite alternate, land .9s var(--ease) backwards; }
  .stage-art .f2 { animation-duration: 8.500s, .9s; animation-delay: -3s, .05s; }
  .stage-art .f3 { animation-duration: 9s, .9s; animation-delay: -5s, .1s; }
  .stage-art .f1 { animation-delay: 0s, .15s; }
  .stage-art .f4 { animation-duration: 7.500s, .9s; animation-delay: -1.500s, .2s; }
  @keyframes rise { from { translate: -50% 60%; } }
  @keyframes land { from { scale: .8; filter: blur(8px); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ---------- inner pages: news, articles, 404 ---------- */
.nav-links a[aria-current="page"] { background: var(--sand); }
.inner { background: var(--cream); }
.page-band { background: var(--orange); padding-block: clamp(124px, 14vw, 176px) clamp(48px, 6vw, 80px); border-radius: 0 0 clamp(28px, 5vw, 64px) clamp(28px, 5vw, 64px); }
.page-band-in { display: grid; justify-items: start; gap: 0; }
.page-band h1 { max-width: 18ch; }
.post .wrap { width: min(100% - 2 * var(--gut), 760px); }
.page-band h1 { font-size: clamp(2.5rem, 6.4vw, 4.75rem); line-height: .98; letter-spacing: -.04em; margin-top: 8px; }
.page-lede { margin-top: clamp(14px, 2vw, 22px); max-width: 56ch; font-size: clamp(1.0625rem, 1.500vw, 1.3rem); line-height: 1.45; color: var(--on-orange-2); }
.page-lede a { color: var(--ink); }
.page-band time { font-weight: 600; color: var(--on-orange-2); font-variant-numeric: tabular-nums; margin-top: 22px; }
.crumb { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; background: var(--cream); text-decoration: none; font-weight: 600; font-size: .95rem; transition: background-color .2s, transform .35s var(--ease); }
.crumb:hover { background: var(--paper); transform: translateX(-2px); }
.draft-tag { display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px; background: var(--ink); color: var(--orange); font-size: .85rem; font-weight: 600; }

.news-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 36px); }
.news-list { display: grid; }
.news-list li { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 8px clamp(20px, 4vw, 56px); padding: clamp(22px, 3vw, 34px) 0; box-shadow: 0 -2px 0 var(--sand-2); position: relative; }
.news-list li:last-child { box-shadow: 0 -2px 0 var(--sand-2), 0 2px 0 var(--sand-2); }
.news-list time { font-weight: 600; color: var(--on-cream-2); font-variant-numeric: tabular-nums; padding-top: .35em; }
.news-list .news-title { font-size: clamp(1.45rem, 2.600vw, 2.1rem); }
.news-list .news-title a { text-decoration: none; background: linear-gradient(var(--orange), var(--orange)) no-repeat 0 92% / 0 .28em; transition: background-size .45s var(--ease); }
.news-list .news-title a::after { content: ""; position: absolute; inset: 0; }
.news-list li:hover h3 a, .news-list .news-title a:focus-visible { background-size: 100% .28em; }
.news-list p { margin-top: 10px; color: var(--on-cream-2); max-width: 62ch; }
.news-page { padding-block: clamp(40px, 6vw, 80px) clamp(72px, 9vw, 120px); }
.empty { font-size: 1.2rem; color: var(--on-cream-2); }

.prose { max-width: 68ch; margin: clamp(40px, 6vw, 72px) 0 0; font-size: clamp(1.0625rem, 1.250vw, 1.15rem); line-height: 1.65; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.6rem, 2.800vw, 2.15rem); margin-top: 1.9em; }
.prose h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 1.5em; }
.prose ul > li::before { content: ""; position: absolute; left: .2em; top: .62em; width: .5em; height: .5em; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--ink); }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .5em; }
.prose a { text-decoration-color: var(--orange); text-decoration-thickness: .14em; }
.prose a:hover { text-decoration-color: var(--ink); }
.prose blockquote { margin: 1.6em 0; padding: 22px 26px; border-radius: 22px; background: var(--sand); font-size: 1.1em; }
.prose img { border-radius: 22px; height: auto; margin-inline: auto; }
.prose figure figcaption { margin-top: 10px; font-size: .9rem; color: var(--on-cream-2); text-align: center; }
.prose code { background: var(--sand); padding: .12em .4em; border-radius: 6px; }
.prose pre { background: var(--ink); color: var(--cream); padding: 20px 22px; border-radius: 20px; overflow-x: auto; font-size: .9rem; line-height: 1.55; }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; height: 2px; background: var(--sand-2); margin-block: 2.2em; }
.prose table { border-collapse: collapse; width: 100%; font-size: .95em; }
.prose th, .prose td { text-align: left; padding: 10px 12px; box-shadow: inset 0 -2px 0 var(--sand-2); }
.post-end { max-width: 68ch; margin: clamp(44px, 6vw, 72px) 0 clamp(72px, 9vw, 120px); padding-top: 28px; box-shadow: 0 -2px 0 var(--sand-2); display: flex; flex-wrap: wrap; gap: 12px; }

.page-band--lost { border-radius: 0; padding-bottom: 0; overflow: hidden; text-align: left; }
.page-band--lost .actions { margin-top: 28px; }
.page-band--lost .horizon { margin-bottom: -2px; }
.inner .foot { margin-top: 0; }

@media (max-width: 640px) {
  .news-list li { grid-template-columns: 1fr; }
  .news-list time { padding-top: 0; font-size: .95rem; }
}
.page-band .updated { font-weight: 500; color: var(--on-orange-2); font-size: .95rem; margin-top: 4px; }
.page-band .updated time { margin: 0; font-weight: 600; }
