/* Shared by every rebuilt screen (after.html, pricing.html), so each screen is drawn from the same components.
   Brand color, typeface, meaning colors, spacing, radius, type scale, shadows, motion and borders all come from theme.css. */

/* Light mode: when the visitor's system asks for light, the light scheme of the same design system replaces the dark
   one, with the same brand and tone (node packages/engine/cli.mjs --system examples/rebuild/before.html --scheme light
   --out examples/rebuild/light). Dark stays the default. */
@import url("light/theme.css") (prefers-color-scheme: light);

* { box-sizing: border-box; margin: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; background: var(--bg); color: var(--text); font-family: var(--font); font-size: var(--t-title); line-height: var(--lh-normal); }
p { text-wrap: pretty; }
main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--sp-6); }

/* site-header */
header { border-bottom: 1px solid var(--border-soft); }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); min-height: 64px; }
.name { display: inline-flex; align-items: center; min-height: var(--control-touch, 44px); font-weight: var(--w-semi); font-size: var(--t-title); color: var(--text); text-decoration: none; }
nav ul { display: flex; gap: var(--sp-6); list-style: none; padding: 0; }
nav a { display: inline-flex; align-items: center; min-height: var(--control-touch, 44px); color: var(--text-muted); text-decoration: none; font-size: var(--t-body); }
nav a:hover { color: var(--text); }

/* asymmetric-product-hero: the words on the left, what the product does on the right, both in the first screen */
.hero { padding: var(--sp-12) 0; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-12); }
.copy { align-self: center; }

/* plain-headline-and-eyebrow: a sentence case label, one typeface, the second phrase set back in a quieter ink */
.kicker { color: var(--text-subtle); font-size: var(--t-body); font-weight: var(--w-med); }
h1 { margin-top: var(--sp-4); font-size: clamp(var(--t-h1), 4vw, var(--t-display)); line-height: var(--lh-tight); font-weight: var(--w-semi); letter-spacing: -0.02em; text-wrap: balance; }
h1 .soft { color: var(--text-subtle); }
.lead { margin-top: var(--sp-5); max-width: 40ch; color: var(--text-muted); }
.actions { margin-top: var(--sp-8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-6); }
.primary { display: inline-flex; align-items: center; min-height: var(--control-touch, 44px); padding: var(--sp-2) var(--sp-5); border-radius: var(--r-sm); background: var(--accent); color: var(--accent-fg); font-weight: var(--w-med); text-decoration: none; }
.text-link { display: inline-flex; align-items: center; min-height: var(--control-touch, 44px); color: var(--text); font-weight: var(--w-med); text-decoration-color: var(--text-subtle); text-underline-offset: 4px; }
.note { margin-top: var(--sp-6); color: var(--text-subtle); font-size: var(--t-body); }

/* hairline-card: one panel, a one pixel border on a faint fill, its title on top and its rows at the foot */
.panel { display: flex; flex-direction: column; padding: var(--sp-8); border: 1px solid var(--border-soft); border-radius: var(--r-card); background: var(--card); }
.panel h2 { font-size: var(--t-h2); font-weight: var(--w-semi); line-height: var(--lh-snug); letter-spacing: -0.02em; text-wrap: balance; }
.panel .sub { margin-top: var(--sp-2); max-width: 44ch; color: var(--text-muted); font-size: var(--t-body); }
.panel .cap { margin-top: auto; padding-top: var(--sp-12); color: var(--text-subtle); font-size: var(--t-sm); }

/* list-item-row: rows told apart by one step of fill, with no second border inside the panel */
.rows { margin-top: var(--sp-2); display: grid; gap: var(--sp-2); list-style: none; padding: 0; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-sm); background: var(--card); }
.row h3 { font-size: var(--t-body); font-weight: var(--w-semi); line-height: var(--lh-normal); }
.row p { grid-column: 1 / -1; color: var(--text-muted); font-size: var(--t-body); }
/* In light the card fill is opaque white, so a card on a card is no step at all; the rows take the muted fill instead. */
@media (prefers-color-scheme: light) {
  .row { background: var(--muted); }
}

/* status-label: the state as neutral text in a thin neutral ring, no tint and no colored dot */
.state { grid-column: 2; grid-row: 1; align-self: center; justify-self: end; padding: var(--sp-1) var(--sp-2); border: 1px solid var(--border-soft); border-radius: var(--r-pill); color: var(--text-subtle); font-size: var(--t-sm); font-weight: var(--w-med); line-height: var(--lh-snug); white-space: nowrap; }

footer { border-top: 1px solid var(--border-soft); padding: var(--sp-6) 0; color: var(--text-subtle); font-size: var(--t-body); }

@media (max-width: 767px) {
  .hero { padding: var(--sp-8) 0 var(--sp-12); }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); }
  nav ul { gap: var(--sp-4); }
  h1 { font-size: var(--t-h2); }
  .panel { padding: var(--sp-5); }
  .panel .cap { padding-top: var(--sp-8); }
  .panel h2 { font-size: var(--t-title); }
}
