/* The platform's own marketing site, help center and status page (web/hq/).
   Uses the app's tokens (tokens.css, aliased for body.hq) so light/dark work the same way. Headings are the
   display face (Barlow Condensed) loaded by every hq page; before, they asked for "Bitter", which no hq page
   loaded, so they fell back to Georgia/Times.
   The home hero is dark in both themes (the sidebar's navy, --c-side-*), with faint field markings drawn
   in CSS: a sports feel without stock photos. Its text uses --c-brand-ink (white) and --c-side-ink, both
   AA on --c-side-bg in light and dark. */
.hq { background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 1rem; line-height: 1.6; margin: 0; }
/* Short pages (terms, status) keep the footer at the bottom of the window instead of leaving a band of page colour under it. */
body.hq { min-height: 100vh; display: flex; flex-direction: column; }
body.hq > main { flex: 1 0 auto; }
.hq :is(h1, h2, h3, h4) { color: var(--ink); }
.hq :is(h1, h2) { font-family: var(--font-display); font-weight: 700; letter-spacing: .005em; line-height: 1.05; }
.hq :is(h3, h4) { font-family: var(--font-ui); font-weight: 650; letter-spacing: -.01em; }
.hq a { color: var(--c-link); }
.hq img { max-width: 100%; height: auto; }
.hq-wrap { max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 761px) { .hq-wrap { padding: 0 var(--s-8); } }

/* ---- header ---- */
.hq-top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); }
.hq-top .hq-wrap { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.hq-logo { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: .01em; text-decoration: none; color: var(--ink) !important; margin-right: auto; white-space: nowrap; }
.hq-logo img { width: 28px; height: 28px; border-radius: var(--r-sm); }
.hq-nav { display: flex; gap: var(--s-1); align-items: center; }
.hq-nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 10px; border-radius: var(--r-md); }
.hq-nav a:not(.btn):hover { color: var(--ink); background: var(--surface-hover); }
.hq-nav a[aria-current=page] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--c-brand); border-radius: 0; }
.hq-nav a.btn { color: var(--c-brand-ink); margin-left: var(--s-2); padding: 8px 16px; }
.hq-menu-btn { display: none; }
body.hq .hq-top-cta { display: none; }
@media (max-width: 900px) {
  /* Phones and small tablets: the links fold into a menu; the trial button stays in the bar. */
  .hq-menu-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--tap); padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
  .hq-menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  body.hq .hq-top-cta { display: inline-flex; }
  .hq-top .hq-wrap { flex-wrap: wrap; gap: var(--s-2); }
  .hq-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: var(--s-2) 0 var(--s-4); }
  .hq-nav.open { display: flex; }
  .hq-nav a { padding: 12px 8px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .hq-nav a[aria-current=page] { box-shadow: inset 3px 0 0 var(--c-brand); padding-left: 14px; }
  .hq-nav a.btn { display: none; }
}
/* Phones: logo text, trial button and an icon-only Menu button share one row. */
@media (max-width: 480px) { .hq-logo img { display: none; } .hq-logo { font-size: 1.3rem; } .hq-menu-btn { width: var(--tap); padding: 0; } .hq-menu-btn .menu-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); } body.hq .hq-top-cta { padding-left: 12px; padding-right: 12px; } }

/* ---- hero ---- */
.hq-hero { padding: 64px 0 40px; }
.hq-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1; margin: 0 0 16px; letter-spacing: 0; }
.hq-hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.hq-eyebrow { font-size: var(--t-label); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-link); margin: 0 0 var(--s-2); }
.hq-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hq .btn-big { min-height: 48px; padding: 12px 22px; font-size: 1rem; }

.hq-hero-home { position: relative; overflow: hidden; padding: 72px 0 88px; color: var(--c-side-ink);
  background:
    radial-gradient(circle at 50% 50%, transparent 0 159px, var(--c-side-hover) 160px 162px, transparent 163px),
    linear-gradient(90deg, transparent calc(50% - 1px), var(--c-side-hover) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
    linear-gradient(0deg, transparent 0 32px, var(--c-side-hover) 32px 34px, transparent 34px),
    var(--c-side-bg); }
.hq-hero-home::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--c-brand) 0 60%, var(--highlight) 60% 80%, var(--c-energy) 80%); }
.hq-hero-home h1 { color: var(--c-brand-ink); font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
.hq-hero-home p.lead { color: var(--c-side-ink); max-width: 560px; }
.hq-hero-home .hq-eyebrow { color: var(--highlight); }
body.hq .hq-hero-home .btn-ghost { background: transparent; color: var(--c-brand-ink); border: 1px solid var(--c-side-muted); }
body.hq .hq-hero-home .btn-ghost:hover { background: var(--c-side-hover); }
.hq-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s-12); align-items: center; }
.hq-checks { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: .95rem; }
.hq-checks li { display: inline-flex; align-items: center; gap: 8px; }
.hq-checks li::before { content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%; background: var(--c-ok-fill) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }

/* Product screenshots in a browser frame and a phone frame. */
.hq-hero-visual { position: relative; padding-bottom: 48px; padding-right: 64px; }
.hq-browser { margin: 0; background: var(--c-surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); border: 1px solid var(--border); }
.hq-browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--c-surface-alt); border-bottom: 1px solid var(--border); }
.hq-browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--c-border-strong); opacity: .6; }
.hq-browser img { display: block; width: 100%; }
.hq-phone { margin: 0; width: 200px; border-radius: 30px; border: 8px solid #111827; background: #111827; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); aspect-ratio: 9 / 18.5; }
.hq-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 22px; }
.hq-hero-visual .hq-phone { position: absolute; right: 0; bottom: 0; width: 170px; }

@media (max-width: 900px) {
  /* One column: the halfway line would run through the text, so keep only the touchline. */
  .hq-hero-home { padding: 40px 0 56px; background: linear-gradient(0deg, transparent 0 32px, var(--c-side-hover) 32px 34px, transparent 34px), var(--c-side-bg); }
  .hq-hero-grid { grid-template-columns: 1fr; gap: var(--s-8); }
  .hq-hero-visual { padding-right: 56px; padding-bottom: 56px; }
  .hq-hero-visual .hq-phone { width: 128px; border-width: 5px; border-radius: 22px; }
  .hq-hero-visual .hq-phone img { border-radius: 17px; }
  .hq-hero-home::after { height: 5px; }
}

/* ---- promises strip ---- */
.hq-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: var(--s-8) 0 var(--s-6); }
.hq-promises { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.hq-promises li { display: flex; flex-direction: column; gap: 2px; padding-left: var(--s-4); border-left: 3px solid var(--c-brand); }
.hq-promises strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; line-height: 1.05; color: var(--ink); }
.hq-promises span { color: var(--muted); font-size: .95rem; }
.hq-strip-link { margin: var(--s-4) 0 0; font-weight: 600; }
@media (max-width: 760px) { .hq-promises { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); } .hq-promises strong { font-size: 1.6rem; } }

/* ---- sections, cards ---- */
.hq-section { padding: 56px 0 8px; }
.hq-section h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); margin: 0 0 8px; }
.hq-sub { color: var(--muted); margin: 0; max-width: 640px; }
.hq-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 24px; }
.hq-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.hq-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.hq-card p { margin: 0; color: var(--muted); }
.hq-features { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.hq-feature { padding: 24px; }
.hq-icon { width: 44px; height: 44px; padding: 10px; margin-bottom: var(--s-3); border-radius: var(--r-md); background: var(--c-brand-soft); stroke: var(--c-link); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Sport cards: each gets one of the fixed team tints as a top edge, and one thing it does for that sport. */
.hq-sports { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.hq-sports a.hq-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; border-top: 4px solid var(--sport-tint, var(--c-brand)); transition: box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease); }
.hq-sports a.hq-card:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.hq-sports .sport-name { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; line-height: 1.1; }
.hq-sports .sport-point { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.hq-sports a:nth-child(8n+1) { --sport-tint: var(--team-1); } .hq-sports a:nth-child(8n+2) { --sport-tint: var(--team-2); }
.hq-sports a:nth-child(8n+3) { --sport-tint: var(--team-3); } .hq-sports a:nth-child(8n+4) { --sport-tint: var(--team-4); }
.hq-sports a:nth-child(8n+5) { --sport-tint: var(--team-5); } .hq-sports a:nth-child(8n+6) { --sport-tint: var(--team-6); }
.hq-sports a:nth-child(8n+7) { --sport-tint: var(--team-7); } .hq-sports a:nth-child(8n+8) { --sport-tint: var(--team-8); }
@media (prefers-reduced-motion: reduce) { .hq-sports a.hq-card:hover { transform: none; } }
@media (max-width: 560px) { .hq-sports { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); } .hq-sports a.hq-card { padding: 14px; } .hq-sports .sport-name { font-size: 1.25rem; } .hq-sports .sport-point { font-size: .82rem; } }

/* Product tour: screenshot beside its words, alternating sides. */
.hq-tour-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-10); align-items: center; margin-top: var(--s-10); }
.hq-tour-flip { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.hq-tour-text h3 { font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; line-height: 1.1; margin: 0 0 var(--s-3); }
.hq-tour-text ul { margin: 0; padding-left: 20px; color: var(--muted); }
.hq-tour-text li { margin-bottom: var(--s-2); }
.hq-phone-lg { width: 260px; }
@media (max-width: 760px) {
  .hq-tour-row, .hq-tour-flip { grid-template-columns: 1fr; gap: var(--s-5); margin-top: var(--s-8); }
  .hq-phone-lg { width: 220px; margin: 0 auto; }
}

/* ---- comparison, pricing ---- */
.hq-compare-wrap { margin-top: 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.hq-compare { width: 100%; border-collapse: collapse; background: var(--surface); }
.hq-compare th, .hq-compare td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.hq-compare tr:last-child > * { border-bottom: 0; }
.hq-compare thead th { font-size: var(--t-label); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.hq-compare tbody th { font-weight: 600; }
.hq-compare td:nth-child(2) { background: var(--c-brand-soft); font-weight: 600; }
.hq-compare thead th:nth-child(2) { background: var(--c-brand-soft); color: var(--c-link); }
@media (max-width: 560px) { .hq-compare th, .hq-compare td { padding: 10px 8px; font-size: .9rem; } }

.hq-price-teaser { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-6) var(--s-8); align-items: center; padding: var(--s-8); }
.hq-price-teaser .hq-cta { grid-column: 1 / -1; margin-top: 0; }
.hq-price-teaser h2 { margin-bottom: var(--s-2); }
.hq-plan-pills { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); }
.hq-plan-pills:empty { display: none; }
/* Name on the left, price on the right, the yearly price under the price: the same shape on every width (a wrapping
   flex row put the yearly price on its own line for some plans and not others). */
.hq-plan-pills li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px var(--s-3); padding: 12px 16px; border: 1px solid var(--border); border-radius: var(--r-md); background: var(--c-surface-alt); }
.hq-plan-pills .pp-name { font-weight: 650; }
.hq-plan-pills .pp-price { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.hq-plan-pills .pp-price small { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) { .hq-price-teaser { grid-template-columns: 1fr; padding: var(--s-6) var(--s-5); } }

.hq-plan { display: flex; flex-direction: column; gap: 10px; }
.hq-plan h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.hq-plan .price { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.hq-plan .price small { font-family: var(--font-ui); font-size: 1rem; color: var(--muted); font-weight: 500; }
.hq-plan ul { list-style: none; padding: 0; margin: 0; flex: 1; display: grid; gap: 6px; align-content: start; }
.hq-plan li { position: relative; padding-left: 24px; }
.hq-plan li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--c-ok); border-bottom: 2px solid var(--c-ok); transform: rotate(-45deg) scale(.8); transform-origin: left top; }
.hq-plan.featured { border-color: var(--c-brand); box-shadow: 0 0 0 2px var(--c-brand) inset, var(--sh-2); position: relative; }
.hq-plan .plan-badge { position: absolute; top: 16px; right: 16px; background: var(--c-brand); color: var(--c-brand-ink); font-size: var(--t-label); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill); }

/* Pricing page: the plans, and the cost calculator in a card. */
.hq-plans { align-items: stretch; }
.hq-calc { padding: var(--s-8); }
.hq-calc .grid-2 { margin-top: var(--s-4); }
#fc-out { margin-top: var(--s-4); }
#fc-out p { margin: 0 0 var(--s-2); }
@media (max-width: 760px) { .hq-calc { padding: var(--s-6) var(--s-5); } }

/* ---- closing band and footer ---- */
.hq-final { margin-top: 64px; padding: 56px 0; background: var(--c-side-bg); color: var(--c-side-ink); text-align: center; }
.hq-final h2 { color: var(--c-brand-ink); font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 var(--s-2); }
.hq-final p { margin: 0; }
.hq-final .hq-cta { justify-content: center; }
/* A text button in a row of buttons lines up with their text, not with an invisible padding box. */
.hq-cta .btn-quiet { padding-inline: var(--s-1); }
body.hq .hq-final .btn-ghost { background: transparent; color: var(--c-brand-ink); border: 1px solid var(--c-side-muted); }
body.hq .hq-final .btn-ghost:hover { background: var(--c-side-hover); }
/* The closing band sits right on the footer (the footer is added after <main> by hq.js). */
main:has(> .hq-final:last-child) + .hq-foot { margin-top: 0; }
.hq-move { padding: var(--s-8); }
.hq-move p { max-width: 760px; }
@media (max-width: 760px) { .hq-move { padding: var(--s-6) var(--s-5); } }

.hq-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; margin-top: 8px; }
.hq-faq summary { font-weight: 700; cursor: pointer; }
.hq-slots { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.hq-slots .btn { min-height: var(--tap); }
.hq-slots button[aria-pressed=true] { background: var(--brand); color: var(--brand-ink); }
.hq-foot { border-top: 1px solid var(--border); margin-top: 56px; padding: 32px 0; color: var(--muted); background: var(--surface); }
.hq-foot .hq-wrap { display: flex; gap: var(--s-3) var(--s-5); flex-wrap: wrap; align-items: center; }
.hq-foot .hq-foot-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; color: var(--ink); margin-right: auto; }
.hq-foot a { color: var(--muted); }
.hq-foot a:hover { color: var(--ink); }
.hq-foot .hq-foot-links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); }
.hq-foot small { flex-basis: 100%; }
.hq-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hq-status-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.hq-status-row:last-child { border-bottom: 0; }
/* The one-line answer above the checks: everything working, or what is not. */
.hq-status-summary { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-4); border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); font-weight: 650; }
.hq-status-summary[data-state="ok"] { border-color: var(--c-ok); background: var(--c-ok-soft); }
.hq-status-summary[data-state="warn"] { border-color: var(--c-warn-border); background: var(--c-warn-soft); color: var(--c-warn-ink); }
.hq-incident .chip { margin-right: var(--s-2); }
/* Promises: one card per plan, with space between them; the history table turns into cards on a phone. */
#prices > .hq-card + .hq-card { margin-top: var(--s-3); }
#prices .table-wrap { margin-top: var(--s-3); }
/* Find a program: the search button lines up with the bottom of the fields. */
.pf-actions { align-items: flex-end; padding-bottom: 16px; }   /* the fields keep a 16px margin under them */
.hq-empty { margin-top: var(--s-4); }
.hq-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; background: var(--ok); }
.hq-dot.warn { background: var(--warn-ink); }
.hq-dot.bad { background: var(--danger); }
.help-search { width: 100%; font-size: 1.1rem; padding: 12px 14px; }
.help-article h3 { margin-top: 0; }
#help > h2 { font-size: 1.6rem; margin: var(--s-8) 0 var(--s-2); }
#help > h2:first-child { margin-top: 0; }
.help-article ol, .help-article ul { padding-left: 20px; }
@media (max-width: 640px) { .hq-hero { padding: 36px 0 24px; } .hq-section { padding-top: 44px; } }
/* Done-for-you setup offer (shown only while the platform switch is on). */
.hq-setup-offer { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border-top: 4px solid var(--c-brand); }
.hq-plan-pills .pp-year { grid-column: 2; text-align: right; font-size: .85rem; color: var(--muted); }
.hq-plan .price-year { margin: 4px 0 8px; color: var(--c-ok); font-weight: 600; }
.hq-plan-terms { margin: 16px 0 0; font-weight: 600; }
.hq-setup-offer .setup-terms { color: var(--ink); font-weight: 600; }
