@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/familjen-grotesk.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --spruce: #0e3b3a;
  --spruce-2: #15504d;
  --spruce-3: #1f6660;
  --foam: #d9efe6;
  --sage: #e6efe9;
  --paper: #f3f7f3;
  --card: #ffffff;
  --ink: #10211f;
  --soft: #4c625d;
  --line: #cbdad2;
  --tape: #ff6f3f;
  --tape-dark: #d94e20;
  --tape-pale: #ffe8df;
  --good: #1e7a57;
  --good-pale: #dcf2e7;
  --amber: #9a6500;
  --amber-pale: #fdf0d2;
  --bad: #b3321a;
  --bad-pale: #fde6df;
  --display: "Familjen Grotesk", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--body); }
a { color: var(--spruce-3); text-underline-offset: 3px; }
a:hover { color: var(--tape-dark); }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* ---------- header ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 32px; padding: 26px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 22px/1 var(--display); color: #fff; text-decoration: none; }
.brand svg { fill: none; stroke: var(--tape); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.brand:hover { color: #fff; }
.bar nav { display: flex; gap: 28px; flex-wrap: wrap; }
.bar nav a { color: var(--foam); text-decoration: none; font-weight: 500; }
.bar nav a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { background: var(--spruce) url("/contours.svg") center top / cover no-repeat; color: #fff; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: center; padding: 56px 0 60px; }
.hero h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.025em; font-weight: 700; }
.hero .lead { font-size: 22px; line-height: 1.45; color: var(--foam); margin-top: 24px; }
.hero.compact .hero-grid { padding: 30px 0 72px; }
.hero.compact h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; }
.hero.slim h1 { padding: 16px 0 44px; }
.hero.full { min-height: 100vh; }
.notice { padding: 12vh 0; }
.notice .lead { margin-bottom: 28px; }
.notice a { color: #fff; }

.tool { background: var(--card); color: var(--ink); border-radius: 18px; padding: 30px; box-shadow: 0 30px 60px -28px rgba(0, 20, 18, 0.65); }
.tool label { display: block; font: 600 17px var(--display); margin-bottom: 10px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
input[type="text"], input[type="email"] { flex: 1 1 220px; min-width: 0; font: 500 18px var(--body); padding: 14px 16px; border: 2px solid var(--line); border-radius: 11px; background: var(--paper); color: var(--ink); }
input:focus { outline: none; border-color: var(--spruce-3); background: #fff; }
button, .button { display: inline-block; font: 700 17px var(--display); padding: 15px 24px; border: 0; border-radius: 11px; background: var(--tape); color: #2a0e03; cursor: pointer; text-decoration: none; text-align: center; transition: background .15s, transform .15s; }
button:hover, .button:hover { background: #ff8a60; color: #2a0e03; transform: translateY(-1px); }
button:disabled { opacity: .65; cursor: progress; transform: none; }
.button.ghost { background: transparent; color: var(--spruce); box-shadow: inset 0 0 0 2px var(--spruce); }
.button.ghost:hover { background: var(--spruce); color: #fff; }
.button.quiet { background: var(--sage); color: var(--soft); cursor: default; }
.button.quiet:hover { background: var(--sage); color: var(--soft); transform: none; }
.hint { color: var(--soft); font-size: 16px; margin-top: 12px; }
.error { color: var(--bad); margin-top: 12px; font-weight: 500; }
.done { color: var(--good); font-weight: 600; margin-top: 12px; }
.notice .done { color: #8ff0c6; }
.notice .error { color: #ffc4b3; }

.tabs { display: inline-flex; background: var(--sage); border-radius: 12px; padding: 4px; margin-bottom: 22px; }
.tab { background: transparent; color: var(--soft); padding: 8px 22px; font-size: 16px; border-radius: 9px; }
.tab:hover { background: transparent; color: var(--ink); transform: none; }
.tab[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 30, 25, .22); }

/* ---------- the tripline ---------- */
.tripline { margin: 0; position: relative; padding-bottom: 28px; }
.tripline svg { display: block; width: 100%; height: 90px; overflow: visible; }
.taut, .slack { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.taut { stroke: #7fc7b1; stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.5s cubic-bezier(.3, 0, .3, 1) .2s forwards; }
.slack { stroke: var(--tape); stroke-dasharray: 560; stroke-dashoffset: 560; animation: draw .7s ease-out 1.7s forwards; }
.ticks circle { fill: var(--foam); }
.trip-dot { fill: var(--tape); opacity: 0; animation: appear .2s linear 1.65s forwards; }
.trip-ring { fill: none; stroke: var(--tape); stroke-width: 2; opacity: 0; transform-origin: 980px 45px; animation: ping 1.2s ease-out 1.7s 1; }
.tripline figcaption { text-align: center; color: var(--foam); font-size: 17px; opacity: 0; animation: appear .5s ease 2s forwards; }
.tripline figcaption strong { color: #fff; }
.tripline figcaption span { font-size: 14px; margin-left: 8px; padding: 2px 9px; border: 1px solid rgba(217, 239, 230, .4); border-radius: 99px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes ping { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.3); } }

/* ---------- results ---------- */
.result-band { background: var(--sage); padding: 44px 0 52px; scroll-margin-top: 0; }
.verdict { border-radius: 16px; padding: 26px 30px; margin-bottom: 26px; }
.verdict.ok { background: var(--good); color: #fff; }
.verdict.warning { background: #f5c451; color: #2e2000; }
.verdict.problem { background: var(--bad); color: #fff; }
.verdict-word { display: block; font: 700 36px/1.1 var(--display); letter-spacing: -.015em; }
.verdict-target { font-family: var(--mono); font-size: 15px; margin-top: 8px; opacity: .92; overflow-wrap: anywhere; }
.verdict-line { margin-top: 2px; }
.report { display: grid; grid-template-columns: 1.7fr 1fr; gap: 24px; align-items: start; }
.report.single { grid-template-columns: 1fr; }
.report.single .report-main { display: none; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.findings li { background: var(--card); border-radius: 14px; padding: 22px 24px; overflow-wrap: anywhere; }
.findings h3 { font-size: 21px; line-height: 1.25; margin: 10px 0 6px; }
.findings p { color: var(--soft); }
.findings .fix { color: var(--ink); margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--sage); }
.tag { display: inline-block; font: 600 14px/1 var(--body); padding: 6px 10px; border-radius: 7px; }
.tag.problem, .tag.bad { background: var(--bad-pale); color: var(--bad); }
.tag.warning { background: var(--amber-pale); color: var(--amber); }
.tag.info { background: var(--sage); color: var(--soft); }
.passed { background: var(--spruce); color: #fff; border-radius: 14px; padding: 22px 24px; }
.passed:empty { display: none; }
.passed h3 { font-size: 19px; margin-bottom: 12px; }
.passed ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.passed li { padding-left: 28px; position: relative; font-weight: 500; line-height: 1.4; }
.passed li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 13px; height: 7px; border-left: 2.5px solid #7ae0b4; border-bottom: 2.5px solid #7ae0b4; transform: rotate(-45deg); }
.passed code { display: block; font: 400 13px/1.45 var(--mono); color: var(--foam); margin-top: 4px; overflow-wrap: anywhere; }
.watch { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; background: var(--tape-pale); border-radius: 14px; padding: 24px 28px; margin-top: 24px; }
.watch h3 { font-size: 22px; margin-bottom: 4px; }
.watch p { color: #5b3d31; }
.watch form { display: flex; gap: 10px; flex-wrap: wrap; }
.watch input { background: #fff; }
.watch .done { color: var(--good); }
.watch .error { color: var(--bad); }

/* ---------- sections ---------- */
.section { padding-top: 88px; padding-bottom: 88px; }
.big { font-size: clamp(32px, 3.6vw, 48px); line-height: 1.08; letter-spacing: -.02em; margin-bottom: 36px; }
.big.gap { margin-top: 84px; }
.mosaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.piece { grid-column: span 2; background: var(--card); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; }
.piece.wide { grid-column: span 3; }
.piece h3 { font-size: 23px; line-height: 1.2; margin: 22px 0 6px; }
.piece p { color: var(--soft); }
.snippet { background: var(--spruce); color: var(--foam); border-radius: 12px; padding: 16px 18px; min-height: 104px; }
.snippet > span { display: block; font: 500 14px var(--body); color: #8fc4b3; margin-bottom: 8px; }
.snippet code { font: 500 16px/1.6 var(--mono); overflow-wrap: anywhere; }
mark { background: var(--tape); color: #2a0e03; padding: 1px 6px; border-radius: 4px; }
.meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; background: var(--spruce); color: #fff; border-radius: 12px; padding: 16px 18px; min-height: 104px; }
.meter b { font: 700 36px/1 var(--display); }
.meter b.fallen { color: var(--tape); }
.meter i { height: 3px; background: linear-gradient(90deg, #7fc7b1, var(--tape)); border-radius: 3px; }
.meter span { grid-column: 1 / -1; font-size: 14px; color: #8fc4b3; }
.dots { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.dots i { width: 18px; height: 18px; border-radius: 50%; background: #7fc7b1; }
.dots i.over { background: var(--tape); }
.dots em { font: 700 20px var(--display); color: var(--tape); margin-left: 8px; font-style: normal; }

.quiet-band { background: var(--sage); }
.quiet-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.lead-dark { font-size: 21px; line-height: 1.5; color: var(--soft); }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.points li { padding-left: 24px; position: relative; }
.points li::before { content: ""; position: absolute; left: 0; top: 13px; width: 13px; height: 3px; border-radius: 3px; background: var(--tape); }
.points b { font-weight: 700; }
.mail { margin: 0; background: var(--card); border-radius: 18px; padding: 26px 28px 20px; box-shadow: 0 30px 50px -30px rgba(10, 50, 45, .5); transform: rotate(-1deg); }
.mail-top { display: flex; justify-content: space-between; gap: 16px; color: var(--soft); font-size: 15px; }
.mail-from b { color: var(--ink); margin-right: 6px; }
.mail-subject { font: 700 22px/1.25 var(--display); margin: 14px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--sage); }
.mail-body { display: grid; gap: 8px; }
.mail-note { color: var(--soft); font-size: 15px; margin-top: 8px; }
.mail figcaption { color: var(--soft); font-size: 14px; margin-top: 16px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--card); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; gap: 10px; }
.plan h3 { font-size: 22px; }
.price { font: 700 52px/1 var(--display); letter-spacing: -.025em; margin: 4px 0 6px; }
.price small { font: 500 17px var(--body); letter-spacing: 0; color: var(--soft); }
.plan > p:not(.price) { color: var(--soft); flex: 1; margin-bottom: 14px; }
.plan.featured { background: var(--spruce); color: #fff; }
.plan.featured .price small, .plan.featured > p:not(.price) { color: var(--foam); }
.plan.featured .button.quiet { background: var(--spruce-2); color: var(--foam); }

.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 34px 56px; }
.faq h3 { font-size: 22px; line-height: 1.25; margin-bottom: 8px; }
.faq p { color: var(--soft); }
.prose h2 { font-size: 28px; margin: 34px 0 8px; }
.prose p { color: var(--soft); }

.foot { background: var(--spruce); color: var(--foam); padding: 34px 0; font-size: 16px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; justify-content: space-between; }
.brand.small { font-size: 19px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot a { color: var(--foam); }
.foot a:hover { color: #fff; }

@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .hero-grid, .quiet-grid, .report, .watch { grid-template-columns: 1fr; }
  .hero-grid { gap: 36px; padding-top: 28px; }
  .mosaic { grid-template-columns: 1fr; }
  .piece, .piece.wide { grid-column: auto; }
  .plans, .faq { grid-template-columns: 1fr; }
  .section, .quiet-grid { padding-top: 60px; padding-bottom: 60px; }
  .mail { transform: none; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  body { font-size: 17px; }
  .tool { padding: 22px 18px; }
  .field button, .watch form button { width: 100%; }
  .bar nav { gap: 18px; font-size: 16px; }
  .tripline figcaption { padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .taut, .slack { animation: none; stroke-dashoffset: 0; }
  .trip-dot, .tripline figcaption { animation: none; opacity: 1; }
  .trip-ring { animation: none; }
  button, .button { transition: none; }
}
