/* Landing page (Askama-rendered, Datastar-enhanced). Standalone from the
   app's styles.css on purpose: the landing ships from the server binary and
   must not track the app bundle. Base palette, fonts and surface tokens
   are intentionally synchronized with the app; the landing keeps roomier
   typography and its branded engineering/watch hero. */
* { box-sizing: border-box; }

/* Genos carries the technical hero; Michroma is reserved for small brand
   details. Navigation, controls and information use the body sans-serif. */
@font-face {
  font-family: "Michroma";
  src: url("/assets/landing/fonts/michroma-latin-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Genos";
  src: url("/assets/landing/fonts/genos-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
:root {
  /* The watch's palette. */
  --rosy-granite: #8F9096;
  --french-blue: #023B8D;
  --dark-garnet: #73010A;
  --golden-bronze: #B3933E;
  --graphite: #363238;
  /* Derived tones (tints/shades of the five, plus the LCD face). */
  --case-shade: #A2A3A8;
  --lcd: #E9EBE4;
  --lcd-dim: #DBDED6;
  --lcd-pale: #F4F5F1;
  --blue-deep: #022E6E;
  --blue-tint: rgba(2, 59, 141, 0.09);
  --bronze-ink: #7A6224;
  --bronze-tint: rgba(179, 147, 62, 0.16);
  --garnet-tint: rgba(115, 1, 10, 0.09);
  --graphite-soft: #55505A;
  --hairline: #9B9CA1;
  /* Watch-style type stacks. */
  --font-label: "Michroma", "Eurostile Extended", "Eurostile", system-ui, sans-serif;
  --font-header: "Genos", "Eurostile", "Eurostile Extended", "Michroma", system-ui, sans-serif;
  --font-body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  /* Shared surface tokens, mirrored in the app stylesheet. */
  --surface: var(--lcd-pale);
  --surface-muted: var(--lcd);
  --border-subtle: rgba(54, 50, 56, 0.16);
  --surface-hover: rgba(54, 50, 56, 0.05);
  --radius-panel: 10px;
  --radius-control: 6px;
  --shadow-popover: 0 8px 24px rgba(54, 50, 56, 0.12);
  /* Glass is reserved for the branded offer banner. */
  --camber-radius: 12px / 16px;
  --camber-radius-sm: 8px / 10px;
  --camber-sheen: radial-gradient(120% 100% at 50% 14%, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0) 55%);
  --camber-ring: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -2px 5px rgba(54, 50, 56, 0.14),
    inset 0 0 0 1px rgba(255, 255, 255, 0.20);
  /* Compatibility aliases (the original token names, now wearing the
     F-91W palette). */
  --ink: var(--graphite);
  --muted: var(--graphite-soft);
  --line: var(--border-subtle);
  --bg: var(--lcd);
  --bg-alt: var(--lcd-dim);
  --accent: var(--french-blue);
  --accent-ink: #ffffff;
  --error-bg: var(--garnet-tint);
  --error-ink: var(--dark-garnet);
  --ok-ink: var(--french-blue);
}
html { scroll-behavior: smooth; }
body.landing {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  /* Pinned footer: page is a flex column at least one viewport tall, with
     <main> stretching so the footer always sits at the bottom of the screen
     even when the content is shorter than it. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
/* Every page template (landing, account, usage) renders exactly one main
   content block between the header and the footer. */
body.landing > main { flex: 1 0 auto; }
h1, h2, h3 { line-height: 1.2; }
a { color: var(--accent); }

/* Content type scales with the viewport; controls retain readable,
   consistent sizes. The technical headline keeps its own larger ramp. */

/* Header: the top of the case — same background as the rest of the page so
   the navbar blends into it, divided by the french-blue bezel line. */
.site-header {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--border-subtle);
  position: sticky; top: 0; background: var(--bg); z-index: 10;
}
.brand { font-weight: 700; font-size: clamp(18px, 1.8vw, 27px); color: var(--ink); text-decoration: none; }
/* The wordmark logo replaces the brand text; the alpha-transparent PNG sits
   directly on the case (scripts/whiten-to-alpha.sh keyed out its card). */
.brand-logo { display: block; height: 28px; width: auto; }
.site-nav { display: flex; gap: 18px; margin-left: auto; }
/* Navigation and controls use the same body type as the workspace. */
.site-nav a:not(.btn) {
  color: var(--graphite); text-decoration: none;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
}
.site-nav a:not(.btn):hover { color: var(--dark-garnet); }
.site-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; flex-shrink: 0; }
.site-signin {
  color: var(--graphite); text-decoration: none; white-space: nowrap;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; padding: 12px 0;
}
.site-signin:hover { color: var(--dark-garnet); text-decoration: underline; }
.site-signin:focus-visible { outline: 2px solid var(--french-blue); outline-offset: 4px; }

/* Roomier landing controls share the app's sentence-case styling. */
.btn {
  display: inline-block; padding: 8px 14px; border-radius: 6px;
  border: 1px solid var(--border-subtle); background: var(--lcd-pale); color: var(--ink);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.3;
  text-decoration: none; cursor: pointer;
}
.btn:hover:not(:disabled) { background: var(--surface-hover); }
:where(button, a, input, textarea, select, summary):focus-visible { outline: 2px solid var(--french-blue); outline-offset: 3px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--french-blue); border-color: var(--french-blue); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--blue-deep); }
.btn-ghost { background: transparent; border-color: var(--border-subtle); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-hover); }
.btn-lg { padding: 12px 20px; font-size: 16px; }

/* The technical hero retains the engineering/watch accent. */
.hero { position: relative; max-width: 820px; margin: 0 auto; padding: 96px 24px 72px; text-align: center; }
.hero h1 {
  font-family: var(--font-header); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(48px, 5vw, 72px); margin: 0 0 16px;
}
.hero-sub {
  font-family: var(--font-body); font-weight: 400;
  font-size: clamp(18px, 1.6vw, 24px);
  color: var(--graphite-soft); margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { color: var(--graphite-soft); font-size: clamp(13px, 1.33vw, 20px); margin-top: 16px; }

/* Hero backdrop: the tachometer dial pinned so its centerline sits exactly
   on the hero's right edge (left: 100% plus a -50% self-shift) at the hero's
   full height (`.hero` is the positioning anchor, so `height: 100%` tracks
   the section). Right of the centerline the dial reads at full opacity,
   sliding off the viewport edge; left of it — under the centered copy — the
   mask holds ~0% until a quick rise to 100% landing exactly at the
   centerline, so the text zone stays clear. The remaining stops soften the
   image's own edges: its JPEG background sits a shade off --lcd, so every
   visible edge has to be soft (top/bottom against the page, far right on
   ultra-wide viewports where the whole image fits on screen). `overflow-x:
   clip` on main keeps the right-half overhang from adding a horizontal
   scrollbar. Below 1100px the gutter beside the hero is too narrow to be
   worth it, so the dial is dropped. */
main { position: relative; overflow-x: clip; }
.hero-bg {
  position: absolute; z-index: -1; pointer-events: none;
  top: 0; left: 100%; height: 100%; width: auto;
  transform: translateX(-50%);
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, transparent 38%, #000 86%, #000 86%, transparent 99%),
    linear-gradient(to bottom, transparent 0%, #000 7%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, transparent 38%, #000 86%, #000 86%, transparent 99%),
    linear-gradient(to bottom, transparent 0%, #000 7%, #000 86%, transparent 100%);
  mask-composite: intersect;
}
@media (max-width: 1100px) {
  .hero-bg { display: none; }
}

/* Section hierarchy keeps technical type in the hero, with quieter body
   headings for the information and signup surfaces. */
.section { max-width: 1000px; margin: 0 auto; padding: 56px 24px; }
/* Leave room for the sticky header when following section links. */
.section[id] { scroll-margin-top: 96px; }
.section h2 {
  font-family: var(--font-body); font-weight: 600;
  font-size: clamp(24px, 2.2vw, 33px); margin: 0 0 8px; text-align: center;
}
.section-sub { text-align: center; color: var(--graphite-soft); margin: 0 0 24px; }

/* How it works */
.steps {
  list-style: none; margin: 24px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px;
  counter-reset: step;
}
.step { background: var(--lcd-pale); border: 1px solid var(--border-subtle); border-radius: var(--radius-panel); box-shadow: none; padding: 20px; counter-increment: step; }
.step h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; margin: 0; }
.step h3::before { content: counter(step, decimal-leading-zero) ". "; color: var(--accent); }
.step p { margin: 8px 0 0; color: var(--graphite-soft); font-size: clamp(13px, 1.4vw, 17px); }

/* Features */
.feature-grid {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px;
}
.feature { background: var(--lcd-pale); border: 1px solid var(--border-subtle); border-radius: var(--radius-panel); box-shadow: none; padding: 20px; }
.feature h3 { margin: 0 0 8px; font-family: var(--font-body); font-weight: 600; font-size: 18px; color: var(--graphite); }
.feature p { margin: 0; color: var(--graphite-soft); font-size: clamp(13px, 1.4vw, 17px); }

/* Pricing: a how-it-works checklist plus a compact pack price list (the
   buy cards live on the account page) */
.pricing-summary { max-width: 720px; margin: 0 auto; }
.pricing-list { list-style: none; margin: 0; padding: 0; text-align: left; }
.pricing-list li { position: relative; padding: 10px 0 10px 30px; color: var(--graphite-soft); font-size: clamp(15px, 1.47vw, 22px); border-bottom: 1px solid var(--border-subtle); }
.pricing-list li:last-child { border-bottom: 0; }
.pricing-list li::before { content: "✓"; position: absolute; left: 2px; top: 10px; color: var(--graphite-soft); font-weight: 700; font-size: clamp(19px, 1.87vw, 36px); line-height: 1; }
.pricing-list strong { color: var(--ink); }
.pricing-packs-title { text-align: center; font-size: clamp(18px, 1.8vw, 27px); margin: 36px 0 12px; }
.pricing-packs { list-style: none; margin: 0; padding: 0; }
.pricing-packs li {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px;
  background: var(--lcd-dim);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-panel);
  box-shadow: none;
  padding: 12px 18px; margin-bottom: 10px;
}
.pricing-packs .pack-size { font-weight: 700; }
.pricing-packs .pack-price-tag { color: var(--french-blue); font-weight: 700; font-size: clamp(17px, 1.67vw, 25px); }
.pricing-packs .pack-peg { margin-left: auto; color: var(--graphite-soft); font-size: clamp(13px, 1.33vw, 20px); }
.pricing-footnote { color: var(--graphite-soft); font-size: clamp(13px, 1.33vw, 20px); margin: 18px 0 0; }
.pricing-cta { text-align: center; margin: 20px 0 0; }

/* FAQ */
.faq-item { background: var(--lcd-pale); border: 1px solid var(--border-subtle); border-radius: var(--radius-panel); box-shadow: none; padding: 14px 18px; margin-bottom: 10px; max-width: 720px; margin-inline: auto; }
.faq-item summary { cursor: pointer; font-weight: 600; list-style: none; font-size: clamp(14px, 1.87vw, 22px); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: none; }
.faq-item summary::before { content: "▸"; display: inline-block; margin-right: 10px; color: var(--graphite-soft); font-weight: 700; font-size: clamp(19px, 1.87vw, 36px); line-height: 1; vertical-align: -5px; }
.faq-item[open] summary::before { content: "▾"; }
.faq-item p { color: var(--graphite-soft); margin: 10px 0 0; font-size: clamp(15px, 1.4vw, 18px); }

/* Flat signup and account cards; status/error colors remain explicit. */
.cta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 20px; max-width: 820px; margin: 0 auto;
}
.card { background: var(--lcd); border: 1px solid var(--border-subtle); border-radius: var(--radius-panel); box-shadow: none; padding: 28px; }
#account-announcements { margin-top: 20px; text-align: start; }
#account-announcements:empty { margin-top: 0; }
.account-announcement-fallback {
  background: var(--surface);
  border-inline-start: 4px solid var(--accent);
  box-shadow: var(--shadow-popover);
  margin-bottom: 16px;
  padding: 18px 20px;
}
.account-announcement-fallback h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.account-announcement-fallback p { margin: 8px 0 16px; font-size: 14px; }
.account-announcement-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cta-grid .card { width: 100%; }
.card-alt { background: var(--lcd-dim); }
#signup-region, .account-card { background: var(--lcd-pale); }
.card h2 { text-align: left; font-family: var(--font-body); font-weight: 600; font-size: clamp(18px, 1.5vw, 22px); margin: 0 0 8px; }
.card-sub { color: var(--graphite-soft); font-size: clamp(14px, 1.4vw, 21px); margin: 0 0 18px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: clamp(13px, 1.33vw, 20px); }
.field span { color: var(--graphite-soft); }
.field input {
  padding: 10px 12px; border: 1px solid var(--border-subtle); border-radius: 4px;
  font-size: clamp(15px, 1.47vw, 22px); font-family: inherit; background: var(--lcd-pale); color: var(--ink);
}
.field input:focus { outline: 2px solid var(--french-blue); outline-offset: -1px; border-color: var(--french-blue); }
.form-error {
  margin: 0; padding: 8px 12px; border-radius: 4px; font-size: clamp(13px, 1.33vw, 20px);
  border: 1px solid var(--dark-garnet);
  background: var(--error-bg); color: var(--error-ink);
}
.form-success h3 { margin: 0 0 8px; color: var(--ok-ink); }
.form-success p { color: var(--graphite-soft); font-size: clamp(14px, 1.4vw, 21px); margin: 0 0 16px; }
.form-note { font-size: clamp(12px, 1.2vw, 18px); color: var(--graphite-soft); margin-top: 12px; }

/* Field rows on the signup card: one two-column grid serves both branches.
   Personal shows first name + email on the row (the .biz-only fields are
   display:none and drop out of the grid); business shows first/last on row
   one and email/business name on row two, with the address spanning the
   bottom row edge to edge. Below 720px every row stacks. */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; }
}
/* Business address rides alone on the bottom row, edge to edge. */
.field-full { width: 100%; }

/* Account-type toggle: button-style radio (mirrors the app sign-in modal's
   Personal/Business buttons). The radio inputs stay functional for the
   multipart post but are visually hidden; the wrapping label wears the
   button treatment and the checked branch gets the blue active state —
   pure CSS `:has()`, no JS. */
.account-type { display: flex; gap: 6px; }
.account-type-option {
  position: relative; flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 0;
  border: 1px solid var(--border-subtle); border-radius: 4px;
  background: var(--lcd-pale); color: var(--ink);
  font-size: clamp(13px, 1.3vw, 18px);
  cursor: pointer;
}
.account-type-option input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.account-type-option:hover { border-color: var(--french-blue); }
.account-type-option:has(input:checked) {
  background: var(--french-blue); color: #ffffff; border-color: var(--french-blue);
}
.account-type-option:has(input:focus-visible) { outline: 2px solid var(--french-blue); outline-offset: 2px; }
.business-fields { display: none; flex-direction: column; gap: 14px; }
#signup-form:has(input[name="accountType"][value="business"]:checked) .business-fields { display: flex; }
/* The last name rides the business branch only: a personal account is just
   a first name + contact details, so the field hides until business is
   picked (same CSS-driven reveal as the business fields). */
.biz-only { display: none; }
#signup-form:has(input[name="accountType"][value="business"]:checked) .biz-only { display: flex; }

/* Footer: the graphite base plate. Copy + contact details flow from the
   left; the links nav and the social chips hold the right edge. */
.site-footer {
  border-top: 1px solid var(--border-subtle); padding: 24px;
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  background: var(--graphite); color: var(--rosy-granite); font-size: clamp(13px, 1.33vw, 20px);
}
.footer-contact { display: flex; gap: 8px 16px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 16px; }
.footer-social { margin-left: auto; display: flex; gap: 10px; }
.site-footer a { color: var(--rosy-granite); }
.site-footer a:hover { color: var(--lcd); }
/* Social chips: square bezel buttons in the footer palette. */
.social-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--border-subtle); border-radius: var(--radius-control);
  background: var(--graphite); color: var(--rosy-granite);
}
.social-chip svg { display: block; }
.social-chip:hover { color: var(--lcd); border-color: var(--lcd); }

@media (max-width: 960px) {
  .site-header:has(.site-actions) .site-nav { display: none; }
}

@media (max-width: 720px) {
  .site-nav { display: none; }
  .site-header:has(.site-actions) { flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; }
  .section[id] { scroll-margin-top: 128px; }
  .hero { padding-top: 64px; }
  .site-actions { gap: 12px; }
  .site-actions .btn { padding: 8px 10px; font-size: 14px; }
  .card { padding: 20px; }
  .field { min-width: 0; }
  .field input { min-width: 0; width: 100%; }
  .site-footer nav { flex-wrap: wrap; }
  .offer-banner .btn { white-space: normal; }
}

/* Account page (server-rendered, shares the landing component styles above) */
.account-hero { max-width: 820px; margin: 0 auto; padding: 48px 24px 8px; text-align: center; }
.account-hero h1 {
  font-family: var(--font-header); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.02em;
  font-size: clamp(24px, 4vw, 48px); margin: 0 0 12px;
}
.account-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px; max-width: 880px; margin: 0 auto;
}
.account-signin { max-width: 440px; margin: 0 auto; }
.account-meta { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: clamp(14px, 1.4vw, 21px); }
.account-meta dt { color: var(--graphite-soft); }
.account-meta dd { margin: 0; }

/* Model section: the tier picker — two radio option cards, then the selected
   tier's animated linework and its description (both swap with the pick). It
   sits between the account cards and Buy credits, so it keeps the section
   rhythm with no top padding. */
.model-section { max-width: 880px; padding-top: 0; }
.model-section .section-sub { max-width: 720px; margin-left: auto; margin-right: auto; }
.model-options {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin: 0 0 16px;
}
.model-option {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 16px;
  background: var(--lcd-dim);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-control);
  box-shadow: none;
  cursor: pointer;
  font-family: var(--font-label); font-size: clamp(10px, 1vw, 15px);
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite-soft);
}
.model-option input { width: 16px; height: 16px; margin: 0; flex: none; accent-color: var(--french-blue); }
.model-option:hover { border-color: var(--french-blue); color: var(--ink); }
.model-option.is-selected {
  color: var(--ink);
  border-color: var(--french-blue);
  background: var(--blue-tint);
  box-shadow: 0 0 0 1px var(--french-blue);
}
.model-option:focus-within { outline: 2px solid var(--french-blue); outline-offset: 2px; }
/* The tier's animated linework, seated in a framed figure (the SVGs draw
   their own ivory rounded frame — the border just mounts it on the case).
   Both tiers' graphics server-render here; the unselected one carries
   [hidden], and the display rule below must win over it. */
.model-figure {
  margin: 0 0 12px;
  background: var(--lcd-pale);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-panel);
  box-shadow: none;
  overflow: hidden;
}
.model-graphic { display: block; width: 100%; height: auto; }
.model-graphic[hidden] { display: none; }
.model-graphic.swap { animation: model-graphic-in 260ms ease-out; }
@keyframes model-graphic-in { from { opacity: 0; } to { opacity: 1; } }
/* Save failures: a short-lived banner above the graphic (the script shows
   and auto-dismisses it; the no-JS server note shares the treatment and
   simply stays until navigation). Success renders nothing at all. */
.model-alert {
  margin: 0 0 12px; padding: 10px 14px;
  text-align: center;
  color: var(--dark-garnet);
  background: var(--garnet-tint);
  border: 1px solid var(--dark-garnet); border-radius: var(--radius-control);
  font-size: clamp(13px, 1.33vw, 20px);
  animation: model-alert-in 200ms ease-out;
}
.model-alert[hidden] { display: none; }
@keyframes model-alert-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.model-section .form-note { text-align: center; margin-top: 12px; }

/* About page: centered headshot over the bio + contact block. */
.about-photo-card { margin: 0; }
.about-photo { display: block; width: 50%; height: auto; margin: 0 auto; border-radius: var(--radius-control); border: 1px solid var(--border-subtle); }
.about-bio p { color: var(--graphite-soft); font-size: clamp(14px, 1.5vw, 22px); margin: 0 0 14px; }
.about-bio h2 { margin-top: 18px; }
.about-contact { margin: 0 0 16px; display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; font-size: clamp(14px, 1.4vw, 21px); }
.about-contact dt { color: var(--graphite-soft); }
.about-contact dd { margin: 0; }
.about-contact a { color: var(--french-blue); }
.about-contact a:hover { color: var(--french-blue); text-decoration: underline; }
/* The card sits on the pale face, so chips here read dark-on-light and align
   left (unlike the footer, where they hug the right edge). */
.about-social { margin-left: 0; }
.about-social .social-chip { background: var(--lcd); color: var(--graphite); }
.about-social .social-chip:hover { color: var(--french-blue); border-color: var(--french-blue); }
.usage-line { font-size: clamp(14px, 1.8vw, 21px); margin: 0 0 10px; }
/* The Account card's link to /account/security — usage-line's type without
   borrowing its class (the account e2e keys on .usage-line order). */
.account-links { font-size: clamp(14px, 1.8vw, 21px); margin: 10px 0 0; }
.usage-note { color: var(--graphite-soft); font-size: clamp(10px, 1.33vw, 14px); margin: 4px 0; }
/* Usage page: the filter bar above the table and the daily per-drawing
   table itself (server-rendered; the PDF export mirrors exactly these
   rows and totals). */
.usage-filters {
  display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: end;
  max-width: 980px; margin: 0 auto 16px; padding: 16px;
  background: var(--lcd-dim);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-panel);
  box-shadow: none;
}
.usage-filters label {
  display: flex; flex-direction: column; gap: 4px;
  font-size: clamp(13px, 1.33vw, 20px); color: var(--graphite-soft);
}
.usage-filters input, .usage-filters select {
  padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: 4px;
  font-size: clamp(14px, 1.4vw, 21px); font-family: inherit; background: var(--lcd-pale); color: var(--ink);
}
.usage-filters input:focus, .usage-filters select:focus {
  outline: 2px solid var(--french-blue); outline-offset: -1px; border-color: var(--french-blue);
}
.usage-filters .btn { margin-left: auto; }
.usage-region { max-width: 980px; margin: 0 auto; }
.usage-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  max-width: 980px; margin: 0 auto 12px;
}
.usage-range { color: var(--graphite-soft); font-size: clamp(14px, 1.4vw, 21px); }
.usage-toolbar .btn { margin-left: auto; }
.usage-card { max-width: 980px; margin: 0 auto; padding: 0; overflow-x: auto; }
.usage-table { width: 100%; border-collapse: collapse; font-size: clamp(14px, 1.4vw, 21px); }
.usage-table th, .usage-table td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.usage-table thead th { font-family: var(--font-label); font-weight: 400; font-size: clamp(10px, 1vw, 15px); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bronze-ink); border-bottom: 1px solid var(--border-subtle); }
.usage-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.usage-table tbody tr:hover { background: var(--case-shade); }
.usage-table tfoot th { font-weight: 700; border-top: 1px solid var(--border-subtle); border-bottom: none; }
.usage-pager {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  max-width: 980px; margin: 14px auto 0;
}
.usage-pager .btn { text-decoration: none; }
.usage-pager-status { color: var(--graphite-soft); font-size: clamp(13px, 1.33vw, 20px); }
.usage-pager-off { opacity: 0.45; pointer-events: none; }
.purchase-error { margin: 0 auto 20px; max-width: 880px; border-top: 3px solid var(--dark-garnet); text-align: center;}
.purchase-error p { margin: 0;}
.pack-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; align-items: stretch; }
.pack {
  display: flex; flex-direction: column;
  background: var(--lcd-dim);
  border: 1px solid var(--border-subtle); border-radius: var(--radius-panel);
  box-shadow: none;
  padding: 20px;
}
.pack h3 { margin: 0 0 2px; font-family: var(--font-label); font-weight: 400; font-size: clamp(10px, 1vw, 15px); letter-spacing: 0.08em; text-transform: uppercase; color: var(--graphite-soft); }
.pack-price { font-family: var(--font-label); font-weight: 400; font-size: clamp(24px, 2.4vw, 30px); margin: 0; }
.pack-per { color: var(--bronze-ink); font-size: clamp(10px, 1.33vw, 16px); font-weight: 600; margin: 0; }
p.pack-per { margin: 0 0 10px; }
.pack-price .pack-per { margin-left: 8px; }
.pack-sub { color: var(--graphite-soft); font-size: clamp(13px, 1.33vw, 20px); margin: 0 0 16px; flex-grow: 1; }
.pack form { margin: 0; }
.pack-grid .btn { width: 100%; }
/* The new-account offer badge shared by the home and account pages. */
.offer-badge {
  display: inline-block; padding: 4px 12px; border-radius: 3px;
  background: var(--dark-garnet); color: #ffffff;
  font-family: var(--font-label); font-size: clamp(9px, 0.87vw, 13px); font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.offer-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  max-width: 880px; margin: 32px auto 0; padding: 20px 26px;
  text-align: left;
  border: 3px solid transparent; border-radius: var(--camber-radius);
  background:
    var(--camber-sheen) padding-box,
    linear-gradient(var(--lcd-pale), var(--lcd-pale)) padding-box,
    linear-gradient(120deg, var(--dark-garnet), var(--golden-bronze), var(--french-blue)) border-box;
  box-shadow: var(--camber-ring), 0 10px 30px rgba(54, 50, 56, 0.22);
}
.offer-banner .hero-actions { justify-content: flex-start; }
.offer-headline { font-family: var(--font-label); font-weight: 400; font-size: clamp(12px, 1.2vw, 14px); letter-spacing: 0.08em; text-transform: uppercase; margin: 8px 0 2px; }
.offer-sub { margin: 0; color: var(--graphite-soft); font-size: clamp(10px, 1.4vw, 16px); }
.offer-banner form { margin: 0; }
.account-offer-banner { max-width: none; margin: 0 0 16px; }
.signout-form { margin: 0; }
/* Sign-in & security (account page): server-rendered outcome notes and the
   password script's live status render as quiet inline text; failures go
   dark-garnet like .form-error without the boxed treatment. */
.form-note { margin: 0; color: var(--graphite-soft); font-size: clamp(13px, 1.33vw, 20px); }
.form-note[data-kind="error"] { color: var(--dark-garnet); }
/* Outcome notes sit inside their card, under the form that produced them. */
.card > .form-note { margin-top: 12px; }

/* Legal pages (/terms, /privacy): Termly policy text re-set in the site's
   design language. The markup ships as semantic HTML (h1/h2/h3/p/ul/table
   with .legal-* hooks), so this block owns the entire look — no inline
   styles survive the sanitization. Appended after .section so these rules
   win the equal-specificity contest with `.section h2`. */
.legal-page { max-width: 780px; }
.legal { font-size: clamp(14px, 1.4vw, 18px); }
.legal p { color: var(--graphite-soft); margin: 0 0 14px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--french-blue); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--blue-deep); }
.legal h1 {
  font-family: var(--font-label); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: clamp(22px, 2.4vw, 34px);
  text-align: center; margin: 0 0 6px;
}
.legal-subtitle { text-align: center; color: var(--graphite-soft); font-size: clamp(12px, 1.2vw, 15px); margin: 0 0 34px; }
.legal h2 {
  font-family: var(--font-label); font-weight: 400; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: clamp(16px, 1.7vw, 24px);
  color: var(--ink); text-align: left;
  margin: 40px 0 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}
.legal h3 {
  font-family: var(--font-header); font-weight: 600;
  /* Sized to read clearly above an unstyled h4 (browser-default bold body
     font at 1em = 14–18px): the condensed header face needs the extra
     weight of size to carry its rank. Still reads below the uppercase,
     bordered h2. */
  font-size: clamp(24px, 1.8vw, 34px);
  color: var(--ink); text-align: left; margin: 26px 0 8px;
}
.legal ul { margin: 0 0 14px; padding-left: 26px; }
.legal li { color: var(--graphite-soft); margin: 0 0 6px; }
.legal li::marker { color: var(--french-blue); }
.legal table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: clamp(12px, 1.2vw, 15px); }
.legal th, .legal td { border: 1px solid var(--border-subtle); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--blue-tint); font-family: var(--font-label); font-weight: 400; font-size: clamp(10px, 1vw, 13px); letter-spacing: 0.06em; text-transform: uppercase; }
.legal td p { margin: 0; }
/* Sticky-header offset for the table of contents jumps. */
.legal [id] { scroll-margin-top: 84px; }
/* Termly's compliance-scanner hook link (kept from the source export). */
.legal-termly-dsar { display: none; }

/* New-password guidance: visible requirements and status, shared by all forms. */
.password-requirements { padding: 8px 10px; border: 1px solid var(--border-subtle); border-radius: 4px; background: var(--lcd-pale); color: var(--graphite-soft); font: 12px/1.5 var(--font-body); }
.password-requirements p { margin: 6px 0 0; font-size: 12px; line-height: 1.5; }
.password-checklist { list-style: none; padding: 0; margin: 0; }
.password-checklist li::before { content: "○"; display: inline-block; width: 18px; font-family: sans-serif; }
.password-checklist li[data-state="met"] { color: var(--french-blue); }
.password-checklist li[data-state="met"]::before { content: "✓"; }
.password-checklist li[data-state="unmet"] { color: var(--dark-garnet); }
