:root {
  --bg: #F4F6FA;
  --surface: #FFFFFF;
  --surface-2: #EEF2F7;
  --ink: #1B2440;
  --muted: #59637A;
  --line: #DCE2EA;
  --accent: #2E4FD8;
  --accent-ink: #FFFFFF;
  --accent-soft: #E6EBFC;
  --deep: #151D36;
  --deep-2: #1F2947;
  --deep-ink: #E8ECF6;
  --deep-muted: #A1ABC4;
  --pass: #15815A;
  --warn: #A86F00;
  --fail: #C43333;
  --pass-bg: #E1F3EA;
  --warn-bg: #FBF0D6;
  --fail-bg: #FBE6E6;
  --tick-off: #DCE2EA;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10162A;
    --surface: #182039;
    --surface-2: #1E2745;
    --ink: #E6EBF5;
    --muted: #9AA5BE;
    --line: #2B3656;
    --accent: #6F8CFF;
    --accent-ink: #0E1430;
    --accent-soft: rgba(111, 140, 255, .14);
    --deep: #0A0F20;
    --deep-2: #151D36;
    --pass: #3CC48B;
    --warn: #F0B43C;
    --fail: #FF6E6E;
    --pass-bg: rgba(60, 196, 139, .14);
    --warn-bg: rgba(240, 180, 60, .14);
    --fail-bg: rgba(255, 110, 110, .14);
    --tick-off: #2B3656;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.12; }
a { color: var(--accent); }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--accent); color: var(--accent-ink); border: 1px solid transparent;
  font: 600 .95rem var(--body); padding: .62rem 1.1rem; border-radius: 10px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.btn-lg { padding: .85rem 1.4rem; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); filter: none; }
.btn-light { background: #fff; color: #151D36; }
.link-btn { color: var(--ink); text-decoration: none; font-weight: 500; padding: .55rem .6rem; }
.link-btn:hover { color: var(--accent); }
.link-light { color: var(--deep-ink); font-weight: 500; }
.text-link { font-weight: 600; text-decoration: none; }
.text-link::after { content: ""; display: inline-block; width: .5em; height: .5em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); margin-left: .45em; vertical-align: .1em; }
.text-link:hover { text-decoration: underline; }

/* ---------------- Logo ---------------- */
.logo { display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; font: 700 1.15rem var(--display); letter-spacing: -.01em; }
.logo-mark rect { fill: var(--ink); }
.logo-mark .lm-arc { fill: none; stroke: var(--bg); stroke-width: 3; stroke-linecap: round; }
.logo-mark .lm-needle { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.logo-light { color: var(--deep-ink); }
.logo-light .logo-mark rect { fill: var(--deep-ink); }
.logo-light .logo-mark .lm-arc { stroke: var(--deep); }

/* ---------------- Nav ---------------- */
.site-nav { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 2rem; height: 68px; }
.nav-links { display: flex; gap: 1.75rem; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

/* ---------------- Hero ---------------- */
.hero { padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5rem); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { font-weight: 800; font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.02; letter-spacing: -.04em; margin: 0 0 1.3rem; max-width: 15ch; }
.hero-lede { font-size: 1.15rem; color: var(--muted); max-width: 54ch; margin: 0 0 2rem; }
.checkbar { display: flex; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 6px; max-width: 640px; }
.checkbar:focus-within { border-color: var(--accent); }
.checkbar input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 1.08rem var(--body); padding: .75rem 1rem; }
.checkbar input:focus { outline: none; }
.checkbar input::placeholder { color: var(--muted); opacity: .8; }
.form-error { color: var(--fail); font-weight: 500; min-height: 1.4em; margin: .6rem 0 0; }
.form-error:empty { min-height: 0; margin: 0; }
.hero-note { color: var(--muted); font-size: .93rem; margin: .9rem 0 0; }

/* Hero visual: a stacked peek at a report */
.hero-visual { position: relative; display: grid; gap: .9rem; }
.pv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.25rem; }
.pv-score { background: var(--deep); border-color: var(--deep); color: var(--deep-ink); text-align: center; padding: 1.5rem 1.25rem 1.3rem; }
.pv-dial { width: 100%; max-width: 250px; display: block; margin: 0 auto; }
.pv-dial .tick, .fr-dial .tick { stroke: rgba(255, 255, 255, .13); stroke-width: 4.5; stroke-linecap: round; }
.pv-dial .tick.on { stroke: #3CC48B; animation: tick .35s both; animation-delay: calc(var(--i) * 25ms + .2s); }
@keyframes tick { from { stroke: rgba(255, 255, 255, .13); } }
.pv-num { font: 800 64px var(--display); fill: var(--deep-ink); letter-spacing: -2px; }
.pv-verdict { font: 700 1.1rem var(--display); margin: .3rem 0 .8rem; }
.pv-tally, .fr-tally { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem; }
.pv-tally span, .fr-tally span { font-size: .82rem; font-weight: 600; padding: .25rem .65rem; border-radius: 999px; }
.pv-tally .t-fail { background: rgba(255, 116, 116, .16); color: #FF8A8A; }
.pv-tally .t-warn { background: rgba(240, 180, 60, .16); color: #F2BF55; }
.pv-tally .t-pass { background: rgba(60, 196, 139, .16); color: #5DD6A0; }
.pv-cats { display: grid; gap: .55rem; }
.pv-row { display: grid; grid-template-columns: 9.5rem 1fr 2rem; gap: .75rem; align-items: center; font-size: .88rem; }
.pv-row span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-row i { height: 7px; border-radius: 4px; background: linear-gradient(to right, var(--pass) var(--w), var(--surface-2) var(--w)); }
.pv-row i.w { background: linear-gradient(to right, var(--warn) var(--w), var(--surface-2) var(--w)); }
.pv-row b { font-family: var(--display); text-align: right; }
.pv-issue { display: flex; gap: .8rem; align-items: flex-start; width: 88%; justify-self: end; }
.pv-issue p { margin: .1rem 0 0; color: var(--muted); font-size: .88rem; }
.pv-badge { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--warn-bg); color: var(--warn); font-weight: 800; }

/* ---------------- Free result ---------------- */
.free-result { padding: 0 0 4rem; scroll-margin-top: 80px; }
.fr-loading, .fr-error { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 2.5rem 1.5rem; text-align: center; }
.fr-loading p { margin: .2rem 0; }
.fr-error p { font-weight: 500; margin: 0 0 1rem; }
.pulse-dial { width: 120px; height: 60px; margin: 0 auto 1.2rem; border: 9px solid var(--tick-off); border-bottom: 0; border-radius: 120px 120px 0 0; position: relative; overflow: hidden; }
.pulse-dial::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 4px; height: 50px; margin-left: -2px; background: var(--accent); border-radius: 2px; transform-origin: 50% 100%; animation: sweep 1.6s ease-in-out infinite alternate; }
@keyframes sweep { from { transform: rotate(-75deg); } to { transform: rotate(75deg); } }

.fr-grid { display: grid; grid-template-columns: minmax(260px, .8fr) 1.2fr; gap: 1rem; }
.fr-score { background: var(--deep); color: var(--deep-ink); border-radius: 18px; padding: 1.75rem 1.5rem; text-align: center; }
.fr-dial { width: 100%; max-width: 260px; display: block; margin: 0 auto; }
.fr-dial.tone-pass .tick.on { stroke: #3CC48B; }
.fr-dial.tone-warn .tick.on { stroke: #F0B43C; }
.fr-dial.tone-fail .tick.on { stroke: #FF7474; }
.fr-dial .tick.on { animation: tick .35s both; animation-delay: calc(var(--i) * 22ms); }
.fr-num { font: 800 64px var(--display); fill: var(--deep-ink); letter-spacing: -2px; }
.fr-verdict { font: 700 1.15rem var(--display); margin: .4rem 0 .2rem; }
.fr-url { color: var(--deep-muted); font-size: .88rem; margin: 0 0 .9rem; overflow-wrap: anywhere; }
.fr-tally .t-fail { background: rgba(255, 116, 116, .16); color: #FF8A8A; }
.fr-tally .t-warn { background: rgba(240, 180, 60, .16); color: #F2BF55; }
.fr-tally .t-pass { background: rgba(60, 196, 139, .16); color: #5DD6A0; }
.fr-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; display: grid; gap: .8rem; align-content: start; }
.fr-panel h2, .fr-issues h2 { font-size: 1.2rem; margin: 0 0 .3rem; }
.fr-cat { display: grid; grid-template-columns: 11rem 1fr 2.2rem; gap: 1rem; align-items: center; }
.fr-cat span { font-weight: 500; }
.bar { height: 9px; border-radius: 5px; background: linear-gradient(to right, var(--c) var(--w), var(--surface-2) var(--w)); }
.bar.tone-pass { --c: var(--pass); }
.bar.tone-warn { --c: var(--warn); }
.bar.tone-fail { --c: var(--fail); }
.fr-cat b { font: 700 1.05rem var(--display); text-align: right; }

.fr-issues { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem; margin-top: 1rem; }
.fr-issues ul { list-style: none; margin: .6rem 0 0; padding: 0; }
.fr-issues li { display: grid; grid-template-columns: 26px 1fr auto; gap: .9rem; align-items: start; padding: .85rem 0; }
.fr-issues li + li { border-top: 1px solid var(--line); }
.fr-badge { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; }
.s-fail .fr-badge { background: var(--fail-bg); color: var(--fail); }
.s-warn .fr-badge { background: var(--warn-bg); color: var(--warn); }
.fr-issue strong { display: block; }
.fr-issue span { color: var(--muted); font-size: .93rem; }
.fr-lock { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); background: var(--surface-2); padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; }
.fr-more { margin: .6rem 0 0; color: var(--muted); font-weight: 500; }
.fr-cta { margin-top: 1rem; background: var(--deep); color: var(--deep-ink); border-radius: 18px; padding: 1.75rem 2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.fr-cta h2 { margin: 0 0 .3rem; font-size: 1.45rem; }
.fr-cta p { margin: 0; color: var(--deep-muted); max-width: 52ch; }
.fr-cta-actions { display: flex; align-items: center; gap: 1.25rem; }

/* ---------------- Sections ---------------- */
.section { padding: clamp(4rem, 9vw, 6.5rem) 0; scroll-margin-top: 60px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 .7rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

.check-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border-top: 2px solid var(--ink); }
.group { padding: 1.4rem 1.4rem 0 0; }
.group + .group { padding-left: 1.4rem; border-left: 1px solid var(--line); }
.group h3 { font-size: 1.12rem; margin: 0 0 .6rem; }
.group p { color: var(--muted); font-size: .93rem; margin: 0; }

.feature-rows { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.feature-flip .feature-copy { order: 2; }
.feature-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 1rem; }
.feature-copy p { color: var(--muted); font-size: 1.05rem; margin: 0 0 1.2rem; max-width: 52ch; }
.feature-art { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 1.75rem; }

.art-report { max-width: 420px; justify-self: center; width: 100%; background: #fff; color: #1B2440; box-shadow: 0 24px 50px -30px rgba(21, 29, 54, .45); }
.ar-top { display: flex; align-items: center; gap: .6rem; }
.ar-logo { width: 30px; height: 30px; border-radius: 8px; background: #0E7C66; }
.ar-name { font: 700 1rem var(--display); color: #0E3B33; }
.ar-title { font: 800 1.4rem/1.15 var(--display); margin: 1.1rem 0 .25rem; letter-spacing: -.02em; }
.ar-for { color: #59637A; margin: 0; font-size: .9rem; }
.ar-score { display: flex; align-items: center; gap: 1rem; margin: 1.2rem 0; background: #151D36; border-radius: 12px; padding: .9rem 1rem; }
.ar-score b { font: 800 2rem var(--display); color: #fff; }
.ar-score span { flex: 1; display: flex; height: 9px; border-radius: 5px; overflow: hidden; }
.ar-score i:nth-child(1) { width: 72%; background: #3CC48B; }
.ar-score i:nth-child(2) { width: 18%; background: #F0B43C; }
.ar-score i:nth-child(3) { width: 10%; background: #FF7474; }
.ar-lines { display: grid; gap: .5rem; }
.ar-lines i { height: 9px; border-radius: 5px; background: #EEF2F7; }
.ar-lines i:nth-child(2) { width: 82%; }
.ar-lines i:nth-child(3) { width: 64%; }

.art-edit { display: grid; gap: .5rem; max-width: 420px; justify-self: center; width: 100%; }
.ae-row { display: flex; align-items: center; gap: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; font-weight: 500; }
.ae-row.off { opacity: .45; }
.ae-box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--line); flex: none; }
.ae-box.on { background: var(--accent); border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 5px #fff; }
.ae-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ae-dot.pass { background: var(--pass); }
.ae-dot.warn { background: var(--warn); }
.ae-dot.fail { background: var(--fail); }
.ae-score { margin-top: .4rem; text-align: right; color: var(--muted); }
.ae-score b { font: 800 1.8rem var(--display); color: var(--ink); margin-left: .4rem; vertical-align: -3px; }

.art-history { display: grid; gap: .5rem; max-width: 420px; justify-self: center; width: 100%; }
.ah-row { display: grid; grid-template-columns: 1fr auto 3rem; gap: 1rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; font-weight: 500; }
.ah-row b { font-size: .88rem; color: var(--muted); font-weight: 600; }
.ah-row b.up { color: var(--pass); }
.ah-row em { font: 700 1rem var(--display); font-style: normal; text-align: center; background: var(--pass-bg); color: var(--pass); border-radius: 7px; padding: .15rem 0; }
.ah-row em.w { background: var(--warn-bg); color: var(--warn); }

/* ---------------- Pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 2rem 1.75rem; display: flex; flex-direction: column; }
.plan h3 { font-size: 1.35rem; margin: 0 0 .35rem; }
.plan-for { color: var(--muted); margin: 0 0 1.4rem; min-height: 3.2em; }
.price { display: flex; align-items: baseline; gap: .45rem; margin: 0 0 1.4rem; }
.amt { font: 800 3rem/1 var(--display); letter-spacing: -.04em; }
.per { color: var(--muted); }
.features { list-style: none; margin: 1.6rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .7rem; }
.features li { display: grid; grid-template-columns: 18px 1fr; gap: .65rem; align-items: start; font-size: .96rem; }
.features li::before { content: ""; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--pass-bg) no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2315815A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E"); }
.plan-featured { background: var(--deep); border-color: var(--deep); color: var(--deep-ink); }
.plan-featured .plan-for, .plan-featured .per { color: var(--deep-muted); }
.plan-featured .features { border-top-color: rgba(255, 255, 255, .12); }
.plan-featured .features li::before { background-color: rgba(60, 196, 139, .18); }
.plan-flag { position: absolute; top: 1.4rem; right: 1.4rem; margin: 0; font-size: .78rem; font-weight: 600; background: var(--accent); color: var(--accent-ink); padding: .25rem .65rem; border-radius: 999px; }

/* ---------------- FAQ ---------------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: start; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; font: 600 1.08rem var(--body); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: .4rem; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0 0 1.3rem; color: var(--muted); max-width: 62ch; }

/* ---------------- Closing & footer ---------------- */
.closing { background: var(--deep); color: var(--deep-ink); padding: clamp(3.5rem, 8vw, 5.5rem) 0; }
.closing-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.closing h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.035em; margin: 0; max-width: 18ch; }
.closing-actions { display: flex; align-items: center; gap: 1.5rem; }
.site-foot { padding: 2.25rem 0; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.foot-inner nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.foot-inner nav a { color: var(--muted); text-decoration: none; }
.foot-inner nav a:hover { color: var(--ink); }
.foot-inner p { margin: 0 0 0 auto; color: var(--muted); font-size: .9rem; }

/* ---------------- Auth pages ---------------- */
.page-auth { background: var(--surface); }
.auth { display: grid; grid-template-columns: minmax(320px, .85fr) 1.15fr; min-height: 100vh; }
.auth-side { background: var(--deep); color: var(--deep-ink); padding: 2.25rem clamp(1.5rem, 4vw, 3.5rem); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.auth-side-copy { margin: auto 0; }
.auth-side-copy h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; margin: 0 0 1.25rem; max-width: 16ch; }
.auth-side-copy p { color: var(--deep-muted); font-size: 1.05rem; max-width: 40ch; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.auth-points li { display: grid; grid-template-columns: 20px 1fr; gap: .7rem; color: var(--deep-muted); }
.auth-points li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; background: rgba(60, 196, 139, .18) no-repeat center / 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235DD6A0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E"); }
.auth-side-foot { color: var(--deep-muted); font-size: .92rem; margin: 0; }
.auth-side-foot a { color: var(--deep-ink); }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 3rem clamp(1.25rem, 5vw, 4rem); }
.auth-card { width: 100%; max-width: 460px; }
.auth-mobile-logo { display: none; margin-bottom: 2rem; }
.auth-card h1 { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; margin: 0 0 .4rem; }
.auth-sub { color: var(--muted); margin: 0 0 2rem; }
.auth-form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: .4rem; }
.field > span:first-child { font-weight: 600; font-size: .93rem; }
.field input { width: 100%; font: 400 1rem var(--body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .75rem .9rem; }
.field input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: var(--fail); }
.field small { color: var(--muted); font-size: .83rem; }
.field-error { color: var(--fail); font-style: normal; font-size: .85rem; font-weight: 500; }
.field-error:empty { display: none; }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 4.2rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--accent); font: 600 .85rem var(--body); cursor: pointer; padding: .4rem .5rem; }
.check { display: flex; gap: .65rem; align-items: flex-start; font-size: .93rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.auth-help { color: var(--muted); font-size: .9rem; margin: 0; text-align: center; }
.alert { background: var(--fail-bg); color: var(--fail); padding: .8rem 1rem; border-radius: 10px; font-weight: 500; margin: 0 0 1.5rem; }
.alert-info { background: var(--accent-soft); color: var(--accent); }

.plan-pick { border: 0; padding: 0; margin: .3rem 0 0; }
.plan-pick legend { font-weight: 600; font-size: .93rem; margin-bottom: .5rem; padding: 0; }
.plan-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.plan-pick legend { grid-column: 1 / -1; }
.plan-opt { position: relative; cursor: pointer; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt-body { display: grid; gap: .1rem; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .85rem; height: 100%; }
.plan-opt input:checked + .plan-opt-body { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--accent-soft); }
.plan-opt input:focus-visible + .plan-opt-body { outline: 3px solid var(--accent); outline-offset: 2px; }
.plan-opt-name { font-weight: 700; }
.plan-opt-price { font: 700 1.05rem var(--display); }
.plan-opt-note { font-size: .78rem; color: var(--muted); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1024px) {
  .check-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.5rem; }
  .group:nth-child(4) { padding-left: 0; border-left: 0; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid, .feature, .fr-grid, .faq-wrap { grid-template-columns: 1fr; }
  .hero-visual { max-width: 460px; }
  .feature-flip .feature-copy { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 480px; }
  .plan-for { min-height: 0; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-logo { display: inline-flex; }
}
@media (max-width: 640px) {
  .nav-inner { gap: 1rem; }
  .nav-cta { gap: .75rem; }
  .nav-cta a { white-space: nowrap; }
  .nav-cta .btn { padding: .55rem .9rem; }
  .hide-sm { display: none; }
  .checkbar { flex-direction: column; gap: 6px; }
  .checkbar .btn { width: 100%; }
  .check-groups { grid-template-columns: 1fr; }
  .group, .group + .group { padding: 1.1rem 0 0; border-left: 0; }
  .group + .group { border-top: 1px solid var(--line); }
  .fr-cat { grid-template-columns: 1fr 2.2rem; }
  .fr-cat .bar { grid-column: 1 / -1; grid-row: 2; }
  .fr-issues li { grid-template-columns: 26px 1fr; }
  .fr-lock { grid-column: 2; justify-self: start; }
  .pv-row { grid-template-columns: 7.5rem 1fr 2rem; }
  .plan-pick { grid-template-columns: 1fr; }
  .foot-inner p { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
/* hide the password hint while an error is showing */
.field:has(.field-error:not(:empty)) #pwHint { display: none; }
.logo svg, .logo .mark { flex: none; }

/* Website audit illustration */
.art-crawl .ah-row { grid-template-columns: 1fr 3.5rem; }
.ah-row em.f { background: var(--fail-bg); color: var(--fail); }

/* Extra tools section (v5) */
#tools .check-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 1.75rem; }
@media (max-width: 640px) { #tools .check-groups { grid-template-columns: 1fr; } }
@media (min-width: 641px) { #tools .group:nth-child(3n+1) { padding-left: 0; border-left: 0; } }
