/* PressureTime.com design system: "Dial".
   A Braun-style instrument system, built from what the category leaders
   actually do. Pomofocus: the timer IS the page, state is colour, one big
   action. Forest: one CTA, a progress ring, a single metaphor. Toggl Track:
   two-canvas duotone, ONE accent rationed to a single element per screen,
   flat surfaces, depth from band contrast, never from shadows, chunky pill
   radii, geometric sans display with tight leading. Minimalist timers:
   mono palette, thin digits, a hairline progress bar.
   So: near-white canvas, near-black ink, tomato rationed to the one thing
   that matters on each screen, leaf green for break mode only, Inter only
   (the serif display face was the AI-template tell), hairlines instead of
   shadows, pills instead of square buttons, no dark bands anywhere. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/inter.woff2') format('woff2');
}

:root {
  --canvas: #FCFBF9;
  --surface: #FFFFFF;
  --band: #F5F2EB;
  --ink: #17140F;
  --ink-soft: #3D382E;
  --muted: #6B645A;
  --faint: #A39A8C;
  --line: #E7E3DB;
  --line-dark: #D8D2C6;
  --track: #EDE9E0;
  --tomato: #C2401F;
  --tomato-deep: #8F2C13;
  --tomato-tint: #FBE9E1;
  --leaf: #3E6B4F;
  --leaf-deep: #2C5239;
  --leaf-tint: #E6EFE7;
  --amber: #8A6D1B;
  --amber-tint: #FBF3D9;
  --red: #B42318;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 560px) { body { font-size: 16px; } }
img { max-width: 100%; height: auto; }
::selection { background: var(--tomato-tint); }
a { color: var(--tomato-deep); text-decoration-thickness: 1.5px; text-underline-offset: 2px; }
a:hover { color: var(--tomato); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; color: var(--ink); overflow-wrap: break-word; }
h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; margin: 0 0 14px; }
h2 { font-size: clamp(1.55rem, 3vw, 2rem); margin: 44px 0 12px; scroll-margin-top: 96px; }
h3 { font-size: 1.2rem; margin: 28px 0 8px; scroll-margin-top: 96px; }
p { margin: 0 0 16px; }
ul, ol { margin: 0 0 16px; padding-left: 24px; }
li { margin-bottom: 6px; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--tomato); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 18px; } }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--tomato); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 0 0 10px 0; font-weight: 600; }
.skip-link:focus { left: 0; color: #fff; }

/* Header: light, hairline rule, one 3px tomato rule on top (the brand frame) */
.site-header { background: var(--canvas); border-top: 3px solid var(--tomato); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { display: block; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--line-dark); border-radius: 12px; color: var(--ink); min-width: 48px; min-height: 48px; cursor: pointer; align-items: center; justify-content: center; }
.site-nav { display: flex; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; padding: 10px 13px; border-radius: 999px; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); background: var(--band); }
.site-nav a[aria-current="page"] { background: var(--ink); color: #fff; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--canvas); flex-direction: column; padding: 12px 18px 18px; gap: 2px; border-bottom: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: 10px; }
}

/* Page head */
.page-head { padding: 44px 0 8px; }
.page-head .lede { font-size: 19px; color: var(--ink-soft); max-width: 720px; }
.kicker { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: var(--tomato-deep); margin: 0 0 12px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 3px; background: var(--tomato); flex: none; }
.crumbs { font-size: 14px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--tomato-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Hero (home only): light. The headline carries ONE tomato word in italic
   (the Toggl signature move), the dial sits beside it. */
.hero { background: var(--canvas); padding: 52px 0 56px; border-bottom: 1px solid var(--line); }
.hero h1 em { font-style: italic; color: var(--tomato); }
.hero .lede { color: var(--ink-soft); font-size: 19px; max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; align-items: start; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 15.5px; margin: 0; }
.hero-points svg { flex: none; color: var(--tomato); margin-top: 3px; }

/* Tool card: a white instrument on a hairline, flat. No shadow, no dark
   box. State is the hairline progress bar and the mode label. */
.tool-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 28px 24px; }
@media (max-width: 560px) { .tool-card { padding: 22px 18px 18px; border-radius: 14px; } }
.console-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--muted); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--tomato); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.mode-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--tomato-deep); }
.mode-label.break { color: var(--leaf-deep); }
.big-clock { font-family: var(--sans); font-weight: 800; font-size: clamp(4rem, 15vw, 6.5rem); line-height: 1.02; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; text-align: center; color: var(--ink); margin: 6px 0 2px; }
.big-clock.small { font-size: clamp(2.8rem, 11vw, 4.6rem); }
.clock-sub { text-align: center; color: var(--muted); font-size: 14.5px; margin: 0 0 18px; }
.session-dots { display: flex; gap: 8px; justify-content: center; margin: 0 0 16px; }
.session-dots span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-dark); }
.session-dots span.done { background: var(--tomato); border-color: var(--tomato); }
.session-dots span.current { border-color: var(--tomato); }
/* Hairline progress bar: the minimalist timers' move. 3px, light track,
   tomato fill; leaf in break mode. */
.timer-track { height: 3px; background: var(--track); border-radius: 999px; overflow: hidden; margin: 14px 0 20px; }
.timer-track > div { height: 100%; width: 100%; background: var(--tomato); border-radius: 999px; transition: width 1s linear; }
.timer-track.break > div { background: var(--leaf); }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1 1 140px; min-width: 0; }
.field { margin-bottom: 14px; min-width: 0; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.tool-card input[type="number"], .tool-card input[type="text"], .tool-card input[type="date"], .tool-card select, .tool-card textarea {
  width: 100%; min-height: 48px; padding: 10px 12px; font-size: 16px; font-family: var(--sans);
  background: var(--canvas); color: var(--ink); border: 1.5px solid var(--line-dark);
  border-radius: 10px; min-width: 0;
}
.tool-card textarea { resize: vertical; line-height: 1.5; }
.tool-card input:focus, .tool-card select:focus, .tool-card textarea:focus { border-color: var(--tomato); outline: none; }
.tool-card input[type="number"] { font-variant-numeric: tabular-nums; }
.time-inputs { display: flex; align-items: center; gap: 8px; min-width: 0; }
.time-inputs input { flex: 1 1 0; min-width: 0; text-align: center; }
.time-inputs .sep { color: var(--muted); font-weight: 700; }
.check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; font-size: 15px; color: var(--ink); }
.check input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--tomato); }
.check label { color: var(--ink); margin: 0; font-weight: 400; font-size: 15px; }
/* Buttons are pills. The primary action is an ink pill, not a red one:
   red is rationed to the progress bar and the mode label, so the one
   filled pill on the screen reads as the action. It turns tomato on hover. */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease, color 0.12s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--tomato); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-danger { background: transparent; color: var(--red); border-color: #E3B7B2; }
.btn-danger:hover { border-color: var(--red); }
.preset-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.preset-row .btn { min-height: 44px; padding: 9px 16px; font-size: 14.5px; }
.tool-note { color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.tool-note a { color: var(--tomato-deep); }

/* Multi-function tool pages: hairline-separated blocks inside one card */
.tool-block + .tool-block { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 24px; }
.tool-block h2 { margin-bottom: 4px; }
.pick-result { font-weight: 800; font-size: clamp(1.7rem, 7vw, 2.5rem); line-height: 1.15; text-align: center; color: var(--ink); margin: 18px 0 2px; overflow-wrap: break-word; }
.shuffle-result { margin: 18px 0 0; }
.shuffle-result li { padding: 7px 2px; border-bottom: 1px solid var(--line); }

/* Task list inside the pomodoro console */
.task-list { list-style: none; padding: 0; margin: 18px 0 0; border-top: 1px solid var(--line); }
.task-list li { display: flex; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.task-list li.done .task-name { text-decoration: line-through; color: var(--muted); }
.task-list .task-name { flex: 1; min-width: 0; }
.task-list .task-est { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.task-list button { background: none; border: none; color: var(--muted); cursor: pointer; min-width: 44px; min-height: 44px; font-size: 15px; border-radius: 8px; }
.task-list button:hover { color: var(--ink); }
.task-form { display: flex; gap: 8px; margin-top: 14px; }
.task-form input[type="text"] { flex: 1; min-width: 0; }
.task-form input[type="number"] { width: 84px; flex: none; }
@media (max-width: 560px) { .task-form { flex-wrap: wrap; } .task-form input[type="text"] { flex: 1 1 100%; } }
.history-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 14.5px; color: var(--muted); }
.history-box strong { color: var(--ink); }

/* Breathing circle */
.breath-stage { text-align: center; margin: 8px 0 4px; }
.breath-circle-wrap { display: flex; justify-content: center; padding: 26px 0 10px; }
.breath-circle { width: 180px; height: 180px; border-radius: 50%; background: var(--tomato); display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--sans); font-weight: 600; font-size: 1.25rem; transition: transform 1s ease-in-out, background 1s ease-in-out; }
.breath-circle.in { transform: scale(1.25); }
.breath-circle.hold { transform: scale(1.25); background: var(--leaf); }
.breath-circle.out { transform: scale(0.8); background: #A93617; }
.breath-count { text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }

/* Visual timer dial */
.dial-wrap { display: flex; justify-content: center; padding: 10px 0; }
.dial-wrap svg { width: min(280px, 72vw); height: auto; }

/* Sections */
section { padding: 56px 0; }
@media (max-width: 860px) { section { padding: 40px 0; } }
.section-tint { background: var(--band); }
.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 { margin-top: 0; }

/* Tool tiles and cards: flat, hairline, no shadow. The icon sits in an
   engraved hairline square, not a tint medallion. */
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tool-grid { grid-template-columns: 1fr; } }
.tool-tile { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; text-decoration: none; color: var(--ink); transition: transform 0.12s ease, border-color 0.12s ease; }
.tool-tile:hover { transform: translateY(-3px); border-color: var(--tomato); color: var(--ink); }
.tool-tile .icon-medal { width: 44px; height: 44px; border: 1.5px solid var(--line-dark); border-radius: 12px; background: transparent; color: var(--ink); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; transition: border-color 0.12s ease, color 0.12s ease; }
.tool-tile:hover .icon-medal { border-color: var(--tomato); color: var(--tomato-deep); }
.tool-tile h3 { margin: 0 0 6px; font-size: 1.15rem; }
.tool-tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tool-tile .go { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 14.5px; color: var(--tomato-deep); }
.tool-tile:hover .go { color: var(--tomato); }

/* Chips */
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; padding: 0; list-style: none; }
.chip-row li { margin: 0; }
.chip-row a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1.5px solid var(--line-dark); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.chip-row a:hover { border-color: var(--tomato); color: var(--tomato-deep); }

/* How it works steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
@media (max-width: 860px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.step-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.step-card h3 .step-num { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--sans); font-size: 15px; font-weight: 700; margin-right: 8px; vertical-align: 2px; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }

/* Callouts */
.callout { background: var(--tomato-tint); border-left: 4px solid var(--tomato); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; }
.callout p { margin: 0; }
.callout-green { background: var(--leaf-tint); border-left: 4px solid var(--leaf); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; }
.callout-green p { margin: 0; }
.method-note { background: var(--band); border-left: 4px solid var(--ink); border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; }
.method-note p { margin: 0; }
.quick-answer { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--tomato); border-radius: 14px; padding: 20px 22px; margin: 0 0 28px; }
.quick-answer-label { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: var(--tomato-deep); margin: 0 0 8px; }
.quick-answer p { margin: 0; }

/* Tables: hairlines only. The header is small caps with a 1.5px ink rule;
   no dark header, no zebra. */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 18px 0; }
table.data { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 560px; }
table.data th { background: transparent; color: var(--muted); text-align: left; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; padding: 13px 16px; border-bottom: 1.5px solid var(--ink); }
table.data td { padding: 13px 16px; border-top: 1px solid var(--line); font-size: 15.5px; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-note { font-size: 14px; color: var(--muted); margin: -6px 0 18px; }
.asof { display: inline-block; font-size: 13px; font-weight: 700; color: var(--tomato-deep); background: var(--tomato-tint); border-radius: 999px; padding: 5px 12px; margin-bottom: 10px; }

/* Product cards */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr; } }
.product-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.product-media { aspect-ratio: 4 / 3; background: var(--band); display: flex; align-items: center; justify-content: center; color: var(--faint); }
.product-media .empty-mark { text-align: center; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.4px; }
.product-media .empty-mark svg { display: block; margin: 0 auto 8px; opacity: 0.5; }
.product-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.badge { display: inline-block; align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--tomato-deep); background: var(--tomato-tint); border-radius: 999px; padding: 4px 11px; margin-bottom: 10px; }
.badge-green { color: var(--leaf-deep); background: var(--leaf-tint); }
.product-body h2, .product-body h3 { margin: 0 0 8px; font-size: 1.2rem; }
.product-body p { margin: 0 0 14px; color: var(--ink-soft); font-size: 15px; flex: 1; }
.buy-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 11px 20px; background: var(--tomato); color: #fff; font-weight: 700; border-radius: 999px; text-decoration: none; transition: background 0.12s ease; }
.buy-btn:hover { background: #A93617; color: #fff; }
.buy-note { font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.aff-disclose { font-size: 14.5px; color: var(--ink-soft); background: var(--amber-tint); border: 1px solid #E3D3A0; border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; }
.aff-disclose a { color: var(--tomato-deep); }

/* FAQ: hairline dividers, no boxes. Editorial, not template furniture. */
.faq { max-width: 820px; }
.faq h2 { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--sans); font-weight: 700; font-size: 1.05rem; padding: 18px 4px; list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; font-weight: 400; color: var(--tomato); flex: none; }
.faq details[open ] summary::after { content: "\2212"; }
.faq details p { padding: 0 4px 18px; margin: 0; color: var(--ink-soft); }

/* Article / guide layout */
.article-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .article-wrap { grid-template-columns: 1fr; gap: 0; } }
.article-body { min-width: 0; }
.article-body > h2:first-child { margin-top: 0; }
.toc { position: sticky; top: 88px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
@media (max-width: 900px) { .toc { position: static; margin-bottom: 24px; } }
.toc-title { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.8px; color: var(--tomato-deep); margin: 0 0 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc li a { display: block; padding: 12px 0 12px 12px; border-left: 3px solid transparent; color: var(--ink-soft); text-decoration: none; font-size: 14.5px; line-height: 1.4; }
.toc li a:hover { color: var(--tomato-deep); }
.toc li a.is-active { color: var(--tomato-deep); font-weight: 700; border-left-color: var(--tomato); }
.toc li.toc-h3 a { padding-left: 26px; font-size: 13.5px; }

/* Related */
.related { border-top: 3px solid var(--tomato); margin-top: 48px; padding-top: 24px; }
.related h2 { margin-top: 0; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 0; border-bottom: 1px solid var(--line); }
.related li a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; text-decoration: none; color: var(--ink); font-weight: 600; }
.related li a span:last-child { color: var(--tomato); flex: none; }
.related li a:hover { color: var(--tomato-deep); }

/* Footer: light, bookended by the same 3px tomato rule as the header. */
.site-footer { background: var(--canvas); color: var(--muted); padding: 52px 0 28px; border-top: 3px solid var(--tomato); }
.footer-brand { margin-bottom: 28px; }
.site-footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .site-footer .cols { grid-template-columns: 1fr; } }
.footer-h { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; color: var(--ink); margin: 0 0 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; font-size: 15px; display: inline-block; padding: 11px 8px; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer p { font-size: 15px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Ad slots */
.ad-slot { margin: 28px 0; }
.ad-label { font-size: 11px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); text-align: center; margin-bottom: 4px; }

/* Narrow legal pages */
.narrow { max-width: 760px; }
.narrow h2 { font-size: 1.5rem; }

/* Exam sections */
.exam-section { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: 15px; }
.exam-section .sec-name { flex: 1; min-width: 0; }
.exam-section .sec-time { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.exam-section.active .sec-name { color: var(--tomato-deep); font-weight: 700; }
.exam-section.done .sec-name { color: var(--muted); text-decoration: line-through; }

/* Math practice */
.math-q { font-family: var(--sans); font-weight: 700; font-size: clamp(2rem, 7vw, 3rem); text-align: center; margin: 10px 0 16px; font-variant-numeric: tabular-nums; }
.math-score { text-align: center; color: var(--muted); font-size: 15px; margin-bottom: 14px; font-variant-numeric: tabular-nums; }

/* Event countdown digits */
.event-digits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; margin: 10px 0 18px; }
.event-digits .num { font-family: var(--sans); font-weight: 700; font-size: clamp(1.8rem, 7vw, 3rem); font-variant-numeric: tabular-nums; }
.event-digits .lbl { font-size: 12.5px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--muted); }

/* 404 */
.not-found { text-align: center; }
.not-found .lede { margin-left: auto; margin-right: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .breath-circle { transition: none; }
  .timer-track > div { transition: none; }
}

/* Cookie banner */
.cookie-banner[hidden] { display: none; }
.cookie-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 12px; padding: 12px 16px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.cookie-banner p { margin: 0; font-size: 14px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner button { flex: none; background: var(--tomato); color: #fff; border: 0; border-radius: 8px; padding: 8px 16px; min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 560px) { .cookie-banner { flex-direction: column; align-items: stretch; } }
