/*
 * The CornerOS marketing site and onboarding (src/platform/views), on top of
 * tokens.css. Brand rules: brand/README.md.
 *
 * "Ringside at night": deep Ink grounds, a spotlight from above, Corner Red
 * as warmth and glow, Canvas type. Forms and sign-in stay on light cards so
 * fields read the way they do everywhere else.
 */

:root {
  --site-ground: #0B0C0F;          /* deeper than Ink, for the stage */
  --site-warm: #1C1012;            /* the warm band: Ink with red in it */
  --site-red-on-ink: #FF6A55;      /* small red text on dark grounds (6.6:1) */
  --site-glass: rgba(243, 241, 236, 0.04);
  --site-glass-line: rgba(243, 241, 236, 0.13);
  --site-soft: #C5C9CF;            /* secondary text on dark (11:1) */
  --site-quiet: #A9AEB6;           /* labels on dark (8:1) */
  --site-radius: 14px;
  --site-gutter: clamp(16px, 4vw, 48px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--site-ground); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.site {
  margin: 0;
  background: var(--site-ground);
  color: var(--cos-canvas);
  font-family: var(--cos-font-body);
  font-size: var(--cos-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--cos-canvas); }
a:hover { color: var(--site-red-on-ink); }

:focus-visible { outline: 3px solid var(--cos-red); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10;
  padding: 12px 16px; border-radius: var(--cos-radius);
  background: var(--cos-red); color: var(--cos-ink);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; color: var(--cos-ink); }

/* ----------------------------------------------------------------- layout */

.wrap, .wrap-wide, .wrap-narrow {
  width: 100%;
  margin: 0 auto;
  padding-left: var(--site-gutter);
  padding-right: var(--site-gutter);
}
.wrap, .wrap-wide { max-width: 1360px; }
.wrap-narrow { max-width: 920px; }
.band-ink { background: var(--site-ground); color: var(--cos-canvas); }
.section { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }

/* ------------------------------------------------------------------- type */

.display {
  font-family: var(--cos-font-display);
  font-weight: 700;
  line-height: 0.88;
  text-transform: uppercase;
  /* Never split a word: CORNE/R. A word too long for the column wraps whole. */
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.display-l { font-size: clamp(46px, 6.6vw, 96px); }
.display-m2 { font-size: clamp(36px, 5.6vw, 84px); line-height: 0.9; }
.display-m { font-size: clamp(36px, 4.4vw, 62px); line-height: 0.92; }
.display-page { font-size: clamp(46px, 8.4vw, 124px); line-height: 0.86; }
.display-start { font-size: clamp(56px, 7.6vw, 112px); line-height: 0.86; }
.display-teaser { font-size: clamp(38px, 4.6vw, 68px); line-height: 0.88; }
.display-closing { font-size: clamp(58px, 9vw, 140px); line-height: 0.86; }
.accent { color: var(--cos-red); }

.kicker, .eyebrow {
  font-family: var(--cos-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--cos-label-tracking);
  text-transform: uppercase;
  color: var(--site-red-on-ink);
}

.lede { max-width: 34rem; font-size: 18px; line-height: 1.6; color: var(--site-soft); }
.lede--on-ink { color: var(--site-soft); }

/* ---------------------------------------------------------------- buttons */

.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px;
  padding: 0 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--cos-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}
/* Ink on Corner Red, never white (brand/README.md). */
.pill--glow {
  background: linear-gradient(180deg, #F4644B 0%, var(--cos-red) 70%);
  color: var(--cos-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 200, 0.55),
    0 10px 34px -8px rgba(229, 64, 42, 0.75),
    0 0 72px -6px rgba(229, 64, 42, 0.5);
}
.pill--glow:hover {
  color: var(--cos-ink);
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 214, 200, 0.6),
    0 14px 40px -6px rgba(229, 64, 42, 0.9),
    0 0 96px -4px rgba(229, 64, 42, 0.65);
}
.pill--line {
  background: rgba(243, 241, 236, 0.03);
  border-color: rgba(243, 241, 236, 0.42);
  color: var(--cos-canvas);
}
.pill--line:hover { border-color: var(--cos-canvas); background: rgba(243, 241, 236, 0.09); color: var(--cos-canvas); }
@media (max-width: 420px) {
  .pill { min-height: 52px; padding: 0 22px; font-size: 15px; letter-spacing: 0.12em; }
  .features li { padding: 24px 22px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .pill { transition: none; }
  .pill--glow:hover { transform: none; }
}

/* The base brand buttons, for the light form cards. */
.cos-btn { gap: 8px; text-align: center; }
.cos-btn--primary, .cos-btn--primary:hover { color: var(--cos-ink); }

/* ------------------------------------------------------------- header/nav */

.announce {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 6px 12px;
  padding: 9px 16px;
  border-bottom: 1px solid rgba(243, 241, 236, 0.08);
  font-size: 13px;
  text-align: center;
}
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cos-red); box-shadow: 0 0 10px 2px rgba(229, 64, 42, 0.6); }
.announce-label { font-family: var(--cos-font-display); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.announce a { color: var(--site-soft); text-decoration: none; }
.announce a:hover { color: var(--cos-canvas); text-decoration: underline; }

.site-header { position: relative; z-index: 2; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 24px;
  padding-top: 22px; padding-bottom: 22px;
}
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--cos-canvas); text-decoration: none; }
a.logo:hover { color: var(--cos-canvas); }
.wordmark { font-family: var(--cos-font-display); font-size: 26px; font-weight: 700; line-height: 1; }
.wordmark-os { color: var(--cos-red); }
.logo--small { gap: 10px; }
.logo--small .wordmark { font-size: 22px; }

.nav-links {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px clamp(16px, 2.4vw, 34px);
  margin-left: auto;
  font-family: var(--cos-font-display);
  font-size: 15px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-links a { display: inline-block; padding: 6px 0; color: var(--site-soft); text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--cos-canvas); border-bottom-color: rgba(243, 241, 236, 0.4); }
.nav-links a[aria-current="page"] { color: var(--cos-canvas); border-bottom-color: var(--cos-red); }
.nav-cta {
  min-height: 44px; padding: 0 22px;
  border-radius: 999px;
  font-size: 15px; letter-spacing: 0.14em;
  box-shadow: 0 0 36px -6px rgba(229, 64, 42, 0.6);
}
.nav-aside { font-size: 15px; color: var(--site-soft); }
.nav-aside a { font-weight: 600; }

@media (max-width: 900px) {
  .nav-links { order: 3; width: 100%; margin-left: 0; gap: 4px 20px; font-size: 14px; }
  .nav-cta { min-height: 42px; padding: 0 16px; font-size: 14px; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 23px; }
  .logo .mark { width: 26px; height: 26px; }
  .nav { gap: 12px; }
  .nav-links { gap: 2px 16px; font-size: 13px; letter-spacing: 0.1em; }
}

/* ------------------------------------------------------- home: the stage */

.stage {
  position: relative;
  /* The spotlight spills up over the header; nothing may scroll sideways. */
  overflow-x: clip;
  padding-bottom: clamp(56px, 7vw, 96px);
  background:
    radial-gradient(ellipse 34% 26% at 50% 62%, rgba(229, 64, 42, 0.2), transparent 72%),
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(120, 28, 18, 0.32), transparent 70%),
    linear-gradient(180deg, var(--site-ground) 0%, var(--site-ground) 38%, var(--site-warm) 58%, #160D0F 86%, var(--site-ground) 100%);
}
/* A hairline where the warm band begins, as in a lit room's floor line. */
.stage::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 170, 150, 0.16) 30%, rgba(255, 170, 150, 0.16) 70%, transparent);
  pointer-events: none;
}

.stage-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  padding-top: clamp(28px, 5vw, 64px);
}

.stage-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 26px; }
.stage-copy .kicker { font-size: 13px; letter-spacing: 0.16em; }

/* The big line: Archivo Narrow, mixed case, set tight. */
.hero-line {
  font-family: var(--cos-font-display);
  font-weight: 700;
  font-size: clamp(54px, 6.6vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.015em;
  color: var(--cos-canvas);
  text-wrap: balance;
}
.hero-line-2 { display: block; color: var(--cos-red); }
.stage-lede { max-width: 31rem; font-size: 19px; line-height: 1.6; color: var(--site-soft); }

/* The bag, its spotlight and its pool of light on the floor. */
.bag-rig {
  position: relative;
  justify-self: center;
  width: min(64vw, 270px);
}
.bag {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  /* On narrow screens, show less chain. */
  aspect-ratio: 360 / 820;
  object-fit: cover;
  object-position: 50% 100%;
  transform-origin: 50% -40%;
  animation: bag-swing 7s ease-in-out infinite;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}
@keyframes bag-swing {
  0%, 100% { transform: rotate(1.1deg); }
  50% { transform: rotate(-1.1deg); }
}
.bag-light {
  position: absolute;
  left: 50%; top: -220px; bottom: 6%;
  width: 260%;
  transform: translateX(-50%);
  filter: blur(26px);
  pointer-events: none;
}
.bag-light::before {
  content: '';
  position: absolute; inset: 0;
  clip-path: polygon(43% 0, 57% 0, 86% 100%, 14% 100%);
  background: linear-gradient(180deg, rgba(255, 232, 214, 0.22) 0%, rgba(255, 220, 200, 0.1) 45%, rgba(255, 200, 180, 0.03) 85%, transparent 100%);
}
.bag-floor {
  position: absolute;
  left: 50%; bottom: -26px;
  width: 170%; height: 70px;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 30% 28% at 50% 50%, rgba(0, 0, 0, 0.75), transparent 100%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(255, 196, 170, 0.12), transparent 100%);
  animation: floor-sway 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes floor-sway {
  0%, 100% { transform: translateX(-49%); }
  50% { transform: translateX(-51%); }
}
@media (prefers-reduced-motion: reduce) {
  .bag, .bag-floor { animation: none; }
}

/* The four rounds, around the bag. */
.ring-rounds {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 20px;
}
.ring-round { position: relative; display: flex; flex-direction: column; gap: 6px; }
.ring-num {
  font-family: var(--cos-font-display); font-size: 12px; font-weight: 700;
  letter-spacing: var(--cos-label-tracking); text-transform: uppercase;
  color: var(--site-quiet);
}
.ring-title {
  font-family: var(--cos-font-display);
  font-size: clamp(38px, 4.2vw, 56px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--cos-canvas);
}
.ring-tag {
  font-family: var(--cos-font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--site-red-on-ink);
}
.ring-text { margin-top: 4px; font-size: 15px; line-height: 1.55; color: var(--site-soft); }

/* Frosted corner cards. */
.corner-card {
  padding: 24px 28px;
  border-radius: var(--site-radius);
  background: var(--site-glass);
  border: 1px solid var(--site-glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 60px -30px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.corner-card-title {
  margin-bottom: 14px;
  font-family: var(--cos-font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--cos-canvas);
}
.corner-card ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 6px 18px; }
.corner-card li {
  font-family: var(--cos-font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; line-height: 1.7;
  color: var(--site-quiet);
}

/* Tablet: the bag between two columns of rounds. */
@media (min-width: 760px) {
  .stage-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px) minmax(0, 1fr);
    column-gap: clamp(24px, 3vw, 48px);
    row-gap: 48px;
  }
  .stage-copy { grid-column: 1 / -1; grid-row: 1; }
  .bag-rig { grid-column: 2; grid-row: 2; width: 100%; }
  .ring-rounds {
    grid-column: 1 / -1; grid-row: 2;
    grid-template-columns: subgrid;
    grid-auto-rows: auto;
    align-content: center;
    row-gap: 64px;
  }
  .ring-round:nth-child(odd) { grid-column: 1; text-align: right; align-items: flex-end; }
  .ring-round:nth-child(even) { grid-column: 3; }
  .ring-round:nth-child(1), .ring-round:nth-child(2) { grid-row: 1; }
  .ring-round:nth-child(3), .ring-round:nth-child(4) { grid-row: 2; }
  .ring-text { max-width: 22rem; }
  .corner-card--see { grid-column: 1 / -1; grid-row: 3; }
  .corner-card--work { grid-column: 1 / -1; grid-row: 4; }
  .corner-card ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .corner-card--see { grid-column: 1; grid-row: 3; }
  .corner-card--work { grid-column: 3; grid-row: 3; }
  .corner-card ul { grid-template-columns: 1fr; }
}

/* Desktop: the full stage, as a poster. The rounds zigzag down beside the
   bag: Join (right), Book (left), Train (right), Stay (left). */
@media (min-width: 1140px) {
  .stage-grid {
    grid-template-columns: minmax(0, 1.3fr) 370px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto;
    row-gap: 0;
  }
  .stage-copy { grid-column: 1; grid-row: 1 / span 2; align-self: start; padding-top: 8px; }
  .corner-card--see { grid-column: 3; grid-row: 1; justify-self: end; align-self: start; width: min(100%, 340px); }
  .bag-rig { grid-column: 2; grid-row: 1 / -1; align-self: start; margin-top: -48px; }
  .bag { aspect-ratio: 360 / 1060; }
  .ring-rounds {
    grid-column: 1 / -1; grid-row: 1 / -1;
    grid-template-rows: subgrid;
    row-gap: 0;
    pointer-events: none;
  }
  .ring-round { pointer-events: auto; max-width: 380px; }
  .ring-round:nth-child(odd) { grid-column: 3; text-align: left; align-items: flex-start; }
  .ring-round:nth-child(even) { grid-column: 1; justify-self: end; text-align: right; align-items: flex-end; }
  .ring-round:nth-child(1) { grid-row: 2; margin-top: 72px; }
  .ring-round:nth-child(2) { grid-row: 3; margin-top: 36px; }
  .ring-round:nth-child(3) { grid-row: 3; margin-top: 124px; }
  .ring-round:nth-child(4) { grid-row: 4; margin-top: 16px; }
  .corner-card--work { grid-column: 3; grid-row: 4; justify-self: end; align-self: end; width: min(100%, 340px); margin-top: 40px; }
  /* A hairline from each round towards the bag. */
  .ring-round::after {
    content: '';
    position: absolute; top: 46px;
    width: clamp(30px, 4vw, 70px); height: 1px;
  }
  .ring-round:nth-child(even)::after { right: calc(-1 * clamp(24px, 3vw, 48px)); background: linear-gradient(90deg, transparent, rgba(255, 170, 150, 0.4)); }
  .ring-round:nth-child(odd)::after { left: calc(-1 * clamp(24px, 3vw, 48px)); background: linear-gradient(270deg, transparent, rgba(255, 170, 150, 0.4)); }
}

/* ------------------------------------------------------ home: the rest */

.dark-section { position: relative; }
.dark-section--band {
  background:
    radial-gradient(ellipse 50% 60% at 85% 40%, rgba(229, 64, 42, 0.1), transparent 70%),
    linear-gradient(180deg, var(--site-ground), var(--site-warm) 50%, var(--site-ground));
}

.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 24px 40px;
  align-items: end;
  margin-bottom: 52px;
}
.section-intro { display: flex; flex-direction: column; gap: 20px; max-width: 52rem; margin-bottom: 52px; }
.section-intro .lede { max-width: 44rem; font-size: 18px; line-height: 1.65; }

.glass {
  border-radius: var(--site-radius);
  background: linear-gradient(180deg, rgba(243, 241, 236, 0.05), rgba(243, 241, 236, 0.015));
  border: 1px solid var(--site-glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.features li {
  display: flex; flex-direction: column; gap: 10px;
  padding: 30px 30px 34px;
  border-radius: var(--site-radius);
  background: linear-gradient(180deg, rgba(243, 241, 236, 0.05), rgba(243, 241, 236, 0.012));
  border: 1px solid var(--site-glass-line);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.features li:hover { border-color: rgba(229, 64, 42, 0.5); box-shadow: 0 0 60px -24px rgba(229, 64, 42, 0.6); }
.feature-num { font-family: var(--cos-font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.24em; color: var(--site-red-on-ink); }
.features h3 { font-family: var(--cos-font-display); font-size: 34px; font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.features p { font-size: 15px; line-height: 1.6; color: var(--site-soft); }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.step { padding: 30px; }
.step-num {
  display: block;
  font-family: var(--cos-font-display); font-size: 72px; font-weight: 700; line-height: 1;
  color: var(--cos-red);
  text-shadow: 0 0 40px rgba(229, 64, 42, 0.45);
}
.step h3 { margin: 12px 0 6px; font-family: var(--cos-font-display); font-size: 28px; font-weight: 700; line-height: 1.05; text-transform: uppercase; }
.step p { font-size: 15px; line-height: 1.6; color: var(--site-soft); }

.teaser-wrap { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(72px, 9vw, 120px); }
.teaser {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: calc(var(--site-radius) + 6px);
  background:
    radial-gradient(ellipse 60% 90% at 85% 50%, rgba(229, 64, 42, 0.26), transparent 70%),
    linear-gradient(180deg, rgba(243, 241, 236, 0.05), rgba(243, 241, 236, 0.01));
  border: 1px solid rgba(229, 64, 42, 0.35);
  box-shadow: 0 40px 120px -50px rgba(229, 64, 42, 0.55);
}
.teaser-copy { display: flex; flex-direction: column; gap: 16px; font-size: 17px; color: var(--site-soft); }
.teaser-copy .display { color: var(--cos-canvas); }
.teaser-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; }
.teaser-plan { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.teaser-plan + .teaser-plan { padding-left: 28px; border-left: 1px solid var(--site-glass-line); }
.teaser-plan-name { font-family: var(--cos-font-display); font-size: 15px; font-weight: 700; letter-spacing: 0.26em; text-transform: uppercase; color: var(--site-red-on-ink); }
.teaser-plan .price-big { font-size: clamp(64px, 8vw, 120px); }
.teaser-plan .teaser-amount { flex-direction: column; align-items: flex-start; gap: 6px; }
.teaser-plan .price-per { font-size: 22px; }
.teaser-rate { font-size: 15px; color: var(--site-soft); }
.teaser-note { grid-column: 1 / -1; }
.teaser-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.price-big {
  font-family: var(--cos-font-display);
  font-size: clamp(96px, 13vw, 180px);
  font-weight: 700; line-height: 0.9; letter-spacing: -0.02em;
  color: var(--cos-canvas);
  text-shadow: 0 0 60px rgba(229, 64, 42, 0.35);
}
.price-per { font-family: var(--cos-font-display); font-size: 28px; font-weight: 700; text-transform: uppercase; color: var(--site-soft); }
.price-note {
  font-family: var(--cos-font-display); font-size: 14px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--site-red-on-ink);
}

.closing-stage {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 40% 70% at 22% 0%, rgba(255, 226, 206, 0.09), transparent 70%),
    radial-gradient(ellipse 60% 60% at 50% 120%, rgba(229, 64, 42, 0.22), transparent 70%),
    var(--site-ground);
  border-top: 1px solid rgba(243, 241, 236, 0.06);
}
.closing { display: flex; flex-direction: column; align-items: flex-start; gap: 30px; }
.closing .lede { max-width: 36rem; }

/* ----------------------------------------------------------------- footer */

.site-footer { background: var(--site-ground); color: var(--site-soft); border-top: 1px solid rgba(243, 241, 236, 0.08); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 44px; padding-bottom: 44px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-head {
  margin-bottom: 8px;
  font-family: var(--cos-font-display); font-size: 14px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--cos-canvas);
}
.site-footer a:not(.logo) { color: var(--site-soft); text-decoration: none; }
.site-footer a:not(.logo):hover { color: var(--cos-canvas); text-decoration: underline; }

/* ---------------------------------------------------------------- pricing */

.page-stage {
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 34% 80% at 70% 0%, rgba(255, 226, 206, 0.1), transparent 70%),
    radial-gradient(ellipse 50% 60% at 70% 100%, rgba(229, 64, 42, 0.16), transparent 70%),
    var(--site-ground);
}
.page-hero { display: flex; flex-direction: column; gap: 24px; padding-top: clamp(40px, 6vw, 90px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero .lede { max-width: 40rem; }

.plans {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding-top: 24px; padding-bottom: 40px;
}
@media (min-width: 860px) {
  .plans--two { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .plans--two .plan-terms-row, .plans--two .plan-multi { grid-column: 1 / -1; }
}

/* One plan: glass, with the featured one lit from its corner. */
.plan-card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  min-width: 0;
  padding: clamp(26px, 4vw, 44px);
  border-radius: calc(var(--site-radius) + 6px);
  background: linear-gradient(180deg, rgba(243, 241, 236, 0.05), rgba(243, 241, 236, 0.015));
  border: 1px solid var(--site-glass-line);
}
.plan-card--featured {
  background:
    radial-gradient(ellipse 90% 60% at 15% 0%, rgba(229, 64, 42, 0.24), transparent 70%),
    linear-gradient(180deg, rgba(243, 241, 236, 0.05), rgba(243, 241, 236, 0.015));
  border-color: rgba(229, 64, 42, 0.45);
  box-shadow: 0 0 0 1px rgba(229, 64, 42, 0.12), 0 40px 120px -50px rgba(229, 64, 42, 0.6);
}
.plan-card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; width: 100%; min-height: 30px; }
.plan-name {
  font-family: var(--cos-font-display); font-size: 16px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--site-red-on-ink);
}
.plan-flag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(229, 64, 42, 0.16); border: 1px solid rgba(229, 64, 42, 0.5);
  font-family: var(--cos-font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cos-canvas);
}
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.plan-price .price-big { font-size: clamp(84px, 8vw, 128px); }
.plan-per { font-family: var(--cos-font-display); font-size: 28px; font-weight: 700; text-transform: uppercase; color: var(--site-soft); }
.plan-pitch { font-size: 17px; color: var(--cos-canvas); }
.plan-rates { display: flex; flex-direction: column; gap: 0; width: 100%; margin: 4px 0 0; }
.plan-rates div {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 16px;
  padding: 12px 0;
  border-top: 1px solid var(--site-glass-line);
}
.plan-rates div:last-child { border-bottom: 1px solid var(--site-glass-line); }
.plan-rates dt { font-size: 15px; color: var(--site-soft); }
.plan-rates dd { margin: 0 0 0 auto; text-align: right; font-family: var(--cos-font-display); font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--cos-canvas); }
.plan-cap { display: block; font-family: var(--cos-font-body); font-size: 13px; font-weight: 400; color: var(--site-soft); }
.plan-all { font-size: 15px; color: var(--site-soft); }
.plan-all::before { content: ''; display: inline-block; width: 6px; height: 11px; margin: 0 10px 2px 3px; border: solid var(--cos-red); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.plan-cta { margin-top: auto; }

.plan-terms-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 4px 2px; }
.plan-terms { display: flex; flex-wrap: wrap; gap: 8px; }
.plan-terms li {
  padding: 6px 12px;
  border: 1px solid var(--site-glass-line); border-radius: 999px;
  font-family: var(--cos-font-display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--cos-canvas);
}
.plan-currency { font-size: 15px; color: var(--site-soft); }

.included-wrap { padding-bottom: 18px; }
.included { display: flex; flex-direction: column; gap: 22px; padding: clamp(26px, 4vw, 44px); }
.plan-included {
  font-family: var(--cos-font-display); font-size: 15px; font-weight: 700;
  letter-spacing: 0.26em; text-transform: uppercase; color: var(--cos-canvas);
}
.plan-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px 20px; font-size: 16px; color: var(--site-soft); }
.plan-features li { position: relative; padding-left: 26px; }
/* A small check, drawn with borders. */
.plan-features li::before {
  content: '';
  position: absolute; left: 3px; top: 6px;
  width: 6px; height: 11px;
  border: solid var(--cos-red); border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.plan-multi { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: clamp(26px, 4vw, 40px); }
@media (min-width: 860px) { .plan-multi { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; } }
.plan-multi-copy { display: flex; flex-direction: column; gap: 10px; max-width: 44rem; }
.plan-multi-copy .kicker { margin-bottom: 0; }
.plan-multi-title { font-family: var(--cos-font-display); font-size: clamp(32px, 2.8vw, 40px); font-weight: 700; line-height: 0.95; text-transform: uppercase; }
.plan-multi p:not(.kicker) { font-size: 16px; color: var(--site-soft); }
.plan-multi .pill { flex: none; }

.fee-wrap { padding-top: 18px; padding-bottom: 80px; }
.fee {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 20px 48px;
  align-items: center;
  padding: clamp(26px, 4vw, 52px);
}
.fee-copy { display: flex; flex-direction: column; gap: 14px; }
.fee-text { font-size: 17px; line-height: 1.65; color: var(--site-soft); }

.faq { display: flex; flex-direction: column; gap: 12px; padding-bottom: 120px; }
.faq h2 { margin-bottom: 16px; }
.faq details {
  padding: 22px 24px;
  border-radius: var(--site-radius);
  background: var(--site-glass);
  border: 1px solid var(--site-glass-line);
}
.faq details[open] { border-color: rgba(229, 64, 42, 0.4); }
.faq summary { cursor: pointer; font-family: var(--cos-font-display); font-size: 22px; font-weight: 700; line-height: 1.25; }
.faq summary::marker { color: var(--cos-red); }
.faq details p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--site-soft); }

/* ------------------------------------------------------------------ start */

.start-stage {
  display: block;
  overflow-x: clip;
  background:
    radial-gradient(ellipse 40% 50% at 18% 0%, rgba(255, 226, 206, 0.08), transparent 70%),
    radial-gradient(ellipse 50% 50% at 80% 90%, rgba(229, 64, 42, 0.14), transparent 70%),
    var(--site-ground);
}
.start {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
  padding-top: clamp(36px, 5vw, 72px);
  padding-bottom: 100px;
}
.start-intro { display: flex; flex-direction: column; gap: 26px; }
.start-intro .lede { max-width: 30rem; }
.round-list { display: flex; flex-direction: column; gap: 10px; }
.round-item {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: var(--site-radius);
  background: var(--site-glass); border: 1px solid var(--site-glass-line);
}
.round-item--current { border-color: rgba(229, 64, 42, 0.55); box-shadow: 0 0 50px -24px rgba(229, 64, 42, 0.8); background: rgba(229, 64, 42, 0.08); }
.round-item-num {
  min-width: 72px;
  font-family: var(--cos-font-display); font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--site-quiet);
}
.round-item--current .round-item-num { color: var(--site-red-on-ink); }
.round-item-name { display: block; font-family: var(--cos-font-display); font-size: 22px; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.round-item-note { display: block; font-size: 14px; color: var(--site-soft); }

/* The form stays a light card: fields read as they do everywhere else. */
.start-form {
  display: flex; flex-direction: column; gap: 20px;
  min-width: 0;
  padding: clamp(20px, 3.5vw, 40px);
  border-radius: var(--site-radius);
  background: var(--cos-canvas);
  color: var(--cos-ink);
  box-shadow: 0 0 0 1px rgba(229, 64, 42, 0.4), 0 40px 120px -40px rgba(229, 64, 42, 0.55);
}
.start-form a, .signin-form a { color: var(--cos-red-text); }
.start-form a:hover, .signin-form a:hover { color: var(--cos-ink); }
.start-form .eyebrow { color: var(--cos-red-text); }
.form-round { font-size: 14px; }

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label { font-size: 14px; font-weight: 600; }
.field .cos-input { width: 100%; background: var(--cos-white); }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px 14px; }
.field-row + .field-hint { margin-top: -12px; }
.field-hint { font-size: 14px; color: var(--cos-text-soft); overflow-wrap: anywhere; }
.field-hint strong { color: var(--cos-ink); }
.field-error { font-size: 14px; font-weight: 600; color: var(--cos-red-text); }
.cos-input[aria-invalid="true"] { border-color: var(--cos-red-text); box-shadow: inset 4px 0 0 var(--cos-red-text); }

.input-suffix { display: flex; align-items: stretch; min-width: 0; }
.input-suffix .cos-input { flex: 1 1 0; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.suffix {
  display: flex; align-items: center;
  flex: none;
  max-width: 60%;
  padding: 0 12px;
  border: 2px solid var(--cos-ink); border-left: 0;
  border-radius: 0 var(--cos-radius) var(--cos-radius) 0;
  background: var(--cos-ink); color: var(--cos-canvas);
  font-size: 15px; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Basic or Pro: real radios inside cards (keyboard and screen readers get a
   plain radio group); the chosen card takes the ink edge and the red post. */
.plan-picker legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.plan-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.plan-option {
  display: flex; align-items: flex-start; gap: 12px;
  min-width: 0;
  padding: 14px 16px;
  border: 2px solid var(--cos-line); border-radius: var(--cos-radius-card);
  background: var(--cos-white);
  cursor: pointer;
}
.plan-option:hover { border-color: var(--cos-steel); }
.plan-option:has(.plan-radio:checked) { border-color: var(--cos-ink); box-shadow: inset 5px 0 0 var(--cos-red); }
.plan-option:has(.plan-radio:focus-visible) { outline: 3px solid var(--cos-red); outline-offset: 3px; }
.plan-radio { flex: none; width: 20px; height: 20px; margin: 4px 0 0; accent-color: var(--cos-ink); }
.plan-radio:focus-visible { outline: none; }
.plan-option-card { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.plan-option-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; }
.plan-option-name { font-family: var(--cos-font-display); font-size: 22px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.plan-option-price { font-size: 14px; color: var(--cos-text-soft); white-space: nowrap; }
.plan-option-price strong { font-family: var(--cos-font-display); font-size: 22px; color: var(--cos-ink); }
.plan-option-rates { font-size: 13px; line-height: 1.45; color: var(--cos-text-soft); }
.plan-option-pitch { font-size: 13px; font-weight: 600; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit {
  min-height: 58px; width: 100%; border: 0; border-radius: 999px; font-size: 20px; letter-spacing: 0.14em;
  box-shadow: 0 12px 36px -10px rgba(229, 64, 42, 0.8);
}
.form-note { font-size: 13px; line-height: 1.6; color: var(--cos-text-soft); }

.form-alert {
  padding: 16px 18px;
  border-radius: var(--cos-radius);
  border: 2px solid var(--cos-red-text);
  border-left-width: 8px;
  background: #FDF1EE;
  color: var(--cos-ink);
  font-size: 15px;
}
.form-alert a { color: var(--cos-red-text); }
.form-alert p + p, .form-alert p + ul { margin-top: 8px; }
.form-alert ul { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; list-style: square; }
.form-alert:focus { outline: 3px solid var(--cos-red); outline-offset: 3px; }

/* --------------------------------------------------- sign in, error pages */

.narrow-page { display: flex; flex-direction: column; gap: 22px; max-width: 760px; padding-top: clamp(48px, 8vw, 100px); padding-bottom: 100px; }
.signin-form {
  display: flex; flex-direction: column; gap: 18px;
  padding: clamp(20px, 3.5vw, 32px);
  border-radius: var(--site-radius);
  background: var(--cos-canvas); color: var(--cos-ink);
  box-shadow: 0 0 0 1px rgba(229, 64, 42, 0.4), 0 30px 90px -40px rgba(229, 64, 42, 0.55);
}
.signin-form .cos-btn--primary { border-radius: 999px; }
.error-page .actions { margin-top: 8px; }
.nowrap { white-space: nowrap; }
