/* `hidden` always wins. A class that sets `display` otherwise overrides the attribute: the
   OpenRouter low-credit alarm (`.openrouter-warning { display: flex }`) showed on every visit to
   Admin -> Expense, balance fine or unreadable, because its `hidden` never took effect. */
[hidden] { display: none !important; }

:root {
  --bg: #f3f4f8;
  --surface: #ffffff;
  --text: #14161f;
  --text-muted: #667085;
  --border: #e6e8ee;
  /* The brand accent. Kept in step with `branding.DEFAULT_BRAND_COLOR`, which is what the audit
     PDF and the generated documents read — CSS cannot call Python, so this is the one place the
     value is duplicated rather than derived. Change both together. */
  /* The page's measure. The header and the main column both read it. */
  --content-width: 1020px;

  --brand: #1f6feb;
  --brand-dark: #1557c7;
  --brand-light: #eaf2fe;

  --tier-excellent: #16a34a;
  --tier-good: #0891b2;
  --tier-moderate: #d97706;
  --tier-below-average: #ea580c;
  --tier-needs-attention: #dc2626;

  --sev-high: #dc2626;
  --sev-critical: #dc2626;
  --sev-medium: #d97706;
  --sev-low: #2563eb;
  --sev-info: #6b7280;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 2px 8px rgba(16, 24, 40, 0.06), 0 1px 2px rgba(16, 24, 40, 0.04);
}

* { box-sizing: border-box; }

/* A native <button> carries its own browser-default font/border/margin that an <a> never has —
   without resetting these, the exact same `.btn` (or any other button-styling) class renders at
   a different height/font-size, and can show a stray default border, depending on whether it
   ends up on a <button> or an <a>. Every more specific rule in this file (`.btn`, `.btn-small`,
   `.ap-btn`, ...) already sets its own padding/font-size/color and overrides
   this via normal cascade specificity — this only fills the gaps so a bare, unstyled <button>
   (and the parts every button rule doesn't otherwise touch) matches the page's own type instead
   of the browser's, keeping every button in the app the same height for the same font size. */
button {
  font-family: inherit;
  font-size: 1rem;
  line-height: inherit;
  border: none;
  margin: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

/* A column at least one screen tall, with the main area taking the slack, so the footer sits at
   the bottom of a short page (a sign-in card, a "check your inbox" card) instead of halfway up
   it. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

/* Any grid/flex item holding free-form text (URLs, previews, descriptions) needs an
   explicit min-width so it can shrink below its content's natural width instead of
   overflowing its card — grid/flex items default to min-width: auto. */
.score-card,
.stat-tile,
.check-pill,
.brand-card,
.eeat-card,
.llms-file-card,
.finding-body,
.kg-details,
.citability-card-body,
.action-plan-column,
.report-hero-info {
  min-width: 0;
}

.table-scroll { overflow-x: auto; }
.data-table td { overflow-wrap: anywhere; }
.data-table th { white-space: nowrap; }
/* `overflow-wrap: anywhere` above is what lets a long URL break instead of forcing the table
   wider than its card — but it applies to everything in the cell, and a control's label is never
   the right thing to break. Without this the "View" button rendered one letter per line, reading
   vertically, as soon as the column got narrow. A pill has the same problem. */
.data-table td .btn, .data-table td .pill { white-space: nowrap; }
.kv-dl dd { min-width: 0; overflow-wrap: anywhere; }

a { color: var(--brand); }
h1, h2, h3 { letter-spacing: -0.01em; }

.site-header {
  display: flex;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header-inner {
  width: 100%;
  /* Shares `--content-width` with `.site-main`, because the two must agree: widen one alone and
     the brand in the header no longer sits above the left edge of the page it belongs to. */
  max-width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex: 0 0 auto;
  box-shadow: var(--shadow-sm);
  object-fit: cover;
  display: block;
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; overflow: hidden; }

/* --- the wordmark -------------------------------------------------------------------------
   Its own colours rather than the site's `--brand` indigo: the lockup is a fixed piece of brand
   artwork that has to match the icon and the printed mark, while `--brand` is a UI token that
   can be retuned for contrast without anyone meaning to redraw the logo. */
/* The dark half of the wordmark. Its own token because it is NOT the brand accent -- it is the
   near-black the mark is drawn in, and it must not move when the accent is retuned. The accent
   half simply uses `--brand`, so the logo and the UI can no longer drift apart. */
:root { --wordmark-ink: #101a2e; }

.brand-title {
  font-weight: 800;
  font-size: 1.60rem;
  letter-spacing: -0.022em;
  color: var(--wordmark-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* The accented half. Inherits everything but colour, so the two halves stay one word optically. */
.brand-title-accent { color: var(--brand); }
.header-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.lang-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}
/* The strapline under the wordmark.

   Deliberately small and lightly tracked. At the previous 0.62rem/0.17em it set about two and a
   half times the width of the word above it, so the lockup read as a caption that had wandered
   out from under its heading. Type size and tracking are what control that ratio -- the words
   themselves are fixed in the template for the same reason. */
.site-header .tagline {
  display: flex;
  align-items: center;
  gap: 0.46em;
  color: var(--text-muted);
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  white-space: nowrap;
  margin: 1px 0 0;
}
/* A full stop already sits on the baseline, so unlike a bullet it needs no vertical correction --
   only the accent colour, and a little weight so it still reads at this size. */
.tagline-dot { color: var(--brand); font-weight: 800; }

.tier-badge { background: var(--brand); color: #fff; }
.tier-badge-trial { background: var(--tier-excellent); color: #fff; }
.tier-badge-starter { background: var(--border); color: var(--text); }
.tier-badge-pro { background: var(--brand); color: #fff; }
.nav-link { color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.88rem; flex: 0 0 auto; }
.nav-link:hover { color: var(--brand); }

/* Header overflow menu — hidden on desktop; holds secondary header links (Pricing) on narrow
   screens where they no longer fit next to the brand. */
.mobile-menu { position: relative; flex: 0 0 auto; display: none; }
.mobile-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.mobile-menu-trigger::-webkit-details-marker { display: none; }
.mobile-menu-trigger::marker { content: ""; }
.mobile-menu-trigger:hover, .mobile-menu[open] .mobile-menu-trigger { border-color: var(--brand); background: var(--brand-light); }
.mobile-menu-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 50;
}
.mobile-menu-item {
  display: block;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.mobile-menu-item:hover { background: var(--bg); }
.mobile-menu-static { color: var(--text-muted); cursor: default; }
.mobile-menu-static:hover { background: none; }
.mobile-region-row { display: flex; align-items: center; gap: 6px; }
.mobile-region > summary { list-style: none; cursor: pointer; }
.mobile-region > summary::-webkit-details-marker { display: none; }
.mobile-region > summary::marker { content: ""; }
.mobile-region[open] > summary { background: var(--bg); }
.mobile-region-key { color: var(--text-muted); }
.mobile-region-chevron { margin-left: auto; padding-left: 12px; }
.mobile-region[open] .mobile-region-chevron { transform: rotate(180deg); }
/* Indented under the row it expands from, so it reads as that row's options. */
.mobile-region-options { margin: 2px 0 4px 14px; padding-left: 8px; border-left: 2px solid var(--border); }
button.mobile-menu-item { width: 100%; border: 0; background: none; font: inherit; font-size: 0.88rem; font-weight: 600; text-align: left; cursor: pointer; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 28px 0;
  /* `stretch` (the default) rather than `start`: every card in a row takes the height of the
     tallest, so tiers with different numbers of features still line up and their `margin-top:
     auto` buttons sit on one baseline. With `start` each card shrank to its own content and the
     cheaper plan's button floated above the others. */
  align-items: stretch;
}
.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.pricing-card-featured { border-color: var(--brand); box-shadow: var(--shadow-md); }
.pricing-card-badge {
  position: absolute;
  top: -12px;
  right: 22px;
  background: var(--brand);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pricing-card h3 { margin: 0; font-size: 1.35rem; }
.pricing-price { margin: 0; font-size: 1.9rem; font-weight: 800; color: var(--text); }
.pricing-price-period { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.pricing-card-badge-free { background: var(--tier-excellent); left: 22px; right: auto; }
.pricing-card-badge-custom { background: var(--tier-moderate); }
.pricing-card-current { font-size: 0.78rem; font-weight: 700; color: var(--brand); margin-top: auto; }
.pricing-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { font-size: 0.92rem; line-height: 1.5; color: var(--text-muted); }
.pricing-features li strong { color: var(--text); font-weight: 700; }
.pricing-card .btn { text-align: center; margin-top: auto; }

/* Add-on card: same card language as a tier (border/radius/shadow/badge), but with its own
   accent color (teal, not the brand purple "Most Popular" already uses) so the two badges read
   as two different *kinds* of thing at a glance, not two competing tiers. */
.pricing-addon-card {
  border-color: var(--tier-good);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.06), var(--surface) 55%);
}
.pricing-card-badge-addon { background: var(--tier-good); }
.pricing-addon-body { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.pricing-addon-info { flex: 1 1 320px; min-width: min(260px, 100%); }
.pricing-addon-info h3 { margin: 0 0 8px; font-size: 1.35rem; }
.pricing-addon-tagline { margin: 0 0 16px; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; max-width: 46ch; }
.pricing-addon-features { gap: 8px; }
.pricing-addon-features li { display: flex; align-items: baseline; gap: 8px; }
.pricing-addon-features li::before { content: "\2713"; color: var(--tier-good); font-weight: 800; flex: 0 0 auto; }
/* Allowed to shrink, and never wider than the card: unshrinkable, the column took the width of its
   longest sentence on one line and ran that sentence out past the card's edge on a phone. */
.pricing-addon-cta { flex: 0 1 auto; max-width: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: min(200px, 100%); }
.pricing-addon-availability { margin: 0 0 4px; font-size: 0.82rem; color: var(--text-muted); }
.pricing-addon-cta .btn { width: 100%; text-align: center; }
.settings-addon-card { margin-bottom: 20px; }
.settings-addon-card .pricing-addon-cta { align-items: stretch; }
.settings-addon-card .pricing-addon-cta form { width: 100%; }

.pricing-select-card { cursor: pointer; }
.pricing-select-card input[type="radio"] { position: absolute; top: 18px; right: 18px; width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.pricing-select-card:has(input:checked) { border-color: var(--brand); box-shadow: var(--shadow-md); background: var(--brand-light); }
.pricing-card-disabled { opacity: 0.55; cursor: not-allowed; }
.pricing-card-disabled input[type="radio"] { cursor: not-allowed; }
.pricing-card-locked-note { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); font-style: italic; margin-top: auto; }
.settings-plan-submit { margin-top: 20px; }
.choose-plan-actions { display: flex; align-items: center; gap: 16px; margin-top: 8px; flex-wrap: wrap; }
.choose-plan-skip { color: var(--text-muted); font-size: 0.85rem; }

/* Profile menu */
.profile-menu { position: relative; flex: 0 0 auto; }
.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.profile-trigger::-webkit-details-marker { display: none; }
.profile-trigger::marker { content: ""; }
.profile-trigger:hover, .profile-menu[open] .profile-trigger { border-color: var(--brand); background: var(--brand-light); }
.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: block;
  flex: 0 0 auto;
}
.profile-chevron { color: var(--text-muted); font-size: 0.65rem; transition: transform 0.15s ease; }
.profile-menu[open] .profile-chevron { transform: rotate(180deg); }


.profile-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 230px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 50;
}
.profile-dropdown-header {
  padding: 8px 10px 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.profile-dropdown-email {
  display: block;
  width: 100%;
  min-width: 0;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.profile-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}
.profile-dropdown-item:hover { background: var(--bg); }
.profile-dropdown-form { margin: 0; }
.profile-dropdown-logout { color: var(--sev-high); }

/* Region control in the header: which prices the site shows. A pill like the profile trigger --
   a menu for a visitor, a plain badge for a signed-in customer, whose region is their billing
   currency and not a preference. */
.region-menu { position: relative; flex: 0 0 auto; }
.region-trigger,
.region-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}
.region-trigger {
  cursor: pointer;
  list-style: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.region-trigger::-webkit-details-marker { display: none; }
.region-trigger::marker { content: ""; }
.region-trigger:hover, .region-menu[open] .region-trigger { border-color: var(--brand); background: var(--brand-light); }
.region-menu[open] .profile-chevron { transform: rotate(180deg); }
.region-badge { background: var(--bg); color: var(--text-muted); cursor: default; }
.region-icon { flex: 0 0 auto; color: var(--brand); }
/* The flag's white band disappears against a white pill without an edge. */
.region-flag { border-radius: 2px; box-shadow: 0 0 0 1px var(--border); }
.region-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 50;
}
.region-dropdown-heading {
  margin: 4px 10px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.region-choice { display: flex; align-items: center; gap: 10px; }
.region-choice.is-current { background: var(--brand-light); color: var(--brand-dark); }

@media (max-width: 560px) {
  .site-header .brand-copy { display: none; }
  .site-header .header-lang-badge { display: none; }
  /* Moved into the hamburger with the language, as it would crowd the brand. */
  .site-header .region-menu,
  .site-header .region-badge { display: none; }
  .site-header .nav-link { display: none; }
  .mobile-menu { display: block; }
}

.site-main { flex: 1 0 auto; width: 100%; max-width: var(--content-width); margin: 0 auto; padding: 32px 20px 80px; }
.site-footer { text-align: center; color: var(--text-muted); font-size: 0.85rem; padding: 24px; border-top: 1px solid var(--border); margin-top: 24px; }
/* Cookie choice (`_tracking_scripts.html`). Accept is the app's filled button, Decline its outlined
   one: a different colour is allowed, a Decline that is faint, smaller or a click further away is
   not (regulators call that a nudged consent). So both share size, shape and row, and Decline keeps
   full contrast. A slim frosted bar fixed to the bottom, so it never moves the page: it starts below
   the screen and slides up once the hero has painted (`.is-in`), the landing page's first view its
   own. Content kept to the page's width, a 16px gutter on a phone, clear of an iPhone's home bar. */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 16px;
  padding: 10px max(16px, calc((100% - 1100px) / 2)); padding-bottom: max(10px, env(safe-area-inset-bottom));
  background: var(--surface); background: color-mix(in srgb, var(--surface) 86%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  color: var(--text); border-top: 1px solid var(--border); box-shadow: 0 -4px 18px rgba(16, 24, 40, 0.06);
  font-size: 13px; line-height: 1.5;
  transform: translateY(110%); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cc.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) { .cc { transition: none; } }
.cc-text { flex: 0 1 auto; min-width: 0; margin: 0; }
.cc-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cc .cc-btn { font-size: 13px; padding: 6px 14px; border-radius: 8px; min-width: 84px; }
@media (max-width: 480px) { .cc-actions { width: 100%; } .cc-btn { flex: 1; } }
.site-footer p { margin: 4px 0; }
.site-footer .copyright { font-size: 0.78rem; }
.site-footer .copyright a { color: var(--text-muted); text-decoration: underline; }
.site-footer .copyright a:hover { color: var(--brand); }
.site-footer .footer-links { font-size: 0.78rem; }
.site-footer .footer-links a { color: var(--text-muted); text-decoration: underline; }
.site-footer .footer-links a:hover { color: var(--brand); }

/* Landing */
/* Hero ground.
   Deliberately no photograph. A stock image of people at laptops says nothing about an audit
   tool and reads as filler on a technical B2B page; the only image worth this space is the
   product itself. Until there is one, depth comes from structure: a faint measured grid —
   a quiet nod to the thing being sold, a page measured against a standard — under the existing
   brand glow, masked so it dissolves rather than ending on a hard line.
   Pure CSS, so there is no asset to ship, no request to make, and it stays crisp at any DPI. */
.hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 60px 24px 44px;
  margin: -32px -20px 8px;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--brand-light) 0%, transparent 70%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, rgba(67, 56, 202, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(67, 56, 202, 0.055) 1px, transparent 1px);
  background-size: 56px 56px;
  /* Fades on both axes so the grid never meets an edge — an abrupt stop would read as a
     rendering fault rather than a texture. */
  -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 25%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 70% 75% at 50% 25%, #000 20%, transparent 78%);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-light);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
/* The one line the page is built around, so it is sized to carry that on its own now the eyebrow
   above it is gone. `clamp` keeps it readable on a phone and lets it reach display size on a
   desktop; the tighter line-height and tracking are what stop large type looking loose and
   airy, and `text-wrap: balance` keeps the two lines close to even instead of leaving one word
   stranded. */
/* Sized to sit on ONE line. The headline has 972px to live in (the 1020px column less the hero's
   own padding), and at the previous 3.75rem it needed more than that in Inter, so it broke in two.
   The ceiling and the `vw` step are both set to keep it under that measure rather than just under
   it at one particular window width.

   It is still allowed to wrap on a phone: holding one line down there would mean type too small to
   carry the page, which is the opposite of the point. `text-wrap: balance` is what makes that
   wrapped case break evenly instead of stranding a word. */
.hero h1 {
  font-size: clamp(2.1rem, 5.3vw, 3.63rem);
  line-height: 1.06;
  /* The negative inline margin is what buys the last 20px. At this size the headline needs very
     nearly the whole 1020px column, and the hero's own 24px of side padding is the difference
     between one line and two — but that padding still belongs to everything else in the hero, so
     only the headline reaches past it. */
  margin: 0 -10px 18px;
  font-weight: 800;
  /* Tighter than before because the type is larger: tracking that reads as normal at 2rem reads
     as gappy at 3.6rem, and the space it saves is what keeps the line intact. */
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.hero-sub { color: var(--text-muted); max-width: 660px; margin: 0 auto 30px; font-size: 1.08rem; }
.hero-note { color: var(--text-muted); font-size: 0.85rem; margin-top: 12px; }
/* The AEO variant carries an inline badge, which needs centring against the smaller note text. */
.hero-note .badge-addon { margin-right: 6px; vertical-align: middle; }

.form-error { color: var(--sev-high); font-weight: 600; width: 100%; text-align: center; }
.is-hidden { display: none; }
.form-success { color: var(--tier-excellent); font-weight: 600; width: 100%; }
.card .form-error, .card .form-success { text-align: left; margin-bottom: 10px; }

/* Sign-in, sign-up and every one-step account page (`au-`, built by the `au_*` macros): one
   centred card on the same background as the signed-in pages, so leaving the app to log in no
   longer looks like a different product. */
.au { padding: 44px 0 72px; }
.au .ap-wrap { max-width: 480px; }
.au-card { padding: 30px 30px 26px; }
.au-card h1 { margin: 0 0 6px; font-size: 26px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.au-sub { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
.au-sub strong { color: var(--ink); overflow-wrap: anywhere; }
.au-form { display: grid; gap: 14px; }
.au-form .ap-btn { width: 100%; margin-top: 4px; }
.au-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.au-label-row a { font-size: 13px; font-weight: 600; }
.au-card .st-field > label, .au-label-row label { font-size: 13px; font-weight: 700; color: var(--ink); }
.au-pw { position: relative; }
.au-pw input { padding-right: 68px; }
.au-pw button { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); font: inherit; font-size: 12.5px; font-weight: 700;
  color: var(--brand); background: none; border: 0; padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.au-pw button:hover { background: var(--brand-light); }
.au-pw button:focus-visible { outline: 2px solid var(--brand); }
.au-alert { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 12px; font-size: 14px; margin: 0 0 16px; border: 1px solid; }
.au-alert svg { width: 18px; height: 18px; flex: none; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.au-alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.au-alert-ok { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.au-next { display: flex; gap: 10px; align-items: center; padding: 10px 12px; margin: 0 0 18px; border-radius: 12px; background: #eff6ff; border: 1px solid #dbeafe; color: #1e3a8a; font-size: 13.5px; }
.au-next svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--brand); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.au-next b { overflow-wrap: anywhere; }
.au-legal { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); text-align: center; }
.au-foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; font-size: 14px; color: var(--muted); }
.au-foot a { font-weight: 700; white-space: nowrap; }
/* A one-step page: an icon, what happened, and the one thing to do next. */
.au-state { text-align: center; }
.au-state .au-icon { width: 56px; height: 56px; margin: 4px auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-light); }
.au-state .au-icon svg { width: 26px; height: 26px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.au-state.is-bad .au-icon { background: #fef2f2; }
.au-state.is-bad .au-icon svg { stroke: #dc2626; }
.au-state.is-ok .au-icon { background: #f0fdf4; }
.au-state.is-ok .au-icon svg { stroke: #16a34a; }
.au-state .au-sub { margin-bottom: 18px; }
.au-actions { display: grid; gap: 10px; }
.au-state-start { text-align: left; }
.au-state-start .au-icon { margin-left: 0; }
.au-actions .ap-btn { width: 100%; }
.au-actions .ap-btn-ghost { font-size: 14.5px; padding: 11px 14px; }
.au-tips { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: #f8fafc; border: 1px solid var(--line); text-align: left; font-size: 13.5px; color: var(--muted); }
.au-tips ul { margin: 6px 0 0; padding-left: 18px; }
@media (max-width: 560px) {
  .au { padding: 18px 0 40px; }
  .au .ap-wrap { padding: 0 16px; }
  .au-card { padding: 22px 18px 20px; }
  .au-card h1 { font-size: 22px; }
}

/* Terms and Privacy (`lg-`, legal_base.html): the same background and tabs as Settings, a
   contents list beside the document, and the text held to a readable measure. */
.lg { padding: 40px 0 72px; }
.lg .ap-wrap { max-width: 1060px; }
.lg-head h1 { margin: 16px 0 6px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.lg-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
/* The date on a line of its own under the intro, which runs the page's width on one line. */
.lg-head .lg-updated { margin-top: 4px; font-size: 14px; }
.lg-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.lg-toc { position: sticky; top: 16px; }
.lg-toc details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.lg-toc summary { font-weight: 800; font-size: 13px; color: var(--ink); cursor: pointer; text-transform: uppercase; letter-spacing: .04em; }
.lg-toc ol { margin: 10px 0 2px; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; }
.lg-toc a { color: var(--muted); text-decoration: none; }
.lg-toc a:hover { color: var(--brand); text-decoration: underline; }
.lg-doc { padding: 28px 32px; }
.lg-doc section { scroll-margin-top: 16px; max-width: 72ch; }
.lg-doc section + section { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.lg-doc h2 { margin: 0 0 10px; font-size: 19px; font-weight: 800; color: var(--ink); }
.lg-doc p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.7; color: #334155; }
.lg-doc p:last-child { margin-bottom: 0; }
.lg-doc ul { margin: 0 0 12px; padding-left: 20px; font-size: 15.5px; line-height: 1.7; color: #334155; }
.lg-doc li + li { margin-top: 6px; }
/* Wrapped, not scrolled: `.ap` clips overflow, so the crawler page's user agent ran off a phone's
   edge with no way to read the rest of it. */
.lg-doc pre { margin: 0 0 12px; padding: 12px 14px; background: #f1f5f9; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.lg-doc code { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .lg-grid { grid-template-columns: 1fr; }
  .lg-toc { position: static; }
}
@media (max-width: 560px) {
  .lg { padding: 18px 0 40px; }
  .lg .ap-wrap { padding: 0 16px; }
  .lg-doc { padding: 20px 18px; }
}

/* Account / admin */
.limit-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin-top: 12px; }
/* `max-width`/`min-width: 0`: a label is a flex item, so by default it is as wide as its widest
   content -- a select sizes itself to its longest option ("South Georgia and the South Sandwich
   Islands"), and the admin's country picker ran past a phone's edge. Capped, the select's own
   `max-width: 100%` then fits it to the card. */
.limit-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; color: var(--text-muted); font-weight: 600;
  max-width: 100%; min-width: 0; }
.limit-form label.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  /* Matches the height of a sibling `label > input` pair (label line + input box) so the
     checkbox sits on the same baseline as the other fields instead of floating above them. */
  align-self: flex-end;
  padding-bottom: 8px;
}
.limit-form label.checkbox-label input { width: auto; }
.limit-form input { padding: 8px 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-family: inherit; width: 140px; }
/* A bare hint span (e.g. "(0 = unlimited)") sitting beside `label`/`.checkbox-label` siblings —
   those are taller (label line + input, or checkbox + text), and `.limit-form`'s `align-items:
   end` otherwise plants this single line of text at the very bottom of that taller row instead
   of level with the controls it's annotating. */
.limit-form > .muted { align-self: center; }
/* Except right after the checkbox row — that row is already bottom-aligned via `.checkbox-label`
   above, so centering this hint instead would misalign it from the "Most Popular" text it
   annotates. Match the checkbox row's own alignment so both sit on the same line. */
.limit-form label.checkbox-label + .muted { align-self: flex-end; padding-bottom: 8px; }
/* A hint that gets a line of its own. Inline, a short one became a flex item beside the field and
   pushed the next field to the far edge of the card; and on the Add-Ons rows the hint before Save
   was short enough that Save sat on the same line instead of below it, as it does on Tiers. */
.limit-form > .muted.limit-form-note { flex-basis: 100%; align-self: auto; padding-bottom: 0; }
.limit-form button { padding: 9px 18px; border-radius: 999px; border: none; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; font-family: inherit; }
/* A destructive `.limit-form` submit (e.g. "Delete Tier") must not blend in with the brand-
   colored "Save"/"Create" buttons the base `.limit-form button` rule styles every button as. */
.limit-form button.btn-danger { background: var(--sev-high); }
.limit-form button.btn-danger:hover { background: #b91c1c; }
.tier-row { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; background: var(--bg); }
.tier-row h3 { margin: 0 0 4px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.tier-select { padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-family: inherit; font-size: 0.85rem; background: var(--surface); color: inherit; }
/* Styles this form's own bare buttons, NOT anything already carrying `.btn`.
   `.inline-form button` is an element selector (0,1,1), so it outranks every `.btn` class rule
   (0,1,0) and was overriding their background and colour. A `.btn.btn-danger-solid` in here came
   out as a blue outline at rest, then on hover `.btn-danger-solid:hover` (also 0,1,1, and later
   in this file) won the background while the blue text stayed — red fill, blue label. Excluding
   `.btn` lets the two systems coexist instead of fighting over the same declarations. */
.inline-form button:not(.btn) { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--brand); background: transparent; color: var(--brand); font-weight: 600; cursor: pointer; font-family: inherit; font-size: 0.82rem; white-space: nowrap; }
/* Base checkbox+label pairing: an unstyled `<label>` lets the checkbox and its text drift onto
   different baselines (browser default inline layout). `.limit-form` further down overrides
   this with its own bottom-alignment quirk; everywhere else (e.g. `.inline-form`) just needs
   the checkbox and its text vertically centered against each other and the row it sits in. */
.checkbox-label { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.checkbox-label input[type="checkbox"] { width: auto; margin: 0; }
/* A destructive action following a definition list on the admin user page. It sat flush against
   the last row, reading as part of the data rather than as something you do to it. */
.kv-dl + .inline-form {
  margin-top: 14px;
}

.inline-form button.btn-danger:not(.btn) { border-color: var(--sev-high); color: var(--sev-high); }
.inline-form button.btn-danger:not(.btn):hover { background: #fee2e2; }

/* The signup bars' tooltip (admin dashboard). */
.ad-spark i[data-tooltip]:hover::after,
.ad-spark i[data-tooltip]:focus-visible::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 5px 9px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 5;
  pointer-events: none;
}
.ad-spark i[data-tooltip]:hover::before,
.ad-spark i[data-tooltip]:focus-visible::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
  z-index: 5;
  pointer-events: none;
}
.activity-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.activity-list li { padding-bottom: 10px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 3px; }
.activity-list li:last-child { border-bottom: none; padding-bottom: 0; }
.activity-primary { font-weight: 600; font-size: 0.9rem; overflow-wrap: anywhere; text-decoration: none; color: var(--text); }
a.activity-primary { color: var(--brand); }
a.activity-primary:hover { text-decoration: underline; }
.activity-meta { font-size: 0.78rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }



/* Admin user management */
.user-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; align-items: center; }
.user-search { flex: 1 1 220px; padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-family: inherit; font-size: 0.9rem; }
.user-toolbar select { padding: 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); font-family: inherit; font-size: 0.9rem; background: var(--surface); }
.user-toolbar button { padding: 9px 18px; border-radius: 999px; border: none; background: var(--brand); color: #fff; font-weight: 700; cursor: pointer; font-family: inherit; }
/* `input[type="date"]` renders with the browser's own border, padding and font unless every one
   is overridden, so an unstyled one sits next to the search boxes looking like it belongs to a
   different form. These match `.user-search`/`select` exactly; `line-height` is pinned because
   the native picker icon otherwise makes the field a couple of pixels taller than its
   neighbours, which is enough to break the toolbar's alignment. */
.user-toolbar input[type="date"] {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 0.9rem;
  line-height: 1.2;
  color: var(--text);
  background: var(--surface);
}
.user-toolbar input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.5; }
.user-toolbar input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
/* Two identical empty date boxes side by side read as two unrelated filters. Grouped with a
   dash between them, they read as the one range they are. */
.date-range { display: inline-flex; align-items: center; gap: 8px; }
.date-range-sep { color: var(--text-muted); font-size: 0.9rem; }
.user-clear-link { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.user-clear-link:hover { text-decoration: underline; }
/* Created date folded under the Status pill rather than its own column — frees up a whole
   column's width for Email, which otherwise gets squeezed narrow enough to wrap mid-word once
   the never-wrapping Actions row (below) claims the space it needs. */
.user-created-date { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; }
/* Two rows: the tier-select + "Require payment" checkbox on top, Update and the row's overflow
   menu directly below with no gap between them — rather than one wide row competing with Email
   for the table's width. Update's `<button form="...">` attribute (see admin_users.html) lets
   it live in the actions row while still submitting the tier-select form above it. Every other
   per-user action (View, Activate/Deactivate, Cancel Pending, Make Admin/Member) lives inside
   `.row-menu` below instead of its own button, so a row never has more than two controls. */
.user-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  /* Pulls the row's first control up so its *label* sits on the same line as the plain text in
     Email/Tier/Role/Status. Every cell is `vertical-align: top`, so all five content boxes start
     at the same y — but a select/button is ~34px tall against a ~22px line of text, and centres
     its label inside that taller box, leaving it visibly low. This is half that difference. */
  margin-top: -6px;
}
/* The tier form carries only a hidden `return_to`; its visible controls live outside it and
   attach via `form="tier-form-…"`. Left `display: block` it was still a flex item, so it
   contributed a row plus the 8px column gap and pushed every control down by another 8px. A
   `display: none` form still submits its hidden inputs and its externally-associated controls
   (verified in Chromium), so nothing is lost by taking it out of the layout entirely. */
.user-actions > form.inline-form { display: none; }
.user-actions-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 10px; }
.user-actions .inline-form { white-space: nowrap; flex-shrink: 0; }
.user-actions .inline-form button { min-width: 100px; text-align: center; }
.user-view-link {
  display: inline-flex;
  align-items: center;
  color: var(--brand);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.user-view-link:hover { text-decoration: underline; }
.pill-admin { background: #ede9fe; color: #5b21b6; }

/* Per-row overflow menu (Users table): a `position: fixed` dropdown, not `absolute` — the
   table is wrapped in `.table-scroll` (`overflow-x: auto`), which also makes `overflow-y`
   compute to `auto` and would clip an absolutely-positioned dropdown that opens past the
   table's own bottom edge (true for most rows, since it opens downward). `fixed` positions
   relative to the viewport instead, so `.table-scroll` can't clip it; admin_users.html positions
   it in JS on open (a plain `top`/`left` via `top: 100%` doesn't work without a positioned
   ancestor once the child is `fixed`). */
.row-menu { position: relative; flex: 0 0 auto; }
.row-menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  list-style: none;
}
.row-menu-trigger::-webkit-details-marker { display: none; }
.row-menu-trigger::marker { content: ""; }
.row-menu-trigger:hover, .row-menu[open] .row-menu-trigger { border-color: var(--brand); background: var(--brand-light); }
.row-menu-dropdown {
  position: fixed;
  min-width: 190px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 8px;
  z-index: 60;
}
.row-menu-form { margin: 0; }
.row-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 600;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
  white-space: nowrap;
}
.row-menu-item:hover { background: var(--bg); }
.row-menu-item-danger { color: var(--sev-high); }
.user-empty-state { text-align: center; padding: 18px 0 4px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.pagination a { color: var(--brand); font-weight: 600; text-decoration: none; font-size: 0.9rem; }
.pagination a:hover { text-decoration: underline; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.btn:hover { background: var(--brand-dark); }
/* 1px top/bottom less padding than `.btn` to offset its 1px border on each side — so a ghost
   button is exactly the same overall height as every other `.btn`, not 2px taller. */
.btn-ghost { background: transparent; color: var(--brand); border: 1px solid var(--brand); box-shadow: none; padding: 9px 20px; }
.btn-ghost:hover { background: var(--brand-light); }
/* `.btn-ghost` in the danger colour: same shape, weight, padding and hover behaviour, so a
   destructive action sits level with the ordinary buttons beside it instead of being a solid
   red slab among outlines. Still red, because it is the only thing distinguishing "cancel this
   person's subscription immediately, no refund" from "go back". */
.btn-danger-ghost { background: transparent; color: var(--sev-high); border: 1px solid var(--sev-high); box-shadow: none; padding: 9px 20px; }
.btn-danger-ghost:hover { background: #fee2e2; }
.btn-danger-ghost.btn-small { padding: 5px 14px; }
.btn-small { padding: 6px 14px; font-size: 0.85rem; }
.btn-danger-solid { background: var(--sev-high); }
.btn-danger-solid:hover { background: #b91c1c; }

/* Settings */
/* Avatar characters (`static/avatars/<key>.svg`, listed in `accounts_db.AVATARS`). */
.avatar-img { display: block; border-radius: 50%; box-shadow: var(--shadow-sm); }
.avatar-preview { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; max-width: 420px; margin: 2px 0 8px; }
.avatar-preview > div { min-width: 0; }
.avatar-preview b, .avatar-preview small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-preview small { color: var(--text-muted); }
.avatar-picker { display: flex; flex-wrap: wrap; gap: 10px; margin: 2px 0 4px; }
.avatar-option { position: relative; cursor: pointer; display: block; border-radius: 50%; }
.avatar-option input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.avatar-option .avatar-img { outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 0.15s ease, transform 0.15s ease; }
.avatar-option:hover .avatar-img { transform: translateY(-2px); }
.avatar-option input:checked ~ .avatar-img { outline-color: var(--brand); }
/* The radio is transparent, so without this a keyboard user moving through the set saw no sign
   of where they were: only the chosen one ever drew a ring. */
.avatar-option input:focus-visible ~ .avatar-img { outline: 2px dashed var(--brand); }
.avatar-tick { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 11px; display: none; place-items: center; border: 2px solid var(--surface); }
.avatar-option input:checked ~ .avatar-tick { display: grid; }
/* FAQ. `<details>` rather than a grid of cards, so the page ends on something that reads instead
   of another wall -- and so an answer engine still gets every answer in the markup whether or not
   it executes anything. */
.faq { max-width: 760px; margin: 72px auto 0; }
.faq h2 { text-align: center; margin-bottom: 8px; }
.faq-list { margin-top: 28px; }
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 4px 0;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  padding: 16px 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.faq-item summary::after {
  content: "+";
  flex: none;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 0.15s ease;
}
/* U+2212 MINUS SIGN as a CSS escape, not a literal character: written literally it was
   mangled into U+0091 -- a C1 control with no glyph in any font -- and the open accordion
   showed a missing-glyph box next to a stray "2". An escape is plain ASCII in the file, so
   no encoding round-trip can corrupt it. Same convention as the checkmark above. */
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p {
  margin: 0 0 18px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 68ch;
}

@media (prefers-reduced-motion: reduce) {
  .faq-item summary::after { transition: none; }
}


/* The per-website schedule switch on the account page. Sits inside a domain pill, so it borrows
   the pill's own action styling and only adds the on/off state colour. */
/* The per-website re-audit switch. Three states rather than two, because the scheduler accepts
   weekly as well as monthly and the toggle only ever sent monthly.

   Separate one-button forms rather than a `<select>` that needs JavaScript to submit: the state
   is visible at a glance without opening anything, and it still works with scripting off. */
.schedule-form { display: inline; }
.schedule-switch {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  margin-left: 6px;
  vertical-align: middle;
}
.schedule-switch-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-right: 5px;
}
.schedule-option {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 2px 8px;
  font: inherit;
  font-size: 0.78rem;
  line-height: 1.5;
  cursor: pointer;
  color: var(--text-muted);
}
.schedule-form:first-of-type .schedule-option { border-radius: 999px 0 0 999px; }
.schedule-form:last-of-type .schedule-option { border-radius: 0 999px 999px 0; }
.schedule-option:hover { color: var(--text); background: var(--brand-light); }
.schedule-option.is-current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 600;
}
.schedule-option:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* Failed / expired report */
/* The landing hero's wash, so the page reads as calm rather than unfinished. Negative margins
   cancel `.site-main`'s padding so the wash reaches the full width; the padding is given back on
   the inside. (The progress page is an audit-page card now, `pp-` below.) */
.failed-panel {
  text-align: center;
  margin: -32px -20px 8px;
  padding: 56px 24px 70px;
  background:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--brand-light) 0%, transparent 70%),
    var(--bg);
}

/* Quick nav */
.report-nav {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 10px 4px;
  margin-bottom: 20px;
  position: sticky;
  top: 61px;
  background: var(--bg);
  z-index: 10;
  scrollbar-width: thin;
}
.report-nav a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}
.report-nav a:hover { border-color: var(--brand); color: var(--brand); }

/* Cards / sections */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 110px;
}
.card h2 {
  margin-top: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card h2::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--brand);
  flex: 0 0 auto;
}
.card-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.card-header-row .btn { flex: 0 0 auto; white-space: nowrap; }
.section-source-badge {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.section-sub { color: var(--text-muted); margin-top: -8px; }
.warnings-card { border-color: var(--sev-medium); }

/* The monthly-allowance notice. Stronger than `.warnings-card` because it is the one message on
   this page that explains why parts of the report look different from the customer's last one,
   and the only one they can act on. */
.quota-notice-card { border-color: var(--sev-medium); border-left-width: 4px; }
/* A part of the AEO run that did not complete: named, so a missing section reads as explained
   rather than forgotten. */
/* Which kind of question this is. Muted, so it labels the question without competing with it. */
.visibility-intent {
  display: inline-block;
  margin-right: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  vertical-align: 2px;
}
/* OpenRouter credit on the admin dashboard; the low state borrows the notice amber. */
.openrouter-card.is-low { border-color: var(--sev-medium); border-left-width: 4px; }
.openrouter-balance { margin: 0 0 8px; font-size: 1.6rem; font-weight: 800; }
.openrouter-balance .muted { font-size: 0.9rem; font-weight: 500; }
.openrouter-warning { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; color: var(--sev-medium); font-weight: 600; }
.openrouter-meta { margin: 0; font-size: 0.8rem; }
.openrouter-usage { margin: 6px 0 8px; max-width: 520px; }
.openrouter-usage td:not(:first-child), .openrouter-usage th:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.visibility-intent-summary { margin: 4px 0 10px; font-size: 0.9rem; color: var(--text-muted); }
.visibility-question-set { margin: 0 0 10px; font-size: 0.85rem; color: var(--text-muted); }
/* An informational line above a form: who wrote what the form holds. */
.form-note { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg); font-size: 0.9rem; color: var(--text-muted); }
.visibility-question-set.is-warning { padding: 8px 12px; border-left: 4px solid var(--sev-medium); background: var(--bg); color: var(--text); }
.aeo-incomplete {
  margin: 0 0 16px;
  padding: 10px 14px;
  border-left: 4px solid var(--sev-medium);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.9rem;
}
.quota-notice-card h2 { color: var(--sev-medium); }
.quota-notice-card p { margin: 0 0 10px; }
.quota-notice-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }

.billing-status-banner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 18px;
}
.billing-status-banner p { margin: 0 0 8px; }
.billing-status-banner p:last-child { margin-bottom: 0; }
.card .billing-status-banner .billing-status-heading { margin: 0 0 8px; font-size: 0.95rem; }
.billing-status-banner-warn { border-color: var(--sev-medium); }
.billing-status-banner-danger { border-color: var(--sev-high); }

.confirm-dialog {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(16, 24, 40, 0.18);
  padding: 24px;
  max-width: 420px;
  width: calc(100% - 40px);
  background: var(--surface);
  color: inherit;
}
.confirm-dialog::backdrop { background: rgba(16, 24, 40, 0.55); }
/* pre-line: a message may be a question plus a line per consequence (the admin's tier and add-on
   changes without payment). Single-line messages read exactly as before. */
.confirm-dialog p { margin: 0 0 20px; font-size: 0.98rem; line-height: 1.5; white-space: pre-line; }
.confirm-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Hero score */
.report-hero {
  display: flex;
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, var(--brand-light), var(--surface) 60%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 8px;
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}
.report-hero-info h1 { margin: 0 0 4px; font-size: 1.9rem; }
.report-url, .report-date { margin: 2px 0; color: var(--text-muted); }
.report-url a { word-break: break-all; }
.download-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.projected-score { margin: 8px 0 0; font-size: 0.95rem; }

/* Report tabs — only rendered when the AEO add-on report is present, since that's what makes a
   single-scroll report unmanageably long. Panels are visible by default so a no-JS or printed
   report still shows everything; the tab script hides the inactive ones. */
.report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 18px;
  border-bottom: 1px solid var(--border);
}
.report-tab {
  padding: 11px 20px;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  margin-bottom: -1px;
}
.report-tab:hover { color: var(--text); background: var(--brand-light); }
.report-tab.is-active { color: var(--brand); border-bottom-color: var(--brand); }
.report-tab .badge-addon { margin-right: 6px; vertical-align: middle; }
.report-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

@media (max-width: 600px) {
  .report-tab { flex: 1 1 auto; padding: 11px 12px; text-align: center; }
}

/* Product Description facts. A definition list rather than `.stat-tile`s, which are sized for
   short numeric values and wrap badly around phrases like "dating, gaming and marketplace
   platforms". */
.profile-facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 18px;
  margin: 14px 0 0;
}
.profile-facts dt {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  padding-top: 2px;
}
.profile-facts dd { margin: 0; font-size: 0.95rem; }

/* Competitive Position — the audited site's own row is tinted so it reads as the baseline the
   other rows are measured against, rather than as just another entry in the list. */
.competitor-row-own > td { background: var(--brand-light); }
.competitor-row-own > td:first-child { border-top-left-radius: 6px; border-bottom-left-radius: 6px; }
.competitor-row-own > td:last-child { border-top-right-radius: 6px; border-bottom-right-radius: 6px; }
.competitor-table td { vertical-align: middle; }

.badge-verdict-ahead { background: #dcfce7; color: #166534; }
.badge-verdict-tied { background: #e5e7eb; color: #374151; }
.badge-verdict-behind { background: #fee2e2; color: #991b1b; }

@media (max-width: 520px) {
  .profile-facts { grid-template-columns: 1fr; gap: 2px; }
  .profile-facts dd { margin-bottom: 10px; }
}

/* Re-audit progress: score delta in the hero, plus the fixed/regressed/outstanding lists in the
   "Since Your Last Audit" section. Green/red here carry the same meaning as `.adjustment-positive`
   /`.adjustment-negative` already do elsewhere in the report. */
.score-delta-line { margin: 8px 0 0; font-size: 0.95rem; color: var(--text-muted); }
.score-delta {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-right: 4px;
}
.score-delta-up { background: #dcfce7; color: #166534; }
.score-delta-down { background: #fee2e2; color: #991b1b; }
.score-delta-flat { background: #e5e7eb; color: #374151; }

/* "Since Your Last Audit" score cards. A dedicated card rather than `.stat-tile` because the
   change is the message here — the tile buries it in muted subtext, which reads as an afterthought
   when it is the one number a returning customer opens the report for. */
.delta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 16px 0 4px;
}
.delta-card {
  border: 1px solid var(--border);
  border-left: 3px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--bg);
}
.delta-card-up { border-left-color: #16a34a; }
.delta-card-down { border-left-color: #dc2626; }
.delta-card-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.delta-card-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 6px 0 4px;
  /* Digits line up across the two cards instead of drifting with glyph widths. */
  font-variant-numeric: tabular-nums;
}
.delta-card-unit { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-left: 1px; }
.delta-card-change {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.delta-card-up .delta-card-change { color: #166534; }
.delta-card-down .delta-card-change { color: #991b1b; }
.delta-card-prev { font-weight: 500; color: var(--text-muted); }

/* Supporting evidence under an aggregated progress line (e.g. which crawlers changed). Deliberately
   quiet: it substantiates the summary above without competing with it for attention. */
.progress-evidence {
  margin: 8px 0 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Progress state blocks. Each state is bounded and counted so the shape of the result reads before
   any single line does; items are cards in a grid rather than a bulleted column, which used the
   full width and stopped the section looking like a to-do list. */
.progress-block { margin-top: 18px; }
.progress-block-head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.progress-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}
.progress-block-title {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
}
.progress-block-count {
  margin-left: auto;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}
.progress-item {
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-size: 0.9rem;
  line-height: 1.45;
}
.progress-block-fixed .progress-block-icon { background: #dcfce7; color: #166534; }
.progress-block-fixed .progress-item { border-left-color: #16a34a; }
.progress-block-regressed .progress-block-icon { background: #fee2e2; color: #991b1b; }
.progress-block-regressed .progress-item { border-left-color: #dc2626; }
.progress-block-open .progress-block-icon { background: #e5e7eb; color: #4b5563; }
.progress-block-open .progress-item { border-left-color: #cbd5e1; }

/* E-E-A-T breakdown */
.eeat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.eeat-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; background: var(--bg); }
.eeat-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.eeat-label { font-weight: 700; }
.eeat-score { font-size: 1.3rem; font-weight: 800; color: var(--brand); }

.score-gauge {
  --tier-color: var(--tier-needs-attention);
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: conic-gradient(var(--tier-color) calc(var(--score) * 1%), rgba(0, 0, 0, 0.08) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.score-gauge-inner {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
/* Subsection variant — same component, visibly subordinate to the report's headline gauge. */
.score-gauge-sm { width: 124px; height: 124px; box-shadow: var(--shadow-sm); }
.score-gauge-sm .score-gauge-inner { width: 96px; height: 96px; }
.score-gauge-sm .score-number { font-size: 1.7rem; }
.score-gauge-sm .score-max { font-size: 0.75rem; }

.score-number { font-size: 2.4rem; font-weight: 800; }
.score-max { color: var(--text-muted); font-size: 0.9rem; }
.score-tier { text-align: center; font-weight: 700; margin-top: 10px; }

.tier-excellent { --tier-color: var(--tier-excellent); color: var(--tier-excellent); }
.tier-good { --tier-color: var(--tier-good); color: var(--tier-good); }
.tier-moderate { --tier-color: var(--tier-moderate); color: var(--tier-moderate); }
.tier-below-average { --tier-color: var(--tier-below-average); color: var(--tier-below-average); }
.tier-needs-attention { --tier-color: var(--tier-needs-attention); color: var(--tier-needs-attention); }

/* Scorecard grid */
.scorecard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.score-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  border-top: 4px solid var(--tier-color, var(--border));
  background: var(--bg);
}
.score-card-label { display: block; font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.score-card-value {
  display: block;
  /* Shrinks as the rendered text gets longer (`--len`, the character count, set inline per
     value) so a big currency/count figure doesn't overflow or force the card wider — a plain
     fixed size looks great for "7" but breaks for "₹1,23,456.78". Never below 0.85rem (still
     legible; a very long value wraps onto a second line at that size rather than shrinking
     further) or above the original 2rem (short values look exactly as before). */
  font-size: clamp(0.85rem, calc(2.3rem - 0.075rem * var(--len, 3)), 2rem);
  font-weight: 800;
  margin: 2px 0;
  overflow-wrap: break-word;
}
.score-card-tier { display: block; font-size: 0.78rem; font-weight: 700; }
.score-card-detail { display: block; font-size: 0.72rem; color: var(--text-muted); font-weight: 600; margin-top: 4px; }
.score-card-detail-over { color: var(--sev-high); }

/* Tables */
.data-table { width: 100%; border-collapse: collapse; margin-top: 14px; }
.data-table th, .data-table td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  vertical-align: top;
}
.data-table th { color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; }
.data-table tbody tr:hover { background: var(--bg); }

/* Stacked phone layout for a wide table — opt in with `.data-table-stack` alongside `.data-table`.
   A five-column table in a ~290px card cannot stay a table. The browser falls back to each
   column's min-content width, and because cells set `overflow-wrap: anywhere` a URL's min-content
   is a single character: the URL column rendered one letter per line and every row grew to 160px
   tall. Horizontal scrolling is the usual escape, but a 600px-wide table dragged sideways on a
   phone is not much better to use.
   Instead each row becomes its own bordered block and every cell carries its column name from
   `data-label`, so nothing has to fit side by side and nothing needs to be truncated.
   Opt-in rather than automatic, because a two- or three-column table (the payment receipt, say)
   still reads fine as a table and shouldn't pay for this. */
@media (max-width: 560px) {
  .data-table-stack thead { display: none; }
  .data-table-stack,
  .data-table-stack tbody,
  .data-table-stack tr,
  .data-table-stack td { display: block; width: 100%; }
  .data-table-stack { border-collapse: separate; }
  .data-table-stack tr {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    padding: 4px 0;
    margin-bottom: 10px;
  }
  .data-table-stack tr:last-child { margin-bottom: 0; }
  /* The desktop row-hover tint reads as a stuck selection once rows are separate cards. */
  .data-table-stack tbody tr:hover { background: var(--surface); }
  .data-table-stack td {
    /* The label floats rather than being a flex item, so the cell's own content stays a single
       run of inline text. As a flex container the cell split `<strong>63</strong>/100` into two
       flex items and `space-between` pushed them to opposite edges, rendering "63      /100".
       `flow-root` contains the float without the clipping `overflow: hidden` would risk. */
    display: flow-root;
    padding: 7px 14px;
    border-bottom: none;
    text-align: right;
  }
  .data-table-stack td::before {
    content: attr(data-label);
    float: left;
    margin-right: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    /* The cell is right-aligned for its value; the label is the one thing that isn't. */
    text-align: left;
  }
  /* The action column has no header to echo, so the control takes the full row width instead of
     sitting against an empty label. */
  .data-table-stack td.cell-action { padding: 10px 14px 12px; text-align: center; }
  .data-table-stack td.cell-action::before { content: none; }
  .data-table-stack td.cell-action .btn { display: block; width: 100%; text-align: center; }
  /* An action that isn't offered for this row (no receipt for a failed payment) would otherwise
     leave a blank padded strip at the bottom of the card. */
  .data-table-stack td.cell-action:empty { display: none; }
}

/* Action plan */
.action-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.action-plan-column h3 { margin-top: 0; font-size: 1rem; }
.action-card {
  background: var(--brand-light);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 10px;
}
.action-text { margin: 0 0 8px; font-weight: 600; }
.action-meta { display: flex; align-items: center; gap: 8px; }
.action-platforms { margin: 6px 0 0; font-size: 0.82rem; color: var(--text-muted); }
.recommendation-list { padding-left: 20px; }

/* Findings */
.findings-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.finding-row {
  display: grid;
  grid-template-columns: 96px 1fr 96px;
  gap: 16px;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.finding-severity { display: flex; }
.finding-title { margin: 0 0 4px; font-weight: 700; }
.finding-desc { margin: 0; color: var(--text-muted); }
.finding-effort { white-space: nowrap; font-size: 0.8rem; text-align: right; }

@media (max-width: 640px) {
  .finding-row { grid-template-columns: 1fr; gap: 6px; }
  .finding-effort { text-align: left; }
}

/* Platform bars */
.platform-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.platform-bar-row { display: grid; grid-template-columns: 160px 1fr 40px; align-items: center; gap: 10px; }
.platform-name { font-weight: 500; }
.platform-bar-track { height: 10px; background: var(--border); border-radius: 999px; overflow: hidden; }
.platform-bar-fill { height: 100%; background: linear-gradient(90deg, var(--brand), #6d5ef1); }
.platform-score { text-align: right; font-weight: 700; }

/* Signal meta row (pagespeed / knowledge graph headers) */
.signal-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -6px 0 8px; }
.signal-adjustment { font-size: 0.82rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.adjustment-positive { background: #dcfce7; color: #166534; }
.adjustment-negative { background: #fee2e2; color: #991b1b; }

/* Stat tiles (PageSpeed, Technical, Core Metrics) */
.card h3 { margin: 22px 0 4px; font-size: 0.95rem; }
.card h3:first-of-type { margin-top: 4px; }
/* `.section-sub`'s `margin-top: -8px` is calibrated to sit under an `<h2>`'s larger bottom
   margin — under an `<h3>` (only 4px bottom margin) that same negative offset overlaps the
   heading, so give this pairing its own positive spacing instead. */
.card h3 + .section-sub { margin-top: 6px; margin-bottom: 14px; }
.stat-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.stat-tile {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.stat-tile-label { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.stat-tile-value { display: block; font-size: 1.6rem; font-weight: 800; margin: 4px 0 2px; }
.stat-tile-unit { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-left: 2px; }
.stat-tile-source { display: block; font-size: 0.72rem; color: var(--text-muted); }
.stat-tile-positive { background: #f0fdf4; border-color: #bbf7d0; }
.stat-tile-positive .stat-tile-value { color: var(--tier-excellent); }
.stat-tile-negative { background: #fef2f2; border-color: #fecaca; }
.stat-tile-negative .stat-tile-value { color: var(--sev-high); }

/* Check pill grid (Technical / Schema boolean-style checks) */
.check-grid {
  display: grid;
  /* 190px could not hold the real content — "Server-Side Rendering" beside "None Detected" — which
     is what forced the truncation this replaces. Widened so the common pairs fit on one line;
     auto-fit still collapses to fewer columns on narrow screens. */
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.check-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Wrap rather than truncate: when a long label and its verdict cannot share a line, the verdict
     drops to its own line still fully readable. */
  flex-wrap: wrap;
  gap: 4px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  background: var(--bg);
}
/* The label is the flexible half: it may shrink and wrap across lines, because a label is
   readable broken over two lines while a truncated verdict ("Y…", "None Det…") is not. */
.check-label { font-size: 0.87rem; font-weight: 600; flex: 1 1 auto; min-width: 0; }
.check-value {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  white-space: nowrap;
  /* Never shrink and never ellipsize. An earlier attempt at truncating long values turned "Yes"
     into "Y…" and "None Detected" into "None Det…" — the verdict is the one thing in this pill
     that must always be readable in full, so the pill wraps instead (see `.check-pill`). */
  flex: 0 0 auto;
}
.check-hint-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  cursor: help;
  vertical-align: 1px;
}
.check-positive { border-color: #bbf7d0; }
.check-positive .check-value { background: #dcfce7; color: #166534; }
.check-negative { border-color: #fecaca; }
.check-negative .check-value { background: #fee2e2; color: #991b1b; }
.check-neutral .check-value { background: #e5e7eb; color: #374151; }

.pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.pill-neutral { background: var(--brand-light); color: var(--brand-dark); }

/* llms.txt file cards */
.llms-file-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 10px; }
.llms-file-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--bg);
}
.llms-file-name { font-weight: 700; }
.llms-file-present { border-color: #bbf7d0; }
.llms-file-missing { border-color: #fecaca; }

/* Knowledge Graph card */
.kg-card { display: flex; gap: 22px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.kg-confidence {
  --pct-color: var(--brand);
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: conic-gradient(var(--pct-color) calc(var(--pct) * 1%), var(--border) 0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.kg-confidence-inner {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.05rem;
}
.kg-details { flex: 1 1 260px; }
.kg-entity-name { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; }
.kg-types { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }

/* Citability */
.citability-overview {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 12px;
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-wrap: wrap;
}
.citability-overview-score { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; min-width: 80px; }
.citability-overview-value { font-size: 2.2rem; font-weight: 800; color: var(--brand); line-height: 1; }
.citability-overview-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; margin-top: 4px; }
.citability-distribution { flex: 1 1 260px; min-width: 220px; }
.citability-distribution-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--border); }
.citability-distribution-segment { height: 100%; }
.citability-distribution-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; font-size: 0.8rem; color: var(--text-muted); }
.citability-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.grade-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

.grade-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.8rem;
  flex: 0 0 auto;
}
.grade-a, .grade-a.grade-dot { background: #dcfce7; color: #166534; }
.grade-b, .grade-b.grade-dot { background: #d1fae5; color: #047857; }
.grade-c, .grade-c.grade-dot { background: #fef3c7; color: #92400e; }
.grade-d, .grade-d.grade-dot { background: #fed7aa; color: #9a3412; }
.grade-f, .grade-f.grade-dot { background: #fee2e2; color: #991b1b; }
.citability-distribution-segment.grade-a { background: #22c55e; }
.citability-distribution-segment.grade-b { background: #34d399; }
.citability-distribution-segment.grade-c { background: #f59e0b; }
.citability-distribution-segment.grade-d { background: #fb923c; }
.citability-distribution-segment.grade-f { background: #ef4444; }

.citability-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 10px;
}
.citability-card-warn { border-color: #fcd34d; background: #fffbeb; }
.citability-url { margin: 0 0 4px; word-break: break-all; }
.citability-fix { margin: 6px 0 0; font-size: 0.88rem; }
.citability-preview { margin: 4px 0 0; font-size: 0.85rem; font-style: italic; }
.citability-evidence {
  margin: 6px 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--surface);
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* Brand grid */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 14px; }
.brand-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; }
.brand-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.brand-name { font-weight: 700; }
.brand-impact { font-size: 0.82rem; margin: 6px 0 0; }

/* Key/value generic grid (technical/schema/llms/metrics) */
.kv-dl { margin: 0; }
.kv-dl-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
}
.kv-dl dt { font-weight: 600; color: var(--text-muted); }
.kv-dl dd { margin: 0; }
.kv-list { margin: 0; padding-left: 18px; }
.kv-cards { display: flex; flex-direction: column; gap: 8px; }
.kv-card { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; }

.muted { color: var(--text-muted); }

/* Badges / pills */
.badge, .pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: capitalize;
  background: var(--border);
  color: var(--text);
  white-space: nowrap;
}
.pill-yes { background: #dcfce7; color: #166534; }
.pill-no { background: #fee2e2; color: #991b1b; }
/* The website pill is the one pill that is not a short label: it carries the domain, its audit
   count, a re-audit button, a questions link and a three-way schedule switch. Inheriting
   `white-space: nowrap` from `.pill` meant all of that stayed on one line at every width, which
   is what pushed the account page wider than a phone screen. Flex with wrapping lets it fold
   instead, and `max-width: 100%` stops it ever exceeding its row. */
.pill-domain {
  text-transform: none;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  max-width: 100%;
  white-space: normal;
}

/* Below this the pill is always taller than one line, so it stops pretending to be a pill: full
   width, a radius that suits a stacked card, and the schedule switch starting at the left edge
   rather than trailing the text it no longer sits beside. */
@media (max-width: 560px) {
  .pill-domain { display: flex; width: 100%; border-radius: 14px; padding: 9px 12px; }
  .pill-domain .schedule-switch { margin-left: 0; }
}

.badge-sev-high, .badge-sev-critical { background: #fee2e2; color: #991b1b; }
.badge-sev-medium { background: #fef3c7; color: #92400e; }
.badge-sev-low { background: #dbeafe; color: #1e40af; }
.badge-sev-info { background: #e5e7eb; color: #374151; }

.badge-impact-high { background: #fee2e2; color: #991b1b; }
.badge-impact-medium { background: #fef3c7; color: #92400e; }
.badge-impact-low { background: #e5e7eb; color: #374151; }

.badge-status-allowed, .badge-status-allowed-by-default { background: #dcfce7; color: #166534; }
.badge-status-blocked, .badge-status-blocked-by-wildcard { background: #fee2e2; color: #991b1b; }
.badge-status-partially-blocked { background: #fef3c7; color: #92400e; }
.badge-status-not-mentioned, .badge-status-no-robots-txt { background: #e5e7eb; color: #374151; }

.badge-presence-yes { background: #dcfce7; color: #166534; }
.badge-presence-no { background: #fee2e2; color: #991b1b; }
.badge-presence-unknown { background: #e5e7eb; color: #374151; }

.badge-mode-llm { background: #ede9fe; color: #5b21b6; }
.badge-mode-fallback { background: #e5e7eb; color: #374151; }

.badge-source-live { background: #dcfce7; color: #166534; }
.badge-source-mock { background: #e0e7ff; color: #3730a3; }
.badge-source-pending-live { background: #fef3c7; color: #92400e; }
.badge-source-disabled { background: #e5e7eb; color: #374151; }
.badge-source-error { background: #fee2e2; color: #991b1b; }
.badge-source-unknown { background: #e5e7eb; color: #374151; }

.badge-valid { background: #dcfce7; color: #166534; }
.badge-invalid { background: #fee2e2; color: #991b1b; }
.badge-not-validated { background: #e5e7eb; color: #374151; }

.badge-quality-strong { background: #dcfce7; color: #166534; }
.badge-quality-partial { background: #fef3c7; color: #92400e; }
.badge-quality-mismatch { background: #fee2e2; color: #991b1b; }
.badge-quality- { background: #e5e7eb; color: #374151; }

.badge-answer-direct { background: #dcfce7; color: #166534; }
.badge-answer-partial { background: #fef3c7; color: #92400e; }
.badge-answer-missing { background: #fee2e2; color: #991b1b; }
.badge-signal-present { background: #dcfce7; color: #166534; }
.badge-signal-missing { background: #fee2e2; color: #991b1b; }

/* AEO add-on — same teal accent as its pricing/plan cards, so this section reads as the same
   "kind" of thing wherever a user encounters it. */
.badge-addon { background: var(--tier-good); color: #fff; text-transform: uppercase; }
.user-tier-cell { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.user-addon-cell { margin-top: 4px; }
.user-addon-cell .badge-addon { font-size: 0.78rem; padding: 1px 9px; font-weight: 600; }
.aeo-card { border-color: var(--tier-good); }
.aeo-card h2 { display: flex; align-items: center; gap: 10px; }
.aeo-score-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-bottom: 20px; }
.aeo-score-breakdown p { margin: 4px 0; }

/* Answer Engine Visibility
   The score is shown with the same gauge as every other score in this report rather than as a
   bare number in a tile — a figure this consequential should not be the one score on the page
   with no visual weight. Everything else here is built from the two facts the section actually
   measures: how often the site was named, and how often it was cited. */
.visibility-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 28px;
  margin: 18px 0 22px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.visibility-gauge { display: flex; flex-direction: column; align-items: center; }
.visibility-gauge .score-tier { margin-top: 8px; font-size: 0.85rem; }
.visibility-signals { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.visibility-verdict { margin: 0; font-size: 1.02rem; font-weight: 600; line-height: 1.45; }

.visibility-signal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.visibility-signal-label { font-size: 0.82rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.visibility-signal-count { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.visibility-signal-of { color: var(--text-muted); font-weight: 600; font-size: 0.85rem; }
.visibility-signal-track {
  height: 8px;
  margin-top: 6px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.visibility-signal-fill { height: 100%; border-radius: 999px; }
/* Two hues, because these are not interchangeable: being written into the answer by name is the
   stronger result, and carries the brand colour to say so. */
.visibility-signal-fill-named { background: var(--brand); }
.visibility-signal-fill-cited { background: var(--tier-good); }
.visibility-signal-note { margin: 5px 0 0; font-size: 0.8rem; color: var(--text-muted); }

.visibility-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.visibility-result {
  /* The rail is the scannable part: which questions this site showed up for, without reading
     a single pill. */
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--surface);
}
.visibility-result.is-visible { border-left-color: var(--tier-excellent); }
.visibility-question { margin: 0 0 10px; font-weight: 600; line-height: 1.45; }
.visibility-result-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.visibility-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px 3px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
  white-space: nowrap;
}
.visibility-chip-mark { font-size: 0.85em; line-height: 1; }
.visibility-chip.is-on { background: #dcfce7; color: #15803d; border-color: #bbf7d0; }
/* Absent is the common case and must not read as an error — a quiet outline, not a red alarm. */
.visibility-chip.is-off { background: var(--bg); color: var(--text-muted); border-color: var(--border); }

.visibility-rivals { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.visibility-rivals-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.03em; }
/* The model that actually produced an engine's row, under its name. Deliberately quiet: it is
   provenance, not a headline, and it should read as a footnote rather than compete with the
   engine name above it. */
/* The add-on's sizes, listed inside its one card. A row per package rather than a card per
   package: they are one product at four caps, and four cards would read as four products. */
/* --- Admin > Add-Ons: one editable row per package ------------------------
   Same shape as `.tier-row`: a bordered block per item, with the heading and status ABOVE the
   form rather than inside it. `.limit-form` is a bottom-aligned flex row, so anything that is
   not a field -- a heading, a subscriber count -- becomes a flex item and lands on the inputs'
   baseline, which is what made this page look broken. */
.addon-row {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--bg);
}

.addon-row-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
}

.addon-row-title {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 1rem;
}

/* The key is what every URL and API call uses, so it stays visible -- but it is machine detail,
   not the name of the thing, and should not compete with the label beside it. */
.addon-row-key {
  font-family: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1px 6px;
}

.addon-row-status {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.addon-row-subs {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.addon-pill {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.addon-pill-live {
  border-color: var(--sev-low, var(--border));
  color: var(--sev-low, var(--text-muted));
}

.addon-pill-hidden {
  color: var(--text-muted);
}

.addon-pill-featured {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

/* The billing period, in every tier and package heading. Outlined in the brand colour so it reads
   as an attribute of the plan, distinct from the filled "Recommended" and the status pills. */
.addon-pill-period {
  border-color: var(--brand);
  color: var(--brand);
}

/* Each currency's price beside the period, so the list answers "what does this cost, where"
   without opening the form. Neutral, unlike the period pill: it is a value, not a category. */
.addon-pill-price {
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}

/* A price stored but not on sale until Razorpay accepts its Plan. Amber, so it reads as "needs
   something" rather than as a live price -- the tooltip carries Razorpay's reason. */
.addon-pill-awaiting {
  text-transform: none;
  letter-spacing: 0;
  border-color: #d97706;
  color: #b45309;
  /* A sentence, not a label ("$38.99 · awaiting Razorpay"): kept on one line it pushed the
     Add-Ons page 90px past a phone's edge. */
  white-space: normal;
  max-width: 100%;
}

.tier-row h3 .addon-pill {
  vertical-align: middle;
  margin-left: 6px;
}

/* The label field carries a name rather than a number, so the shared 140px width truncates it. */
.addon-row .limit-form input[name="label"] {
  width: 200px;
}

@media (max-width: 640px) {
  .addon-row-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

.addon-package-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
  display: grid;
  gap: 8px;
}

/* The switcher, full width inside the add-on card and below its two columns. It cannot live in
   `.pricing-addon-cta`: that column is `flex: 0 0 auto`, sized for a price and one button and
   forbidden from shrinking, so a row of label + price + button grows it until it leaves the
   card. */
.addon-switcher {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.addon-package {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px 16px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  /* Grid items default to `min-width: auto`, which refuses to shrink below their content. A long
     package label would otherwise widen the row past its container rather than wrapping. */
  min-width: 0;
}

.addon-package > * {
  min-width: 0;
}

/* In the narrow CTA column on the pricing page there is no room for three across, so the price
   and the button sit under the name instead of beside it. */
.addon-package-list-narrow .addon-package {
  grid-template-columns: minmax(0, 1fr) auto;
}

.addon-package-list-narrow .addon-package-size {
  grid-column: 1 / -1;
}

/* Sub-label under an admin form field: explains a value whose meaning is not obvious from the
   input itself, such as a quota where 0 means unlimited rather than none. */
.field-hint {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

/* The package the customer is already on, in the switcher. Marked rather than hidden: seeing
   where you sit in the ladder is the point of showing the ladder. */
/* Billing facts (status, next charge, usage, any booked change) sit above the package list in
   the same column, so "what I have" reads before "what I could move to". */
.addon-status-block {
  padding-bottom: 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}

.addon-choose-heading {
  font-weight: 700;
  color: var(--text);
  margin-top: 10px;
}

/* The allowance on its own line: the package name is the thing being chosen, and running both
   together made every row a sentence to parse rather than a label to scan. */
.addon-package-allowance {
  display: block;
  font-weight: 400;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.addon-switch-note {
  margin-top: 4px;
}

.addon-package-current {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 6%, transparent);
}

.addon-package-current-note {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
}

.addon-scheduled-note {
  color: var(--text-muted);
}

.addon-package-featured {
  /* `--brand`, not `--accent`: `--accent` is only defined inside a few components as a local
     override. Referenced anywhere else it resolves to nothing, which rendered this badge as
     white text on a transparent ground -- invisible. */
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.addon-package-badge {
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.addon-package-size {
  font-weight: 600;
  font-size: 0.86rem;
}

.addon-package-price {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 560px) {
  /* Stacked under the description on a phone, so the packages use the card's full width. */
  .pricing-addon-cta { flex-basis: 100%; align-items: stretch; }
  .addon-package {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .addon-package-size {
    grid-column: 1 / -1;
  }
}

.engine-model {
  display: block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
}

.visibility-rival {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .visibility-summary { grid-template-columns: 1fr; justify-items: center; gap: 20px; padding: 18px 16px; }
  .visibility-signals { width: 100%; }
  .visibility-verdict { text-align: center; }
}

@media (max-width: 720px) {
  .report-hero { flex-direction: column; text-align: center; }
  .citability-overview { flex-direction: column; align-items: stretch; }
  .platform-bar-row { grid-template-columns: 100px 1fr 32px; }
  .report-nav { top: 0; }
}

@media (max-width: 480px) {
  .card { padding: 20px 16px; }
  .scorecard-grid { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
  .score-card-value { font-size: clamp(0.78rem, calc(1.8rem - 0.075rem * var(--len, 3)), 1.6rem); }
  .user-toolbar { flex-direction: column; align-items: stretch; }
  .user-toolbar select, .user-toolbar button { width: 100%; }
  .date-range { width: 100%; }
  .date-range input[type="date"] { flex: 1 1 0; min-width: 0; }
  .pricing-grid { grid-template-columns: 1fr; }
  .platform-bar-row { grid-template-columns: 76px 1fr 30px; gap: 8px; }
  .platform-name { font-size: 0.85rem; overflow-wrap: anywhere; }
  .kv-dl-grid { grid-template-columns: 1fr; gap: 2px 0; }
  .kv-dl-grid dd { margin-bottom: 8px; }
  .hero { padding: 40px 16px 32px; }
}

/* Payment receipt */
.receipt-card .data-table th {
  width: 160px;
  text-transform: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  vertical-align: top;
}
.receipt-card .receipt-body { margin-bottom: 20px; }

/* Receipt branding. Repeated from the site header on purpose: the header is hidden in print, and
   a receipt a customer forwards to their accountant has to name who issued it. */
.receipt-brand { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.receipt-logo { border-radius: var(--radius-sm); flex: 0 0 auto; }
.receipt-brand-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.receipt-brand-name { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.receipt-brand-company { font-size: 0.85rem; color: var(--text-muted); }
.receipt-brand-company a { color: var(--brand); text-decoration: none; font-weight: 600; }
.receipt-brand-company a:hover { text-decoration: underline; }
.receipt-ref { margin-bottom: 14px; }
.receipt-legal { font-size: 0.8rem; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  .site-main { max-width: none; padding: 0; }
  /* The card's own chrome is screen furniture; the branding block above is not, and is the only
     thing identifying the issuer once the site header is gone. */
  .receipt-card { border: none; box-shadow: none; padding: 0; }
}

/* reCAPTCHA widget on the auth forms.
   Google injects a widget of a fixed 304px width that cannot be restyled from here, so this
   places it rather than skins it. Two problems to solve, at opposite ends of the size range:

   - On desktop the auth card's content column is ~356px, so a left-aligned 304px widget sat
     short of the full-width inputs above and button below, leaving a ragged 52px of dead space
     down one side. Centring it splits that evenly and reads as deliberate.
   - Below ~380px of viewport the column is narrower than 304px and the widget pushed the whole
     page sideways. `--recaptcha-scale` shrinks it to fit at the two widths where that happens. */
.recaptcha-field {
  --recaptcha-scale: 1;
  display: flex;
  justify-content: center;
  /* `transform` shrinks what is drawn but not the space reserved for it, which would leave a
     visible gap under a scaled widget. Reclaim exactly the difference so the rhythm above and
     below the field stays even at every scale (and collapses to 0 at scale 1). */
  margin-bottom: calc((var(--recaptcha-scale) - 1) * 78px);
}
.recaptcha-field .g-recaptcha {
  /* The same is true sideways: a scaled widget still reserved its full 304px, the auth card grew
     to hold it, and on a 360px phone the card ran 14px past the right gutter while the left one
     stayed 16px. Negative margins give the layout exactly the drawn width. */
  margin-inline: calc((var(--recaptcha-scale) - 1) * 152px);
  transform: scale(var(--recaptcha-scale));
  /* Top origin so the widget stays anchored under the field above it; the negative margin then
     only ever has to account for height lost at the bottom. */
  transform-origin: center top;
}
/* Breakpoints sit a little above the widths where 304px strictly stops fitting, and the scales a
   little below what strictly fits, so the widget keeps a few pixels of breathing room for its own
   drop shadow rather than butting against the card padding. */
@media (max-width: 403px) { .recaptcha-field { --recaptcha-scale: 0.84; } }
@media (max-width: 349px) { .recaptcha-field { --recaptcha-scale: 0.74; } }

/* Locked deliverables — an implementation file this plan tier does not include, and the
   "Since Your Last Audit" teaser. Both are deliberately quiet: the point is to name what exists
   behind the upgrade, not to scold someone for the plan they are on. */
.download-locked td { color: var(--text-muted); }
.download-locked-label { display: block; font-weight: 600; color: var(--text); }
.download-locked-note { display: block; font-size: 0.82rem; color: var(--text-muted); margin-top: 3px; }
/* The Downloads tab's three groups (`artifact_names.GROUP_ORDER`): Reports, Files to add to your site,
   Implementation guides. */
.downloads-group { font-size: 0.95rem; font-weight: 600; margin: 22px 0 8px; }
.downloads-group:first-of-type { margin-top: 6px; }
/* A note under the last file table: its own space, unlike `.section-sub`, which sits up against a heading. */
.downloads-note { margin: 18px 0 0; color: var(--text-muted); font-size: 0.9rem; }
.badge-locked { background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); }
.progress-locked-card { border-style: dashed; }
.progress-locked-card .section-sub { margin-bottom: 14px; }

@media (max-width: 560px) {
  /* A locked row's label and its description are a block, so they get the full stacked-cell
     width instead of being squeezed against the floated "FILE" label. */
  .data-table-stack .download-locked td[data-label="File"] { text-align: left; }
  .data-table-stack .download-locked td[data-label="File"]::before { float: none; display: block; margin-bottom: 4px; }
}

/* Remove control inside a domain pill (admin: free a user's website slot). Sits in the pill so
   it clearly belongs to that one site, and stays quiet until hovered — it is destructive, but
   it is also the only action here, so it should not shout on a page full of read-only data. */
.pill-removable { display: inline-flex; align-items: center; gap: 6px; padding-right: 6px; }
.pill-remove-form { display: inline-flex; margin: 0; }
.pill-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}
.pill-remove:hover, .pill-remove:focus-visible { background: var(--sev-high); color: #fff; }

/* --- Answer Engine Visibility: evidence, share of voice, cited sources ------------------ */

.visibility-measured { font-size: .82rem; color: var(--text-muted); margin: 6px 0 0; }

.visibility-block { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.visibility-block h3 { font-size: .97rem; margin: 0 0 3px; }

/* Share of voice. The customer's own row is emphasised rather than pinned to the top: the list
   is a ranking, and moving one row out of rank order would misreport the thing it measures. */
.sov-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 9px; }
.sov-row { display: grid; grid-template-columns: minmax(90px, 150px) 1fr auto; gap: 12px; align-items: center; }
.sov-name {
  font-size: .87rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  display: flex; align-items: center; gap: 6px;
}
.sov-row.is-self .sov-name { font-weight: 700; color: var(--brand-dark); }
.sov-you {
  background: var(--brand); color: #fff; font-size: .6rem; font-weight: 700;
  padding: 2px 7px; border-radius: 999px; letter-spacing: .05em; flex: 0 0 auto;
}
.sov-track { background: var(--bg); border-radius: 999px; height: 9px; overflow: hidden; }
.sov-fill { display: block; height: 100%; border-radius: 999px; background: #c7cbd8; }
.sov-row.is-self .sov-fill { background: var(--brand); }
.sov-count { font-size: .82rem; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sov-of { color: var(--text-muted); }

.data-table tr.is-self td { background: var(--brand-light); }
.data-table tr.is-self td:first-child { font-weight: 700; color: var(--brand-dark); }

/* The verbatim answer. Collapsed by default -- eleven open at once buries the summary above. */
.visibility-evidence { margin-top: 11px; }
.visibility-evidence > summary {
  cursor: pointer; font-size: .78rem; font-weight: 600; color: var(--brand);
  list-style: none; display: inline-flex; align-items: center; gap: 6px;
}
.visibility-evidence > summary::-webkit-details-marker { display: none; }
.visibility-evidence > summary::before { content: "\25B8"; font-size: .7rem; }
.visibility-evidence[open] > summary::before { content: "\25BE"; }
.visibility-evidence > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

.visibility-answer {
  margin: 10px 0 0; padding: 12px 14px; background: var(--bg);
  border-left: 2px solid var(--border); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: .85rem; color: var(--text);
}
.visibility-answer-trim { color: var(--text-muted); font-style: italic; margin-left: 4px; }
/* Paragraphs inside the quote: the excerpt and, when the brand is named further down the answer,
   the passage that proves it. They are separate <p>s because the two are NOT adjacent in the
   answer - rendering them as one flowing quotation would misquote the engine. */
.visibility-answer > p { margin: 0; }
.visibility-answer > p + p { margin-top: 8px; }
/* The break between them. Dashed rather than a row of dots, and carrying words: a bare ellipsis
   is indistinguishable from one the model wrote itself. */
.visibility-elision {
  color: var(--text-muted); font-size: .72rem; font-style: italic;
  padding-top: 8px; border-top: 1px dashed var(--border);
}
/* The brand terms inside a quoted answer. Not the browser default yellow, which reads as a
   browser find-in-page hit rather than part of the report. */
.visibility-answer mark {
  background: color-mix(in srgb, var(--brand) 18%, transparent);
  color: inherit; padding: 0 2px; border-radius: 2px; font-weight: 600;
}

.visibility-sources-label {
  margin: 11px 0 0; font-size: .66rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--text-muted);
}
.visibility-sources { margin: 6px 0 0; padding-left: 20px; font-size: .79rem; display: flex; flex-direction: column; gap: 3px; }
.visibility-sources li { overflow-wrap: anywhere; }
.visibility-source-title { color: var(--text-muted); margin-left: 6px; }

@media (max-width: 560px) {
  .sov-row { grid-template-columns: 1fr auto; }
  .sov-track { grid-column: 1 / -1; order: 3; }
}



/* --- Members ---------------------------------------------------------------------------- */
.pill-pending { background: #fef3c7; color: #92400e; }


/* --- Admin → Application settings ------------------------------------------------------- */
/* One form, one save bar. The bar is fixed rather than sticky-at-the-end because the page is
   seven cards long: an admin editing the billing grace period at the bottom must not have to
   scroll back up to find Save, and one who edits the top field must not be able to leave without
   seeing that something is unsaved. */
.app-settings { padding-bottom: 92px; }

.setting-rows { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }

/* The left edge is the whole status language on this page: nothing for a default, brand for a
   stored value, amber for an edit not yet saved, red for a field that was refused. Width is kept
   identical across all four so rows never shift sideways as the admin types. */
.setting-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, auto);
  grid-template-areas: "label control" "help help";
  gap: 4px 18px;
  align-items: center;
  padding: 12px 14px;
  border-left: 3px solid transparent;
  border-radius: var(--radius-sm);
}
.setting-row:nth-child(odd) { background: var(--bg); }
.setting-row.is-overridden { border-left-color: var(--brand); }
.setting-row.is-dirty { border-left-color: var(--sev-medium); background: #fffbeb; }
.setting-row.has-error { border-left-color: var(--sev-high); background: #fef2f2; }

.setting-label { grid-area: label; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.setting-label label { font-weight: 600; font-size: .9rem; }

.setting-flag {
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--brand); background: var(--brand-light);
  padding: 2px 7px; border-radius: 999px; cursor: help;
}

/* The "i" beside a setting's label. Opens on hover, on keyboard focus, and -- via the page's
   script adding `.is-open` -- on tap, since a touch screen has no hover. */
.setting-info { position: relative; display: inline-flex; }
.setting-info-btn {
  width: 17px; height: 17px; padding: 0; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font: 700 .68rem/1 Georgia, "Times New Roman", serif; font-style: italic;
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--border); cursor: pointer;
}
.setting-info-btn:hover, .setting-info-btn:focus-visible, .setting-info.is-open .setting-info-btn {
  color: var(--brand); border-color: var(--brand); outline: none;
}
.setting-tip {
  display: none;
  position: absolute; top: calc(100% + 7px); left: -8px; z-index: 30;
  width: max-content; max-width: 240px;
  padding: 7px 10px; border-radius: 6px;
  background: var(--text); color: #fff;
  font-size: .76rem; font-weight: 500; line-height: 1.4; white-space: normal;
  box-shadow: 0 6px 16px rgba(20, 22, 31, .18);
}
.setting-info:hover .setting-tip,
.setting-info:focus-within .setting-tip,
.setting-info.is-open .setting-tip { display: block; }

.setting-control { grid-area: control; display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.setting-control input[type="number"] {
  width: 120px; padding: 8px 10px; font: inherit; font-size: .9rem; text-align: right;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
.setting-control textarea {
  width: 100%; max-width: 420px; padding: 9px 11px; font: inherit; font-size: .84rem;
  line-height: 1.5; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); resize: vertical;
}
.setting-control input:focus-visible, .setting-control textarea:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand);
}
.setting-range { font-size: .74rem; color: var(--text-muted); min-width: 52px; }

.setting-switch { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600; }
.setting-switch input { width: auto; }

.setting-reset {
  padding: 5px 12px; font: inherit; font-size: .76rem; font-weight: 600;
  color: var(--brand); background: transparent;
  border: 1px solid var(--brand); border-radius: 999px; cursor: pointer;
}
.setting-reset:hover { background: var(--brand-light); }

.setting-help { grid-area: help; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .78rem; }
/* An hour stored in UTC, read in the viewer's own time zone: the line people actually check. */
.setting-local { flex-basis: 100%; }
.setting-error { color: var(--sev-high); font-weight: 600; }
.setting-default { font-variant-numeric: tabular-nums; }
.setting-warning { color: #92400e; font-weight: 600; }

.settings-savebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 14px 24px calc(14px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--border);
  box-shadow: 0 -6px 18px rgba(20, 22, 31, .07);
}
.settings-savebar.has-changes { border-top-color: var(--sev-medium); }
.savebar-status { font-size: .84rem; color: var(--text-muted); font-weight: 600; }
.settings-savebar.has-changes .savebar-status { color: #92400e; }

@media (max-width: 720px) {
  .setting-row { grid-template-columns: 1fr; grid-template-areas: "label" "control" "help"; }
  .setting-control { justify-content: flex-start; }
  /* Hung from the "i", a 240px tip started wherever the label ended and ran off the right edge
     of a phone, cut mid-word. Stacked, the label spans the row, so the tip hangs from the label
     instead and takes its full width. */
  .setting-label { position: relative; }
  .setting-info { position: static; }
  .setting-tip { left: 0; right: 0; width: auto; max-width: none; }
  .settings-savebar { justify-content: space-between; padding-inline: 16px; }
}

/* A field somebody else changed while this page was open. Its own colour, not the error red: the
   admin did nothing wrong, and the value shown is the current one rather than something rejected. */
.setting-row.is-conflict { border-left-color: #7c3aed; background: #f5f3ff; }

/* "Recent changes" pager. Explicit display:none for a hidden row because the stacked mobile
   table sets `display` on its rows, which would otherwise outrank the `hidden` attribute. */
.history-row[hidden] { display: none !important; }
.history-pager { flex-wrap: wrap; }
.history-pager[hidden] { display: none; }
.pager-btn {
  padding: 0; font: inherit; font-size: .9rem; font-weight: 600;
  color: var(--brand); background: none; border: none; cursor: pointer;
}
.pager-btn:hover:not(:disabled) { text-decoration: underline; }
.pager-btn:disabled { color: var(--text-muted); opacity: .5; cursor: default; }
.pager-size { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; }
.pager-size select {
  padding: 4px 8px; font: inherit; font-size: .84rem;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
}
.setting-conflict { color: #6d28d9; font-weight: 600; }

/* ===== Report layout (rv-): the reviewed demo, ported. Prefixed so none of it can collide with
   the rest of the app's classes. Colour carries meaning here: red is lost points or absence,
   amber a warning, green done or present, violet a rival, indigo the pillar a thing belongs to. */
.rv-hero { display: block; }
.rv-hero-info h1 { margin: 0 0 4px; }
.rv-hero-meta { margin: 0 0 14px; }
.rv-hero-scores { display: flex; flex-wrap: wrap; gap: 22px; align-items: flex-start; }
.rv-hero-score { text-align: center; min-width: 120px; }
.rv-hero-score .score-gauge { margin: 0 auto; }
.rv-hero-label { margin: 6px 0 0; font-size: 0.72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.rv-delta { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: #f1f5f9; color: #475569; }
.rv-delta.is-down { background: #fee2e2; color: #b91c1c; }
.rv-delta.is-up { background: #dcfce7; color: #15803d; }
.rv-hero-side { flex: 1 1 240px; }
.rv-hero-gap { margin: 10px 0 0; padding: 8px 12px; border-left: 4px solid var(--sev-medium); background: var(--bg); border-radius: 6px; font-size: 0.9rem; }
.rv-hero-upsell { min-width: 230px; max-width: 280px; padding: 12px 14px; border: 1px dashed #14b8a6; border-radius: 12px; background: #f0fdfa; font-size: 0.85rem; }
.rv-hero-upsell strong { color: #0f766e; }
.rv-hero-upsell-foot { margin-top: 8px; }
.rv-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.rv-progress-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; justify-content: space-between; }
.rv-progress-head h2 { margin: 0; }
.rv-progress-scores { display: flex; flex-wrap: wrap; gap: 18px; margin: 10px 0 12px; font-size: 0.95rem; }
.rv-progress-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rv-progress-group { padding: 10px 12px; border: 1px solid var(--border); border-left: 4px solid #94a3b8; border-radius: 10px; background: #f8fafc; }
.rv-progress-group h3 { margin: 0 0 6px; font-size: 0.85rem; }
.rv-progress-group ul { margin: 0; padding-left: 18px; font-size: 0.88rem; }
.rv-progress-group li { margin-bottom: 4px; }
.rv-progress-group p { margin: 0; font-size: 0.85rem; }
.rv-progress-group.is-fixed { border-left-color: #16a34a; background: #f0fdf4; }
.rv-progress-group.is-regressed { border-left-color: #dc2626; background: #fef2f2; }
.rv-progress-group.is-outstanding { border-left-color: #d97706; background: #fffbeb; }

.rv-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 0.7rem; font-weight: 700; color: var(--text-muted); white-space: nowrap; vertical-align: 1px; }
.rv-chip-bad { border-color: #fecaca; background: #fef2f2; color: #b91c1c; }
.rv-chip-ok { border-color: #bbf7d0; background: #f0fdf4; color: #15803d; }
.rv-chip-warn { border-color: #fde68a; background: #fffbeb; color: #b45309; }
.rv-chip-rival { border-color: #e9d5ff; background: #faf5ff; color: #6b21a8; }
.rv-chip-pillar { border-color: #c7d2fe; background: #eef2ff; color: #3730a3; }
.rv-small { font-size: 0.85rem; }
.rv-cost { color: #b91c1c; }
.rv-verdict { font-size: 1.02rem; margin: 0 0 14px; }
.rv-note { margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid #3b82f6; background: #eff6ff; border-radius: 6px; font-size: 0.88rem; }
.rv-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rv-summary-box { padding: 12px 14px; border: 1px solid #dbe4ff; border-radius: 10px; background: #f8faff; }
.rv-summary-box:nth-child(2) { background: #f6fffa; border-color: #c7f0d8; }
.rv-summary-box h3 { margin: 0 0 8px; font-size: 0.78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-muted); }
.rv-summary-box ol { margin: 0; padding-left: 18px; font-size: 0.9rem; }
.rv-summary-box li { margin-bottom: 6px; }

.rv-points td.num, .rv-points th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rv-points tr.is-high td { background: #fef2f2 !important; }
.rv-points tr.is-mid td { background: #fffbeb !important; }
.rv-lost-bar { display: inline-block; height: 8px; border-radius: 4px; background: #dc2626; vertical-align: middle; margin-right: 8px; }

.rv-issue { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--border); border-left: 4px solid #94a3b8; border-radius: 8px; }
.rv-issue p { margin: 2px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.rv-issue.is-critical, .rv-issue.is-high { border-left-color: #dc2626; background: #fffafa; }
.rv-issue.is-medium { border-left-color: #d97706; background: #fffdf7; }
.rv-issue.is-low { border-left-color: #0284c7; background: #f8fcff; }

.rv-two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.rv-action { padding: 10px 12px; border: 1px solid var(--border); border-left: 4px solid #6366f1; border-radius: 10px; margin-bottom: 8px; background: var(--surface); }
.rv-action p { margin: 0 0 6px; font-weight: 600; }
.rv-action.is-content { border-left-color: #dc2626; }
.rv-action.is-schema { border-left-color: #d97706; }
.rv-action.is-brand { border-left-color: #7c3aed; }
.rv-action.is-technical { border-left-color: #0891b2; }
.rv-action.is-access { border-left-color: #16a34a; }
.rv-action-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 0.78rem; color: var(--text-muted); }
.rv-done { margin: 8px 0 0; padding: 10px 12px; border-radius: 8px; background: #f0fdf4; font-size: 0.85rem; }

details.rv-ref { margin-top: 12px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; background: var(--surface); }
details.rv-ref > summary { cursor: pointer; font-weight: 600; font-size: 0.9rem; }
.rv-pillar-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.rv-pillar-head h2 { margin: 0; }
h3.rv-sub { margin: 18px 0 8px; padding-top: 14px; border-top: 1px solid var(--border); }
.rv-pillar > h3.rv-sub:first-of-type, .rv-pillar > div:first-of-type > h3.rv-sub:first-child { border-top: 0; padding-top: 0; }
.rv-plain-list { margin: 0 0 8px; padding-left: 18px; }
.rv-stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0; }
.rv-stat { flex: 1 1 140px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.rv-stat b { display: block; font-size: 1.3rem; }
.rv-stat > span { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.rv-stat.is-good { background: #f0fdf4; border-color: #bbf7d0; } .rv-stat.is-good b { color: #15803d; }
.rv-stat.is-warn { background: #fffbeb; border-color: #fde68a; } .rv-stat.is-warn b { color: #b45309; }
.rv-stat.is-bad { background: #fef2f2; border-color: #fecaca; } .rv-stat.is-bad b { color: #b91c1c; }
.rv-stat.is-info { background: #eff6ff; border-color: #bfdbfe; } .rv-stat.is-info b { color: #1d4ed8; }

.rv-question { padding: 10px 12px; border: 1px solid var(--border); border-left: 4px solid #94a3b8; border-radius: 8px; margin-bottom: 6px; }
.rv-question p { margin: 3px 0 0; font-size: 0.85rem; color: var(--text-muted); }
.rv-question.is-missing { border-left-color: #dc2626; background: #fffafa; }
.rv-question.is-partial { border-left-color: #d97706; background: #fffdf7; }
.rv-question.is-direct { border-left-color: #16a34a; }
.rv-locked { border: 1px dashed #14b8a6; background: #f0fdfa; }
.rv-locked ul { columns: 2; column-gap: 24px; font-size: 0.9rem; }
.rv-unbenched { margin-top: 10px; }
.data-table tr.rv-you td { background: #f0fdfa !important; font-weight: 600; }

.rv-sov .sov-row.is-self .sov-name { color: #0f766e; font-weight: 800; }
.rv-sov .sov-row.is-self .sov-fill { background: #0d9488; }
.rv-sov .sov-fill { background: #8b5cf6; }
.rv-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.rv-cell { display: inline-block; min-width: 92px; padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; text-align: center; white-space: nowrap; }
.rv-cell.is-both { background: #15803d; color: #fff; }
.rv-cell.is-named { background: #dcfce7; color: #166534; }
.rv-cell.is-linked { background: #dbeafe; color: #1e40af; }
.rv-cell.is-absent { background: #ffe4e6; color: #9f1239; }
.rv-cell.is-none { background: repeating-linear-gradient(45deg, #f1f5f9, #f1f5f9 4px, #e2e8f0 4px, #e2e8f0 8px); color: #64748b; }
.rv-matrix td { vertical-align: top; }
.rv-matrix .rv-engine { text-align: center; width: 120px; }
.rv-matrix .rv-q { font-weight: 600; min-width: 260px; }
.rv-matrix tr.is-won td.rv-q { box-shadow: inset 4px 0 0 #16a34a; }
.rv-matrix tfoot th { background: #eef2ff; color: #3730a3; border-top: 2px solid #c7d2fe; }
.rv-takeaway { margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid #e11d48; background: #fff1f2; border-radius: 6px; font-size: 0.9rem; }
.rv-answers { margin-top: 6px; font-weight: 400; }
.rv-answers > summary { cursor: pointer; color: var(--brand); font-size: 0.8rem; }
.rv-answer { margin: 8px 0 10px; font-size: 0.85rem; }
.rv-next { margin: 14px 0 0; padding: 10px 14px; border-left: 4px solid #0d9488; background: #f0fdfa; border-radius: 8px; font-size: 0.9rem; }
.rv-about { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #f8fafc; }
.rv-about h3 { margin: 0 0 8px; font-size: 0.95rem; }
.rv-about-grid { display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; margin: 0; font-size: 0.86rem; }
.rv-about-grid dt { font-weight: 700; color: var(--text-muted); }
.rv-about-grid dd { margin: 0; }

/* Report tables: tinted headers and alternate rows, so long tables stay readable. */
.report-panel .data-table thead th { background: #eef2ff; color: #3730a3; border-bottom: 2px solid #c7d2fe; }
.report-panel .data-table tbody tr:nth-child(even) td { background: #f8fafc; }
.report-panel .data-table tbody tr:hover td { background: #eef6ff; }

@media (max-width: 560px) {
  .rv-issue { grid-template-columns: 1fr; }
  .rv-locked ul { columns: 1; }
  .rv-about-grid { grid-template-columns: 1fr; }
  .rv-about-grid dd { margin-bottom: 6px; }
  /* Three gauges in one row on a phone, instead of a column three screens tall. */
  .rv-hero-scores { gap: 8px; }
  .rv-hero-score { flex: 1 1 0; min-width: 0; }
  .rv-hero-side, .rv-hero-upsell { flex: 1 1 100%; max-width: none; }
  /* The gauge takes its column's width, up to 92px: three fixed 92px rings plus the hero's 32px
     padding are wider than a 360px phone, and they ran into each other. */
  .rv-hero { padding: 22px 14px; }
  .rv-hero-score .score-gauge { width: 100%; max-width: 92px; height: auto; aspect-ratio: 1; }
  .rv-hero-score .score-gauge-inner { width: 76%; height: 76%; }
  .rv-hero-score .score-number { font-size: 1.35rem; }
  .rv-hero-score .score-max { font-size: 0.65rem; }
  /* Two lines held for every tier, so "Needs Attention" wrapping in one column does not drop that
     column's label below its neighbours'. */
  .rv-hero-score .score-tier { font-size: 0.78rem; margin-top: 6px; line-height: 1.25; min-height: 2.5em; }
  .rv-hero-label { font-size: 0.62rem; }
  .rv-delta { font-size: 0.62rem; padding: 1px 5px; }
}

/* --- landing page (signed out) ------------------------------------------------------------
   Prefixed `lp-` so nothing here can restyle another page. The page sets `site-main-wide` on
   <main> (a template block, not `:has()`, which older Safari and Firefox ignore) so its bands can
   run edge to edge. Graphics are CSS and inline SVG: no image requests, and every number in them
   is written by the template from `landing_facts`. */
.site-main.site-main-wide { max-width: none; padding: 0; }
/* `--night*`: the landing page's dark surfaces (the AEO band, the closing card) share one navy, one
   pair of glows and one text colour, so the two never drift apart. */
.lp { --ink: #0f172a; --muted: #5b6475; --line: #e6e8ee; --violet: #7c3aed; --teal: #0891b2;
  --night: #0b1224; --night-text: #cbd5e1; --night-edge: rgba(255, 255, 255, 0.12);
  --night-glow-violet: rgba(124, 58, 237, 0.45); --night-glow-blue: rgba(31, 111, 235, 0.45); overflow-x: clip; }
.lp-wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.lp h1, .lp h2, .lp h3 { color: var(--ink); letter-spacing: -0.02em; }
.lp-grad-text { background: linear-gradient(90deg, var(--brand), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; display: inline-block; }
.lp-dot-live { box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: lpPulse 1.8s infinite; }
@keyframes lpPulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.55); } 70% { box-shadow: 0 0 0 9px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

/* Hero */
.lp-hero { position: relative; padding: 64px 0 56px; }
.lp-hero-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.lp-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; }
.lp-blob-a { width: 520px; height: 520px; background: #bfdbfe; top: -160px; right: -80px; }
.lp-blob-b { width: 420px; height: 420px; background: #ddd6fe; bottom: -200px; left: -120px; }
.lp-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(15,23,42,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.045) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%); }
.lp-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lp-hero h1 { font-size: clamp(42px, 5.6vw, 64px); line-height: 1.05; margin: 18px 0 16px; font-weight: 800; }
.lp-lead { font-size: 17px; line-height: 1.6; color: var(--muted); margin: 0 0 24px; max-width: 560px; }
.lp-lead strong { color: var(--ink); font-weight: 600; }
.lp-url { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 6px 6px 14px; box-shadow: 0 10px 30px rgba(31,111,235,.12); max-width: 520px; }
.lp-url-icon svg { width: 20px; height: 20px; fill: none; stroke: #94a3b8; stroke-width: 1.6; display: block; }
.lp-url input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 10px 4px; min-width: 0; background: transparent; }
.lp-url .btn { white-space: nowrap; border-radius: 10px; padding: 12px 18px; }
.lp-note { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin: 20px 0 26px; }
.lp-tick { width: 16px; height: 16px; fill: none; stroke: #16a34a; stroke-width: 2.4; flex: none; }
.lp-engines { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lp-engines-label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; font-weight: 700; width: 100%; margin-bottom: 2px; }
.lp-engine { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 5px; background: #fff; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); }
.lp-engine i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }

.lp-hero-visual { position: relative; padding: 34px 10px 120px 28px; }
.lp-mock { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 30px 60px rgba(15,23,42,.14), 0 6px 16px rgba(15,23,42,.06); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); }
.lp-mock-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.lp-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.lp-mock-bar span:nth-child(1) { background: #fca5a5; } .lp-mock-bar span:nth-child(2) { background: #fcd34d; } .lp-mock-bar span:nth-child(3) { background: #86efac; }
.lp-mock-bar em { margin-left: 10px; font-style: normal; font-size: 12px; color: #94a3b8; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lp-mock-body { padding: 18px 20px 20px; }
.lp-mock-title b { font-size: 18px; color: var(--ink); display: block; }
.lp-mock-title small { color: #94a3b8; font-size: 12px; }
.lp-gauges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 14px; }
.lp-gauge, .lp-vital { position: relative; text-align: center; }
.lp-gauge svg, .lp-vital svg { width: 92px; height: 92px; transform: rotate(-90deg); display: block; margin: 0 auto; }
.lp-g-track { fill: none; stroke: #eef2f7; stroke-width: 3.2; }
.lp-g-val { fill: none; stroke: var(--c); stroke-width: 3.2; stroke-linecap: round; animation: lpDraw 1.4s ease-out both; }
@keyframes lpDraw { from { stroke-dasharray: 0 100px; } }
.lp-gauge b, .lp-vital b { position: absolute; top: 30px; left: 0; right: 0; font-size: 22px; font-weight: 800; color: var(--ink); }
.lp-gauge small, .lp-vital small { display: block; margin-top: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lp-mock-sub { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin-bottom: 8px; }
.lp-bars { display: grid; gap: 8px; }
.lp-bar { display: grid; grid-template-columns: 1.4fr 1fr auto; align-items: center; gap: 10px; font-size: 12.5px; color: var(--ink); }
.lp-bar i { height: 8px; border-radius: 99px; background: #f1f5f9; position: relative; overflow: hidden; }
.lp-bar i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c); border-radius: 99px; animation: lpGrow 1.2s ease-out both; }
@keyframes lpGrow { from { width: 0; } }
.lp-bar b { font-variant-numeric: tabular-nums; }
.lp-mock-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.lp-chip { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.lp-chip-red { background: #fef2f2; color: #b91c1c; } .lp-chip-amber { background: #fffbeb; color: #b45309; }

.lp-float { position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px rgba(15,23,42,.14); padding: 12px 14px; font-size: 12.5px; animation: lpFloat 4s ease-in-out infinite; }
.lp-float-scan { left: -10px; bottom: 0; width: 230px; }
.lp-float-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.lp-scan-row { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px dashed #eef2f7; color: var(--ink); }
.lp-scan-row em, .lp-table em, .lp-code-head em { font-style: normal; font-weight: 700; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; }
em.ok { background: #ecfdf5; color: #15803d; } em.bad { background: #fef2f2; color: #b91c1c; } em.warn { background: #fffbeb; color: #b45309; }
.lp-float-proj { right: -14px; bottom: 34px; display: flex; align-items: center; gap: 12px; animation-delay: -2s; }
.lp-float-proj b { font-size: 22px; color: #16a34a; display: block; line-height: 1; }
.lp-float-proj small { color: var(--muted); font-size: 11.5px; }
.lp-spark { width: 92px; height: 32px; }
.lp-spark path { fill: none; stroke: #16a34a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp-spark circle { fill: #16a34a; }
@keyframes lpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Stats */
/* The audit figures: one strip of four cells divided by hairlines (the 1px gap shows the strip's
   line colour through), not four floating cards. Each cell's colour (`--c`) is its icon's and the
   rule above its caption. Icons are solid two-tone shapes: a pale body (`.t`), a mid tone (`.m`),
   the full colour on the part that carries the meaning (`.s`), white marks on it (`.w`, `.h`).
   Two columns from tablet width, one on the narrowest phones. */
.lp-stats { margin-top: 8px; position: relative; z-index: 1; }
.lp-spec { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.lp-spec > div { background: #fff; padding: 22px 24px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; align-content: start; min-width: 0; }
.lp-spec b { font-size: clamp(30px, 3.2vw, 40px); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-unit { font-size: 14px; font-weight: 700; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.lp-spec p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; line-height: 1.45; color: #475467; max-width: 26ch; }
.lp-spec p::before { content: ""; display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--c); margin-bottom: 10px; }
.lp-spec-ic svg { width: 30px; height: 30px; display: block; }
.lp-spec-ic .t { fill: color-mix(in srgb, var(--c) 18%, #fff); }
.lp-spec-ic .m { fill: color-mix(in srgb, var(--c) 48%, #fff); }
.lp-spec-ic .s { fill: var(--c); }
.lp-spec-ic .w { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lp-spec-ic .h { fill: #fff; }
/* In view: each icon settles in turn and the numbers count up (landing script). The cells, and so
   the captions, stay still: no text on this page moves. */
.lp-spec-ic { animation: lpPop .45s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(.15s + var(--i, 0) * 90ms); }

/* Marquee */

/* The crawler marquee: two rows in opposite directions, each crawler tagged with its platform's
   initial in that platform's colour. Moving on every screen, paused by hover, touch or focus. */
.lp-marquee { margin: 60px 0 0; display: flex; flex-direction: column; gap: 12px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.lp-marquee:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.lp-marquee-track { display: flex; gap: 10px; width: max-content; animation: lpMarquee 46s linear infinite; }
.lp-marquee-rev { animation-direction: reverse; animation-duration: 52s; }
.lp-marquee-track span { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 6px; }
.lp-plat { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-style: normal; font-size: 10.5px; font-weight: 700; color: #fff; background: #64748b; }
.lp-plat-google-ai-overviews, .lp-plat-gemini { background: #4285f4; }
.lp-plat-chatgpt { background: #10a37f; }
.lp-plat-anthropic-claude { background: #d97757; }
.lp-plat-perplexity { background: #20808d; }
.lp-plat-bing-copilot { background: #0078d4; }
.lp-plat-meta-ai { background: #0866ff; }
.lp-plat-apple-ai { background: #52525b; }
.lp-plat-grok { background: #111827; }
@keyframes lpMarquee { to { transform: translateX(-50%); } }
@media (max-width: 700px) {
  .lp-marquee { margin-top: 44px; gap: 10px; }
  .lp-marquee-track { animation-duration: 34s; }
  .lp-marquee-rev { animation-duration: 38s; }
  .lp-marquee-track span { font-size: 12.5px; }
}

/* Sections */
.lp-section { padding: 72px 24px 8px; }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.lp-head h2 { font-size: clamp(34px, 4vw, 46px); margin: 0 0 10px; font-weight: 800; }
.lp-head p { color: var(--muted); font-size: 16px; margin: 0; }


/* How the GEO audit works: three cards on one shared 9s cycle (each card's `--o` offsets it), each
   "on" for a third: its number, label and progress line lit, its scene playing; then it rests on its
   finished picture. Held until in view; on a phone (one column) every step stays lit; with reduced
   motion every scene shows its finished state. */
.lp-how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.lp-how-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 28px; display: flex; flex-direction: column; gap: 24px; box-shadow: var(--shadow-sm); min-width: 0; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
@media (hover: hover) { .lp-how-card:hover { transform: translateY(-4px); border-color: #cfd8e6; box-shadow: 0 18px 40px -24px rgba(15, 23, 42, .28); } }
.lp-how-scene { position: relative; height: 196px; border-radius: 12px; background: #f5f7fa; border: 1px solid #edf1f6; box-sizing: border-box; overflow: hidden; display: flex; align-items: center; justify-content: center; gap: 20px; padding: 0 16px; }
.lp-how-card:first-child .lp-how-scene { flex-direction: column; gap: 18px; }
.lp-how-url { position: relative; width: min(100%, 300px); height: 46px; background: #fff; border: 1px solid #dbe2ec; border-radius: 999px; display: flex; align-items: center; gap: 10px; padding: 0 6px 0 16px; box-sizing: border-box; box-shadow: 0 6px 16px -12px rgba(15, 23, 42, .35); }
.lp-how-globe { width: 15px; height: 15px; flex: none; fill: none; stroke: #94a3b8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-how-typed { flex: 1; display: flex; align-items: center; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 13px; color: var(--ink); }
.lp-how-typed span { display: inline-block; overflow: hidden; white-space: nowrap; width: 14ch; animation: lpHowType 9s steps(14) infinite; }
.lp-how-typed i { display: inline-block; width: 1.5px; height: 16px; background: var(--brand); margin-left: 1px; animation: lpHowCaret 1s step-end infinite; }
.lp-how-go { flex: none; height: 34px; padding: 0 16px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; animation: lpHowPress 9s ease infinite; }
.lp-how-cursor { position: absolute; right: 18px; bottom: -14px; width: 20px; height: 20px; fill: var(--ink); stroke: #fff; stroke-width: 1.5; stroke-linejoin: round; transform: translate(26px, 22px); animation: lpHowCursor 9s cubic-bezier(.6, 0, .3, 1) infinite; }
.lp-how-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.lp-how-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; background: #fff; border: 1px solid #dbe2ec; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.5px; color: #334155; animation: lpHowChip 9s ease infinite; animation-delay: calc(var(--c, 0) * .2s); }
.lp-how-chips svg { width: 12px; height: 12px; fill: none; stroke: #16a34a; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp-how-gauge { position: relative; width: 112px; height: 112px; flex: none; }
.lp-how-gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.lp-how-orbit { fill: none; stroke: #c7d2e2; stroke-width: 1; stroke-dasharray: 2 6; }
.lp-how-ring { fill: #fff; stroke: #e5eaf1; stroke-width: 8; }
.lp-how-arc { fill: none; stroke: var(--brand); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 276; stroke-dashoffset: 84; animation: lpHowGauge 9s cubic-bezier(.5, 0, .2, 1) infinite; animation-delay: var(--o); }
.lp-how-gauge > span { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 13px; font-weight: 700; color: var(--ink); }
.lp-how-gauge small { font-size: 11px; font-weight: 600; color: #64748b; letter-spacing: .08em; }
.lp-how-signals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 500; color: #1e293b; min-width: 0; }
.lp-how-signals li { display: flex; align-items: center; gap: 8px; white-space: nowrap; animation: lpHowSig 9s ease infinite; animation-delay: calc(var(--o) + var(--c, 0) * .3s); }
.lp-how-signals i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: lpHowDot 9s ease infinite; animation-delay: calc(var(--o) + var(--c, 0) * .3s); }
.lp-how-signals .lp-how-more { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 11px; color: #64748b; padding-left: 15px; animation: none; }
.lp-how-doc { position: relative; width: 104px; height: 132px; flex: none; }
.lp-how-sheet { position: absolute; inset: 0; transform: rotate(-6deg) translate(-6px, 4px); background: #fff; border: 1px solid #dbe2ec; border-radius: 8px; }
.lp-how-page { position: absolute; inset: 0; background: #fff; border: 1px solid #dbe2ec; border-radius: 8px; padding: 12px; box-sizing: border-box; display: flex; flex-direction: column; gap: 7px; box-shadow: 0 10px 22px -16px rgba(15, 23, 42, .4); }
.lp-how-page > span { display: block; border-radius: 3px; background: #e2e8f0; height: 4px; }
.lp-how-page .h { height: 6px; width: 60%; background: var(--brand); }
.lp-how-page .l1 { width: 85%; animation: lpHowLine 9s ease infinite; animation-delay: var(--o); }
.lp-how-page .l2 { width: 55%; }
.lp-how-page .bars { margin-top: auto; height: 44px; display: flex; align-items: flex-end; gap: 6px; background: none; }
.lp-how-page .bars i { flex: 1; border-radius: 3px; background: var(--brand); transform-origin: bottom; animation: lpHowBar 9s cubic-bezier(.3, 1.3, .5, 1) infinite; animation-delay: var(--o); }
.lp-how-page .bars i:nth-child(1) { height: 70%; }
.lp-how-page .bars i:nth-child(2) { height: 45%; background: #93b4ef; animation-delay: calc(var(--o) + .2s); }
.lp-how-page .bars i:nth-child(3) { height: 100%; animation-delay: calc(var(--o) + .4s); }
.lp-how-tag { position: absolute; padding: 3px 6px; border-radius: 5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 9.5px; }
.lp-how-tag-pdf { left: -8px; top: -8px; background: var(--ink); color: #fff; }
.lp-how-tag-md { right: -10px; bottom: 14px; background: #fff; border: 1px solid #dbe2ec; color: #334155; }
.lp-how-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; max-width: 190px; }
.lp-how-files li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; background: #fff; border: 1px solid #d8d2f5; border-radius: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 11.5px; color: #6d28d9; animation: lpHowFile 9s ease infinite; animation-delay: calc(var(--o) + var(--c, 0) * .3s); }
.lp-how-files li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-how-files b { flex: none; width: 15px; height: 15px; border-radius: 50%; background: #16a34a; display: inline-flex; align-items: center; justify-content: center; animation: lpHowTick 9s ease infinite; animation-delay: calc(var(--o) + var(--c, 0) * .3s); }
.lp-how-files b svg { width: 9px; height: 9px; fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.lp-how-body { padding: 0 14px; display: flex; flex-direction: column; gap: 10px; }
.lp-how-step { display: flex; align-items: center; gap: 14px; margin-bottom: 4px; }
.lp-how-num { font-size: 46px; line-height: 1; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; color: var(--brand); animation: lpHowNum 9s ease infinite; animation-delay: var(--o); }
.lp-how-meta { flex: 1; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.lp-how-label { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); animation: lpHowLabel 9s ease infinite; animation-delay: var(--o); }
.lp-how-track { position: relative; height: 2px; background: #e2e8f0; border-radius: 1px; overflow: hidden; }
.lp-how-track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--brand); animation: lpHowTrack 9s linear infinite; animation-delay: var(--o); }
.lp-how-card h3 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.015em; }
.lp-how-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.lp-anim-wait .lp-how[data-lp-play]:not(.is-visible) * { animation-play-state: paused; }
@keyframes lpHowNum { 0%, 30% { color: var(--brand); transform: translateY(0); } 36%, 94% { color: #d3dbe6; transform: translateY(0); } 97% { color: var(--brand); transform: translateY(-3px); } 100% { color: var(--brand); transform: translateY(0); } }
@keyframes lpHowLabel { 0%, 30% { color: var(--ink); } 36%, 94% { color: #64748b; } 100% { color: var(--ink); } }
@keyframes lpHowTrack { 0% { width: 0; opacity: 1; } 33% { width: 100%; opacity: 1; } 40%, 100% { width: 100%; opacity: 0; } }
@keyframes lpHowType { 0%, 3% { width: 0; } 14%, 100% { width: 14ch; } }
@keyframes lpHowCaret { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes lpHowCursor { 0%, 8% { transform: translate(26px, 22px); } 15%, 19% { transform: translate(0, 0); } 26%, 100% { transform: translate(26px, 22px); } }
@keyframes lpHowPress { 0%, 16% { transform: scale(1); } 17.5% { transform: scale(.92); } 19.5%, 100% { transform: scale(1); } }
@keyframes lpHowChip { 0%, 19% { opacity: 0; transform: translateY(8px); } 23%, 100% { opacity: 1; transform: translateY(0); } }
@keyframes lpHowGauge { 0%, 3% { stroke-dashoffset: 276; } 24%, 100% { stroke-dashoffset: 84; } }
@keyframes lpHowSig { 0%, 4% { color: #64748b; } 7%, 100% { color: #1e293b; } }
@keyframes lpHowDot { 0%, 4% { background: #cbd5e1; } 7%, 100% { background: #16a34a; } }
@keyframes lpHowBar { 0%, 3% { transform: scaleY(0); } 14%, 100% { transform: scaleY(1); } }
@keyframes lpHowLine { 0%, 3% { width: 0; } 12%, 100% { width: 85%; } }
@keyframes lpHowFile { 0%, 12% { opacity: 0; transform: translateX(14px); } 17%, 100% { opacity: 1; transform: translateX(0); } }
@keyframes lpHowTick { 0%, 16% { transform: scale(0); } 19% { transform: scale(1.25); } 21%, 100% { transform: scale(1); } }
@media (max-width: 700px) {
  .lp-how-num, .lp-how-label, .lp-how-track i { animation: none; }
  .lp-how-track i { width: 100%; }
  .lp-how-card h3 { font-size: 21px; }
  .lp-how-num { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-how * { animation: none !important; transition: none !important; }
  .lp-how-track i { width: 100%; }
}

/* Feature rows */
.lp-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; padding: 34px 0; }
.lp-row-rev .lp-row-copy { order: 2; }
.lp-row h3 { font-size: clamp(28px, 3vw, 36px); margin: 12px 0 10px; font-weight: 800; line-height: 1.2; }
.lp-row-copy > p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.lp-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lp-checks li { position: relative; padding-left: 28px; color: var(--ink); font-size: 15px; }
.lp-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.lp-row-visual { position: relative; }
/* The plate behind every feature row's panel: a flat tint with a faint dot grid, graph paper for
   a page of measurements, where it was a blue-to-violet gradient. All four rows share it. */
.lp-row-visual::before { content: ""; position: absolute; inset: 8% -4% -6% 8%; border-radius: 24px; z-index: 0;
  background: radial-gradient(#cfd8ea 1px, transparent 1.2px) 0 0 / 14px 14px, #eef2f9; }
.lp-panel, .lp-code, .lp-entity { position: relative; z-index: 1; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 40px rgba(15,23,42,.08); }
.lp-panel { padding: 16px 18px 18px; }
.lp-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.lp-panel-head b { color: var(--ink); font-size: 15px; }
.lp-muted { color: #94a3b8; font-size: 12.5px; }
.lp-pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.lp-pill-ok { background: #ecfdf5; color: #15803d; }
.lp-table > div { display: grid; grid-template-columns: 1.2fr 1.2fr auto; align-items: center; padding: 9px 4px; border-top: 1px solid #f1f5f9; font-size: 13.5px; }
.lp-table > div:nth-child(even) { background: #fafbfd; }
.lp-table span { font-weight: 600; color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.lp-table small { color: var(--muted); }
@keyframes lpRise { from { height: 0; } }
/* Citability by grade: flat bars in the report's grade colours on a 0-15 scale (the axis labels and
   the two gridlines are that scale), a count on each bar, then the pages as a table. */
.lp-cite-chart { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; }
.lp-cite-axis { display: grid; grid-template-rows: repeat(3, 1fr) 0; height: 140px; font: 500 10px ui-monospace, SFMono-Regular, Menlo, monospace; color: #94a3b8; text-align: right; }
.lp-cite-axis span { transform: translateY(-6px); }
.lp-cite-plot { height: 140px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 2.4vw, 18px); align-items: end; padding: 0 10px; border-bottom: 1px solid #cbd2de;
  background: linear-gradient(var(--line), var(--line)) 0 0 / 100% 1px no-repeat, linear-gradient(#f1f3f7, #f1f3f7) 0 33.33% / 100% 1px no-repeat, linear-gradient(#f1f3f7, #f1f3f7) 0 66.66% / 100% 1px no-repeat; }
.lp-cite-plot div { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; }
.lp-cite-plot b { text-align: center; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.lp-cite-plot i { height: var(--h); min-height: 3px; background: var(--c); border-radius: 4px 4px 0 0; transform-origin: bottom; }
.lp-cite-x { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 2.4vw, 18px); padding: 6px 10px 0 40px; font: 600 11px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); text-align: center; }
.lp-cite-table { margin-top: 18px; width: 100%; border-collapse: collapse; font-size: 13px; table-layout: fixed; }
.lp-cite-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; padding: 0 0 6px; border-bottom: 1px solid var(--line); }
.lp-cite-table th:nth-child(2), .lp-cite-table td:nth-child(2) { width: 64px; }
.lp-cite-table th:last-child, .lp-cite-table td:last-child { width: 104px; text-align: right; }
.lp-cite-table td { padding: 8px 0; border-bottom: 1px solid #f1f3f7; color: var(--ink); }
.lp-cite-table tr:last-child td { border-bottom: 0; }
.lp-cite-table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-right: 8px; }
.lp-grade { display: inline-grid; place-items: center; width: 22px; height: 20px; border-radius: 5px; font-weight: 800; font-size: 11.5px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, #fff); }
.lp-score { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-score i { width: 56px; height: 4px; border-radius: 99px; background: #eef1f6; position: relative; overflow: hidden; }
.lp-score i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--c); border-radius: 99px; }
/* In view: the bars rise in turn, then the counts, then each page's score fills. */
@keyframes lpBarRise { from { transform: scaleY(0); } }
.lp-cite-plot i { animation: lpBarRise .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 90ms); }
.lp-cite-plot b { animation: lpFadeUp .45s ease-out both; animation-delay: calc(.55s + var(--i, 0) * 90ms); }
.lp-score i::after { animation: lpGrow 1s ease-out both; animation-delay: calc(.6s + var(--i, 0) * 120ms); }
.lp-code { overflow: hidden; }
.lp-code-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #0f172a; color: #cbd5e1; font-family: ui-monospace, monospace; font-size: 12px; }
.lp-code pre { margin: 0; padding: 14px 16px; background: #111827; color: #e2e8f0; font-size: 12.5px; line-height: 1.6; overflow: hidden; }
.lp-code .k { color: #93c5fd; } .lp-code .s { color: #86efac; }
.lp-entity { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: -18px 18px 0 auto; width: 76%; }
.lp-entity-ic { width: 38px; height: 38px; border-radius: 10px; background: #e0f2fe; display: grid; place-items: center; }
.lp-entity-ic svg { width: 20px; height: 20px; fill: none; stroke: var(--teal); stroke-width: 2; }
.lp-entity b { display: block; color: var(--ink); font-size: 14px; } .lp-entity small { color: var(--muted); font-size: 12px; }
.lp-entity .lp-pill { margin-left: auto; }
.lp-vitals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.lp-vital b { font-size: 16px; top: 34px; }
/* The Core Web Vitals rings draw one after another and each reading fades in as its ring fills;
   held until the panel is in view (`[data-lp-play]`, landing page script). */
.lp-vital .lp-g-val { animation-duration: 1.2s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
.lp-vital:nth-child(2) .lp-g-val { animation-delay: .18s; }
.lp-vital:nth-child(3) .lp-g-val { animation-delay: .36s; }
.lp-vital b { animation: lpFadeUp .6s ease-out .25s both; }
.lp-vital:nth-child(2) b { animation-delay: .43s; }
.lp-vital:nth-child(3) b { animation-delay: .61s; }
@keyframes lpFadeUp { from { opacity: 0; transform: translateY(4px); } }
.lp-anim-wait [data-lp-play]:not(.is-visible) .lp-g-val,
.lp-anim-wait [data-lp-play]:not(.is-visible) b,
.lp-anim-wait [data-lp-play]:not(.is-visible) .lp-spec-ic,
.lp-anim-wait [data-lp-play]:not(.is-visible) .lp-cite-plot i,
.lp-anim-wait [data-lp-play]:not(.is-visible) .lp-score i::after,
.lp-anim-wait [data-lp-play]:not(.is-visible) .lp-sov i::after,
.lp-anim-wait [data-lp-play]:not(.is-visible) .lp-matrix i,
.lp-anim-wait [data-lp-play]:not(.is-visible) .lp-all-doc i,
.lp-anim-wait .lp-line[data-lp-play]:not(.is-visible) .ln,
.lp-anim-wait .lp-line[data-lp-play]:not(.is-visible) .area,
.lp-anim-wait .lp-line[data-lp-play]:not(.is-visible) circle { animation-play-state: paused; }
.lp-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-top: 14px; font-size: 13px; color: var(--ink); }
.lp-checklist em { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; padding: 0; }
.lp-checklist em.ok { background: #22c55e; } .lp-checklist em.bad { background: #ef4444; }

/* Bento */
.lp-band { background: linear-gradient(180deg, #f3f6fd, #eef2fb); margin-top: 56px; padding-bottom: 64px; }
.lp-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-tile { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.lp-tile h3 { font-size: 23px; margin: 0; }
.lp-tile p { color: var(--muted); font-size: 14px; margin: 0; line-height: 1.5; }
.lp-tile-wide { grid-column: span 2; flex-direction: row; align-items: stretch; gap: 20px; }
.lp-tile-copy { flex: 0 0 34%; display: flex; flex-direction: column; gap: 8px; }
.lp-plan { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-plan > div { background: #f8fafc; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.lp-plan b { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lp-plan > div:nth-child(1) b { color: #15803d; } .lp-plan > div:nth-child(2) b { color: #b45309; } .lp-plan > div:nth-child(3) b { color: #6d28d9; }
.lp-plan span { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 12.5px; color: var(--ink); box-shadow: var(--shadow-sm); }
.lp-files { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-files span { font-family: ui-monospace, monospace; font-size: 11.5px; padding: 5px 9px; border-radius: 8px; background: #f5f3ff; color: #6d28d9; border: 1px solid #ede9fe; }
.lp-line { width: 100%; height: auto; }
.lp-line .area { fill: rgba(31,111,235,.10); }
.lp-line .ln { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp-line circle { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
/* In view: about 3s in all. The line draws over 2s at an even pace (linear: the points are evenly
   spaced along it, so the line reaches each at 0, 2/3s, 4/3s and 2s, which is when it pops); the
   area fills in behind it; the latest audit's point then rings once, the way the report marks the
   newest score. At 1.2s with a front-loaded ease it read as a flick: most of the line in the first
   0.4s, on a tile already half played by the time the eye reached it. */
/* Its own name: `lpDraw` is the score rings' (they grow their dash from 0), and a second
   `@keyframes lpDraw` later in the file replaced theirs, so every ring stopped drawing. */
@keyframes lpLineDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lpAreaIn { from { opacity: 0; } }
@keyframes lpRing { 0% { stroke-width: 2.5; } 50% { stroke-width: 6; } 100% { stroke-width: 2.5; } }
.lp-line .ln { stroke-dasharray: 1; stroke-dashoffset: 0; animation: lpLineDraw 2s linear both; }
.lp-line .area { animation: lpAreaIn 1.2s ease-out .3s both; }
.lp-line circle { transform-box: fill-box; transform-origin: center; animation: lpPop .4s cubic-bezier(.2, .9, .3, 1.3) both; animation-delay: calc(var(--i, 0) * .667s); }
.lp-line circle.end { animation: lpPop .4s cubic-bezier(.2, .9, .3, 1.3) 2s both, lpRing .7s ease-out 2.4s both; }
.lp-line text { font-size: 11px; font-weight: 700; fill: var(--muted); }
.lp-cal { display: grid; grid-template-columns: repeat(7, 22px); gap: 6px; }
.lp-cal i { height: 22px; border-radius: 6px; background: #f1f5f9; }
.lp-cal i.on { background: linear-gradient(135deg, var(--brand), var(--violet)); }
.lp-docs { display: flex; gap: 10px; }
.lp-docs span { width: 52px; height: 64px; border-radius: 8px; display: grid; place-items: end center; padding-bottom: 8px; font-size: 11px; font-weight: 800; color: #fff; position: relative; }
.lp-docs span::before { content: ""; position: absolute; top: 10px; left: 10px; right: 10px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.6); box-shadow: 0 8px 0 rgba(255,255,255,.45), 0 16px 0 rgba(255,255,255,.35); }
.lp-docs .pdf { background: #ef4444; } .lp-docs .md { background: #334155; } .lp-docs .zip { background: #7c3aed; }
.lp-avatars { display: flex; }
.lp-avatars i { width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff; margin-left: -8px; }
.lp-avatars i:first-child { margin-left: 0; }
.lp-avatars i.add { background: #fff; color: var(--brand); border: 2px dashed #bfdbfe; }

/* AEO dark band */
.lp-aeo { background: radial-gradient(900px 400px at 85% 0%, var(--night-glow-violet), transparent 60%), radial-gradient(800px 380px at 0% 100%, var(--night-glow-blue), transparent 60%), var(--night); color: var(--night-text); padding: 76px 0; margin-top: 0; }
.lp-aeo-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; }
.lp-aeo h2 { line-height: 1.15; color: #fff; font-size: clamp(34px, 4vw, 46px); margin: 16px 0 12px; font-weight: 800; letter-spacing: -0.02em; }
.lp-aeo p { font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.lp-checks-dark li { color: #e2e8f0; }
.lp-checks-dark li::before { background-color: rgba(34,197,94,.18); }
.lp-aeo .btn { margin-top: 22px; }
.lp-aeo-visual { display: grid; gap: 14px; }
.lp-glass { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 16px 18px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lp-glass-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.lp-glass-head b { color: #fff; font-size: 14.5px; } .lp-glass-head span { font-size: 12px; color: #94a3b8; }
/* Who owns the answers: thin flat bars; the customer's row set off with a band, not colour alone. */
.lp-sov { display: grid; gap: 2px; }
.lp-sov > div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 56px; gap: 12px; align-items: center; padding: 7px 10px; border-radius: 8px; font-size: 13px; }
.lp-sov > div > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-sov .you { background: rgba(45, 212, 191, .08); }
.lp-sov i { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); position: relative; overflow: hidden; }
.lp-sov i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 99px; background: #64748b; animation: lpGrow 1.2s ease-out both; }
.lp-sov .you span { color: #5eead4; font-weight: 700; } .lp-sov .you i::after { background: #2dd4bf; }
.lp-sov b { color: #fff; font-variant-numeric: tabular-nums; text-align: right; }
.lp-glass-matrix { margin-left: 34px; }
/* Question by question: one column per engine, headed by its initial in its colour, and each state
   a shape as well as a colour (tick, outline, cross; hatched where the engine gave no answer). */
.lp-matrix { --cell: 34px; display: grid; grid-template-columns: minmax(0, 1fr) repeat(var(--cols, 3), var(--cell)); gap: 7px 8px; align-items: center; }
.lp-matrix-hd { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #64748b; }
.lp-matrix-eng { height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; color: #fff; background: color-mix(in srgb, var(--c) 70%, #0b1224); }
.lp-matrix .q { font-size: 12.5px; color: #e2e8f0; min-width: 0; }
.lp-matrix i, .lp-legend i { height: 22px; border-radius: 6px; display: grid; place-items: center; }
.lp-matrix svg, .lp-legend svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.lp-matrix .both, .lp-legend .both { background: #16a34a; }
.lp-matrix .named, .lp-legend .named { background: #0d9488; }
.lp-matrix .linked, .lp-legend .linked { box-shadow: inset 0 0 0 1.5px #60a5fa; }
.lp-matrix .linked svg, .lp-legend .linked svg { stroke: #60a5fa; }
.lp-matrix .absent, .lp-legend .absent { background: rgba(239,68,68,.14); box-shadow: inset 0 0 0 1px rgba(248,113,113,.45); }
.lp-matrix .absent svg, .lp-legend .absent svg { stroke: #f87171; stroke-width: 2.5; }
.lp-matrix .none, .lp-legend .none { box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(255,255,255,.05) 4px 8px); }
.lp-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 11.5px; color: #94a3b8; }
.lp-legend span { display: inline-flex; align-items: center; gap: 7px; }
.lp-legend i { width: 18px; height: 14px; border-radius: 4px; }
.lp-legend svg { width: 9px; height: 9px; }
/* In view: the answers pop in one after another, as in the hero dashboard. */
.lp-matrix i { animation: lpPop .3s ease-out both; animation-delay: calc(.45s + var(--i, 0) * 55ms); }

/* Loop */
.lp-loop-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.lp-loop-copy h2 { font-size: clamp(34px, 4vw, 46px); margin: 10px 0 12px; font-weight: 800; }
.lp-loop-copy p { color: var(--muted); font-size: 16px; line-height: 1.6; }
.lp-loop svg { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
/* The loop: dashes flow clockwise by whole dash periods (10 units of the ring's 400), so the cycle
   has no jump; a light travels it in 8 s and each step lights as it arrives, a quarter apart. */
.lp-loop-ring { animation: lpDash 1.6s linear infinite; }
@keyframes lpDash { to { stroke-dashoffset: -20; } }
.lp-loop-arrows path { fill: #5b5bd6; stroke: #f3f4fb; stroke-width: 2; paint-order: stroke; }
.lp-loop .node circle { fill: #fff; stroke: #c7d2fe; stroke-width: 2; filter: drop-shadow(0 6px 10px rgba(31,111,235,.15));
  animation: lpLoopNode 8s ease-in-out infinite; }
.lp-loop .node-2 circle { animation-delay: 2s; }
.lp-loop .node-3 circle { animation-delay: 4s; }
.lp-loop .node-4 circle { animation-delay: 6s; }
@keyframes lpLoopNode {
  0%, 3%, 97%, 100% { stroke: #6d5df0; stroke-width: 3.5; }
  9%, 91% { stroke: #c7d2fe; stroke-width: 2; }
}
@media (prefers-reduced-motion: reduce) { .lp-loop-dot { display: none; } }
.lp-loop .node text { text-anchor: middle; font-size: 13px; font-weight: 800; fill: var(--ink); }
.lp-loop .mid { text-anchor: middle; font-size: 26px; font-weight: 800; fill: var(--brand); }
.lp-loop .mid-sub { text-anchor: middle; font-size: 11px; fill: var(--muted); }

/* FAQ + CTA */
.lp .faq { max-width: 860px; margin: 64px auto 0; padding: 0 24px; }
.lp .faq > h2 { font-size: clamp(34px, 4vw, 46px); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
/* The closing call to action: the AEO band's night surface as a card (`--night*`: same navy, same
   violet and blue glows at the same corners, same text), the hero's 36px grid faint on top, and the
   18px radius every other card on the page has. It was a full blue-to-violet slab with a purple
   haze under it, louder than anything above it on the page. */
.lp-cta { position: relative; isolation: isolate; overflow: hidden; margin: 64px 0 72px; border-radius: 18px;
  padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; color: var(--night-text);
  background:
    radial-gradient(70% 120% at 85% 0%, var(--night-glow-violet), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, var(--night-glow-blue), transparent 60%),
    var(--night);
  border: 1px solid var(--night-edge);
  box-shadow: 0 30px 60px -20px rgba(15, 23, 42, 0.35), 0 6px 16px rgba(15, 23, 42, 0.06); }
.lp-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 75%); }
.lp-cta h2 { color: #fff; margin: 0 0 10px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.lp-cta p { margin: 0; max-width: 58ch; font-size: 16px; line-height: 1.6; text-wrap: pretty; }
.lp-cta .btn { white-space: nowrap; flex: 0 0 auto; }

@media (max-width: 960px) {
  .lp-hero-inner, .lp-row, .lp-aeo-inner, .lp-loop-sec { grid-template-columns: 1fr; gap: 32px; }
  .lp-row-rev .lp-row-copy { order: 0; }
  .lp-spec { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-bento { grid-template-columns: 1fr; }
  .lp-tile-wide { grid-column: auto; flex-direction: column; }
  .lp-mock { transform: none; }
  .lp-hero-visual { padding: 18px 0 30px; }
  .lp-glass-matrix { margin-left: 0; }
  .lp-cta { flex-direction: column; align-items: flex-start; gap: 24px; padding: 32px 24px; }
}
@media (max-width: 560px) {
  .lp-wrap, .lp-section { padding-left: 16px; padding-right: 16px; }
  .lp-hero { padding-top: 36px; }
  .lp-url { flex-wrap: wrap; padding: 8px; }
  .lp-url .btn { width: 100%; }
  .lp-gauge svg { width: 72px; height: 72px; } .lp-gauge b { top: 22px; font-size: 18px; }
  .lp-bar { grid-template-columns: 1fr 70px auto; font-size: 11.5px; }
  .lp-float-scan { display: none; }
  .lp-plan { grid-template-columns: 1fr; }
  .lp-spec > div { padding: 18px 16px 16px; }
  .lp-spec-ic svg { width: 26px; height: 26px; }
  .lp-matrix { --cell: 28px; gap: 7px 6px; }
  .lp-panel { padding: 14px 14px 16px; }
  /* The name gets the room: at an even split "example.com (you)" lost its "(you)". */
  .lp-sov > div { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 52px; gap: 10px; padding: 7px 8px; }
}
/* The narrowest phones (320-380px): two cells a row leave about 115px each, where "3-5 min" at
   30px broke onto two lines. Smaller figures and tighter cells keep every one on one line. */
@media (max-width: 380px) {
  .lp-spec > div { padding: 16px 12px 14px; gap: 8px; }
  .lp-spec b { font-size: 26px; }
  .lp-spec-ic svg { width: 22px; height: 22px; }
  .lp-spec p { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; }
}

.lp-tile-strip { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 20px; }
.lp-tile-strip h3 { flex: 0 0 auto; }
.lp-tile-strip p { flex: 1; }
.lp-loop-copy .lp-checks { margin-top: 18px; }
@media (max-width: 960px) {
  .lp-tile-strip { flex-direction: column; align-items: flex-start; }
  .lp-hero-visual { padding-bottom: 110px; }
  .lp-float-scan { left: 0; right: auto; top: auto; bottom: 0; }
}
@media (max-width: 960px) { .lp-tile-copy { flex: none; } }
@media (max-width: 560px) { .lp-hero-visual { padding-bottom: 46px; } .lp-float-proj { bottom: 0; right: 0; } }

/* --- review round: honesty labels, SEO heading, plan notes, sign-up hand-off --- */
.lp-hero h1 { margin-top: 0; }
.lp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lp-note a { margin-left: 4px; font-weight: 600; }
.lp-aeo-visual { position: relative; }
.lp-addon-tag { display: inline-block; margin-top: 4px; font-style: normal; font-size: 10px; font-weight: 800; color: #0f766e; background: #ccfbf1; border-radius: 6px; padding: 1px 6px; }
.lp-plan-note { align-self: flex-start; font-size: 11.5px; font-weight: 700; color: #6d28d9; background: #f5f3ff; border: 1px solid #ede9fe; border-radius: 999px; padding: 3px 10px; margin-top: auto; }
.lp-plan-note.lp-plan-all { color: #15803d; background: #ecfdf5; border-color: #d1fae5; }
.lp-files span.locked { background: #f8fafc; color: #64748b; border-color: var(--line); }
.lp-files span.locked::before { content: ""; display: inline-block; width: 9px; height: 10px; margin-right: 6px; vertical-align: -1px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='3'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat; }
/* All 8 areas: a report's contents. The heading in a side panel beside a drawing of a report, the
   areas in two ruled columns, each ticked. One column, the drawing dropped, below tablet width. */
.lp-all { margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); overflow: hidden; }
.lp-all-side { padding: 26px; background: #fafbfd; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 18px; }
.lp-all h3 { margin: 0; font-size: 24px; line-height: 1.2; text-wrap: balance; }
.lp-all-doc { width: 100%; max-width: 150px; aspect-ratio: 3 / 4; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 20px rgba(15,23,42,.06); padding: 12px 11px; display: grid; align-content: start; gap: 6px; }
.lp-all-doc i { height: 5px; border-radius: 3px; background: #e9edf4; }
.lp-all-doc i:first-child { width: 55%; height: 7px; background: var(--ink); opacity: .85; margin-bottom: 4px; }
.lp-all-doc i.on { background: var(--brand); opacity: .55; }
.lp-all-list { list-style: none; margin: 0; padding: 6px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.lp-all-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid #eef1f5; }
.lp-all-list li:nth-last-child(-n+2) { border-bottom: 0; }
.lp-all-list svg { width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lp-all-list b { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.lp-all-list span { grid-column: 2; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
/* In view: the text stays still and the drawing beside it writes itself, a line at a time, top to
   bottom (about a second). Hidden with the drawing below tablet width. */
@keyframes lpLineIn { from { transform: scaleX(0); } }
.lp-all-doc i { transform-origin: left center; animation: lpLineIn .45s ease-out both; animation-delay: calc(.1s + var(--i, 0) * 85ms); }
@media (max-width: 960px) {
  .lp-all { grid-template-columns: minmax(0, 1fr); }
  .lp-all-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 22px; }
  .lp-all-doc { display: none; }
}
@media (max-width: 640px) {
  .lp-all-list { grid-template-columns: minmax(0, 1fr); padding: 4px 20px; }
  .lp-all-list li:nth-last-child(2) { border-bottom: 1px solid #eef1f5; }
}

.lp-login { font-size: 13.5px; color: var(--muted); margin: -16px 0 24px; }
.lp-login a { font-weight: 600; }
.lp-engine { font-size: 12.5px; padding: 4px 10px 4px 4px; }
.lp-engine i { width: 20px; height: 20px; font-size: 10px; }
.lp-of { font-size: 11px; color: #94a3b8; font-weight: 600; margin-left: 1px; }
.lp-hero-visual { padding-bottom: 140px; }
@media (max-width: 960px) { .lp-hero-visual { padding-bottom: 130px; } }

.lp-marquee:hover .lp-marquee-track, .lp-marquee:focus-within .lp-marquee-track,
.lp-marquee:active .lp-marquee-track { animation-play-state: paused; }
/* Reduced motion: still, and each row scrolls by hand rather than wrapping into a wall of pills. */
@media (prefers-reduced-motion: reduce) {
  .lp-marquee { mask-image: none; -webkit-mask-image: none; }
  .lp-marquee-track { animation: none; width: auto; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
  .lp-marquee-track::-webkit-scrollbar { display: none; }
  .lp-marquee-track span[aria-hidden] { display: none; }
}

/* Landing buttons: a slight raise rather than a flat slab. A light top edge, a darker bottom edge
   and a soft shadow in the brand's own colour; up 1px under the pointer, back down when pressed.
   Scoped to `.lp` so the shared header and every other page keep their buttons. The plain colour
   comes first for browsers without `color-mix()`. */
.lp .btn {
  border: 1px solid var(--brand-dark);
  background: var(--brand);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 80%, #fff) 0%, var(--brand) 55%, var(--brand-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.14),
              0 1px 2px rgba(16, 24, 40, 0.14), 0 4px 12px rgba(31, 111, 235, 0.28);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
.lp .btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.14),
              0 2px 4px rgba(16, 24, 40, 0.16), 0 8px 18px rgba(31, 111, 235, 0.32);
}
.lp .btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.18), 0 1px 2px rgba(16, 24, 40, 0.12);
}
.lp .btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 2px; }
/* The white button on the dark and gradient bands. */
.lp .btn.lp-btn-light {
  color: #0b1224;
  border-color: #fff;
  background: #fff;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5ff 100%);
  text-shadow: none;
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 0 rgba(15, 23, 42, 0.1),
              0 1px 2px rgba(0, 0, 0, 0.2), 0 6px 16px rgba(0, 0, 0, 0.22);
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
/* A slight shift on hover, a pale brand tint and brand-blue text, so the button answers the pointer
   on the night surfaces it sits on ("See add-on pricing", "Create a free account"). */
.lp .btn.lp-btn-light:hover {
  color: var(--brand-dark);
  background: #eef3ff;
  background: linear-gradient(180deg, #f4f7ff 0%, #e3ebff 100%);
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 0 rgba(31, 111, 235, 0.14),
              0 2px 4px rgba(0, 0, 0, 0.22), 0 10px 22px rgba(0, 0, 0, 0.26);
}
.lp .btn.lp-btn-light:active { box-shadow: inset 0 2px 3px rgba(15, 23, 42, 0.16), 0 1px 2px rgba(0, 0, 0, 0.18); }
@media (prefers-reduced-motion: reduce) {
  .lp .btn, .lp .btn:hover, .lp .btn:active { transition: none; transform: none; }
}

/* The signed-in audit page (ap-). It sits in `site-main-wide`, like the landing page. */
.ap { --ink: #0f172a; --muted: #5b6475; --line: #e6e8ee; position: relative; overflow-x: clip; padding: 40px 0 64px; }
.ap-bg { position: absolute; inset: 0 0 auto 0; height: 520px; overflow: hidden; pointer-events: none; z-index: 0; }
.ap-blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .4; }
.ap-blob-a { width: 460px; height: 460px; background: #bfdbfe; top: -200px; right: -60px; }
.ap-blob-b { width: 380px; height: 380px; background: #ddd6fe; top: -120px; left: -140px; }
/* `minmax(0, 1fr)`, not the implicit `auto` track: an `auto` track grows to its widest child, so
   one wide element pushed the whole card past the right gutter, where `.ap` clips it. */
.ap-wrap { position: relative; z-index: 1; max-width: 1160px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }

.ap-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.ap-head h1 { margin: 0 0 6px; font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.ap-head p { margin: 0; color: var(--muted); font-size: 15.5px; }

.ap-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.ap-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.ap-card h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.ap-card h3 { margin: 0 0 4px; font-size: 16px; color: var(--ink); }

.ap-form { display: grid; gap: 8px; }
.ap-label { font-size: 13px; font-weight: 700; color: var(--ink); margin-top: 6px; }
.ap-label small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.ap-url { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.ap-url:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(31,111,235,.12); }
.ap-url svg { width: 18px; height: 18px; fill: none; stroke: #94a3b8; stroke-width: 1.7; display: block; }
.ap-url input { flex: 1; border: 0; outline: 0; font: inherit; font-size: 16px; padding: 13px 0; background: transparent; min-width: 0; }
.ap-hint { margin: 0; font-size: 13px; color: var(--muted); }
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 15px; color: #fff; padding: 13px 22px; border-radius: 12px;
  border: 1px solid var(--brand-dark); background: var(--brand);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 80%, #fff) 0%, var(--brand) 55%, var(--brand-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.14), 0 1px 2px rgba(16,24,40,.14), 0 4px 12px rgba(31,111,235,.28);
  text-shadow: 0 1px 0 rgba(0,0,0,.15); transition: transform .12s, box-shadow .12s;
}
.ap-btn:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.14), 0 2px 4px rgba(16,24,40,.16), 0 8px 18px rgba(31,111,235,.32); }
.ap-btn:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0,0,0,.18); }
.ap-form .ap-btn { margin-top: 10px; justify-self: start; min-width: 220px; }
.ap-btn-ghost { color: var(--brand); background: #fff; border-color: #c7d7f5; text-shadow: none; font-size: 13.5px; padding: 8px 14px; border-radius: 10px;
  box-shadow: inset 0 -2px 0 rgba(31,111,235,.08), 0 1px 2px rgba(16,24,40,.06); }
.ap-btn-ghost:hover { box-shadow: inset 0 -2px 0 rgba(31,111,235,.08), 0 4px 10px rgba(31,111,235,.14); }
.ap-btn-light { color: #0b1224; background: #fff; background: linear-gradient(180deg, #fff, #f1f5ff); border-color: #fff; text-shadow: none;
  box-shadow: inset 0 1px 0 #fff, inset 0 -2px 0 rgba(15,23,42,.1), 0 6px 16px rgba(0,0,0,.22); white-space: nowrap; }

.ap-includes { margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.ap-includes h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin-bottom: 10px; }
.ap-includes ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.ap-includes li { position: relative; padding-left: 28px; display: flex; flex-direction: column; gap: 2px; }
.ap-includes li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ap-includes li.aeo::before { background-color: #ccfbf1; }
.ap-includes b { font-size: 14px; color: var(--ink); }
.ap-includes b em { font-style: normal; font-size: 10.5px; font-weight: 800; color: #0f766e; background: #ccfbf1; border-radius: 6px; padding: 1px 6px; margin-left: 4px; vertical-align: 1px; }
.ap-includes span { font-size: 13px; color: var(--muted); }

.ap-side { display: grid; gap: 20px; }
.ap-plan-head { display: flex; justify-content: space-between; align-items: center; }
.ap-plan-head h2 { margin: 0; }
.ap-pill { font-size: 12px; font-weight: 800; color: #6d28d9; background: #f5f3ff; border: 1px solid #ede9fe; border-radius: 999px; padding: 4px 12px; }
.ap-meter { margin-top: 16px; }
.ap-meter div { display: flex; justify-content: space-between; align-items: baseline; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; }
.ap-meter b { color: var(--ink); font-size: 16px; }
.ap-meter b small { font-size: 12px; color: var(--muted); font-weight: 600; }
.ap-meter i { display: block; height: 8px; border-radius: 99px; background: #eef2f7; position: relative; overflow: hidden; }
.ap-meter i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--brand), #7c3aed); }
.ap-meter.aeo i::after { background: linear-gradient(90deg, #14b8a6, #0891b2); }
.ap-muted { color: var(--muted); font-size: 13px; margin: 14px 0 6px; }
.ap-sched { display: flex; gap: 14px; align-items: flex-start; }
.ap-sched p { margin: 0 0 8px; color: var(--muted); font-size: 13.5px; }
.ap-sched-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; background: #eef2ff; display: grid; place-items: center; }
.ap-sched-ic svg { width: 20px; height: 20px; fill: none; stroke: #4f46e5; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.ap-recent-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.ap-recent-head h2 { margin: 0; }
.ap-rows { display: grid; }
.ap-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 210px; gap: 18px; align-items: center; padding: 14px 0; border-top: 1px solid #f1f5f9; }
.ap-site b { display: block; color: var(--ink); font-size: 15px; }
.ap-site small { color: var(--muted); font-size: 12.5px; }
.ap-scores { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-score { display: inline-grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--c) 8%, #fff); border-color: color-mix(in srgb, var(--c) 22%, #fff); }
.ap-score b { font-size: 18px; color: var(--c); font-weight: 800; }
.ap-score small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ap-score em { grid-column: 1 / -1; font-style: normal; font-size: 11px; font-weight: 700; }
.ap-score em.up { color: #15803d; } .ap-score em.down { color: #b91c1c; } .ap-score em.same { color: #94a3b8; }
.ap-actions { display: flex; gap: 8px; justify-content: flex-end; }
.ap-actions form { margin: 0; }
.ap-form .form-error { margin: 0 0 4px; text-align: left; }
.ap-live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; margin-right: 5px; animation: apPulse 1.6s infinite; }
@keyframes apPulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5); } 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0); } }

.ap-offer { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-radius: 20px; padding: 26px 30px; color: #cbd5e1;
  background: radial-gradient(600px 240px at 90% 0%, rgba(124,58,237,.45), transparent 60%), radial-gradient(500px 220px at 0% 100%, rgba(31,111,235,.45), transparent 60%), #0b1224; }
.ap-offer h2 { color: #fff; margin: 8px 0 6px; font-size: 24px; font-weight: 800; }
.ap-offer p { margin: 0; font-size: 14.5px; max-width: 620px; }
.ap-offer-tag { font-size: 11px; font-weight: 800; color: #04201d; background: #14b8a6; border-radius: 6px; padding: 2px 8px; }

@media (max-width: 960px) {
  .ap-grid { grid-template-columns: 1fr; }
  .ap-row { grid-template-columns: 1fr; gap: 10px; }
  .ap-row > div:empty { display: none; }
  .ap-actions { justify-content: flex-start; }
  .ap-offer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .ap-wrap { padding: 0 16px; }
  .ap { padding-top: 24px; }
  .ap-head { flex-direction: column; align-items: flex-start; }
  .ap-card { padding: 18px; }
  .ap-includes ul { grid-template-columns: 1fr; }
  .ap-form .ap-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ap *, .ap *::before, .ap *::after { animation: none !important; transition: none !important; } }

/* The audit progress page (pp-), built on the audit page's card, meter, live dot and buttons. */
.pp-wrap { max-width: 820px; }
.pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.pp-state { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: #15803d; }
.pp h1 { margin: 0 0 6px; font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: anywhere; }
.pp-sub { margin: 0; color: var(--muted); font-size: 15px; }
.pp-pct { text-align: right; flex: none; }
.pp-pct b { display: block; font-size: 30px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-pct small { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pp-bar { margin-top: 18px; }
.pp-bar i { height: 10px; }
.pp-step { margin: 10px 0 0; font-size: 14px; font-weight: 600; color: var(--ink); }

.pp-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.pp-groups h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; margin: 0 0 8px; }
.pp-groups ul + h3 { margin-top: 16px; }
.pp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.pp-steps li { position: relative; padding-left: 28px; font-size: 14px; color: #94a3b8; }
.pp-steps li::before { content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #e2e8f0; box-sizing: border-box; }
.pp-steps li.done { color: var(--ink); }
.pp-steps li.done::before { border: 0; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 11px no-repeat; }
.pp-steps li.active { color: var(--ink); font-weight: 700; }
.pp-steps li.active::before { border-color: var(--brand); animation: apPulse 1.6s infinite; }

.pp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.pp-foot p { margin: 0; font-size: 13.5px; color: var(--muted); }
.pp-foot .ap-btn { flex: none; }

@media (max-width: 640px) {
  .pp-groups { grid-template-columns: 1fr; gap: 18px; }
  .pp-foot { flex-direction: column; align-items: flex-start; }
}

/* The account page (ac-), built on the audit page's card, meter, rows, chips and buttons. The
   re-audit switch, the status pills and the billing banners keep their existing styles. */
.ac-who { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; color: var(--muted); font-size: 14.5px; }
.ac-who span:first-child { overflow-wrap: anywhere; }
.ac-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ap-wrap > .billing-status-banner { margin: 0; }
.ap-wrap > .billing-status-banner + .ap-head { margin-top: 4px; }

.ac-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.ac-stat { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.ac-stat-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ac-stat b { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.1; }
.ac-stat b small { font-size: 13px; font-weight: 600; color: var(--muted); }
.ac-stat .ap-meter { margin-top: 2px; }
.ac-stat-note { font-size: 12.5px; color: var(--muted); }
.ac-split { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.ac-split.is-over span { color: #b91c1c; font-weight: 700; }
.ac-note { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.ac-count { font-size: 13px; color: var(--muted); font-weight: 600; }

.ac-sites { display: grid; }
.ac-site { display: grid; grid-template-columns: minmax(0, 1fr) auto 210px; gap: 18px; align-items: center; padding: 12px 0; border-top: 1px solid #f1f5f9; }
.ac-site-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.ac-site-name b { color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.ac-site-name small { color: var(--muted); font-size: 12.5px; }
.ac-site.is-locked .ac-site-name b { color: var(--muted); }
.ac-locked { font-size: 11.5px; font-weight: 700; color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 999px; padding: 1px 8px; }
.ac-locked-why { font-size: 13px; color: var(--muted); }
/* Pinned, so a site with no re-audit switch (a plan without them) keeps its buttons in line. */
.ac-site > .ap-actions { grid-column: 3; }
.ac-site-auto { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* The next automatic audit, under the website's name (account.html `next_audit_line`). The full
   width of the name column, wrapping inside it: a long pause reason never widens the row or pushes
   the switch and buttons off a phone. A date never breaks inside itself. */
.ac-site-next { flex-basis: 100%; display: flex; align-items: flex-start; gap: 6px; min-width: 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.ac-site-next svg { width: 14px; height: 14px; margin-top: 2px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ac-site-next > span { min-width: 0; overflow-wrap: anywhere; }
.ac-site-next strong { color: var(--ink); font-weight: 600; }
.ac-site-next time, .ac-site-next a { white-space: nowrap; }
.ac-site-next a { color: var(--brand); font-weight: 600; }
.ac-site-next.is-soon strong { color: var(--brand); }
.ac-site-next.is-paused, .ac-site-next.is-paused strong { color: #b4232b; }
.ac-site-next.is-held, .ac-site-next.is-held strong { color: #92400e; }
.ap-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.ac-job { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.6fr) 210px; }
.ac-job-mid { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

@media (max-width: 960px) {
  .ac-site, .ac-job { grid-template-columns: 1fr; gap: 10px; }
  .ac-site > .ap-actions { grid-column: auto; justify-content: flex-start; }
  .ac-head-actions { width: 100%; }
}
/* The account header's two buttons are one pair: the ghost style's smaller size (meant for
   secondary links inside cards) made them two different shapes, and on a phone two different
   widths once they wrapped. Same size here, and on phones one full-width column. */
.ac-head-actions .ap-btn { font-size: 14.5px; padding: 11px 18px; border-radius: 12px; }
@media (max-width: 600px) {
  .ac-head-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  .ac-head-actions .ap-btn { width: 100%; }
}

/* The account page's report-history filters and pager. */
.ac-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px 12px; align-items: end; margin: 4px 0 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfe; }
.ac-filters label { display: grid; gap: 4px; min-width: 0; }
.ac-filters label span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ac-filters select, .ac-filters input { width: 100%; min-width: 0; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.ac-filters select:focus, .ac-filters input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.ac-filter-actions { display: flex; gap: 8px; }
.ac-pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f1f5f9; font-size: 13.5px; color: var(--muted); }

/* A member's view of the plan cards: shown, not choosable. */
fieldset.settings-readonly { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Settings (st-), built on the audit page's card, buttons and meter. */
.st-wrap { max-width: 1040px; }
.st-head { display: grid; gap: 14px; }
.st-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.st-tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: 12px; width: max-content; max-width: 100%; }
.st-tabs a { padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); text-decoration: none; }
.st-tabs a:hover { color: var(--ink); background: #f4f6fb; }
.st-tabs a.is-active { color: #fff; background: var(--brand); }

.st-section { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
.st-info h2 { margin: 0 0 6px; font-size: 18px; }
.st-info p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.st-form { display: grid; gap: 14px; max-width: 560px; }
.st-field { display: grid; gap: 6px; }
.st-field > span { font-size: 13px; font-weight: 700; color: var(--ink); }
.st-field small, .st-check small { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.st-field input, .st-field select { font: inherit; font-size: 14.5px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-width: 0; box-sizing: border-box; }
.st-field input:focus, .st-field select:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.st-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.st-check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; }
.st-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.st-check span { display: grid; gap: 2px; }
.st-note { margin: 0; font-size: 13px; color: var(--muted); }
.st-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.st-current { margin: 0; font-size: 14px; color: var(--muted); }
.st-facts { margin: 0; display: grid; gap: 12px; }
.st-facts div { display: grid; gap: 2px; }
.st-facts dt { font-size: 13px; font-weight: 700; color: var(--ink); }
.st-facts dd { margin: 0; display: grid; gap: 2px; font-size: 14px; color: var(--ink); }
.st-facts code { font-size: 13px; background: #f4f6fb; border-radius: 6px; padding: 2px 6px; width: max-content; max-width: 100%; overflow-wrap: anywhere; }
.st-facts small { font-size: 12.5px; color: var(--muted); }

.ap-btn-danger { color: #fff; background: #dc2626; border-color: #b91c1c; text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 -2px 0 rgba(0,0,0,.14), 0 4px 12px rgba(220,38,38,.25); }
.st-danger-text { color: #b91c1c; border-color: #fecaca; }
.st-danger { border-color: #fecaca; }
.st-danger .st-info h2 { color: #b91c1c; }
.st-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.st-choice > div { display: grid; gap: 8px; align-content: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.st-choice p { margin: 0; font-size: 13.5px; color: var(--muted); }
.st-choice .ap-btn { justify-self: start; }

.st-seats { display: grid; gap: 6px; max-width: 320px; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.st-seats b { color: var(--ink); }
.st-members { display: grid; }
.st-member { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 210px; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #f1f5f9; }
.st-initial { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #4f46e5; background: #eef2ff; }
.st-who b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; color: var(--ink); font-size: 14.5px; overflow-wrap: anywhere; }
.st-who small { color: var(--muted); font-size: 12.5px; }
.st-you { flex: none; white-space: nowrap; font-size: 11px; font-weight: 800; color: #fff; background: var(--brand); border-radius: 999px; padding: 1px 8px; }
.st-member .ap-actions { justify-content: flex-end; }
.st-invite { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); max-width: 560px; }
.st-inline { display: flex; gap: 10px; }
.st-inline input { flex: 1; }

.st-summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.st-eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.st-summary h2 { margin: 0 0 8px; display: flex; align-items: baseline; gap: 12px; font-size: 26px; }
.st-price { font-size: 20px; font-weight: 800; color: var(--brand); }
.st-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.st-sub { margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }
.st-summary-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: stretch; }
.st-summary-actions form { margin: 0; display: flex; }
/* "Change plan" and "Cancel Subscription" side by side at one size: the outlined button's smaller
   default (13.5px, 8px padding) left Cancel a size down from the button beside it. */
.st-summary-actions .ap-btn { font-size: 15px; padding: 13px 22px; border-radius: 12px; }

@media (max-width: 860px) {
  .st-section { grid-template-columns: 1fr; gap: 14px; }
  .st-choice, .st-pair { grid-template-columns: 1fr; }
  .st-member { grid-template-columns: 36px minmax(0, 1fr) auto; }
  .st-member .ap-actions { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 560px) {
  .st-tabs { width: 100%; }
  .st-tabs a { flex: 1; text-align: center; padding: 8px 6px; }
  .st-inline { flex-direction: column; }
}

/* Settings additions over the demo: the summary card's full-width rows, the plan alerts, the
   members list's pending invite, and the bar on a full seat count. */
.st-summary .st-wide { flex-basis: 100%; margin: 0; }
.st-alert { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border: 1px solid #fecaca; border-radius: 12px; background: #fef2f2; }
.st-alert .form-error { margin: 0; text-align: left; width: auto; }
.st-initial.is-pending { color: #92400e; background: #fffbeb; }
.st-member form { margin: 0; }
.st-section .form-error, .st-section .form-success, .ap-card .form-note { text-align: left; }
.st-summary .pill strong { font-weight: 800; }

/* The buyer-questions page (qs-). */
.qs-wrap { max-width: 1040px; }
.qs-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0; color: var(--muted); font-size: 14px; }
.qs-banner { margin: 0; }
.qs-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.qs-form { max-width: none; margin-top: 16px; }
/* One numbered box per question (`aeo_questions.html`): the page's own field style, the number in
   the same badge as the website pill. Empty boxes are dashed, a box over the limit amber, a box the
   server refused red with its reason underneath. */
.qs-error { text-align: left; margin: 14px 0 0; }
.qs-head-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 4px 0 10px; }
.qs-head-row > span:first-child { font-size: 13px; font-weight: 700; color: var(--ink); }
.qs-progress { font-size: 12.5px; font-weight: 700; color: #b45309; }
.qs-progress.is-ok { color: #15803d; }
.qs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qs-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) 28px; gap: 10px; align-items: start; }
.qs-num { width: 28px; height: 28px; margin-top: 7px; border-radius: 999px; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #6d28d9; background: #f5f3ff; border: 1px solid #ede9fe; }
.qs-item.is-empty .qs-num { color: var(--muted); background: #fff; border-color: var(--line); }
.qs-field textarea { display: block; width: 100%; box-sizing: border-box; resize: none; overflow: hidden;
  font: inherit; font-size: 14.5px; line-height: 1.45; padding: 10px 12px; min-height: 42px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); }
.qs-field textarea::placeholder { color: #98a2b3; }
.qs-item.is-empty .qs-field textarea { border-style: dashed; background: #fcfcfd; }
.qs-field textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; border-style: solid; background: #fff; }
.qs-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 4px; font-size: 12px; color: var(--muted); }
.qs-meta:empty { display: none; }
.qs-len { margin-left: auto; font-variant-numeric: tabular-nums; }
.qs-len:empty { display: none; }
.qs-item.is-long .qs-field textarea { border-color: #f59e0b; }
.qs-item.is-long .qs-len { color: #b45309; font-weight: 700; }
.qs-item.is-rejected .qs-field textarea { border-color: #fca5a5; background: #fffafa; }
.qs-item.is-rejected .qs-num { color: #b91c1c; background: #fef2f2; border-color: #fecaca; }
.qs-why { color: #b91c1c; font-weight: 600; }
.qs-clear { margin-top: 7px; width: 28px; height: 28px; padding: 0; border-radius: 8px; border: 1px solid transparent; background: none;
  color: #98a2b3; font-size: 18px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.qs-item:hover .qs-clear, .qs-item:focus-within .qs-clear { opacity: 1; }
.qs-clear:hover, .qs-clear:focus-visible { color: var(--sev-high); border-color: var(--line); background: #fff; }
.qs-item.is-empty .qs-clear { visibility: hidden; }
.qs-tip { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
@media (hover: none) { .qs-clear { opacity: 1; } }
@media (max-width: 560px) {
  .qs-item { grid-template-columns: 24px minmax(0, 1fr) 24px; gap: 8px; }
  .qs-num { width: 24px; height: 24px; }
  .qs-clear { width: 24px; height: 24px; }
}
.qs-rules ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.qs-rules li { font-size: 13.5px; color: var(--muted); line-height: 1.55; padding-left: 14px; border-left: 3px solid #e0e7ff; }
.qs-rules li b { display: block; color: var(--ink); margin-bottom: 2px; }
@media (max-width: 860px) { .qs-grid { grid-template-columns: 1fr; } }

/* Admin dashboard (ad-), on the audit pages' card, buttons and tabs. */
.ad-wrap { max-width: 1240px; }
.ad-head { display: grid; gap: 12px; }
.ad-head h1 { margin: 0; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.ad-asof { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ad-tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; position: relative; }
.ad-tabs::-webkit-scrollbar { display: none; }
.ad-tabs a { white-space: nowrap; }
/* The cue that the bar scrolls (`_admin_nav.html` toggles `more-left` / `more-right`): a fade and
   an arrow on the side with hidden tabs, shown only while there is something that way. */
/* Shrink-to-fit by `justify-self`, never `width: max-content`: a grid item with an explicit
   max-content width gives the column all eight tabs as its MINIMUM, so the header grew past the
   phone, the bar itself never overflowed (no scroll, no arrows) and `.ap` clipped the rest. */
.ad-tabs-shell { position: relative; justify-self: start; max-width: 100%; }
.ad-tabs-shell::before, .ad-tabs-shell::after { content: ""; position: absolute; top: 1px; bottom: 1px; width: 44px; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 1; }
.ad-tabs-shell::before { left: 1px; border-radius: 12px 0 0 12px; background: linear-gradient(90deg, #fff 35%, rgba(255,255,255,0)); }
.ad-tabs-shell::after { right: 1px; border-radius: 0 12px 12px 0; background: linear-gradient(270deg, #fff 35%, rgba(255,255,255,0)); }
.ad-tabs-shell.more-left::before, .ad-tabs-shell.more-right::after { opacity: 1; }
.ad-tabs-more { display: grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 28px; height: 28px; padding: 0; border-radius: 50%; border: 1px solid #dbe3f0; background: #fff; color: var(--brand); font: inherit; font-size: 18px; font-weight: 800; line-height: 1; cursor: pointer; box-shadow: 0 2px 6px rgba(15,23,42,.12); }
.ad-tabs-more[data-dir="-1"] { left: 6px; }
.ad-tabs-more[data-dir="1"] { right: 6px; }
.ad-tabs-more:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.ad-tabs-count { display: none; margin: -4px 0 0; font-size: 12px; color: var(--muted); }
@media (max-width: 560px) {
  /* Natural width, not the settings tabs' stretched `flex: 1`: stretched, the cut-off tab looked
     like the end of the bar. */
  .ad-tabs a { flex: 0 0 auto; padding: 8px 14px; }
  .ad-tabs-count { display: block; }
}
@media (prefers-reduced-motion: reduce) { .ad-tabs-shell::before, .ad-tabs-shell::after { transition: none; } }

.ad-health { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 12px; }
.ad-alert { display: grid; gap: 2px; padding: 12px 14px 12px 40px; border-radius: 14px; border: 1px solid var(--line); background: #fff; text-decoration: none; position: relative; }
.ad-alert::before { content: ""; position: absolute; left: 14px; top: 15px; width: 14px; height: 14px; border-radius: 50%; }
.ad-alert b { font-size: 14px; color: var(--ink); }
.ad-alert span { font-size: 12.5px; color: var(--muted); }
.ad-alert.is-ok::before { background: #22c55e; box-shadow: 0 0 0 4px #dcfce7; }
.ad-alert.is-warn { border-color: #fde68a; background: #fffbeb; }
.ad-alert.is-warn::before { background: #f59e0b; box-shadow: 0 0 0 4px #fef3c7; }
.ad-alert.is-bad { border-color: #fecaca; background: #fef2f2; }
.ad-alert.is-bad::before { background: #dc2626; box-shadow: 0 0 0 4px #fee2e2; }
a.ad-alert:hover { border-color: var(--brand); }

.ad-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.ad-kpi { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(15,23,42,.05); min-width: 0; }
.ad-kpi span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ad-kpi b { font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1.15; overflow-wrap: anywhere; }
.ad-kpi b em { font-style: normal; font-size: 14px; color: var(--muted); font-weight: 600; }
.ad-kpi small { font-size: 12.5px; color: var(--muted); }

.ad-sub, .ad-foot { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.ad-foot { margin: 12px 0 0; }

.ad-table-wrap { overflow-x: auto; }
.ad-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ad-table th, .ad-table td { text-align: left; padding: 10px 12px; border-top: 1px solid #f1f5f9; vertical-align: top; }
.ad-table thead th { border-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ad-table tbody th { font-weight: 600; color: var(--muted); width: 34%; }
.ad-table td b { display: block; font-size: 18px; color: var(--ink); }
.ad-table td small { display: block; font-size: 12px; color: var(--muted); }
.ad-table a { color: var(--brand); font-weight: 700; text-decoration: none; }
.ad-table a:hover { text-decoration: underline; }
.ad-table a.is-bad { color: #b91c1c; }

.ad-bars { display: grid; gap: 10px; }
.ad-bars-wide { grid-template-columns: 1fr 1fr; gap: 10px 28px; }
.ad-bar { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13.5px; }
.ad-bar span { color: var(--ink); font-weight: 600; }
.ad-bar i { display: block; height: 8px; border-radius: 99px; background: #eef2f7; overflow: hidden; }
.ad-bar s { display: block; height: 100%; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--brand), #7c3aed); }
.ad-bar.is-aeo s { background: linear-gradient(90deg, #14b8a6, #0891b2); }
.ad-bar.is-bad s { background: linear-gradient(90deg, #f87171, #dc2626); }
.ad-bar b { font-size: 13px; color: var(--ink); white-space: nowrap; }
.ad-bar b small { color: var(--muted); font-weight: 600; margin-left: 4px; }
.ad-bar b em { font-style: normal; font-size: 11px; font-weight: 800; color: #b91c1c; background: #fef2f2; border-radius: 6px; padding: 1px 6px; margin-left: 4px; }

.ad-facts { margin: 0; display: grid; gap: 10px; }
.ad-facts div { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-bottom: 10px; border-bottom: 1px solid #f1f5f9; }
.ad-facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.ad-facts dt { font-size: 13.5px; color: var(--muted); }
.ad-facts dd { margin: 0; text-align: right; font-weight: 800; color: var(--ink); font-size: 15px; display: grid; gap: 2px; justify-items: end; }
.ad-facts dd small { font-weight: 500; font-size: 12px; color: var(--muted); }

.ad-spark-head { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; }
.ad-spark-head h3 { margin: 0 !important; }
.ad-spark-head small { font-size: 12px; color: var(--muted); }
.ad-spark { display: flex; align-items: flex-end; gap: 4px; height: 84px; margin-top: 10px; }
.ad-spark-col { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; gap: 2px; min-width: 0; }
.ad-spark-col .sparkline-value { font-size: 10px; color: var(--muted); text-align: center; line-height: 1; }
.ad-spark i { position: relative; display: block; height: var(--h); min-height: 3px; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #93c5fd, var(--brand)); }
.ad-spark i:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.ad-list { list-style: none; margin: 0; padding: 0; display: grid; }
.ad-list li { display: grid; gap: 3px; padding: 9px 0; border-top: 1px solid #f1f5f9; min-width: 0; }
.ad-list li:first-child { border-top: 0; }
.ad-list a { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.ad-list a:hover { color: var(--brand); }
.ad-list small { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }

@media (max-width: 1100px) {
  .ad-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ad-kpis { grid-template-columns: 1fr 1fr; }
  .ad-bars-wide { grid-template-columns: 1fr; }
  .ad-bar { grid-template-columns: 90px minmax(0, 1fr) auto; }
}

/* Dashboard columns: each stacks its own cards (no holes); the bottom row stretches equal. */
.ad-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
/* Every track `minmax(0, ...)`, never a bare `1fr` or the implicit `auto`: those grow to the widest
   card's content. The revenue table's 34% label column makes it about 350px at least, so on a
   phone the whole left column (Revenue, GEO allowance, Top users) was wider than the screen and
   clipped by `.ap`, while Plan mix beside it fitted. */
.ad-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-content: start; min-width: 0; }
.ad-col > .ap-card { min-width: 0; }
.ad-row4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.ad-cols .ap-card h2, .ad-row4 .ap-card h2 { font-size: 18px; margin-bottom: 6px; }
.ad-cols .ap-card h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; margin: 16px 0 8px; }
@media (max-width: 1100px) { .ad-row4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .ad-cols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .ad-row4 { grid-template-columns: minmax(0, 1fr); }
  /* "MRR, plan + add-on" broke at "ADD-" in half a row. */
  .ad-kpi-money { grid-column: 1 / -1; }
  /* A card's note drops under its title rather than squeezing both into narrow columns; a
     button stays beside the title. */
  .ad-cols .ap-recent-head { flex-wrap: wrap; row-gap: 4px; }
  .ad-cols .ap-recent-head .ac-count { flex-basis: 100%; order: 2; font-weight: 500; }
  /* The revenue table restacks: each row's label on top, Plan and the add-on side by side, each
     labelled from `data-label`. At three columns each amount had about 80px, and once the card
     fits the screen the table would scroll sideways inside it with nothing saying so. */
  .ad-table thead { display: none; }
  .ad-table, .ad-table tbody { display: block; }
  .ad-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; padding: 12px 0; border-top: 1px solid #f1f5f9; }
  .ad-table tbody tr:first-child { border-top: 0; padding-top: 2px; }
  .ad-table th, .ad-table td { display: block; padding: 0; border: 0; }
  .ad-table tbody th { grid-column: 1 / -1; width: auto; margin-bottom: 8px; color: var(--ink); }
  .ad-table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
}

/* The shared admin skin (adm): every other admin tab keeps its markup and is restyled here. */
.adm .card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; box-shadow: 0 10px 30px rgba(15,23,42,.06); margin: 0; }
.adm .card h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); }
.adm .card h2::before { display: none; }
.adm .card h3 { font-size: 15px; color: var(--ink); }
.adm .section-sub { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.adm .card-header-row { align-items: center; gap: 12px; flex-wrap: wrap; }
.adm .muted { color: var(--muted); }

/* Plain submit buttons and `.btn` get the primary look; every variant below keeps its own meaning
   at equal precedence and wins by order -- red stays red, ghost stays ghost. */
.adm .btn, .adm .btn-danger, .adm .btn-danger-solid, .adm .btn-danger-ghost, .adm button[type="submit"]:not([class]) {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 700; font-size: 14px;
  color: #fff; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--brand-dark); background: var(--brand);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 82%, #fff) 0%, var(--brand) 60%, var(--brand-dark) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -2px 0 rgba(0,0,0,.12), 0 3px 10px rgba(31,111,235,.22); cursor: pointer; text-decoration: none; }
.adm .btn-ghost { color: var(--brand); background: #fff; border-color: #c7d7f5; box-shadow: inset 0 -2px 0 rgba(31,111,235,.08), 0 1px 2px rgba(16,24,40,.06); }
.adm .btn-small { padding: 6px 12px; font-size: 13px; }
.adm .btn-danger, .adm .btn-danger-solid { color: #fff; background: #dc2626; border-color: #b91c1c; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12), 0 3px 10px rgba(220,38,38,.22); }
.adm .btn-danger-ghost { color: #b91c1c; background: #fff; border-color: #fecaca; box-shadow: inset 0 -2px 0 rgba(220,38,38,.06); }

.adm input[type="text"], .adm input[type="email"], .adm input[type="number"], .adm input[type="password"], .adm input[type="date"], .adm input[type="search"], .adm select, .adm textarea {
  font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); min-width: 0; max-width: 100%; box-sizing: border-box; }
.adm input:focus, .adm select:focus, .adm textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: transparent; }
.adm label { font-size: 12.5px; font-weight: 700; color: var(--ink); }

.adm .table-scroll { border: 1px solid #eef1f6; border-radius: 14px; overflow-x: auto; }
/* A table straight after an action button (the Billing card's payments under "Cancel Subscription
   Now") sat flush against it. */
.adm .inline-form + .table-scroll, .adm .inline-form + .form-error { margin-top: 16px; }
.adm .data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.adm .data-table thead th { background: #f8fafc; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid #eef1f6; text-align: left; }
.adm .data-table td { padding: 11px 12px; border-top: 1px solid #f1f5f9; vertical-align: middle; }
.adm .data-table tbody tr:first-child td { border-top: 0; }
.adm .data-table tbody tr:hover td { background: #fbfcfe; }

.adm .scorecard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.adm .score-card { background: #fbfcfe; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; text-align: left; align-items: flex-start; box-shadow: none; }
.adm .score-card-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.adm .score-card-value { font-size: 26px; }

.adm .user-toolbar { background: #fbfcfe; border: 1px solid var(--line); border-radius: 14px; padding: 12px; gap: 10px; }
.adm .pagination { display: flex; gap: 10px; align-items: center; justify-content: flex-end; margin-top: 14px; }
.adm .pagination a, .adm .pager-btn { color: var(--brand); font-weight: 700; border: 1px solid #c7d7f5; border-radius: 10px; padding: 6px 12px; background: #fff; text-decoration: none; }
.adm .kv-dl dt { color: var(--muted); font-size: 13px; }
.adm .kv-dl dd { font-weight: 600; color: var(--ink); }
.adm .limit-form { background: #fbfcfe; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
/* A tier's actions, one row under its form: Save, Make Admin Plan, and Delete apart at the end.
   They were three boxed forms on three lines, and `.limit-form button` made Make Admin Plan a pill
   beside two square-cornered buttons. Wraps on a phone, Delete staying on the right. */
.adm .tier-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.adm .tier-actions-end { margin-left: auto; }
.adm .tier-actions-note { font-size: 12.5px; text-align: right; }
.adm .limit-form-note, .adm .settings-note { font-size: 12.5px; color: var(--muted); }
.adm .checkbox-label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.adm .billing-status-banner { border-radius: 14px; }
/* `min-width: 0` on the frame's grid items: without it a wide table sets the column's minimum and
   every card runs past a phone's edge -- clipped, not scrollable, because `.ap` clips overflow. */
.adm .ad-stack, .adm .ad-head, .ad-head > * { min-width: 0; }
.adm .ad-stack { display: block; }
.adm .ad-stack > * + *, .adm .card + .card { margin-top: 20px; }
/* Narrow cards: each fact as label over value rather than squeezed side by side. */
.ad-row4 .ad-facts div { flex-direction: column; align-items: flex-start; gap: 4px; }
.ad-row4 .ad-facts dd { text-align: left; justify-items: start; }
.ad-list small a, .ad-sub-link { font-size: inherit; font-weight: 500; color: inherit; text-decoration: underline; text-decoration-color: #cbd5e1; }
/* Phones: the toolbar turns into a column (see `.user-toolbar` above), where the search box's
   220px flex basis became its height. And a wide table scrolls inside its box rather than
   crushing every cell until an email address breaks a letter at a time; tables built to stack
   on a phone (`data-table-stack`) keep doing that instead. */
@media (max-width: 480px) { .adm .user-toolbar > * { flex: 0 0 auto; } }
.adm .table-scroll .data-table:not(.data-table-stack) { min-width: 720px; }
.adm .table-scroll .data-table:not(.data-table-stack) td { overflow-wrap: break-word; }
/* Money on the admin dashboard: one line per currency, never a sum across them. */
.ad-money { display: grid; gap: 6px; }
.ad-money-line { display: grid; gap: 1px; }
.ad-money-line b { font-size: 17px; color: var(--ink); }
.ad-money-line a { font-size: 15px; }
.ad-money-line small { font-size: 11.5px; color: var(--muted); }
.ad-table tbody th small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; }
.ad-kpi-money b { font-size: 22px; }
.ad-kpi-money b em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--muted); }

/* --- Landing hero, search first (2026-10-27) -------------------------------------------------
   The URL box is what the product revolves around: heading, lead and box centred and as wide as
   the heading, the platform chips under them, then the example dashboard. Overrides the two-column
   hero above; the rules there for the mock-up's tilt and the floating cards still apply. */
.lp-hero { padding: 64px 0 32px; overflow-x: clip; }
.lp-hero .lp-hero-inner { grid-template-columns: 1fr; gap: 30px; justify-items: center; }
.lp-hero .lp-hero-copy { width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }

/* "Measure. Optimize." over "Lead AI Search.": two lines of about nine ems, so up to 76px fits
   every desktop column; it scales with the screen, never below 38px. On a phone the forced break
   goes and the heading wraps in balanced lines. */
.lp-hero h1 { font-size: clamp(38px, 6.4vw, 76px); letter-spacing: -0.03em; line-height: 1.04; margin: 0 0 24px; max-width: 100%; }

/* Same words as before; the definition reads as a sub-headline and the GEO / AEO sentence under it
   smaller and lighter, two steps instead of four even lines. */
.lp-hero .lp-lead { max-width: 860px; margin: 0 auto 30px; font-size: 16px; line-height: 1.65; color: #64748b; text-wrap: pretty; }
.lp-hero .lp-lead strong { display: block; margin-bottom: 10px; font-size: 19.5px; line-height: 1.5; font-weight: 600; color: #1e293b; text-wrap: balance; }

/* The box: as wide as the lead, the height of a normal control, one clear focus state. */
.lp-hero .lp-url { width: 100%; max-width: 860px; gap: 12px; padding: 7px 7px 7px 22px; border-radius: 16px; border: 1px solid #d5e0f2;
  box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 14px 34px rgba(31,111,235,.12); transition: border-color .15s, box-shadow .15s; }
.lp-hero .lp-url:focus-within { border-color: var(--brand); box-shadow: 0 14px 34px rgba(31,111,235,.14), 0 0 0 4px rgba(31,111,235,.12); }
.lp-hero .lp-url-icon svg { width: 20px; height: 20px; stroke: #94a3b8; }
.lp-hero .lp-url input { font-size: 18px; padding: 14px 4px; color: var(--ink); }
.lp-hero .lp-url input::placeholder { color: #a3aec2; }
.lp-hero .lp-url .btn { font-size: 16px; font-weight: 700; padding: 14px 28px; border-radius: 11px; }

/* The plan note and "Already have an account?" on one line, a word apart; wrapping where it must. */
.lp-hero .lp-note { flex-wrap: wrap; justify-content: center; text-align: center; margin: 20px 0 34px; font-size: 13.5px; }
.lp-note-login a { margin-left: 0; font-weight: 600; }

.lp-hero .lp-engines { justify-content: center; max-width: 900px; gap: 8px; }
.lp-hero .lp-engines-label { text-align: center; margin-bottom: 6px; }

/* The example dashboard. */
.lp-hero .lp-hero-visual { width: 100%; max-width: 820px; padding: 20px 0 110px; }
.lp-hero .lp-mock-body { padding: 20px 24px 22px; text-align: left; }
.lp-mock-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.lp-mock-meta { display: flex; gap: 8px; }
.lp-mock-meta span { font-size: 11.5px; color: #64748b; background: #f8fafc; border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.lp-mock-meta b { color: var(--ink); }
.lp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 20px; }
.lp-kpi { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fbfcfe; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.lp-kpi-ring { position: relative; flex: none; width: 58px; height: 58px; }
.lp-kpi-ring svg { width: 58px; height: 58px; transform: rotate(-90deg); display: block; }
.lp-kpi-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 17px; font-weight: 800; color: var(--ink); }
.lp-kpi-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
/* Label and Add-on tag wrap inside the card: on one unbreakable line the tag ran out of it. */
.lp-kpi-text small { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; }
.lp-kpi-text small .lp-addon-tag { margin: 0; padding: 0 5px; font-size: 9.5px; line-height: 15px; letter-spacing: 0; text-transform: none; }
.lp-kpi-text strong { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.lp-delta { align-self: flex-start; max-width: 100%; font-size: 11px; font-weight: 600; color: #64748b; background: #f1f5f9; border-radius: 999px; padding: 2px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-delta.up { color: #15803d; background: #ecfdf5; }
.lp-delta.up::before { content: "\25B2 "; font-size: 8px; vertical-align: 1px; }
.lp-mock-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.lp-hero .lp-bars { gap: 9px; }
.lp-hero .lp-bar { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 30px; gap: 8px; font-size: 12px; }
.lp-hero .lp-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-hero .lp-bar b { text-align: right; }
.lp-side { border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe; padding: 12px 14px; min-width: 0; }
.lp-side > .lp-mock-sub { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.lp-eng-total { text-transform: none; letter-spacing: 0; font-size: 11.5px; color: #b91c1c; background: #fef2f2; border-radius: 999px; padding: 1px 8px; }
.lp-gain { text-transform: none; letter-spacing: 0; font-size: 11.5px; color: #15803d; background: #ecfdf5; border-radius: 999px; padding: 1px 8px; }
.lp-eng-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 26px; align-items: center; gap: 10px; padding: 5px 0; font-size: 12px; color: var(--ink); }
.lp-eng-name { display: flex; align-items: center; gap: 7px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-eng-name i { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font-size: 9.5px; font-weight: 800; line-height: 18px; text-align: center; font-style: normal; }
.lp-dots { display: flex; gap: 4px; }
.lp-dots i, .lp-eng-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.lp-dots .dn, .lp-eng-legend .dn { background: #16a34a; }
.lp-dots .dc, .lp-eng-legend .dc { background: #60a5fa; }
.lp-dots .da, .lp-eng-legend .da { background: #e2e8f0; }
.lp-eng-row b { text-align: right; font-variant-numeric: tabular-nums; }
.lp-eng-legend { display: flex; gap: 12px; margin: 6px 0 10px; font-size: 11px; color: #64748b; }
.lp-eng-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lp-eng-rivals { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px dashed #e5eaf2; }
.lp-eng-rivals .lp-mock-sub { width: 100%; margin: 0 0 2px; }
.lp-eng-rivals em { font-style: normal; font-size: 11.5px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; }
.lp-eng-rivals em b { color: #b91c1c; margin-left: 2px; }
/* Without the add-on on sale, the side panel lists the top fixes instead of the engines. */
.lp-fix { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; align-items: start; padding: 9px 0; border-top: 1px dashed #e5eaf2; }
.lp-fix em { font-style: normal; font-size: 10.5px; font-weight: 800; text-align: center; border-radius: 999px; padding: 3px 0; }
.lp-fix em.info { color: #1d4ed8; background: #dbeafe; }
.lp-fix b { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.lp-fix small { font-size: 11px; color: #94a3b8; }
.lp-mock-ready { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid #f1f5f9; }
.lp-mock-ready .lp-mock-sub { margin: 0 6px 0 0; }
.lp-mock-ready em { font: 600 11.5px ui-monospace, monospace; font-style: normal; color: #6d28d9; background: #f5f3ff; border: 1px solid #ede9fe; border-radius: 6px; padding: 3px 8px; }

/* The background blobs fade out before the section ends, as on the other pages: clipped at the
   section's edge, the violet one drew a hard line above the stat cards. */
.lp-hero .lp-hero-bg { -webkit-mask-image: linear-gradient(#000 0%, #000 72%, transparent 100%); mask-image: linear-gradient(#000 0%, #000 72%, transparent 100%); }
.lp-hero .lp-blob-b { bottom: 80px; }

/* Plays when scrolled into view (the landing page's script adds `lp-anim-wait`, then `is-visible`).
   Only the parts that play are held, by name, so the floating cards are there from load. Without
   the script nothing is held. */
@keyframes lpPop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lp-dots i { animation: lpPop .28s ease-out both; animation-delay: calc(.7s + var(--i, 0) * 45ms); }
.lp-hero .lp-bar i::after { animation-delay: .35s; }
.lp-anim-wait .lp-hero .lp-hero-visual:not(.is-visible) .lp-g-val,
.lp-anim-wait .lp-hero .lp-hero-visual:not(.is-visible) .lp-bar i::after,
.lp-anim-wait .lp-hero .lp-hero-visual:not(.is-visible) .lp-dots i { animation-play-state: paused; }

/* Wide screens: the floating cards beside the dashboard, overlapping only its edge and kept inside
   the viewport (the visual is 820px, so 1300px leaves 240px a side). */
@media (min-width: 1300px) {
  .lp-hero .lp-hero-visual { padding-bottom: 40px; }
  /* Mid-left, beside "Where the points go": with the answer card top right and the projection
     bottom right, the three balance; at 118px it sat level with the answer card and the top was
     crowded while the lower left stood empty. */
  .lp-hero .lp-float-scan { left: -200px; bottom: auto; top: 262px; }
  .lp-hero .lp-float-proj { right: -180px; bottom: 54px; }
}
/* The quoted-answer card, top right. Only beside the dashboard: narrower, the cards sit over it
   and this one would cover the page and issue counts. */
.lp-float-quote { width: 250px; padding: 11px 14px 12px; animation-delay: -1s; }
.lp-quote-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.lp-quote-head i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: 10.5px; flex: 0 0 auto; }
.lp-quote-head span { font-weight: 700; color: var(--ink); font-size: 12.5px; flex: 1; }
.lp-quote-head em { font-style: normal; font-weight: 700; font-size: 10.5px; padding: 2px 8px; border-radius: 999px; background: #ecfdf5; color: #15803d; }
.lp-float-quote p { margin: 0; padding: 8px 10px; border-radius: 4px 10px 10px 10px; background: #f8fafc; color: #334155; font-size: 12px; line-height: 1.45; }
.lp-float-quote mark { background: #dcfce7; color: #166534; font-weight: 700; padding: 0 3px; border-radius: 4px; }
.lp-hero .lp-float-quote { display: none; }
/* Over the empty end of the browser bar, clear of the page and issue counts it used to cut off;
   at 1300px it still ends 26px inside the window. */
@media (min-width: 1300px) { .lp-hero .lp-float-quote { display: block; right: -214px; top: -14px; } }
/* Narrow laptops and tablets: each score card puts its ring over its text, so nothing is cut. */
@media (max-width: 900px) {
  .lp-kpi { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 760px) {
  .lp-kpis, .lp-mock-cols { grid-template-columns: 1fr; }
  .lp-kpi { flex-direction: row; align-items: center; gap: 12px; }
  .lp-note-login { width: 100%; }
}
@media (max-width: 560px) {
  .lp-hero { padding-top: 32px; }
  .lp-h1-break { display: none; }
  .lp-hero h1 { text-wrap: balance; }
  .lp-hero .lp-lead strong { font-size: 17px; }
  .lp-hero .lp-lead { font-size: 15px; }
  .lp-hero .lp-url { flex-wrap: wrap; padding: 8px; }
  .lp-hero .lp-url-icon { padding-left: 8px; }
  .lp-hero .lp-url input { font-size: 16px; padding: 10px 4px; }
  .lp-hero .lp-url .btn { width: 100%; }
  .lp-hero .lp-mock-body { padding: 16px 14px 18px; }
  .lp-mock-meta span:last-child { display: none; }
  .lp-hero .lp-hero-visual { padding-bottom: 60px; }
}
