/* Ramp marketing site. Tokens come from tokens.css; nothing is redefined here.

   Character: warm paper, deep green ink, a vivid hi-vis accent, a display face with presence,
   and motion wherever the product is shown working.
   Not allowed: a coloured border on one edge of anything, thick coloured outlines as state,
   stripes, dashed tags. State is a fill, an indicator, motion or type. */

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { overflow-x: hidden; }
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: var(--s-8); }
.section--tight { padding-block: var(--s-7); }
.band { background: var(--paper-2); }
.on-ink { background: var(--ink); color: var(--paper); --muted: #c5d0c9; }
.on-ink :focus-visible { outline-color: var(--paper); }
.on-ink .btn { border-color: var(--paper); color: var(--paper); }
.on-ink .btn--primary { border-color: var(--hivis); color: var(--on-hivis); }

.skip { position: absolute; left: var(--s-4); top: -60px; z-index: 20; background: var(--ink); color: var(--paper); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); }
.skip:focus { top: var(--s-3); }

.kicker { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--text-sm); font-weight: 700; color: var(--hivis-ink); }
.kicker::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: var(--hivis); transform: rotate(12deg); }
.on-ink .kicker { color: #6fe0a8; }
.h2 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; max-width: 20ch; text-wrap: balance; }
.h3 { font-size: var(--text-xl); font-weight: 700; }
.lede { font-size: var(--text-lg); line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.on-ink .lede { color: var(--muted); }
.muted { color: var(--ink-2); }
.small { font-size: var(--text-sm); }
.link { color: var(--ink); font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--hivis); }
.link:hover { text-decoration-color: currentColor; }
.on-ink .link { color: var(--paper); }
.stack > * + * { margin-top: var(--s-4); }
.stack-lg > * + * { margin-top: var(--s-5); }
.tag { display: inline-block; font-size: var(--text-xs); font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill); background: var(--ink); color: var(--paper); }
.btn--lg { min-height: 54px; padding-inline: var(--s-6); font-size: var(--text-lg); }
.btn--block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: relative; z-index: 10; }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 68px; flex-wrap: wrap; }
.nav { display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap; padding-block: var(--s-2); }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-3); border-radius: var(--radius-pill); text-decoration: none; font-weight: 600; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav .btn { margin-left: var(--s-2); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: var(--s-4); }
  .js .nav[data-open] { display: flex; }
  .js .nav a:not(.btn) { padding-inline: var(--s-3); min-height: 44px; }
  .js .nav .btn { margin: var(--s-2) 0 0; }
}

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); margin-top: 0; }
.site-footer__in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s-6); padding-block: var(--s-7); }
.site-footer p, .site-footer li { color: #c5d0c9; font-size: var(--text-sm); }
.site-footer p { max-width: 44ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li a { display: inline-flex; min-height: 36px; align-items: center; text-decoration: none; }
.site-footer li a:hover { text-decoration: underline; color: var(--paper); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0; color: var(--paper); margin-bottom: var(--s-2); font-weight: 700; }
.site-footer__base { border-top: 1px solid rgba(246, 241, 231, 0.18); padding-block: var(--s-4); }
.site-footer__base p { max-width: none; font-size: var(--text-xs); }
@media (max-width: 760px) { .site-footer__in { grid-template-columns: 1fr 1fr; } .site-footer__in > :first-child { grid-column: 1 / -1; } }

/* ---------- hero ---------- */
.hero { padding-block: var(--s-7) var(--s-8); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s-7); align-items: center; }
.hero h1 { font-size: var(--text-hero); font-weight: 800; letter-spacing: -0.04em; line-height: 0.96; margin-top: var(--s-4); text-wrap: balance; }
.hero h1 em { font-style: normal; color: #0b8a55; }
.hero .lede { margin-top: var(--s-5); }
.hero .cta-row { margin-top: var(--s-6); }
.hero__note { margin-top: var(--s-4); font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 980px) { .hero__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }

/* ---------- control room miniature: the centrepiece. A dark console on the light page. ---------- */
.cr { margin: 0; position: relative; }
.cr__frame { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); box-shadow: var(--shadow-2), 0 40px 80px -30px rgba(16, 35, 28, 0.45); overflow: hidden; transform: rotate(0.6deg); }
.cr__bar { display: flex; align-items: center; gap: var(--s-3); padding: 14px 16px 2px; font-size: var(--text-sm); }
.cr__title { font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); }
.cr__biz { color: #a9b8b0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.cr__done { font-size: var(--text-xs); color: #c5d0c9; white-space: nowrap; }
.cr__done b { display: inline-block; font-family: var(--font-display); font-size: var(--text-md); font-weight: 800; color: var(--paper); font-variant-numeric: tabular-nums; margin-right: 2px; }
.cr__done b.is-bump { animation: cr-bump 0.5s var(--ease); }
.cr__live { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 700; color: var(--paper); background: rgba(246, 241, 231, 0.1); padding: 3px 10px; border-radius: var(--radius-pill); }
.cr__live i { width: 8px; height: 8px; border-radius: 50%; background: var(--hivis); }
.cr.is-playing .cr__live i { animation: cr-pulse 1.4s ease-in-out infinite; }
.cr__body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; padding: 12px 16px 16px; }
.cr__agents { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; align-content: start; }
.cr-agent { position: relative; height: 60px; padding: 0 10px; border-radius: 10px; background: rgba(246, 241, 231, 0.06); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; align-content: center; align-items: center; transition: background 0.35s var(--ease); }
.cr-agent svg { grid-row: 1 / span 2; width: 34px; height: 34px; padding: 7px; border-radius: 9px; background: rgba(246, 241, 231, 0.1); stroke: var(--paper); fill: none; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; transition: background 0.35s var(--ease), stroke 0.35s var(--ease); }
.cr-agent__name { grid-column: 2; grid-row: 1; font-weight: 700; font-size: var(--text-sm); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-agent__step { grid-column: 2; grid-row: 2; font-size: var(--text-xs); line-height: 1.4; color: #a9b8b0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-agent__pill { grid-column: 3; grid-row: 1 / span 2; width: 94px; text-align: center; font-size: 0.6875rem; font-weight: 700; line-height: 22px; border-radius: var(--radius-pill); background: rgba(246, 241, 231, 0.08); color: #c5d0c9; white-space: nowrap; }
/* working: the tile lights up, the step text is live, a runner travels along the bottom of the row */
.cr-agent[data-state="working"] { background: rgba(18, 183, 106, 0.16); }
.cr-agent[data-state="working"] svg { background: var(--hivis); stroke: var(--on-hivis); }
.cr-agent[data-state="working"] .cr-agent__step { color: var(--paper); }
.cr-agent[data-state="working"] .cr-agent__pill { background: var(--hivis); color: var(--on-hivis); animation: cr-pop 0.4s var(--ease); }
.cr-agent[data-state="working"]::after { content: ''; position: absolute; left: 54px; right: 114px; bottom: 6px; height: 2px; border-radius: 1px; background: rgba(246, 241, 231, 0.16) linear-gradient(var(--hivis), var(--hivis)) no-repeat 0 0 / 34% 100%; }
.cr.is-playing .cr-agent[data-state="working"]::after { animation: cr-run 1.1s ease-in-out infinite alternate; }
.cr.is-playing .cr-agent[data-state="working"] .cr-agent__step::after { content: ''; display: inline-block; width: 1em; text-align: left; animation: cr-dots 1.2s steps(4, end) infinite; }
/* waiting on the owner: an amber fill, no outline */
.cr-agent[data-state="waiting"] { background: rgba(246, 198, 79, 0.14); }
.cr-agent[data-state="waiting"] svg { background: #f6c64f; stroke: #2a1c00; }
.cr-agent[data-state="waiting"] .cr-agent__pill { background: #f6c64f; color: #2a1c00; animation: cr-pop 0.4s var(--ease); }
.cr-agent[data-state="waiting"] .cr-agent__step { color: #f3e3b5; }

.cr__side { display: grid; grid-template-rows: 196px 20px 126px; gap: 6px; min-width: 0; }
.cr-ok { background: var(--card); color: var(--ink); border-radius: 12px; padding: 12px; position: relative; overflow: hidden; display: flex; flex-direction: column; transition: background 0.3s var(--ease), color 0.3s var(--ease); }
.cr-ok > span { display: block; }
.cr-ok__label { font-size: var(--text-xs); font-weight: 700; color: var(--hivis-ink); }
.cr-ok__meta { font-size: var(--text-xs); font-weight: 700; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-ok > .cr-ok__text { font-size: var(--text-xs); color: var(--ink-2); margin-top: 4px; line-height: 1.5; flex: 1; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.cr-ok > .cr-ok__actions { display: flex; gap: 6px; margin-top: 8px; }
.cr-btn { font-size: var(--text-xs); font-weight: 700; line-height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--paper-2); color: var(--ink); }
.cr-btn--ok { background: var(--hivis); color: var(--on-hivis); }
.cr.is-playing .cr-ok[data-state="waiting"] { animation: cr-arrive 0.5s var(--ease); }
.cr.is-playing .cr-ok[data-state="press"] .cr-btn--ok { animation: cr-press 0.5s var(--ease) 0.45s both; }
.cr-ok[data-state="approved"] { background: var(--green-soft); }
.cr-ok[data-state="approved"] .cr-ok__label { color: var(--green); }
.cr-ok[data-state="approved"] .cr-ok__actions, .cr-ok[data-state="empty"] .cr-ok__actions { visibility: hidden; }
.cr-ok > .cr-ok__stamp { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: var(--text-md); line-height: 28px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--green); color: #fff; opacity: 0; transform: scale(0.6) rotate(-4deg); transform-origin: left center; transition: transform 0.3s var(--ease), opacity 0.2s var(--ease); }
.cr-ok__stamp::before { content: ''; width: 5px; height: 9px; margin-top: -3px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cr-ok[data-state="approved"] .cr-ok__stamp { opacity: 1; transform: scale(1) rotate(-4deg); }
.cr-ok[data-state="empty"] { background: rgba(246, 241, 231, 0.07); color: var(--paper); }
.cr-ok[data-state="empty"] .cr-ok__label { color: #c5d0c9; }
.cr-ok[data-state="empty"] .cr-ok__text { color: #a9b8b0; }
/* the owner's pointer: glides to Approve, then the button is pressed */
.cr-cursor { position: absolute; left: 44px; top: 162px; z-index: 2; fill: var(--ink); stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; opacity: 0; transform: translate(150px, -70px); transition: transform 0.45s var(--ease), opacity 0.2s var(--ease); pointer-events: none; }
.cr.is-playing .cr-ok[data-state="press"] .cr-cursor { opacity: 1; transform: none; }
.cr.is-playing .cr-ok[data-state="approved"] .cr-cursor { opacity: 0; transform: none; transition-delay: 0.3s; }

.cr-feed__label { font-size: var(--text-xs); font-weight: 700; color: #c5d0c9; align-self: end; }
.cr-feed { list-style: none; margin: 0; padding: 0; height: 126px; overflow: hidden; }
.cr-feed li { height: 25px; line-height: 25px; font-size: var(--text-xs); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e4e9e4; border-top: 1px solid rgba(246, 241, 231, 0.09); }
.cr-feed time { display: inline-block; width: 5.2em; font-family: var(--font-mono); font-size: 0.6875rem; color: #a9b8b0; }
.cr-feed li.is-new { animation: cr-in 0.6s var(--ease); }
.cr figcaption { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-top: var(--s-3); font-size: var(--text-sm); color: var(--ink-2); min-height: 44px; }
.cr__toggle { min-height: 36px; padding: 0 var(--s-4); border-radius: var(--radius-pill); border: 1.5px solid var(--line-strong); background: transparent; font-size: var(--text-sm); font-weight: 600; cursor: pointer; }
.cr__toggle:hover { background: var(--paper-2); }
.cr__toggle[hidden] { display: none; }
@media (pointer: coarse) { .cr__toggle { min-height: 44px; } }
@keyframes cr-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.6); } 60% { box-shadow: 0 0 0 7px rgba(18, 183, 106, 0); } }
@keyframes cr-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }
@keyframes cr-in { 0% { opacity: 0; transform: translateY(-14px); color: #6fe0a8; } 40% { opacity: 1; transform: none; color: #6fe0a8; } 100% { color: #e4e9e4; } }
@keyframes cr-run { from { background-position: 0 0; } to { background-position: 100% 0; } }
@keyframes cr-pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.08); } 100% { transform: scale(1); } }
@keyframes cr-arrive { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
@keyframes cr-press { 0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.5); } 40% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(18, 183, 106, 0.5); } 70% { transform: scale(1.04); box-shadow: 0 0 0 10px rgba(18, 183, 106, 0); } }
@keyframes cr-bump { 0% { transform: translateY(6px); opacity: 0.2; color: #6fe0a8; } 60% { transform: translateY(-2px); opacity: 1; color: #6fe0a8; } 100% { transform: none; } }
@media (max-width: 620px) {
  .cr__frame { transform: none; }
  .cr__body { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .cr-agent { height: 56px; }
  .cr__side { grid-template-rows: 196px 20px 101px; }
  .cr-feed { height: 101px; }
  .cr__bar { padding: 12px 12px 0; }
  .cr__biz { display: none; }
  .cr__title { flex: 1; }
}
@media (max-width: 400px) { .cr-agent__pill { width: 92px; } .cr__done { display: none; } }

/* ---------- promises ---------- */
.promises { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-7); align-items: start; }
.promises__head { position: sticky; top: var(--s-6); }
.promise { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(0, 240px); gap: var(--s-5); padding-block: var(--s-6); border-top: 1px solid var(--line-strong); align-items: start; }
.promise:last-child { border-bottom: 1px solid var(--line-strong); }
.promise__n { font-family: var(--font-display); font-weight: 800; font-size: 3.25rem; line-height: 0.9; color: #0b8a55; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.promise h3 { font-size: var(--text-2xl); font-weight: 800; }
.promise p { margin-top: var(--s-2); color: var(--ink-2); }
.specimen { background: var(--card); border-radius: var(--radius); padding: var(--s-3) var(--s-4); box-shadow: var(--shadow-1); font-size: var(--text-sm); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.specimen__cap { width: 100%; font-size: var(--text-xs); font-weight: 700; color: var(--ink-3); }
/* state chips: a fill says the state */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: var(--text-xs); font-weight: 700; line-height: 1.2; padding: 5px 11px; border-radius: var(--radius-pill); background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.pill--work { background: var(--hivis); color: var(--on-hivis); }
.pill--work::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--on-hivis); animation: blink 1.2s ease-in-out infinite; }
.pill--wait { background: var(--amber-soft); color: #6e4700; }
.pill--ok { background: var(--hivis); color: var(--on-hivis); }
.pill--line { background: var(--paper-2); color: var(--ink); }
@keyframes blink { 50% { opacity: 0.25; } }
@media (max-width: 980px) { .promises { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } .promises__head { position: static; } }
@media (max-width: 680px) { .promise { grid-template-columns: 52px minmax(0, 1fr); gap: var(--s-4); } .promise .specimen { grid-column: 2; } .promise__n { font-size: 2.5rem; } }

/* ---------- steps (dark band) ---------- */
.steps-head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-5); flex-wrap: wrap; }
.steps { list-style: none; margin: var(--s-7) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before { content: '0' counter(step); display: block; font-family: var(--font-display); font-weight: 800; font-size: 3.25rem; line-height: 1; letter-spacing: -0.04em; color: var(--hivis); }
.steps h3 { font-size: var(--text-2xl); font-weight: 800; margin-top: var(--s-3); }
.steps p { color: var(--muted); margin-top: var(--s-2); }
.steps li:nth-child(2) { margin-top: var(--s-6); }
.steps li:nth-child(3) { margin-top: var(--s-8); }
@media (max-width: 820px) { .steps { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); margin-top: var(--s-6); } .steps li:nth-child(n) { margin-top: 0; } }

/* ---------- roles gallery ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.tabs[hidden] { display: none; }
.tab { min-height: 44px; padding: 0 var(--s-4); border-radius: var(--radius-pill); border: 0; background: var(--paper-2); font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease); }
.tab:hover { color: var(--ink); transform: translateY(-1px); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); }
.trade { margin-top: var(--s-6); }
.trade[hidden] { display: none; }
.trade__title { font-size: var(--text-xl); font-weight: 700; }
.trade__title span { color: var(--ink-2); font-family: var(--font-body); font-weight: 500; font-size: var(--text-md); letter-spacing: 0; margin-left: var(--s-2); }
.roles { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.role { background: var(--card); border-radius: var(--radius); padding: var(--s-5) var(--s-4) var(--s-4); box-shadow: var(--shadow-1); display: flex; flex-direction: column; transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.role:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.role h4 { font-size: var(--text-lg); font-weight: 700; }
.role p { color: var(--ink-2); font-size: var(--text-sm); margin-top: var(--s-2); margin-bottom: var(--s-4); }
.role .pill { margin-top: auto; align-self: flex-start; }
/* a new crew is dealt in each time a trade is picked */
.js .trade:not([hidden]) .role { animation: deal 0.45s var(--ease) backwards; }
.js .trade:not([hidden]) .role:nth-child(2) { animation-delay: 0.07s; }
.js .trade:not([hidden]) .role:nth-child(3) { animation-delay: 0.14s; }
.js .trade:not([hidden]) .role:nth-child(4) { animation-delay: 0.21s; }
@keyframes deal { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.roles-note { margin-top: var(--s-5); max-width: 70ch; color: var(--ink-2); }
@media (max-width: 980px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .roles { grid-template-columns: minmax(0, 1fr); } }

/* ---------- email mock: arrives, then fills in line by line ---------- */
.split { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-7); align-items: center; }
.split--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
@media (max-width: 900px) { .split, .split--flip { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
.email { background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); transform: rotate(-0.8deg); position: relative; max-width: 560px; }
.email__tag { position: absolute; top: -12px; right: 16px; background: var(--hivis); color: var(--on-hivis); }
.email__head { padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); font-size: var(--text-sm); color: var(--ink-2); }
.email__head dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px var(--s-3); }
.email__head dt { color: var(--ink-3); }
.email__head dd { margin: 0; color: var(--ink); }
.email__subject { font-weight: 700; }
.email__body { padding: var(--s-5); }
.email__body > * + * { margin-top: var(--s-4); }
.email__stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-2); margin: 0; }
.email__body > .email__stats { margin-top: var(--s-4); }
.email__stats div { background: var(--paper); border-radius: var(--radius-sm); padding: var(--s-2) var(--s-3); display: flex; flex-direction: column; }
.email__stats dt { font-size: var(--text-xs); color: var(--ink-2); order: 2; }
.email__stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: var(--text-2xl); line-height: 1.1; font-variant-numeric: tabular-nums; }
.email h4 { font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0; color: var(--ink); font-weight: 700; }
.email ul { list-style: none; margin: var(--s-1) 0 0; padding: 0; font-size: var(--text-sm); }
.email li { padding: 6px 0; border-top: 1px solid var(--line); display: flex; gap: var(--s-2); justify-content: space-between; align-items: baseline; }
.email li b { font-weight: 500; }
.email li span { color: var(--ink-3); white-space: nowrap; font-size: var(--text-xs); }
.email__foot { font-size: var(--text-xs); color: var(--ink-3); }
.email.will-reveal { opacity: 0; transform: translateY(28px) rotate(-3deg); }
.email.will-reveal.is-in { opacity: 1; transform: rotate(-0.8deg); transition: opacity 0.5s var(--ease), transform 0.7s var(--ease); }
.email.will-reveal .email__stats div, .email.will-reveal li, .email.will-reveal h4 { opacity: 0; transform: translateY(8px); }
.email.will-reveal.is-in .email__stats div, .email.will-reveal.is-in li, .email.will-reveal.is-in h4 { opacity: 1; transform: none; transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.email.is-in .email__stats div:nth-child(1) { transition-delay: 0.35s; }
.email.is-in .email__stats div:nth-child(2) { transition-delay: 0.45s; }
.email.is-in .email__stats div:nth-child(3) { transition-delay: 0.55s; }
.email.is-in .email__stats div:nth-child(4) { transition-delay: 0.65s; }
.email.is-in .email__body > div:nth-of-type(1) :is(h4, li) { transition-delay: 0.85s; }
.email.is-in .email__body > div:nth-of-type(1) li:nth-child(2) { transition-delay: 0.95s; }
.email.is-in .email__body > div:nth-of-type(2) :is(h4, li) { transition-delay: 1.1s; }
.email.is-in .email__body > div:nth-of-type(2) li:nth-child(2) { transition-delay: 1.2s; }
.email.is-in .email__body > div:nth-of-type(2) li:nth-child(3) { transition-delay: 1.3s; }
.email.is-in .email__body > div:nth-of-type(3) :is(h4, li) { transition-delay: 1.45s; }
@media (max-width: 520px) { .email, .email.will-reveal.is-in { transform: none; } .email__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .email__body, .email__head { padding-inline: var(--s-4); } .email li { flex-direction: column; gap: 0; } }

/* ---------- won't do ---------- */
.wont { list-style: none; margin: 0; padding: 0; }
.wont li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-4); padding-block: var(--s-5); border-top: 1px solid var(--line-strong); }
.wont li:last-child { border-bottom: 1px solid var(--line-strong); }
.wont li::before { content: '\00d7'; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 2px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 700; font-size: var(--text-lg); line-height: 1; }
.wont h3 { font-size: var(--text-xl); font-weight: 700; }
.wont p { margin-top: var(--s-1); color: var(--ink-2); }
.split--top { align-items: start; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin-left: auto; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-4) 0; min-height: 56px; font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--card); font-family: var(--font-body); font-size: var(--text-lg); font-weight: 600; color: var(--ink); transition: transform 0.2s var(--ease), background 0.2s var(--ease); }
.faq details[open] summary::after { content: '\2212'; background: var(--hivis); color: var(--on-hivis); transform: rotate(180deg); }
.faq details p { padding: 0 var(--s-7) var(--s-5) 0; color: var(--ink-2); max-width: 64ch; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-6); align-items: start; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); } .faq details p { padding-right: 0; } }

/* ---------- forms ---------- */
.field { display: grid; gap: 6px; }
.field + .field, .field-row + .field, .field + .field-row { margin-top: var(--s-4); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.field-row .field + .field { margin-top: 0; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.field label { font-weight: 600; font-size: var(--text-sm); }
.field .hint { font-size: var(--text-sm); color: var(--ink-2); font-weight: 400; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line-strong); background: #fff; color: var(--ink); font-size: 1rem; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--ink-3); }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--ink); outline: 3px solid var(--ink); outline-offset: 0; border-radius: var(--radius-sm); }
.form-actions { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.form-status { margin-top: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--radius-sm); font-weight: 600; font-size: var(--text-sm); background: var(--paper-2); color: var(--ink); }
.form-status:empty { display: none; }
.form-status[data-kind="error"] { background: var(--red-soft); color: #7d1a14; }
.form-status[data-kind="ok"] { background: var(--green-soft); color: #14553a; }
.form-done { background: var(--green-soft); color: #103f2b; border-radius: var(--radius); padding: var(--s-5); }
.form-done h3 { font-size: var(--text-xl); font-weight: 700; }
.form-done p { margin-top: var(--s-2); }

.callbox { border-radius: var(--radius-lg); overflow: hidden; }
.callbox__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-7); padding: var(--s-7); }
.callbox .h2 { margin-top: var(--s-3); }
.callbox .lede { margin-top: var(--s-4); }
.callbox__form { background: var(--card); color: var(--ink); border-radius: var(--radius); padding: var(--s-5); }
.callbox ul { margin: var(--s-5) 0 0; padding: 0; list-style: none; }
.callbox li { padding: var(--s-2) 0 var(--s-2) 28px; position: relative; color: var(--muted); }
.callbox li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 6px; height: 11px; border: solid var(--hivis); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@media (max-width: 900px) { .callbox__in { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); padding: var(--s-5); } }
@media (max-width: 480px) { .callbox { margin-inline: calc(var(--s-4) * -1); border-radius: 0; } .callbox__in { padding: var(--s-6) var(--s-4); } .callbox__form { padding: var(--s-4); } }

/* ---------- inner page heads ---------- */
.page-head { padding-block: var(--s-7) var(--s-6); }
.page-head h1 { font-size: clamp(2.5rem, 5.6vw, 4.25rem); font-weight: 800; letter-spacing: -0.035em; line-height: 0.98; max-width: 16ch; margin-top: var(--s-4); text-wrap: balance; }
.page-head .lede { margin-top: var(--s-4); }

/* ---------- how it works page ---------- */
.flow-step { display: grid; grid-template-columns: 110px minmax(0, 6fr) minmax(0, 5fr); gap: var(--s-6); padding-block: var(--s-7); border-top: 1px solid var(--line-strong); align-items: start; }
.flow-step__n { font-family: var(--font-display); font-weight: 800; font-size: 5rem; line-height: 0.8; letter-spacing: -0.05em; color: #0b8a55; }
.flow-step h2 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; }
.flow-step p { color: var(--ink-2); max-width: 58ch; }
.panel { background: var(--card); border-radius: var(--radius); padding: var(--s-4) var(--s-5); box-shadow: var(--shadow-1); font-size: var(--text-sm); }
.panel__cap { font-size: var(--text-xs); font-weight: 700; color: var(--ink-3); margin-bottom: var(--s-3); display: flex; justify-content: space-between; gap: var(--s-2); }
.panel__cap span:first-child { color: var(--ink); }
.panel blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); line-height: 1.45; color: var(--ink); }
.panel ul { list-style: none; margin: 0; padding: 0; }
.panel li { display: flex; justify-content: space-between; gap: var(--s-3); align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.panel li b { font-weight: 600; }
@media (max-width: 980px) { .flow-step { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s-4) var(--s-5); padding-block: var(--s-6); } .flow-step__n { font-size: 3rem; } .flow-step .panel { grid-column: 2; } }
@media (max-width: 480px) { .flow-step { grid-template-columns: minmax(0, 1fr); } .flow-step .panel { grid-column: 1; } }

.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-6); }
.track { border-radius: var(--radius-lg); padding: var(--s-5); background: rgba(246, 241, 231, 0.07); }
.track h3 { font-size: var(--text-xl); font-weight: 700; }
.track > p { color: var(--muted); margin-top: var(--s-2); font-size: var(--text-sm); }
.track ol { list-style: none; margin: var(--s-4) 0 0; padding: 0; }
.track li { background: var(--card); color: var(--ink); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 600; font-size: var(--text-sm); position: relative; }
.track li + li { margin-top: 18px; }
.track li + li::before { content: ''; position: absolute; left: 24px; top: -18px; height: 18px; width: 2px; background: rgba(246, 241, 231, 0.35); }
/* the step that waits on the owner is the one filled with the accent */
.track li.is-you { background: var(--hivis); color: var(--on-hivis); }
.track li small { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--text-xs); }
.track li.is-you small { color: #04261a; }
@media (max-width: 760px) { .tracks { grid-template-columns: minmax(0, 1fr); } }

.day { list-style: none; margin: var(--s-6) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.day li { background: var(--card); border-radius: var(--radius); padding: var(--s-5); box-shadow: var(--shadow-1); }
.day li:nth-child(2) { transform: translateY(var(--s-5)); }
.day h3 { font-size: var(--text-xl); font-weight: 700; margin-top: var(--s-3); }
.day p { color: var(--ink-2); margin-top: var(--s-2); font-size: var(--text-sm); }
@media (max-width: 820px) { .day { grid-template-columns: minmax(0, 1fr); } .day li:nth-child(2) { transform: none; } }

.closer { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap; }
.closer h2 { max-width: 18ch; }

/* ---------- pricing ---------- */
.pilot { background: var(--hivis-soft); border-radius: var(--radius); }
.pilot p { padding: var(--s-4) var(--s-5); font-size: var(--text-lg); font-weight: 700; color: var(--ink); }
.pilot p span { font-weight: 400; color: var(--ink-2); }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); margin-top: var(--s-7); align-items: start; }
.tier { background: var(--card); border-radius: var(--radius-lg); padding: var(--s-5); box-shadow: var(--shadow-1); display: flex; flex-direction: column; }
.tier:nth-child(2) { margin-top: calc(var(--s-5) * -1); padding-block: var(--s-6); background: var(--ink); color: var(--paper); box-shadow: var(--shadow-2); --muted: #c5d0c9; }
.tier h2 { font-size: var(--text-2xl); font-weight: 800; }
.tier__for { color: var(--ink-2); margin-top: var(--s-1); font-size: var(--text-sm); min-height: 3em; }
.tier:nth-child(2) .tier__for, .tier:nth-child(2) .tier__price small, .tier:nth-child(2) li, .tier:nth-child(2) .tier__free { color: var(--muted); }
.tier__price { font-family: var(--font-display); font-weight: 800; font-size: 3.25rem; letter-spacing: -0.04em; line-height: 1; margin-top: var(--s-4); font-variant-numeric: tabular-nums; }
.tier__price small { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 500; letter-spacing: 0; color: var(--ink-2); display: block; margin-top: 8px; line-height: 1.4; }
.tier ul { list-style: none; margin: var(--s-5) 0; padding: var(--s-3) 0 0; border-top: 1px solid var(--line); flex: 1; }
.tier:nth-child(2) ul { border-top-color: rgba(246, 241, 231, 0.2); }
.tier li { padding: 6px 0 6px 26px; position: relative; color: var(--ink-2); }
.tier li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 6px; height: 11px; border: solid var(--hivis); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.tier .btn { width: 100%; }
.tier:nth-child(2) .btn { border-color: var(--hivis); }
.tier__free { font-size: var(--text-sm); text-align: center; margin-top: var(--s-2); color: var(--ink-2); }
@media (max-width: 900px) { .tiers { grid-template-columns: minmax(0, 1fr); max-width: 520px; } .tier:nth-child(2) { margin-top: 0; } .tier__for { min-height: 0; } }
.setup-fee { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-7); align-items: center; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); padding-block: var(--s-5); margin-top: var(--s-7); }
.setup-fee__price { font-family: var(--font-display); font-weight: 800; font-size: 2.75rem; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.setup-fee__price small { display: block; font-family: var(--font-body); font-size: var(--text-sm); letter-spacing: 0; color: var(--hivis-ink); font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.setup-fee .stack p { max-width: 62ch; }
@media (max-width: 620px) { .setup-fee { grid-template-columns: minmax(0, 1fr); gap: var(--s-3); } }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); margin-top: var(--s-6); }
.facts h3 { font-size: var(--text-lg); font-weight: 700; }
.facts p { color: var(--ink-2); margin-top: var(--s-2); }
@media (max-width: 820px) { .facts { grid-template-columns: minmax(0, 1fr); gap: var(--s-5); } }

/* ---------- auth pages ---------- */
.auth { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); min-height: calc(100vh - 69px); }
.auth__side { padding: var(--s-8) var(--s-7); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.auth__side h2 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; margin-top: var(--s-3); }
.auth__side ol { margin: var(--s-6) 0 0; padding: 0; list-style: none; counter-reset: a; max-width: 46ch; align-self: stretch; }
.auth__side li { counter-increment: a; padding: var(--s-3) 0 var(--s-3) 48px; position: relative; color: #dfe6e2; border-top: 1px solid rgba(246, 241, 231, 0.18); }
.auth__side li::before { content: '0' counter(a); position: absolute; left: 0; top: 10px; font-family: var(--font-display); color: var(--hivis); font-weight: 800; font-size: var(--text-xl); line-height: 1.3; }
.auth__side .small { color: var(--muted); margin-top: var(--s-5); max-width: 46ch; }
.auth__main { padding: var(--s-7) var(--s-5); display: flex; align-items: center; justify-content: center; }
.auth__card { width: 100%; max-width: 440px; }
.auth__card h1 { font-size: var(--text-3xl); font-weight: 800; letter-spacing: -0.03em; }
.auth__card > p { margin-top: var(--s-2); color: var(--ink-2); }
.auth__card form { margin-top: var(--s-5); }
.auth__alt { margin-top: var(--s-5); font-size: var(--text-sm); color: var(--ink-2); }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; } .auth__side { order: 2; padding: var(--s-6) var(--s-5); } .auth__main { padding-block: var(--s-6); } }

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  .wrap { padding-inline: var(--s-4); }
  .section { padding-block: var(--s-7); }
  .hero { padding-block: var(--s-6) var(--s-7); }
  .hero .btn--lg { width: 100%; }
  .auth__side, .auth__main { padding-inline: var(--s-4); }
}

/* Reduced motion: everything settles. The illustration does not autoplay (site.js), and nothing loops. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cr-feed li.is-new, .cr__live i, .cr-agent::after, .cr-agent__pill, .cr-agent__step::after, .cr-ok, .cr-btn--ok, .cr__done b, .pill--work::before, .js .trade .role { animation: none !important; }
  .cr-cursor { display: none; }
  .role:hover, .tab:hover { transform: none; }
}
