/* Site Auditor landing. White and neutral grounds; violet is reserved for actions and links. */
.lp {
  --violet: #8f5aff; --violet-d: #6a38dd; --action: #7b45f0;
  --text: #191c2c; --mut: #5b6175; --line: #e6e6ef; --line-strong: #dfe0e8; --soft: #f6f6f8; --tint: #f3f3f6; --frame: #f5f5f6; --surface: #fff; --chip: #f8f9fc; --ring: #ececf2;
  --err: #c4303d; --err-s: #fdeef0; --warn: #a9650a; --warn-s: #fff4e2; --ok: #14795a; --ok-s: #e8f8f1;
  --display: "InterDisplay", Inter, -apple-system, "Segoe UI", sans-serif;
  width: 100%; color: var(--text); background: var(--surface); overflow-x: clip;
}
.dark .lp {
  --violet-d: #b79bff; --text: #f1f1f5; --mut: #b4b6c4; --line: #3a3b44; --line-strong: #4a4b55; --soft: #1f2026; --tint: #2d2e36; --frame: #292a30; --surface: #17181c; --chip: #23242b; --ring: #3a3b44;
  --err: #ff8a93; --ok: #5fd3a8; --ok-s: #17392d;
}
.dark .lp .lp-run__status.is-active { background: #2d2e36; }
.lp h1, .lp h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.022em; text-wrap: balance; }
.lp h2 { color: var(--text); font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.75rem); line-height: 1.12; margin: 0; }
.lp h3 { color: var(--text); font-weight: 600; letter-spacing: -.012em; margin: 0; }
.lp p { margin: 0; }
.lp ul, .lp ol { margin: 0; padding: 0; list-style: none; }
.lp a { color: var(--violet-d); }
.lp code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; font-size: .8125rem; }
.lp-nb { white-space: nowrap; }
.lp .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#tool-site-auditor-form, #report, #checks { scroll-margin-top: 110px; }

.lp .btn-primary, .lp a.btn-primary { background: var(--action); border-color: var(--action); color: #fff; }
.lp .btn-primary:hover, .lp a.btn-primary:hover { background: var(--violet-d); border-color: var(--violet-d); color: #fff; }
.lp a.btn-outline-primary { color: var(--violet-d); border-color: var(--violet-d); }
.lp a.btn-outline-primary:hover { background: var(--violet-d); color: #fff; }

.lp-sec { padding-block: clamp(64px, 4rem + 3.5vw, 120px); }
.lp-sec--soft { background: var(--soft); }
.lp-head { max-width: 760px; margin: 0 auto clamp(36px, 2rem + 1.5vw, 60px); text-align: center; }
.lp-head p { margin-top: 14px; font-size: 1.125rem; line-height: 1.55; color: var(--mut); text-wrap: balance; }

/* Hero */
.lp-hero { padding-block: clamp(20px, 2vw, 32px) clamp(28px, 2vw, 40px); background: var(--surface); }
.lp-hero .site-breadcrumbs { margin-bottom: clamp(20px, 2vw, 32px); }
.lp-hero .site-breadcrumbs .breadcrumb { margin: 0; padding: 0; background: transparent; border: 0; font-size: .875rem; }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.lp-hero h1 { color: var(--text); font-size: clamp(2rem, 1.2rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 20px; }
.lp-hero h1 em { display: block; font-style: normal; color: var(--violet-d); }
.lp-hero__sub { max-width: 560px; margin-bottom: 28px !important; color: var(--mut); font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.5; }

.lp-form { display: flex; gap: 6px; max-width: 600px; padding: 6px; background: var(--surface); border-radius: 12px; box-shadow: 0 0 0 1.5px var(--line-strong), 0 8px 24px rgba(24, 32, 51, .06); transition: box-shadow .15s; }
.lp-form:focus-within { box-shadow: 0 0 0 2px var(--action), 0 8px 24px rgba(24, 32, 51, .06); }
.lp-form.is-invalid { box-shadow: 0 0 0 2px var(--err); }
.lp-form input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; padding: 0 14px; font-size: 1.0625rem; color: var(--text); }
.lp-form input::placeholder { color: #6d7284; }
.lp-form .btn { flex: none; min-height: 48px; padding: 0 24px; font-size: 1rem; font-weight: 600; border-radius: 8px; }

.lp-opts { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; max-width: 600px; margin-top: 16px; }
.lp-opts .sa-quota-controls { min-width: 0; margin: 0 !important; padding: 0 !important; border: 0 !important; }
.lp-opts .sa-quota-controls label, .lp-opts legend { margin: 0; color: var(--text) !important; font-size: .875rem; font-weight: 500 !important; }
.lp-opts .sa-quota-controls .badge { padding: 0 !important; background: transparent; border: 0 !important; }
.lp-opts .sa-page-limit-output { color: var(--violet-d) !important; font-size: 1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-opts input[type=range] { display: block; width: 100%; height: 20px; margin: 0; accent-color: var(--action); }
.lp-opts .sa-quota-controls > .small { flex-wrap: wrap; gap: 0 10px; color: var(--mut) !important; font-size: .8125rem; }
.lp-opts .sa-quota-cost, .lp-opts .sa-quota-balance { color: var(--text) !important; font-weight: 600; }
.lp-opts__robots { min-width: 0; margin: 0; padding: 0; border: 0; }
.lp-opts legend { width: auto; margin-bottom: 6px; padding: 0; }
.lp-seg { display: inline-flex; padding: 3px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; }
.lp-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.lp-seg label { margin: 0; padding: 6px 11px; border-radius: 6px; color: var(--mut); font-size: .8125rem; font-weight: 500; cursor: pointer; }
.lp-seg input:checked + label { background: var(--tint); color: var(--violet-d); font-weight: 600; }
.lp-seg input:focus-visible + label { outline: 3px solid var(--violet); outline-offset: 1px; }
.lp-assure { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px !important; color: var(--mut); font-size: .9375rem; }
.lp-assure li::before { content: "✓"; margin-right: 7px; color: var(--ok); font-weight: 700; }

/* History button and dialog */
.lp-hero__side { min-width: 0; }
.lp-history-btn { display: flex; align-items: center; gap: 6px; margin: 0 0 8px auto; padding: 4px 6px; background: transparent; border: 0; border-radius: 6px; color: var(--mut); font-size: .8125rem; cursor: pointer; transition: color .15s, background .15s; }
.lp-history-btn:hover { background: var(--soft); color: var(--violet-d); }
.lp-history-btn span { color: var(--text); font-weight: 600; }
.lp-history-btn:focus-visible, .lp-hmodal__close:focus-visible, .lp-tabs button:focus-visible, .lp-faq summary:focus-visible, .lp-link:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.lp-hmodal .modal-dialog { max-width: 860px; }
.lp-hmodal .modal-content { position: relative; max-height: calc(100vh - 3.5rem); padding: 22px 24px; overflow-y: auto; border-radius: 14px; }
.lp-hmodal .site-audit-history { margin: 0 !important; }
.lp .lp-hmodal .modal-content { background: var(--surface); }
.lp .lp-hmodal h2 { font-size: 1.375rem; }
.lp-hmodal__close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 36px; height: 36px; background: transparent; border: 0; border-radius: 8px; color: var(--mut); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.lp-hmodal__close:hover { background: var(--soft); color: var(--text); }
.lp-hmodal .site-audit-history__heading { padding-right: 40px; }

/* Hero audit preview, in the report's own card language */
.lp-run { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(18, 28, 45, .03), 0 14px 36px rgba(18, 28, 45, .07); }
.lp-run__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.lp-run__head > div { min-width: 0; }
.lp-run__head small { display: block; color: var(--mut); font-size: .8125rem; }
.lp-run__head b { display: block; overflow: hidden; color: var(--text); font-size: 1.125rem; font-weight: 700; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.lp-run__status { flex: none; padding: 4px 10px; border-radius: 20px; font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.lp-run__status.is-active { background: #efecff; color: var(--violet-d); }
.lp-run__status.is-done { background: var(--ok-s); color: var(--ok); }
.lp-run__bar { height: 6px; background: var(--ring); border-radius: 3px; overflow: hidden; }
.lp-run__bar i { display: block; width: 100%; height: 100%; background: var(--action); border-radius: 3px; }
.lp-run__nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.lp-run__nums dd { margin: 0; color: var(--text); font: 700 1.5rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.lp-run__nums dt { margin-top: 3px; color: var(--mut); font-size: .8125rem; font-weight: 400; }
.lp-run__result { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.lp-run__ring { position: relative; flex: none; width: 96px; height: 96px; }
.lp-run__ring svg { display: block; width: 100%; height: 100%; transform: rotate(-90deg); }
.lp-run__ring circle { fill: none; stroke-width: 10; }
.lp-run__ring .t { stroke: var(--ring); }
.lp-run__ring .v { stroke: #2aaa76; }
.lp-run__ring > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lp-run__ring b { color: var(--text); font: 700 1.75rem/1 var(--display); font-variant-numeric: tabular-nums; }
.lp-run__ring small { margin-top: 2px; color: var(--mut); font-size: .75rem; }
.lp-run__verdict { min-width: 0; }
.lp-run__verdict b { display: block; color: var(--text); font-size: 1.0625rem; font-weight: 700; }
.lp-run__verdict span { display: block; margin-top: 3px; color: var(--mut); font-size: .875rem; line-height: 1.4; transition: opacity .25s; }
.lp-run__result.is-wait .lp-run__verdict span { opacity: 0; }
.lp-run__sev { display: grid; gap: 8px; }
.lp-run__sev li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: var(--chip); border: 1px solid var(--line); border-radius: 10px; color: var(--mut); font-size: .875rem; font-weight: 600; }
.lp-run__sev i { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; border-radius: 7px; font-style: normal; font-weight: 800; }
.lp-run__sev i.r { background: #fff0f1; color: #d9414d; }
.lp-run__sev i.o { background: #fff7e8; color: #c97a12; }
.lp-run__sev i.b { background: #edf5ff; color: #3b82e6; }
.lp-run__sev b { margin-left: auto; color: var(--text); font: 700 1.125rem var(--display); font-variant-numeric: tabular-nums; }
.lp .lp-run__note { margin-top: 12px; color: var(--mut); font-size: .75rem; text-align: right; }

.lp-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(36px, 4vw, 64px) !important; border-top: 1px solid var(--line); }
.lp-facts li { display: flex; align-items: baseline; gap: 10px; padding: 20px 20px 0 0; }
.lp-facts b { color: var(--text); font: 700 1.75rem var(--display); letter-spacing: -.02em; }
.lp-facts span { color: var(--mut); font-size: .875rem; line-height: 1.3; }

/* Report tour */
.lp-tour { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.lp-tabs { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 96px; }
.lp-tabs button { display: block; width: 100%; padding: 16px 18px; text-align: left; background: transparent; border: 0; border-left: 2px solid var(--line); color: var(--mut); cursor: pointer; transition: background .15s, border-color .15s; }
.lp-tabs button b { display: block; color: var(--text); font-size: 1.0625rem; font-weight: 600; }
.lp-tabs button span { display: none; margin-top: 6px; font-size: .9375rem; line-height: 1.45; }
.lp-tabs button:hover { background: var(--soft); }
.lp-tabs button[aria-selected=true] { background: var(--tint); border-left-color: var(--violet); }
.lp-tabs button[aria-selected=true] b { color: var(--violet-d); }
.lp-tabs button[aria-selected=true] span { display: block; color: var(--text); }
.lp-tour__stage { min-width: 0; }
.lp-pane[hidden] { display: none; }
.lp-shot { margin: 0; background: var(--frame); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.lp-shot img { display: block; width: 100%; height: auto; }
.lp-caption { margin-top: 12px !important; color: var(--mut); font-size: .875rem; }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); counter-reset: s; }
.lp-steps li { position: relative; counter-increment: s; padding-top: 60px; }
.lp-steps li::before { content: counter(s); position: absolute; top: 0; left: 0; z-index: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--action); color: #fff; font: 700 1.0625rem var(--display); }
.lp-steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; left: 40px; width: calc(100% + clamp(24px, 4vw, 56px) - 40px); height: 2px; background: var(--line-strong); }
.lp-steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.lp-steps p { color: var(--mut); line-height: 1.5; }

/* Checks and FAQ share a split layout */
.lp-split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lp-split__head { position: sticky; top: 104px; }
.lp-split__head > p { margin-top: 16px; color: var(--mut); font-size: 1.0625rem; line-height: 1.55; }
.lp-link { display: inline-block; margin-top: 20px; font-weight: 600; }
.lp-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.lp-checks li { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.lp-checks h3 { font-size: 1.0625rem; margin-bottom: 4px; }
.lp-checks p { color: var(--mut); font-size: .9375rem; line-height: 1.45; }
.lp-checks b { flex: none; min-width: 2ch; color: var(--violet-d); font: 700 1.5rem/1.1 var(--display); text-align: right; font-variant-numeric: tabular-nums; }

/* Issue ledger */
.lp-ledger { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.lp-ledger__head, .lp-ledger article { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 1.1fr); gap: 28px; padding: 20px 26px; }
.lp-ledger__head { padding-block: 13px; background: var(--chip); color: var(--mut); font-size: .8125rem; font-weight: 600; }
.lp-ledger article { border-top: 1px solid var(--line); }
.lp-ledger h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.lp-ledger code { color: var(--err); word-break: break-word; }
.lp-ledger p { color: var(--mut); font-size: .9375rem; line-height: 1.5; }
.lp-ledger p.fix { color: var(--text); }
.lp-band { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: center; margin-top: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.lp .lp-band h2 { font-size: clamp(1.375rem, 1.1rem + .9vw, 1.75rem); }
.lp-band .lp-form { max-width: none; }

/* GEO */
.lp-geo__grid { display: grid; grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr); gap: clamp(32px, 4vw, 60px); align-items: center; }
.lp-geo__lead { margin-top: 16px !important; color: var(--mut); font-size: 1.0625rem; line-height: 1.55; }
.lp-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px !important; }
.lp-chips li { padding: 6px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: .875rem; }
.lp-geo__note { margin-top: 22px !important; padding-top: 18px; border-top: 1px solid var(--line); color: var(--mut); font-size: .9375rem; line-height: 1.5; }

/* People */
.lp-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 56px); }
.lp-people article { padding-top: 20px; border-top: 2px solid var(--text); }
.lp-people h3 { font-family: var(--display); font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.lp-people p { color: var(--mut); font-size: 1.0625rem; line-height: 1.55; }

/* Plans */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lp-plans article { display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.lp-plans h3 { color: var(--mut); font-size: 1rem; font-weight: 500; }
.lp-plans__n { margin-top: 10px !important; color: var(--mut); font-size: 1.0625rem; }
.lp-plans__n b { color: var(--text); font: 700 3.25rem/1 var(--display); letter-spacing: -.03em; }
.lp-plans__bar { height: 6px; margin: 18px 0; background: var(--ring); border-radius: 3px; overflow: hidden; }
.lp-plans__bar i { display: block; height: 100%; background: var(--violet); border-radius: 3px; }
.lp-plans ul { margin-bottom: 24px !important; color: var(--mut); font-size: .9375rem; line-height: 1.8; }
.lp-plans .btn { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: auto; font-weight: 600; border-radius: 8px; }

/* FAQ */
.lp-limits { margin-top: 28px; }
.lp-limits h3 { font-size: 1rem; margin-bottom: 10px; }
.lp-limits li { position: relative; padding: 5px 0 5px 22px; color: var(--mut); font-size: .9375rem; line-height: 1.45; }
.lp-limits li::before { content: "✕"; position: absolute; left: 0; color: var(--err); font-weight: 700; }
.lp-faq details { border-bottom: 1px solid var(--line); }
.lp-faq details:first-child { border-top: 1px solid var(--line); }
.lp-faq summary { position: relative; padding: 20px 40px 20px 0; cursor: pointer; list-style: none; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; position: absolute; right: 6px; top: 15px; color: var(--violet-d); font-size: 1.625rem; line-height: 1.3; }
.lp-faq details[open] summary::after { content: "\2212"; }
.lp-faq h3 { display: inline; font-size: 1.125rem; }
.lp-faq__answer { max-width: 62ch; padding: 0 40px 22px 0; color: var(--mut); font-size: 1.0625rem; line-height: 1.55; }

/* Page ending: one white ground with a single accent card */
.lp-final { padding-block: clamp(48px, 3rem + 2vw, 88px) 0; background: var(--surface); text-align: center; }
.lp-final__card { padding: clamp(40px, 2rem + 3vw, 72px) clamp(20px, 4vw, 56px); background: var(--tint); border-radius: 18px; }
.lp-final__card > p { margin-top: 12px; color: var(--mut); font-size: 1.125rem; }
.lp-final .lp-form { margin: 28px auto 0; text-align: left; }
.lp .tool-tags-section { margin-top: 32px !important; margin-bottom: 12px !important; text-align: left; }
html:not(.dark) .tool-feedback-wrap { background: #fff !important; }

@media (max-width: 991.98px) {
  .lp-hero__grid, .lp-tour, .lp-split, .lp-geo__grid, .lp-band { grid-template-columns: minmax(0, 1fr); }
  .lp-tabs { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .lp-tabs button { width: auto; padding: 9px 14px; border: 1px solid var(--line); border-radius: 8px; }
  .lp-tabs button[aria-selected=true] { border-color: var(--violet); }
  .lp-tabs button b { font-size: .9375rem; }
  .lp-tabs button span { display: none !important; }
  .lp-split__head { position: static; }
  .lp-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-ledger__head { display: none; }
  .lp-ledger article { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 18px 20px; }
  .lp-ledger__head + article { border-top: 0; }
  .lp-ledger p.fix::before { content: attr(data-fix-label) " "; color: var(--ok); font-weight: 600; }
}
@media (max-width: 767.98px) {
  .lp-steps, .lp-people, .lp-plans, .lp-checks { grid-template-columns: minmax(0, 1fr); }
  .lp-steps li { min-height: 40px; padding: 0 0 0 56px; }
  .lp-steps li:not(:last-child)::after { top: 40px; left: 19px; width: 2px; height: calc(100% + clamp(24px, 4vw, 56px) - 40px); }
}
@media (max-width: 575.98px) {
  .lp-form { flex-direction: column; }
  .lp-form .btn { width: 100%; }
  .lp-opts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lp-seg { display: flex; }
  .lp-seg label { flex: 1; text-align: center; }
  .lp-facts li { flex-direction: column; gap: 2px; }
  .lp-band { padding: 20px; }
  .lp-hmodal .modal-dialog { margin: 8px; }
  .lp-hmodal .modal-content { max-height: calc(100vh - 16px); padding: 18px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before { transition: none !important; animation: none !important; }
}
