/* ─────────────────────────────────────────────────────────────────────────
   styles.home.css — the landing page (/) only.

   White ground, Apple's system typeface. Every rule is scoped under `.ah`
   because all nine stylesheets load on every page and the generic class
   names (.pillar, .wedge, .cta, .trust-*) are already claimed by Story.css
   and styles.marketing.css. `.ah` is applied by app/page.jsx around the
   whole story view — nav and footer included — so shared components get
   restyled in place instead of forked.

   Typography is measured off Apple's own web output rather than guessed.
   Two things that are counter-intuitive and easy to get backwards:

   1. Apple tracks LOOSER at display sizes and TIGHTER at body sizes:
      -0.28px @ 56px (-0.005em), -0.374px @ 17px (-0.022em),
      -0.224px @ 14px (-0.016em), -0.12px @ 12px (-0.010em).
      That is optical sizing, not style — SF Pro Display already ships
      tighter sidebearings, so it needs less negative tracking than SF Pro
      Text. Applying a flat -0.03em everywhere (the usual "Apple-ish" move)
      overtightens headlines and undertightens body copy.
   2. Display headlines sit at line-height 1.07, far tighter than the 1.2
      most systems default to. That, plus weight 600, is what makes the
      headline read as machined rather than typeset.

   `-apple-system` leads both stacks so macOS/iOS picks the optical variant
   itself; the named SF Pro faces are for browsers that don't.
   ───────────────────────────────────────────────────────────────────────── */

.ah {
  /* Apple does not license SF Pro for redistribution, so non-Apple
     visitors land on Helvetica Neue / Arial. Deliberate: a lookalike
     webfont (Inter) would cost ~40KB and still not be SF Pro. */
  --ah-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display',
    'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ah-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text',
    'Helvetica Neue', Helvetica, Arial, sans-serif;

  --ah-ink: #1d1d1f;
  --ah-ink-2: #6e6e73;
  --ah-ink-3: #86868b;
  --ah-hair: #d2d2d7;
  --ah-hair-2: #e8e8ed;
  --ah-tint: #f5f5f7;
  --ah-blue: #0071e3;
  --ah-link: #0066cc;

  --ah-nav-h: 48px;

  /* Surfaces and border weight are tokens so a whole visual identity can be
     swapped by redefining them — see styles.brand2.css. */
  --ah-ground: #fff;   /* page ground */
  --ah-panel: #fff;    /* cards sitting on --ah-tint */
  --ah-on-ink: #fff;   /* text on an --ah-ink fill */
  --ah-bw: 0.5px;      /* hairline weight */

  background: var(--ah-ground);
  color: var(--ah-ink);
  font-family: var(--ah-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* `:where()` contributes zero specificity, so these resets sit at (0,1,0) and
   every single-class rule below can override them by source order. A plain
   `.ah p` reset would be (0,1,1) and would silently beat `.ah-tile-body`. */
.ah :where(p, h1, h2, h3, h4, ul, ol, dl, dd, figure, figcaption) { margin: 0; }
.ah :where(ul, ol) { list-style: none; padding: 0; }
.ah :where(a) { color: inherit; text-decoration: none; }

/* ─── nav ──────────────────────────────────────────────────────────────
   Overrides the shared .hero-nav in place; SiteNav.jsx is untouched.
   Apple's global nav is 44–48px, translucent, and quiet enough that it
   never competes with the headline. */
.ah .hero-nav {
  height: var(--ah-nav-h);
  padding: 0 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: var(--ah-bw) solid rgba(0, 0, 0, 0.12);
  gap: 34px;
}
.ah .hero-nav .nav-brand img { height: 24px; }
.ah .nav-links {
  font-family: var(--ah-text);
  font-size: 12px;
  letter-spacing: -0.010em;
  gap: 26px;
  color: rgba(29, 29, 31, 0.88);
}
.ah .nav-links a:hover { opacity: 0.62; }
.ah .nav-links .is-active { color: var(--ah-ink); font-weight: 500; }
.ah .nav-dropdown {
  background: rgba(255, 255, 255, 0.94);
  border: var(--ah-bw) solid var(--ah-hair);
  border-radius: 12px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
}
.ah .nav-dropdown a {
  font-family: var(--ah-text);
  font-size: 13px;
  letter-spacing: -0.016em;
  color: var(--ah-ink-2);
  padding: 7px 18px;
}
.ah .nav-dropdown a:hover { background: var(--ah-tint); color: var(--ah-ink); }

/* ─── type scale ───────────────────────────────────────────────────────── */
.ah-h1 {
  font-family: var(--ah-display);
  font-size: clamp(40px, 5.6vw, 64px);
  line-height: 1.07;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.ah-h2 {
  font-family: var(--ah-display);
  font-size: clamp(30px, 3.9vw, 48px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.006em;
  text-wrap: balance;
}
.ah-h3 {
  font-family: var(--ah-display);
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.14;
  font-weight: 600;
  letter-spacing: -0.010em;
}
/* 21px intro copy — Apple's standard "one sentence under the headline" */
.ah-sub {
  font-family: var(--ah-text);
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.016em;
  color: var(--ah-ink-2);
  text-wrap: pretty;
}
.ah-body {
  font-family: var(--ah-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--ah-ink-2);
}
.ah-small {
  font-family: var(--ah-text);
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.016em;
  color: var(--ah-ink-2);
}
.ah-caption {
  font-family: var(--ah-text);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -0.010em;
  color: var(--ah-ink-3);
}
.ah-eyebrow {
  font-family: var(--ah-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ah-ink-3);
}

/* ─── controls ─────────────────────────────────────────────────────────── */
.ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ah-blue);
  color: var(--ah-on-ink);
  font-family: var(--ah-text);
  font-size: 16px;
  letter-spacing: -0.019em;
  padding: 12px 26px;
  border: 0;
  border-radius: 980px;
  cursor: pointer;
  transition: background 140ms ease;
}
.ah-btn:hover { background: #0077ed; }
.ah-btn:disabled { opacity: 0.4; cursor: default; }
.ah-btn--quiet {
  background: transparent;
  color: var(--ah-link);
  border: 1px solid var(--ah-hair);
}
.ah-btn--quiet:hover { background: var(--ah-tint); }

.ah-link {
  font-family: var(--ah-text);
  color: var(--ah-link);
  font-size: 17px;
  letter-spacing: -0.022em;
}
.ah-link:hover { text-decoration: underline; }
.ah-chev { padding-left: 3px; }

/* ─── hero ─────────────────────────────────────────────────────────────
   Deliberately NOT the "one idea per screenful" Apple pattern. Apple can
   spend a whole viewport on a product name because the reader already
   knows what an iPhone is. Sekura is unknown, and the measured behaviour
   for this page type is that ~57% of desktop visitors never scroll past
   the first viewport and ~80% read only the headline and the first line
   of the subhead. So the hero has to carry the whole argument: what it
   is, the one control, the three wedges, and proof — above the fold. */
.ah-hero {
  padding: calc(var(--ah-nav-h) + 76px) 22px 84px;
  text-align: center;
}
.ah-hero-inner { max-width: 780px; margin: 0 auto; }
.ah-hero .ah-sub { max-width: 620px; margin: 20px auto 0; }

/* the three differentiators vs a demo-gated competitor, stated as fact */
.ah-wedges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 30px;
}
.ah-wedge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ah-text);
  font-size: 14px;
  letter-spacing: -0.016em;
  color: var(--ah-ink-2);
}
.ah-wedge svg { flex: none; color: var(--ah-blue); }

/* ─── scan field ───────────────────────────────────────────────────────
   One field, one button. Multi-field heroes measurably underconvert, and
   the email is deliberately deferred to after the scan runs — asking for
   it up front trades the demonstration for a lead. */
.ah-scan { max-width: 540px; margin: 34px auto 0; }
.ah-field {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--ah-tint);
  border: 1px solid transparent;
  border-radius: 980px;
  padding: 5px 5px 5px 22px;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}
.ah-field:focus-within {
  background: var(--ah-panel);
  border-color: var(--ah-hair);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}
.ah-field-input {
  flex: 1 1 auto;
  min-width: 0;
  background: transparent;
  border: 0;
  outline: none;
  font-family: var(--ah-text);
  font-size: 16px;
  letter-spacing: -0.019em;
  color: var(--ah-ink);
  padding: 12px 0;
}
.ah-field-input::placeholder { color: var(--ah-ink-3); }
.ah-field .ah-btn { flex: none; padding: 11px 22px; font-size: 15px; }
.ah-scan-note { margin-top: 13px; text-align: center; }
.ah-scan-error { color: #d70015; }
.ah-scan-stage { margin-top: 26px; text-align: left; }
.ah-scan-stage .scan-progress {
  background: var(--ah-tint);
  color: var(--ah-ink);
  border: 0;
  border-radius: 18px;
  box-shadow: none;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 13px;
}
.ah-scan-stage .sp-head {
  background: transparent;
  border-bottom: var(--ah-bw) solid var(--ah-hair);
  color: var(--ah-ink-2);
}

/* ─── hero trust strip ─────────────────────────────────────────────────
   Security buyers look for third-party corroboration before they look at
   features, so the partner logos and the engagement metrics sit above the
   fold next to the CTA rather than in a band 1500px down the page.
   Numbers come from data/designPartners.js — real engagements, not
   illustrative. */
.ah-proof {
  max-width: 980px;
  margin: 64px auto 0;
  padding: 30px 22px 0;
  border-top: var(--ah-bw) solid var(--ah-hair-2);
}
.ah-proof-label { text-align: center; }
.ah-proof-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 44px;
  margin-top: 18px;
}
.ah-proof-logo img {
  height: 26px;
  width: auto;
  opacity: 0.62;
  filter: grayscale(1);
  transition: opacity 160ms ease, filter 160ms ease;
}
.ah-proof-logo:hover img { opacity: 1; filter: grayscale(0); }
.ah-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 34px 0 0;
  padding: 26px 0 0;
  border-top: var(--ah-bw) solid var(--ah-hair-2);
}
.ah-metric { text-align: center; }
.ah-metric-value {
  font-family: var(--ah-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ah-ink);
}
.ah-metric-label { margin-top: 6px; }

/* ─── report anatomy ───────────────────────────────────────────────────
   A real view of the deliverable converts better than an illustration.
   This shows the report's STRUCTURE — the sections every report contains
   — rather than invented findings. The site's own strategy note is that
   fabricated artifacts are the credibility problem here, so nothing in
   this block asserts a vulnerability that was never found. */
.ah-report {
  background: var(--ah-tint);
  padding: 100px 22px;
}
.ah-report-inner { max-width: 980px; margin: 0 auto; }
.ah-report-head { max-width: 660px; margin: 0 auto; text-align: center; }
.ah-report-head .ah-sub { margin-top: 16px; }
.ah-report-cta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}
.ah-doc {
  margin-top: 52px;
  background: var(--ah-panel);
  border-radius: 20px;
  box-shadow: 0 20px 60px -34px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.ah-doc-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px;
  border-bottom: var(--ah-bw) solid var(--ah-hair-2);
}
.ah-doc-name {
  font-family: var(--ah-text);
  font-size: 13px;
  letter-spacing: -0.016em;
  color: var(--ah-ink-2);
}
.ah-doc-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ah-doc-sec {
  padding: 26px 24px 28px;
  border-top: var(--ah-bw) solid var(--ah-hair-2);
  border-left: var(--ah-bw) solid var(--ah-hair-2);
}
.ah-doc-sec:nth-child(-n + 3) { border-top: 0; }
.ah-doc-sec:nth-child(3n + 1) { border-left: 0; }
.ah-doc-sec-n {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12px;
  letter-spacing: 0;
  color: var(--ah-ink-3);
}
.ah-doc-sec-t {
  margin-top: 9px;
  font-family: var(--ah-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.2;
}
.ah-doc-sec-b { margin-top: 7px; }

/* ─── pillars ──────────────────────────────────────────────────────────── */
.ah-pillars { padding: 100px 22px; }
.ah-pillars-inner { max-width: 980px; margin: 0 auto; }
.ah-pillars-head { max-width: 700px; margin: 0 auto; text-align: center; }
.ah-pillars-head .ah-sub { margin-top: 16px; }
.ah-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 46px;
  /* Equal height: the two pillars carry 3 and 4 capabilities, so the shorter
     card gains some trailing space. That reads as a matched pair, which is the
     point — they are two halves of one claim, not a ranked list. */
}
.ah-tile { display: flex; flex-direction: column; }
.ah-tile .ah-caps { flex: 1; }
.ah-tile {
  background: var(--ah-tint);
  border-radius: 22px;
  padding: 40px 36px 36px;
}
.ah-tile-title { margin-top: 10px; }
.ah-tile-body { margin-top: 12px; }
.ah-caps { margin-top: 24px; }
.ah-cap {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-top: var(--ah-bw) solid var(--ah-hair);
  font-family: var(--ah-text);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -0.019em;
}
.ah-cap:first-child { border-top: 0; padding-top: 0; }
.ah-cap svg { flex: none; margin-top: 2px; color: var(--ah-blue); }

/* ─── start paths (shared component, restyled in place) ────────────────
   Public prices on the page is the wedge against demo-gated competitors,
   so this stays on the homepage rather than living only on /pricing/. */
.ah .startpaths-section { background: var(--ah-tint); border: 0; padding: 100px 22px; }
.ah .startpaths-inner { max-width: 1120px; }
.ah .startpaths-eyebrow {
  font-family: var(--ah-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ah-ink-3);
}
.ah .startpaths-heading {
  font-family: var(--ah-display);
  font-size: clamp(30px, 3.9vw, 48px);
  font-weight: 600;
  letter-spacing: -0.006em;
  line-height: 1.08;
  text-transform: none;
  color: var(--ah-ink);
  margin-top: 10px;
}
.ah .startpaths-grid { gap: 18px; margin-top: 42px; }
.ah .startpaths-grid--six { gap: 12px; }
.ah .startpaths-grid--six .startpath { padding: 22px 16px 18px; }
.ah .startpaths-grid--six .startpath-name { font-size: 17px; letter-spacing: -0.014em; }
.ah .startpaths-grid--six .startpath-price { font-size: 14px; }
.ah .startpaths-grid--six .startpath-body { font-size: 13px; line-height: 1.42; }
.ah .startpaths-grid--six .startpath-cta { font-size: 14px; }
/* Business is the featured tier on /pricing/; carry the same emphasis here so
   the two pages agree about which one is the reference point. */
.ah .startpath.is-featured { outline: 2px solid var(--ah-blue); outline-offset: -2px; }
.ah .startpaths-foot { margin-top: 26px; text-align: center; }
.ah .startpath {
  background: var(--ah-panel);
  border: 0;
  border-radius: 20px;
  padding: 30px 26px 26px;
}
.ah .startpath--enterprise { background: var(--ah-ink); color: var(--ah-on-ink); }
.ah .startpath-name {
  font-family: var(--ah-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.012em;
  text-transform: none;
}
.ah .startpath-price {
  font-family: var(--ah-text);
  font-size: 15px;
  letter-spacing: -0.019em;
  color: var(--ah-ink-3);
  text-transform: none;
}
.ah .startpath-body {
  font-family: var(--ah-text);
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: -0.019em;
  color: var(--ah-ink-2);
}
.ah .startpath--enterprise .startpath-body { color: rgba(255, 255, 255, 0.72); }
.ah .startpath--enterprise .startpath-price { color: rgba(255, 255, 255, 0.55); }
.ah .startpath-cta {
  font-family: var(--ah-text);
  font-size: 15px;
  letter-spacing: -0.019em;
  color: var(--ah-link);
  text-transform: none;
  border: 0;
  padding: 0;
  background: none;
}
.ah .startpath--enterprise .startpath-cta { color: #2997ff; }

/* ─── footer (shared component, restyled in place) ─────────────────────── */
.ah .site-footer {
  background: var(--ah-panel);
  border-top: var(--ah-bw) solid var(--ah-hair);
}
/* The shared footer sets JetBrains Mono on the column titles, the copyright,
   and the tagline; all three read as a different site next to SF Pro. */
.ah .site-footer,
.ah .site-footer * {
  font-family: var(--ah-text);
  letter-spacing: -0.016em;
  text-transform: none;
  font-style: normal;
}
.ah .site-footer-col-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ah-ink-3);
}
.ah .site-footer-col-links a,
.ah .site-footer-links a { color: var(--ah-ink-2); font-size: 14px; }
.ah .site-footer a:hover { color: var(--ah-ink); text-decoration: underline; }
.ah .site-footer-copy,
.ah .site-footer-tagline { font-size: 12px; color: var(--ah-ink-3); }

/* ═══ the argument ══════════════════════════════════════════════════════
   Two signal colours, used only here and on /pricing/: rust for the thing
   that compounds against you, neutral grey for the thing that doesn't move.
   Everything else on the page stays achromatic so these two read as data. */
.ah {
  --ah-rise: #bf4800;
  --ah-flat: #86868b;
  /* the box around the tiers that include network security */
  --ah-net: #bf4800;
}

/* The lock-up above the hero headline. Sized to be read, not to be a caption —
   it is the category label and the first words on the page, so it carries more
   weight and colour than the section eyebrows further down. */
.ah-lockup {
  font-family: var(--ah-text);
  font-size: clamp(15px, 1.2vw, 17px);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ah-ink-2);
  margin-bottom: 20px;
}

/* ─── asymmetry ────────────────────────────────────────────────────────── */
.ah-asym { background: var(--ah-tint); padding: 96px 22px; }
.ah-asym-inner { max-width: 1080px; margin: 0 auto; }
.ah-asym-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 56px;
  align-items: center;
}
.ah-asym-thesis { margin-top: 12px; }
.ah-asym-em { color: var(--ah-rise); }
.ah-asym-body { margin-top: 16px; max-width: 46ch; }

.ah-asym-fig { min-width: 0; }
.ah-asym-chart { display: block; width: 100%; height: auto; overflow: visible; }
.ah-chart-axis { stroke: var(--ah-hair); stroke-width: 1; }
.ah-chart-gap { fill: var(--ah-rise); opacity: 0.07; }
.ah-chart-rise { fill: none; stroke: var(--ah-rise); stroke-width: 2.5; stroke-linecap: round; }
.ah-chart-flat { fill: none; stroke: var(--ah-flat); stroke-width: 2.5; stroke-linecap: round; }
.ah-chart-cap-rise { fill: var(--ah-rise); }
.ah-chart-cap-flat { fill: var(--ah-flat); }
.ah-chart-lab {
  font-family: var(--ah-text); font-size: 13px; letter-spacing: -0.012em;
}
.ah-chart-lab--rise { fill: var(--ah-rise); }
.ah-chart-lab--flat { fill: var(--ah-flat); }
.ah-chart-lab--gap { fill: var(--ah-ink-3); }

.ah-asym-key {
  display: flex; flex-wrap: wrap; gap: 8px 26px;
  margin-top: 14px; padding-top: 14px; border-top: var(--ah-bw) solid var(--ah-hair);
}
.ah-asym-key span {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ah-text); font-size: 13px; letter-spacing: -0.016em; color: var(--ah-ink-2);
}
.ah-key-dot { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.ah-key-dot--rise { background: var(--ah-rise); }
.ah-key-dot--flat { background: var(--ah-flat); }

.ah-asym-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: 56px; padding-top: 34px; border-top: var(--ah-bw) solid var(--ah-hair);
}
.ah-asym-stat-v {
  font-family: var(--ah-display);
  font-size: clamp(32px, 3.6vw, 44px); font-weight: 600;
  line-height: 1.02; letter-spacing: -0.005em;
}
.ah-asym-stat-l {
  display: block; margin-top: 9px;
  font-family: var(--ah-text); font-size: 15px; line-height: 1.4;
  letter-spacing: -0.019em; color: var(--ah-ink-2);
}
.ah-asym-stat-s {
  display: block; margin-top: 8px;
  font-family: var(--ah-text); font-size: 12px; line-height: 1.4;
  letter-spacing: -0.010em; color: var(--ah-ink-3);
}

/* ─── the exploit chain ────────────────────────────────────────────────── */
.ah-chain {
  margin-top: 56px; padding-top: 34px; border-top: var(--ah-bw) solid var(--ah-hair);
}
.ah-chain-head { margin-bottom: 18px; }
.ah-chain-row {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px;
}
.ah-chain-link {
  flex: 1 1 150px; min-width: 0;
  background: var(--ah-tint); border-radius: 14px; padding: 18px 20px;
}
.ah-chain-link--crit { background: var(--ah-ink); }
.ah-chain-v {
  display: block;
  font-family: var(--ah-display); font-size: 30px; font-weight: 600;
  line-height: 1; letter-spacing: -0.014em; font-variant-numeric: tabular-nums;
}
.ah-chain-link--crit .ah-chain-v { color: #ff6b5e; }
.ah-chain-l {
  display: block; margin-top: 10px;
  font-family: var(--ah-text); font-size: 15px; letter-spacing: -0.019em;
}
.ah-chain-link--crit .ah-chain-l { color: var(--ah-on-ink); }
.ah-chain-n {
  display: block; margin-top: 3px;
  font-family: var(--ah-text); font-size: 12.5px; letter-spacing: -0.010em; color: var(--ah-ink-3);
}
.ah-chain-link--crit .ah-chain-n { color: rgba(255, 255, 255, 0.55); }
.ah-chain-op {
  align-self: center;
  font-family: var(--ah-display); font-size: 20px; color: var(--ah-ink-3);
}
.ah-chain-note { margin-top: 18px; max-width: 68ch; }

/* ─── proof: the gate diagram + the two claims it supports ─────────────
   Inside the report band, so the section's background is --ah-tint and the
   cards here are white — the inverse of how the gate would be styled on a
   white ground. */
.ah-proof-row {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: 22px;
  margin-top: 46px;
  text-align: left;
  align-items: start;
}
.ah-gate { background: var(--ah-panel); border-radius: 18px; padding: 26px 24px 22px; }
.ah-gate-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 14px;
  padding: 14px 16px; background: var(--ah-tint); border-radius: 12px;
}
.ah-gate-lab { font-family: var(--ah-text); font-size: 15px; letter-spacing: -0.019em; }
.ah-gate-n {
  font-family: var(--ah-text); font-size: 13px; letter-spacing: -0.016em; color: var(--ah-ink-3);
}
.ah-gate-row--out .ah-gate-n { color: var(--ah-blue); }
.ah-gate-bar {
  margin: 10px 0; padding: 13px 16px;
  background: var(--ah-ink); color: var(--ah-on-ink); border-radius: 12px;
  font-family: var(--ah-text); font-size: 13px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; text-align: center;
}
.ah-gate-foot { margin-top: 14px; text-align: center; }

.ah-proofpoints { display: grid; gap: 22px; align-content: start; }
.ah-proofpoint { background: var(--ah-panel); border-radius: 18px; padding: 26px 24px; }
.ah-proofpoint-t {
  font-family: var(--ah-display); font-size: 18px; font-weight: 600;
  line-height: 1.24; letter-spacing: -0.012em;
}
.ah-proofpoint-b { margin-top: 10px; }

@media (max-width: 900px) {
  .ah-asym-grid, .ah-proof-row { grid-template-columns: 1fr; gap: 36px; }
  .ah-asym-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; }
  .ah-asym { padding: 72px 22px; }
}
@media (max-width: 620px) {
  .ah-asym-stats { grid-template-columns: 1fr; }
  .ah-chain-link { flex-basis: 100%; }
  .ah-chain-op { align-self: flex-start; margin-left: 20px; }
}

/* ═══ /pricing/ ═════════════════════════════════════════════════════════
   Same `.ah` system as the landing page. Two colours carry meaning here and
   are used nowhere else: green for what is unlimited, rust for what is
   metered. Everything else stays neutral so those two read as signal. */
.ah { --ah-yes: #0b6e4f; --ah-meter: #a8431c; }

.ah-price-inner { max-width: 1080px; margin: 0 auto; }

.ah-price-hero { padding: calc(var(--ah-nav-h) + 72px) 22px 44px; }
.ah-price-hero .ah-h1 { max-width: 19ch; margin-top: 14px; }
.ah-price-hero .ah-sub { max-width: 58ch; margin-top: 20px; }
.ah-price-hero .ah-sub strong { color: var(--ah-ink); font-weight: 500; }

/* ─── sizer ────────────────────────────────────────────────────────────── */
.ah-sizer-section { padding: 0 22px 20px; }
.ah-sizer {
  background: var(--ah-panel);
  border: var(--ah-bw) solid var(--ah-hair);
  border-radius: 20px;
  overflow: hidden;
}
.ah-sizer-head {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: baseline; justify-content: space-between;
  padding: 20px 28px;
  border-bottom: var(--ah-bw) solid var(--ah-hair-2);
}
.ah-sizer-body { display: grid; grid-template-columns: 1.05fr 0.95fr; }
.ah-sizer-inputs { padding: 28px; border-right: var(--ah-bw) solid var(--ah-hair-2); }
.ah-sizer-readout { padding: 28px; background: var(--ah-tint); }

.ah-field-row { margin-bottom: 24px; }
.ah-field-row:last-child { margin-bottom: 4px; }
.ah-field-top {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
  font-family: var(--ah-text); font-size: 15px; letter-spacing: -0.019em;
}
.ah-field-val { font-weight: 500; color: var(--ah-blue); font-variant-numeric: tabular-nums; }

/* Range input has to be styled per-engine; there is no cross-browser shorthand. */
.ah-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 22px; margin: 0; display: block;
  background: transparent; cursor: pointer;
}
.ah-range::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: var(--ah-hair); }
.ah-range::-moz-range-track { height: 4px; border-radius: 2px; background: var(--ah-hair); }
.ah-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 20px; height: 20px; border-radius: 999px;
  background: var(--ah-panel); border: var(--ah-bw) solid rgba(0,0,0,.12);
  box-shadow: 0 1px 3px rgba(0,0,0,.2); margin-top: -8px;
}
.ah-range::-moz-range-thumb {
  width: 19px; height: 19px; border-radius: 999px;
  background: var(--ah-panel); border: var(--ah-bw) solid rgba(0,0,0,.12);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.ah-range:focus-visible { outline: 3px solid rgba(0,113,227,.4); outline-offset: 4px; border-radius: 4px; }

.ah-seg {
  display: flex; margin-top: 4px;
  background: var(--ah-hair-2); border-radius: 10px; padding: 2px; gap: 2px;
}
.ah-seg button {
  flex: 1; padding: 8px 6px; border: 0; border-radius: 8px;
  background: transparent; cursor: pointer;
  font-family: var(--ah-text); font-size: 13px; letter-spacing: -0.016em;
  color: var(--ah-ink-2); line-height: 1.3;
}
.ah-seg button[aria-pressed='true'] {
  background: var(--ah-panel); color: var(--ah-ink); font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,.12);
}
.ah-seg button:focus-visible { outline: 2px solid var(--ah-blue); outline-offset: -2px; }

.ah-sizer-price {
  margin-top: 8px;
  font-family: var(--ah-display);
  font-size: 40px; font-weight: 600; line-height: 1.05; letter-spacing: -0.005em;
}
.ah-sizer-per { font-size: 15px; font-weight: 400; letter-spacing: -0.019em; color: var(--ah-ink-3); }
.ah-sizer-note { margin-top: 10px; min-height: 40px; }

.ah-bars { margin-top: 22px; padding-top: 20px; border-top: var(--ah-bw) solid var(--ah-hair); }
.ah-bar { margin-bottom: 14px; }
.ah-bar-top {
  display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px;
  font-family: var(--ah-text); font-size: 13px; letter-spacing: -0.016em; color: var(--ah-ink-2);
}
.ah-bar-num { font-variant-numeric: tabular-nums; color: var(--ah-ink); }
.ah-bar-track { height: 5px; border-radius: 3px; background: var(--ah-hair); overflow: hidden; }
.ah-bar-fill { height: 100%; background: var(--ah-yes); transition: width 220ms ease; }
.ah-bar.is-over .ah-bar-fill { background: var(--ah-meter); }
.ah-bar.is-over .ah-bar-num { color: var(--ah-meter); }

.ah-compare { margin-top: 22px; padding-top: 20px; border-top: var(--ah-bw) solid var(--ah-hair); }
.ah-compare-title { font-family: var(--ah-text); font-size: 14px; font-weight: 600; letter-spacing: -0.016em; }
.ah-crow {
  display: flex; justify-content: space-between; gap: 14px; padding: 6px 0;
  font-family: var(--ah-text); font-size: 14px; letter-spacing: -0.016em; color: var(--ah-ink-2);
}
.ah-crow:first-of-type { margin-top: 10px; }
.ah-crow-amt { font-variant-numeric: tabular-nums; color: var(--ah-ink); white-space: nowrap; }
.ah-crow.is-total {
  margin-top: 8px; padding-top: 11px;
  border-top: var(--ah-bw) solid var(--ah-hair);
  color: var(--ah-ink); font-weight: 500;
}
.ah-saving {
  margin-top: 16px; padding: 13px 15px;
  background: rgba(11,110,79,.08); border-radius: 12px;
  font-family: var(--ah-text); font-size: 14px; line-height: 1.5;
  letter-spacing: -0.016em; color: var(--ah-yes);
}
.ah-saving b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ah-compare-foot { margin-top: 10px; }

/* ─── plan table ───────────────────────────────────────────────────────── */
.ah-plans-section { background: var(--ah-tint); padding: 90px 22px; margin-top: 60px; }
.ah-plans-sub { margin-top: 14px; max-width: 64ch; }
.ah-plans {
  --plan-gap: 12px;   /* the group box maths below depends on this */
  --plan-inset: 9px;  /* how far the box sits outside the cards */
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--plan-gap); margin-top: 58px; align-items: start;
}
.ah-plan { background: var(--ah-panel); border-radius: 18px; padding: 22px 16px 18px; position: relative; }
/* ─── grouped tiers ──────────────────────────────────────────────────────
   Business and Enterprise both include network security, so the table draws
   one box around the pair. It is a pseudo-element on the first of them,
   stretched across its neighbour: a wrapper would become its own grid (rows
   sized to two columns rather than the table's, knocking them out of line),
   and a spanning overlay child would reserve those grid cells and push both
   cards onto a second row. This occupies no cells and no layout. */
.ah-plan.is-grouped { position: relative; }
.ah-plan.is-group-first::after {
  content: '';
  position: absolute;
  /* 100% is one column; reach across the gap and the neighbour, then out by
     the same inset used on the other three sides. */
  inset: calc(var(--plan-inset) * -1)
         calc((100% + var(--plan-gap) + var(--plan-inset)) * -1)
         calc(var(--plan-inset) * -1)
         calc(var(--plan-inset) * -1);
  border: 2px solid var(--ah-net);
  border-radius: 26px;
  pointer-events: none;
}
.ah-plan-groupmark {
  position: absolute;
  top: -34px;
  left: calc(100% + (var(--plan-gap) / 2)); /* midpoint of the enclosed pair */
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--ah-text); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ah-net);
}

.ah-plan-name {
  font-family: var(--ah-display); font-size: 17px; font-weight: 600; letter-spacing: -0.014em;
}
/* Unit always on its own line, and a min-height that holds both lines, so
   "$0 · $20 · $100 / mo" and "From $120,000 / yr" occupy exactly the same
   vertical space as "$0" — otherwise those two columns' comparison rows sit
   below everyone else's. */
.ah-plan-price {
  margin-top: 8px; min-height: 50px;
  font-family: var(--ah-display); font-size: 21px; font-weight: 600; letter-spacing: -0.016em;
  line-height: 1.15;
}
.ah-plan-per {
  display: block; margin-top: 1px;
  font-family: var(--ah-text); font-size: 13px; font-weight: 400;
  letter-spacing: -0.016em; color: var(--ah-ink-3);
}
/* 5 lines at 13px/1.46 — the longest `who` in data/pricingPlans.js. */
.ah-plan-who {
  margin-top: 8px; min-height: 95px;
  font-family: var(--ah-text); font-size: 13px; line-height: 1.46;
  letter-spacing: -0.016em; color: var(--ah-ink-2);
}
.ah-plan-cta {
  display: inline-block; margin-bottom: 16px;
  font-family: var(--ah-text); font-size: 14px; letter-spacing: -0.016em; color: var(--ah-link);
}
.ah-plan-cta:hover { text-decoration: underline; }
.ah-plan-rows { border-top: var(--ah-bw) solid var(--ah-hair-2); }

/* The min-heights above are a fallback. Where subgrid is available (all
   current engines) the five cards share one row track instead, so every
   comparison row lines up exactly no matter how any single cell wraps at a
   given viewport width — which min-heights can never guarantee, because the
   wrap point moves with the column width.
   14 rows = flag, name, price, who, cta + the 9 dimension rows. */
@supports (grid-template-rows: subgrid) {
  /* 13 tracks = name, price, who, cta + the 9 dimension rows. The group
     wrapper is itself a subgrid so its two columns share the same tracks as
     the four ungrouped ones. */
  .ah-plans { grid-template-rows: repeat(13, auto); }
  .ah-plan {
    display: grid;
    grid-row: span 13;
    grid-template-rows: subgrid;
    align-content: start;
  }
  .ah-plan-group {
    grid-row: span 13;
    grid-template-rows: subgrid;
  }
  .ah-plan-rows { grid-row: span 9; display: grid; grid-template-rows: subgrid; }
  .ah-plan-who, .ah-plan-price { min-height: 0; }
  .ah-plan-row { min-height: 0; }
}
/* Fixed row height keeps a two-line value (e.g. the BYOK inference note) from
   knocking that column's remaining rows out of alignment with its neighbours. */
.ah-plan-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 38px; padding: 8px 0; border-bottom: var(--ah-bw) solid var(--ah-hair-2);
  font-family: var(--ah-text); font-size: 11.5px; line-height: 1.32; letter-spacing: -0.006em;
}
.ah-plan-row dt { color: var(--ah-ink-3); }
.ah-plan-row dd { text-align: right; color: var(--ah-ink); }
.ah-plan-row.is-on dd { color: var(--ah-yes); }
.ah-plan-row.is-off dd { color: var(--ah-hair); }

/* ─── ladder ───────────────────────────────────────────────────────────── */
.ah-ladder { margin-top: 56px; padding-top: 34px; border-top: var(--ah-bw) solid var(--ah-hair); max-width: 680px; }
.ah-ladder .ah-body { margin-top: 10px; }
.ah-ladder-rows { margin-top: 22px; }
.ah-ladder-row {
  display: grid; grid-template-columns: 160px 1fr; gap: 20px;
  padding: 12px 0; border-top: var(--ah-bw) solid var(--ah-hair-2);
  font-family: var(--ah-text); font-size: 15px; letter-spacing: -0.019em;
}
.ah-ladder-row:first-child { border-top: 0; }
.ah-ladder-row dt { font-weight: 500; }
.ah-ladder-row dd { color: var(--ah-ink-2); }

/* ─── metered vs unlimited ─────────────────────────────────────────────── */
.ah-meter { padding: 90px 22px; }
.ah-meter .ah-h2 { margin-top: 10px; }
.ah-meter-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 38px;
}
.ah-meter-card { background: var(--ah-tint); border-radius: 20px; padding: 30px 28px; }
.ah-meter-tag.is-unlimited { color: var(--ah-yes); }
.ah-meter-tag.is-metered { color: var(--ah-meter); }
.ah-meter-card .ah-h3 { margin-top: 8px; }
.ah-meter-card .ah-body { margin-top: 10px; }

.ah-arith {
  margin-top: 34px; padding: 30px 32px;
  background: var(--ah-ink); color: var(--ah-on-ink); border-radius: 20px;
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px 44px; align-items: start;
}
.ah-arith-lead { color: var(--ah-on-ink); }
.ah-arith-body { color: rgba(255, 255, 255, 0.72); max-width: 62ch; }
.ah-arith-body strong {
  color: var(--ah-on-ink); font-weight: 500; font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) { .ah-arith { grid-template-columns: 1fr; gap: 14px; padding: 26px 24px; } }

/* ─── mechanics ────────────────────────────────────────────────────────── */
.ah-mech { background: var(--ah-tint); padding: 90px 22px 96px; }
.ah-mech .ah-h2 { margin-top: 10px; }
.ah-mech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 38px; align-items: start; }
.ah-mech-copy .ah-body + .ah-body { margin-top: 16px; }

.ah-table { width: 100%; border-collapse: collapse; font-family: var(--ah-text); }
.ah-table th {
  text-align: left; padding: 0 12px 10px 0;
  border-bottom: var(--ah-bw) solid var(--ah-hair);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  text-transform: uppercase; color: var(--ah-ink-3);
}
.ah-table td {
  padding: 12px 12px 12px 0; border-bottom: var(--ah-bw) solid var(--ah-hair-2);
  font-size: 15px; letter-spacing: -0.019em;
}
.ah-table-n { font-variant-numeric: tabular-nums; color: var(--ah-ink-2); }
.ah-table--gap { margin-top: 30px; }

.ah-notes { margin-top: 52px; padding-top: 30px; border-top: var(--ah-bw) solid var(--ah-hair); }
.ah-note {
  display: grid; grid-template-columns: 210px 1fr; gap: 28px;
  padding: 16px 0; border-top: var(--ah-bw) solid var(--ah-hair-2);
}
.ah-note:first-child { border-top: 0; }
.ah-note dt { font-family: var(--ah-text); font-size: 15px; font-weight: 500; letter-spacing: -0.019em; }
.ah-note dd {
  font-family: var(--ah-text); font-size: 15px; line-height: 1.5;
  letter-spacing: -0.019em; color: var(--ah-ink-2);
}
.ah-price-foot { margin-top: 34px; }

@media (max-width: 1240px) {
  .ah-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .ah-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-plan-who { min-height: 0; }
}


@media (max-width: 900px) {
  .ah-sizer-body { grid-template-columns: 1fr; }
  .ah-sizer-inputs { border-right: 0; border-bottom: var(--ah-bw) solid var(--ah-hair-2); }
  .ah-mech-grid, .ah-meter-cards { grid-template-columns: 1fr; gap: 26px; }
  .ah-note, .ah-ladder-row { grid-template-columns: 1fr; gap: 4px; }
  .ah-plans-section, .ah-meter, .ah-mech { padding: 68px 22px; }
  .ah-plans-section { margin-top: 40px; }
}
@media (max-width: 620px) {
  .ah-plans { grid-template-columns: 1fr; }
  .ah-plan-who { min-height: 0; }
  .ah-sizer-inputs, .ah-sizer-readout, .ah-sizer-head { padding: 22px 20px; }
  .ah-seg { flex-direction: column; }
  .ah-price-hero { padding: calc(var(--ah-nav-h) + 48px) 22px 32px; }
}

/* ─── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .ah-tiles, .ah-doc-sections { grid-template-columns: 1fr; }
  .ah-doc-sec { border-left: 0; border-top: var(--ah-bw) solid var(--ah-hair-2); }
  .ah-doc-sec:first-child { border-top: 0; }
  .ah-hero { padding: calc(var(--ah-nav-h) + 56px) 22px 0; }
  .ah-pillars, .ah-report, .ah .startpaths-section { padding: 72px 22px; }
  .ah-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
}
@media (max-width: 560px) {
  .ah-field { flex-wrap: wrap; border-radius: 22px; padding: 6px 6px 6px 18px; }
  .ah-field-input { flex-basis: 100%; padding: 12px 0 4px; }
  .ah-field .ah-btn { width: 100%; }
  .ah-tile { padding: 32px 26px 28px; }
  .ah-wedges { flex-direction: column; align-items: center; gap: 8px; }
  .ah-proof { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .ah * { transition: none !important; animation: none !important; }
}

@media (max-width: 620px) {
  /* Single column: the pair is no longer side by side, so each tier carries
     the mark on its own rather than a box spanning a vertical gap. */
  .ah-plan.is-group-first::after { display: none; }
  .ah-plan.is-grouped { outline: 2px solid var(--ah-net); outline-offset: -2px; }
  .ah-plan-groupmark { position: static; transform: none; display: block; margin-bottom: 8px; }
}

/* ═══ /authorize/ ═══════════════════════════════════════════════════════
   The disclosure step before a free scan. Deliberately plainer than the
   marketing pages: this is a document someone is signing, so it reads as a
   form, not a pitch. Measure is held near 68ch because people actually have
   to read it. */
.ah-auth-inner { max-width: 1080px; margin: 0 auto; padding: 0 22px; }
.ah-auth-hero { padding: calc(var(--ah-nav-h) + 60px) 0 32px; }
.ah-auth-hero .ah-h1 { margin-top: 12px; max-width: 18ch; }
.ah-auth-hero .ah-sub { margin-top: 18px; max-width: 62ch; }

.ah-auth-body { padding-bottom: 96px; }
.ah-auth-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start;
}
.ah-auth-main { min-width: 0; max-width: 68ch; }

.ah-auth-block {
  padding: 30px 0;
  border-top: var(--ah-bw) solid var(--ah-hair);
}
.ah-auth-block:first-child { border-top: 0; padding-top: 8px; }
.ah-auth-note { margin-top: 8px; }

.ah-auth-label {
  display: block; margin: 20px 0 7px;
  font-family: var(--ah-text); font-size: 14px; font-weight: 500; letter-spacing: -0.014em;
}
.ah-auth-opt { font-weight: 400; color: var(--ah-ink-3); }
.ah-auth-input {
  width: 100%; padding: 12px 14px;
  font-family: var(--ah-text); font-size: 16px; letter-spacing: -0.014em;
  color: var(--ah-ink); background: var(--ah-panel);
  border: var(--ah-bw) solid var(--ah-hair); border-radius: 10px;
}
.ah-auth-input:focus {
  outline: none; border-color: var(--ah-blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.16);
}
.ah-auth-input.is-invalid { border-color: #d70015; }
.ah-auth-signature {
  font-size: 20px; letter-spacing: -0.01em; padding: 14px;
}
.ah-auth-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px;
}
.ah-auth-hint { margin-top: 8px; }
.ah-auth-private { margin-top: 4px; }
.ah-auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.ah-auth-list { display: grid; gap: 12px; margin-top: 18px; }
.ah-auth-check {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  background: var(--ah-panel); border: var(--ah-bw) solid var(--ah-hair);
  border-radius: 12px;
  font-family: var(--ah-text); font-size: 15px; line-height: 1.45; letter-spacing: -0.012em;
}
.ah-auth-check:hover { border-color: var(--ah-ink-3); }
.ah-auth-check.is-missing { border-color: #d70015; background: rgba(215, 0, 21, 0.04); }
.ah-auth-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ah-blue); }
.ah-auth-check--inline { margin-top: 18px; border: 0; background: none; padding: 0; }
.ah-auth-check--block { align-items: start; }
.ah-auth-ack-title { display: block; font-weight: 600; }
.ah-auth-ack-body { display: block; margin-top: 5px; color: var(--ah-ink-2); }
.ah-auth-ref {
  display: block; margin-top: 7px; font-style: normal;
  font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--ah-ink-3);
}

.ah-auth-err {
  margin-top: 8px;
  font-family: var(--ah-text); font-size: 14px; letter-spacing: -0.014em; color: #d70015;
}
.ah-auth-err--form { margin-top: 18px; }
.ah-auth-submit {
  margin-top: 30px; padding-top: 26px;
  border-top: var(--ah-bw) solid var(--ah-hair);
  display: grid; gap: 12px; justify-items: start;
}

.ah-auth-side { position: sticky; top: calc(var(--ah-nav-h) + 24px); }
.ah-auth-card {
  background: var(--ah-tint); border-radius: 18px; padding: 26px 24px;
}
.ah-auth-roe { display: grid; gap: 12px; margin-top: 16px; }
.ah-auth-roe li {
  display: grid; grid-template-columns: 18px 1fr; gap: 10px; align-items: start;
  font-family: var(--ah-text); font-size: 14px; line-height: 1.45; letter-spacing: -0.012em;
  color: var(--ah-ink-2);
}
.ah-auth-roe svg { margin-top: 3px; color: var(--ah-blue); }

.ah-auth-done { max-width: 62ch; padding-bottom: 90px; }
.ah-auth-done-body { margin-top: 18px; }
.ah-auth-done-ctas { margin-top: 28px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

@media (max-width: 940px) {
  .ah-auth-grid { grid-template-columns: 1fr; gap: 32px; }
  .ah-auth-side { position: static; }
}
@media (max-width: 560px) {
  .ah-auth-fields { grid-template-columns: 1fr; }
}

/* ─── the lettered authorization ────────────────────────────────────────── */
.ah-auth-terms {
  display: grid; gap: 10px; margin-top: 18px;
  padding: 20px 22px;
  background: var(--ah-tint); border-radius: 12px;
  list-style: none; counter-reset: none;
}
.ah-auth-terms li {
  display: grid; grid-template-columns: 26px 1fr; gap: 8px;
  font-family: var(--ah-text); font-size: 15px; line-height: 1.5;
  letter-spacing: -0.012em; color: var(--ah-ink-2);
}
.ah-auth-letter { font-weight: 600; color: var(--ah-ink); font-variant-numeric: tabular-nums; }
.ah-auth-agree { margin-top: 16px; font-size: 16px; }
.ah-auth-agree strong { font-weight: 600; }
.ah-auth-signature { font-size: 19px; letter-spacing: -0.01em; padding: 14px; }

/* ─── signature pad ────────────────────────────────────────────────────── */
.ah-sig { margin-top: 4px; }
.ah-sig-frame {
  position: relative; height: 150px;
  background: var(--ah-panel);
  border: var(--ah-bw) solid var(--ah-hair); border-radius: 12px; overflow: hidden;
}
.ah-sig--missing .ah-sig-frame { border-color: #d70015; background: rgba(215, 0, 21, 0.03); }
.ah-sig-canvas {
  position: relative; z-index: 2; display: block; width: 100%; height: 100%;
  color: var(--ah-ink);   /* the pad reads this for its stroke colour */
  cursor: crosshair;
  touch-action: none;     /* otherwise a finger scrolls the page instead of drawing */
}
.ah-sig-placeholder {
  position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
  font-family: var(--ah-text); font-size: 15px; letter-spacing: -0.012em;
  color: var(--ah-ink-3); pointer-events: none;
}
.ah-sig-rule {
  position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 34px;
  border-bottom: var(--ah-bw) solid var(--ah-hair); pointer-events: none;
}
.ah-sig-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; }
.ah-sig-clear {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--ah-text); font-size: 14px; letter-spacing: -0.014em; color: var(--ah-link);
}
.ah-sig-clear:disabled { color: var(--ah-ink-3); cursor: default; }
.ah-sig-clear:not(:disabled):hover { text-decoration: underline; }

/* ─── GitHub verification ──────────────────────────────────────────────── */
.ah-auth-verify {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 18px; padding: 20px 22px;
  background: var(--ah-tint); border-radius: 12px;
}
.ah-auth-verify-t { font-family: var(--ah-text); font-size: 16px; font-weight: 600; letter-spacing: -0.014em; }
.ah-auth-verify-b { margin-top: 5px; max-width: 46ch; }
.ah-auth-verify .ah-btn { flex: none; }
.ah-auth-verified { margin-top: 18px; }
.ah-auth-verified-t {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--ah-text); font-size: 15px; letter-spacing: -0.014em;
}
.ah-auth-verified-t svg { color: var(--ah-blue); }
@media (max-width: 620px) { .ah-auth-verify { flex-direction: column; align-items: flex-start; } }
.ah-auth-verify-actions { display: grid; gap: 8px; justify-items: end; }
.ah-auth-alt {
  font-family: var(--ah-text); font-size: 13px; letter-spacing: -0.012em; color: var(--ah-link);
}
.ah-auth-alt:hover { text-decoration: underline; }
@media (max-width: 620px) { .ah-auth-verify-actions { justify-items: start; } }

/* ─── /upgrade/ ─────────────────────────────────────────────────────────── */
.ah-upgrade-head { max-width: 64ch; }
.ah-upgrade-email { max-width: 380px; margin-bottom: 30px; }
.ah-upgrade-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; }
.ah-upgrade-card {
  background: var(--ah-panel); border: var(--ah-bw) solid var(--ah-hair);
  border-radius: 18px; padding: 30px 28px 26px;
  display: flex; flex-direction: column;
}
.ah-upgrade-card.is-featured { border-color: var(--ah-blue); border-width: 2px; }
.ah-upgrade-price {
  margin-top: 10px;
  font-family: var(--ah-display); font-size: 34px; font-weight: 600; letter-spacing: -0.018em;
}
.ah-upgrade-per { font-size: 15px; font-weight: 400; letter-spacing: -0.016em; color: var(--ah-ink-3); }
.ah-upgrade-body { margin-top: 12px; }
.ah-upgrade-points { margin-top: 18px; flex: 1; }
.ah-upgrade-cta { margin-top: 22px; width: 100%; }
.ah-upgrade-foot { margin-top: 26px; max-width: 62ch; }
.ah-auth-paid {
  display: flex; align-items: center; gap: 9px; margin-top: 16px;
  padding: 12px 16px; border-radius: 12px;
  background: rgba(11, 110, 79, 0.08);
  font-family: var(--ah-text); font-size: 15px; letter-spacing: -0.014em; color: #0b6e4f;
}
.ah-auth-paid svg { color: #0b6e4f; flex: none; }
@media (max-width: 720px) { .ah-upgrade-grid { grid-template-columns: 1fr; } }

/* ─── granted repositories ─────────────────────────────────────────────── */
.ah-repo-list { display: grid; gap: 8px; margin-top: 10px; }
.ah-repo {
  display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 12px;
  padding: 13px 16px; cursor: pointer;
  background: var(--ah-panel); border: var(--ah-bw) solid var(--ah-hair); border-radius: 12px;
  font-family: var(--ah-text); font-size: 15px; letter-spacing: -0.014em;
}
.ah-repo:hover { border-color: var(--ah-ink-3); }
.ah-repo.is-picked { border-color: var(--ah-blue); border-width: 2px; padding: 12px 15px; }
.ah-repo input { width: 18px; height: 18px; accent-color: var(--ah-blue); }
.ah-repo-name { min-width: 0; overflow-wrap: anywhere; }
.ah-repo-tag {
  margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--ah-tint); color: var(--ah-ink-3);
  font-size: 11px; letter-spacing: 0.02em; text-transform: uppercase;
}
.ah-repo-cost {
  white-space: nowrap; font-size: 12px; font-weight: 600;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.ah-repo-cost.is-free { color: #0b6e4f; }
.ah-repo-cost.is-subscription { color: #0b6e4f; }
.ah-repo-cost.is-authorized { color: var(--ah-ink-3); }
.ah-repo-cost.is-credit { color: var(--ah-blue); }
.ah-repo-cost.is-upgrade { color: #bf4800; }

.ah-repo-upsell {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 14px; padding: 18px 20px;
  background: rgba(191, 72, 0, 0.07); border-radius: 14px;
}
.ah-repo-upsell-t {
  font-family: var(--ah-text); font-size: 15px; font-weight: 600; letter-spacing: -0.014em;
}
.ah-repo-upsell .ah-btn { flex: none; }
@media (max-width: 620px) {
  .ah-repo { grid-template-columns: 20px 1fr; }
  .ah-repo-cost { grid-column: 2; }
  .ah-repo-upsell { flex-direction: column; align-items: flex-start; }
}
