/* Pub? website — one stylesheet for every page (replaces the Tailwind build, src/output.css).
   Fonts are served from this site, not Google, so visitors' IP addresses aren't sent to Google.
   Bricolage Grotesque (headings, OFL) is a Latin subset of the app's own font. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 100 900; font-display: swap;
  src: url(/assets/fonts/inter-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-700-latin.woff2) format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-800-latin.woff2) format('woff2'); }

:root {
  --amber: #D4A017;
  --amber-dark: #8A6A0A;
  --charcoal: #1C1C1C;
  --cream: #FBF8F1;
  --cream-deep: #F3EBD6;
  --line: #E8DFC8;
  --text: #1C1C1C;
  --text-2: #424242;
  --text-3: #6B6B6B;
  --on-dark: #FFFFFF;
  --on-dark-2: #CFC8B8;
  --on-dark-3: #A8A090;
  --green: #2E7D4F;
  --display: 'Bricolage Grotesque', Inter, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--text); font-family: Inter, system-ui, -apple-system, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--amber-dark); }
a:hover { color: var(--text); }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }

.d { font-family: var(--display); }
/* Side margins grow with the screen: ~20px on a phone, 64px on a big screen */
.wrap { max-width: 1360px; margin: 0 auto; padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }
.wrap-narrow { max-width: 900px; margin: 0 auto; padding-left: clamp(20px, 5vw, 64px); padding-right: clamp(20px, 5vw, 64px); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--amber); color: var(--charcoal); padding: 10px 14px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, color .15s, border-color .15s; }
.btn-amber { background: var(--amber); color: var(--charcoal); }
.btn-amber:hover { background: #E3B230; color: var(--charcoal); }
.btn-dark { background: var(--charcoal); color: var(--on-dark); }
.btn-dark:hover { background: #333; color: var(--on-dark); }
.btn-ghost { color: var(--on-dark); border-color: #5A5448; }
.btn-ghost:hover { border-color: var(--amber); color: var(--on-dark); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges img { height: 54px; width: auto; display: block; }
.badges a { display: block; border-radius: 10px; }

/* Header + footer (same on every page) */
.site-nav { background: var(--charcoal); position: relative; z-index: 5; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { font-family: var(--display); font-size: 30px; font-weight: 800; color: var(--amber); text-decoration: none; letter-spacing: -0.01em; }
.brand:hover { color: var(--amber); }
.brand small { font-family: Inter, sans-serif; font-size: 15px; font-weight: 600; color: #E8E2D4; margin-left: 6px; letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links { position: relative; }
.nav-links a.plain { color: #E8E2D4; text-decoration: none; font-size: 15px; }
.nav-links a { white-space: nowrap; }
/* "Get the app" on a computer: QR code + store badges under the button (script.js) */
.get-panel { position: absolute; right: 0; top: calc(100% + 14px); width: 330px; background: var(--cream); color: var(--text); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; box-shadow: 0 24px 60px rgba(0,0,0,.45); z-index: 20; }
.get-panel .qr { width: 168px; height: 168px; background: #fff; border-radius: 12px; padding: 8px; box-sizing: content-box; }
.get-panel-title { margin: 8px 0 0; font-family: var(--display); font-size: 19px; font-weight: 800; }
.get-panel-sub { margin: 0 0 8px; font-size: 14px; color: var(--text-2); line-height: 1.45; }
.get-panel .badges { justify-content: center; gap: 8px; }
.get-panel .badges img { height: 40px; }
.nav-links a.plain:hover { color: var(--amber); }

.band { background: var(--amber); }
.band .wrap { padding-top: 52px; padding-bottom: 52px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.band h2 { font-family: var(--display); font-size: 32px; font-weight: 800; line-height: 1.1; }
.band p { margin: 6px 0 0; font-size: 17px; font-weight: 500; }

.site-footer { background: var(--charcoal); color: var(--on-dark-2); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.site-footer .tagline { font-size: 13px; color: var(--on-dark-3); margin: 6px 0 0; }
.site-footer .tagline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-footer .tagline a:hover { color: var(--amber); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.site-footer nav a { color: var(--on-dark-2); text-decoration: none; }
.site-footer nav a:hover { color: var(--amber); }

/* Section bits */
.eyebrow { font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); font-weight: 600; }
.lbl { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber-dark); }
.h2 { font-family: var(--display); font-size: 48px; line-height: 1.04; font-weight: 800; letter-spacing: -0.015em; }
.lede-dark { font-size: 20px; line-height: 1.5; color: var(--on-dark-2); margin: 0; }

.stats { background: var(--amber); }
/* Three equal thirds, each number centred in its own, with a thin line between them */
.stats .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding-top: 36px; padding-bottom: 36px; }
.stat { margin: 0; padding: 6px 24px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(28, 28, 28, 0.28); }
.stat b { display: block; font-family: var(--display); font-size: 44px; font-weight: 800; line-height: 1; }
.stat span { display: block; margin-top: 4px; font-size: 15px; font-weight: 500; }

/* Home hero: text left, the whole of London right, one screen */
.hero-map { position: relative; background: var(--charcoal); color: var(--on-dark); overflow: hidden; height: calc(100vh - 76px); height: calc(100svh - 76px); min-height: 640px; max-height: 860px; }
/* Text and map share the centred column, so they stay together at any width. The map is as big
   as the column allows, but never taller than the screen (2400 / 2240 = 1.071 wide per 1 tall). */
.hero-map .wrap { position: relative; height: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: center; }
.hero-map .map { justify-self: center; width: min(100%, calc((100vh - 140px) * 1.071)); width: min(100%, calc((100svh - 140px) * 1.071)); max-width: 860px; position: relative; display: block;
  /* feather the edges so the roads and parks outside London don't stop in a hard line */
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 72%, transparent 100%); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; max-width: 600px; }
.hero-copy h1 { font-family: var(--display); font-size: clamp(56px, 5.6vw, 80px); line-height: .97; font-weight: 800; letter-spacing: -0.025em; }
.hero-copy p { margin: 0; font-size: 21px; line-height: 1.5; color: var(--on-dark-2); max-width: 500px; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.hero-map .map img { display: block; width: 100%; height: auto; }
.hero-map .map canvas, .hero-map .map .map-full { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Feature rows */
/* Each row is only as wide as its text + phone, centred, so the words sit beside the screenshot */
.feature { display: grid; grid-template-columns: auto auto; justify-content: center; gap: clamp(48px, 8vw, 120px); align-items: center; padding-top: 60px; padding-bottom: 60px; }
.feature .copy { max-width: 480px; }
.stats + .feature { padding-top: 120px; }
.feature.last { padding-bottom: 120px; }
.feature .copy { display: flex; flex-direction: column; gap: 20px; }
.feature .num { font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--amber-dark); }
.feature h2 { font-family: var(--display); font-size: 52px; line-height: 1.02; font-weight: 800; letter-spacing: -0.015em; }
.feature p { margin: 0; font-size: 19px; line-height: 1.55; color: var(--text-2); max-width: 460px; }
.feature .badges img { height: 50px; }
.phone { display: flex; justify-content: center; }
.phone img { width: 270px; height: auto; aspect-ratio: 924 / 2000; object-fit: cover; border: 10px solid var(--charcoal); border-radius: 42px; background: var(--charcoal); display: block; box-sizing: content-box; }

/* Partners */
.p-hero { background: var(--charcoal); color: var(--on-dark); overflow: hidden; }
.p-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 100px; }
.p-hero .copy { display: flex; flex-direction: column; gap: 26px; }
.p-hero h1 { font-family: var(--display); font-size: 70px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.p-hero .actions { display: flex; flex-wrap: wrap; gap: 14px; }
.p-hero .phone img { border-color: #000; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.section { padding-top: 100px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.card.dark { background: var(--charcoal); color: var(--on-dark); border-color: var(--charcoal); }
.card .k { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--amber); }
.card h3 { font-family: var(--display); font-size: 28px; font-weight: 800; line-height: 1.05; }
.card .who { font-size: 15px; color: var(--text-3); font-weight: 500; margin: 0; }
.card.dark .who { color: var(--on-dark-3); }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }
.card.dark p { color: var(--on-dark-2); }
.card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.card li { display: flex; gap: 12px; font-size: 16px; line-height: 1.5; }
.card li::before { content: "✓"; color: var(--amber-dark); font-weight: 700; flex: none; }
.card.dark li::before { color: var(--amber); }
.card li.soon { color: var(--text-3); }
.card li.soon::before { content: "→"; color: var(--text-3); }
.card li.soon b { color: var(--amber-dark); }
.card .note { font-size: 13px; color: var(--text-3); line-height: 1.5; margin: 0; }
.pill { display: inline-block; font-family: Inter, sans-serif; font-size: 12px; font-weight: 600; background: var(--amber); color: var(--charcoal); padding: 5px 10px; border-radius: 999px; }
.pill-soft { background: var(--cream-deep); color: var(--amber-dark); }
.card .card-top { display: flex; justify-content: space-between; align-items: center; margin: 0; }
.step { display: flex; flex-direction: column; gap: 12px; border-top: 3px solid var(--charcoal); padding-top: 20px; }
.step .n { font-family: var(--display); font-size: 40px; font-weight: 800; color: var(--amber); line-height: 1; }
.step h3 { font-family: var(--display); font-size: 21px; font-weight: 700; }
.step p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.report { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.report .top { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid #EFE8D6; padding-bottom: 14px; }
.report .top b { font-family: var(--display); font-size: 18px; font-weight: 800; }
.report .top span { font-size: 13px; color: var(--text-3); }
.report .m b { display: block; font-family: var(--display); font-size: 34px; font-weight: 800; }
.report .m span { display: block; font-size: 14px; color: var(--text-2); }
.report .m small { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.report .m small.up { color: var(--green); font-weight: 600; }
.report .foot { grid-column: 1 / -1; font-size: 12px; color: var(--text-3); border-top: 1px solid #EFE8D6; padding-top: 14px; }
.rules { background: var(--charcoal); color: var(--on-dark); margin-top: 100px; }
.rules .wrap { padding-top: 90px; padding-bottom: 90px; }
.rules .lbl { color: var(--amber); }
.rules h3 { font-family: var(--display); font-size: 21px; font-weight: 700; }
.rules p { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--on-dark-2); }
.contact { padding-top: 110px; padding-bottom: 110px; }
.contact .grid2 { align-items: start; gap: 64px; }
.contact .copy { display: flex; flex-direction: column; gap: 20px; }
.contact .copy p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-2); }
.contact .mail { font-family: var(--display); font-size: 22px; font-weight: 700; }
.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid #CFC5AC; background: #fff; border-radius: 12px; padding: 14px 16px; font: inherit; font-size: 16px; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--amber); outline-offset: 1px; border-color: var(--amber); }
.form .hp { display: none; }
.form button[disabled] { opacity: .6; cursor: default; }
.notice { border-radius: 16px; padding: 16px 18px; font-size: 15px; line-height: 1.5; background: #E7F3EC; color: #1F5A38; border: 1px solid #BFDCCB; }
.notice[hidden] { display: none; }
.notice strong { display: block; font-size: 16px; }

/* Text pages (privacy, terms, delete account, the Pub? test) */
.title-band { background: var(--charcoal); color: var(--on-dark); border-top: 1px solid #2E2E2E; }
.title-band .wrap { padding-top: 56px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 22px; }
.title-band h1 { font-family: var(--display); font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; }
.title-band .meta { font-size: 16px; color: var(--on-dark-3); margin: 0; }
.title-band .meta a { color: var(--amber); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs a { text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 999px; color: #E8E2D4; border: 1px solid #45413A; }
.tabs a:hover { border-color: var(--amber); color: #fff; }
.tabs a[aria-current="page"] { background: var(--amber); color: var(--charcoal); border-color: var(--amber); }
.summary { background: var(--cream-deep); border-radius: 20px; padding: 28px 32px; margin-top: 48px; }
.summary h2 { font-family: var(--display); font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.summary ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px 28px; font-size: 15px; line-height: 1.55; color: #333; }
.doc { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; padding-top: 40px; padding-bottom: 100px; }
.toc { flex: 0 1 240px; min-width: 200px; position: sticky; top: 24px; }
.toc .lbl { padding-bottom: 8px; }
.toc a { display: block; color: var(--text-2); text-decoration: none; font-size: 14px; padding: 7px 0; border-bottom: 1px solid #ECE4D0; }
.toc a:hover { color: var(--amber-dark); }
.prose { flex: 999 1 560px; min-width: 0; max-width: 720px; }
/* A text page without a contents list (delete account): the text sits in the middle */
.doc-solo { justify-content: center; }
.prose h2 { font-family: var(--display); font-size: 28px; font-weight: 800; margin: 44px 0 12px; letter-spacing: -0.01em; scroll-margin-top: 24px; }
.prose > section:first-child h2, .prose > h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 17px; line-height: 1.7; color: #333; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 4px; }
.prose li::marker { color: var(--amber-dark); }
.prose strong { color: var(--text); }
.prose hr { display: none; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* The Pub? test */
.test-basics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.test-basics .card h3 { font-size: 22px; }
.rule { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }
.rule:last-of-type { border-bottom: 0; }
.rule .n { width: 48px; height: 48px; border-radius: 50%; background: var(--charcoal); color: var(--amber); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 22px; font-weight: 800; }
.rule h3 { font-family: var(--display); font-size: 22px; font-weight: 700; }
.rule p { margin: 4px 0 0; font-size: 16px; color: var(--text-2); line-height: 1.55; }
.verdicts { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin: 0; padding: 0; }
.verdicts div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid #EFE8D6; font-size: 16px; align-items: center; }
.verdicts div:last-child { border-bottom: 0; }
.verdicts dt { font-weight: 600; }
.verdicts dd { margin: 0; color: var(--text-3); }
.verdicts dd.in { color: var(--green); font-weight: 600; }
.callout { background: var(--amber); border-radius: 22px; padding: 36px; }
.callout h2 { font-family: var(--display); font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.callout p { margin: 0; font-size: 17px; line-height: 1.6; }

/* Message pages (email confirmed, 404, /get) */
.message { position: relative; background: var(--charcoal); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 64px 16px 80px; min-height: calc(100vh - 76px); min-height: calc(100svh - 76px); }
.message .bg { position: absolute; left: 50%; top: 50%; height: 120%; width: auto; max-width: none; transform: translate(-50%, -50%); opacity: .22; pointer-events: none; }
.message .box { position: relative; background: var(--cream); color: var(--text); border-radius: 28px; padding: 48px 44px; max-width: 520px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
.message .icon { width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 40px; font-weight: 800; }
.message .icon.ok { background: var(--green); }
.message .icon.warn { background: var(--amber); color: var(--charcoal); }
.message h1 { font-family: var(--display); font-size: 40px; line-height: 1.05; font-weight: 800; }
.message p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.message .more { width: 100%; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.message .more p { font-size: 14px; color: var(--text-3); }
.message .badges { justify-content: center; }
.message .badges img { height: 44px; }
[data-state][hidden] { display: none !important; }

/* Toast (tip thanks) */
.toast { position: fixed; left: 16px; right: 16px; top: 92px; z-index: 60; max-width: 520px; margin: 0 auto; background: var(--amber); color: var(--charcoal); border-radius: 16px; padding: 16px 44px 16px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); line-height: 1.45; font-size: 15px; }
.toast strong { display: block; font-size: 16px; margin-bottom: 2px; }
.toast button { position: absolute; top: 6px; right: 8px; width: 36px; height: 36px; font-size: 24px; line-height: 1; background: none; border: 0; color: var(--charcoal); cursor: pointer; }

/* Phones and tablets */
@media (max-width: 900px) {
  .nav-links { gap: 14px; }
  .nav-links a.plain { font-size: 14px; }
  .brand small { display: none; }
  .hero-map { height: auto; max-height: none; min-height: 0; }
  .hero-map .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 48px; height: auto; gap: 0; }
  .hero-map .map { width: 115%; max-width: 560px; margin: 0 -7.5%; }
  .hero-copy { gap: 20px; }
  .hero-copy h1 { font-size: 46px; }
  .hero-copy p { font-size: 18px; }
  .badges img { height: 48px; }
  .stats .wrap { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 12px; padding-bottom: 12px; }
  .stat { padding: 20px 0; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(28, 28, 28, 0.28); }
  .stat b { font-size: 38px; }
  .feature { grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 36px; padding-top: 48px; padding-bottom: 48px; }
  .feature .copy { max-width: none; }
  .stats + .feature { padding-top: 72px; }
  .feature.last { padding-bottom: 72px; }
  .feature .phone { order: 2; }
  .feature h2 { font-size: 40px; }
  .feature p { font-size: 17px; }
  .phone img { width: 230px; border-radius: 36px; }
  .band h2 { font-size: 26px; }
  .p-hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 64px; gap: 44px; }
  .p-hero h1 { font-size: 46px; }
  .h2 { font-size: 34px; }
  .section { padding-top: 72px; }
  .grid3, .grid2, .test-basics { grid-template-columns: minmax(0, 1fr); }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 26px; }
  .report { padding: 22px; }
  .rules { margin-top: 72px; }
  .rules .wrap { padding-top: 64px; padding-bottom: 64px; }
  .contact { padding-top: 72px; padding-bottom: 72px; }
  .form { padding: 22px; }
  .title-band .wrap { padding-top: 40px; padding-bottom: 40px; }
  .title-band h1 { font-size: 42px; }
  .summary { padding: 22px; margin-top: 32px; }
  .toc { position: static; flex-basis: 100%; }
  .doc { gap: 32px; padding-bottom: 72px; }
  .message .box { padding: 36px 24px; }
  .message h1 { font-size: 32px; }
  .verdicts div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
/* Very narrow phones (320–360 px): keep the header on one line */
@media (max-width: 360px) {
  .brand { font-size: 24px; }
  .nav-links { gap: 10px; }
  .nav-links .btn-sm { padding: 0 14px; font-size: 14px; }
}
@media (max-width: 520px) {
  .grid4 { grid-template-columns: minmax(0, 1fr); }
  .nav-links .hide-sm { display: none; }
}
