/* Shared look for Pivot's public pages (welcome, pricing, sign-in, articles, legal): the header and footer (one copy each in
   /site/partials, put into every page at build), buttons, labels and cards. Page-specific styles stay in each page.
   Colours and fonts are the brand tokens in /site/brand.css (load it first). Brand rules: near-black ground, orange
   only on the main button and the pivot, flat cards with small corners, one glow (the main button). */
:root { --bg: var(--ground); --muted: var(--fog); --accent: var(--signal); --wrap: 1200px; --gutter: 20px; color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { background: var(--bg); }
body { margin: 0; color: var(--ink); font: 16px/1.5 var(--font-ui); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.025em; margin: 0; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--radius-sm); }

/* label: small condensed capitals (orange for the page's one label, fog elsewhere) */
.eyebrow { display: block; font: 700 11px/14px var(--font-condensed); letter-spacing: .16em; text-transform: uppercase; color: var(--signal-ink); }
.eyebrow.muted { color: var(--fog); }

/* header: the hairline shows only after scrolling (site.js) */
.bar { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top, 0px); background: color-mix(in srgb, var(--ground) 86%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.bar.scrolled { border-bottom-color: var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 24px; width: auto; }
.bar-nav { display: flex; align-items: center; gap: 24px; }
.bar-link { color: var(--fog); font-weight: 600; font-size: 15px; text-decoration: none; }
.bar-link:hover { color: var(--ink); }
@media (max-width: 559px) { .bar-link { display: none; } }

/* the header never links to the page you're on (site.js marks it aria-current) */
.bar-nav [aria-current="page"] { display: none; }
/* buttons: primary (orange, the page's one), secondary (outline), quiet (small outline in the header) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: var(--radius-md); font: 700 16px/1 var(--font-ui); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s; }
.btn.go { background: var(--signal); color: var(--on-signal); box-shadow: var(--glow); }
.btn.go:hover { background: var(--signal-press); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); font-weight: 600; }
.btn.ghost:hover { border-color: var(--fog); }
.btn.quiet { height: 40px; padding: 0 16px; background: transparent; color: var(--ink); border-color: var(--line-strong); font-weight: 600; font-size: 15px; }
.btn.quiet:hover { border-color: var(--fog); }
/* sign-ups closed: the button keeps its look but does nothing */
.btn[aria-disabled="true"] { cursor: default; }
.btn.go[aria-disabled="true"]:hover { background: var(--signal); }

/* sections */
.sect { padding: 56px 0; }
.sect h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; text-align: center; margin-bottom: 10px; }
.sect .sub { color: var(--muted); text-align: center; margin: 0 auto 32px; max-width: 520px; }
.kicker { display: inline-block; font: 700 11px/14px var(--font-condensed); letter-spacing: .16em; text-transform: uppercase; color: var(--signal-ink); }
.kicker b { display: none; }

/* hero: a label, a two-tone headline (the second line steel) and, beside it on computers, the proof card. Used by the
   landing page and sign-in. Phones stack. */
.hero { padding: 40px 0 0; }
.hero .wrap { display: grid; gap: 40px; }
.copy { display: grid; gap: 20px; align-content: start; }
.hero h1 { font-size: clamp(36px, 9.6vw, 60px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.hero h1 span { display: block; color: var(--steel); text-wrap: balance; }
.pv { display: grid; gap: 8px; align-content: start; }
.pv-card { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); display: grid; gap: 12px; }
.pv-card p { margin: 0; font: 800 22px/1.2 var(--font-display); letter-spacing: -.02em; }
a.pv-card { color: inherit; text-decoration: none; transition: border-color .15s; }   /* the card opens the week's recap */
a.pv-card:hover { border-color: var(--line-strong); }
.pv .src a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; white-space: nowrap; }
.pv-card p span { display: block; color: var(--fog); }
.route { display: block; width: 100%; height: auto; max-height: 72px; }
.route .crowd { fill: var(--steel); } .route .move { stroke: var(--signal); fill: none; stroke-linecap: round; } .route .head { fill: var(--signal); }
.rows { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px 16px; }
.row + .row { border-top: 1px solid var(--line); }
.row b { display: block; font-size: 16px; font-weight: 600; }
.row small { display: block; color: var(--fog); font-size: 13px; }
.row .num { font: 800 24px/1 var(--font-condensed); font-variant-numeric: tabular-nums; }
.own { min-width: 40px; height: 24px; padding: 0 6px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--surface-raised); color: var(--fog); font: 700 12px/1 var(--font-condensed); }
.row.pivot b { color: var(--signal-ink); }
.row.head { padding-top: 10px; padding-bottom: 10px; font: 700 11px/14px var(--font-condensed); letter-spacing: .14em; text-transform: uppercase; color: var(--fog); }
.row.head span:not(:first-child) { min-width: 40px; text-align: center; }
.row.pivot .own { background: var(--signal); color: var(--on-signal); }
.pv .src { margin: 0; color: var(--fog); font-size: 13px; }
@media (min-width: 900px) {
  .hero { padding-top: 72px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 440px; gap: 64px; align-items: center; }
  .pv-card p { font-size: 28px; }
}

/* footer */
.site-foot { margin-top: 96px; padding: 32px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.foot-row { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.foot-row .brand img { height: 22px; }
.foot-row nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; font-weight: 600; }
.foot-row nav a { color: var(--fog); text-decoration: none; }
.foot-row nav a:hover { color: var(--ink); }
.social { display: flex; gap: 8px; margin-left: auto; }
.social a, .social .soon { width: 44px; height: 44px; border-radius: var(--radius-md); display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); color: var(--fog); }
.social a:hover { color: var(--ink); border-color: var(--line-strong); }
.social svg { width: 17px; height: 17px; fill: currentColor; }
.legal { margin: 20px 0 0; max-width: 760px; color: var(--fog); font-size: 13px; line-height: 1.55; }
@media (max-width: 559px) {
  .foot-row { display: grid; grid-template-columns: 1fr auto; }
  .foot-row nav { grid-column: 1 / -1; order: 3; }
  .social { margin-left: 0; }
}

/* privacy and terms: one readable column under the shared header (website option A) */
.doc { max-width: 720px; padding-top: 48px; }
.doc h1 { font-size: clamp(36px, 8vw, 56px); line-height: 1.05; letter-spacing: -.03em; margin: 8px 0 8px; }
.doc .date { color: var(--fog); font-size: 15px; margin: 0 0 24px; }
.doc .lead { font-size: 18px; line-height: 1.55; margin: 0 0 8px; }
.doc h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.02em; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 17px; line-height: 1.65; margin: 0 0 12px; }
.doc ul { padding-left: 20px; margin: 0 0 12px; }
.doc .card { margin: 24px 0 0; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); }
.doc .card .eyebrow { margin-bottom: 12px; }
.doc .card ul:last-child, .doc .card p:last-child { margin-bottom: 0; }
.doc a { color: var(--ink); text-underline-offset: 3px; }
