/* ==========================================================================
   Calib Data — site styles
   Tokens come from Calib-Data-Style-Guide.pdf. The guide specifies type and
   radius for a 1080 × 1350 social canvas; the web values below keep the same
   hierarchy, scaled ~0.67 and made fluid (canvas value noted beside each).
   Spacing is used as-is.
   ========================================================================== */

:root {
  /* Five locked colors: fills, arrows and lines */
  --c-purple: #6366f1; /* brand, backgrounds, headers, accent bar */
  --c-green: #22c55e; /* good news ▲, stat + button fills */
  --c-coral: #ff6b6b; /* bad news ▼, falling lines only */
  --c-white: #fafafa; /* main background, cards, text on purple */
  --c-gray: #d9d9d9; /* dividers, card edge. Never text */

  /* Supporting colors */
  --c-ink: #000000; /* headlines */
  --c-navy: #25324e; /* card / table text */
  --c-slate: #64748b; /* captions */
  --c-green-deep: #15803d; /* green as text on light */
  --c-coral-deep: #dc2626; /* coral as text on light */
  --c-purple-tint: #e5e5fa;
  --c-purple-wash: #f9f8fe;
  --c-green-wash: #f7fcf9;

  --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Type */
  --fs-stat: clamp(44px, 5vw, 68px); /* 96 / Bold */
  --fs-punch: clamp(34px, 4vw, 54px); /* 64 / Bold */
  --fs-headline: clamp(28px, 3.2vw, 42px); /* 52 / Regular */
  --fs-headline-md: clamp(24px, 2.4vw, 32px);
  --fs-subhead: clamp(19px, 1.7vw, 23px); /* 34 / Regular + SemiBold */
  --fs-card-title: clamp(18px, 1.5vw, 21px); /* 32 / Bold */
  --fs-body: 18px; /* 26 / Regular: copy */
  --fs-row: 16px; /* 26 / Regular: rows, tiles, tables */
  --fs-label: 14px; /* 24 / SemiBold, caps */
  --fs-fine: 13px; /* 20 / Regular */
  /* White on purple is 4.3:1, so only at 19px bold+; fine print on purple 20px min */
  --fs-on-purple-min: 19px;
  --fs-fine-on-purple: 20px;

  /* Spacing: space-N = N × 8 */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;

  /* Radius */
  --radius-lg: 24px; /* 36: cards, panels, stats */
  --radius-md: 16px; /* 24: tiles, tables */
  --radius-sm: 12px; /* 16: buttons */

  /* Only report cards get a shadow */
  --card-lift: 0 1px 2px rgba(37, 50, 78, 0.06),
    0 18px 40px -14px rgba(37, 50, 78, 0.24);

  --gutter: clamp(20px, 5vw, 64px);
  --maxw: 1200px;
  --section-y: clamp(64px, 9vw, 120px); /* sections at least space-8 apart */
  --accent-bar-w: 128px; /* ~200 × 16 on canvas */
  --accent-bar-h: 10px;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--c-navy);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

h1,
h2,
h3,
h4 {
  color: var(--c-ink);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

strong {
  font-weight: 700;
}

:focus-visible {
  outline: 3px solid var(--c-purple);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--space-2);
  top: -100px;
  z-index: 200;
  background: var(--c-ink);
  color: var(--c-white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  top: var(--space-2);
}

/* --------------------------------------------------------------------------
   Layout
   -------------------------------------------------------------------------- */

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

.section {
  padding-block: var(--section-y);
}

.section--tight-top {
  padding-top: 0;
}

.section--wash {
  background: var(--c-purple-wash);
}

/* Solution / proof mode. White text here must stay 19px bold+. */
.section--purple {
  background: var(--c-purple);
  color: var(--c-white);
}

.section-head {
  max-width: 820px;
  margin-bottom: var(--space-6);
}

.section-head > * + * {
  margin-top: var(--space-2);
}

/* Left-align on white, center on purple */
.section--purple .section-head,
.proof-panel .section-head {
  margin-inline: auto;
  text-align: center;
}

.section--purple h2,
.proof-panel h2 {
  color: var(--c-white);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.split--top {
  align-items: start;
}

.split--narrow-wide {
  grid-template-columns: 0.7fr 1.3fr;
}

/* Let wide children (tables) scroll inside their wrapper instead of widening the grid */
.hero-grid > *,
.split > * {
  min-width: 0;
}

.stack > * + * {
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   Type
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-block;
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-purple);
}

/* Small white text fails on purple, so eyebrows there become ink-on-white chips */
.section--purple .eyebrow,
.proof-panel .eyebrow {
  background: var(--c-white);
  color: var(--c-ink);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.headline {
  font-size: var(--fs-headline);
}

.headline--md {
  font-size: var(--fs-headline-md);
}

.headline-punch {
  font-size: var(--fs-punch);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

/* Quiet setup in headline, loud payoff in headline-punch */
.h-quiet,
.h-loud {
  display: block;
}

.h-quiet {
  font-size: var(--fs-headline);
  font-weight: 400;
}

.h-loud {
  font-size: var(--fs-punch);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
  color: var(--c-purple);
}

.subhead {
  font-size: var(--fs-subhead);
  line-height: 1.4;
}

.subhead-strong {
  font-size: var(--fs-subhead);
  line-height: 1.4;
  font-weight: 600;
}

.card-title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
}

.label {
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fine-print {
  font-size: var(--fs-fine);
  line-height: 1.45;
  color: var(--c-slate);
}

.section--purple .fine-print,
.proof-panel .fine-print {
  font-size: var(--fs-fine-on-purple);
  color: var(--c-white);
}

.prose > * + * {
  margin-top: var(--space-2);
}

.prose p {
  max-width: 62ch;
}

.accent-bar {
  display: block;
  width: var(--accent-bar-w);
  height: var(--accent-bar-h);
  background: var(--c-purple);
  margin-top: var(--space-3);
}

/* Change markers: always arrow + sign + color */
.up,
.down {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.up {
  color: var(--c-green-deep);
}

.down {
  color: var(--c-coral-deep);
}

.up::before,
.down::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-right: 0.3em;
  border-left: 0.32em solid transparent;
  border-right: 0.32em solid transparent;
  vertical-align: 0.1em;
}

.up::before {
  border-bottom: 0.55em solid currentColor;
}

.down::before {
  border-top: 0.55em solid currentColor;
}

/* Big figures get a proportionally smaller marker */
.stat .up::before,
.stat .down::before,
.callout-value.up::before,
.callout-value.down::before {
  font-size: 0.6em;
  margin-right: 0.35em;
  vertical-align: 0.3em;
}

/* On green / coral fills the marker takes the ink color */
.stat-block .up,
.stat-block .down,
.callout .up,
.callout .down {
  color: inherit;
}

/* --------------------------------------------------------------------------
   Icons: simple outline, 2px stroke, round ends, purple
   -------------------------------------------------------------------------- */

.icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: none;
  stroke: var(--c-purple);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon--28 {
  width: 28px;
  height: 28px;
  stroke-width: 1.72; /* renders at 2px */
}

.icon--40 {
  width: 40px;
  height: 40px;
  stroke-width: 1.2;
}

.icon--48 {
  width: 48px;
  height: 48px;
  stroke-width: 1;
}

/* --------------------------------------------------------------------------
   Buttons: labels in caps; primary is green with ink text (never white on green)
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  font-size: var(--fs-label);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--green {
  background: var(--c-green);
  color: var(--c-ink);
}

.btn--green:hover {
  background: color-mix(in srgb, var(--c-green) 86%, var(--c-ink));
}

.btn--outline {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}

.btn--outline:hover {
  background: var(--c-ink);
  color: var(--c-white);
}

.btn--sm {
  padding: 11px 18px;
  font-size: 13px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}

.text-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-ink);
  border-bottom: 2px solid var(--c-purple);
  padding-bottom: 2px;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.site-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-gray);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 76px;
}

.site-logo {
  display: block;
  /* Clear space = height of the capital C */
  padding-block: 10px;
}

.site-logo img {
  height: 30px;
  width: auto;
}

.site-header .btn {
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-block: var(--space-8) var(--section-y);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-8);
  align-items: center;
}

.hero h1 {
  margin-top: var(--space-3);
  font-size: var(--fs-punch);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.hero-lede {
  margin-top: var(--space-3);
  max-width: 34em;
}

/* --------------------------------------------------------------------------
   ReportCards: Marketing Report (left) vs P&L (right), never swapped
   -------------------------------------------------------------------------- */

.report-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.report-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--space-3);
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-lift);
  color: var(--c-navy);
}

.report-title {
  font-size: var(--fs-card-title);
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-ink);
}

.report-window {
  font-size: var(--fs-fine);
  color: var(--c-slate);
}

.report-rows {
  font-size: var(--fs-row);
}

.report-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
  border-top: 1px solid var(--c-gray);
}

.report-rows dd {
  font-weight: 600;
}

.report-spark {
  width: 100%;
  height: 64px;
}

.report-spark .line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.report-spark--up .line {
  stroke: var(--c-green);
}

.report-spark--up .area {
  fill: var(--c-green);
  opacity: 0.12;
}

.report-spark--down .line {
  stroke: var(--c-coral);
}

.report-spark--down .area {
  fill: var(--c-coral);
  opacity: 0.14;
}

.report-verdict--up {
  color: var(--c-green-deep);
}

.report-verdict--down {
  color: var(--c-coral-deep);
}

.report-note {
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   Proof panel (90-day results): purple, inset
   -------------------------------------------------------------------------- */

.proof-panel {
  background: var(--c-purple);
  color: var(--c-white);
  border-radius: var(--radius-lg);
  padding: var(--space-8) clamp(20px, 4vw, 56px);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

/* StatBlock: ink on green fills, stacked on purple */
.stat-block {
  background: var(--c-green);
  color: var(--c-ink);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  text-align: center;
}

.stat {
  font-size: var(--fs-stat);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-block .label {
  margin-top: 10px;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-2);
  align-items: center;
  margin-top: var(--space-4);
}

.ba-card {
  background: var(--c-white);
  color: var(--c-navy);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  text-align: left;
}

.ba-card .label {
  color: var(--c-slate);
  margin-bottom: 8px;
}

.ba-card--after .label {
  color: var(--c-green-deep);
}

.ba-rows div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding-block: 10px;
  border-top: 1px solid var(--c-gray);
  font-size: var(--fs-row);
}

.ba-rows dd {
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--c-ink);
  font-variant-numeric: tabular-nums;
}

.ba-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--c-white);
}

.ba-arrow svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--c-ink);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.proof-caption {
  margin: var(--space-4) auto 0;
  max-width: 40em;
  text-align: center;
  font-size: max(var(--fs-on-purple-min), var(--fs-subhead));
  font-weight: 700;
  line-height: 1.35;
}

.proof-panel .fine-print {
  margin-top: var(--space-2);
  text-align: center;
}

/* --------------------------------------------------------------------------
   CTA row
   -------------------------------------------------------------------------- */

.cta-row-lead {
  font-size: var(--fs-subhead);
}

.cta-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   Brand strip
   -------------------------------------------------------------------------- */

.brand-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-1);
  margin-top: var(--space-6);
}

.brand-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--c-purple-wash);
}

.brand-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-card span {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--c-white);
  color: var(--c-ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Video (See how Calib Data calibrates)
   -------------------------------------------------------------------------- */

.video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-lg);
  background: var(--c-white);
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sits in the poster's empty lower-left corner, clear of the headline and cards */
.video-play {
  position: absolute;
  left: 6%;
  bottom: 9%;
}

.video-play[hidden] {
  display: none;
}

.btn.video-play svg {
  fill: currentColor;
  stroke: none;
}

/* --------------------------------------------------------------------------
   FactorTiles: outline icon + 1–3 word label on a wash panel
   -------------------------------------------------------------------------- */

.factor-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: var(--space-3);
  background: var(--c-purple-wash);
  border: 1px solid var(--c-purple-tint);
  border-radius: var(--radius-lg);
}

.factor-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 14px 18px;
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-md);
  font-size: var(--fs-row);
  font-weight: 500;
  line-height: 1.25;
  color: var(--c-navy);
  text-decoration: none;
}

.factor-tile.is-featured {
  background: var(--c-purple-tint);
  border-color: var(--c-purple);
}

a.factor-tile:hover {
  border-color: var(--c-purple);
}

a.factor-tile .tile-go {
  margin-left: auto;
  width: 18px;
  height: 18px;
}

/* --------------------------------------------------------------------------
   DataTable: purple header, 6–8 rows max, gray bold total
   -------------------------------------------------------------------------- */

.data-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-row);
  color: var(--c-navy);
  font-variant-numeric: tabular-nums;
}

.data-table thead th {
  padding: 12px 16px;
  background: var(--c-purple);
  color: var(--c-white);
  font-size: var(--fs-on-purple-min);
  font-weight: 700;
  line-height: 1.25;
  text-align: right;
  white-space: nowrap;
}

.data-table th[scope="row"],
.data-table td {
  padding: 11px 16px;
  border-top: 1px solid var(--c-gray);
}

.data-table th[scope="row"] {
  font-weight: 400;
  text-align: left;
}

.data-table td {
  text-align: right;
  white-space: nowrap;
}

.data-table tr.is-strong > * {
  font-weight: 700;
  color: var(--c-ink);
}

.data-table tr.is-wash > * {
  background: var(--c-purple-wash);
}

.data-table tr.is-total > * {
  background: var(--c-gray);
  font-weight: 700;
  color: var(--c-ink);
}

.table-title {
  margin-bottom: var(--space-3);
}

.table-title p {
  margin-top: var(--space-1);
  font-size: var(--fs-row);
}

/* Callouts under a table (ink on locked fills) */
.callouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  color: var(--c-ink);
}

.callout--up {
  background: var(--c-green);
}

.callout--down {
  background: var(--c-coral);
}

.callout-value {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.note {
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--c-purple-wash);
  border: 1px solid var(--c-purple-tint);
  border-radius: var(--radius-md);
  font-size: var(--fs-row);
}

.note-title {
  font-weight: 700;
  color: var(--c-ink);
}

.illustration + .illustration {
  margin-top: var(--section-y);
}

/* --------------------------------------------------------------------------
   Software showcase: sticky horizontal scroll (ported from cp-website)
   -------------------------------------------------------------------------- */

.showcase {
  position: relative;
}

.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
  /* Bottom padding centers the progress row on the floating CTA (24px + 54px / 2) */
  padding-block: var(--space-6) 36px;
}

.showcase .section-head {
  max-width: 1040px; /* two-line headline leaves room for the panels */
  margin-bottom: 0;
}

.showcase-viewport {
  overflow: hidden;
}

.showcase-track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  padding-inline: var(--gutter);
  will-change: transform;
}

.showcase-panel {
  flex: none;
  display: grid;
  grid-template-columns: minmax(240px, 0.4fr) 1fr;
  gap: var(--space-4);
  align-items: center;
  width: min(1120px, 84vw);
  /* Fit the pinned viewport: 330px covers the heading, gaps, progress row and padding */
  height: min(470px, calc(100vh - 330px));
  padding: var(--space-4);
  background: var(--c-white);
  border-radius: var(--radius-lg);
  color: var(--c-navy);
}

/* Panels are white boxes, so their eyebrows use the light-mode style */
.showcase-panel .eyebrow {
  padding: 0;
  background: none;
  color: var(--c-purple);
}

.showcase-panel h3 {
  margin-top: 12px;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 700;
}

.showcase-panel p {
  margin-block: var(--space-2) var(--space-3);
  font-size: var(--fs-row);
}

.showcase-panel--end {
  grid-template-columns: 1fr;
  width: min(560px, 84vw);
  align-self: stretch;
  align-content: center;
}

/* Pinned: the screen fills the panel height and the screenshot crops from the bottom */
.screen {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-md);
  background: var(--c-white);
}

.screen-chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--c-gray);
  font-size: 12px;
  color: var(--c-slate);
}

.screen-chrome .icon {
  width: 12px;
  height: 12px;
  stroke: var(--c-slate);
}

.screen-body {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--c-purple-wash);
}

.screen-body img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.showcase-foot {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-inline: var(--gutter);
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  width: 100%;
  margin-inline: auto;
}

.showcase-progress {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(250, 250, 250, 0.35);
  overflow: hidden;
}

.showcase-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--c-white);
}

/* Shares a row with the floating CTA, so stop short of it */
body:has(.floating-cta) .showcase-foot {
  padding-right: 272px;
}

.showcase-counter {
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  background: var(--c-white);
  color: var(--c-ink);
  font-size: var(--fs-label);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Short laptop screens (pinned, but under ~760px tall): tighter panel copy so it fits */
@media (min-width: 901px) and (max-height: 760px) {
  .showcase-panel {
    gap: var(--space-3);
    padding: var(--space-3);
  }

  .showcase-panel h3 {
    margin-top: 8px;
    font-size: 22px;
  }

  .showcase-panel p {
    margin-block: 8px 16px;
    font-size: 15px;
  }
}

/* Small or short screens and reduced motion: plain vertical stack
   (keep in sync with staticQuery in site.js) */
@media (max-width: 900px), (max-height: 699px), (prefers-reduced-motion: reduce) {
  .showcase {
    padding-block: var(--section-y);
  }

  .showcase-sticky {
    position: static;
    height: auto;
    overflow: visible;
    padding-block: 0;
  }

  .showcase-track {
    flex-direction: column;
    width: auto;
    max-width: calc(var(--maxw) + 2 * var(--gutter));
    margin-inline: auto;
    transform: none !important;
  }

  .showcase-panel,
  .showcase-panel--end {
    width: auto;
    height: auto;
  }

  .screen {
    align-self: auto;
  }

  .screen-body {
    flex: none;
    aspect-ratio: 1859 / 922;
  }

  .showcase-foot {
    display: none;
  }
}

@media (max-width: 900px) {
  .showcase-panel {
    grid-template-columns: 1fr;
    padding: var(--space-3);
  }
}

/* --------------------------------------------------------------------------
   How it works
   -------------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: var(--space-3);
  background: var(--c-white);
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-lg);
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(var(--space-4) / -2 - 7px);
  width: 14px;
  height: 14px;
  border-top: 2.5px solid var(--c-purple);
  border-right: 2.5px solid var(--c-purple);
  transform: translateY(-50%) rotate(45deg);
}

.step-num {
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--c-purple);
}

.step p {
  font-size: var(--fs-row);
}

.step .stat-block {
  margin-top: auto;
  padding: var(--space-2);
}

.step .stat {
  font-size: clamp(36px, 3.4vw, 48px);
}

.cycle-banner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  padding: 18px 24px;
  background: var(--c-purple-tint);
  border-radius: var(--radius-md);
  font-size: var(--fs-subhead);
  font-weight: 600;
  color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   Founder: both sides of the table
   -------------------------------------------------------------------------- */

.founder {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-3);
  align-items: center;
}

.founder-col {
  height: 100%;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-gray);
}

.founder-col--marketing {
  background: var(--c-purple-wash);
}

.founder-col--finance {
  background: var(--c-green-wash);
}

.founder-col header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-2);
  border-bottom: 1px solid var(--c-gray);
}

.founder-col--marketing .label {
  color: var(--c-purple);
}

.founder-col--finance .label {
  color: var(--c-green-deep);
}

.founder-col ul {
  display: grid;
  gap: 12px;
  font-size: var(--fs-row);
}

.founder-col li {
  position: relative;
  padding-left: 20px;
}

.founder-col li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-purple);
}

.founder-col--finance li::before {
  background: var(--c-green);
}

.founder-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.founder-photo {
  position: relative;
  width: 176px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 50%;
  border: 6px solid var(--c-white);
  outline: 1px solid var(--c-gray);
  background: var(--c-purple-tint);
}

.founder-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-name {
  padding: 10px 18px;
  border: 1px solid var(--c-gray);
  border-radius: var(--radius-md);
  background: var(--c-white);
}

.founder-name .label {
  color: var(--c-green-deep);
}

.founder-name p:last-child {
  font-weight: 700;
  color: var(--c-ink);
}

.founder-banner {
  margin-top: var(--space-4);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  background: var(--c-purple);
  color: var(--c-white);
  text-align: center;
  font-size: max(var(--fs-on-purple-min), var(--fs-subhead));
  font-weight: 700;
  line-height: 1.35;
}

/* --------------------------------------------------------------------------
   Decisions table
   -------------------------------------------------------------------------- */

.decisions .data-table thead th {
  text-align: left;
}

.decisions .data-table th[scope="row"] {
  font-weight: 700;
  color: var(--c-ink);
  width: 22%;
  vertical-align: top;
}

.decisions .data-table td {
  text-align: left;
  white-space: normal;
  vertical-align: top;
}

.decisions .col-arrow {
  width: 40px;
  padding-inline: 0;
  text-align: center;
  color: var(--c-purple);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.decisions .col-with {
  background: var(--c-purple-tint);
}

.decisions .col-with strong {
  display: block;
  color: var(--c-ink);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq {
  max-width: 880px;
  border-top: 1px solid var(--c-gray);
}

.faq details {
  border-bottom: 1px solid var(--c-gray);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-2);
  padding-block: 20px;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-card-title);
  font-weight: 700;
  color: var(--c-ink);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  border-right: 2.5px solid var(--c-purple);
  border-bottom: 2.5px solid var(--c-purple);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(3px) rotate(-135deg);
}

.faq-body {
  padding-bottom: var(--space-3);
}

.faq-body > * + * {
  margin-top: 12px;
}

.faq-body p {
  max-width: 68ch;
}

/* --------------------------------------------------------------------------
   Next step: CtaBoxes (white box on purple, one green button)
   -------------------------------------------------------------------------- */

.cta-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.cta-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: var(--space-4);
  background: var(--c-white);
  color: var(--c-navy);
  border-radius: var(--radius-lg);
}

.cta-box h3 {
  font-size: var(--fs-subhead);
  font-weight: 700;
}

.cta-box .btn {
  margin-top: auto;
}

.cta-box p:first-of-type {
  color: var(--c-ink);
  font-weight: 600;
}

.cta-box .fine-print {
  font-size: var(--fs-fine);
  color: var(--c-slate);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: var(--space-6);
  border-top: 1px solid var(--c-gray);
  font-size: var(--fs-row);
  color: var(--c-slate);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  color: var(--c-navy);
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Floating CTA: always-visible tour button, bottom right (as on cp-website)
   -------------------------------------------------------------------------- */

.floating-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90; /* below the modal overlay */
  /* Flat, per the guide; the white ring keeps it distinct over purple sections */
  box-shadow: 0 0 0 3px var(--c-white);
  /* Entrance: fade + slide up, once, shortly after load */
  opacity: 0;
  transform: translateY(16px);
  animation: floating-cta-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes floating-cta-in {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Room at the bottom so the button never sits on the footer copy */
body:has(.floating-cta) .site-footer {
  padding-bottom: calc(var(--space-6) + 72px);
}

/* --------------------------------------------------------------------------
   CTA modal
   -------------------------------------------------------------------------- */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: var(--gutter);
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.is-open {
  opacity: 1;
}

.modal {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 2 * var(--gutter));
  overflow: auto;
  padding: var(--space-4);
  background: var(--c-white);
  border-radius: var(--radius-lg);
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.modal-overlay.is-open .modal {
  transform: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--c-purple-wash);
}

.modal-close .icon {
  stroke: var(--c-ink);
}

.modal h2 {
  margin-top: 8px;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
}

.modal-sub {
  margin-top: 8px;
  font-size: var(--fs-row);
}

.modal-form {
  display: grid;
  gap: 14px;
  margin-top: var(--space-3);
}

.modal-field label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-label);
  font-weight: 600;
  color: var(--c-ink);
}

/* Screen readers already announce the inputs' required attribute, so the mark is aria-hidden */
.modal-required {
  color: var(--c-coral-deep);
}

/* Inputs use slate edges: gray is too faint for a form control (needs 3:1) */
.modal-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--c-slate);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--c-ink);
  font-size: 16px;
}

.modal-field input:focus-visible {
  outline-offset: 0;
  border-color: var(--c-purple);
}

.modal-honeypot {
  display: none;
}

.modal-form .btn {
  margin-top: 6px;
}

.modal-status {
  margin-top: var(--space-2);
  font-size: var(--fs-row);
}

.modal-success {
  font-weight: 600;
  color: var(--c-green-deep);
}

.modal-error {
  color: var(--c-coral-deep);
}

/* Inside the form the grid gap already spaces it */
.modal-form .modal-status {
  margin-top: 0;
}

/* --------------------------------------------------------------------------
   Legal pages (privacy policy)
   -------------------------------------------------------------------------- */

.legal {
  max-width: 820px;
}

.legal > * + * {
  margin-top: var(--space-2);
}

.legal h1 {
  font-size: var(--fs-punch);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.06;
}

.legal h1 + p {
  margin-top: var(--space-3);
  color: var(--c-slate);
}

.legal h2 {
  margin-top: var(--space-6);
  font-size: var(--fs-headline-md);
  font-weight: 700;
}

.legal h3 {
  margin-top: var(--space-4);
  font-size: var(--fs-card-title);
  font-weight: 700;
}

.legal p,
.legal li {
  font-size: 17px;
}

.legal ul {
  display: grid;
  gap: 8px;
  padding-left: 1.25em;
}

.legal li::marker {
  color: var(--c-purple);
}

.legal a {
  color: var(--c-ink);
  text-decoration-color: var(--c-purple);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal code {
  padding: 1px 6px;
  border: 1px solid var(--c-purple-tint);
  border-radius: 6px;
  background: var(--c-purple-wash);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 0.88em;
}

.legal .data-table-wrap {
  margin-block: var(--space-3);
}

/* Text-heavy tables: left aligned, wrapping, scroll on narrow screens */
.data-table--text {
  min-width: 560px;
}

.data-table--text thead th,
.data-table--text td {
  text-align: left;
  white-space: normal;
  vertical-align: top;
}

.data-table--text td {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   Placeholders: content still to come. grep "placeholder" before launch.
   -------------------------------------------------------------------------- */

.placeholder-row > * {
  white-space: normal !important;
  font-style: italic;
  color: var(--c-slate);
  text-align: left !important;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .step:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  .brand-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .founder {
    grid-template-columns: 1fr;
  }

  .founder-center {
    order: -1;
  }

  .cta-boxes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .stat-row {
    grid-template-columns: 1fr;
  }

  .before-after {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .before-after .ba-card {
    width: 100%;
  }

  .ba-arrow {
    transform: rotate(90deg);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step::after {
    display: none;
  }

  .report-pair {
    gap: var(--space-2);
  }

  .report-card {
    padding: var(--space-2);
  }

  /* Decisions table becomes stacked cards */
  .decisions .data-table thead {
    display: none;
  }

  .decisions .data-table,
  .decisions .data-table tbody,
  .decisions .data-table tr,
  .decisions .data-table th[scope="row"],
  .decisions .data-table td {
    display: block;
    width: auto;
  }

  .decisions .data-table tr + tr {
    border-top: 6px solid var(--c-purple-tint);
  }

  .decisions .data-table th[scope="row"] {
    border-top: 0;
    padding-bottom: 4px;
  }

  .decisions .data-table td {
    border-top: 0;
    padding-block: 4px;
  }

  .decisions .data-table td.col-with {
    padding-block: 12px;
  }

  /* Sentence case on purpose: the brand name is never set in caps */
  .decisions .data-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: var(--fs-fine);
    font-weight: 600;
    color: var(--c-slate);
  }

  .decisions .col-arrow {
    display: none !important;
  }

  .cycle-banner {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .data-table thead th {
    white-space: normal;
  }

  .data-table thead th,
  .data-table th[scope="row"],
  .data-table td {
    padding-inline: 10px;
  }

  .site-logo img {
    height: 22px;
  }

  .site-header .btn {
    padding: 10px 14px;
    font-size: 12px;
  }

  .floating-cta {
    right: 16px;
    bottom: 16px;
    padding: 12px 18px;
    font-size: 13px;
  }

  .brand-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .report-pair {
    grid-template-columns: 1fr;
  }

  .callouts {
    grid-template-columns: 1fr;
  }

  .factor-panel {
    grid-template-columns: 1fr;
  }

  .cta-row-actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .floating-cta {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
