/* ═══════════════════════════════════════════════════════════════
   Sub-pages — shared styles (About, Journey, Careers, Legal, Sales)
   Layers on top of preview.css + premium.css. Reuses the same
   tokens (--violet, --fg-*, --line*, --serif/sans/mono).
   ═══════════════════════════════════════════════════════════════ */

/* ─── Page hero — clears the fixed nav, centered intro ──────────── */
.page-hero {
  position: relative;
  padding: 118px 0 54px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 70% at 50% 0%, oklch(0.50 0.24 275 / 0.22) 0%, transparent 60%),
    radial-gradient(46% 60% at 82% 42%, oklch(0.40 0.20 285 / 0.12) 0%, transparent 65%),
    radial-gradient(40% 50% at 12% 80%, oklch(0.36 0.16 285 / 0.10) 0%, transparent 70%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(168,144,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,144,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 50% 0%, rgba(0,0,0,0.6), transparent 80%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 0%, rgba(0,0,0,0.6), transparent 80%);
  opacity: 0.5;
}
.page-hero .ph-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 24px;
}
.page-hero .ph-kicker::before,
.page-hero .ph-kicker::after {
  content: "";
  width: 24px; height: 1px;
  background: var(--violet-line);
}
.page-hero h1 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(40px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  max-width: 20ch;
  margin: 0 auto;
  text-wrap: balance;
  padding-bottom: 0.08em;
}
.page-hero h1 em {
  font-style: normal;
  font-weight: 600;
  color: var(--violet);
  background: linear-gradient(180deg, oklch(0.78 0.18 280), oklch(0.62 0.22 275));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero .lede {
  margin: 26px auto 0;
  max-width: 62ch;
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg-2);
  font-weight: 300;
}
.page-hero .ph-actions {
  margin-top: 38px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Generic prose section heading block ───────────────────────── */
.page-section { position: relative; padding: 100px 0; }
.page-section.tight { padding: 72px 0; }
.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head .kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: var(--violet);
  margin-bottom: 18px;
}
.section-head .kicker::before {
  content: "";
  width: 22px; height: 1px; background: var(--violet);
}
.section-head h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.024em;
  color: var(--fg-1);
  text-wrap: balance;
}
.section-head h2 em {
  font-style: normal;
  font-weight: 600;
  color: var(--violet);
  background: linear-gradient(180deg, oklch(0.78 0.18 280), oklch(0.62 0.22 275));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p {
  margin-top: 20px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  font-weight: 300;
}

/* ─── Feature / value card grid (About values, Careers perks) ───── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

.feature-card {
  position: relative;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 30px 28px 32px;
  background: linear-gradient(180deg, rgba(22,24,34,0.55) 0%, rgba(12,14,20,0.85) 100%);
  isolation: isolate;
  overflow: hidden;
  transition: transform 360ms cubic-bezier(0.22,1,0.36,1), border-color 360ms ease, box-shadow 360ms ease;
}
.feature-card::before {
  content: "";
  position: absolute; left: 28px; right: 28px; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--violet) 0%, transparent 100%);
  opacity: 0.7;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--violet-line);
  box-shadow: 0 28px 60px rgba(0,0,0,0.42), 0 0 0 1px rgba(168,144,255,0.14);
}
.feature-card .fc-ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: var(--violet);
  margin-bottom: 22px;
}
.feature-card .fc-ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.feature-card .fc-num {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--fg-4);
  margin-bottom: 16px;
}
.feature-card h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
}

/* ─── About — story split (text + side panel) ───────────────────── */
.story-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}
@media (max-width: 900px) { .story-grid { grid-template-columns: 1fr; gap: 40px; } }
.story-grid .story-copy h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--fg-1);
  margin-bottom: 22px;
  text-wrap: balance;
}
.story-grid .story-copy h2 em {
  font-style: normal;
  font-weight: 600;
  color: var(--violet);
  background: linear-gradient(180deg, oklch(0.78 0.18 280), oklch(0.62 0.22 275));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.story-grid .story-copy p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 16px;
}
.story-panel {
  position: relative;
  border: 1px solid var(--violet-line);
  border-radius: 20px;
  padding: 36px;
  background: linear-gradient(180deg, oklch(0.18 0.08 275 / 0.45) 0%, oklch(0.10 0.04 275 / 0.85) 100%);
  isolation: isolate;
  overflow: hidden;
}
.story-panel::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 50% 0%, rgba(168,144,255,0.16), transparent 60%);
}
.story-panel .sp-stat { padding: 20px 0; border-bottom: 1px dashed var(--line); }
.story-panel .sp-stat:last-child { border-bottom: 0; padding-bottom: 0; }
.story-panel .sp-stat:first-child { padding-top: 0; }
.story-panel .sp-num {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.story-panel .sp-num em { font-style: normal; color: var(--violet); }
.story-panel .sp-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* ─── Careers — open-roles status panel ─────────────────────────── */
.roles-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  padding: 64px 40px;
  background: linear-gradient(180deg, rgba(22,24,34,0.6) 0%, rgba(12,14,20,0.9) 100%);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.roles-panel::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 60% at 50% 0%, rgba(168,144,255,0.10), transparent 65%);
}
.roles-panel .rp-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--violet-line);
  background: var(--violet-soft);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 26px;
}
.roles-panel .rp-badge .pip {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}
.roles-panel h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(26px, 3.4vw, 38px);
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin-bottom: 16px;
  text-wrap: balance;
}
.roles-panel p {
  max-width: 50ch;
  margin: 0 auto 14px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-2);
}
.roles-panel .rp-actions {
  margin-top: 30px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Legal pages (Privacy, Terms) ──────────────────────────────── */
.legal {
  position: relative;
  padding: 80px 0 130px;
}
.legal-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 64px;
  max-width: 1060px;
  margin: 0 auto;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-toc .toc-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 8px;
}
.legal-toc a {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--fg-3);
  padding: 6px 0;
  border-left: 1px solid transparent;
  padding-left: 12px;
  margin-left: -1px;
  transition: color 180ms ease, border-color 180ms ease;
}
.legal-toc a:hover { color: var(--fg-1); border-left-color: var(--violet); }

.legal-body .updated {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-4);
  margin-bottom: 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.legal-body h2 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: -0.018em;
  color: var(--fg-1);
  margin: 52px 0 14px;
  scroll-margin-top: 96px;
}
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--fg-1);
  margin: 28px 0 10px;
}
.legal-body p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--fg-2);
  margin-bottom: 16px;
}
.legal-body ul {
  margin: 0 0 18px 0;
  padding-left: 4px;
  list-style: none;
}
.legal-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--fg-2);
  margin-bottom: 10px;
}
.legal-body ul li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--violet);
}
.legal-body a { color: var(--violet); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
  }
  .legal-toc .toc-label { width: 100%; margin-bottom: 0; }
  .legal-toc a { border-left: 0; padding: 4px 0; }
}

/* ─── Careers — benefits strip + open-roles board ───────────────── */
.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1000px;
  margin: 0 auto;
}
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .benefits { grid-template-columns: 1fr; } }
.benefit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(22,24,34,0.5), rgba(12,14,20,0.82));
}
.benefit .b-ico {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: var(--violet);
}
.benefit .b-ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.benefit span { font-size: 13.5px; color: var(--fg-1); font-weight: 500; }

.roles-board {
  max-width: 880px;
  margin: 0 auto;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(22,24,34,0.5), rgba(12,14,20,0.85));
}
.roles-board .rb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.roles-board .rb-head .rb-count {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--fg-2);
}
.roles-board .rb-head .pip {
  width: 7px; height: 7px; border-radius: 999px;
  background: var(--green); box-shadow: 0 0 10px var(--green);
}
.roles-board .rb-empty {
  text-align: center;
  padding: 64px 32px 60px;
}
.roles-board .rb-ico {
  width: 60px; height: 60px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--violet-soft);
  border: 1px solid var(--violet-line);
  color: var(--violet);
}
.roles-board .rb-ico svg { width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.roles-board .rb-empty h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 30px);
  letter-spacing: -0.02em;
  color: var(--fg-1);
  margin-bottom: 12px;
}
.roles-board .rb-empty p {
  max-width: 52ch;
  margin: 0 auto 12px;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--fg-2);
}
.roles-board .rb-actions {
  margin-top: 28px;
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ─── Journey — alternating milestone timeline ──────────────────── */
.timeline {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 6px 0;
  list-style: none;
  counter-reset: milestone;
}
/* center spine */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  bottom: 6px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    transparent 0%,
    var(--violet-line) 7%,
    var(--violet-line) 93%,
    transparent 100%);
}

.tl-item {
  position: relative;
  width: 50%;
  box-sizing: border-box;
  padding: 0 56px 56px;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:nth-child(odd)  { left: 0;   text-align: right; }
.tl-item:nth-child(even) { left: 50%; text-align: left;  }

/* node straddling the spine */
.tl-node {
  position: absolute;
  top: 2px;
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--violet);
  background: linear-gradient(180deg, oklch(0.22 0.10 275 / 0.85), oklch(0.12 0.05 275 / 0.92));
  border: 1px solid var(--violet-line);
  box-shadow: 0 0 0 6px var(--ink-0), 0 0 24px oklch(0.65 0.20 275 / 0.30);
  z-index: 2;
}
.tl-item:nth-child(odd)  .tl-node { right: -27px; }
.tl-item:nth-child(even) .tl-node { left: -27px;  }
.tl-node svg {
  width: 24px; height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* milestone card */
.tl-card {
  position: relative;
  display: inline-block;
  text-align: left;
  max-width: 380px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 24px 26px 26px;
  background: linear-gradient(180deg, rgba(22,24,34,0.55) 0%, rgba(12,14,20,0.85) 100%);
  isolation: isolate;
  overflow: hidden;
  transition: transform 360ms cubic-bezier(0.22,1,0.36,1), border-color 360ms ease, box-shadow 360ms ease;
}
.tl-card::before {
  content: "";
  position: absolute; left: 26px; right: 26px; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--violet) 0%, transparent 100%);
  opacity: 0.7;
}
.tl-item:nth-child(odd) .tl-card::before {
  background: linear-gradient(90deg, transparent 0%, var(--violet) 100%);
}
.tl-card:hover {
  transform: translateY(-4px);
  border-color: var(--violet-line);
  box-shadow: 0 28px 60px rgba(0,0,0,0.42), 0 0 0 1px rgba(168,144,255,0.14);
}
.tl-year {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 38px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--fg-1);
  font-variant-numeric: tabular-nums;
}
.tl-meta {
  display: inline-block;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--violet);
}
.tl-title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--fg-1);
  margin: 14px 0 8px;
}
.tl-desc {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-2);
}

/* current milestone — subtle "now" emphasis */
.tl-card.is-now {
  border-color: var(--violet-line);
  box-shadow: 0 0 40px oklch(0.65 0.20 275 / 0.12);
}
.tl-card.is-now .tl-meta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tl-card.is-now .tl-meta::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 9px var(--green);
}

/* ── Mobile — single rail on the left ──────────────────────────── */
@media (max-width: 720px) {
  .timeline::before { left: 26px; transform: none; }
  .tl-item,
  .tl-item:nth-child(odd),
  .tl-item:nth-child(even) {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 0 0 40px 72px;
  }
  .tl-item:nth-child(odd) .tl-node,
  .tl-item:nth-child(even) .tl-node { left: 0; right: auto; }
  .tl-item:nth-child(odd) .tl-card::before {
    background: linear-gradient(90deg, var(--violet) 0%, transparent 100%);
  }
  .tl-card { max-width: 100%; display: block; }
}
