/* ==========================================================================
   /authority — stage 05 AUTHORITY (loaded after styles.css, features.css, flow.css)
   Dark cards, thin borders, one accent (--fl-a). Static visuals: no page script.
   ========================================================================== */
.au { --a: var(--fl-a, #01c2e1); --a-line: rgba(1,194,225,.4); --surface: rgba(255,255,255,.015); --surface-2: rgba(255,255,255,.035); }

/* Hero */
.au .page-hero h1 { max-width: 900px; }
.au .stage-engine { display: inline-flex; align-items: center; gap: 6px; margin: 18px auto 0; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 12px; color: var(--fg-3); }
.au .stage-engine span { color: var(--fg); font-weight: 500; }
.au .stage-engine + p { margin-top: 18px; }
.au .ft-hero-visual .net-note { margin-top: 14px; text-align: center; font-size: 12.5px; color: var(--fg-3); }
.au .mock-top .demo-tag { margin-left: auto; }

/* Sources behind one AI answer (static rebuild of the AI Visibility sources graph) */
.au-src { background: #0b0b0c; box-shadow: 0 40px 120px rgba(0,0,0,.6); }
.au-src-body { display: grid; grid-template-columns: minmax(0, 1fr) 56px 250px; align-items: center; padding: 20px 20px 12px; }
.au-src-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.au-src-node { position: relative; display: grid; grid-template-columns: 128px minmax(80px, 1fr) 40px auto auto; gap: 10px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; background: #0f0f10; color: var(--fg-2); font-size: 12px; }
.au-src-node::before { content: ""; position: absolute; right: -28px; top: -4px; bottom: -4px; width: 1px; background: rgba(255,255,255,.16); }
.au-src-node::after { content: ""; position: absolute; right: -28px; top: 50%; width: 28px; height: 1px; background: rgba(255,255,255,.16); }
.au-src-node:first-child::before { top: 50%; }
.au-src-node:last-child::before { bottom: 50%; }
.au-src-name { color: var(--fg); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-src-bar { display: block; height: 6px; border-radius: 3px; background: #26262a; overflow: hidden; }
.au-src-bar::after { content: ""; display: block; height: 100%; width: var(--w, 0%); border-radius: 3px; background: var(--fg-3); }
.au-src-node b { font-weight: 500; color: var(--fg); font-variant-numeric: tabular-nums; text-align: right; }
.au-src-node em { font-style: normal; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 10.5px; white-space: nowrap; color: var(--fg-3); }
.au-src-node em.hi { color: var(--green); border-color: rgba(8,255,182,.3); }
.au-src-node em.mid { color: var(--amber); border-color: rgba(255,176,32,.35); }
.au-src-node em.lo { color: var(--pink); border-color: rgba(224,30,90,.4); }
.au-src-node.you { border-color: var(--a-line); background: #101416; color: var(--fg); }
.au-src-node.you .au-src-bar::after { background: var(--a); }
.au-src-node.you::after { background: var(--a); box-shadow: 0 0 6px rgba(1,194,225,.6); }
.au-src-rail { position: relative; align-self: stretch; }
.au-src-rail::after { content: ""; position: absolute; left: 50%; right: -1px; top: 50%; height: 1px; background: rgba(255,255,255,.16); }
.au-src-rail::before { content: ""; position: absolute; right: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--a); box-shadow: 0 0 0 3px rgba(1,194,225,.18); z-index: 1; }
.au-src-answer { display: grid; gap: 6px; padding: 14px; border: 1px solid var(--a-line); border-radius: 12px; background: linear-gradient(180deg, rgba(1,194,225,.1), rgba(1,194,225,.02)); box-shadow: 0 0 0 4px rgba(1,194,225,.06); }
.au-src-answer small, .au-src-foot small, .au-q small, .au-dash-kpis small, .au-miss small, .au-kpis small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.au-src-answer strong { font-size: 13px; font-weight: 500; color: var(--fg); line-height: 1.35; }
.au-src-answer span { font-size: 11px; color: var(--fg-3); }
.au-src-answer em { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-style: normal; font-size: 12px; color: var(--fg-2); line-height: 1.4; }
.au-src-answer em b { color: var(--a); font-weight: 600; font-variant-numeric: tabular-nums; }
.au-src-foot { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; margin: 4px 20px 18px; padding: 12px 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--surface); font-size: 12.5px; color: var(--fg-2); line-height: 1.45; }

/* Shared section rhythm */
.au .ft-subhead { scroll-margin-top: 120px; }
.au .ft-subhead + .section-grid .split.au-split { padding-top: 40px; border-top: 0; }
.au .ft-subhead + .section-grid .feature-grid { padding: 32px 0 64px; }
.au .ft-subhead + .section-grid .section-head { padding-top: 24px; }
.au .section-head--row .demo-tag { margin-bottom: 44px; }
.au .net-note { font-size: 12.5px; color: var(--fg-3); }
.au .section-grid > .container > .net-note { margin-top: 16px; padding-bottom: 64px; }
.au .ft-next { padding-top: 48px; }

/* 01 Problem */
.au-q { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.au-q strong { font-size: 14px; font-weight: 500; color: var(--fg); }
.au-mock-note { margin: 4px 0 0; font-size: 12px; color: var(--fg-3); }
.au .mock-row span:first-child { font-size: 13px; }

/* 02 Scope */
.au-scope .card small { display: block; margin-bottom: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--a); }
.au-scope .card p { font-size: 14px; }

/* 03 Product UI */
.au-dash { margin-top: 0; }
.au-dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-soft); }
.au-dash-kpis > div { display: grid; gap: 4px; padding: 16px 18px; border-right: 1px solid var(--line-soft); }
.au-dash-kpis > div:last-child { border-right: 0; }
.au-dash-kpis strong { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.au-dash-kpis em { font-style: normal; font-size: 12px; color: var(--green); }
.au-dash-kpis > div:last-child em { color: var(--fg-3); }
.au-table { min-width: 720px; }
.au-table td:first-child { color: var(--fg); }
.au-table td:nth-child(2) { white-space: nowrap; color: var(--fg-3); }

/* 04 Authority flow: owned → earned → third party → AI trust → AI recommendation */
.au-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0 0 36px; list-style: none; counter-reset: none; }
.au-flow li { position: relative; display: flex; flex-direction: column; min-height: 200px; padding: 20px 18px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); }
.au-flow li::after { content: ""; position: absolute; right: -28px; top: 50%; width: 28px; height: 1px; background: rgba(255,255,255,.18); }
.au-flow li::before { content: ""; position: absolute; right: -24px; top: 50%; width: 6px; height: 6px; margin-top: -3.5px; border-top: 1px solid rgba(255,255,255,.4); border-right: 1px solid rgba(255,255,255,.4); transform: rotate(45deg); z-index: 1; }
.au-flow li:last-child::after, .au-flow li:last-child::before { display: none; }
.au-flow small { font-size: 11px; font-weight: 500; color: var(--a); font-variant-numeric: tabular-nums; }
.au-flow strong { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--fg); }
.au-flow span { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.au-flow span em { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2); font-style: normal; font-size: 12px; color: var(--fg); white-space: nowrap; }
.au-flow p { margin-top: auto; padding-top: 14px; font-size: 13px; line-height: 1.45; color: var(--fg-2); }
.au-flow--trust { border-color: rgba(1,194,225,.35); }
.au-flow--trust span em { border-color: var(--a-line); background: rgba(1,194,225,.06); }
.au-flow--rec { border-color: var(--a-line); background: radial-gradient(90% 120% at 100% 0%, rgba(1,194,225,.09), transparent 60%), var(--bg-1); }
.au-flow--rec strong { color: var(--a); }
.au-flow--rec span em { border-color: var(--a-line); background: rgba(1,194,225,.08); }
.au-steps { padding-bottom: 28px; }
.au-steps .card h3 { font-size: 16px; }
.au-steps .card p { font-size: 14px; }
.au-principle { max-width: 820px; margin: 0 0 96px; padding: 18px 22px; border-left: 2px solid var(--a); background: var(--surface); font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.au-principle b { color: var(--fg); font-weight: 500; }

/* Citation Intelligence */
.au-subhead--engine b { border-color: var(--a); background: rgba(1,194,225,.08); }
.au-ci { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-bottom: 96px; }
.au-ci-card { display: flex; flex-direction: column; min-width: 0; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-1); }
.au-ci-card > small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--a); }
.au-ci-card h3 { margin-top: 8px; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; min-height: 2.6em; }
.au-ci-card > p { margin-top: 14px; font-size: 14px; color: var(--fg-2); }
.au-ci-viz { margin-top: 18px; padding: 14px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--bg-2); }
.au-ci-viz > p { margin: 10px 0 0; font-size: 11px; color: var(--fg-4); }
/* trusted sources: how many of the tracked questions cite each source type */
.au-trust { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.au-trust li { display: grid; grid-template-columns: 104px minmax(0, 1fr) 46px; grid-template-areas: "n b c" "e e e"; gap: 2px 10px; align-items: center; font-size: 12px; color: var(--fg-2); }
.au-trust li > span { grid-area: n; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-trust li > i { grid-area: b; display: block; height: 6px; border-radius: 3px; background: #26262a; overflow: hidden; }
.au-trust li > i::after { content: ""; display: block; height: 100%; width: var(--w, 0%); border-radius: 3px; background: var(--fg-3); }
.au-trust li > b { grid-area: c; font-weight: 500; color: var(--fg); text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.au-trust li > em { grid-area: e; font-style: normal; font-size: 11px; color: var(--fg-4); }
.au-trust li > em.lo { color: var(--amber); }
.au-trust li.you { color: var(--fg); } .au-trust li.you > i::after { background: var(--a); }
/* citation share (static copy of the homepage fl-cite visual, widths set inline) */
.au-cite ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.au-cite li { display: grid; grid-template-columns: 112px minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 12px; color: var(--fg-2); }
.au-cite li i { display: block; height: 6px; border-radius: 3px; background: #26262a; overflow: hidden; }
.au-cite li i::after { content: ""; display: block; height: 100%; width: calc(var(--v) * 1%); background: var(--fg-3); border-radius: 3px; }
.au-cite li.you { color: var(--fg); } .au-cite li.you i::after { background: var(--a); }
.au-cite li em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; }
/* the page that should have been cited */
.au-miss { display: grid; gap: 8px; font-size: 12px; }
.au-miss-q, .au-miss-row, .au-miss-act { display: grid; gap: 3px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 8px; background: var(--surface); }
.au-miss-q strong { font-size: 13px; font-weight: 500; color: var(--fg); line-height: 1.35; }
.au-miss-row span { color: var(--fg-2); overflow-wrap: anywhere; }
.au-miss-row.you { border-color: var(--a-line); background: rgba(1,194,225,.05); }
.au-miss-row.you > span:nth-of-type(1) { color: var(--fg); font-weight: 500; }
.au-miss-act { border-color: rgba(255,255,255,.14); }
.au-miss-act span { color: var(--fg); }

/* 05 Capabilities */
.au-caps .card p { font-size: 14px; }

/* 06 Example */
.au-ba .ba-act { width: 230px; text-align: left; }
.au-ba .ba-act small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); }
.au-ba .ba-act span { padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.4; }

/* 07 Metrics */
.au-kpis { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.au-kpis > div { display: grid; gap: 8px; align-content: start; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-1); min-width: 0; }
.au-kpis strong { font-size: 30px; font-weight: 500; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.au-kpis span { font-size: 13px; line-height: 1.45; color: var(--fg-2); }

/* Final CTA */
.au .final-cta .url-form { margin-top: 30px; }
.au .url-msg { min-height: 1.4em; margin-top: 10px; font-size: 13px; color: var(--fg-3); }
.au .url-msg.err { color: var(--pink); }

/* Responsive */
@media (max-width: 1100px) {
  .au-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .au-flow li:nth-child(3)::after, .au-flow li:nth-child(3)::before { display: none; }
  .au-flow li { min-height: 0; }
  .au-kpis { grid-template-columns: repeat(3, 1fr); }
  .au-ci { grid-template-columns: 1fr; }
  .au-ci-card h3 { min-height: 0; }
}
@media (max-width: 860px) {
  .au-src-body { grid-template-columns: 1fr; gap: 14px; }
  .au-src-rail { display: none; }
  .au-src-node::before, .au-src-node::after { display: none; }
  .au-src-node { grid-template-columns: minmax(0, 1fr) 40px; grid-template-areas: "n c" "b b" "e e"; }
  .au-src-node .au-src-name { grid-area: n; } .au-src-node .au-src-bar { grid-area: b; } .au-src-node b { grid-area: c; }
  .au-src-node em { grid-area: auto; }
  .au-src-node em:nth-of-type(1) { grid-area: e; }
  .au-src-node em:nth-of-type(2) { display: none; }
  .au-src-answer { order: -1; }
  .au-src-foot { grid-template-columns: 1fr; gap: 6px; }
  .au-dash-kpis { grid-template-columns: 1fr 1fr; }
  .au-dash-kpis > div:nth-child(2) { border-right: 0; }
  .au-dash-kpis > div:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .au-ba { grid-template-columns: 1fr; }
  .au-ba .ba-act { width: auto; }
  .au .uc-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .au-flow { grid-template-columns: 1fr; gap: 20px; }
  .au-flow li::after, .au-flow li::before { display: none; }
  .au-kpis { grid-template-columns: 1fr 1fr; }
  .au .uc-grid { grid-template-columns: 1fr; }
  .au-principle { margin-bottom: 64px; }
}
