/* Thin Film Forge site (landing, pricing, docs). Same tokens as the app (frontend/src/styles.css):
   day = Python blue #3776AB on light gray, night = cornflower #6495ED on dark gray. Night is the default; site/theme.js sets data-theme. */
:root {
  color-scheme: dark;
  --plane: #1c1d20; --surface: #25272b; --surface-2: #2e3035; --ink: #ecedee; --ink-2: #c5c7cb; --muted: #9a9da3;
  --hairline: #34373c; --line: #464a50; --accent: #6495ed; --accent-hover: #7ba6f0; --accent-ink: #0f1318;
  --accent-wash: rgba(100, 149, 237, 0.14); --warn: #f0b45a; --bad: #f07575;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35); --shadow-float: 0 8px 28px rgba(0, 0, 0, 0.5);
  --radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  --nav-h: 79px;  /* the sticky bar's height; site/theme.js keeps it measured */
  scroll-padding-top: calc(var(--nav-h) + 12px);  /* in-page links land below the bar */
}
:root[data-theme="light"] {
  color-scheme: light;
  --plane: #e8eaed;
  --surface: #f5f6f8;
  --surface-2: #e9ecef;
  --ink: #202124;
  --ink-2: #44474c;
  --muted: #5f6368;
  --hairline: #dadde1;
  --line: #c9cdd2;
  --accent: #3776ab;
  --accent-hover: #2c6394;
  --accent-ink: #ffffff;
  --accent-wash: rgba(55, 118, 171, 0.08);
  --warn: #e08a00;
  --bad: #c0392b;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-float: 0 6px 20px rgba(0, 0, 0, 0.12);
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--plane); color: var(--ink); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--accent); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.2; color: var(--ink); }

.nav { display: flex; align-items: center; gap: 24px; padding: 16px clamp(16px, 4vw, 48px); border-bottom: 1px solid var(--hairline); background: var(--surface);
  position: sticky; top: 0; z-index: 40; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; letter-spacing: -0.01em; }
.brand picture, .brand img { display: block; width: 28px; height: 28px; }
.nav .links { display: flex; gap: 28px; margin-left: auto; align-items: center; }
.nav .links a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .links a.btn:hover { text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle::after { content: attr(data-tip); position: absolute; top: calc(100% + 8px); right: 0; padding: 5px 10px; border-radius: 6px;
  background: var(--ink); color: var(--plane); font-size: 13px; font-weight: 500; white-space: nowrap; pointer-events: none;
  opacity: 0; transform: translateY(-2px); transition: opacity 0.12s, transform 0.12s; z-index: 10; }
.theme-toggle:hover::after, .theme-toggle:focus-visible::after { opacity: 1; transform: none; }
/* Wide screens: the page links sit in the middle of the bar, the brand left and the app button right. */
@media (min-width: 801px) {
  .nav { display: grid; grid-template-columns: 1fr repeat(4, auto) 1fr; column-gap: 28px; }
  .nav .links { display: contents; }
  .nav .links .nav-actions { justify-self: end; }
}
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink) !important;
  padding: 10px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; border: none; transition: background-color 0.15s; }
.btn:hover { background: var(--accent-hover); }
.btn.lg { padding: 14px 28px; font-size: 18px; border-radius: 10px; }
.btn.ghost { background: transparent; color: var(--ink) !important; border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--ink); background: transparent; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- landing ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(24px, 4vw, 56px);
  width: 100%; max-width: 1480px; margin: 0 auto; padding: 64px clamp(16px, 4vw, 48px) 40px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; text-align: left; }
.hero h1 { font-size: clamp(38px, 4.6vw, 68px); letter-spacing: -0.035em; line-height: 1.08; margin: 0; font-weight: 800; text-wrap: balance; }
.flipline { grid-column: 1 / -1; margin: 0; text-align: center; font-size: clamp(20px, 2.2vw, 30px); font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink-2); overflow-x: clip; }
/* Flip words (see the script in index.html). The leaving word is taken out of flow at its current spot; the reel's width
   eases to the incoming word so the whole line stays centred. The linear() easing is the step response of Motion's
   { type: "spring", stiffness: 100, damping: 10 } (zeta 0.5, omega0 10/s) over 0.9 s; older browsers get the bezier. */
.flipword { position: relative; display: inline-block; vertical-align: bottom; white-space: nowrap; text-align: left;
  color: var(--accent); font-weight: 700; transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1); }
.fw-word { display: inline-block; position: relative; z-index: 1; }
.fw-part, .fw-letter { display: inline-block; }
.fw-enter, .fw-exit { animation-duration: 0.9s; animation-fill-mode: both; animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-timing-function: linear(0, 0.029, 0.104, 0.213, 0.34, 0.476, 0.61, 0.737, 0.849, 0.946, 1.023, 1.083, 1.124,
  1.15, 1.162, 1.162, 1.153, 1.138, 1.118, 1.097, 1.075, 1.053, 1.034, 1.017, 1.002, 0.991, 0.983, 0.977, 0.974, 0.973,
  0.974, 0.976, 0.979, 0.982, 0.986, 0.99, 1); }
.fw-enter { animation-name: fw-rise; }
.fw-enter .fw-letter { animation: fw-letter 0.2s ease-out both; }
.fw-exit { position: absolute; top: 0; z-index: 0; pointer-events: none; animation-name: fw-out; }
@keyframes fw-rise { from { opacity: 0; transform: translateY(10px); } }
@keyframes fw-letter { from { opacity: 0; transform: translateY(10px); filter: blur(8px); } }
@keyframes fw-out { to { opacity: 0; transform: translate(40px, -40px) scale(2); filter: blur(8px); } }
/* Reduced motion keeps the blur/fade reveal and fade-out but drops the rise, drift and scale. */
@media (prefers-reduced-motion: reduce) {
  .flipword { transition: none; }
  .fw-enter { animation: none; }
  .fw-enter .fw-letter { animation-name: fw-unblur; }
  .fw-exit { animation: fw-blur-out 0.3s ease-out both; }
}
@keyframes fw-unblur { from { opacity: 0; filter: blur(8px); } }
@keyframes fw-blur-out { to { opacity: 0; filter: blur(8px); } }
@media (max-width: 600px) { .flipline-lead { display: block; } }
.eyebrow { margin: 0; color: var(--accent); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 14px; }
.sub { margin: 0; color: var(--ink-2); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-shot { margin: 0; min-width: 0; }
/* Carousel of app stills (scripts/landing_animation.js; the script in index.html steps it). The stills are stacked in
   one grid cell: the shown one (.on) fades in on top of the outgoing one (.out), which stays opaque until it is covered,
   so the fade never dips to the page behind. */
.hero-loop { position: relative; display: grid; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-float); }
.hero-loop > picture { grid-area: 1 / 1; opacity: 0; transition: opacity 0.5s ease-in-out; }
.hero-loop > picture.out { opacity: 1; transition: none; z-index: 0; }
.hero-loop > picture.on { opacity: 1; z-index: 1; }
.hero-loop img { display: block; width: 100%; height: auto; }
.hero-arrow { position: absolute; top: 50%; z-index: 2; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  margin-top: -20px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  box-shadow: var(--shadow-float); cursor: pointer; opacity: 0.85; transition: opacity 0.15s, color 0.15s, border-color 0.15s; }
.hero-arrow.prev { left: 12px; }
.hero-arrow.next { right: 12px; }
.hero-arrow:hover { opacity: 1; color: var(--ink); border-color: var(--ink); }
.hero-arrow:focus-visible, .hero-dot:focus-visible, .hero-pause:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hero-shot figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; color: var(--muted); font-size: 14px; margin-top: 14px; }
.hero-dots { display: inline-flex; align-items: center; gap: 8px; }
.hero-dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 0; background: var(--line); cursor: pointer; transition: background 0.2s, width 0.2s; }
.hero-dot[aria-current="true"] { width: 22px; border-radius: 5px; background: var(--accent); }
.hero-pause { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; margin-left: 2px;
  border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.hero-pause:hover { color: var(--ink); }
.hero-caption { color: var(--ink-2); font-weight: 600; }
@media (max-width: 600px) { .hero-arrow { width: 34px; height: 34px; margin-top: -17px; } }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-text { align-items: center; text-align: center; }
  .cta { justify-content: center; }
}
.landing-sections { max-width: 1180px; width: 100%; margin: 0 auto; padding: 24px 16px 96px; }
.blurb { max-width: 720px; margin: 0 auto; padding: 40px 16px 96px; text-align: center; color: var(--ink-2); font-size: 19px; line-height: 1.6; }
.blurb h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; margin: 0 0 16px; }
.blurb p { margin: 0; }

/* ---------- pricing ---------- */
.page { width: min(1180px, 100%); margin: 0 auto; padding: 32px 16px 96px; flex: 1; }
.page-head { text-align: center; margin: 32px 0 40px; }
.page-head h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 12px; letter-spacing: -0.03em; }
.page-head p { color: var(--ink-2); margin: 0; font-size: 18px; }
.notice { max-width: 720px; margin: 0 auto 40px; padding: 12px 18px; border-radius: 10px; font-size: 14px; text-align: center; color: var(--ink);
  background: color-mix(in srgb, var(--warn) 9%, var(--surface)); box-shadow: inset 3px 0 0 var(--warn); }
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.tier { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 14px; transition: box-shadow 0.2s; }
.tier:hover { box-shadow: var(--shadow-float); }
.tier.featured { box-shadow: 0 0 0 2px var(--accent); position: relative; }
.tier.featured:hover { box-shadow: 0 0 0 2px var(--accent), var(--shadow-float); }
.tier .tag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: var(--accent-ink); font-size: 12px;
  font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.tier h2 { margin: 0; font-size: 20px; }
.price { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.price-cta { font-size: 22px; white-space: nowrap; }
.price-cta a { text-decoration: none; }
.price-cta a:hover { text-decoration: underline; }
.price small { display: block; margin-top: 2px; font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.cycle { display: flex; width: max-content; margin: 0 auto 24px; padding: 4px; gap: 4px; border: 1px solid var(--hairline);
  border-radius: 999px; background: var(--surface); }
.cycle button { font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 999px; padding: 6px 16px;
  background: none; color: var(--ink-2); cursor: pointer; }
.cycle button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.cycle .save { margin-left: 4px; font-size: 12px; font-weight: 700; opacity: 0.85; }
.tier p.desc { margin: 0; color: var(--ink-2); font-size: 15px; }
.tier p.desc.small { font-size: 13px; }
.tier ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; flex: 1; color: var(--ink-2); }
.tier li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.tier .btn { justify-content: center; }
/* /pricing: every card has the same rows (name, price, description, slot, features, buttons), lined up across the
   cards with subgrid. The slot holds Team's engineer slider and a one-line size on the others. */
.tiers-aligned { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .tiers-aligned { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiers-aligned { grid-template-columns: minmax(0, 1fr); } }
.tiers-aligned > .tier { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 14px; align-content: start; }
/* Every price scales with the card so "From $40,000" stays on one line. The price block is the size container: one
   on the card would turn on layout containment and switch off its subgrid. */
.tiers-aligned .price { container-type: inline-size; white-space: nowrap; }
.tiers-aligned .price .fig { font-size: min(38px, 15.5cqi); }
.tiers-aligned .incl h3 { margin: 6px 0 10px; font-size: 15px; }
.tiers-aligned .cta { display: flex; flex-direction: column; gap: 8px; align-self: end; }
.tiers-aligned .cta .alt { text-align: center; font-size: 14px; }
.price .from { font-size: 0.55em; font-weight: 700; letter-spacing: -0.01em; }
button.btn { font: inherit; font-weight: 600; border: 0; cursor: pointer; }
.compare { margin: 72px auto 0; }
.compare h2 { text-align: center; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 20px; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); }
.compare table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 10px 14px; border-bottom: 1px solid var(--hairline); text-align: center; vertical-align: top; }
.compare tbody th { text-align: left; font-weight: 500; color: var(--ink-2); }
.compare thead th { font-size: 15px; color: var(--ink); position: sticky; top: 0; background: var(--surface); }
.compare td { color: var(--accent); font-weight: 600; }
.compare tr.group th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); background: var(--surface-2); padding: 8px 14px; }
.compare tr.price-row td, .compare tr.price-row th { color: var(--ink); font-weight: 700; border-bottom: 0; }
.notice[hidden] { display: none; }
.faq { max-width: 760px; margin: 72px auto 0; }
.faq h2 { margin: 0 0 4px; font-size: 28px; letter-spacing: -0.02em; }
.faq h3 { margin: 28px 0 6px; font-size: 18px; }
.faq p { margin: 0; color: var(--ink-2); }

/* ---------- why us ---------- */
.reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.reasons article { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; }
.reasons h2 { margin: 0 0 8px; font-size: 19px; }
.reasons p { margin: 0; color: var(--ink-2); font-size: 15px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid article { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; min-height: 160px; }
.feature-grid h2 { margin: 0 0 8px; font-size: 19px; }
.feature-grid p { margin: 0; color: var(--ink-2); font-size: 15px; }
.matrix table { min-width: 860px; }
.matrix tbody th { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 220px; }
.matrix tr.group th { position: static; }
.matrix td { color: var(--ink-2); font-weight: 500; font-size: 13.5px; }
.matrix td.yes { color: var(--accent); font-weight: 600; }
.matrix td.no { color: var(--muted); }
.matrix td.addon { color: var(--warn); font-weight: 600; }
.matrix td.bad { color: var(--bad); font-weight: 600; }
.matrix .us { background: var(--accent-wash); }
.matrix thead th.us { color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.matrix-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.matrix-legend span { font-weight: 700; margin-right: 4px; }
.matrix-legend .yes { color: var(--accent); }
.matrix-legend .addon { color: var(--warn); }
.matrix-legend .bad { color: var(--bad); }
.matrix-note { max-width: 860px; margin: 14px auto 0; color: var(--muted); font-size: 13px; text-align: center; }
.addons { margin: 72px auto 0; max-width: 980px; }
.addons h2 { text-align: center; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 20px; }
.addons table { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; }
.addons th, .addons td { padding: 10px 14px; border-bottom: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.addons tbody tr:last-child th, .addons tbody tr:last-child td { border-bottom: 0; }
.addons tbody th { font-weight: 500; color: var(--ink); }
.addons td { color: var(--ink-2); }
.addons td:last-child { color: var(--accent); font-weight: 600; }
.why-cta { text-align: center; margin: 72px auto 0; max-width: 640px; }
.why-cta h2 { font-size: 28px; letter-spacing: -0.02em; margin: 0 0 10px; }
.why-cta p { color: var(--ink-2); margin: 0 0 24px; }
.why-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- offers and the Enterprise configurator ---------- */
.promo { max-width: 760px; margin: 0 auto 28px; padding: 12px 18px; border-radius: 10px; text-align: center; font-size: 15px;
  color: var(--ink); background: var(--accent-wash); box-shadow: inset 3px 0 0 var(--accent); }
.offers { max-width: 760px; margin: 0 auto 36px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px;
  text-align: center; color: var(--ink-2); font-size: 14.5px; }
.offer-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin: 0 0 36px; }
@media (max-width: 760px) { .offer-cards { grid-template-columns: minmax(0, 1fr); } }
.offer-card { background: var(--accent-wash); border-radius: var(--radius); padding: 18px 22px; box-shadow: inset 3px 0 0 var(--accent); }
.offer-card h2 { margin: 0 0 6px; font-size: 17px; }
.offer-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.configurator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cfg-form, .cfg-quote { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius); padding: 24px; }
.cfg-form h2, .cfg-quote h2 { margin: 0 0 16px; font-size: 20px; }
.cfg-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 18px; border: 0; padding: 0; font-weight: 600; color: var(--ink); }
.cfg-field legend { padding: 0; margin-bottom: 6px; }
.cfg-field[hidden], .cfg-check[hidden] { display: none; }
.cfg-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; font-weight: 500; color: var(--ink); cursor: pointer; }
.cfg-check input { margin-top: 4px; accent-color: var(--accent); }
.cfg-hint { font-weight: 400; font-size: 13.5px; color: var(--muted); }
.cfg-field input[type="number"], .cfg-field input[type="text"], .cfg-field input[type="email"], .cfg-field select { font: inherit; font-weight: 500; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--plane); color: var(--ink); max-width: 100%; }
.cfg-field input:focus-visible, .cfg-field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cfg-included { margin: 0 0 18px; padding: 12px 14px; border-radius: 8px; background: var(--accent-wash); color: var(--ink-2); font-size: 14.5px; }
.cfg-quote { position: sticky; top: calc(var(--nav-h) + 16px); display: flex; flex-direction: column; gap: 14px; }
.cfg-quote h2 { margin: 0; }
.cfg-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cfg-table th, .cfg-table td { padding: 8px 0; border-bottom: 1px solid var(--hairline); text-align: left; font-weight: 400; color: var(--ink-2); vertical-align: top; }
.cfg-table td { text-align: right; white-space: nowrap; padding-left: 12px; color: var(--ink); font-variant-numeric: tabular-nums; }
.cfg-table td.cfg-free { color: var(--accent); font-weight: 600; }
.cfg-early th, .cfg-early td { color: var(--accent); font-weight: 600; }
.cfg-list { font-size: 15px; font-weight: 500; color: var(--muted); margin-right: 6px; }
.cfg-total th, .cfg-total td { border-bottom: 0; padding-top: 12px; font-size: 20px; font-weight: 800; color: var(--ink); }
.cfg-per { margin: 0; color: var(--muted); font-size: 14px; }
.cfg-incl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.cfg-incl li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 8px; }
.cfg-quote .btn { justify-content: center; }
.cfg-note { margin: 0; color: var(--muted); font-size: 13px; }
@media (max-width: 800px) { .configurator { grid-template-columns: minmax(0, 1fr); } .cfg-quote { position: static; } }
/* Enterprise: fees split between teams. One row per team; the engineers and share columns show for their basis only. */
.cfg-teams { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 10px; font-weight: 400; }
.cfg-team { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cfg-team input { font: inherit; font-size: 14px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--plane); color: var(--ink); min-width: 0; }
.cfg-team input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cfg-team .t-name { flex: 1.4 1 120px; }
.cfg-team .t-charge { flex: 1.2 1 110px; }
.cfg-team .t-pct { flex: 0 0 76px; width: 76px; }
.cfg-team .t-del { flex: 0 0 auto; font: inherit; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px 6px; }
.cfg-team .t-del:hover { color: var(--ink); }
.cfg-teams:not([data-basis="custom"]) .t-pct { display: none; }
.cfg-add { align-self: flex-start; font: inherit; font-size: 14px; font-weight: 600; color: var(--accent); background: none;
  border: 0; padding: 4px 0; cursor: pointer; }
.cfg-split th:not(:first-child), .cfg-split td { text-align: right; }
.cfg-split thead th { font-size: 13px; color: var(--muted); }
.cfg-split-note { margin: 0; color: var(--muted); font-size: 13px; }
.cfg-split-note.bad { color: var(--bad); font-weight: 600; }
.cfg-team .t-pct[readonly] { color: var(--muted); }
.cfg-team .t-pct[aria-invalid="true"] { border-color: var(--bad); color: var(--bad); }

/* ---------- docs ---------- */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; width: min(1180px, 100%); margin: 0 auto;
  padding: 24px 16px 96px; flex: 1; }
.toc { position: sticky; top: calc(var(--nav-h) + 24px); align-self: start; font-size: 14px; max-height: calc(100vh - var(--nav-h) - 48px); overflow-y: auto; }
.toc h4 { margin: 22px 0 6px; font-size: 13px; color: var(--ink); font-weight: 600; }
.toc a { display: block; padding: 4px 0; color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.doc { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); margin: 8px 0 12px; letter-spacing: -0.03em; }
.doc .lede { color: var(--ink-2); font-size: 19px; margin: 0 0 32px; }
.doc h2 { margin: 56px 0 14px; font-size: 26px; padding-top: 32px; border-top: 1px solid var(--hairline); letter-spacing: -0.02em; }
.doc h3 { margin: 32px 0 8px; font-size: 19px; }
.doc p, .doc li { color: var(--ink-2); }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--ink); }
.doc code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.86em; background: var(--surface-2);
  padding: 2px 6px; border-radius: 6px; }
.doc pre { background: var(--surface-2); border-radius: 10px; padding: 14px 18px; overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.doc pre code { background: none; padding: 0; }
.doc table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14.5px; margin: 14px 0; display: block; overflow-x: auto;
  border: 1px solid var(--hairline); border-radius: var(--radius); }
.doc th, .doc td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.doc tr:last-child td { border-bottom: none; }
.doc th { color: var(--ink); font-weight: 600; font-size: 13.5px; }
.callout { background: var(--surface-2); padding: 14px 18px; border-radius: 10px; margin: 18px 0; box-shadow: inset 3px 0 0 var(--accent); }
.callout p { margin: 0; color: var(--ink); }
/* signed out: a production or advanced section ends at its first paragraph (app.py docs_page) */
.signup-lock { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0 28px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--accent-wash); border: 1px dashed var(--line); }
.signup-lock svg { flex: none; color: var(--accent); margin-top: 2px; }
.signup-lock p { margin: 0 0 10px; color: var(--ink-2); }
.signup-lock .signup-lock-title { margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.signup-lock .signup-lock-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 12px 0 0; }
.toc a.locked::after { content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 6px; vertical-align: -1px; opacity: 0.7;
  background: currentColor; -webkit-mask: var(--lock) no-repeat center / contain; mask: var(--lock) no-repeat center / contain;
  --lock: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E"); }
kbd { font: 12px ui-monospace, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--ink-2); }

/* screenshots: the feature described is boxed in yellow in the image itself */
.shot { margin: 18px 0 24px; }
.shot img { display: block; max-width: 100%; height: auto; border: 1px solid var(--hairline); border-radius: 10px; box-shadow: var(--shadow); }
.shot figcaption { margin-top: 8px; font-size: 13.5px; color: var(--muted); }
li .shot { margin: 12px 0 18px; }

/* math (KaTeX) */
.doc .katex { font-size: 1.06em; color: var(--ink); }
.doc .katex-display { margin: 18px 0; padding: 4px 0; overflow-x: auto; overflow-y: hidden; }
.doc li .katex-display { margin: 10px 0; }

.foot { padding: 24px clamp(16px, 4vw, 48px); color: var(--muted); font-size: 14px; display: flex; gap: 24px; flex-wrap: wrap;
  border-top: 1px solid var(--hairline); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 800px) {
  .docs { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; display: none; }
  .nav .links { gap: 16px; }
  .nav .links a.hide-sm { display: none; }
}
.brand, .btn, .nav .links a { white-space: nowrap; }
@media (max-width: 480px) {
  .nav { gap: 10px 12px; padding: 12px 16px; flex-wrap: wrap; }
  .nav .links { gap: 12px; font-size: 14px; width: 100%; margin-left: 0; justify-content: space-between; }  /* links on their own row */
  .nav .btn { padding: 7px 12px; }
  /* brand and the toggle + app button on the first row, the page links on the second */
  .nav { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .nav .links { display: contents; }
  .nav .brand { grid-column: 1 / 3; grid-row: 1; }
  .nav .nav-actions { grid-column: 3 / 5; grid-row: 1; justify-self: end; gap: 8px; }
  .theme-toggle { width: 34px; height: 34px; }
  .brand { font-size: 15px; }
}

/* "Compare plans": the first rows, a fade, and a button with an arrow to open the rest. */
.compare-fold { position: relative; }
.compare-fold[data-collapsed="true"] tbody tr:nth-child(n+6) { display: none; }
.compare-fold[data-collapsed="true"] .compare-scroll { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; }
.compare-fade { display: none; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--surface) 85%); border-radius: 0 0 var(--radius) var(--radius); }
.compare-fold[data-collapsed="true"] .compare-fade { display: block; }
.compare-more { display: flex; justify-content: center; margin-top: -18px; position: relative; }
.compare-more button { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  color: var(--accent); background: var(--surface); border: 1px solid var(--hairline); border-radius: 999px; padding: 8px 18px;
  box-shadow: var(--shadow-float); }
.compare-more button:hover { border-color: var(--accent); }
.compare-more button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.compare-more svg { transition: transform 0.2s; animation: compare-nudge 1.8s ease-in-out infinite; }
.compare-fold[data-collapsed="false"] + .compare-more { margin-top: 16px; }
.compare-fold[data-collapsed="false"] + .compare-more svg { transform: rotate(180deg); animation: none; }
@keyframes compare-nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 3px; } }
@media (prefers-reduced-motion: reduce) { .compare-more svg { animation: none; } }

/* pricing: the guarantee between the plan cards and Compare plans */
.guarantee { text-align: center; font-size: 1.1rem; font-weight: 600; color: var(--accent); margin: 28px auto 8px; }

/* the account in the top bar (account.js) */
.acct { position: relative; }
.acct-btn { padding: 0; width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--hairline); background: var(--surface); cursor: pointer;
  display: grid; place-items: center; overflow: hidden; }
.acct-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.acct-pic { display: block; border-radius: 6px; object-fit: cover; }
.acct-initial { text-align: center; color: #fff; font-weight: 600; font-size: 14px; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; z-index: 30; padding: 6px; background: var(--surface);
  border: 1px solid var(--hairline); border-radius: var(--radius); box-shadow: var(--shadow-float); display: flex; flex-direction: column; }
.acct-menu[hidden] { display: none; }
.acct-head { display: flex; gap: 10px; align-items: center; padding: 8px; border-bottom: 1px solid var(--hairline); margin-bottom: 4px; }
.acct-name { font-weight: 600; font-size: 14px; }
.acct-email { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.acct-item { font: inherit; font-size: 14px; text-align: left; color: var(--ink); background: none; border: 0; border-radius: 6px; padding: 7px 8px;
  cursor: pointer; text-decoration: none; display: block; }
.acct-item:hover, .acct-item:focus-visible { background: var(--surface-2); }
.acct-signin { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 6px 10px; }
.acct-signin:hover { color: var(--ink); }
