/* builtlit website grader. Same ground as builtlit.com: white, Familjen
   Grotesk, near-black ink, big sentence-case type, rounded tiles. The only
   colour on the page is the grade itself. */
:root {
  --bg: #FFFFFF;
  --bg-soft: #F5F5F4;
  --bg-softer: #FAFAF9;
  --ink: #16171A;
  --ink-soft: #62646B;
  --tone: #86868B;
  --line: #E6E6E3;
  --night: #0C0D10;
  --night-ink: #F2F2F3;
  --night-soft: #A3A5AD;
  --font: "Familjen Grotesk", "FG Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --r-card: 22px;
  --r-tile: 26px;
  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --pass: #1B7A43;
  --pass-bg: #E9F4EE;
  --warn: #9A5B00;
  --warn-bg: #FBF1E2;
  --fail: #B42318;
  --fail-bg: #FBEAE8;
  --gA: #1B7A43; --gA-bg: #E9F4EE;
  --gB: #3B7A1B; --gB-bg: #EEF5E6;
  --gC: #8A6400; --gC-bg: #FAF3DD;
  --gD: #A94B00; --gD-bg: #FCEEE1;
  --gF: #B42318; --gF-bg: #FBEAE8;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 600; letter-spacing: -0.024em; line-height: 1.06; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
.tone { color: inherit; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }

/* ---------- nav (same as builtlit.com) ---------- */
.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  padding: calc(env(safe-area-inset-top, 0px) + 9px) var(--gutter) 9px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(251,251,253,.82); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.nav .mark { font-weight: 600; font-size: 19px; letter-spacing: -.02em; text-decoration: none; }
.mark .gi { position: relative; display: inline-block; }
.mark .gi::after { content: ""; position: absolute; left: 50%; top: .02em; width: .2em; height: .2em; border-radius: 50%; background: #B8943F; transform: translateX(-50%); }
.nav nav { display: flex; align-items: center; gap: 4px; }
.nav nav a { text-decoration: none; font-size: 12.5px; color: var(--ink); opacity: .8; padding: 6px 10px; border-radius: 999px; }
.nav nav a:hover { opacity: 1; }
.nav nav a.btn { opacity: 1; margin-left: 8px; border-radius: 10px; padding: 6px 14px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, #3A3B40 0%, #1D1E22 55%, #0B0B0D 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(0,0,0,.4), 0 10px 24px -12px rgba(0,0,0,.55); }
@media (max-width: 720px) { .nav nav a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 22px; border: 0; border-radius: 14px; font: 600 17px/1.2 var(--font); letter-spacing: -.005em; text-decoration: none; cursor: pointer; transition: transform .16s var(--ease), box-shadow .25s var(--ease), filter .2s, opacity .2s; -webkit-tap-highlight-color: transparent; }
.pill:active { transform: scale(.98); }
.pill.dark { color: #fff; background: linear-gradient(180deg, #3A3B40 0%, #1D1E22 55%, #0B0B0D 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -1px 0 rgba(0,0,0,.4), 0 10px 24px -12px rgba(0,0,0,.55); }
.pill.dark:hover { filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(0,0,0,.18), 0 16px 30px -12px rgba(22,23,26,.8); }
.pill.light { background: #fff; color: #0B0B0D; }
.pill.light:hover { filter: brightness(.96); }
.pill.ghost { background: var(--bg-soft); color: var(--ink); }
.pill.ghost:hover { background: #EDEDEB; }
.pill[disabled] { opacity: .55; cursor: progress; }

/* ---------- hero ---------- */
.hero { position: relative; padding-top: calc(env(safe-area-inset-top, 0px) + clamp(104px, 15vh, 156px)); padding-bottom: clamp(56px, 9vh, 104px); text-align: center; overflow: clip; }
.hero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 52%; width: 110vw; height: 80%; transform: translate(-50%, -50%);
  background: radial-gradient(40% 50% at 30% 60%, #EDEDF0 0%, transparent 70%), radial-gradient(40% 50% at 70% 40%, #F0EFF1 0%, transparent 70%);
  filter: blur(70px); opacity: .7; pointer-events: none; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 11px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.hero h1 { margin: clamp(16px, 2.4vh, 22px) auto 0; max-width: 15ch; font-size: clamp(2.5rem, 6.2vw, 5rem); }
.hero h1 .tone { display: block; }
.hero .sub { margin: 18px auto 0; max-width: 36rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-soft); }

.scan { margin: clamp(28px, 4vh, 40px) auto 0; max-width: 640px; text-align: left; }
.scan-label { display: block; margin: 0 0 8px 4px; font-size: 15px; font-weight: 600; }
.bar { display: flex; gap: 8px; padding: 6px; border-radius: 20px; background: #fff; border: 1px solid #D9D9D6; box-shadow: 0 24px 48px -32px rgba(0,0,0,.35); transition: border-color .2s, box-shadow .2s; }
.bar:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(22,23,26,.08), 0 24px 48px -32px rgba(0,0,0,.35); }
.bar input { flex: 1; min-width: 0; min-height: 52px; padding: 0 14px; border: 0; outline: 0; background: transparent; font: 500 18px/1.2 var(--font); color: var(--ink); }
.bar input::placeholder { color: #A1A2A7; }
.bar input[aria-invalid="true"] { color: var(--fail); }
.bar .go { flex: none; }
.hint { margin: 10px 0 0 4px; font-size: 14px; color: var(--ink-soft); }
.err { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--fail-bg); color: var(--fail); font-size: 15px; font-weight: 500; }
.err a { color: inherit; font-weight: 600; }

.chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: clamp(26px, 4vh, 40px) auto 0; max-width: 640px; }
.chips li { padding: 7px 13px; border-radius: 999px; background: var(--bg-soft); font-size: 14.5px; font-weight: 500; color: var(--ink); }

@media (max-width: 560px) {
  .bar { flex-direction: column; padding: 6px; }
  .bar input { min-height: 54px; padding: 0 12px; }
  .bar .go { width: 100%; }
  .hero h1 { font-size: clamp(2.35rem, 11vw, 3rem); }
}

/* ---------- progress ---------- */
.progress { padding: 0 0 clamp(56px, 9vh, 100px); margin-top: calc(-1 * clamp(24px, 5vh, 64px)); }
.pcard { max-width: 640px; margin: 0 auto; padding: clamp(20px, 3vw, 30px); border-radius: var(--r-tile); background: var(--bg-soft); }
.phead { display: flex; align-items: center; gap: 14px; }
.spin { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid #D6D6D3; border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.phost { font-weight: 600; font-size: 18px; overflow-wrap: anywhere; }
.ptime { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pbar { margin-top: 18px; height: 6px; border-radius: 99px; background: #E3E3E0; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: var(--ink); transform: scaleX(.04); transform-origin: 0 50%; transition: transform .5s linear; }
.steps { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.steps li { position: relative; padding-left: 30px; font-size: 15.5px; color: var(--tone); transition: color .3s; }
.steps li::before { content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #D6D6D3; box-sizing: border-box; }
.steps li.on { color: var(--ink); font-weight: 500; }
.steps li.on::before { border-color: var(--ink); border-right-color: transparent; animation: spin .9s linear infinite; }
.steps li.done { color: var(--ink-soft); }
.steps li.done::before { border: 0; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.4' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.pnote { margin-top: 18px; padding-top: 14px; border-top: 1px solid #E3E3E0; font-size: 14px; color: var(--ink-soft); }

/* ---------- report ---------- */
.report { padding: 8px 0 clamp(48px, 8vh, 88px); }
.rgrid { display: grid; gap: 18px; }
.verdict { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-tile); background: var(--bg-soft); }
.vhost { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--ink-soft); }
.vhost b { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.vhost a { flex: none; font-size: 14px; color: var(--ink-soft); }
.vtop { display: flex; align-items: center; gap: 18px; margin-top: 18px; }
.big { flex: none; display: grid; place-items: center; width: 104px; height: 104px; border-radius: 26px; font-size: 64px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.big.word { font-size: 22px; letter-spacing: -.01em; text-align: center; padding: 8px; }
.vscore { font-size: 15px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.vlabel { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.vlabel.long { font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.12; }
.vline { margin-top: 16px; font-size: 17px; }
.vnote { margin-top: 10px; font-size: 14.5px; color: var(--ink-soft); }
.minis { list-style: none; margin-top: 20px; display: grid; gap: 2px; border-top: 1px solid #E3E3E0; padding-top: 12px; }
.minis li a { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 4px 6px; margin: 0 -6px; border-radius: 10px; text-decoration: none; }
.minis li a:hover { background: rgba(0,0,0,.035); }
.minis .nm { flex: 1; font-size: 15.5px; }
.minis .sc { font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.lt { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font-size: 16px; font-weight: 700; }
.vactions { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.vactions .pill { flex: 1 1 auto; min-height: 48px; font-size: 16px; padding: 10px 18px; }
.verdict .pill.ghost { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.verdict .pill.ghost:hover { background: #FCFCFB; }
.nw { white-space: nowrap; }

.g-A { color: var(--gA); background: var(--gA-bg); }
.g-B { color: var(--gB); background: var(--gB-bg); }
.g-C { color: var(--gC); background: var(--gC-bg); }
.g-D { color: var(--gD); background: var(--gD-bg); }
.g-F { color: var(--gF); background: var(--gF-bg); }
.g-N { color: var(--ink-soft); background: #EBEBE8; }

.block { padding: clamp(22px, 3vw, 32px); border-radius: var(--r-tile); border: 1px solid var(--line); }
.block > h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.block > .bsub { margin-top: 6px; color: var(--ink-soft); font-size: 15.5px; }
.fixes ol { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.fix { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding: 16px; border-radius: 16px; background: var(--bg-softer); border: 1px solid var(--line); }
.fix .ic { grid-row: span 3; }
.fix h3 { font-size: 17px; letter-spacing: -.01em; line-height: 1.3; }
.fix .d { font-size: 15.5px; }
.fix .y { font-size: 14.5px; color: var(--ink-soft); }
.allgood { margin-top: 14px; font-size: 16px; }

.ic { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; margin-top: 1px; }
.ic svg { width: 14px; height: 14px; }
.ic.pass { background: var(--pass-bg); color: var(--pass); }
.ic.warn { background: var(--warn-bg); color: var(--warn); }
.ic.fail { background: var(--fail-bg); color: var(--fail); }

.cats { display: grid; gap: 10px; margin-top: 18px; }
.cat { border-radius: 18px; background: var(--bg-softer); border: 1px solid var(--line); scroll-margin-top: 84px; }
.cat summary { list-style: none; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; min-height: 64px; cursor: pointer; border-radius: 18px; -webkit-tap-highlight-color: transparent; }
.cat summary::-webkit-details-marker { display: none; }
.cat .lt { width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
.cat .cn { display: block; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.cat .cc { display: block; font-size: 14px; color: var(--ink-soft); }
.cat .chev { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #EDEDEB; transition: transform .25s var(--ease); }
.cat .chev svg { width: 12px; height: 12px; }
.cat[open] .chev { transform: rotate(180deg); }
.cat .meter { display: block; height: 4px; margin-top: 8px; border-radius: 99px; background: #E6E6E3; overflow: hidden; }
.cat .meter i { display: block; height: 100%; border-radius: inherit; background: currentColor; }
.items { list-style: none; display: grid; gap: 2px; padding: 0 16px 12px; }
.items li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.items .ic { grid-row: span 3; }
.items .l { font-weight: 600; font-size: 15.5px; }
.items .d { font-size: 15px; overflow-wrap: anywhere; }
.items .y { font-size: 14px; color: var(--ink-soft); }
.cnote { padding: 0 16px 14px; font-size: 14.5px; color: var(--ink-soft); }

.state { margin-top: 0; }
.state .why { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; font-size: 15.5px; }
.state .why b { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 4px; }

@media (min-width: 980px) {
  .rgrid { grid-template-columns: 380px minmax(0, 1fr); gap: 28px; align-items: start; }
  .verdict { position: sticky; top: 84px; }
  .rmain { display: grid; gap: 18px; }
}
@media (max-width: 979px) { .rmain { display: grid; gap: 18px; } }

/* ---------- offer + lead form ---------- */
.offer { padding: 0 0 clamp(56px, 9vh, 100px); }
.offer-grid { display: grid; gap: 26px; padding: clamp(24px, 4vw, 52px); border-radius: 30px; background: #0B0B0D; color: var(--night-ink); }
.offer-txt h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); color: #fff; letter-spacing: -.03em; }
.offer-sub { margin-top: 10px; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; color: #fff; letter-spacing: -.02em; }
.offer-txt p:last-child { margin-top: 14px; color: var(--night-soft); max-width: 38ch; }
.lead { display: grid; gap: 14px; }
.lead .field { display: grid; gap: 6px; }
.lead label { font-size: 15px; font-weight: 600; color: #fff; }
.lead .opt { font-weight: 400; color: var(--night-soft); }
.lead input[type="text"], .lead input[type="tel"], .lead input[type="email"] {
  width: 100%; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid #34353B; background: #17181C; color: #fff;
  font: 500 17px/1.2 var(--font); outline: 0; transition: border-color .2s, box-shadow .2s; }
.lead input:focus { border-color: #fff; box-shadow: 0 0 0 4px rgba(255,255,255,.12); }
.lead input[aria-invalid="true"] { border-color: #F97066; }
.lead .row2 { display: grid; gap: 14px; }
.lead .hint { margin: -4px 0 0; color: var(--night-soft); }
.times { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.times legend { width: 100%; margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; color: #fff; }
.times label { position: relative; display: inline-flex; }
.times input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.times span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid #34353B; font-size: 15.5px; font-weight: 500; color: #D8D9DD; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.times input:checked + span { background: #fff; color: #0B0B0D; border-color: #fff; }
.times input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.lead .send { margin-top: 4px; width: 100%; }
.lead .fine { font-size: 13.5px; color: var(--night-soft); }
.lead .err { background: rgba(249,112,102,.14); color: #FDA29B; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sent { display: grid; gap: 10px; align-content: center; padding: 22px; border-radius: 20px; background: #17181C; }
.sent h3 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.sent p { color: var(--night-soft); }
@media (min-width: 640px) { .lead .row2 { grid-template-columns: 1fr 1fr; } .lead .send { width: auto; justify-self: start; padding-inline: 28px; } }
@media (min-width: 980px) { .offer-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; } }

/* ---------- explainer ---------- */
.explain { padding: clamp(56px, 10vh, 120px) 0 clamp(56px, 9vh, 100px); border-top: 1px solid var(--line); background: #fff; }
.explain h2 { font-size: clamp(2rem, 4.6vw, 3.6rem); max-width: 18ch; }
.explain h2 .tone { display: block; }
.explain .lede { margin-top: 18px; max-width: 48rem; color: var(--ink-soft); font-size: clamp(1.02rem, 1.4vw, 1.15rem); }
.xgrid { margin-top: clamp(26px, 4vh, 40px); display: grid; gap: 12px; }
.x { padding: 22px; border-radius: var(--r-card); background: var(--bg-soft); }
.x .w { font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.x h3 { margin-top: 6px; font-size: 1.35rem; }
.x p:last-child { margin-top: 8px; color: var(--ink-soft); font-size: 15.5px; }
.scale { margin-top: 18px; padding: 22px; border-radius: var(--r-card); border: 1px solid var(--line); }
.scale h3 { font-size: 1.35rem; }
.scale-list { list-style: none; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.scale-list li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.scale p { color: var(--ink-soft); font-size: 15.5px; max-width: 60rem; }
@media (min-width: 700px) { .xgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .xgrid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- footer ---------- */
footer { padding-block: 28px 44px; font-size: 13.5px; color: var(--ink-soft); border-top: 1px solid var(--line); }
footer .row { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: baseline; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* ---------- motion ---------- */
.rise { animation: rise .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.big.pop { animation: pop .6s cubic-bezier(.2,.9,.25,1.2) both .1s; }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .spin, .steps li.on::before { animation: none; }
  .pbar i { transition: none; }
  .rise, .big.pop { animation: none; }
  .cat .chev { transition: none; }
}

/* scores instead of letters (2026-10-20): a ring for the overall score, bars and numbers for each area */
.b-good { --c: #2E9E5B; } .b-ok { --c: #E09B0F; } .b-poor { --c: #E5484D; } .b-none { --c: #B4B4AE; }
.big.ring { position: relative; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #ECECEA 0); color: var(--ink); font-size: 34px; letter-spacing: -.04em; }
.big.ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.big.ring span { position: relative; }
.minis .mbar { flex: 0 0 34%; height: 6px; border-radius: 99px; background: #E6E6E3; overflow: hidden; }
.minis .mbar i { display: block; height: 100%; border-radius: inherit; background: var(--c); }
.cat .meter i { background: var(--c); }
.lt.num { background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 52%, #000); font-size: 14px; }
.cat .lt.num { font-size: 15px; }
.scale-list .lt.num { width: auto; min-width: 30px; padding: 0 8px; }
#r-title:focus { outline: none; }
.minis .sc { min-width: 3ch; text-align: right; }
