/* CrewDesk public pages. Same identity as the app: stage black, warm paper
   white, slate-tape yellow, condensed slate type, mono labels. */
:root {
  --paper: #0e0d0b;
  --card: #171512;
  --ink: #f1ebdd;
  --mute: #a59c8c;
  --line: #2a2723;
  --line-2: #3b3731;
  --accent: #ffc62e;
  --on-accent: #17150f;
  --red: #f2706b;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --wrap: 1200px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mute);
}
.label b { color: var(--accent); font-weight: 500; }
.display {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.005em;
  margin: 0;
}
.y { color: var(--accent); }
.tape {
  height: 10px;
  background: repeating-linear-gradient(-55deg, var(--accent) 0 12px, #17150f 12px 24px);
}

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 34px; height: 34px; }
.brand span { font-family: var(--display); font-weight: 600; font-size: 27px; letter-spacing: 0.04em; text-transform: uppercase; }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a {
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--mute);
  padding: 8px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); background: var(--card); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--mute);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 7px 9px;
}
.lang:hover { color: var(--ink); border-color: var(--mute); }
.menu-btn { display: none; background: none; border: 1px solid var(--line-2); color: var(--ink); border-radius: 6px; width: 42px; height: 42px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  border-radius: 6px;
  padding: 0 22px;
  height: 52px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn.sm { height: 42px; padding: 0 16px; font-size: 15px; }
.btn.go { background: var(--accent); color: var(--on-accent); }
.btn.go:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px var(--accent); }
.btn.go svg { width: 14px; height: 14px; fill: currentColor; }
.btn.line { border-color: var(--line-2); color: var(--ink); }
.btn.line:hover { border-color: var(--accent); }
.btn:active { transform: translateY(0); }

/* Hero */
.hero { position: relative; padding: 72px 0 0; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 620px;
  z-index: -1;
  background: radial-gradient(60% 70% at 70% 0%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
}
.hero h1 { margin: 22px 0 0; font-size: inherit; font-weight: inherit; }
.hero h1 .display { display: block; font-size: clamp(54px, 9.4vw, 136px); max-width: 12ch; }
.hero.sub h1 .display { font-size: clamp(46px, 7vw, 96px); max-width: 16ch; }
.hero h1 .kicker { display: block; margin-bottom: 18px; color: var(--ink); }
.hero .lead { font-size: clamp(18px, 2vw, 22px); color: var(--mute); max-width: 56ch; margin: 28px 0 0; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--mute); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }

.slate {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 56px;
  background: var(--card);
}
.slate > div { padding: 18px 20px; border-right: 1px solid var(--line-2); }
.slate > div:last-child { border-right: 0; }
.slate strong { display: block; font-family: var(--display); font-weight: 600; font-size: 40px; line-height: 1; margin-top: 10px; text-transform: uppercase; }
.slate small { display: block; color: var(--mute); font-size: 13px; margin-top: 8px; }

/* Monitor: a product screenshot in a field-monitor frame */
.monitor {
  position: relative;
  margin-top: 56px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: #050505;
  padding: 10px;
  box-shadow: 0 60px 120px -50px #000, 0 0 0 1px #000 inset;
}
.monitor .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--mute);
  text-transform: uppercase;
}
.monitor .rec { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.monitor .rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: rec 1.6s steps(2, jump-none) infinite; }
@keyframes rec { 50% { opacity: 0.2; } }
.monitor img { border-radius: 6px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.monitor.phone { max-width: 300px; }
.monitor.phone img { aspect-ratio: 390 / 844; }

/* Sections */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.scene { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.scene::after { content: ""; flex: 1; height: 1px; background: var(--line); }
h2.display { font-size: clamp(38px, 5.4vw, 72px); max-width: 22ch; }
h3.display { font-size: 28px; line-height: 1; }
.intro { color: var(--mute); max-width: 62ch; margin: 22px 0 0; font-size: 19px; }

.grid { display: grid; gap: 16px; margin-top: 48px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative;
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 26px;
  transition: border-color 0.2s, transform 0.2s;
}
.band .card { background: var(--paper); }
a.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card .num { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; color: var(--accent); }
.card h3 { margin: 14px 0 10px; }
.card p { margin: 0; color: var(--mute); font-size: 16px; }
.card .more { display: inline-block; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--ink); }
a.card:hover .more { color: var(--accent); }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split .monitor { margin-top: 0; }
.split ul, .prose ul { list-style: none; padding: 0; margin: 26px 0 0; }
.split li, .prose ul li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); color: var(--ink); }
.split li::before, .prose ul li::before { content: ""; position: absolute; left: 0; top: 21px; width: 14px; height: 6px; background: var(--accent); transform: skewX(-35deg); }

/* The five stages, as a strip of film */
.strip {
  margin-top: 48px;
  border-radius: 8px;
  background: #050505;
  border: 1px solid var(--line-2);
  padding: 22px 0;
  position: relative;
  overflow: hidden;
}
.strip::before, .strip::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  background: radial-gradient(circle, var(--line-2) 0 3px, transparent 3.5px) 0 0 / 20px 10px repeat-x;
}
.strip::before { top: 6px; }
.strip::after { bottom: 6px; }
.frames { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 8px 14px; }
.frame { border-radius: 4px; padding: 22px 18px; background: var(--card); border-top: 4px solid var(--c); min-height: 170px; }
.frame h3 { margin: 10px 0 8px; font-size: 26px; }
.frame p { margin: 0; color: var(--mute); font-size: 15px; line-height: 1.45; }

/* Prose for guides and feature copy */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(30px, 4vw, 44px); line-height: 1; margin: 64px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 18px; color: color-mix(in srgb, var(--ink) 84%, var(--paper)); }
.prose a { color: var(--accent); text-underline-offset: 3px; }
.prose ol { padding-left: 0; margin: 26px 0; list-style: none; counter-reset: step; }
.prose ol li { counter-increment: step; position: relative; padding: 14px 0 14px 56px; border-top: 1px solid var(--line); }
.prose ol li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 12px; font-family: var(--display); font-weight: 600; font-size: 28px; color: var(--accent); }
.prose ol li b, .prose ul li b { color: var(--ink); }
.layout { display: grid; grid-template-columns: minmax(0, 760px) 300px; gap: 72px; align-items: start; }
.aside { position: sticky; top: 100px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--card); overflow: hidden; }
.aside .in { padding: 22px; }
.aside h3 { margin: 10px 0; }
.aside p { color: var(--mute); font-size: 15px; margin: 0 0 18px; }
.aside .btn { width: 100%; }

/* FAQ */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; font-weight: 600; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-family: var(--display); font-size: 34px; color: var(--accent); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 0 0 24px; color: var(--mute); max-width: 70ch; }

/* Offers */
.offer { display: flex; flex-direction: column; }
.offer .price { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 34px; margin: 6px 0 4px; }
.offer ul { list-style: none; padding: 0; margin: 18px 0 26px; flex: 1; }
.offer li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--mute); }
.offer.best { border-color: var(--accent); }
.offer .btn { width: 100%; }

/* Closing call */
.final { text-align: center; padding: 110px 0; position: relative; overflow: hidden; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 90% at 50% 100%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.final h2 { font-size: clamp(48px, 8vw, 116px); margin: 16px auto 0; max-width: 14ch; }
.final p { color: var(--mute); max-width: 52ch; margin: 22px auto 0; }
.final .cta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

footer { border-top: 1px solid var(--line); padding: 64px 0 40px; font-size: 15px; }
.fcols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
footer h4 { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); margin: 0 0 16px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 0 0 9px; }
footer a { color: color-mix(in srgb, var(--ink) 80%, var(--paper)); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .about { color: var(--mute); max-width: 34ch; margin-top: 16px; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }

/* Consent */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 80;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 18px;
  font-size: 14px;
  color: var(--mute);
  box-shadow: 0 30px 60px -20px #000;
}
.consent div { display: flex; gap: 8px; margin-top: 14px; }

/* Entrance */
.rise { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rise.in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .monitor .rec i { animation: none; }
}

@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .split, .layout { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .aside { position: static; }
  .frames { grid-template-columns: 1fr; }
  .frame { min-height: 0; }
  .fcols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    margin: 0;
    flex-direction: column;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 14px 18px;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 18px; padding: 14px 10px; }
  .menu-btn { display: inline-grid; place-items: center; }
  .top .wrap { gap: 8px; }
  .top .right { gap: 6px; }
  .brand { gap: 8px; }
  .brand svg { width: 28px; height: 28px; }
  .brand span { font-size: 22px; }
  .top .btn.go.sm { padding: 0 11px; font-size: 14px; gap: 7px; }
  .lang { padding: 7px 7px; }
  .menu-btn { width: 40px; height: 40px; flex-shrink: 0; }
  .top .btn.go span.long { display: none; }
  .hero { padding-top: 44px; }
  .hero .cta .btn { flex: 1 1 100%; }
  .slate { grid-template-columns: 1fr 1fr; }
  .slate > div:nth-child(2) { border-right: 0; }
  .slate > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line-2); }
  .slate strong { font-size: 32px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .monitor { padding: 6px; border-radius: 8px; }
  .fcols { grid-template-columns: 1fr 1fr; }
  .fcols > :first-child { grid-column: 1 / -1; }
  .final { padding: 72px 0; }
  .consent { left: 10px; right: 10px; bottom: 10px; max-width: none; }
}

/* ---- Added families: tables, glossary chips, blog ---- */
.tbl { overflow-x: auto; margin: 26px 0; border: 1px solid var(--line); border-radius: 6px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.tbl th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--card); }
.tbl td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.tbl tr:first-child td { border-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.byline { margin-top: 22px; }
.cover { margin: 40px 0 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cover img { display: block; width: 100%; height: auto; }
.sources { font-size: 15px; }
.sources span { color: var(--mute); margin-left: 6px; }
.fcols { grid-template-columns: 1.3fr repeat(5, 1fr); gap: 28px; }
@media (max-width: 1180px) { .nav a { padding-inline: 9px; font-size: 14px; } }
@media (max-width: 1000px) { .fcols { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 760px) { .fcols { grid-template-columns: 1fr 1fr; } }
