
/* World: a wrist stack of plain club wristbands in quiet bone stock, charcoal band-print ink and
   clean terracotta rubber stamps; the band's adhesive tab is the primary button. Smooth and flat, no
   texture. One light world with no dark variant: the user rejected every near-black or navy backdrop. */
:root {
  color-scheme: light dark;
  /* Band stock, lightest to deepest */
  --stock-paper: #f7f4ee; --stock-linen: #eee8dd; --stock-sand: #e3d9c8; --stock-stone: #d6cbb8;
  /* Ink: charcoal print, one terracotta stamp ink */
  --ink: #23201b; --stamp: #c93838;   /* light red (2026-10-03 trial; was terracotta #9b3f26) */
  --logo-red: #fb4645;                 /* the logo's own red, the same in light and dark mode */
  /* Club straps on the example tags */
  --strap-timepiece: #e3c5ba; --strap-cavern: #e6d6a8;
  /* Roles every page uses */
  --ground: var(--stock-paper); --surface: #fffdf9; --surface-2: #ebe5da;
  --muted: #5a5348; --quiet: #746c60; --line: #d5ccbd; --field-line: #7d7466;
  --accent: var(--ink); --accent-ink: #fffdf9; --accent-soft: #f8dede;
  --link: var(--ink); --focus: var(--ink); --select: #f2c7c7;
  --skel: #e9e3d8; --skel-hi: #f6f2eb;
  --success: #1d6b3a; --success-bg: #e2f4e7; --warning: #8a5300; --warning-bg: #fdf0d9;
  --danger: #b42318; --danger-bg: #fde9e7; --info: #1f5fad; --info-bg: #e6eef9;
  --ph-bg: #fff4c2; --ph-line: #9a7a00; --ph-ink: #4a3b00;
  /* text on coloured fills, and small parts that change with the theme */
  --strap-ink: #23201b; --on-stamp: #fffdf9; --on-danger: #ffffff; --tab-hover: #000000;
  --rule: rgb(35 32 27 / 0.45); --rule-soft: rgb(35 32 27 / 0.35); --hole: rgb(35 32 27 / 0.4); --tint: rgb(0 0 0 / 0.06);
  --tag-edge: transparent;
  --font-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Anton", "Arial Narrow", sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
  --radius: 6px;
  --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5v15M4.5 12h15' stroke='%2323201b' stroke-width='2.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
  --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23b42318'/%3E%3Cpath d='M9 4.6v5.4' stroke='white' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='13.2' r='1.3' fill='white'/%3E%3C/svg%3E");
  --slits-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='26'%3E%3Cpath d='M4 5l3 16M11 5l3 16M18 5l3 16' stroke='white' stroke-opacity='.6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --slits-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='26'%3E%3Cpath d='M4 5l3 16M11 5l3 16M18 5l3 16' stroke='black' stroke-opacity='.45' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  --tab-slits: var(--slits-light); --strip-slits: var(--slits-dark); --stamp-slits: var(--slits-light);
}
/* Dark mode, for devices set to dark: a traditional true-black dark mode (the owner's choice, 2026-10-03,
   after a warm brown version looked green on their screen). Neutral greys with no tint, white text, dark grey
   cards, and the same red as light mode for stamps (owner's choice; small stamped labels are 3.3:1 on the
   dark cards, under the 4.5:1 guideline for small text). Body text 12.8:1 or more, secondary text 5.9:1. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --stock-paper: #000000; --stock-linen: #0d0d0d; --stock-sand: #161616; --stock-stone: #1f1f1f;
    --ink: #f5f5f7; --stamp: #c93838;   /* the same red as light mode (user, 2026-10-03; was #ff8a8a, before that #ff9f7a) */
    --strap-timepiece: #e3c5ba; --strap-cavern: #e6d6a8; --strap-ink: #1c1c1e;
    --surface: #1c1c1e; --surface-2: #2c2c2e;
    --muted: #a8a8ad; --quiet: #7c7c81; --line: #38383a; --field-line: #8e8e93;
    --accent-ink: #000000; --accent-soft: #3a2224; --select: #5c2b2e;
    --skel: #2c2c2e; --skel-hi: #3a3a3c;
    --success: #30d158; --success-bg: #0f2e19; --warning: #ffd60a; --warning-bg: #33290a;
    --danger: #ff6961; --danger-bg: #3b1412; --info: #64d2ff; --info-bg: #0b2a3a;
    --ph-bg: #3a3000; --ph-line: #ffd60a; --ph-ink: #ffe680;
    --on-stamp: #fffdf9; --on-danger: #000000; --tab-hover: #ffffff;
    --rule: rgb(245 245 247 / 0.35); --rule-soft: rgb(245 245 247 / 0.25); --hole: rgb(255 255 255 / 0.12); --tint: rgb(255 255 255 / 0.08);
    --tag-edge: rgb(245 245 247 / 0.18);
    --icon-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4.5v15M4.5 12h15' stroke='%23f5f5f7' stroke-width='2.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E");
    --icon-alert: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23ff6961'/%3E%3Cpath d='M9 4.6v5.4' stroke='%23000000' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='9' cy='13.2' r='1.3' fill='%23000000'/%3E%3C/svg%3E");
    --tab-slits: var(--slits-dark); --strip-slits: var(--slits-light); --stamp-slits: var(--slits-light);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* the canvas below a short page matches the footer band, so it never ends in a strip of another colour */
html { scrollbar-color: var(--ink) var(--surface-2); background: var(--stock-stone); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 17px/1.6 var(--font-body);
  caret-color: var(--stamp);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
::selection { background: var(--select); color: var(--ink); }
a { color: var(--link); text-decoration-thickness: 2px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { line-height: 1.1; text-wrap: balance; margin: 0; }
h1:focus, h2:focus { outline: none; }
h1:focus-visible, h2:focus-visible { outline: 3px solid var(--focus); }
p { margin: 0; }
.mono { font-family: var(--font-mono); font-weight: 700; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 640px; }

.skip-link { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--radius); z-index: 50; }
.skip-link:focus { top: 12px; }

.proto-bar { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.proto-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; padding-block: 8px; }
.proto-bar strong { color: var(--warning); }

/* ---------- wristband parts: flat bands, stamps, the adhesive tab ---------- */
.band { position: relative; }
.band-paper { background-color: var(--stock-paper); }
.band-linen { background-color: var(--stock-linen); }
.band-sand { background-color: var(--stock-sand); }
.band-stone { background-color: var(--stock-stone); }
.band > .wrap { display: grid; gap: 24px; padding-block: 72px; }
.band h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(40px, 7vw, 68px); line-height: 1; text-transform: uppercase; }
/* a clean rubber-stamp mark: inked outline, a slight turn, no speckle */
.stamp { display: inline-block; border: 0.075em solid currentColor; border-radius: 0.09em; padding: 0.06em 0.18em 0.03em; }

.site-header { background: var(--stock-sand); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; padding-block: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-logo { width: 66px; height: auto; flex: none; color: var(--logo-red); }   /* the Dropwatch clock (owner's logo, 10 Oct 2026) */
.brand-name { font-family: var(--font-display); font-size: 26px; line-height: 1; letter-spacing: 0.02em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: var(--radius); border: 2px solid transparent;
  font: 700 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
/* The primary button is the band's adhesive tab: ink stock, band-print lettering, three security slits at the end */
.btn-primary { background: var(--tab-slits) right 12px center / 24px 26px no-repeat, var(--accent); color: var(--accent-ink); padding-right: 48px;
  font: 400 18px/1.1 var(--font-display); letter-spacing: 0.05em; text-transform: uppercase; box-shadow: 0 2px 3px rgb(0 0 0 / 0.25); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-link { background: none; border: 0; padding: 0; min-height: auto; color: var(--link); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 700; cursor: pointer; font-family: var(--font-body); font-size: inherit; }
.btn-danger { background: var(--danger); color: var(--on-danger); }
.btn[aria-disabled="true"], .btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }

main { padding-block: 0 72px; }
.view > .wrap { display: grid; gap: 28px; padding-top: 40px; }
#view-home, #view-notfound { margin-bottom: -72px; }
/* set by /static/boot.js until the first view is chosen, so a reload of /#account doesn't flash the home page */
.routing main, .routing .site-footer { visibility: hidden; }
.notfound-copy { display: grid; gap: 18px; justify-items: start; max-width: 34em; }
#view-notfound .band > .wrap { min-height: min(64svh, 600px); align-content: center; }

/* ---------- home ---------- */
.band > .hero { padding-block: 44px 76px; }
.hero { display: grid; gap: 44px; align-items: start; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(54px, 14.5vw, 96px); line-height: 0.95; text-transform: uppercase;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.08em 0.3em; }
.hero .lede { font-size: 21px; line-height: 1.45; max-width: 31em; }
/* the band's own print line: the three reasons, printed like ADMIT ONE · 18+ on a real band */
.band-line { font: 400 17px/1.35 var(--font-display); letter-spacing: 0.07em; text-transform: uppercase; border-block: 1.5px solid var(--ink); padding-block: 7px 6px; }
.band-line span { white-space: nowrap; }     /* each clause stays whole; lines break only after a dot */
.band-line .sep { padding-inline: 0.35em 0.1em; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }
.hero .cta-row a:not(.btn) { font-weight: 700; }
.hero .small { font-size: 15px; }

/* Example alerts: printed message tags strapped with their club's band, the time hand-stamped on */
.hero-tags { display: grid; gap: 30px; }
.tags { display: grid; gap: 36px; }
.tag { position: relative; margin: 0; max-width: 440px; background: var(--surface); border-radius: var(--radius); outline: 1px solid var(--tag-edge); box-shadow: 0 1px 2px rgb(0 0 0 / 0.18), 0 22px 36px -18px rgb(0 0 0 / 0.45); }
.tag:first-child { transform: rotate(-1.5deg); }
.tag + .tag { transform: rotate(1.2deg); }
.tag-strap { display: flex; justify-content: space-between; gap: 12px; padding: 8px 14px 7px; border-radius: var(--radius) var(--radius) 0 0; color: var(--strap-ink);
  font-family: var(--font-display); font-size: 12.5px; line-height: 1; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; }
.tag-timepiece .tag-strap { background-color: var(--strap-timepiece); }
.tag-cavern .tag-strap { background-color: var(--strap-cavern); }
.tag-msg { padding: 13px 16px 46px; font-size: 15px; line-height: 1.45; }
.tag-msg p { margin: 0 0 9px; }
.tag-msg p:last-child { margin-bottom: 0; }
.tag-msg code { font: 700 0.95em var(--font-mono); background: var(--strap-cavern); color: var(--strap-ink); border-radius: 3px; padding: 0 4px; }
.tag-link { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.stamp-time { position: absolute; right: 14px; bottom: 12px; font: 700 17px/1 var(--font-mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--stamp); transform: rotate(-7deg); }
.tags-note { font-size: 14px; max-width: 40em; }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); column-gap: 56px; }
  .hero-tags { padding-top: 6px; }
  .tag + .tag { margin-left: 36px; }
}


/* Last alert: the time the latest alert went out, stamped like a date stamp (shown two hours later).
   The 404 page reuses the same stamp-and-copy layout. */
.proof, .notfound { grid-template-columns: auto 1fr; align-items: center; column-gap: 56px; }
.proof-stamp { font: 400 clamp(72px, 15vw, 132px)/0.95 var(--font-display); color: var(--stamp); text-transform: uppercase; transform: rotate(-6deg); text-align: center; }
.proof-stamp small { display: block; max-width: 14em; margin-inline: auto; font: 700 0.2em/1.2 var(--font-mono); letter-spacing: 0.08em; text-wrap: balance; }
.proof-copy { display: grid; gap: 16px; max-width: 40em; }
.proof-copy p { font-size: 19px; }
.log { margin: 0; display: grid; gap: 4px; font: 700 16px/1.4 var(--font-mono); font-variant-numeric: tabular-nums; }
.log div { display: flex; gap: 12px; }
.log dt::after { content: ""; flex: 1; }
.log dd { margin: 0; }
.log dt { min-width: 19ch; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; counter-reset: step; }
.steps li { display: grid; gap: 10px; align-content: start; justify-items: start; padding-top: 18px; border-top: 1.5px dashed var(--rule); }
/* step numbers hand-stamped, on a perforated tear line */
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 4px;
  border: 3px solid currentColor; border-radius: var(--radius); font: 400 38px/1 var(--font-display); color: var(--stamp); transform: rotate(-5deg); }
.steps h3 { font-size: 21px; }
.steps p { color: var(--muted); }
.how-intro { font-size: 19px; max-width: 40em; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.plain-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.col h3 { font-size: 22px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.icon { width: 22px; height: 22px; flex: none; }
/* list bullets as punched holes through the band */
#what .plain-list { list-style: none; padding-left: 0; gap: 10px; }
#what .plain-list li { position: relative; padding-left: 30px; }
#what .plain-list li::before { content: ""; position: absolute; left: 3px; top: 0.45em; width: 11px; height: 11px; border-radius: 50%;
  background: var(--stock-paper); box-shadow: inset 0 1.5px 2px var(--hole); }

/* Prices printed on three wristbands: the free week on white stock, the year pass in terracotta, summer on stone */
.prices { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; max-width: 760px; }
.prices li { display: grid; gap: 8px; }
.strip { display: flex; align-items: baseline; gap: 18px; padding: 10px 56px 10px 26px; border-radius: 999px var(--radius) var(--radius) 999px;
  background: var(--strip-slits) right 16px center / 24px 26px no-repeat; box-shadow: 0 10px 18px -12px rgb(0 0 0 / 0.45); }
.strip-white { background-color: var(--surface); }
.strip-accent { background-color: var(--stamp); background-image: var(--stamp-slits); color: var(--on-stamp); }
.strip-stone { background-color: var(--stock-stone); }
.strip .amount { font: 400 52px/1 var(--font-display); min-width: 2.6ch; }
.strip-name { font: 400 22px/1.1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
.price-note { padding-left: 26px; }
.fine { color: var(--muted); font-size: 15px; }

.faq { display: grid; gap: 12px; max-width: 820px; }
/* each question is its own band strip, die-cut round at the start */
.faq details { background: var(--stock-linen); border-radius: 28px var(--radius) var(--radius) 28px; padding: 14px 22px 14px 28px; box-shadow: 0 8px 16px -12px rgb(0 0 0 / 0.4); }
.faq summary { font-weight: 700; font-size: 18px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; align-self: center; background: var(--icon-plus) center / contain no-repeat; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 10px; max-width: 68ch; }

/* Reviews: the average stamped like the Last-alert time; each review a plain card in the tag style */
.reviews-head { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 56px; }
.stars { display: inline-flex; gap: 2px; vertical-align: -3px; }
.stars svg { width: 18px; height: 18px; fill: var(--stamp); }
.stars svg.off { fill: none; stroke: var(--stamp); stroke-width: 1.6; }
.review-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: start; }
.review { background: var(--surface); border-radius: var(--radius); outline: 1px solid var(--tag-edge); padding: 18px 18px 16px; display: grid; gap: 10px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.12), 0 14px 24px -18px rgb(0 0 0 / 0.4); }
.review blockquote { margin: 0; font-size: 16px; line-height: 1.55; }
.review-meta { color: var(--muted); font-size: 14px; }
.reviews-more { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.star-input { display: inline-flex; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { cursor: pointer; padding: 4px; border-radius: var(--radius); line-height: 0; }
.star-input label svg { width: 34px; height: 34px; fill: none; stroke: var(--stamp); stroke-width: 1.6; }
.star-input input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 1px; }
.star-input[data-value="1"] label:nth-of-type(-n+1) svg, .star-input[data-value="2"] label:nth-of-type(-n+2) svg,
.star-input[data-value="3"] label:nth-of-type(-n+3) svg, .star-input[data-value="4"] label:nth-of-type(-n+4) svg,
.star-input[data-value="5"] label:nth-of-type(-n+5) svg { fill: var(--stamp); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; }
@media (max-width: 900px) { .reviews-head { grid-template-columns: 1fr; row-gap: 20px; } }

/* Telegram page: the computer hint stays off phones; the copy fallback sits on one row */
@media (pointer: coarse) { .tg-desktop-hint { display: none; } }
.copy-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.copy-row code { font: 700 15px var(--font-mono); background: var(--surface-2); border-radius: var(--radius); padding: 6px 10px; overflow-wrap: anywhere; }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 20px; box-shadow: 0 22px 40px -28px rgb(0 0 0 / 0.4); }
.page-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(42px, 7vw, 64px); line-height: 1; text-transform: uppercase; }
.page-sub { color: var(--muted); font-size: 18px; max-width: 36em; text-wrap: pretty; }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-weight: 700; }
.hint { color: var(--muted); font-size: 15px; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--field-line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: 17px var(--font-body); }
.input:focus-visible { border-color: var(--ink); outline-offset: 2px; }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input.code { font-family: var(--font-mono); font-size: 26px; letter-spacing: 0.3em; max-width: 12ch; }
.with-toggle { display: flex; gap: 8px; }
.with-toggle .input { flex: 1; min-width: 0; }
.field-error { color: var(--danger); font-weight: 700; font-size: 15px; display: flex; gap: 6px; align-items: flex-start; }
.field-error::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; background: var(--icon-alert) center / contain no-repeat; }

.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.check label { font-weight: 400; }
.check .opt { color: var(--muted); font-size: 15px; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; }
legend { font-weight: 700; margin-bottom: 8px; padding: 0; }

.meter { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 4px; }
.meter span { height: 6px; border-radius: 3px; background: var(--line); }
.meter[data-score="1"] span:nth-child(-n+1) { background: var(--danger); }
.meter[data-score="2"] span:nth-child(-n+2) { background: var(--warning); }
.meter[data-score="3"] span { background: var(--success); }
.meter-text { font-size: 15px; }
.meter-text strong[data-score="0"], .meter-text strong[data-score="1"] { color: var(--danger); }
.meter-text strong[data-score="2"] { color: var(--warning); }
.meter-text strong[data-score="3"] { color: var(--success); }

.error-summary { border: 3px solid var(--danger); background: var(--danger-bg); border-radius: 12px; padding: 16px 18px; display: grid; gap: 8px; }
.error-summary h2 { font-family: var(--font-body); font-size: 18px; text-transform: none; color: var(--danger); }
.error-summary ul { margin: 0; padding-left: 1.2em; }
.error-summary a { color: var(--danger); font-weight: 700; }

.notice { border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; border: 1px solid transparent; }
.notice-info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.notice-info strong { color: var(--info); }
.notice-warning { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 35%, transparent); }
.notice-warning strong { color: var(--warning); }
.notice-success { background: var(--success-bg); border-color: color-mix(in srgb, var(--success) 35%, transparent); }
.notice-success strong { color: var(--success); }
.notice-danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.notice-danger strong { color: var(--danger); }
.demo { border: 2px dashed var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--muted); }
.demo strong { color: var(--ink); }

/* ---------- account ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 15px; font-weight: 700; }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.chip-success { background: var(--success-bg); color: var(--success); }
.chip-warning { background: var(--warning-bg); color: var(--warning); }
.chip-info { background: var(--info-bg); color: var(--info); }
.chip-danger { background: var(--danger-bg); color: var(--danger); }
.status-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.panel { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 22px 24px; display: grid; gap: 14px; }
.panel h2 { font-family: var(--font-body); font-size: 20px; }
.panel .row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 6px; }
.switch-row label { font-weight: 700; }
.switch-row .hint { display: block; font-weight: 400; }
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; flex: none; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: 0.5; cursor: not-allowed; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.segmented label { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.segmented input { accent-color: var(--accent); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: 14px; }
td.mono { white-space: nowrap; }

.skel { display: block; border-radius: 6px; background: var(--skel); }
.skel-line { height: 14px; }
.skel-title { height: 22px; width: 40%; }
.skel-chip { height: 30px; width: 150px; border-radius: 999px; }

.pay-methods { display: grid; gap: 8px; }
.pay-method { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; }
.pay-method input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.pay-method strong { display: block; }
.pay-method:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.confirm-box { border: 2px solid var(--danger); border-radius: 12px; padding: 16px; display: grid; gap: 12px; background: var(--danger-bg); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.summary-table td:last-child, .summary-table th:last-child { text-align: right; padding-right: 0; }
.summary-table tr.total td { font-weight: 700; border-bottom: 0; font-size: 17px; }

/* ---------- legal ---------- */
.prose { max-width: 68ch; display: grid; gap: 14px; }
.prose h2 { font-family: var(--font-body); font-size: 22px; margin-top: 18px; }
.prose h3 { font-size: 18px; margin-top: 6px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }
.prose .updated { color: var(--muted); font-size: 15px; }
.prose .legal-identity { color: var(--quiet); font-size: 13px; line-height: 1.5; margin-top: 30px; padding-top: 14px; border-top: 1px solid var(--line); }
.ph { background: var(--ph-bg); color: var(--ph-ink); border-bottom: 2px dashed var(--ph-line); padding: 0 3px; }
.draft-note { font-size: 15px; }

.contact-row { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding-block: 6px; border-bottom: 1px solid var(--line); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row .label { font-weight: 700; color: var(--muted); font-size: 15px; }
.email-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.email-head { background: var(--surface-2); padding: 10px 16px; font-size: 14px; color: var(--muted); display: grid; gap: 2px; }
.email-head b { color: var(--ink); }
.email-body { padding: 18px 16px; display: grid; gap: 10px; }
.email-foot { border-top: 1px solid var(--line); padding: 12px 16px; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.emails-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

/* ---------- footer, cookie notice, toast ---------- */
.site-footer { background: var(--stock-stone); font-size: 15px; }
.site-footer .wrap { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; padding-block: 36px 40px; }
.site-footer h2 { font: 400 16px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-footer ul a { display: inline-block; padding-block: 6px; }
.site-footer address { font-style: normal; display: grid; gap: 4px; }
.site-footer .disclaimer { grid-column: 1 / -1; border-top: 1.5px solid var(--rule-soft); padding-top: 18px; }

.cookie-bar { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; margin-inline: auto; background: var(--ink); color: var(--ground); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; z-index: 40; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }
.cookie-bar p { flex: 1 1 260px; font-size: 15px; }
.cookie-bar a { color: var(--ground); font-weight: 700; }
.cookie-bar .btn { background: var(--ground); color: var(--ink); }
.captcha-box { margin-block: 4px 12px; }

.toast-region { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%; transform: translateX(-50%); z-index: 60; width: min(92vw, 460px); }
.toast { background: var(--ink); color: var(--ground); border-radius: 12px; padding: 12px 16px; font-size: 15px; box-shadow: 0 8px 30px rgba(0,0,0,0.25); }

@media (hover: hover) {
  a:hover { text-decoration-thickness: 2px; }
  .btn-primary:hover { background-color: var(--tab-hover); }
  .btn-secondary:hover { background: var(--tint); }
}
/* Laptops and tablets in landscape keep two columns; smaller screens stack. */
@media (max-width: 900px) {
  .proof, .notfound { grid-template-columns: 1fr; row-gap: 28px; }
  .proof-stamp { justify-self: start; }
}
@media (max-width: 860px) {
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .two-col, .account-grid, .emails-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .steps { grid-template-columns: 1fr; gap: 18px; }
}
/* Phones */
@media (max-width: 520px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .site-header .wrap { padding-block: 14px; }
  .brand-name { font-size: 22px; }
  .header-actions .btn { min-height: 44px; padding: 8px 14px; font-size: 15px; }
  #nav-out .btn-primary { display: none; }
  .form-card, .panel { padding: 20px 16px; }
  .band > .wrap { padding-block: 56px; }
  .band > .hero { padding-block: 18px 60px; }
  .hero { gap: 40px; }
  .hero-copy { gap: 16px; }
  .hero .lede { font-size: 18px; }
  .band-line { font-size: 14.5px; letter-spacing: 0.04em; }
  .brand-name { font-size: 22px; }
  .brand-logo { width: 54px; }
  .strip { padding: 8px 48px 8px 20px; gap: 12px; }
  .strip .amount { font-size: 42px; }
  .strip-name { font-size: 18px; }
  .price-note { padding-left: 20px; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
}
}

/* ---------- real site additions ---------- */
.sim-bar { background: var(--warning-bg); border-bottom: 1px solid var(--line); font-size: 14px; }
.sim-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; padding-block: 8px; }
.sim-bar strong { color: var(--warning); }
body:not([data-sim="1"]) .sim-only { display: none !important; }
.waiting { display: grid; gap: 10px; }
.alert-text { white-space: pre-wrap; font-size: 15px; }
.btn-small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; }
/* the go page behind alert links (opens the event in the Fixr app) */
.go-page { padding: 0; }
.go-page .band { min-height: 100svh; display: grid; align-content: center; }
.go-wrap { display: grid; gap: 18px; justify-items: start; padding-block: 48px; }
.go-brand { font: 400 20px/1 var(--font-display); letter-spacing: 0.04em; text-transform: uppercase; }
/* following societies and sports clubs (account page) */
.panel h3.sub { font-size: 17px; margin: 6px 0 -4px; padding-top: 16px; border-top: 1px solid var(--line); }
.follow-list { list-style: none; margin: 0; padding: 0; display: grid; }
.follow-item { border-bottom: 1px solid var(--line); }
.follow-item:last-child { border-bottom: 0; }
.follow-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.follow-name { display: grid; gap: 2px; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.follow-name .hint { font-weight: 400; font-size: 14px; }
.follow-row .btn, .follow-row .chip { flex: none; }
.follow-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 0 0 12px; }
.follow-opts select.input { width: 100%; max-width: 26em; }
.follow-opts { border: 0; margin: 0; min-width: 0; }
.follow-opts legend { font-weight: 700; padding: 0 0 6px; }
.follow-opts .check .opt { display: block; }
.follow-kinds { display: grid; gap: 8px; padding: 2px 0 0 36px; }
.follow-kinds[hidden] { display: none; }
#fl-label { margin: -6px 0 -10px; }
