/*
 * The public site: the page frame, the chrome, and one block per section shape.
 *
 * Structure follows the comp, and it is inside-out from how the app is built. ONE 1240px
 * container wraps the header and every section, and each SECTION carries its own bottom rule --
 * rather than full-bleed sections each with a container inside. Only the marquee/final-CTA block
 * and the footer break out to full width.
 *
 * Breakpoints are 1120px and 900px, which are the comp's own `mid` and `narrow`. The comp
 * computes them in JS off window.innerWidth; they are media queries here, because nothing about
 * them needs to be dynamic.
 */

/* ------------------------------------------------------------ Page frame --- */
.page { position: relative; overflow-x: hidden; }

/* The fixed 10-column hairline grid. FIXED, not absolute: the lines stay put while the page
   scrolls past them, which is the whole effect. It is a 1240px band centred in the viewport, so
   the lines land on the same columns the content is laid out on. */
.page-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
.page-grid::before {
  content: "";
  width: 100%;
  max-width: var(--container);
  height: 100%;
  background-image: repeating-linear-gradient(to right, var(--grid-line) 0 1px, transparent 1px 10%);
}

/* Everything the reader sees sits above the grid. */
.page > *:not(.page-grid) { position: relative; z-index: 1; }

/* The one container. Sections live INSIDE it and rule themselves off from each other. */
.page-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.band { border-bottom: 1px solid var(--rule); padding: var(--section-y) 0; }
.band--tight { padding: clamp(40px, 5vw, 56px) 0; }
.band--hero { padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.band--creator { padding: clamp(56px, 7vw, 88px) 0; }

/* ---------------------------------------------------------------- Nav ------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
}
.site-nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-nav__links a { color: var(--ink-4); transition: color var(--motion); }
.site-nav__links a:hover { color: var(--ink); }
/* Under 900px the nav goes entirely, leaving the wordmark and the one CTA. */
@media (max-width: 899px) {
  .site-nav__links { display: none; }
  .site-nav { gap: 20px; justify-content: space-between; }
}

/* The wordmark. Baseline flex with a 2px gap rather than a literal space, so the caret sits
   tight against the word at any size. */
.logo {
  font-family: var(--font-mono);
  font-size: 15px;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}
.logo .prompt, .logo .cursor { color: var(--gold); }
/* The one thing on the page that blinks. steps(1) on a 55/45 duty cycle, so it reads as a
   terminal caret rather than a fade, and sits lit slightly longer than it sits dark. */
.logo .cursor { animation: caret-blink 1.1s steps(1) infinite; }
@keyframes caret-blink { 0%, 55% { opacity: 1 } 56%, 100% { opacity: 0 } }

/* --------------------------------------------------------------- Hero ------- */
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 30px;
}
.hero h1 {
  font-size: clamp(38px, 7.2vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero__lede {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.5;
  color: var(--ink-3);
  margin: 0 0 40px;
  max-width: 30em;
}
.hero__lede strong { color: var(--ink); font-weight: 600; }
.hero__actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

/* The agent list in the hero's 3-col column: rows, each ruled off, behind a left rule. */
.agent-list { display: flex; flex-direction: column; gap: 14px; }
.agent-list__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14.5px;
  color: var(--ink-3);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-soft);
  transition: color var(--motion);
}
.agent-list__item:hover { color: var(--ink); }
.agent-list__item .glyph { color: var(--glyph); font-size: 11px; }

/* A column that hangs off a vertical rule. Disappears with the grid under 900px. */
.ruled-col { border-left: 1px solid var(--rule); padding-left: 28px; }
@media (max-width: 899px) { .ruled-col { border-left: 0; padding-left: 0; } }

/* ----------------------------------------------------------- Checklist ----- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 32px; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
  color: var(--ink-2);
}
.checklist .glyph { color: var(--mint); font-family: var(--font-mono); font-size: 13px; }
@media (max-width: 899px) { .checklist { grid-template-columns: 1fr; } }

/* ------------------------------------------------------- Numbered cells ---- */
/* The continuous-rule grid: a 1px --rule background showing through a 1px gap between --bg
   children, so the dividers read as ONE grid rather than a row of bordered boxes. */
.cells { display: grid; gap: 1px; background: var(--rule); }
.cells--bordered { border: 1px solid var(--rule); }
.cells--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cells--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cells > * { background: var(--bg); padding: 26px 24px 30px; }
.cells__n { font-family: var(--font-mono); font-size: 11px; color: var(--gold); margin-bottom: 16px; }
.cells__t { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 8px; }
.cells__d { font-size: 14.5px; line-height: 1.5; color: var(--muted); }

/* The 10-up inventory: taller cells, dim numerals, and the whole cell lifts to --bg-raised. */
.cells--box > * { padding: 26px 22px 30px; min-height: 168px; display: flex; flex-direction: column; transition: background var(--motion); }
.cells--box > *:hover { background: var(--bg-raised); }
.cells--box .cells__n { font-size: 10.5px; color: var(--dim); margin-bottom: 22px; }
.cells--box .cells__t { font-size: 16.5px; }
.cells--box .cells__d { font-size: 14px; line-height: 1.45; }
@media (max-width: 1119px) { .cells--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px)  { .cells--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
                             .cells--2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- Essentials cards ----- */
/* Separate bordered cards, NOT the continuous-rule grid: these are three parallel offers, and
   the gap between them is what says so. */
.offers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.offer {
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: 30px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color var(--motion);
}
.offer:hover { border-color: var(--gold-45); }
.offer__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.offer__title { font-size: 26px; line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; }
.offer__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.offer__list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 15px;
  color: var(--ink-3);
  border-top: 1px solid var(--rule-soft);
  padding-top: 10px;
}
.offer__list .glyph { color: var(--glyph-2); font-family: var(--font-mono); font-size: 11px; }
@media (max-width: 899px) { .offers { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- Statement -------- */
/* Section 05 is one paragraph set at heading scale, with its first sentence carrying the weight.
   Lighter (500) and in --ink-2, so it reads as a said thing rather than a titled one. */
.statement {
  font-size: clamp(25px, 3.4vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 0;
  color: var(--ink-2);
}
.statement strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- Mobile ------ */
.chips { display: flex; gap: 12px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-3);
  border: 1px solid var(--border-chip);
  padding: 12px 18px;
}
/* The honest caveat, in the gold voice rather than the danger one: something to know before you
   plan a launch, not a failure. */
.caveat { border: 1px solid var(--gold-35); background: var(--bg-raised); padding: 28px 26px; align-self: center; }
.caveat__label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.caveat p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--ink-3); max-width: none; }

/* ------------------------------------------------------- Mint-topped ------- */
.topped-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.topped { border-top: 1px solid var(--mint); padding-top: 18px; }
.topped__kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  margin: 0 0 12px;
}
.topped__title { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.topped__body { font-size: 14.5px; line-height: 1.5; color: var(--muted); margin: 0; }
@media (max-width: 899px) { .topped-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ Pricing ------ */
.plan {
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: 32px 28px 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
/* The one accented card in this view. */
.plan--accent { border-color: var(--gold); background: var(--bg-accent); }
/* The saving reads as a tab stuck on the corner, not as another line of copy. -1px so it covers
   the card's own border rather than sitting inside it. */
.plan__tab {
  position: absolute;
  top: -1px;
  right: -1px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
}
.plan__kicker {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.plan--accent .plan__kicker { color: var(--gold); }
.plan__price {
  font-size: clamp(38px, 3.8vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.plan__period { font-size: 17px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan__was { font-size: 22px; color: var(--muted); font-weight: 400; text-decoration: line-through; }
.plan__meta { font-size: 14.5px; color: var(--muted); margin: 0; }
.plan__cta { margin-top: auto; }

/* "Both plans include" is a panel hanging off a rule, not a fourth card. */
.plan-extras__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 11px; margin: 0 0 26px; }
.plan-extras__list li { display: flex; gap: 12px; align-items: baseline; font-size: 15.5px; color: var(--ink-3); }
.plan-extras__list .glyph { color: var(--mint); font-family: var(--font-mono); font-size: 12px; }
.plan-extras__note { font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 16px; margin: 0; }
.plan-extras__note strong { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------- Showcase ------ */
/* Two columns of rows: the shot with its name and domain, then the blurb beside it. The class
   name is `.site` because spec/requests/showcase_spec.rb splits the page on it. */
.showcase-rows { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.site {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 20px;
  align-items: start;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule-faint);
  color: var(--ink);
  transition: color var(--motion);
}
a.site:hover { color: var(--gold); }
.site__shot { position: relative; display: block; }
.site__shot img { width: 100%; height: auto; display: block; border: 1px solid var(--rule); margin-bottom: 12px; }
.site__wip {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--gold);
  padding: 3px 7px;
}
.site__text { display: block; }
.site__name { display: block; font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.site__domain { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.site__body { display: block; font-size: 14.5px; color: var(--muted); line-height: 1.45; margin-top: 10px; }
@media (max-width: 899px) {
  .showcase-rows { grid-template-columns: 1fr; }
  .site { grid-template-columns: 1fr; }
}


/* ------------------------------------------------------------ Creator ------ */
.creator {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: var(--ink-2);
  margin: 0;
  max-width: none;
}
.creator__handle { display: block; margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--gold); }

/* ------------------------------------------------------- Marquee + CTA ----- */
.closing { border-top: 1px solid var(--rule); overflow: hidden; }
.marquee {
  display: flex;
  width: max-content;
  animation: marquee-drift 34s linear infinite;
  padding: 22px 0;
  border-bottom: 1px solid var(--rule);
  opacity: 0.5;
}
/* The run is duplicated in the markup, so translating by half the track loops seamlessly. */
.marquee__run {
  display: flex;
  gap: 40px;
  padding-right: 40px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
@keyframes marquee-drift { from { transform: translateX(0) } to { transform: translateX(-50%) } }

.closing__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 9vw, 110px) var(--gutter) clamp(80px, 10vw, 120px);
}
.closing h2 {
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 0 22px;
  text-wrap: balance;
}
.closing__lede { font-size: 18.5px; color: var(--ink-4); margin: 0; max-width: 26em; }
.closing__cta { align-self: end; }
.closing__cta .btn { display: flex; width: 100%; padding: 20px 24px; font-size: 14px; }

/* ------------------------------------------------------------- Footer ------ */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 44px;
  display: flex;
  align-items: baseline;
  gap: 40px;
  flex-wrap: wrap;
}
.site-footer__links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.site-footer__links a { color: var(--muted); transition: color var(--motion); }
.site-footer__links a:hover { color: var(--ink); }
/* The comp sets this in #7a7167, which measures 3.93:1 on --bg. The system's own floor is 4.5:1
   with --muted named as the darkest allowed on text, so --muted it is: one step lighter, and the
   only place this page departs from the comp. */
/* Right-aligned against a 30em measure, which wraps it. balance splits the two lines evenly
   instead of leaving a two-word orphan hanging off a long first line. */
.site-footer__legal { margin-left: auto; font-size: 13px; color: var(--muted); text-align: right; max-width: 30em; text-wrap: balance; }
@media (max-width: 899px) {
  .site-footer__legal { margin-left: 0; text-align: left; }
}

/* ------------------------------------------------- Section headings -------- */
/* h2 at two sizes: the standard section heading, and the larger one the design uses where a
   section is carrying the page (what's in the box, pricing). */
.band h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 22px;
}
/* Balanced only where a heading sits in a narrow column and would otherwise leave one word
   stranded. The wide section headings are left to break naturally, which is what the design does. */
.band .col-5 > h2, .closing h2 { text-wrap: balance; }
.band h2.h2--large {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.0;
  letter-spacing: -0.035em;
  margin: 0;
}
.band h2:last-child { margin-bottom: 0; }

.section-head { margin-bottom: 48px; }
/* Bottom-aligned, so the supporting line sits on the heading's baseline rather than floating
   at the top of its column. */
.section-head__aside { font-size: 15.5px; color: var(--muted); margin: 0; align-self: end; }
.section-label { margin-bottom: 24px; }
.section-lede { font-size: 17.5px; color: var(--ink-4); margin: 0; max-width: 26em; }

/* Per-section spacing that is genuinely local, rather than a shared rhythm. */
.native__lede { margin-bottom: 32px; }
.distribution__lede { max-width: 34em; margin-bottom: 44px; }
.statement-row { align-items: center; }
.statement-row .label { align-self: start; }
.plan-extras__label { margin-bottom: 18px; }
.plan__meta--gold { color: var(--gold); }

/* The essentials row uses the 2+5+3 header, which needs more air before the cards than the
   plainer 2+8 sections do. */
#features .section-head { margin-bottom: 52px; }
#pricing .section-head { margin-bottom: 48px; }

/* ------------------------------------------------------------------ Docs --- */
/* Long-document pages: a sticky 2-column contents beside a 6-column measure. */
.doc-page { padding: var(--section-y) 0; }
.toc { position: sticky; top: 24px; align-self: start; }
.toc__title { margin-bottom: 12px; }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list li { margin-bottom: 8px; }
.toc__list a { color: var(--ink-3); font-size: 14px; }
.toc__list a:hover { color: var(--ink); }
@media (max-width: 899px) {
  /* Two links stacked above a document are furniture, not navigation. */
  .toc { display: none; }
}

.doc-body h2 { margin-top: 56px; scroll-margin-top: 24px; }
.doc-body h2:first-of-type { margin-top: 0; }
.doc-body h3 { margin-top: 28px; }
.doc-body p, .doc-body li { color: var(--ink-2); }
.doc-body__meta { color: var(--muted); font-size: 14px; }

.plan-extras { align-self: start; }

/* The in-app subscription page (/pricing), which is a different page from the kit's own pricing
   section and keeps its own simpler price line. */
.price {
  font-size: clamp(38px, 3.8vw, 46px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  color: var(--ink);
  margin: 8px 0;
  font-variant-numeric: tabular-nums;
}
.price__was { font-size: 22px; font-weight: 400; color: var(--muted); text-decoration: line-through; }
.price__period { font-size: 17px; font-weight: 400; color: var(--muted); }

/* The agent pages state their fit in the hero where the home page lists agents. */
.hero__fit { margin-top: 36px; }

/* Text inside a container that already spaces its children with gap. The base 1em paragraph
   margin would stack on top of that gap and add a line of air to every card. */
.offer__kicker, .offer__title,
.cells__n, .cells__t, .cells__d,
.topped__kicker, .topped__title, .topped__body,
.plan__kicker, .plan__price, .plan__meta,
.checklist li, .offer__list li, .plan-extras__list li,
.site__name, .site__domain, .site__body,
.caveat p, .creator, .closing__lede, .section-lede, .section-head__aside {
  margin-block: 0;
}
/* These carry their own deliberate spacing, restored after the reset above. */
.cells__n { margin-bottom: 16px; }
.cells__t { margin-bottom: 8px; }
.cells--box .cells__n { margin-bottom: 22px; }
.topped__kicker { margin-bottom: 12px; }
.topped__title { margin-bottom: 8px; }
.native__lede { margin-bottom: 32px; }
.distribution__lede { margin-bottom: 44px; }
.section-label { margin-bottom: 24px; }
