/* Kinedot landing.
   Tokens match brand-factory/logos: Ink, Mist, one Spot (mint). Contrast measured 2026-11-07.
   Shape rule: media and cells 24px, buttons and chips full pill. Theme follows the system. */

@font-face { font-family: "Satoshi"; src: url("/fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-Variable.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #F3F1F6;
  --raise: #FBFAFC;
  --text: #17121F;         /* 16.4:1 on bg */
  --muted: #5B5468;        /* 6.43:1 on bg */
  --line: #DDD8E4;
  --spot: #2EE59D;         /* fills and dots; never text on light */
  --on-spot: #17121F;      /* 11.2:1 on spot */
  --btn: #17121F;
  --on-btn: #F3F1F6;
  --link: #0E7A52;         /* 4.77:1 on bg */
  --voice: #17121F;
  --on-voice: #F3F1F6;
  --r: 24px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #120E18;
    --raise: #1B1524;
    --text: #F3F1F6;
    --muted: #B4ACC0;      /* 8.9:1 on bg */
    --line: #2E2639;
    --btn: #2EE59D;
    --on-btn: #17121F;
    --link: #2EE59D;
    --voice: #1B1524;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 "Satoshi", ui-sans-serif, system-ui, sans-serif;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--spot); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.05; font-weight: 700; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 8px; padding: 8px 14px; background: var(--btn); color: var(--on-btn); border-radius: 999px; z-index: 10; }
.skip:focus { left: 16px; }

.nav, main, .foot { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* Nav: one line, 68px */
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.mark { width: 30px; height: 30px; }
.mark .spot { fill: var(--spot); }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav-link:hover { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; text-decoration: none; transition: transform 0.25s var(--ease), background-color 0.25s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--btn); color: var(--on-btn); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-quiet { color: var(--text); padding-inline: 8px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 6px; }
.btn-quiet:hover { text-decoration-color: currentColor; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; padding: clamp(24px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.status { font-size: 0.95rem; font-weight: 500; color: var(--muted); margin-bottom: 18px; }
h1 { font-size: clamp(2.6rem, 4.6vw, 4.1rem); line-height: 1; letter-spacing: -0.045em; font-weight: 700; text-wrap: balance; }
.lede { margin-top: 22px; font-size: clamp(1.1rem, 1.4vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 34ch; }
.actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }

.camera { margin: 0; }
.frame { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 1248 / 832; background: #2A2530; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.track { position: absolute; inset: 0; width: 100%; height: 100%; }
.bone { fill: none; stroke: var(--spot); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.joints circle { fill: #F3F1F6; stroke: var(--spot); stroke-width: 6; transform-box: fill-box; transform-origin: center; }
.joints .key { fill: var(--spot); stroke: #17121F; stroke-width: 3; }
.hud { position: absolute; left: 16px; right: 16px; top: 16px; display: flex; justify-content: space-between; gap: 8px; }
.chip { font: 500 0.85rem/1 "JetBrains Mono", ui-monospace, monospace; padding: 9px 14px; border-radius: 999px; background: rgb(18 14 24 / 0.72); color: #F3F1F6; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-variant-numeric: tabular-nums; }
.chip b { font-weight: 700; color: var(--spot); }
.chip-ok { color: var(--spot); }
.camera figcaption { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

/* How: demo panel + verbs */
.how { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(56px, 8vw, 112px) 0; border-top: 1px solid var(--line); }
.demo { background: var(--raise); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(18px, 3vw, 32px); }
.demo-svg { display: block; width: 100%; height: auto; }
.floor { stroke: var(--line); stroke-width: 2; stroke-dasharray: 4 7; }
.limb { fill: none; stroke: var(--text); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.dots circle { fill: var(--text); }
.dots .key { fill: var(--spot); }
.dots .head { fill: none; stroke: var(--text); stroke-width: 6; }
.readouts { margin: 20px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.readouts div { padding-top: 14px; border-top: 1px solid var(--line); }
.readouts dt { font-size: 0.85rem; color: var(--muted); }
.readouts dd { margin: 4px 0 0; font: 600 clamp(1.5rem, 2.6vw, 2.2rem)/1 "JetBrains Mono", ui-monospace, monospace; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); text-wrap: balance; }
.verbs { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 26px; }
.verbs h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
.verbs p { margin-top: 6px; color: var(--muted); max-width: 46ch; }

/* Bento: big voice cell left, score + photo stacked right */
.bento { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-rows: auto auto; gap: 16px; padding-bottom: clamp(56px, 8vw, 112px); }
.cell { border-radius: var(--r); overflow: hidden; position: relative; }
.cell h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.cell p { margin-top: 10px; max-width: 40ch; }
.cell-voice { grid-row: span 2; background: var(--voice); color: var(--on-voice); padding: clamp(24px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; min-height: 520px; }
.voice-lines { display: grid; gap: 6px; font-size: clamp(1.9rem, 4vw, 3.4rem); font-weight: 650; letter-spacing: -0.04em; line-height: 1.08; }
.voice-lines span:nth-child(1) { color: #8A8296; }
.voice-lines span:nth-child(2) { color: #C9C2D3; }
.voice-lines .spot-text { color: var(--spot); }
.cell-voice .cell-text p { color: #C9C2D3; }
.cell-score { background: var(--spot); color: var(--on-spot); padding: clamp(24px, 3vw, 36px); }
.cell-score p { color: #2A2433; }
.cell-photo { min-height: 340px; color: #F3F1F6; }
.cell-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.cell-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(18 14 24 / 0) 22%, rgb(18 14 24 / 0.92) 100%); }
.on-photo { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(22px, 3vw, 32px); }
.on-photo p { color: #DCD6E4; }

/* Tracks: five image cards */
.tracks { padding-bottom: clamp(56px, 8vw, 112px); }
.cards { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.cards img { border-radius: var(--r); aspect-ratio: 3 / 4; width: 100%; object-fit: cover; }
.cards h3 { margin-top: 14px; font-size: 1.15rem; }
.cards p { margin-top: 4px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.cards .when { margin-top: 10px; color: var(--text); font-weight: 600; font-size: 0.9rem; }

/* Closing */
.closing { padding: clamp(56px, 8vw, 104px) 0; border-top: 1px solid var(--line); display: grid; gap: 18px; justify-items: start; }
.closing h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); letter-spacing: -0.045em; max-width: 16ch; }
.closing p { color: var(--muted); font-size: 1.15rem; max-width: 44ch; }
.closing .btn { margin-top: 10px; }

.foot { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); font-size: 0.92rem; display: grid; gap: 4px; }

/* Responsive */
@media (max-width: 1023px) {
  .hero, .how { grid-template-columns: 1fr; }
  .hero-copy { max-width: 640px; }
  .cards { grid-template-columns: repeat(5, minmax(220px, 40%)); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .cards li { scroll-snap-align: start; }
}
@media (max-width: 767px) {
  .nav-link { display: none; }
  .bento { grid-template-columns: 1fr; }
  .cell-voice { grid-row: auto; min-height: 0; }
  .cards { grid-template-columns: repeat(5, 74%); }
  .hud { left: 10px; right: 10px; top: 10px; }
  .chip { font-size: 0.75rem; padding: 7px 11px; }
}
@media (max-width: 420px) {
  .nav .btn-sm { padding: 0 14px; }
  .brand span { display: none; }
}

/* Motion: hero tracking locks on, sections rise in. All of it is skipped for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .bone { stroke-dashoffset: 1; animation: draw 1.1s var(--ease) 0.25s forwards; }
  .js .joints circle { transform: scale(0); animation: pop 0.5s var(--ease) forwards; animation-delay: calc(0.15s + var(--i) * 0.07s); }
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }
