/* KuraDrive — the landing page. Plain CSS, no build step; one small inline
   script in index.html only remembers the light/dark/system choice.
   Colours and type follow design/design.md; the layout follows cognitobit.com. */

:root, .kd {
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --ink: #141414;
  --muted: #5C5A55;
  --line: #D9D5CC;
  --off: #ECE9E2;
  --grey: #C9C5BC;        /* known bits: chunks already in the store */
  --kura: #0E6B5C;        /* learning bits, links, the one action */
  --kura-hover: #0B564A;
  --kura-tint: #E7F1EE;
  --on-kura: #F7F5F0;
  --navy: #123456;        /* CognitoBit, in the footer only */
  --term: #1B1A21;
  --term-edge: #1B1A21;
  --bar-base: #A9A59C;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --doto: 'Doto', 'Courier New', monospace;
  --sans: 'Schibsted Grotesk', system-ui, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --rond: 30;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]), .kd[data-theme="system"] {
    --paper: #141414;
    --white: #1C1B19;
    --ink: #F7F5F0;
    --muted: #A9A59C;
    --line: #34322E;
    --off: #2A2926;
    --grey: #4A4843;
    --kura: #3BB39A;
    --kura-hover: #5CC7AF;
    --kura-tint: #17322C;
    --on-kura: #141414;
    --navy: #8FB0D6;
    --term: #0E0D12;
    --term-edge: #34322E;
    --bar-base: #6A675F;
    color-scheme: dark;
  }
}
:root[data-theme="dark"], .kd[data-theme="dark"] {
  --paper: #141414;
  --white: #1C1B19;
  --ink: #F7F5F0;
  --muted: #A9A59C;
  --line: #34322E;
  --off: #2A2926;
  --grey: #4A4843;
  --kura: #3BB39A;
  --kura-hover: #5CC7AF;
  --kura-tint: #17322C;
  --on-kura: #141414;
  --navy: #8FB0D6;
  --term: #0E0D12;
  --term-edge: #34322E;
  --bar-base: #6A675F;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, .kd {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--kura); }
a:focus-visible { outline: 2px solid var(--kura); outline-offset: 4px; border-radius: 2px; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
figure, dl, dd { margin: 0; }
address { font-style: normal; }
svg { display: block; }
code { font-family: var(--mono); font-size: .84em; }

.wrap { width: min(1248px, 100% - 48px); margin-inline: auto; }
.display {
  font-family: var(--doto);
  font-weight: 800;
  font-variation-settings: 'ROND' var(--rond);
  line-height: 1;
}
.skip {
  position: absolute; left: 24px; top: -60px; z-index: 2;
  padding: 8px 12px; background: var(--ink); color: var(--paper); border-radius: 4px;
}
.skip:focus { top: 12px; color: var(--paper); }

/* Header */
.site-header {
  min-height: 88px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; padding-block: 8px; }
.brand:hover { color: inherit; }
.brand-mark, .foot-mark { width: 28px; height: 28px; flex: none; }
.brand-mark .k, .foot-mark .k { fill: var(--grey); }
.brand-mark .c { fill: var(--kura); }
.foot-mark .c { fill: var(--navy); }
.brand-name { font-family: var(--sans); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; }
.site-nav { display: flex; align-items: center; gap: 36px; font-size: 18px; }
.site-nav a { padding-block: 10px; }
.nav-signin { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Theme switch: light, dark, or follow the system */
.theme {
  display: flex; gap: 2px; margin: 0; padding: 3px; min-width: 0;
  border: 1px solid var(--line); border-radius: 12px;
}
.no-js .theme { display: none; }
.theme label {
  position: relative; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 9px;
  color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.theme label:hover { color: var(--ink); }
.theme label:has(input:checked) { background: var(--kura-tint); color: var(--kura); }
.theme label:has(input:focus-visible) { outline: 2px solid var(--kura); outline-offset: 2px; }
.theme input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.theme .icon { color: currentColor; }

/* Hero */
.hero { padding: 40px 0 24px; display: flex; flex-direction: column; gap: 56px; }
.hero-title {
  font-size: clamp(44px, 8.3vw, 120px);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
.hero-copy { grid-column: 1 / span 2; display: flex; flex-direction: column; gap: 36px; padding-top: 8px; }
.hero-copy p { font-size: clamp(19px, 1.75vw, 25px); line-height: 1.4; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px;
  font-family: var(--sans); font-size: 16px; font-weight: 600; letter-spacing: -0.005em;
  background: var(--kura); color: var(--on-kura);
  border-radius: 10px;
  transition: background .2s;
}
.button:hover { background: var(--kura-hover); color: var(--on-kura); }
.link-italic {
  font-size: 20px; font-style: italic; color: var(--kura);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  padding-block: 10px;
}
.link-italic:hover { color: var(--kura-hover); }

.hero-mark { grid-column: 3 / span 2; display: flex; flex-direction: column; gap: 18px; align-items: flex-end; }
.bits {
  width: min(440px, 100%);
  aspect-ratio: 1;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.4%;
}
.bit {
  display: block;
  border-radius: 18.7%;
  background: var(--grey);
  transition: transform .25s;
  animation: boot .7s cubic-bezier(.2, .7, .2, 1) both;
}
.bit.c { background: var(--kura); }
.bit.m { background: transparent; animation: none; }
.bit:not(.m):hover { transform: scale(.94); }
.bit:nth-child(2), .bit:nth-child(5) { animation-delay: 60ms; }
.bit:nth-child(3), .bit:nth-child(6), .bit:nth-child(9) { animation-delay: 120ms; }
.bit:nth-child(4), .bit:nth-child(7), .bit:nth-child(10), .bit:nth-child(13) { animation-delay: 180ms; }
.bit:nth-child(8), .bit:nth-child(11), .bit:nth-child(14) { animation-delay: 240ms; }
.bit:nth-child(12), .bit:nth-child(15) { animation-delay: 300ms; }
.bit:nth-child(16) { animation-delay: 360ms; }
@keyframes boot { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.caption {
  max-width: 440px;
  font-size: 16px; line-height: 1.45; font-style: italic; color: var(--muted);
  text-align: right; text-wrap: pretty;
}

/* Sections */
.section { padding-top: 120px; }
.label { font-size: 18px; font-style: italic; color: var(--kura); }
.section-title {
  max-width: 860px;
  font-size: clamp(30px, 2.8vw, 40px); line-height: 1.15;
  margin: 18px 0 40px; text-wrap: pretty;
}
.split {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 48px 64px; align-items: start;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.split-text { display: flex; flex-direction: column; gap: 28px; }
.lede { font-size: 20px; line-height: 1.5; text-wrap: pretty; }
.specs { display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.4; }
.specs > div { display: flex; gap: 16px; }
.specs dt { width: 108px; flex: none; font-style: italic; color: var(--muted); }
.specs code { font-family: var(--mono); font-size: 14px; }
.placeholder {
  align-self: flex-start;
  font-family: var(--mono); font-size: 13px; color: var(--kura);
  background: var(--kura-tint); padding: 2px 8px; border-radius: 4px;
}

/* Visual panels */
.visual { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}

/* How it stores: chunks as bits */
.chunks { padding: 28px; display: flex; flex-direction: column; gap: 18px; font-family: var(--sans); }
.chunks-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 6px; }
.chunk-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) 64px; align-items: center; gap: 14px; }
.chunk-v { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.cells { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 4px; }
.cells i { display: block; aspect-ratio: 1; border-radius: 18.7%; background: var(--grey); }
.cells i.n { background: var(--kura); }
.chunk-n { font-family: var(--mono); font-size: 12px; text-align: right; color: var(--kura); }
.chunks-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px;
  padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px;
}
.chunks-foot strong { font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--grey); }
.sw.n { background: var(--kura); }

/* Features */
.rows { display: flex; flex-direction: column; border-bottom: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 72px minmax(0, 440px) minmax(0, 1fr);
  column-gap: 48px; row-gap: 28px; align-items: start;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.row-num { font-size: 40px; color: var(--kura); padding-top: 4px; }
.row h3 { font-size: clamp(32px, 3.3vw, 48px); transition: color .2s; }
.row:hover h3 { color: var(--kura); }
.row-text { display: flex; flex-direction: column; gap: 16px; }
.row-text > p { font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.row .visual { min-height: 300px; }

/* Product panels, drawn in the app's own sans */
.ui { font-family: var(--sans); font-size: 13px; display: flex; flex-direction: column; }
.ui-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
}
.ui-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.ui-tabs { display: flex; gap: 4px; }
.ui-tabs span { padding: 5px 10px; border-radius: 6px; color: var(--muted); }
.ui-tabs .on { background: var(--kura-tint); color: var(--kura); font-weight: 600; }
.ui-foot {
  margin-top: auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  padding: 12px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px;
}
.icon {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  color: var(--muted);
}
.icon.sm { width: 14px; height: 14px; }
.icon.kura { color: var(--kura); }

.vers { display: flex; flex-direction: column; padding: 4px 20px 10px; }
.vers-row {
  display: grid; grid-template-columns: 40px minmax(0, 1.4fr) minmax(0, .8fr) 62px 70px 72px;
  gap: 12px; align-items: center; min-height: 44px; border-top: 1px solid var(--off);
}
.vers-head {
  min-height: 34px; border-top: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.vers-row .num { text-align: right; font-variant-numeric: tabular-nums; }
.vers-row .add { color: var(--kura); font-weight: 600; }
.pill { justify-self: end; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; }
.pill.cur { border-color: transparent; background: var(--kura-tint); color: var(--kura); font-weight: 600; }

.files { display: flex; flex-direction: column; padding: 4px 20px; }
.file {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; min-height: 48px; border-top: 1px solid var(--off);
}
.file:first-child { border-top: 0; }
.file.wide { grid-template-columns: 18px minmax(0, 1fr) 64px 118px; }
.file-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-meta { color: var(--muted); font-size: 12.5px; white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.lock-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: var(--kura-tint); color: var(--kura); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.lock-tag .icon { color: var(--kura); }
.refusal {
  margin: 6px 20px 20px; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  border: 1px solid var(--line); border-radius: 6px; background: var(--paper);
}
.refusal-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.refusal strong { font-weight: 600; font-size: 13.5px; }
.refusal p { font-size: 13px; line-height: 1.45; color: var(--muted); }
.code-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: .12em; white-space: nowrap;
  color: var(--kura); border: 1px solid var(--kura); border-radius: 999px; padding: 3px 8px;
}
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 13px; }
.crumbs b { color: var(--ink); font-weight: 600; }
.status { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.status.here { color: var(--kura); }
.status.here .icon { color: var(--kura); }
.free {
  padding: 5px 12px; border-radius: 999px; border: 1px solid var(--kura);
  color: var(--kura); font-weight: 600; font-size: 12px;
}

.term {
  background: var(--term); border-color: var(--term-edge); color: #C9C7D1;
  padding: 20px 24px;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  display: flex; flex-direction: column; overflow-x: auto;
}
.term-dots { display: flex; gap: 6px; margin-bottom: 14px; }
.term-dots span { width: 9px; height: 9px; border-radius: 50%; background: #3A3946; }
.term .ln { white-space: pre; }
.term .gap { height: 10px; }
.t-dim { color: #8B899A; }
.t-del { color: #E5847A; }
.t-add { color: #6FD3B8; }
.t-kura { color: #3BB39A; font-weight: 600; }
.t-ink { color: #F7F5F0; }

/* The rest of a drive */
.more { padding-top: 72px; }
.more-title { font-size: clamp(24px, 2.2vw, 30px); margin-bottom: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 40px 48px; }
.cell { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.cell h4 { font-size: 21px; }
.cell p { font-size: 16.5px; line-height: 1.5; text-wrap: pretty; }

/* Nextcloud */
.tally { display: flex; flex-direction: column; }
.tally-row {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 18px;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.tally-row:first-child { border-top: 0; padding-top: 0; }
.tally-n { font-size: clamp(40px, 4.4vw, 64px); color: var(--kura); }
.tally-n.before { color: var(--ink); }
.tally-l { font-size: 18px; font-style: italic; color: var(--muted); }
.tally .caption { text-align: left; max-width: none; padding-top: 18px; border-top: 1px solid var(--line); }

/* Two ways to run it */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 32px; }
.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 36px; display: flex; flex-direction: column; gap: 24px;
}
.plan-head { display: flex; flex-direction: column; gap: 10px; }
.plan-name { font-size: clamp(32px, 3.3vw, 48px); }
.plan-tag { font-size: 18px; font-style: italic; color: var(--muted); }
.plan > p { font-size: 18px; line-height: 1.5; text-wrap: pretty; }
.plan .button { align-self: flex-start; margin-top: auto; }

/* What it leaves out */
.how { padding-top: 120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; row-gap: 20px; align-items: start; }
.how .label { grid-column: 1; }
.statement { grid-column: 2 / span 3; font-size: clamp(25px, 2.65vw, 38px); line-height: 1.25; text-wrap: pretty; }

/* Contact and footer */
.contact {
  margin-top: 120px; padding: 96px 0 0; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; row-gap: 32px; align-items: end;
}
.contact-mail { grid-column: 1 / -1; justify-self: start; font-size: clamp(26px, 6.2vw, 88px); overflow-wrap: anywhere; }
.contact-text { grid-column: 1 / span 2; font-size: 20px; line-height: 1.45; text-wrap: pretty; }
.contact .button { grid-column: 4; justify-self: end; }
.site-footer {
  padding: 96px 0 48px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px 40px;
  font-size: 15px; color: var(--muted);
}
.foot-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.foot-mark { width: 22px; height: 22px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Hero: who it's for, one word at a time */
.sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.for { margin-top: -28px; font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; }
.rotor { display: inline-block; height: 1.2em; overflow: hidden; vertical-align: top; padding-right: .15em; }
.rotor-track { display: flex; flex-direction: column; animation: rotor 15s cubic-bezier(.7, 0, .3, 1) infinite; }
.rotor-track span { height: 1.2em; font-style: italic; color: var(--kura); white-space: nowrap; }
@keyframes rotor {
  0%, 17% { transform: translateY(0); }
  20%, 37% { transform: translateY(-1.2em); }
  40%, 57% { transform: translateY(-2.4em); }
  60%, 77% { transform: translateY(-3.6em); }
  80%, 97% { transform: translateY(-4.8em); }
  100% { transform: translateY(-6em); }
}

/* The product, whole */
.shot { padding-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.shot .caption { text-align: left; max-width: none; }
.app {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  font-family: var(--sans); font-size: 13.5px;
  box-shadow: 0 30px 60px -40px rgba(20, 20, 20, .35);
}
.app-top { display: flex; align-items: center; gap: 20px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.app-brand { display: flex; align-items: center; gap: 8px; width: 182px; flex: none; font-weight: 600; font-size: 15px; letter-spacing: -0.02em; }
.app-brand .brand-mark { width: 20px; height: 20px; }
.app-search {
  flex: 1 1 auto; max-width: 440px;
  display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--muted);
}
.app-user {
  margin-left: auto; width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center; background: var(--kura); color: var(--on-kura); font-size: 12px; font-weight: 600;
}
.app-body { display: grid; grid-template-columns: 200px minmax(0, 1fr) 330px; min-height: 500px; }
.app-side { display: flex; flex-direction: column; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); }
.app-nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; }
.app-nav .icon { color: currentColor; }
.app-nav.on { background: var(--kura-tint); color: var(--kura); font-weight: 600; }
.app-storage { margin-top: auto; padding: 12px 10px 4px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); }
.meter { display: block; height: 6px; border-radius: 3px; background: var(--off); overflow: hidden; }
.meter i { display: block; width: 34%; height: 100%; border-radius: 3px; background: var(--kura); }
.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-tools { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
.app-btns { display: flex; gap: 8px; }
.app-btn { padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.app-btn.primary { background: var(--kura); border-color: var(--kura); color: var(--on-kura); }
.app-list { display: flex; flex-direction: column; padding: 0 12px 12px; }
.app-row {
  display: grid; grid-template-columns: 18px minmax(0, 1fr) 130px 110px 70px;
  gap: 12px; align-items: center; min-height: 44px; padding: 0 8px;
  border-top: 1px solid var(--off); border-radius: 6px;
}
.app-row.head {
  min-height: 32px; border-top: 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.app-row.sel { background: var(--kura-tint); border-top-color: transparent; }
.app-row.sel + .app-row { border-top-color: transparent; }
.app-row .file-meta { text-align: left; }
.app-row .num { text-align: right; color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.app-details { display: flex; flex-direction: column; gap: 18px; padding: 18px 20px; border-left: 1px solid var(--line); }
.det-head { display: flex; flex-direction: column; gap: 4px; }
.det-name { font-weight: 600; font-size: 15px; }
.det-meta { color: var(--muted); font-size: 12.5px; }
.det-lock { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; background: var(--kura-tint); color: var(--kura); font-size: 12.5px; line-height: 1.45; }
.det-lock .icon { color: var(--kura); margin-top: 1px; }
.det-sec { display: flex; flex-direction: column; }
.det-label { padding-bottom: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.det-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; min-height: 36px; border-top: 1px solid var(--off); font-size: 12.5px; }
.det-line .add { color: var(--kura); font-weight: 600; font-variant-numeric: tabular-nums; }
.det-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.det-role { color: var(--muted); }
.av {
  width: 22px; height: 22px; flex: none; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--off); color: var(--ink); font-size: 9.5px; font-weight: 600;
}

/* Works with what you already save */
.formats {
  margin-top: 88px; padding: 32px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 32px; row-gap: 16px; align-items: start;
}
.formats .label { grid-column: 1; padding-top: 4px; }
.formats-list {
  grid-column: 2 / span 3;
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-wrap: wrap; gap: 10px 30px;
  font-family: var(--doto); font-weight: 700; font-variation-settings: 'ROND' var(--rond);
  font-size: clamp(22px, 2.2vw, 30px); line-height: 1.1; color: var(--ink);
}
.formats-note { grid-column: 2 / span 3; font-size: 16px; font-style: italic; color: var(--muted); }

/* Naming things */
.naming-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr));
  gap: 40px 64px; align-items: center; margin-top: 28px;
}
.naming-title { font-size: clamp(44px, 6vw, 88px); text-wrap: balance; }
.naming-files { display: flex; flex-direction: column; gap: 22px; }
.struck {
  margin: 0; padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 17px; color: var(--muted);
}
.struck s { text-decoration-thickness: 1px; }
.one-file { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding-top: 22px; border-top: 1px solid var(--line); }
.one-name { font-size: clamp(30px, 3vw, 44px); color: var(--kura); }
.one-file .pill { font-family: var(--sans); }
.naming-text { max-width: 540px; font-size: 18px; line-height: 1.5; text-wrap: pretty; }

/* Who it's for */
.who { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 40px 48px; }
.who-col { display: flex; flex-direction: column; gap: 12px; padding-top: 28px; border-top: 1px solid var(--line); }
.who-name { font-size: clamp(32px, 3.3vw, 44px); }
.who-tag { font-size: 18px; font-style: italic; color: var(--muted); }
.who-list { margin: 12px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.who-list li { font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.who-list strong { font-weight: 600; }

/* Measured on real work */
.bars-fig { padding: 28px; display: flex; flex-direction: column; gap: 30px; font-family: var(--sans); }
.bars-block { display: flex; flex-direction: column; gap: 8px; }
.bars-title { margin-bottom: 6px; font-size: 14px; font-weight: 600; }
.bar-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) 64px; gap: 14px; align-items: center; min-height: 26px; font-size: 13px; }
.bar-label code { margin-left: 4px; font-size: 12px; color: var(--muted); }
.bar-track { display: block; height: 12px; }
.bar { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--kura); }
.bar.base { background: var(--bar-base, #A9A59C); }
.bar-val { text-align: right; font-variant-numeric: tabular-nums; }
.bars-note { font-family: var(--serif); font-size: 14px; font-style: italic; color: var(--muted); }

.stats { display: flex; flex-wrap: wrap; gap: 20px 56px; }
.stat { display: flex; flex-direction: column; gap: 8px; }
.stat-n { font-size: clamp(52px, 5.4vw, 80px); color: var(--kura); }
.stat .tally-l { font-size: 17px; }

/* A repository on your own disks */
.drives { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr); align-items: center; gap: 12px; padding: 24px 20px; }
.drive { display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); min-width: 0; }
.drive-path { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-big { font-family: var(--doto); font-weight: 800; font-variation-settings: 'ROND' var(--rond); font-size: 34px; line-height: 1.1; }
.drive-big.kura { color: var(--kura); }
.drive-sub { font-size: 12.5px; color: var(--muted); }
.drive-arrow { display: flex; justify-content: center; color: var(--muted); }
.drive-arrow .icon { width: 24px; height: 24px; }

/* Plans */
.plans-3 { grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); }
.price { display: flex; align-items: baseline; gap: 8px; }
.price .placeholder { font-size: 15px; }
.includes {
  margin-top: 48px; padding-top: 36px; border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(460px, 100%), 1fr)); gap: 40px 64px;
}
.inc-title { margin-bottom: 18px; font-size: 22px; }
.inc-list {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 10px 24px;
  font-size: 17px;
}
.inc-list li { display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.inc-list .icon { margin-top: 2px; color: var(--kura); stroke-width: 2; }

/* Questions */
.faq { max-width: 980px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 22px 0; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.3;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none;
  font-family: var(--doto); font-weight: 800; font-size: 30px; line-height: 1; color: var(--kura);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--kura); }
.faq summary:focus-visible { outline: 2px solid var(--kura); outline-offset: 4px; }
.faq details p { max-width: 780px; padding: 0 0 26px; font-size: 18px; line-height: 1.55; text-wrap: pretty; }

/* Narrower screens */
@media (max-width: 1080px) {
  .row { grid-template-columns: 72px minmax(0, 1fr); }
  .row .visual { grid-column: 2; }
  .app-body { grid-template-columns: 190px minmax(0, 1fr); }
  .app-details { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); row-gap: 56px; }
  .hero-copy, .hero-mark { grid-column: 1; }
  .hero-mark { align-items: flex-start; }
  .hero-mark .caption { text-align: left; }
  .bits { width: min(320px, 100%); }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how .label, .statement { grid-column: 1; }
  .contact { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .contact-text, .contact .button { grid-column: 1; justify-self: start; }
  .formats { grid-template-columns: minmax(0, 1fr); }
  .formats .label, .formats-list, .formats-note { grid-column: 1; }
}
@media (max-width: 760px) {
  .site-nav .nav-section { display: none; }
  .section, .how { padding-top: 88px; }
  .contact { margin-top: 88px; padding-top: 72px; }
  .app-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .app-side, .hide-md { display: none; }
  .app-row { grid-template-columns: 18px minmax(0, 1fr) 64px; }
  .app-brand { width: auto; }
  .formats { margin-top: 64px; }
}
@media (max-width: 680px) {
  .row { grid-template-columns: minmax(0, 1fr); padding: 40px 0; }
  .row .visual { grid-column: 1; }
  .row-num { font-size: 28px; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .hide-sm { display: none; }
  .site-header { gap: 12px; }
  .site-nav { gap: 14px; }
  .theme label { width: 34px; height: 34px; }
  .vers-row { grid-template-columns: 34px minmax(0, 1fr) 62px 68px; gap: 10px; }
  .file.wide { grid-template-columns: 18px minmax(0, 1fr) 104px; }
  .chunks { padding: 20px; }
  .chunk-row { grid-template-columns: 26px minmax(0, 1fr); }
  .chunk-n { grid-column: 2; text-align: left; margin-top: -8px; }
  .cells { gap: 3px; }
  .term { padding: 18px; font-size: 11.5px; }
  .plan { padding: 24px; }
  .specs > div { flex-direction: column; gap: 0; }
  .specs dt { width: auto; }
  .site-footer { padding-top: 72px; }
  .app-search { display: none; }
  .bars-fig { padding: 20px; }
  .bar-row { grid-template-columns: minmax(0, 1fr) 60px; row-gap: 4px; }
  .bar-label { grid-column: 1 / -1; }
  .drives { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .drive-arrow { transform: rotate(90deg); }
  .struck { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bit, .rotor-track { animation: none; }
  .bit, a, .button, .row h3, .theme label { transition: none; }
}
