/* Carbide List homepage, "Machined".
   A dark carbide-grey page set like the spec plate on a good tool: one wide grotesk,
   small stamped labels, hairline rules, and the brand red only on the mark and the main
   button. The demo video and real app screens are the brightest things on the page.
   Shared pages (Privacy, Terms, Getting started) keep styles.css. */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("assets/fonts/archivo-latin-variable.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("assets/fonts/jetbrains-mono-latin-variable.woff2") format("woff2");
}

:root {
  --bg: #111214;
  --panel: #18191c;
  --ink: #eeede9;
  --body: #c9c8c3;
  --muted: #a3a39f;
  --line: #26272b;
  --line-strong: #3d3e44;
  --red: #c83e49;
  --red-text: #f0747e;
  --sans: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--red-text); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(40px, 5.9vw, 80px); line-height: .98; font-stretch: 108%; letter-spacing: -0.04em; }
h2 { font-size: clamp(30px, 4.2vw, 54px); line-height: 1.04; font-stretch: 108%; letter-spacing: -0.035em; }
h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; }
p { margin: 0; color: var(--body); }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1240px, 100% - clamp(40px, 10vw, 128px)); margin: 0 auto; }

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  padding: 10px 14px; border-radius: 6px;
  background: var(--ink); color: #111214; font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

/* Stamped labels */
.label, .when, .spec-label {
  font-family: var(--mono); font-size: 12px; font-weight: 500; line-height: 1.4;
  letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.label { display: block; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(17, 18, 20, .88);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-stuck { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.logo-mark { width: 30px; height: 30px; display: block; flex: none; }
/* The Carbide List lettering: the app's Michroma, drawn as outlines a little bolder than the font,
   so it needs no font file. Same size to the mark as in the app (132 x 10.5 beside a 38 px mark). */
.logo-word { display: block; width: 104px; height: 8.3px; flex: none; fill: currentColor; stroke: currentColor; }
.header-nav { display: flex; align-items: center; gap: 26px; font-size: 15px; color: var(--body); }
.header-nav a { text-decoration: none; }
.header-nav a:hover { color: #fff; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 6px;
  font: 600 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  border: 1px solid var(--line-strong); background: transparent; color: var(--ink);
}
.btn:hover { background: #1b1c20; border-color: #5a5b62; }
.btn-red { background: var(--red); border-color: var(--red); color: #fff; }
.btn-red:hover { background: #cf4350; border-color: #cf4350; }
.header-nav .btn { min-height: 42px; padding: 0 18px; font-size: 15px; color: #fff; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 88px) 0 0; overflow: hidden; overflow: clip; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { position: relative; z-index: 1; display: grid; gap: 28px; justify-items: start; }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-stage { position: relative; display: grid; justify-items: center; padding: 12px 0; }
.hero-hex { position: absolute; left: 50%; top: 50%; width: 150%; max-width: 660px; height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.hero-film {
  position: relative;
  width: min(100%, 400px); aspect-ratio: 4 / 5;
  border-radius: 14px; overflow: hidden;
  background: #f3f0ea; border: 1px solid var(--line-strong);
  box-shadow: 0 0 0 6px #17181b, 0 50px 90px -40px #000;
}
.hero-film-video { width: 100%; height: 100%; object-fit: cover; }
.hero-film-btn, .hero-film-toggle, .hero-film-play {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  border: 0; border-radius: 6px;
  font: 600 14px/1 var(--sans); cursor: pointer;
  background: rgba(17, 18, 20, .86); color: #fff;
  padding: 10px 14px 10px 11px; min-height: 44px;
}
.hero-film-btn { right: 12px; bottom: 12px; }
.hero-film-toggle { left: 12px; bottom: 12px; }
.hero-film-play { left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 14px 20px 14px 16px; font-size: 16px; background: #111214; white-space: nowrap; }
.hero-film-play[hidden], .hero-film-btn[hidden], .hero-film-toggle[hidden] { display: none; }
.hero-film-btn svg, .hero-film-toggle svg, .hero-film-play svg { width: 18px; height: 18px; flex: none; }
.hero-film-toggle .i-play, .hero-film-toggle[aria-pressed="true"] .i-pause { display: none; }
.hero-film-toggle[aria-pressed="true"] .i-play { display: block; }
.hero-film-btn .i-on, .hero-film-btn[aria-pressed="true"] .i-off { display: none; }
.hero-film-btn[aria-pressed="true"] .i-on { display: block; }

/* Spec strip */
.spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spec li { display: grid; gap: 8px; align-content: start; padding: 22px 24px 24px 0; }
.spec-val { font-size: clamp(18px, 1.6vw, 21px); font-weight: 500; letter-spacing: -0.015em; line-height: 1.2; }

/* Sections */
section.band { padding: clamp(64px, 8vw, 120px) 0; border-bottom: 1px solid var(--line); }
.head { display: grid; gap: 18px; max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { font-size: 18px; max-width: 36em; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.split .head { margin-bottom: 0; }
.split-center { align-items: center; }
.prose { display: grid; gap: 18px; }
.prose p { font-size: 18px; max-width: 34em; }

/* One item, start to finish */
/* A timeline: one dot per step on a rail that ends at the last step. */
.story { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.story li { position: relative; display: grid; gap: 14px; align-content: start; padding-top: 28px; }
.story li::before { content: ""; position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--bg); }
.story li:last-child::before { background: var(--ink); }
.story li::after { content: ""; position: absolute; left: 9px; right: -22px; top: 4px; height: 1px; background: var(--line-strong); }
.story li:last-child::after { display: none; }
.when-date { color: var(--ink); }
.story .pic { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: #1a1b1f; display: grid; place-items: center; padding: 14px; }
.story .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ring { position: absolute; left: 44%; top: 26%; width: 40%; height: 34%; border: 3px solid #e2535f; border-radius: 50%; }
.bubble { position: relative; margin: 0; font-size: 14px; line-height: 1.35; border-radius: 16px 16px 4px 16px; padding: 9px 13px; background: #2a70e4; color: #fff; }
.bubble.back { background: #2a1c1e; color: #f6a4ab; border: 1px solid #5c2e33; border-radius: 16px 16px 16px 4px; }
.story .txt { display: grid; gap: 8px; justify-items: start; }
.story p { font-size: 15px; }
.tag { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 9px; border-radius: 3px; border: 1px solid var(--line-strong); margin-top: 4px; }
.tag.ready { border-color: #6b5524; color: #f0c66a; }
.tag.back { border-color: #5c2e33; color: #f6a4ab; }
.tag.done { border-color: #285a45; color: #7fd3ae; }
.note { margin-top: 26px; font-size: 14px; color: var(--muted); }

/* What the crew sees */
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 520px; justify-self: end; width: 100%; }
.pair figure { margin: 0; display: grid; gap: 12px; }
.pair figcaption { text-align: center; }
.phone { background: #050506; border: 1px solid #3a3b41; border-radius: 30px; padding: 7px; box-shadow: 0 40px 70px -40px #000; }
.phone img { width: 100%; aspect-ratio: 3 / 5; object-fit: cover; object-position: top; border-radius: 23px; background: #fff; }

/* Who does what */
.comp { border-top: 1px solid var(--line-strong); margin-top: 14px; }
.comp li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); }
.comp-name { font-weight: 600; color: var(--ink); }
.comp-what { font-size: 16px; color: var(--body); }
.prose .small { font-size: 14px; }

/* Doesn't do + get in touch */
.end-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 22px; }
.box { border: 1px solid var(--line); border-radius: 10px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.box h2 { font-size: clamp(26px, 3vw, 38px); }
.box ul { display: grid; gap: 10px; color: var(--body); }
.box li { display: flex; gap: 12px; }
.box li::before { content: ""; flex: none; width: 14px; height: 1px; background: var(--muted); margin-top: 13px; }
.box-main { background: var(--panel); border-color: var(--line-strong); }
.box-main .btn { justify-self: start; }
.small { font-size: 14px; color: var(--muted); }

/* Questions */
.faq { max-width: 820px; border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 20px 36px 20px 0; font-weight: 600; font-size: 18px; letter-spacing: -0.01em; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { padding: 0 0 22px; max-width: 64ch; font-size: 16px; }

/* Footer */
.footer { padding: 28px 0 48px; font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }
.footer .wrap > span { flex: 1 1 260px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--ink); }

@media (max-width: 980px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .story li { grid-template-columns: 132px minmax(0, 1fr); column-gap: 18px; row-gap: 12px; padding: 0 0 30px 28px; align-items: start; }
  .story li:last-child { padding-bottom: 0; }
  .story li::before { top: 4px; }
  .story li::after { left: 4px; right: auto; top: 13px; bottom: -4px; width: 1px; height: auto; }
  .story .when { grid-column: 1 / -1; }
  .story .pic { aspect-ratio: 1; padding: 10px; }
}
@media (max-width: 860px) {
  .hero-grid, .split, .end-grid { grid-template-columns: minmax(0, 1fr); }
  .spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair { justify-self: start; }
  .header-nav { gap: 16px; }
  .header-nav .hide-small { display: none; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 40px); }
  .header-inner { height: 64px; }
  .story li { grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; }
  .story .pic { padding: 8px; }
  .bubble { font-size: 12px; padding: 7px 9px; }
  .comp li { grid-template-columns: 100px minmax(0, 1fr); gap: 10px; }
  .pair { gap: 12px; }
  .phone { border-radius: 24px; padding: 5px; }
  .phone img { border-radius: 19px; }
}
@media (max-width: 359px) {
  .logo-word { display: none; }
}

/* Walkthrough film: loads nothing until a visitor presses play. A phone gets the tall cut,
   where the app fills the frame (main.js picks it once, when the page opens); everything
   else, and a page without the script, gets the 16:9 one. */
.walk-film { border: 1px solid var(--line-strong); border-radius: 14px; overflow: hidden; background: #050506; box-shadow: 0 40px 70px -40px #000; }
.walk-film video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #050506; }
.walk-film video[hidden] { display: none; }
.walk-film.is-tall { max-width: 420px; margin-inline: auto; }
.walk-film.is-tall video { aspect-ratio: 9 / 16; }
