@font-face { font-family: "Bowlby One"; src: url("/fonts/bowlby-one.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/dm-mono.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  color-scheme: light;
  --yellow: #ffd400;
  --ink: #0d0d0d;
  --paper: #fff9e0;
  --pink: #ff5c93;
  --blue: #2450f0;
  --green: #17d97a;
  --lime: #b9f23f;
  --orange: #ff9326;
  --red: #ff4a3d;
  --grey: #d9d8cc;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --display: "Bowlby One", Impact, "Arial Black", sans-serif;
  --body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, Consolas, monospace;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--yellow); color: var(--ink); font: 400 1.0625rem/1.5 var(--body); overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, .big, .num, .foot-mark { font-family: var(--display); font-weight: 400; line-height: 0.98; text-transform: uppercase; }
h2 { font-size: clamp(2.2rem, 6.4vw, 5.2rem); letter-spacing: -0.01em; text-wrap: balance; }
section { padding: clamp(56px, 8vw, 110px) var(--gutter); }
section > * { max-width: 1320px; margin-inline: auto; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }

/* Top bar */
.top { display: flex; align-items: center; gap: 12px 24px; padding: 14px var(--gutter); border-bottom: var(--line); background: var(--yellow); }
.logo { display: inline-flex; align-items: center; gap: 8px; font: 400 1.35rem/1 var(--display); text-decoration: none; margin-right: auto; min-height: 44px; }
.logo svg { width: 30px; height: 30px; flex: none; }
.top nav { display: flex; gap: 22px; font-weight: 650; }
.top nav a { text-decoration: none; padding-block: 10px; }
.top nav a:hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 22px; border: var(--line); border-radius: 10px; box-shadow: 4px 4px 0 var(--ink); font-weight: 750; font-size: 1.0625rem; text-decoration: none; text-align: center; cursor: pointer; transition: transform 120ms ease-out, box-shadow 120ms ease-out; }
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-ink { background: var(--ink); color: var(--yellow); box-shadow: 4px 4px 0 var(--pink); }
.btn-ink:hover { box-shadow: 2px 2px 0 var(--pink); }
.btn-ink:active { box-shadow: 0 0 0 var(--pink); }
.btn-paper { background: var(--paper); }
.btn-yellow { background: var(--yellow); }
.btn-small { min-height: 44px; padding: 6px 16px; font-size: 1rem; }

/* Hero */
.hero { padding-top: clamp(28px, 4vw, 56px); background-image: radial-gradient(rgb(13 13 13 / 0.13) 1.6px, transparent 1.7px); background-size: 16px 16px; }
h1 { font-size: clamp(2.45rem, 10.4vw, 9.6rem); letter-spacing: -0.015em; }
.line-two { display: block; }
h1 mark { display: inline-block; background: var(--pink); color: var(--ink); padding: 0.05em 0.14em 0.09em; margin-top: 0.08em; border: clamp(3px, 0.5vw, 6px) solid var(--ink); border-radius: 0.1em; box-shadow: clamp(4px, 0.8vw, 10px) clamp(4px, 0.8vw, 10px) 0 var(--ink); transform: rotate(-1.6deg); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); margin-top: clamp(32px, 4.5vw, 64px); align-items: start; }
.lede { font-size: clamp(1.25rem, 2.1vw, 1.7rem); line-height: 1.28; font-weight: 600; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.note { margin-top: 18px; font-size: 1rem; max-width: 42ch; }
.stickers { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 14px; margin-top: 38px; }
.sticker { padding: 14px 20px; font: 400 clamp(1.15rem, 1.9vw, 1.6rem)/1.1 var(--display); border: var(--line); border-radius: 10px; box-shadow: 5px 5px 0 var(--ink); }
.sticker-lime { background: var(--lime); transform: rotate(-2.6deg); }
.sticker-blue { background: var(--blue); color: #fff; transform: rotate(1.8deg); }
.sticker-orange { background: var(--orange); transform: rotate(-1deg); }

/* Demo */
.frame { border: var(--line); border-radius: 14px; box-shadow: 10px 10px 0 var(--ink); overflow: hidden; background: #111317; }
.frame-bar { display: flex; align-items: center; gap: 12px; padding: 9px 12px; background: var(--paper); border-bottom: var(--line); min-width: 0; }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; background: var(--pink); }
.dots i:nth-child(2) { background: var(--yellow); }
.dots i:nth-child(3) { background: var(--green); }
.url { font: 500 0.85rem/1.2 var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart { position: relative; height: clamp(440px, 40vw, 500px); overflow: hidden; }
.chart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.chart-title { position: absolute; top: 12px; left: 14px; z-index: 1; color: #f2f3f5; font-weight: 750; }
.chart-title span { color: #a5abb5; font-weight: 500; margin-left: 6px; }

/* The badge, styled as extension/content.js styles it */
.badge { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: max-content; max-width: min(340px, calc(100% - 24px)); background: #14161a; color: #f2f3f5; border: 1px solid #343842; border-radius: 10px; box-shadow: 0 6px 24px rgb(0 0 0 / 0.45); font: 13px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; }
.badge .bar { display: flex; align-items: center; gap: 2px; padding: 3px; }
.badge button { font: inherit; color: inherit; background: none; border: 0; border-radius: 7px; cursor: pointer; }
.badge button:hover { background: #262a32; }
.badge :focus-visible { outline: 2px solid #8ab4ff; outline-offset: 1px; }
.badge .toggle { display: flex; align-items: center; gap: 7px; min-height: 28px; padding: 3px 8px; font-weight: 650; }
.badge .toggle:disabled { cursor: default; background: none; }
.badge .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tone); flex: none; }
.badge .score { color: #a5abb5; font-weight: 500; font-variant-numeric: tabular-nums; }
.badge a { color: #8ab4ff; text-decoration: none; border-radius: 4px; }
.badge a:hover { text-decoration: underline; }
.badge .source { padding: 3px 6px; font-size: 12px; white-space: nowrap; }
.badge .panel { padding: 8px 11px 10px; border-top: 1px solid #343842; }
.badge .meta, .badge .fine-print { color: #a5abb5; font-size: 12px; }
.badge .stamps { display: grid; grid-template-columns: auto auto 1fr; gap: 3px 10px; margin: 8px 0; align-items: center; }
.badge .label { color: #a5abb5; }
.badge .word { font-weight: 650; color: var(--tone); }
.badge p { margin: 8px 0 0; }
.tone-good { --tone: #4ade80; }
.tone-mid { --tone: #fbbf24; }
.tone-warn { --tone: #fb923c; }
.tone-bad { --tone: #f87171; }
.tone-none { --tone: #a5abb5; }

figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 26px; }
.try { font-weight: 750; }
.switch { display: flex; flex-wrap: wrap; gap: 8px; }
.switch button { min-height: 44px; padding: 6px 12px; font: 750 0.9rem/1 var(--body); color: var(--ink); background: var(--paper); border: var(--line); border-radius: 8px; cursor: pointer; transition: transform 120ms ease-out, box-shadow 120ms ease-out; }
.switch button:hover { transform: translateY(-2px); box-shadow: 0 2px 0 var(--ink); }
.switch button[aria-pressed="true"] { background: var(--ink); color: var(--yellow); }
figcaption .fine { flex-basis: 100%; font-size: 0.9375rem; }

/* Ticker */
.ticker { background: var(--ink); border-block: var(--line); overflow: hidden; padding-block: 12px; }
.ticker-track { display: flex; width: max-content; gap: 34px; font: 400 clamp(1.4rem, 3vw, 2.2rem)/1 var(--display); white-space: nowrap; animation: slide 46s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.t-green { color: var(--green); } .t-lime { color: var(--lime); } .t-paper { color: var(--paper); } .t-grey { color: var(--grey); }
.t-orange { color: var(--orange); } .t-pink { color: var(--pink); } .t-red { color: var(--red); }

/* How */
.how { background: var(--paper); border-bottom: var(--line); }
.steps { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 22px; margin-top: clamp(32px, 4vw, 56px); }
.step { position: relative; padding: clamp(22px, 3vw, 36px); border: var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.step:nth-child(1) { grid-column: 1 / span 7; }
.step:nth-child(2) { grid-column: 8 / span 5; transform: rotate(0.8deg); }
.step:nth-child(3) { grid-column: 3 / span 10; transform: rotate(-0.5deg); }
.step-blue { background: var(--blue); color: #fff; }
.step-green { background: var(--green); }
.step-pink { background: var(--pink); }
.num { display: block; font-size: clamp(3.6rem, 8vw, 6.4rem); }
.step h3 { margin-top: 10px; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; font-weight: 800; letter-spacing: -0.01em; }
.step p { margin-top: 10px; font-size: 1.125rem; max-width: 52ch; text-wrap: pretty; }
.sites { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.sites li { padding: 7px 12px; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font: 500 0.9375rem/1.2 var(--mono); }

/* Words */
.words-head { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 20px 48px; align-items: end; }
.words-head p { font-size: 1.1875rem; font-weight: 500; text-wrap: pretty; }
.words-q { margin-top: clamp(36px, 5vw, 64px); margin-bottom: 16px; font: 500 1.0625rem/1.2 var(--mono); }
.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.wall li { display: flex; flex-direction: column; gap: 8px; padding: 18px; min-height: 158px; border: var(--line); border-radius: 12px; }
.wall b { font: 400 clamp(1.25rem, 2vw, 1.75rem)/1.02 var(--display); }
.wall span { font-size: 1rem; line-height: 1.35; font-weight: 500; }
.wall .w-big { grid-column: span 2; }
.wall .w-big b { font-size: clamp(2.2rem, 5vw, 4.2rem); }
.wall .w-wide { grid-column: span 2; }
.wall .w-full { grid-column: 1 / -1; }
.wall-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.w-green { background: var(--green); } .w-lime { background: var(--lime); } .w-paper { background: var(--paper); } .w-grey { background: var(--grey); }
.w-orange { background: var(--orange); } .w-pink { background: var(--pink); } .w-red { background: var(--red); }
.warning { margin-top: 28px; padding: 18px 20px; background: var(--ink); color: var(--paper); border-radius: 12px; font-size: 1.0625rem; }
.warning strong { color: var(--yellow); }

/* Promise */
.promise { background: var(--ink); color: var(--paper); border-block: var(--line); }
.promise h2 { color: var(--yellow); }
.promise-lede { margin-top: 16px; font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 500; }
.nope { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin-top: 36px; }
.nope li { padding: 18px 0 18px 42px; border-top: 2px solid #4a4a44; position: relative; font-size: 1.0625rem; }
.nope li::before { content: ""; position: absolute; left: 0; top: 19px; width: 26px; height: 26px; background: var(--pink); clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.nope b { display: block; color: #fff; font-size: 1.1875rem; font-weight: 750; }
.plain { margin-top: 36px; padding: clamp(20px, 3vw, 32px); background: var(--paper); color: var(--ink); border-radius: 14px; border-left: 12px solid var(--blue); }
.plain h3 { font-size: 1.375rem; font-weight: 800; }
.plain p { margin-top: 10px; max-width: 78ch; text-wrap: pretty; }

/* Install */
.install { background: var(--blue); color: #fff; border-bottom: var(--line); }
.install-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); margin-top: clamp(28px, 4vw, 48px); align-items: start; }
.install-steps { counter-reset: s; font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 500; }
.install-steps li { counter-increment: s; position: relative; padding: 14px 0 14px 58px; border-top: 2px solid rgb(255 255 255 / 0.4); }
.install-steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); border: 2px solid var(--ink); border-radius: 50%; font: 400 1.125rem/1 var(--display); }
.install-steps code { padding: 2px 7px; background: var(--ink); color: var(--yellow); border-radius: 5px; font: 500 0.92em var(--mono); overflow-wrap: anywhere; }
.install-card { padding: 24px; background: var(--pink); color: var(--ink); border: var(--line); border-radius: 16px; box-shadow: var(--shadow); transform: rotate(1.4deg); }
.big { font-size: clamp(3.4rem, 6vw, 5rem); }
.install-card p + p { margin-top: 6px; font-weight: 600; }
.install-card .btn { width: 100%; margin-top: 18px; }

/* FAQ */
.faq details { border-top: var(--line); }
.faq details:last-child { border-bottom: var(--line); }
.faq h2 { margin-bottom: clamp(24px, 3vw, 40px); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 64px; padding-block: 14px; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 750; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; background: var(--ink); color: var(--yellow); border-radius: 50%; font: 400 1.4rem/1 var(--display); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding-bottom: 22px; max-width: 72ch; font-size: 1.125rem; text-wrap: pretty; }

/* Footer */
.foot { padding: clamp(32px, 5vw, 64px) var(--gutter) 32px; background: var(--ink); color: var(--paper); font-size: 0.9375rem; overflow: hidden; }
.foot > * { max-width: 1320px; margin-inline: auto; }
.foot-mark { color: var(--yellow); font-size: clamp(3rem, 15vw, 14.6rem); line-height: 0.9; margin-bottom: 24px; white-space: nowrap; }
.foot p + p { margin-top: 8px; }

/* Plain documents, such as the privacy policy */
.doc-body { max-width: 760px; margin-inline: auto; padding: clamp(32px, 6vw, 72px) var(--gutter); }
.doc-body h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); }
.doc-date { margin-top: 14px; font: 500 0.9375rem/1.3 var(--mono); }
.doc-lede { margin-top: 24px; font-size: clamp(1.2rem, 2.4vw, 1.45rem); line-height: 1.3; font-weight: 650; text-wrap: pretty; }
.doc-body h2 { margin-top: 38px; font: 800 1.45rem/1.2 var(--body); letter-spacing: -0.01em; text-transform: none; }
.doc-body p, .doc-body ul { margin-top: 10px; }
.doc-body li { margin-top: 12px; padding-left: 16px; border-left: 4px solid var(--ink); }
.foot a { color: inherit; }

@media (max-width: 960px) {
  .top nav { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .stickers { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(n) { grid-column: auto; }
  .words-head { grid-template-columns: minmax(0, 1fr); }
  .wall, .wall-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nope { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .install-grid { grid-template-columns: minmax(0, 1fr); }
  .install-card { transform: none; }
}

@media (max-width: 560px) {
  .cta-row .btn { width: 100%; }
  .wall li { min-height: 0; padding: 14px; }
  .nope { grid-template-columns: minmax(0, 1fr); }
  .frame { box-shadow: 6px 6px 0 var(--ink); }
  .step:nth-child(n) { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .btn, .switch button { transition: none; }
}
