:root {
  --ink: #211b36; --muted: #605e74; --line: #dedce8; --iris: #5836cd;
  --iris-dark: #39239a; --wash: #f5f4fb; --shell: 78rem;
}
.public-site { background: white; color: var(--ink); }
.shell { width: min(var(--shell), calc(100% - clamp(2rem, 8vw, 8rem))); margin-inline: auto; }
.public-site :where(a,button,summary,input,select):focus-visible { outline: 3px solid #8266ec; outline-offset: 3px; }
.skip { color: #281b61; }
.masthead { color: white; background: linear-gradient(104deg,#362785,#4930a4 67%,#5335ac); }
.masthead-inner { min-height: 4.4rem; display: flex; align-items: center; gap: clamp(1.7rem,5vw,5rem); }
.masthead .brand img { width: 10.1rem; filter: brightness(0) invert(1); }
.mast-nav { display: flex; align-items: center; gap: clamp(1.25rem,3vw,2.55rem); font-size: .9rem; font-weight: 570; }
.mast-nav a:hover,.footer-inner a:hover { text-decoration: underline; text-underline-offset: .26em; }
.account-link { margin-left: auto; display: inline-flex; align-items: center; gap: .8rem; border: 1px solid #ffffff85; border-radius: .6rem; padding: .52rem .9rem; font-size: .86rem; font-weight: 600; white-space: nowrap; }
.account-link span,.section-action span { font-size: 1.05rem; line-height: 1; }
.account-link:hover { background: #ffffff19; }
.masthead :focus-visible { outline-color: white; }
.tool-band { background: #fff; border-bottom: 1px solid var(--line); }
.tool-nav { display: flex; align-items: stretch; gap: clamp(1.2rem,3vw,3rem); overflow-x: auto; scrollbar-width: thin; }
.tool-nav a { position: relative; display: inline-flex; gap: .5rem; align-items: center; flex: none; min-height: 3.2rem; color: #585568; font-size: .88rem; font-weight: 540; white-space: nowrap; }
.tool-nav a.current,.tool-nav a:hover { color: var(--iris); }
.tool-nav a.current { font-weight: 700; }
.tool-nav a.current::after { content: ""; height: 3px; position: absolute; bottom: 0; inset-inline: 0; background: var(--iris); border-radius: 3px 3px 0 0; }
.tool-nav a:focus-visible { outline-offset: -3px; }
.tool-nav .icon { width: 1.07rem; height: 1.07rem; }
.hero-band { padding: clamp(1rem,2.1vw,1.9rem) 0; background: var(--wash); }
.optics { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.15rem; color: #fff; background: #1b153c; }
.optics-art { position: absolute; z-index: -2; right: 0; top: 0; width: 51%; height: 100%; object-fit: cover; object-position: 55% 52%; }
.optics::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg,#1b153c 0%,#1b153c 45%,rgba(27,21,60,.85) 51%,rgba(27,21,60,0) 68%); }
.optics-copy { width: 61%; padding: clamp(1.7rem,3.8vw,3.25rem) 0 clamp(1.7rem,3.5vw,3rem) clamp(1.5rem,3.8vw,3.5rem); }
.access-note { display: inline-flex; align-items: center; gap: .48rem; font-size: .86rem; font-weight: 560; line-height: 1.3; color: #e2d9ff; }
.access-note [data-icon] { width: 1.2rem; height: 1.2rem; border-radius: 50%; background: #443663; color: #e2d3ff; }
.access-note .icon { width: .84rem; height: .84rem; }
.optics h1 { margin: .72rem 0 .65rem; font-size: clamp(2.4rem,4.2vw,3.85rem); line-height: 1.05; font-weight: 680; letter-spacing: -.062em; }
.optics h1 em { font-style: normal; color: #c8b3ff; }
.hero-description { max-width: 35rem; font-size: clamp(.99rem,1.4vw,1.09rem); line-height: 1.52; color: #e5dff2; }
.optics form { max-width: 39rem; margin-top: 1.35rem; }
.address-label { display: block; width: fit-content; margin-bottom: .42rem; font-size: .82rem; font-weight: 600; }
.url-controls { display: flex; align-items: stretch; gap: .48rem; }
.url-input { flex: 1; min-width: 0; display: flex; align-items: center; gap: .55rem; padding-inline: .85rem; border: 1px solid #c8c3d6; border-radius: .58rem; background: white; color: #6f6684; }
.url-input:focus-within { outline: 2px solid #9175f5; outline-offset: 1px; border-color: transparent; }
.url-input .icon { width: 1.05rem; height: 1.05rem; }
.url-input input { width: 100%; min-width: 0; border: 0; padding: .75rem 0; outline: 0!important; background: transparent; color: #262139; font-size: 1rem; line-height: 1.35; }
.url-input input::placeholder { color: #777282; }
.start-button { display: inline-flex; align-items: center; justify-content: center; gap: .74rem; min-height: 3rem; padding: .7rem 1.05rem; border-radius: .58rem; background: var(--iris); color: white; font-size: .93rem; font-weight: 640; }
.optics .start-button { background: #7852e8; }
.start-button:hover { background: var(--iris-dark); }
.optics .start-button:hover { background: #6942d8; }
.button-arrow { font-size: 1.2em; line-height: 1; }
.form-feedback { margin: .55rem 0 0; color: #943d37; font-size: .88rem; }
.optics .form-feedback { color: #ffd0c5; }
.form-feedback:empty { display: none; }
.coverage { padding-block: clamp(1.75rem,3.65vw,3.15rem); }
.coverage h2,.section-title h2,.guide h2 { font-size: clamp(1.65rem,2.7vw,2.5rem); letter-spacing: -.055em; font-weight: 640; }
.coverage-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .8rem; align-items: start; margin-top: 1.2rem; }
.scope { --tile: #f2edfc; --tile-ink: #604299; --icon-bg: #e4d9fa; position: relative; min-width: 0; height: 100%; border: 1px solid transparent; border-radius: .8rem; color: var(--ink); background: var(--tile); }
.scope-content { --tile: #edf2ff; --tile-ink: #385da2; --icon-bg: #dce5fc; }
.scope-links { --tile: #eaf5f2; --tile-ink: #27695e; --icon-bg: #d4ebe4; }
.scope-speed { --tile: #fbf0e5; --tile-ink: #895528; --icon-bg: #f4dfc9; }
.scope:hover,.scope[open] { border-color: color-mix(in srgb,var(--tile-ink) 45%,var(--tile)); }
.scope summary { position: relative; display: grid; grid-template-rows: auto auto 1fr; justify-items: start; gap: .28rem; padding: 1.05rem 1.1rem 1.15rem; list-style: none; cursor: pointer; }
.scope summary::-webkit-details-marker,.guide summary::-webkit-details-marker { display:none; }
.scope-symbol { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; margin-bottom: .65rem; background: var(--icon-bg); color: var(--tile-ink); border-radius: .66rem; }
.scope-symbol .icon { width: 1.3rem; height: 1.3rem; }
.scope strong { font-size: clamp(1.02rem,1.5vw,1.18rem); line-height: 1.25; letter-spacing: -.03em; }
.scope-caption { font-size: .84rem; line-height: 1.45; color: #575461; }
.scope summary i { position: absolute; top: 1.4rem; right: 1.05rem; width: .6rem; height: .6rem; border-right: 1.5px solid var(--tile-ink); border-bottom: 1.5px solid var(--tile-ink); transform: rotate(45deg); }
.scope[open] summary i { transform: rotate(225deg); top: 1.6rem; }
.scope p { margin: -.15rem 1.1rem 1.12rem; padding-top: .75rem; border-top: 1px solid #29233725; font-size: .85rem; line-height: 1.5; }
.project-band { background: var(--wash); border-block: 1px solid #e8e5f1; padding-block: clamp(1.9rem,3.65vw,3.2rem); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.15rem; }
.section-title p,.pricing-note,.guide p { color: var(--muted); line-height: 1.5; }
.section-title p { margin-top: .55rem; font-size: .94rem; }
.section-action { display: inline-flex; align-items: center; gap: .55rem; color: var(--iris-dark); font-size: .91rem; font-weight: 620; white-space: nowrap; }
.section-action:hover { text-decoration: underline; }
.public-site .plan-grid { gap: .8rem; }
.public-site .plan-card { padding: clamp(1rem,2.1vw,1.45rem); gap: .48rem; border-radius: .8rem; }
.public-site .plan-card h3 { font-size: 1rem; }
.public-site .plan-price { font-weight: 620; }
.public-site .plan-card .btn { min-height: 2.55rem; }
.pricing-note { margin-top: .85rem; font-size: .82rem; }
.guide { padding-block: clamp(2rem,4vw,4rem); display: grid; grid-template-columns: .8fr 1.35fr; gap: clamp(1.1rem,4vw,4rem); }
.guide-list { border-top: 1px solid var(--line); }
.guide-list details { border-bottom: 1px solid var(--line); }
.guide-list summary { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .85rem 0; font-weight: 590; cursor: pointer; list-style: none; }
.guide-list summary span { color: var(--iris); }
.guide-list details[open] summary span { transform: rotate(45deg); }
.guide-list p { padding-bottom: 1rem; font-size: .92rem; }
.public-footer { border-top: 1px solid var(--line); background: white; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.5rem; min-height: 4.8rem; padding-block: 1rem; color: var(--muted); font-size: .86rem; }
.footer-inner .brand { margin-right: auto; }
.footer-inner .brand img { width: 8.6rem; }

.report-page { display: flex; flex-direction: column; min-height: 100svh; background: var(--wash); }
.report-main { flex: 1; padding-block: 1.05rem 2.8rem; }
.crumbs { display: flex; align-items: baseline; gap: .5rem; margin: 0 0 1.4rem; color: #676078; font-size: .83rem; }
.crumbs a:hover { color: var(--iris); text-decoration: underline; }
.crumbs [aria-current] { color: var(--iris-dark); }
.report-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-bottom: 1rem; }
.report-heading h1 { font-size: clamp(1.85rem,3.2vw,2.7rem); font-weight: 660; letter-spacing: -.055em; }
#run-status { color: var(--muted); font-size: .88rem; }
#run-status[data-state]:not(:empty) { display: inline-flex; align-items: center; gap: .42rem; border-radius: 2rem; padding: .32rem .73rem; background: #e8e2fb; color: #4a358e; }
#run-status[data-state]:not(:empty)::before { content: ""; width: .45rem; height: .45rem; background: currentColor; border-radius: 50%; }
#run-status[data-state="ready"]:not(:empty) { background: #e1f3eb; color: #20694f; }
.report-entry,.report-main .panel { padding: clamp(1rem,1.95vw,1.55rem); border: 1px solid var(--line); border-radius: .85rem; background: white; min-width: 0; }
.report-entry .url-controls { max-width: 59rem; }
.run-settings { margin-top: .65rem; color: #51466e; font-size: .84rem; }
.run-settings summary { width: fit-content; cursor: pointer; font-weight: 570; }
.settings-grid { max-width: 55rem; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1rem; margin: .85rem 0 .15rem; }
.merchant-option { grid-column: 1/-1; display: flex; align-items: baseline; gap: .3rem; }
.merchant-option input { accent-color: var(--iris); }
.run-progress { margin: 1rem 0; border: 1px solid #d6cbf0; border-radius: .75rem; overflow: hidden; padding: .95rem 1.2rem; background: #efebfb; }
.progress-label { display: flex; align-items: center; gap: .65rem; color: #392a5a; font-size: .9rem; }
.loader-dot { flex: none; width: 1rem; height: 1rem; border: 2px solid #c8bae9; border-top-color: var(--iris); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.run-steps { display: flex; gap: .52rem; list-style: none; padding: 0; margin: .72rem 0 0; max-width: 38rem; }
.run-steps li { flex: 1; border-top: 3px solid #d2cbe1; padding-top: .34rem; color: #665c78; font-size: .77rem; }
.run-steps li[aria-current] { border-color: #7653cf; color: #432d78; font-weight: 650; }
.run-steps li.completed { border-color: #418469; }
.run-error { margin: .8rem 0; border-radius: .6rem; padding: .7rem 1rem; background: #fff0e9; color: #873e31; }
.refresh-report { margin: 0 0 .75rem; }
.report-sections { display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; padding-top: .6rem; margin: .45rem 0 .85rem; border-bottom: 1px solid var(--line); }
.report-sections a { border-bottom: 2px solid transparent; margin-bottom: -1px; padding: .55rem .1rem; font-size: .86rem; color: #60586e; font-weight: 580; }
.report-sections a[aria-current],.report-sections a:hover { color: var(--iris); border-color: var(--iris); }
.report-main .audit-report:not(:empty) { gap: .85rem; }
.report-main .empty { border: 1px dashed var(--line); border-radius: .5rem; padding: 1rem; color: var(--muted); }
.report-main .empty p { margin-bottom: .4rem; }
.report-main .score-track i { background: #7353ce; }
.report-main .panel:target { scroll-margin-block-start: .5rem; }

@media (max-width: 900px) {
  .optics-copy { width: 64%; }
  .coverage-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scope-caption { min-height: 1.25rem; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 2rem); }
  .masthead-inner { min-height: 3.65rem; gap: .65rem; }
  .masthead .brand img { width: 8.65rem; }
  .mast-nav { display: none; }
  .account-link { gap: .4rem; padding: .42rem .65rem; font-size: .8rem; }
  .tool-nav { gap: 1.15rem; }
  .tool-nav a { min-height: 2.75rem; font-size: .81rem; }
  .hero-band { padding-block: .85rem; }
  .optics-copy { width: 100%; padding: 1.55rem 1.25rem; }
  .optics-art { width: 65%; object-position: 55% 45%; opacity: .56; }
  .optics::before { background: linear-gradient(90deg,#1b153c 1%,rgba(27,21,60,.92) 36%,rgba(27,21,60,.28) 90%); }
  .optics h1 { font-size: clamp(2.15rem,6.6vw,2.95rem); }
  .hero-description { max-width: 29rem; }
  .optics form { max-width: 33rem; }
  .section-title { align-items: start; flex-direction: column; gap: .6rem; }
  .guide { grid-template-columns: 1fr; }
  .footer-inner { justify-content: start; gap: .6rem 1.15rem; }
  .footer-inner .brand { flex: 0 0 100%; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .tool-nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 .85rem; overflow: visible; padding-block: .2rem; }
  .tool-nav a { min-height: 2rem; width: fit-content; }
  .tool-nav a.current::after { height: 2px; }
  .optics { border-radius: .85rem; }
  .optics-copy { padding: 1.3rem 1.05rem 1.15rem; }
  .optics-art { width: 65%; height: 8.6rem; opacity: .8; object-fit: cover; object-position: 51% 52%; }
  .optics::before { background: linear-gradient(0deg,#1b153c calc(100% - 8.7rem),transparent calc(100% - 4.3rem)),linear-gradient(90deg,#1b153c 0%,#1b153c 30%,rgba(27,21,60,.3) 84%); }
  .optics h1 { max-width: 12rem; margin: .67rem 0; }
  .access-note { font-size: .76rem; }
  .hero-description { font-size: .93rem; }
  .optics form { margin-top: 1rem; }
  .url-controls { flex-direction: column; }
  .start-button { min-height: 2.75rem; }
  .coverage-grid { gap: .56rem; }
  .scope summary { padding: .85rem .75rem; }
  .scope strong { font-size: .98rem; }
  .scope-caption { font-size: .79rem; }
  .scope summary i { top: 1.2rem; right: .82rem; }
  .scope p { margin-inline: .75rem; }
  .crumbs { margin-bottom: .9rem; }
  .report-sections { gap: .15rem .9rem; }
  .report-sections a { font-size: .8rem; }
}
@media (max-width: 354px) {
  .shell { width: calc(100% - 1.35rem); }
  .scope strong { font-size: .9rem; }
  .masthead .brand img { width: 7.65rem; }
}
@media (prefers-reduced-motion: reduce) { .loader-dot { animation: none; } }
