/* Crewbar website. Dark-first, Lexend, brand colours from brand/README.md. */

@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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;
}
@font-face {
  font-family: "Lexend";
  src: url("/fonts/lexend-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #0a0d19;
  --ink: #0e1222;
  --ink-2: #151a32;
  --ink-3: #262b52;
  --paper: #f1f6f4;
  --text: #cdd3e0;
  --muted: #98a0b8;
  --line: rgba(241, 246, 244, .09);
  --line-strong: rgba(241, 246, 244, .2);
  --running: #ffb340;
  --waiting: #ff6b5e;
  --done: #32d74b;
  --radius: 18px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Lexend", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Cascadia Mono", Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 360 17px/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--paper); text-decoration-color: rgba(241, 246, 244, .35); text-underline-offset: .2em; }
a:hover { text-decoration-color: currentColor; }
h1, h2, h3 { color: var(--paper); font-weight: 600; letter-spacing: -.025em; line-height: 1.12; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.75rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; line-height: 1.3; }
p { margin: 0; }
code { font-family: var(--mono); font-size: .88em; background: rgba(241, 246, 244, .07); border-radius: 6px; padding: .1em .38em; color: var(--paper); }
kbd {
  font-family: var(--font); font-size: .8em; font-weight: 500; color: var(--paper);
  border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 6px; padding: .05em .4em; white-space: nowrap;
}
strong { color: var(--paper); font-weight: 550; }
:focus-visible { outline: 3px solid var(--running); outline-offset: 3px; border-radius: 6px; }

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

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 500; }
.skip:focus { top: 12px; }

.c-running { color: var(--running); }
.c-waiting { color: var(--waiting); }
.c-done { color: var(--done); }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.running { background: var(--running); box-shadow: 0 0 12px rgba(255, 179, 64, .55); }
.dot.waiting { background: var(--waiting); box-shadow: 0 0 12px rgba(255, 107, 94, .55); }
.dot.done { background: var(--done); box-shadow: 0 0 12px rgba(50, 215, 75, .5); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  font: 520 1rem/1.25 var(--font); text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-primary { background: var(--paper); color: var(--ink); }
.btn-primary:hover { background: #ffffff; transform: translateY(-1px); }
.btn-ghost { color: var(--paper); border: 1px solid var(--line-strong); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(241, 246, 244, .05); }
.btn-small { min-height: 38px; padding: 8px 16px; font-size: .9rem; background: var(--paper); color: var(--ink); }
.btn-small:hover { background: #fff; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.ctas.center { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 25, .82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: block; flex: none; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: 12px; }
.nav a, .lang { color: var(--muted); text-decoration: none; font-size: .95rem; }
.nav a:hover, .lang:hover { color: var(--paper); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(48px, 9vw, 104px); }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(50% 60% at 78% 0%, rgba(38, 43, 82, .75), transparent 70%),
    radial-gradient(40% 40% at 10% 20%, rgba(38, 43, 82, .35), transparent 70%);
}
.hero-copy { max-width: 1000px; }
.eyebrow { color: var(--muted); font-size: .95rem; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--line-strong); }
.hero h1 { font-size: clamp(2.5rem, 1.4rem + 4.6vw, 4.75rem); letter-spacing: -.035em; line-height: 1.02; }
.lede { margin-top: 24px; font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); line-height: 1.55; max-width: 640px; color: var(--text); }
.hero .ctas { margin-top: 36px; }
.note { margin-top: 16px; color: var(--muted); font-size: .9rem; }

/* The product visual: the top edge of a screen, with the pill hanging from it. */
.screen { margin: clamp(48px, 7vw, 80px) auto 0; max-width: calc(var(--wrap) + 2 * var(--gutter)); padding: 0 var(--gutter); }
.screen-inner {
  position: relative;
  border-radius: 22px 22px 0 0;
  padding: 0 clamp(8px, 3vw, 40px) clamp(24px, 4vw, 56px);
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(54, 61, 116, .55), transparent 72%),
    linear-gradient(180deg, #121733 0%, rgba(14, 18, 34, 0) 100%);
  border-top: 1px solid var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.screen-inner::before {
  /* the bezel line the pill hangs from */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 246, 244, .35), transparent);
}
.screen-inner img { margin: 0 auto; width: 100%; max-width: 1000px; }
.screen-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; margin-top: 20px; color: var(--muted); font-size: .95rem; padding: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; color: var(--paper); }
.legend li { display: flex; align-items: center; gap: 8px; }

/* ---------- Sections ---------- */
section { padding: clamp(72px, 10vw, 128px) 0 0; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }

/* Video */
.video-frame { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #05060c; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .8); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; background: #05060c; }
.video-fallback { display: none; }
.video-fallback p { padding: 14px 20px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.video-frame.no-video video, .no-js .video-frame video { display: none; }
.video-frame.no-video .video-fallback, .no-js .video-frame .video-fallback { display: block; }

/* The pill: three moments */
.pill-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pill-steps li { display: flex; flex-direction: column; gap: 10px; }
.pill-shot {
  height: 250px; margin-bottom: 14px; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(80% 70% at 50% 0%, rgba(54, 61, 116, .5), transparent 75%), var(--ink);
  border: 1px solid var(--line);
  display: flex; justify-content: center; align-items: flex-start;
  position: relative;
}
.pill-shot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(241, 246, 244, .3), transparent); }
.pill-shot img { width: auto; max-height: 100%; object-fit: contain; object-position: top; }
.pill-shot-1 img { width: 316px; }
.pill-shot-2 img { width: 400px; }
.pill-shot-3 img { width: 436px; }
.pill-steps p { color: var(--text); }

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); }
.feature.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy, .fc-head, .fc-body { display: flex; flex-direction: column; gap: 16px; }
.feature.wide { grid-template-columns: 1fr; gap: 40px; }
.feature.wide .feature-copy { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px clamp(28px, 5vw, 72px); }
.feature-copy h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.025em; }
.kicker { color: var(--muted); font-size: .9rem; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--running); }
.feature:nth-of-type(3n + 2) .kicker::before { background: var(--waiting); }
.feature:nth-of-type(3n) .kicker::before { background: var(--done); }
.feature-shot img {
  border-radius: 14px; border: 1px solid var(--line-strong);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(0, 0, 0, .4);
}
.feature-shot.fade img { -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
.ticks { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2px solid var(--done); border-bottom: 2px solid var(--done); transform: rotate(-45deg); }

/* Details grid + themes */
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.more-grid li { border-top: 1px solid var(--line-strong); padding-top: 20px; display: grid; gap: 10px; align-content: start; }
.more-grid p { color: var(--text); font-size: .98rem; }
.themes { margin-top: clamp(48px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 32px; align-items: start; }
.themes-copy { display: grid; gap: 10px; }
.themes-copy p { color: var(--muted); }
.themes-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.themes-row figure { margin: 0; }
.themes-row figure > img { width: 100%; border-radius: 14px; }
.themes-row li > figure { border-radius: var(--radius); padding: 0 6px 6px; border: 1px solid var(--line); }
.theme-dark figure { background: var(--ink-2); }
.theme-light figure { background: linear-gradient(180deg, #e3eae7, #c9d3d0); }
.theme-glass figure { background: radial-gradient(90% 90% at 20% 10%, #5a4bb0, transparent 70%), radial-gradient(80% 80% at 90% 30%, #1f6aa8, transparent 70%), #1b1f45; }
.themes-row figcaption { padding: 10px 8px 4px; font-size: .9rem; color: var(--paper); }
.theme-light figcaption { color: var(--ink); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { border-radius: var(--radius); background: var(--ink); border: 1px solid var(--line); padding: 28px; display: grid; gap: 12px; align-content: start; }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.step-1 .step-n { background: var(--running); }
.step-2 .step-n { background: var(--waiting); }
.step-3 .step-n { background: var(--done); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 920px; }
.plan { border-radius: 22px; padding: clamp(24px, 4vw, 36px); background: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.plan-licence { background: linear-gradient(160deg, var(--ink-3), var(--ink) 70%); border-color: var(--line-strong); }
.plan .btn { margin-top: auto; }
.price { color: var(--paper); font-size: 2.6rem; font-weight: 600; letter-spacing: -.03em; line-height: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 12px; }
.price > span:last-child { font-size: .95rem; font-weight: 360; letter-spacing: 0; color: var(--muted); }
.requirements { margin-top: 40px; max-width: 920px; border-top: 1px solid var(--line); padding-top: 28px; display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 20px; }
.requirements ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.requirements li::marker { color: var(--muted); }

/* Placeholder marker (price, legal notice): visible until filled in config.js. */
.todo { outline: 2px dashed var(--running); outline-offset: 4px; border-radius: 4px; }
.todo small { font-size: .7rem; font-weight: 500; letter-spacing: .02em; color: var(--running); margin-left: 8px; vertical-align: middle; text-transform: uppercase; }
.prose .todo { color: var(--running); outline-offset: 2px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: start; }
.faq .section-head { position: sticky; top: 100px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  color: var(--paper); font-weight: 500; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover::after { border-color: var(--paper); }
.faq details p { padding: 0 0 22px; max-width: 640px; }

/* Final CTA */
.final { text-align: center; padding-bottom: clamp(72px, 10vw, 120px); }
.final .wrap { display: grid; justify-items: center; gap: 18px; }
.final h2 { max-width: 820px; }
.final > .wrap > p { color: var(--muted); font-size: 1.1rem; }
.final .ctas { margin-top: 12px; }
.final-dots { display: flex; gap: 10px; padding: 12px 18px; background: #000; border-radius: 999px; border: 1px solid var(--line); margin-bottom: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 32px; font-size: .92rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.footer-brand { display: grid; gap: 10px; }
.footer-brand img { height: 28px; width: auto; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--paper); text-decoration: underline; }
.footer-fine { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }

/* Text pages */
.prose { max-width: calc(760px + 2 * var(--gutter)); padding-top: clamp(48px, 8vw, 88px); padding-bottom: 96px; }
.prose h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem); margin-bottom: 28px; }
.prose h2 { font-size: 1.3rem; margin: 40px 0 12px; letter-spacing: -.015em; }
.prose p, .prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; display: grid; gap: 6px; }
.prose .updated, .prose .lead-note { color: var(--muted); font-size: .92rem; }
.prose .updated { margin-top: 40px; }

/* 404 */
.not-found { padding-top: 96px; padding-bottom: 120px; display: grid; gap: 16px; justify-items: start; }
.not-found h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.4rem); }
.nf-pill { display: inline-flex; align-items: center; gap: 10px; background: #000; color: var(--paper); border-radius: 999px; padding: 10px 18px; border: 1px solid var(--line); margin-bottom: 12px; font-weight: 500; }
.nf-fr { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.nf-fr h2 { font-size: 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav { display: none; }
  .pill-steps, .steps { grid-template-columns: 1fr; max-width: 560px; }
  .feature, .feature.flip, .feature.wide .feature-copy { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .more-grid { grid-template-columns: repeat(2, 1fr); }
  .themes, .requirements, .faq-grid { grid-template-columns: 1fr; }
  .faq .section-head { position: static; margin-bottom: 8px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .header-row { height: 60px; gap: 12px; }
  .brand img { height: 26px; }
  .header-actions { gap: 12px; }
  .lang { font-size: .88rem; }
  .btn-small { padding: 7px 13px; font-size: .85rem; min-height: 36px; }
  .ctas .btn { width: 100%; }
  .plans, .more-grid { grid-template-columns: 1fr; }
  .themes-row { grid-template-columns: 1fr; max-width: 360px; }
  .pill-shot { height: auto; padding-bottom: 20px; }
  .screen { padding: 0 8px; }
  .screen-caption { padding: 0 var(--gutter); }
  .price { font-size: 2.2rem; }
}
@media (max-width: 380px) {
  .header-actions .lang { font-size: .82rem; }
  .btn-small { padding: 6px 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Before launch: buttons shown as "coming soon". */
.btn.is-disabled { opacity: .55; pointer-events: none; cursor: default; }
.price-soon { font-size: .62em; letter-spacing: -.01em; }
