/* kinsteps.app. A block-built product site: white pages, a cool grey band, warm ink and the
   app's ember (KinPalette.kt, light theme) for actions only. Weights stay at 300-500; size and
   space carry the hierarchy. No gradient text, no glow, no pulsing. */

@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/public-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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: "Public Sans";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/fonts/public-sans-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 {
  color-scheme: light;
  --bg: #ffffff;
  --band: #f5f6f8;
  --tile: #f1f0ee;
  --ink: #141110;
  --text-2: #4f4a46;
  --text-3: #7d7671;
  --line: #e4e1dd;
  --accent: #d2431a;
  --accent-hover: #b5370f;
  --dark: #171412;
  --radius: 12px;
  --max: 1240px;
  --sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
p, li { text-wrap: pretty; }
a { color: inherit; }
b, strong { font-weight: 500; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: var(--bg); padding: 8px 14px; }

.container {
  width: 100%; max-width: var(--max); margin: 0 auto;
  padding-left: max(32px, env(safe-area-inset-left, 0px));
  padding-right: max(32px, env(safe-area-inset-right, 0px));
}

/* ---------- Type ---------- */
h1, h2, h3 { font-weight: 500; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(38px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(30px, 3.2vw, 42px); line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: clamp(18px, 1.6vw, 20px); font-weight: 300; color: var(--text-2); margin: 18px 0 0; max-width: 40ch; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 6px;
  font: 500 16px/1 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.text-link { color: var(--ink); font-weight: 500; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--accent); }

.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 22px 0 18px; border-radius: 8px; text-decoration: none;
  background: var(--ink); color: #fff; font-size: 18px; font-weight: 500; line-height: 1.15;
  transition: background .15s;
}
.store:hover { background: #2e2926; }
.store small { display: block; font-size: 11px; font-weight: 400; letter-spacing: .05em; opacity: .8; }

/* ---------- Promo bar + header ---------- */
.promo { background: var(--accent); color: #fff; text-align: center; font-size: 15px; font-weight: 400; }
.promo p { margin: 0; padding: 10px 16px; }
.promo a { color: #fff; font-weight: 500; text-underline-offset: 3px; white-space: nowrap; margin-left: 6px; }

.header {
  position: sticky; top: 0; z-index: 30; background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s;
}
.header.scrolled { box-shadow: 0 2px 14px rgba(20, 17, 16, .06); }
.header-row { display: flex; align-items: center; gap: 48px; height: 72px; }
.logo { display: inline-flex; align-items: center; color: var(--accent); text-decoration: none; }
.lettermark { display: block; height: 26px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 16px; padding: 24px 0; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.nav a:hover { border-bottom-color: var(--accent); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; color: var(--ink); cursor: pointer; }
.menu-toggle .when-open, .menu-open .menu-toggle .when-closed { display: none; }
.menu-open .menu-toggle .when-open { display: block; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.band { background: var(--band); }
.section-bar { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }

/* Hero: copy on one half, photograph bleeding to the edge on the other. */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 620px; background: var(--band); }
.hero-copy {
  align-self: center; justify-self: end; width: 100%; max-width: calc(var(--max) / 2);
  padding: 72px 56px 72px max(32px, calc((100vw - var(--max)) / 2 + 32px));
}
.hero-copy .lede { margin-bottom: 36px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-media { position: relative; overflow: hidden; }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media .phone { position: absolute; left: 40px; bottom: 40px; width: 200px; }

.phone {
  border-radius: 30px; overflow: hidden; background: #000;
  border: 7px solid #0d0b0a; box-shadow: 0 24px 48px -16px rgba(20, 17, 16, .35);
  aspect-ratio: 600 / 1240;
}
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Slider: a row of cards that scrolls sideways, arrows on wide screens. */
.slider-arrows { display: flex; gap: 10px; }
.round {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer;
  transition: border-color .15s, opacity .15s;
}
.round:hover { border-color: var(--ink); }
.round:disabled { opacity: .35; cursor: default; border-color: var(--line); }
.slider-track {
  list-style: none; margin: 0; padding: 0 0 8px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { scroll-snap-align: start; }
.slide a { display: block; text-decoration: none; color: inherit; }
.slide-img { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--tile); margin-bottom: 18px; }
.slide-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.slide a:hover .slide-img img { transform: scale(1.03); }
.slide p { color: var(--text-2); font-size: 16px; margin: 6px 0 12px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; font-size: 15px; color: var(--accent); }

/* Features: what's new, as a grid of white cards on the grey band. */
.features-head { margin-bottom: 40px; }
.features-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--bg); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.feature-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--band); color: var(--accent); display: grid; place-items: center; }
.chip { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); border: 1px solid currentColor; border-radius: 999px; padding: 3px 10px; }
.feature-card p { margin: 10px 0 0; color: var(--text-2); font-size: 16px; }
.feature-card .feature-note { margin-top: auto; padding-top: 16px; font-size: 14px; color: var(--text-3); }

/* Races: copy beside a stack of horizontal race cards, each led by a satellite picture. */
.races-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.races-list { display: grid; gap: 14px; }
.race-card {
  display: grid; grid-template-columns: 132px 1fr; min-height: 132px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg);
}
.race-img { position: relative; background: var(--tile); }
.race-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.race-date {
  position: absolute; top: 10px; left: 10px; display: grid; justify-items: center;
  padding: 5px 10px; border-radius: 10px; background: rgba(10, 8, 7, .58); color: #fff;
  font-size: 20px; font-weight: 500; line-height: 1.15;
}
.race-date span { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.race-body { padding: 18px 20px; align-self: center; }
.race-body h3 { font-size: 19px; }
.race-body p { margin: 4px 0 0; color: var(--text-2); font-size: 15px; }
.race-pills { display: flex; gap: 6px; margin-top: 12px; }
.race-pills span { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--band); color: var(--ink); }
.race-credit { margin: 2px 0 0; font-size: 12px; color: var(--text-3); }

/* Spotlight: a feature with its screens. */
.spotlight + .spotlight, .races + .spotlight { padding-top: 0; }
.spotlight-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.flip .spotlight-media { order: 2; }
.spotlight-media {
  background: var(--tile); border-radius: 20px; padding: 56px 0;
  display: flex; justify-content: center; align-items: center; gap: 24px; min-height: 560px;
}
.spotlight-media .phone { width: 230px; }
.spotlight-media.pair .phone { width: 200px; }
.spotlight-media.pair .phone:nth-child(2) { transform: translateY(36px); }
.ticks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; }
.ticks li { display: grid; grid-template-columns: 18px 1fr; gap: 14px; color: var(--text-2); }
.ticks svg { color: var(--accent); margin-top: 4px; }
.ticks b { color: var(--ink); }

/* Message: a centred statement that opens a group of blocks. */
.message { text-align: center; padding-bottom: 48px; }
.message .lede { margin-left: auto; margin-right: auto; }

/* Collection: large tiles, a photograph or a screen on paper. */
.collection { padding-bottom: 96px; }
.collection-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 460px; }
.tile h3 { font-size: 24px; }
.tile p { margin: 8px 0 0; font-size: 16px; max-width: 42ch; }
.tile-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 8, 7, .85) 0%, rgba(10, 8, 7, .55) 40%, rgba(10, 8, 7, 0) 75%); }
.tile-photo .tile-copy { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 32px; color: #fff; }
.tile-photo p { color: rgba(255, 255, 255, .86); }
.tile-screen { background: var(--tile); display: flex; flex-direction: column; }
.tile-screen .tile-copy { padding: 32px 32px 0; }
.tile-screen p { color: var(--text-2); }
.tile-phone {
  margin: 32px auto 0; width: 240px; flex: 1; min-height: 240px; position: relative;
  border-radius: 28px 28px 0 0; overflow: hidden; border: 7px solid #0d0b0a; border-bottom: 0; background: #000;
}
.tile-phone img { position: absolute; inset: 0; width: 100%; height: auto; }

/* Strip: four promises with icons on the grey band. */
.strip h2 { margin-bottom: 56px; }
.strip-grid { list-style: none; padding: 0; margin: 0 0 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; text-align: center; }
.strip-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--bg); color: var(--accent); display: inline-grid; place-items: center; margin-bottom: 18px; }
.strip h3 { font-size: 18px; }
.strip-grid p { margin: 8px 0 0; color: var(--text-2); font-size: 16px; }

/* FAQ */
.faq-row { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; }
.faq-list { 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: 24px 0; font-size: 19px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { flex: none; color: var(--text-3); transition: transform .2s; display: grid; }
.faq details[open] .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq details p { margin: -8px 0 24px; color: var(--text-2); max-width: 62ch; }
.faq details a { color: var(--accent); }

/* Closing call to action */
.cta { background: var(--dark); color: #fff; text-align: center; padding: 96px 0; }
.cta-inner h2 { max-width: 18ch; margin: 0 auto; }
.cta-inner p { color: rgba(255, 255, 255, .72); font-size: 19px; font-weight: 300; margin: 16px auto 36px; max-width: 46ch; }

/* ---------- Footer ---------- */
.footer { background: var(--band); padding: 72px 0 40px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand p { color: var(--text-2); margin: 16px 0 0; max-width: 26ch; }
.footer-col h2 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--ink); text-decoration: none; padding: 5px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; color: var(--text-3); font-size: 13px; }

/* ---------- Policy pages ---------- */
.prose { max-width: 720px; padding: 64px 0 96px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 44px); margin-bottom: 10px; }
.prose h2 { margin: 44px 0 14px; padding-top: 26px; border-top: 1px solid var(--line); font-size: 22px; letter-spacing: -.015em; }
.prose h3 { margin: 28px 0 8px; font-size: 17px; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--accent); }
.meta { color: var(--text-3); font-size: 14px; margin: 0 0 28px; }
.callout { border: 1px solid var(--line); border-left: 2px solid var(--accent); background: var(--band); border-radius: 10px; padding: 20px 22px; margin: 28px 0; }
.callout p { margin: 0; }
.scroller { overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; min-width: 420px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-2); }
.prose th { color: var(--ink); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; max-width: 54ch; }
.steps li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 14px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--band); color: var(--text-2); font-size: 13px; font-weight: 500;
  display: grid; place-items: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .slider-track { grid-auto-columns: calc((100% - 48px) / 3); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: repeat(4, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 32px 24px;
  }
  .menu-open .nav { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 18px; }
  .nav a:hover { border-bottom-color: var(--line); color: var(--accent); }
  .menu-toggle { display: grid; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { justify-self: stretch; max-width: none; padding: 56px 32px; }
  .hero-media { aspect-ratio: 4 / 3; }
  .hero-media .phone { width: 150px; left: auto; right: 24px; bottom: 24px; }

  .spotlight-row, .races-row { grid-template-columns: 1fr; gap: 40px; }
  .flip .spotlight-media { order: 0; }
  .spotlight-media { min-height: 0; padding: 40px 0; }

  .collection-grid { grid-template-columns: 1fr; }
  .faq-row { grid-template-columns: 1fr; gap: 24px; }
  .section { padding: 72px 0; }
}

@media (max-width: 640px) {
  .container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .header-row { height: 64px; gap: 16px; }
  .nav { top: 64px; padding: 8px 16px 24px; }
  .header-end .btn { display: none; }
  .promo { font-size: 14px; }
  .hero-copy { padding: 44px 16px; }
  .section { padding: 56px 0; }
  .slider-arrows { display: none; }
  .slider-track { grid-auto-columns: 78%; gap: 16px; }
  .spotlight-media .phone { width: 180px; }
  .spotlight-media.pair { gap: 14px; }
  .spotlight-media.pair .phone { width: 148px; }
  .tile { min-height: 400px; }
  .tile-photo .tile-copy, .tile-screen .tile-copy { padding: 24px; }
  .tile-phone { width: 210px; }
  .race-card { grid-template-columns: 108px 1fr; min-height: 116px; }
  .race-body { padding: 14px 16px; }
  .race-body h3 { font-size: 17px; }
  .strip-grid { grid-template-columns: 1fr; gap: 32px; }
  .features-grid { grid-template-columns: 1fr; gap: 16px; }
  .feature-card { padding: 24px; }
  .collection { padding-bottom: 56px; }
  .cta { padding: 72px 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .prose { padding: 40px 0 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
.static .slider-arrows { visibility: hidden; }
