/*
 * CodeTroupe's landing page. Light, on the animation's dotted stage turned to
 * day, with its serif for display and Inter for everything else
 * (brand/README.md in atelier-bb16/orchestrator). The animation and the
 * terminal stay dark, like screens set into the page.
 */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;

  --bg:     #fafafa;
  --band:   #f4f4f5;
  --card:   #ffffff;
  --line:   #e4e4e7;
  --line-2: #d4d4d8;

  --text:   #3f3f46;
  --strong: #18181b;
  --dim:    #52525b;
  --faint:  #6b6b73;
  --em:     #5b5b63;

  --screen: #141414;
  --green:  #15803d;

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --wrap: 1120px;
  --gutter: 24px;
  --radius: 14px;
  --lift: 0 1px 2px rgb(24 24 27 / 0.04), 0 8px 24px -12px rgb(24 24 27 / 0.12);
  --float: 0 30px 70px -32px rgb(24 24 27 / 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
code { font-family: var(--mono); font-size: 0.86em; color: var(--strong); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  padding: 8px 14px; border-radius: 8px; background: var(--strong); color: #ffffff;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid #0284c7; outline-offset: 3px; border-radius: 6px; }
/* Inside, where a rounded frame clips what's outside it: a video with controls, a scrolling command (#10) */
.film video:focus-visible, .term pre:focus-visible { outline-offset: -3px; }

/* Type */
h1, h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  color: var(--strong);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(46px, 7vw, 84px); line-height: 1; }
h2 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.05; }
h1 em, h2 em { font-style: italic; color: var(--em); }
h3 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: var(--strong); }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 48px; padding: 0 22px; border: 1px solid var(--strong); border-radius: 10px;
  background: var(--strong); color: #ffffff;
  font: 600 15px/1 var(--sans); letter-spacing: 0.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: #000000; border-color: #000000; }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }

.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
/* The second choice beside a button: the same shape, quieter */
.btn-quiet { background: var(--card); color: var(--strong); border-color: var(--line); }
.btn-quiet:hover { background: var(--band); border-color: rgb(24 24 27 / 0.2); }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgb(250 250 250 / 0.84);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgb(24 24 27 / 0.07);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-link { font: 500 14.5px/1 var(--sans); color: var(--dim); text-decoration: none; white-space: nowrap; }
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--strong); }
/* The white mark with the soft shadow the app gives it (brand/README.md), and
   the name in the wordmark's own Inter SemiBold. */
.brand {
  display: inline-flex; align-items: center; gap: 10px; border-radius: 6px;
  font-size: 20px; font-weight: 600; letter-spacing: -0.03em; color: var(--strong); text-decoration: none;
}
.mark { overflow: visible; filter: drop-shadow(0 1px 1px rgb(0 0 0 / 0.22)) drop-shadow(0 2px 5px rgb(0 0 0 / 0.16)); }
.brand .mark { width: 32px; height: 32px; }
.mark-big { filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.2)) drop-shadow(0 5px 12px rgb(0 0 0 / 0.16)); }

/* The stage: the animation's dotted ground, by day */
.stage {
  background-color: var(--band);
  background-image: radial-gradient(rgb(24 24 27 / 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* 1. Hero */
.hero { padding: clamp(64px, 11vw, 128px) 0 clamp(56px, 8vw, 96px); text-align: center; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 20ch; margin: 0 auto; }
.hero h1 em { display: block; }  /* the promise on a line of its own */
.lede {
  max-width: 660px; margin: 28px auto 0;
  font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--dim);
  text-wrap: pretty;
}
.lede strong { font-weight: 500; color: var(--strong); }
.hero .cta { margin-top: 36px; }
.hero .doc-kicker { margin: 0 auto 18px; text-wrap: balance; }  /* what CodeTroupe is, above the headline (#18) */

.film {
  position: relative; margin: clamp(48px, 7vw, 80px) auto 0; max-width: 1072px;
  border-radius: var(--radius); overflow: hidden; background: var(--screen);
  box-shadow: 0 0 0 1px rgb(24 24 27 / 0.12), var(--float);
}
.film video { width: 100%; aspect-ratio: 16 / 9; }
.film-toggle, .film-sound {
  position: absolute; right: 14px; bottom: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; border: 1px solid rgb(255 255 255 / 0.16); border-radius: 50%;
  background: rgb(20 20 20 / 0.7); color: #f5f5f5; cursor: pointer;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.film-toggle svg, .film-sound svg { width: 16px; height: 16px; fill: currentColor; }
.film-sound { right: 58px; }
.film-sound .stroke { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.film-sound[aria-pressed="true"] .i-off,
.film-sound[aria-pressed="false"] .i-on { display: none; }
.film-play {
  position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgb(255 255 255 / 0.22); border-radius: 50%;
  background: rgb(20 20 20 / 0.62); color: #ffffff; cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 0.15s, background 0.15s;
}
.film-play[hidden] { display: none; }
.film-play:hover { transform: scale(1.05); background: rgb(20 20 20 / 0.75); }
.film-play svg { width: 30px; height: 30px; margin-left: 4px; fill: currentColor; }
.film-toggle[data-state="playing"] .i-play,
.film-toggle[data-state="paused"] .i-pause { display: none; }

/* Sections */
.section { padding: clamp(80px, 11vw, 136px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.intro { max-width: 660px; }
.intro p { margin-top: 20px; color: var(--dim); text-wrap: pretty; }
.intro h3 + p { margin-top: 12px; }
.intro.sub { margin-top: 64px; }

/* 2. The cast */
.cast {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.member {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 18px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--lift);
}
.pic {
  width: 88px; height: 88px; border-radius: 50%;
  box-shadow: 0 0 0 2px rgb(var(--c)), 0 6px 22px -4px rgb(var(--c) / 0.45);
}
.you .pic { box-shadow: 0 0 0 2px rgb(var(--c) / 0.5); outline: 2px dashed rgb(var(--c) / 0.45); outline-offset: 5px; }
.m-name { margin-top: 18px; font-size: 18px; font-weight: 600; color: var(--strong); }
.m-title { margin-top: 2px; font-size: 14px; color: var(--dim); }
.tag {
  display: inline-flex; align-items: center; height: 20px; margin-top: 10px; padding: 0 9px; border-radius: 10px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: color-mix(in srgb, rgb(var(--c)) 58%, #000000);
  background: rgb(var(--c) / 0.1); border: 1px solid rgb(var(--c) / 0.4);
}
.member p { margin-top: 14px; font-size: 14.5px; line-height: 1.5; color: var(--dim); }
.after { max-width: 660px; margin-top: 32px; color: var(--dim); }

/* Two columns: words beside a picture */
.split {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.split + .split, .wrap + .split { margin-top: clamp(64px, 9vw, 112px); }
.split.flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.split.flip .intro { order: 2; }

/* 3. A real spec */
.spec { margin: 0; }
.spec-card {
  padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--float);
  font-size: 14.5px; line-height: 1.55; color: var(--text);
}
.spec-head { display: flex; align-items: center; gap: 10px; }
.spec-ref { font: 500 12.5px var(--mono); color: var(--faint); }
.label {
  display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 11px;
  background: #1b1b1c; color: #f5f5f5; font: 500 12px var(--sans);
}
.spec-card h3 { margin-top: 12px; font-size: 19px; }
.spec-meta { margin-top: 10px; font: 12px/1.6 var(--mono); color: var(--faint); overflow-wrap: anywhere; }
.spec-meta span { color: var(--dim); }
.spec-card > p:not(.spec-meta):not(.spec-done) { margin-top: 14px; }
.spec-done { margin-top: 14px; font-weight: 600; color: var(--strong); }
.spec-card ul { margin: 6px 0 0; padding-left: 20px; }
.spec-card li { margin-top: 4px; }
.spec-card li.more { list-style: none; margin-left: -20px; color: var(--faint); font-style: italic; }
.spec-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 13.5px; color: var(--dim);
}
.spec-foot img { width: 28px; height: 28px; border-radius: 50%; box-shadow: 0 0 0 2px rgb(var(--c)); }
.spec-foot .who { display: inline-flex; align-items: center; gap: 10px; }
.spec-foot b { color: var(--strong); font-weight: 600; }
.spec figcaption { padding: 14px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--faint); }

/* 4. The gates every change goes through */
.gates {
  list-style: none; margin: 48px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 12px 36px;
}
.gates li {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 20px;
  background: var(--card); box-shadow: var(--lift);
  font-size: 15px; font-weight: 500; color: var(--strong);
}
.gates li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  background: rgb(34 197 94 / 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.gates li:not(:last-child)::after {
  content: ""; position: absolute; right: -28px; top: 50%; width: 20px; height: 1px; background: var(--line-2);
}

/* 5. Their name on their work */
.term {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: 0 0 0 1px rgb(24 24 27 / 0.1), var(--float);
}
.term-bar { display: flex; gap: 7px; padding: 12px 14px; background: #202022; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3d; }
.term pre {
  margin: 0; padding: 18px 20px; overflow-x: auto; background: #161617;
  font: 12px/1.7 var(--mono); color: #c4c4c8; tab-size: 4;
}
.term pre code { font-size: inherit; color: inherit; }
.term .p { color: #7c7c82; }
.term .h { color: #9a9aa0; }
.term .k { color: #9a9aa0; }
.term b { font-weight: 600; }
.term .fen { color: #f59e0b; }
.term figcaption, .shot figcaption { font-size: 13.5px; line-height: 1.5; color: var(--faint); }
.term figcaption { padding: 12px 16px; }

.shot { margin: 0; }
.zoom { display: block; border-radius: 12px; }
.shot img {
  width: 100%; border-radius: 12px;
  box-shadow: 0 0 0 1px rgb(24 24 27 / 0.1), var(--float);
}
.shot figcaption { padding: 14px 2px 0; }
.shot.wide { margin-top: 56px; }

/* 7. What the AI costs */
.panel { justify-self: center; width: 100%; max-width: 340px; }
.panel img { border-radius: 12px; }

/* 6. Choose your part */
.parts {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.part { padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--lift); }
.part p { margin-top: 10px; font-size: 15.5px; line-height: 1.55; color: var(--dim); }
.faces { display: flex; margin-bottom: 22px; padding-left: 8px; }
.faces img {
  width: 32px; height: 32px; margin-left: -8px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--card);
}

/* 8. Backstage */
.steps {
  list-style: none; margin: 56px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
}
.steps li { position: relative; padding: 0 20px 0 0; }
.steps li::before {
  content: ""; position: absolute; left: 30px; right: 0; top: 14px; height: 1px; background: var(--line-2);
}
.steps li:last-child::before { display: none; }
.steps .n {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid rgb(34 197 94 / 0.5); background: #effbf3; color: var(--green);
  font: 600 12.5px/1 var(--sans);
}
.steps h3 { margin-top: 18px; }
.steps p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--dim); }

.proof {
  margin-top: 64px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--lift);
}
.proof-title { font-size: 15px; color: var(--dim); }
.proof-title span { color: var(--strong); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 20px 0 0; }
.stats div { padding-left: 16px; border-left: 1px solid var(--line-2); }
.stats dt { font-size: 13px; color: var(--faint); }
.stats dd { margin: 4px 0 0; font: 400 26px/1.15 var(--serif); color: var(--strong); }
.stats dd span { color: var(--faint); }

/* 9. Bring your own tools: supported in colour, in the works in grey */
.preview-note { display: flex; align-items: center; gap: 10px; margin-top: 32px; font-size: 15px; color: var(--dim); }
.pill {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px;
  background: var(--strong); color: #ffffff; font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}
.toolsets {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.toolset {
  display: grid; grid-row: span 6; grid-template-rows: subgrid; row-gap: 0; align-content: start;
  padding: 28px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--lift);
}
.toolset > p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--dim); }
.toolset .tool-label {
  margin-top: 22px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint);
}
.tools { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tools li { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; color: var(--strong); }
.tools .logo {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: 12px; background: #ffffff; box-shadow: 0 1px 2px rgb(24 24 27 / 0.06);
}
.tools .logo img { width: 26px; height: 26px; object-fit: contain; }
.tools.later li { color: var(--faint); font-weight: 400; }
.tools.later .logo { background: var(--band); box-shadow: none; }
.tools.later .logo img { filter: grayscale(1); opacity: 0.55; }

/* 10. A quick look: one screen at a time, arrows either side */
.tour { position: relative; margin-top: 48px; padding: 0 64px; container-type: inline-size; }
.tour-track {
  list-style: none; margin: 0; padding: 0;
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; border-radius: 12px; outline-offset: 6px;
}
.tour-track::-webkit-scrollbar { display: none; }
.tour-slide { flex: 0 0 100%; min-width: 0; padding: 1px 1px 0; scroll-snap-align: start; scroll-snap-stop: always; }
.tour-slide figure { margin: 0; }
.tour-slide img { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgb(24 24 27 / 0.12); }
.tour-slide figcaption { padding: 18px 2px 0; font-size: 15.5px; line-height: 1.5; color: var(--dim); text-wrap: pretty; }
.tour-slide figcaption b { margin-right: 6px; font-weight: 600; color: var(--strong); }
/* Level with the middle of the screenshot, which is 16:10 and as wide as the track. */
.tour-arrow {
  position: absolute; top: calc((100cqw - 128px) * 0.3125 - 22px);
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--card); color: var(--strong);
  box-shadow: var(--lift); cursor: pointer; transition: background 0.15s;
}
.tour-arrow:hover { background: var(--band); }
.tour-arrow.prev { left: 0; }
.tour-arrow.next { right: 0; }
.tour-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tour-foot { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 22px; }
.tour-count { min-width: 52px; font: 500 13px var(--mono); color: var(--faint); text-align: right; }
.tour-dots { display: flex; }
.tour-dot { position: relative; width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.tour-dot::after {
  content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-2); transition: background 0.15s, transform 0.15s;
}
.tour-dot:hover::after { background: var(--faint); }
.tour-dot[aria-current]::after { background: var(--strong); transform: scale(1.25); }

/* 11. Questions */
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 2px; cursor: pointer; list-style: none;
  font-size: 17px; font-weight: 600; color: var(--strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 14px; height: 14px;
  background: linear-gradient(currentColor, currentColor) center / 14px 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center / 1.5px 14px no-repeat;
  color: var(--faint); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 20px; max-width: 620px; color: var(--dim); }
/* An answer with a list (#18): the lead, the points, then a closing line */
.faq details p:has(+ ul) { padding-bottom: 12px; }
.faq details ul { margin: 0; padding: 0 2px 16px 22px; max-width: 620px; color: var(--dim); }
.faq details li + li { margin-top: 8px; }
.faq details li strong { font-weight: 500; color: var(--strong); }

/* 11. Join the troupe: the newsletter sign-up (#16) */
.join { padding: clamp(88px, 12vw, 144px) 0; border-top: 1px solid var(--line); text-align: center; }
.join + .section { border-top: 1px solid var(--line); }
.join .mark { width: 56px; height: 56px; margin: 0 auto 28px; }
.join .lede { margin-top: 20px; }
.join-form { max-width: 460px; margin: 36px auto 0; }
.join-small { margin-top: 12px; font-size: 13px; color: var(--faint); text-align: center; }
.join-small a { white-space: nowrap; }

/* The sign-up form (#16): MailerLite's markup, in the site's look. Its
   script finds the form, marks errors and shows the thank-you by these class
   names. */
.join + .section { border-top: 1px solid var(--line); }
.news-form { text-align: left; }
.news-form .ml-form-horizontalRow { display: flex; gap: 8px; }
.news-form .ml-input-horizontal { flex: 1; min-width: 0; }
.news-form input[type="email"] {
  width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--card); color: var(--strong); font: 400 15px/1 var(--sans);
}
.news-form input[type="email"]::placeholder { color: var(--faint); }
.news-form input[type="email"]:focus { outline: 2px solid var(--strong); outline-offset: 1px; }
.news-form .ml-error input[type="email"] { border-color: #b91c1c; }
.news-form .btn.loading { gap: 8px; }
.news-form .ml-form-embedSubmitLoad {
  width: 16px; height: 16px; border: 2px solid #ffffff; border-right-color: transparent; border-radius: 50%;
  animation: news-spin 1s linear infinite;
}
@keyframes news-spin { to { transform: rotate(360deg); } }
.news-form .ml-form-successContent h4 { margin: 0; font-size: 17px; font-weight: 600; color: var(--strong); }
.news-form .ml-form-successContent p { margin-top: 6px; font-size: 15px; color: var(--dim); }
@media (max-width: 480px) {
  .news-form .ml-form-horizontalRow { flex-direction: column; }
  .news-form .ml-button-horizontal .btn { width: 100%; }
}

/* Get started: a page to read and follow, beside the steps it has */
.doc-head { padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(42px, 6vw, 68px); }
.doc-head .lede { margin: 18px 0 0; max-width: 620px; text-align: left; }
/* The install command at the top, for those who know what they need: a card
   under the title, what it is on the left and the command on the right */
.quick {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: center;
  margin-top: 36px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--lift);
}
.quick-title { font-size: 17px; font-weight: 600; color: var(--strong); }
.quick-notes { display: grid; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.5; color: var(--dim); }
.quick-notes li { text-wrap: pretty; }
.quick-notes b { font-weight: 600; color: var(--strong); }
.quick-notes a { color: var(--strong); text-underline-offset: 3px; }
.quick-notes code { overflow-wrap: anywhere; }
.quick-term { box-shadow: 0 0 0 1px rgb(24 24 27 / 0.1); }
.quick-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; background: #202022; }
.quick-dots { display: flex; gap: 7px; }
.quick-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a3d; }
.quick-bar .quick-copy { margin: 0; }
.quick-term pre { white-space: pre-wrap; font-size: 13px; line-height: 1.65; }
@media (max-width: 880px) { .quick { grid-template-columns: 1fr; padding: 20px; } }
.doc-kicker { margin-bottom: 14px; font: 500 12.5px var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--faint); }
.doc {
  display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px);
  padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(72px, 10vw, 120px);
}
.toc { position: sticky; top: 88px; align-self: start; }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; border-left: 1px solid var(--line-2); }
.toc li { counter-increment: toc; }
.toc a {
  display: block; padding: 5px 0 5px 16px; margin-left: -1px; border-left: 1px solid transparent;
  font-size: 14.5px; color: var(--dim); text-decoration: none;
}
.toc a::before { content: counter(toc) ". "; color: var(--faint); }
.toc a:hover { color: var(--strong); border-left-color: var(--strong); }
.doc-body { max-width: 720px; }
.doc-body section + section { margin-top: clamp(56px, 7vw, 80px); }
.doc-body h2 { display: flex; align-items: baseline; gap: 14px; font-size: clamp(30px, 3.6vw, 40px); }
.doc-body h2 .n { flex: none; font: 500 15px var(--mono); color: var(--faint); transform: translateY(-4px); }
.doc-body h3 { margin-top: 32px; }
.doc-body h4 { margin: 24px 0 0; font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--strong); }
.doc-body p, .doc-body ul, .doc-body ol, .doc-body table, .doc-body figure, .doc-body .choice { margin-top: 14px; }
.doc-body h2 + p, .doc-body h2 + ul { margin-top: 20px; }
.doc-body ul, .doc-body ol { padding-left: 22px; }
.doc-body li + li { margin-top: 8px; }
.doc-body strong { font-weight: 600; color: var(--strong); }
.doc-body a { text-underline-offset: 3px; }
.doc-body :not(pre) > code { overflow-wrap: anywhere; }
.doc-body table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.doc-body th, .doc-body td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-body th { font-size: 13px; font-weight: 600; color: var(--faint); border-bottom-color: var(--line-2); }
.doc-body td:first-child { color: var(--strong); }
.doc-body .note { padding: 14px 16px; border-radius: 10px; background: var(--band); font-size: 15px; color: var(--dim); }
.req, .rec { margin-left: 6px; font: 500 11.5px var(--mono); white-space: nowrap; }
.req { color: var(--strong); }
.rec { color: var(--faint); }
.shots { display: grid; grid-template-columns: minmax(0, 348fr) minmax(0, 546fr); gap: 18px; align-items: start; }
.shots .shot img { border-radius: 10px; box-shadow: 0 0 0 1px rgb(24 24 27 / 0.12); }
.shots figcaption { font-size: 13.5px; }
.arch { margin-top: 24px !important; }
.arch-scroll { overflow-x: auto; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--lift); }
.arch svg { display: block; width: 100%; min-width: 560px; height: auto; }
.arch figcaption { padding: 12px 2px 0; font-size: 13.5px; line-height: 1.5; color: var(--faint); }
.arch text { font-family: var(--sans); fill: var(--dim); }
.arch .arch-label { font-size: 14px; font-weight: 600; fill: var(--faint); letter-spacing: 0.02em; }
.arch .arch-title { font-size: 16px; font-weight: 600; fill: var(--strong); }
.arch .arch-name { font-size: 15px; font-weight: 600; fill: var(--strong); }
.arch .arch-small { font-size: 13px; }
.arch .arch-strong { font-weight: 600; fill: var(--strong); }
.arch .arch-mid { text-anchor: middle; }
.arch .arch-end { text-anchor: end; }
.arch .arch-tag { font-size: 13px; font-weight: 500; fill: var(--strong); paint-order: stroke; stroke: var(--card); stroke-width: 5px; stroke-linejoin: round; }
.arch-host { fill: none; stroke: var(--faint); stroke-width: 1.2; stroke-dasharray: 5 4; }
.arch-unit { fill: var(--band); stroke: var(--line-2); }
.arch-box { fill: var(--card); stroke: var(--line-2); }
.arch-main { stroke: var(--faint); }
.arch-ext { fill: var(--band); stroke: var(--strong); }
.arch-card { fill: var(--card); stroke: var(--faint); }
.arch-card.back { stroke: var(--line-2); }
.arch-chip { fill: var(--band); stroke: var(--line-2); }
.arch .arch-yours { stroke: var(--faint); stroke-dasharray: 4 3; fill: var(--card); }
.arch-line { fill: none; stroke: var(--strong); stroke-width: 1.4; }
.arch-head { fill: var(--strong); }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.choice > div { padding: 20px 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--lift); }
.choice h3 { margin: 0; font-size: 16px; }
.choice p { margin-top: 10px; font-size: 15px; color: var(--dim); }
.term.cmd { display: flex; align-items: flex-start; background: #161617; box-shadow: 0 0 0 1px rgb(24 24 27 / 0.1); }
.term.cmd pre { flex: 1; min-width: 0; font-size: 13px; }
.copy {
  flex: none; margin: 12px 12px 0 0; height: 28px; padding: 0 10px;
  border: 1px solid #3a3a3d; border-radius: 6px; background: #202022; color: #c4c4c8;
  font: 500 12px var(--sans); cursor: pointer;
}
.copy:hover { background: #2a2a2d; color: #ffffff; }
.flow { counter-reset: flow; list-style: none; padding-left: 0 !important; }
.flow li { position: relative; padding-left: 40px; counter-increment: flow; }
.flow li::before {
  content: counter(flow); position: absolute; left: 0; top: 1px;
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--strong); color: #fff; font: 600 13px var(--sans);
}

/* Footer */
.foot { border-top: 1px solid var(--line); background: var(--bg); }
.foot-in {
  display: flex; align-items: center; gap: 24px; padding-top: 28px; padding-bottom: 28px;
  font-size: 14px; color: var(--faint);
}
.foot-in .brand { font-size: 16px; gap: 8px; }
.foot-in .brand .mark { width: 24px; height: 24px; }
.foot-in p { margin-right: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: inherit; }  /* they wrap together on narrow screens, a whole link at a time */
.foot-links a { white-space: nowrap; }
.foot-in a { color: var(--dim); text-decoration: none; }
.foot-in a:hover { color: var(--strong); text-decoration: underline; text-underline-offset: 3px; }

/* Narrower screens */
@media (max-width: 1040px) {
  .cast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .steps li::before { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
}
@media (max-width: 880px) {
  .split, .split.flip, .parts, .faq-wrap, .toolsets, .doc, .choice, .shots { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .split.flip .intro { order: 0; }
  .gates { gap: 10px 12px; }
  .gates li:not(:last-child)::after { display: none; }
}
@media (max-width: 760px) {
  .tour { padding: 0; }
  .tour-arrow { top: calc(100cqw * 0.3125 - 18px); width: 36px; height: 36px; background: rgb(255 255 255 / 0.9); }
  .tour-arrow.prev { left: 8px; }
  .tour-arrow.next { right: 8px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .nav-in { height: 56px; }
  .nav-links { gap: 14px; }
  .brand { font-size: 18px; }
  .cast { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .member { padding: 22px 12px 18px; }
  .pic { width: 72px; height: 72px; }
  .member.you { grid-column: 1 / -1; }
  .you .m-title { display: none; }
  .spec-card { padding: 20px 18px; }
  .gates li { height: 36px; padding: 0 12px; font-size: 14px; }
  .steps { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; padding: 0; }
  .steps .n { grid-row: span 2; }
  .steps h3 { margin-top: 3px; }
  .stats dd { font-size: 22px; }
  .term pre { font-size: 11.5px; padding: 16px; }
  .foot-in { flex-wrap: wrap; gap: 8px 20px; }
}

/* The video page (/tour/): one player, with the selected video's title and
   description under it, and the list of videos beside it */
.watch-head { padding: clamp(32px, 4vw, 44px) 0 clamp(24px, 3vw, 32px); }
.watch-head h1 { font-size: clamp(34px, 4vw, 46px); }
.watch-head .lede { margin-top: 10px; max-width: 680px; font-size: 17px; }
.watch { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-block: 30px 96px; }
.watch-film { margin: 0; }
.watch-film video { display: block; height: auto; }
.watch-now { margin-top: 18px; }
.watch-now h2 { font-size: clamp(28px, 3vw, 34px); }
.watch-length { margin-top: 6px; font-size: 13.5px; color: var(--faint); }
.watch-text { margin-top: 10px; max-width: 700px; font-size: 15.5px; line-height: 1.55; color: var(--dim); text-wrap: pretty; }
.watch-list ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.watch-group { margin: 6px 0 4px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.watch-group:not(:first-child) { margin-top: 20px; }
.watch-group-text { margin: 0 0 6px; font-size: 13.5px; line-height: 1.45; color: var(--dim); }
.watch-item {
  display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%;
  padding: 8px; border: 0; border-radius: 12px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.watch-item:hover { background: var(--band); }
.watch-item:focus-visible { outline: 2px solid var(--strong); outline-offset: 2px; }
.watch-item[aria-current="true"] { background: var(--card); box-shadow: 0 0 0 1px var(--line), var(--lift); }
.watch-item img { display: block; width: 128px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.watch-item-text { display: grid; gap: 2px; }
.watch-item-title { font-family: var(--serif); font-size: 20px; line-height: 1.1; color: var(--strong); }
.watch-item-title em { font-style: italic; color: var(--em); }
.watch-item-length { font-size: 13px; color: var(--faint); }
@media (max-width: 960px) { .watch { grid-template-columns: minmax(0, 1fr); } }

/* Page not found (404.html): the hero's ground, with the way back */
.not-found { min-height: calc(100vh - 64px - 92px); display: grid; align-content: center; }
.not-found .doc-kicker { margin-bottom: 18px; }
.not-found h1 { max-width: none; }
.not-found-more { margin-top: 22px; font-size: 15px; color: var(--dim); }
.not-found-more a { color: var(--strong); text-underline-offset: 3px; }

/* Company details (about/): the doc page's head, and one column of facts */
.about { padding-block: clamp(48px, 6vw, 72px) clamp(64px, 8vw, 96px); }
.about .facts th { width: 38%; padding-right: 20px; font-weight: 500; color: var(--dim); }
.about .facts td { color: var(--strong); }
.policy-date { margin-top: 14px; font-size: 14px; color: var(--faint); }  /* the privacy policy's date (#13) */
