/*
 * Karo website (rendered by backend/src/site). Hand-written, no build step.
 *
 * Colour tokens are the app's own (web/src/index.css), as "r g b" so a colour
 * can take an alpha: rgb(var(--brand) / 0.2); the site adds a few of its own
 * (--bg, --bg-alt, --heading, --band-*). html.dark (set before the first paint
 * by /site/boot.js from the app's `taskpro.theme` choice) swaps in the dark
 * palette. Bands alternate plain / .tone-alt; .band is the navy panel.
 */

/* ------------------------------------------------------------------ tokens */

:root {
  --brand: 1 118 211; /* #0176d3 */
  --brand-dark: 1 68 134; /* #014486 */
  --brand-soft: 234 245 254; /* #eaf5fe */
  --brand-accent: 6 106 254;
  --on-brand: 255 255 255;
  --navy: 3 45 96; /* #032d60 */
  --ink: 24 24 24;
  --ink-soft: 92 92 92;
  --ink-faint: 116 116 116;
  --line: 229 229 229;
  --line-strong: 212 212 212;
  --page: 243 243 243;
  --card: 255 255 255;
  --well: 248 249 251;
  --hue-pending: 220 104 3;
  --hue-overdue: 217 45 32;
  --hue-progress: 0 134 201;
  --hue-review: 124 58 237;
  --hue-time: 181 71 8;
  --hue-done: 7 148 85;
  /* the site's own */
  --heading: 3 45 96;
  --brand-ink: 11 92 171; /* #0b5cab: blue text on tinted bands stays above 4.5:1 */
  --bg: 255 255 255;
  --bg-alt: 244 247 251;
  --card-alt: 255 255 255;
  --band-a: 3 45 96; /* #032d60 */
  --band-b: 0 22 57; /* #001639 */
  --on-band: 255 255 255;
  --shadow-sm: 0 1px 2px rgb(3 45 96 / 0.06), 0 1px 3px rgb(3 45 96 / 0.05);
  --shadow: 0 2px 6px -1px rgb(3 45 96 / 0.07), 0 12px 32px -12px rgb(3 45 96 / 0.18);
  --shadow-lg: 0 30px 70px -28px rgb(3 45 96 / 0.45), 0 10px 24px -10px rgb(3 45 96 / 0.18);
  --r: 16px;
  --r-lg: 24px;
  --header-h: 72px;
  --dots: radial-gradient(rgb(255 255 255 / 0.16) 1px, transparent 1.6px);
  --navy-grad: linear-gradient(160deg, rgb(var(--band-a)), rgb(var(--band-b)));
  /* the drawn map (place reminders) */
  --map-land: 233 240 234;
  --map-block: 216 228 219;
  --map-road: 255 255 255;
  color-scheme: light;
}

html.dark {
  --brand: 27 150 255; /* #1b96ff */
  --brand-dark: 120 176 253;
  --brand-soft: 19 47 69; /* #132f45 */
  --brand-accent: 27 150 255;
  --on-brand: 11 20 26;
  --navy: 17 27 33;
  --ink: 233 237 239; /* #e9edef */
  --ink-soft: 174 186 193; /* #aebac1 */
  --ink-faint: 134 150 160; /* #8696a0 */
  --line: 34 45 52; /* #222d34 */
  --line-strong: 42 57 66; /* #2a3942 */
  --page: 11 20 26; /* #0b141a */
  --card: 17 27 33; /* #111b21 */
  --well: 32 44 51; /* #202c33 */
  --hue-pending: 255 210 121;
  --hue-overdue: 255 107 120;
  --hue-progress: 83 189 235;
  --hue-review: 167 145 255;
  --hue-time: 255 160 86;
  --hue-done: 61 214 140;
  --heading: 233 237 239;
  --brand-ink: 27 150 255;
  --bg: 11 20 26;
  --bg-alt: 15 26 32;
  --card-alt: 24 34 41; /* #182229 */
  --band-a: 13 44 74;
  --band-b: 8 23 38;
  --on-band: 233 237 239;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow: 0 2px 6px -1px rgb(0 0 0 / 0.4), 0 12px 32px -12px rgb(0 0 0 / 0.6);
  --shadow-lg: 0 30px 70px -28px rgb(0 0 0 / 0.85), 0 10px 24px -10px rgb(0 0 0 / 0.5);
  --map-land: 21 33 40;
  --map-block: 29 44 53;
  --map-road: 44 60 70;
  color-scheme: dark;
}

/* Inter's size in the font it falls back to, so the swap moves nothing. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Helvetica'), local('Roboto');
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
  size-adjust: 107.4%;
}

/* ------------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 24px); -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--ink));
  font: 400 16px/1.6 Inter, 'Inter Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', 'Nirmala UI', sans-serif;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: rgb(var(--brand-ink)); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: rgb(var(--brand-dark)); }
h1, h2, h3, h4 { margin: 0; color: rgb(var(--heading)); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
h1, .h1 { font-size: clamp(2.5rem, 1.55rem + 3.9vw, 4.25rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.042em; }
h2 { font-size: clamp(1.875rem, 1.35rem + 2vw, 2.875rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.035em; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.012em; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
::selection { background: rgb(var(--brand) / 0.22); }
:focus-visible { outline: 3px solid rgb(var(--brand) / 0.55); outline-offset: 2px; border-radius: 6px; }
/* On the navy surfaces a blue ring would all but vanish: a light one there. */
:is(.band, .post-cta, .site-footer, .announce) :focus-visible { outline-color: rgb(255 255 255 / 0.85); }
main:focus { outline: none; }
.ic { flex: none; }
.skip { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: rgb(var(--brand)); color: rgb(var(--on-brand)); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: rgb(var(--on-brand)); }

.wrap { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 832px; }
.wrap-read { max-width: 792px; }
@media (min-width: 640px) { .wrap { padding: 0 24px; } }
@media (min-width: 1024px) { .wrap { padding: 0 32px; } }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px;
  border: 1.5px solid transparent; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 16.5px; }
/* Smaller words, never a smaller target: 44px tall like every button. */
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn .ic-go { transition: transform 0.15s; }
.btn:hover .ic-go { transform: translateX(3px); }
.btn-primary { background: rgb(var(--brand)); color: rgb(var(--on-brand)); box-shadow: 0 1px 2px rgb(var(--navy) / 0.2), 0 8px 20px -10px rgb(var(--brand) / 0.7); }
.btn-primary:hover { background: rgb(var(--brand-dark)); color: rgb(var(--on-brand)); }
.btn-outline { border-color: rgb(var(--brand) / 0.55); background: rgb(var(--card)); color: rgb(var(--brand-ink)); }
.btn-outline:hover { border-color: rgb(var(--brand)); background: rgb(var(--brand-soft)); color: rgb(var(--brand-dark)); }
html.dark .btn-outline:hover { color: rgb(var(--ink)); }
.btn-ghost { background: transparent; color: rgb(var(--heading)); }
.btn-ghost:hover { background: rgb(var(--ink) / 0.06); color: rgb(var(--heading)); }
.btn-light { background: #fff; color: #032d60; box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.5); }
.btn-light:hover { background: #eaf5fe; color: #014486; }
html.dark .btn-light { background: rgb(var(--brand)); color: rgb(var(--on-brand)); }
html.dark .btn-light:hover { background: rgb(var(--brand-dark)); color: rgb(var(--on-brand)); }
.btn-on-band { border-color: rgb(var(--on-band) / 0.45); background: transparent; color: rgb(var(--on-band)); }
.btn-on-band:hover { border-color: rgb(var(--on-band)); background: rgb(var(--on-band) / 0.1); color: rgb(var(--on-band)); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479px) { .hero .actions .btn, .band-cta .actions .btn { flex: 1 1 100%; } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow .ic { transition: transform 0.15s; }
.link-arrow:hover .ic { transform: translateX(3px); }

/* ------------------------------------------------------------------ announcement */

.announce { background: rgb(var(--band-b)); color: #fff; font-size: 14px; }
html.dark .announce { background: rgb(var(--brand-soft)); color: rgb(var(--ink)); }
.announce-in { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.announce p { flex: 1; text-align: center; }
.announce a { display: inline-flex; align-items: center; gap: 6px; color: inherit; font-weight: 600; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.announce-x { display: none; padding: 6px; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
html.js .announce-x { display: inline-flex; }
html.no-announce .announce { display: none; }

/* ------------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgb(var(--line));
  background: rgb(var(--bg) / 0.86);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  backdrop-filter: saturate(1.8) blur(14px);
  transition: background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
/* Clear over the top of the page; frosted once it scrolls (site.js). */
html.js .site-header { border-bottom-color: transparent; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.js.scrolled .site-header, html.js.nav-open .site-header {
  border-bottom-color: rgb(var(--line));
  background: rgb(var(--bg) / 0.86);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  backdrop-filter: saturate(1.8) blur(14px);
  box-shadow: 0 10px 30px -18px rgb(var(--navy) / 0.35);
}
html.js.nav-open .site-header { background: rgb(var(--bg)); }
.header-in { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; align-items: center; gap: 10px; color: rgb(var(--heading)); font-size: 21px; font-weight: 800; letter-spacing: -0.035em; text-decoration: none; }
.brand:hover { color: rgb(var(--heading)); }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; }
.site-nav ul a { position: relative; display: block; padding: 8px 12px; border-radius: 999px; color: rgb(var(--ink-soft)); font-size: 15px; font-weight: 550; text-decoration: none; }
.site-nav ul a:hover { color: rgb(var(--heading)); background: rgb(var(--ink) / 0.05); }
.site-nav ul a[aria-current='page'] { color: rgb(var(--brand-ink)); }
.site-nav ul a[aria-current='page']::after { content: ''; position: absolute; left: 50%; bottom: 1px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: rgb(var(--brand)); }
.nav-cta { display: none; }
.header-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.header-cta .btn { min-height: 42px; }

/* Signed in (boot.js): one "Open Karo" instead of Log in / Register. */
.cta-open { display: none !important; }
html.signed-in [data-cta='login'], html.signed-in [data-cta='register'] { display: none !important; }
html.signed-in .cta-open { display: inline-flex !important; }

.menu-btn { display: none; place-items: center; width: 44px; height: 44px; margin-right: -8px; border: 0; border-radius: 12px; background: transparent; color: rgb(var(--heading)); cursor: pointer; }
.menu-btn:hover { background: rgb(var(--ink) / 0.06); }
.menu-btn .ic-close, html.nav-open .menu-btn .ic-menu { display: none; }
html.nav-open .menu-btn .ic-close { display: block; }

@media (max-width: 959px) {
  :root { --header-h: 64px; }
  .header-in { gap: 12px; }
  .header-cta .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
  html.js .menu-btn { display: grid; }
  /* No script: the links sit in a scrolling row under the logo. */
  html:not(.js) .site-header { position: relative; }
  html:not(.js) .header-in { flex-wrap: wrap; padding-bottom: 8px; }
  html:not(.js) .site-nav { order: 3; width: 100%; overflow-x: auto; }
  html.js .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    padding: 8px 16px 24px; border-bottom: 1px solid rgb(var(--line));
    background: rgb(var(--bg)); box-shadow: 0 30px 40px -20px rgb(var(--navy) / 0.3);
  }
  html.nav-open .site-nav { display: block; }
  html.js .site-nav ul { flex-direction: column; gap: 0; }
  html.js .site-nav ul li + li { border-top: 1px solid rgb(var(--line)); }
  html.js .site-nav ul a { padding: 16px 4px; border-radius: 0; color: rgb(var(--heading)); font-size: 17px; font-weight: 600; }
  html.js .site-nav ul a:hover { background: transparent; color: rgb(var(--brand-ink)); }
  html.js .site-nav ul a[aria-current='page']::after { left: auto; right: 8px; top: 50%; margin: -2px 0 0; }
  html.js .nav-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
  html.js .nav-cta .btn { min-height: 48px; }
}
/* A phone: Log in moves into the menu; Register stays in sight. */
@media (max-width: 479px) { html.js .cta-login { display: none; } }

/*
 * Light / dark: the app's switch (web/src/platform/ThemeToggle.jsx), a track
 * with a sliding knob, the sun on the light side and the moon on the dark,
 * the one in use lit. html.dark sets which way it sits, so it is right before
 * any script runs; site.js flips it. It needs script, so without it there is
 * none. In the header from 480px; on a phone, a "Dark mode" row in the menu.
 */
.theme-switch {
  position: relative; display: none; flex: none; grid-template-columns: 1fr 1fr; place-items: center;
  width: 58px; height: 28px; padding: 0; border: 0; border-radius: 999px;
  background: #e2e8f0; box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.14); cursor: pointer;
  transition: background-color 0.2s;
}
html.js .theme-switch { display: inline-grid; }
html.dark .theme-switch { background: rgb(var(--well)); }
.theme-switch:focus-visible { outline: 2px solid rgb(var(--brand)); outline-offset: 2px; }
/* The track is drawn 28px tall; the tap area around it is 44px. */
.theme-switch::after { content: ''; position: absolute; inset: -8px -4px; border-radius: 999px; }
.ts-knob {
  position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / 0.28); transition: transform 0.2s;
}
html.dark .ts-knob { background: #e9edef; transform: translateX(30px); }
.theme-switch .ic { position: relative; z-index: 1; stroke-width: 2.4; }
.ts-sun { color: #f59e0b; }
.ts-moon { color: #747474; }
html.dark .ts-sun { color: #8696a0; }
html.dark .ts-moon { color: #0176d3; }
.nav-theme { display: none; }
@media (max-width: 479px) {
  html.js .header-theme { display: none; }
  html.js .nav-theme {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 4px; border-top: 1px solid rgb(var(--line));
    color: rgb(var(--heading)); font-size: 17px; font-weight: 600;
  }
}
/* The new look wipes in as a circle from the switch (site.js); no cross-fade under it. */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
@media (max-width: 339px) { .brand span { display: none; } }

/* Every page's first band slides under the clear header. */
main > :first-child { margin-top: calc(-1 * var(--header-h)); }
html:not(.js) main > :first-child { margin-top: 0; }

/* ------------------------------------------------------------------ sections */

.sec { padding: 72px 0; }
@media (min-width: 960px) { .sec { padding: 112px 0; } }
.tone-alt { --card: var(--card-alt); background: rgb(var(--bg-alt)); }
.sec-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.sec-head-left { margin: 0 0 40px; text-align: left; }
@media (min-width: 960px) { .sec-head { margin-bottom: 64px; } .sec-head-left { margin-bottom: 48px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; color: rgb(var(--brand-ink)); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, #e3001b, #ff4a3d); }
.eyebrow a { color: inherit; text-decoration: none; }
.intro { margin-top: 18px; color: rgb(var(--ink-soft)); font-size: 18px; line-height: 1.6; }
.lead { margin-top: 24px; color: rgb(var(--ink-soft)); font-size: clamp(1.0625rem, 0.98rem + 0.45vw, 1.3125rem); line-height: 1.55; }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 40px; }
.head-row .sec-head { margin: 0; }
.head-row h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }

.grid { display: grid; gap: 20px; list-style: none; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
@media (min-width: 640px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-4.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 24px; } .grid-4.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid-3 { gap: 24px; } }

.card { border: 1px solid rgb(var(--line)); border-radius: var(--r-lg); background: rgb(var(--card)); box-shadow: var(--shadow-sm); }
.tile { display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 28px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.tile:hover { border-color: rgb(var(--fig, var(--brand)) / 0.35); box-shadow: var(--shadow); transform: translateY(-3px); }
.tile p { color: rgb(var(--ink-soft)); font-size: 15.5px; line-height: 1.6; }
.tile-ic { display: grid; flex: none; place-items: center; width: 48px; height: 48px; margin-bottom: 8px; border-radius: 14px; background: rgb(var(--fig) / 0.12); color: rgb(var(--fig)); }
html.dark .tile-ic { background: rgb(var(--fig) / 0.16); }
.tile-link { color: inherit; text-decoration: none; }
.tile-link:hover { color: rgb(var(--brand-ink)); }
.tile-badge { display: inline-block; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: rgb(var(--brand-soft)); color: rgb(var(--brand-ink)); font-size: 11.5px; font-weight: 750; letter-spacing: 0.05em; line-height: 1.5; text-transform: uppercase; vertical-align: 2px; white-space: nowrap; }
.grid-cta { display: flex; justify-content: center; margin-top: 40px; }
.card-link { color: inherit; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; }
.card-link:hover { border-color: rgb(var(--brand) / 0.4); box-shadow: var(--shadow); color: inherit; transform: translateY(-3px); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 12px; color: rgb(var(--brand-ink)); font-size: 15px; font-weight: 600; }
.card-link:hover .more .ic { transform: translateX(3px); }
.more .ic { transition: transform 0.15s; }
.platform .btn { align-self: flex-start; margin-top: auto; }
/* A phone: a tile's icon beside its words, so a long grid stays short. */
@media (max-width: 639px) {
  .grid-4 .tile, .step { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; gap: 6px 16px; padding: 20px; }
  .grid-4 .tile .tile-ic, .step-n { grid-row: span 2; width: 44px; height: 44px; margin: 0; border-radius: 13px; }
  .step p { margin-top: 0; }
  /* A long grid reads as one list on a phone: one card, a line between the items. */
  .grid-4 { gap: 0; overflow: hidden; border: 1px solid rgb(var(--line)); border-radius: var(--r-lg); background: rgb(var(--card)); box-shadow: var(--shadow-sm); }
  .grid-4 .tile { border: 0; border-radius: 0; background: none; box-shadow: none; }
  .grid-4 .tile + .tile { border-top: 1px solid rgb(var(--line)); }
  .grid-4 .tile:hover { box-shadow: none; transform: none; }
  .grid-cta { margin-top: 28px; }
  .grid-cta .btn { width: 100%; }
}
.platform p { margin-bottom: 8px; }

/* The app's hue for each meaning. */
.h-total, .pm-total { --fig: var(--brand); }
.h-pending, .pm-pending { --fig: var(--hue-pending); }
.h-overdue, .pm-overdue { --fig: var(--hue-overdue); }
.h-progress, .pm-progress { --fig: var(--hue-progress); }
.h-review, .pm-review { --fig: var(--hue-review); }
.h-moretime, .pm-moretime { --fig: var(--hue-time); }
.h-done { --fig: var(--hue-done); }

/* ticks under a hero or a CTA */
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; list-style: none; color: rgb(var(--ink-soft)); font-size: 14.5px; font-weight: 500; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .ic { color: rgb(var(--hue-done)); }
.trust-band { justify-content: center; color: rgb(var(--on-band) / 0.8); }
.trust-band .ic { color: #4ade80; }
html.dark .trust-band .ic { color: rgb(var(--hue-done)); }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 40px) 0 72px;
  background:
    radial-gradient(52rem 32rem at 92% 0%, rgb(var(--brand) / 0.16), transparent 70%),
    radial-gradient(40rem 26rem at -10% 110%, rgb(var(--brand) / 0.08), transparent 70%),
    linear-gradient(180deg, rgb(var(--brand-soft) / 0.9) 0%, rgb(var(--bg)) 100%);
}
html.dark .hero { background: radial-gradient(52rem 32rem at 92% 0%, rgb(var(--brand) / 0.14), transparent 70%), rgb(var(--bg)); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.hero-copy { max-width: 640px; }
.hero .actions { margin-top: 36px; }
.hero-visual { display: flex; justify-content: center; min-width: 0; }
.hero-img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
@media (min-width: 960px) {
  .hero { padding: calc(var(--header-h) + 56px) 0 112px; }
  .hero.has-visual .hero-in { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: 56px; }
}

/* the stage: the phone on a navy panel */
.stage { position: relative; display: flex; justify-content: center; width: 100%; max-width: 560px; padding: 28px 0; }
.stage-bg {
  position: absolute; inset: 76px 0; overflow: hidden; border-radius: 32px;
  background:
    url(tick.svg) no-repeat right -36px bottom -28px / 210px auto,
    radial-gradient(28rem 20rem at 85% 0%, rgb(27 150 255 / 0.5), transparent 65%),
    var(--navy-grad);
  box-shadow: var(--shadow-lg);
}
.stage-bg::before { content: ''; position: absolute; inset: 0; background: var(--dots) 0 0 / 18px 18px; -webkit-mask-image: linear-gradient(135deg, #000, transparent 60%); }
.stage-bg::after { content: ''; position: absolute; left: -150px; bottom: -190px; width: 380px; height: 380px; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 50%; box-shadow: 0 0 0 48px rgb(255 255 255 / 0.03), 0 0 0 96px rgb(255 255 255 / 0.02); }
.float {
  position: absolute; z-index: 2; display: none; align-items: center; gap: 12px;
  max-width: 250px; padding: 12px 16px 12px 12px;
  border: 1px solid rgb(var(--line)); border-radius: 16px;
  background: rgb(var(--card)); box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.35;
}
html.dark .float { background: rgb(var(--well)); border-color: rgb(var(--line-strong)); }
.float b { display: block; color: rgb(var(--heading)); font-weight: 650; }
.float span span { display: block; color: rgb(var(--ink-soft)); font-size: 12.5px; }
.float-ic { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border-radius: 12px; }
.float-ic.is-done { background: rgb(var(--hue-done) / 0.14); color: rgb(var(--hue-done)); }
.float-ic.is-review { background: rgb(var(--hue-review) / 0.14); color: rgb(var(--hue-review)); }
.float-a { top: 40px; left: -8px; }
.float-b { bottom: 52px; right: -8px; }
@media (min-width: 560px) { .float { display: flex; } }
@keyframes float-drift { 50% { transform: translateY(-7px); } }
.float-a { animation: float-drift 7s ease-in-out infinite; }
.float-b { animation: float-drift 7s ease-in-out -3.5s infinite; }
/* float-b stays inside the page's side padding until the wrap stops growing (the hero clips it). */
@media (min-width: 960px) { .float-a { left: -44px; } .float-b { right: -12px; } }
@media (min-width: 1300px) { .float-b { right: -36px; } }

/* ------------------------------------------------------------------ the phone (Tasks screen) */

.phone {
  position: relative; z-index: 1; flex: none;
  width: 30em; padding: 0.85em;
  border-radius: 4.8em;
  background: linear-gradient(145deg, #1e2a3b, #0b1220 40%, #111a2b);
  box-shadow: inset 0 0 0 0.16em #3a4558, 0 40px 80px -30px rgb(0 10 30 / 0.7), 0 18px 36px -18px rgb(0 10 30 / 0.5);
  font-size: 9px; line-height: 1.3; user-select: none;
}
@media (min-width: 400px) { .phone { font-size: 9.6px; } }
@media (min-width: 1100px) { .phone { font-size: 10.2px; } }
.phone-screen {
  position: relative; display: flex; flex-direction: column; gap: 0.7em;
  height: 64em; padding: 0.9em 1.1em 0; overflow: hidden;
  border-radius: 4em; background: rgb(var(--page)); color: rgb(var(--ink));
}
.phone em, .mock em { font-style: normal; }
.phone-screen > * { flex: none; }
.pm-status { display: flex; align-items: center; justify-content: space-between; height: 2.6em; padding: 0 1.5em; font-size: 1.1em; font-weight: 650; }
.pm-island { width: 8.6em; height: 2.4em; border-radius: 2em; background: #0b1220; }
.pm-sys { display: flex; align-items: center; gap: 0.3em; }
.pm-sys i { width: 1.3em; height: 0.85em; border-radius: 0.2em; background: linear-gradient(90deg, currentColor 25%, transparent 25% 37%, currentColor 37% 62%, transparent 62% 74%, currentColor 74%); opacity: 0.8; }
.pm-sys b { width: 2.2em; height: 1.05em; border: 0.12em solid currentColor; border-radius: 0.3em; opacity: 0.8; background: linear-gradient(90deg, currentColor 70%, transparent 70%) 0.12em 0.12em / calc(100% - 0.24em) calc(100% - 0.24em) no-repeat; }
.pm-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 0.2em; }
.pm-bar b { color: rgb(var(--heading)); font-size: 2em; font-weight: 800; letter-spacing: -0.03em; }
.pm-icons { display: flex; gap: 0.6em; }
.pm-icons .ic { box-sizing: content-box; padding: 0.7em; border: 1px solid rgb(var(--line)); border-radius: 50%; background: rgb(var(--card)); color: rgb(var(--ink-soft)); }
.pm-piles { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8em; }
.pm-pile { display: flex; flex-direction: column; gap: 0.35em; padding: 1em; border: 1px solid rgb(var(--line)); border-radius: 1.5em; background: rgb(var(--card)); box-shadow: 0 1px 2px rgb(0 0 0 / 0.04); }
.pm-pile.is-on { border-color: rgb(var(--brand)); }
.pm-pile-ic { display: grid; place-items: center; width: 2.8em; height: 2.8em; margin-bottom: 0.2em; border-radius: 0.9em; background: rgb(var(--well)); color: rgb(var(--ink-soft)); }
html:not(.dark) .pm-pile-ic { background: #f1f5f9; }
.pm-pile.is-on .pm-pile-ic { background: rgb(var(--brand)); color: rgb(var(--on-brand)); }
.pm-pile b { font-size: 1.2em; font-weight: 650; }
.pm-pile-n { color: rgb(var(--ink-soft)); font-size: 1em; }
.pm-pile-n em { margin-right: 0.15em; color: rgb(var(--ink)); font-size: 2.3em; font-weight: 750; line-height: 1; vertical-align: -0.08em; }
.pm-pile-sub { display: flex; align-items: center; gap: 0.4em; color: rgb(var(--ink-soft)); font-size: 0.95em; font-weight: 550; }
.pm-pile-sub i { width: 0.55em; height: 0.55em; border-radius: 50%; }
.pm-dot-red { background: rgb(var(--hue-overdue)); }
.pm-dot-violet { background: rgb(var(--hue-review)); }
.pm-pages { display: flex; justify-content: center; gap: 0.4em; margin: -0.2em 0; }
.pm-pages i { width: 0.55em; height: 0.55em; border-radius: 1em; background: rgb(var(--line-strong)); }
.pm-pages i.is-on { width: 1.6em; background: rgb(var(--brand)); }
.pm-tabs { display: flex; gap: 0.45em; min-width: 0; padding: 0.35em; overflow: hidden; border: 1px solid rgb(var(--line)); border-radius: 1.4em; background: rgb(var(--well)); white-space: nowrap; }
.pm-tab { display: inline-flex; flex: none; align-items: center; gap: 0.5em; height: 2.9em; padding: 0 0.95em; border: 1px solid transparent; border-radius: 1.05em; color: rgb(var(--ink-soft)); font-size: 1.05em; font-weight: 700; }
.pm-tab i { min-width: 1.75em; padding: 0.1em 0.45em; border-radius: 1em; background: rgb(var(--line)); font-size: 0.88em; font-style: normal; font-weight: 800; text-align: center; }
.pm-tab.is-on { border-color: rgb(var(--brand) / 0.4); background: rgb(var(--card)); color: rgb(var(--ink)); box-shadow: 0 1px 2px rgb(0 0 0 / 0.06); }
.pm-tab.is-on i { background: rgb(var(--brand-soft)); color: rgb(var(--brand)); }
.pm-tab.is-late { color: rgb(var(--hue-overdue)); }
.pm-tab.is-late i { background: rgb(var(--hue-overdue) / 0.14); color: rgb(var(--hue-overdue)); }
.pm-figs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6em; }
.pm-fig { display: flex; min-width: 0; flex-direction: column; gap: 0.45em; padding: 0.75em 0.7em; border: 1px solid rgb(var(--line)); border-radius: 1.3em; background: rgb(var(--card)); }
.pm-fig.is-on { border-color: rgb(var(--fig)); background: rgb(var(--fig) / 0.1); }
.pm-fig-top { display: flex; align-items: center; justify-content: space-between; }
.pm-fig-ic { display: grid; place-items: center; width: 2.3em; height: 2.3em; border-radius: 0.75em; background: rgb(var(--fig) / 0.13); color: rgb(var(--fig)); }
.pm-fig.is-on .pm-fig-ic { background: rgb(var(--fig)); color: rgb(var(--on-brand)); }
.pm-fig em { color: rgb(var(--ink)); font-size: 1.85em; font-weight: 800; line-height: 1; }
.pm-fig.is-on em, .pm-fig.is-on .pm-fig-name { color: rgb(var(--fig)); }
.pm-fig-name { overflow: hidden; color: rgb(var(--ink-soft)); font-size: 0.8em; font-weight: 650; white-space: nowrap; text-overflow: ellipsis; letter-spacing: -0.01em; }
.pm-task {
  --pbg: #fef3f2; --pb: #fda29b; --ps: #d92d20; --pi: #b42318;
  display: flex; flex-direction: column; gap: 0.4em; flex: none;
  padding: 0.95em 1.1em 1em 1.25em;
  border: 1px solid var(--pb); border-left: 0.4em solid var(--ps); border-radius: 1.4em;
  background: var(--pbg);
}
.pm-medium { --pbg: #fffaeb; --pb: #fec84b; --ps: #f79009; --pi: #b54708; }
html.dark .pm-urgent { --pbg: #29232a; --pb: #64373f; --ps: #ff6b78; --pi: #ff6b78; }
html.dark .pm-medium { --pbg: #292d2a; --pb: #645b40; --ps: #ffd279; --pi: #ffd279; }
.pm-task-top { display: flex; align-items: center; gap: 0.5em; }
.pm-serial { color: var(--pi); font-size: 0.95em; font-weight: 800; }
.pm-late { padding: 0.1em 0.6em; border-radius: 1em; background: rgb(var(--hue-overdue)); color: #fff; font-size: 0.82em; font-weight: 700; }
html.dark .pm-late { color: #0b141a; }
.pm-bell { display: grid; place-items: center; width: 2.4em; height: 2.4em; margin-left: auto; border-radius: 50%; background: rgb(var(--card) / 0.7); color: var(--pi); }
.pm-task b { color: rgb(var(--ink)); font-size: 1.25em; font-weight: 750; line-height: 1.25; }
.pm-who, .pm-dates { color: rgb(var(--ink-faint)); font-size: 0.98em; }
.pm-who em, .pm-dates em { color: rgb(var(--ink-soft)); font-weight: 600; }
.pm-dates { display: flex; justify-content: space-between; gap: 0.5em; }
.pm-due { color: rgb(var(--ink-soft)); font-weight: 650; }
.pm-due.is-late { color: rgb(var(--hue-overdue)); }
.pm-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.2em; }
.pm-tag { display: inline-flex; align-items: center; gap: 0.4em; padding: 0.25em 0.7em; border: 1px solid rgb(var(--line)); border-radius: 1em; background: rgb(var(--card)); color: rgb(var(--ink-soft)); font-size: 0.88em; font-weight: 600; }
.pm-tag i { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--ps); }
.pm-pill { padding: 0.35em 0.85em; border: 1px solid rgb(var(--fig) / 0.45); border-radius: 1em; background: rgb(var(--fig) / 0.12); color: rgb(var(--fig)); font-size: 0.92em; font-weight: 700; white-space: nowrap; }
.pm-fab { position: absolute; right: 1.3em; bottom: 7.6em; z-index: 2; display: inline-flex; align-items: center; gap: 0.4em; padding: 1em 1.4em; border-radius: 2em; background: rgb(var(--brand)); box-shadow: 0 0.8em 1.8em -0.5em rgb(var(--brand) / 0.7); color: rgb(var(--on-brand)); font-size: 1.1em; font-weight: 700; }
.pm-tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; grid-template-columns: repeat(5, 1fr); height: 6.4em; padding-bottom: 0.9em; border-top: 1px solid rgb(var(--line)); background: rgb(var(--card)); }
.pm-tb { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.3em; color: rgb(var(--ink-faint)); font-size: 0.85em; font-weight: 600; }
.pm-tb-ic { display: grid; place-items: center; }
.pm-tb.is-on { color: rgb(var(--brand)); }
.pm-tb.is-on .pm-tb-ic { position: absolute; top: -2.2em; width: 4.6em; height: 4.6em; border-radius: 50%; background: rgb(var(--brand)); box-shadow: 0 0 0 0.55em rgb(var(--page)); color: rgb(var(--on-brand)); }

/* ------------------------------------------------------------------ steps */

.steps { display: grid; gap: 20px; list-style: none; }
@media (min-width: 800px) { .steps-3 { grid-template-columns: repeat(3, 1fr); gap: 24px; } .steps-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps-4 { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 28px 28px 32px; border: 1px solid rgb(var(--line)); border-radius: var(--r-lg); background: rgb(var(--card)); box-shadow: var(--shadow-sm); }
.step-n { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 20px; border-radius: 16px; background: linear-gradient(145deg, rgb(var(--brand)), rgb(var(--brand-dark))); box-shadow: 0 10px 20px -10px rgb(var(--brand)); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: 0.02em; }
html.dark .step-n { background: rgb(var(--brand-soft)); box-shadow: none; color: rgb(var(--brand)); }
.step p { margin-top: 10px; color: rgb(var(--ink-soft)); font-size: 15.5px; line-height: 1.6; }
/* a dashed thread from one number to the next */
@media (min-width: 800px) {
  .steps-3 .step:not(:last-child)::after { content: ''; position: absolute; top: 52px; left: 92px; right: -40px; border-top: 2px dashed rgb(var(--brand) / 0.3); }
}

/* ------------------------------------------------------------------ jump links */

/* A row of links to the page's parts, kept under the header (sections.js jumpLinks; site.js lights the part in view). */
.jump {
  position: sticky; top: var(--header-h); z-index: 40;
  border-block: 1px solid rgb(var(--line));
  background: rgb(var(--bg) / 0.9);
  -webkit-backdrop-filter: saturate(1.8) blur(14px);
  backdrop-filter: saturate(1.8) blur(14px);
}
@media (max-width: 959px) { html:not(.js) .jump { top: 0; } }
html:has(.jump) { scroll-padding-top: calc(var(--header-h) + 80px); }
.jump-in { display: flex; align-items: center; gap: 16px; }
.jump-title { flex: none; color: rgb(var(--ink-faint)); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.jump-list {
  display: flex; flex: 1; gap: 8px; min-width: 0;
  margin-right: -16px; padding: 8px 16px 8px 0; overflow-x: auto;
  list-style: none; scrollbar-width: none; overscroll-behavior-x: contain;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
.jump-list::-webkit-scrollbar { display: none; }
.jump-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid rgb(var(--line-strong)); border-radius: 999px;
  background: rgb(var(--card)); color: rgb(var(--ink-soft));
  font-size: 14.5px; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.jump-list a:hover { border-color: rgb(var(--brand) / 0.5); color: rgb(var(--brand-ink)); }
.jump-list a[aria-current] { border-color: rgb(var(--brand)); background: rgb(var(--brand-soft)); color: rgb(var(--brand-ink)); }
@media (max-width: 639px) { .jump-title { display: none; } }
@media (min-width: 1024px) { .jump-list { margin-right: 0; padding-right: 0; -webkit-mask-image: none; mask-image: none; } }

/* ------------------------------------------------------------------ split */

.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
.split-copy { max-width: 600px; }
.split-copy > * + * { margin-top: 18px; }
.split-copy > .btn { margin-top: 32px; }
.split-copy > p:not(.eyebrow):not(.intro) { color: rgb(var(--ink-soft)); font-size: 17.5px; line-height: 1.65; }
.checks { display: grid; gap: 14px; margin-top: 28px !important; list-style: none; }
.checks li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; font-weight: 500; }
.checks .ic { margin-top: 1px; color: rgb(var(--hue-done)); }
.split-media { min-width: 0; }
.split-img { border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
@media (min-width: 960px) {
  .has-visual .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 80px; }
  .is-reverse .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .is-reverse .split-media { order: -1; }
}

/* the navy band: a split, the CTA */
.band {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(48rem 30rem at 100% 0%, rgb(27 150 255 / 0.38), transparent 65%), var(--navy-grad);
  color: rgb(var(--on-band));
}
.band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--dots) 0 0 / 22px 22px; -webkit-mask-image: radial-gradient(60% 80% at 0% 100%, #000, transparent); }
.band::after { content: ''; position: absolute; z-index: -1; right: -140px; bottom: -220px; width: 460px; height: 460px; border: 1px solid rgb(255 255 255 / 0.12); border-radius: 50%; box-shadow: 0 0 0 56px rgb(255 255 255 / 0.03), 0 0 0 112px rgb(255 255 255 / 0.02); }
html.dark .band { border-block: 1px solid rgb(var(--line)); }
.band h2, .band h3 { color: inherit; }
.band .eyebrow { color: #7cc4ff; }
.band .intro, .band .split-copy > p:not(.eyebrow):not(.intro) { color: rgb(var(--on-band) / 0.8); }
.band .checks .ic { color: #4ade80; }
html.dark .band .checks .ic { color: rgb(var(--hue-done)); }
.band-in { max-width: 820px; text-align: center; }
.band-cta h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); }
.band .actions { justify-content: center; margin-top: 36px; }
.band-split .split-copy .btn { margin-top: 32px; }

/* ------------------------------------------------------------------ small pictures beside a split */

/* minmax(0, 1fr): the tab row must not widen the card past a phone's screen. */
.mock { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; font-size: 14px; line-height: 1.45; }
.mock-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid rgb(var(--line)); border-radius: 22px; background: rgb(var(--card)); box-shadow: var(--shadow-lg); color: rgb(var(--ink)); }
.mock-label { color: rgb(var(--ink-faint)); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mock-badge { padding: 3px 10px; border-radius: 999px; background: rgb(var(--brand-soft)); color: rgb(var(--brand-ink)); font-size: 12px; font-weight: 650; white-space: nowrap; }
.mock .pm-tabs { font-size: 12.5px; }
.mock .pm-tab { height: 34px; }
.mock-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; list-style: none; }
.mock-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgb(var(--well)); font-weight: 550; }
html:not(.dark) .mock-list li { background: #f4f7fb; }
.mock-list span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock-list em { color: rgb(var(--ink-faint)); font-size: 12.5px; font-style: normal; white-space: nowrap; }
.mock-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: rgb(var(--fig)); box-shadow: 0 0 0 3px rgb(var(--fig) / 0.18); }
.mock-mini { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; }
.mock-mini b { display: block; color: rgb(var(--heading)); }
.mock-mini span span { display: block; color: rgb(var(--ink-soft)); font-size: 13px; }
.mock-ic { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgb(var(--brand-soft)); color: rgb(var(--brand)); }
.mock-chip { margin-left: auto; padding: 4px 10px; border-radius: 999px; background: rgb(var(--hue-pending) / 0.14); color: rgb(var(--hue-pending)); font-size: 12px; font-weight: 700; }
@media (min-width: 640px) { .mock-orgs .mock-mini { width: 86%; margin: -36px 0 0 auto; } }

/* the chat that buries a task, and the same task in Karo */
.mock-group { gap: 0; padding: 0; overflow: hidden; background: #efeae2; }
html.dark .mock-group { background: #0b141a; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #008069; color: #fff; }
html.dark .chat-head { background: #202c33; color: rgb(var(--ink)); }
.chat-head b { display: block; font-size: 15px; }
.chat-head span span { display: block; font-size: 12px; opacity: 0.8; }
.chat-av { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgb(255 255 255 / 0.2); }
.chat-unread { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: #25d366; color: #0b141a; font-size: 12px; font-weight: 800; }
.chat-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 10px; }
.bubble { position: relative; align-self: flex-start; max-width: 86%; padding: 6px 10px 18px; border-radius: 4px 12px 12px 12px; background: #fff; box-shadow: 0 1px 1px rgb(0 0 0 / 0.08); color: #111b21; font-size: 13.5px; }
.bubble b { display: block; font-size: 12px; font-weight: 700; }
.bubble time { position: absolute; right: 8px; bottom: 3px; color: #667781; font-size: 10.5px; }
.bubble.is-me { align-self: flex-end; border-radius: 12px 4px 12px 12px; background: #d9fdd3; }
.bubble.is-lost { outline: 2px dashed rgb(var(--hue-overdue)); outline-offset: 2px; }
html.dark .bubble { background: #202c33; color: #e9edef; }
html.dark .bubble.is-me { background: #005c4b; }
html.dark .bubble time { color: #8696a0; }
.s1 { color: #1f7aec; } .s2 { color: #c4157a; } .s3 { color: #088f5c; }
html.dark .s1 { color: #53bdeb; } html.dark .s2 { color: #ff7eb6; } html.dark .s3 { color: #3dd68c; }
.chat-tag { display: flex; align-items: center; gap: 8px; margin: 4px 14px 14px; padding: 8px 12px; border-radius: 10px; background: rgb(var(--hue-overdue) / 0.1); color: rgb(var(--hue-overdue)); font-size: 13px; font-weight: 650; }
html:not(.dark) .chat-tag { background: #fff1f0; color: #b42318; }
.mock-task { border-left: 5px solid #d92d20; }
html.dark .mock-task { border-left-color: #ff6b78; }
.mock-task > b { color: rgb(var(--heading)); font-size: 17px; line-height: 1.3; }
.mock-task .pm-who { font-size: 13.5px; }
.mock-bar { height: 6px; overflow: hidden; border-radius: 6px; background: rgb(var(--well)); }
html:not(.dark) .mock-bar { background: #eef2f6; }
.mock-bar i { display: block; width: 60%; height: 100%; border-radius: inherit; background: rgb(var(--hue-progress)); }
.mock-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mock-task .pm-pill { font-size: 12.5px; }
.mock-nudge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: #25d366; color: #0b141a; font-size: 13px; font-weight: 700; }
.mock-foot { color: rgb(var(--ink-faint)); font-size: 12.5px; }
.mock-task { position: relative; z-index: 1; width: 92%; margin: -28px 0 0 auto; }
.mock-group { padding-bottom: 28px; }
@media (min-width: 640px) { .mock-group { width: 88%; } .mock-task { width: 74%; margin-top: -44px; } .mock-group { padding-bottom: 44px; } }

/* place reminders: the map with a saved place's circle, the places, the reminder on arrival */
.mock-map-card { gap: 14px; padding: 14px 14px 40px; }
.map { position: relative; height: 196px; overflow: hidden; border-radius: 16px; background: rgb(var(--map-land)); }
.map-road { position: absolute; background: rgb(var(--map-road)); box-shadow: 0 0 0 1px rgb(var(--line-strong) / 0.6); }
.map-road-a { left: -10%; right: -10%; top: 62%; height: 14px; transform: rotate(-7deg); }
.map-road-b { top: -10%; bottom: -10%; left: 28%; width: 12px; transform: rotate(11deg); }
.map-road-c { top: -10%; bottom: -10%; left: 84%; width: 9px; transform: rotate(-5deg); }
.map-block { position: absolute; border-radius: 8px; background: rgb(var(--map-block)); }
.map-block-a { left: 5%; top: 10%; width: 17%; height: 34%; }
.map-block-b { left: 38%; top: 8%; width: 30%; height: 20%; }
.map-block-c { left: 40%; top: 76%; width: 26%; height: 18%; }
.map-ring, .map-pin, .map-label, .map-you { position: absolute; left: 58%; top: 46%; }
.map-ring { width: 120px; height: 120px; margin: -60px 0 0 -60px; border: 2px solid rgb(var(--brand) / 0.55); border-radius: 50%; background: rgb(var(--brand) / 0.12); }
.map-ring::after { content: ''; position: absolute; inset: -2px; border: 2px solid rgb(var(--brand) / 0.45); border-radius: 50%; animation: map-pulse 2.8s ease-out infinite; }
@keyframes map-pulse { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.45); } }
.map-pin { display: grid; place-items: center; width: 38px; height: 38px; margin: -46px 0 0 -19px; border-radius: 50%; background: rgb(var(--card)); color: rgb(var(--brand)); box-shadow: 0 8px 18px -6px rgb(var(--navy) / 0.45); }
.map-label { margin-top: 66px; padding: 3px 10px; border-radius: 999px; background: rgb(var(--card)); box-shadow: var(--shadow-sm); color: rgb(var(--heading)); font-size: 12px; font-weight: 700; white-space: nowrap; transform: translateX(-50%); }
.map-you { width: 16px; height: 16px; margin: 6px 0 0 22px; border: 3px solid rgb(var(--card)); border-radius: 50%; background: rgb(var(--hue-progress)); box-shadow: 0 0 0 6px rgb(var(--hue-progress) / 0.22); }
.places-list li { padding: 10px 12px; }
.places-list li.is-on { background: rgb(var(--brand-soft)) !important; color: rgb(var(--brand-ink)); }
.places-list li.is-on em { color: rgb(var(--brand-ink)); font-weight: 700; }
.place-ic { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgb(var(--card)); color: rgb(var(--brand)); box-shadow: var(--shadow-sm); }
.mock-notify { position: relative; z-index: 1; gap: 4px; width: 90%; margin: -30px 0 0 auto; padding: 14px 18px 16px; }
.notify-head { display: flex; align-items: center; gap: 8px; color: rgb(var(--ink-faint)); font-size: 12.5px; font-weight: 650; }
.notify-head img { width: 18px; height: 18px; border-radius: 5px; }
.notify-head span::before { content: '\00B7\0020'; }
.mock-notify > b { color: rgb(var(--heading)); font-size: 15.5px; line-height: 1.35; }
.notify-text { color: rgb(var(--ink-soft)); font-size: 13.5px; }
@media (min-width: 640px) { .mock-map-card { width: 90%; padding-bottom: 52px; } .mock-notify { width: 70%; margin-top: -46px; } }

/* the Karo Pin to share, and a contact request */
.pin-card { align-items: flex-start; gap: 10px; padding: 26px 24px 46px; background: radial-gradient(22rem 12rem at 100% 0%, rgb(var(--brand) / 0.12), transparent 70%), rgb(var(--card)); }
.pin-code { color: rgb(var(--heading)); font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: 0.06em; line-height: 1.1; }
.pin-note { max-width: 34ch; color: rgb(var(--ink-soft)); font-size: 14px; }
.pin-actions, .pin-req-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pin-actions { margin-top: 4px; }
.pin-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid rgb(var(--line-strong)); border-radius: 999px; background: rgb(var(--card)); color: rgb(var(--ink-soft)); font-size: 13px; font-weight: 700; white-space: nowrap; }
.pin-btn.is-primary { border-color: transparent; background: rgb(var(--brand)); color: rgb(var(--on-brand)); }
.pin-req { position: relative; z-index: 1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 14px; width: 92%; margin: -28px 0 0 auto; padding: 16px 18px; }
.pin-av { display: grid; flex: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, rgb(var(--brand)), rgb(var(--brand-dark))); color: rgb(var(--on-brand)); font-size: 14px; font-weight: 800; }
.pin-who { flex: 1 1 150px; min-width: 0; }
.pin-who b { display: block; color: rgb(var(--heading)); }
.pin-who span { display: block; color: rgb(var(--ink-soft)); font-size: 13px; }
.pin-req-actions { margin-left: auto; }
@media (min-width: 640px) { .pin-card { width: 88%; } .pin-req { width: 78%; margin-top: -40px; } }

/* ------------------------------------------------------------------ use cases */

.aud { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.aud-art { position: relative; display: flex; align-items: flex-end; height: 148px; padding: 24px; overflow: hidden; background: linear-gradient(135deg, #0176d3, #032d60); }
.aud-2 { background: linear-gradient(135deg, #0086c9, #014486); }
.aud-3 { background: linear-gradient(135deg, #6d3fd9, #2b1666); }
html.dark .aud-art { filter: saturate(0.85) brightness(0.85); }
.aud-art::before { content: ''; position: absolute; inset: 0; background: var(--dots) 0 0 / 16px 16px; -webkit-mask-image: linear-gradient(200deg, #000, transparent 70%); }
.aud-art::after { content: ''; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 50%; box-shadow: 0 0 0 30px rgb(255 255 255 / 0.05); }
.aud-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: #fff; box-shadow: 0 12px 24px -10px rgb(0 0 0 / 0.45); color: #032d60; }
.aud-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 26px 28px 28px; }
.aud-body h3 { font-size: 1.25rem; }
.aud-body p { color: rgb(var(--ink-soft)); font-size: 15.5px; line-height: 1.6; }

/* ------------------------------------------------------------------ languages */

.langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 1px; overflow: hidden; border: 1px solid rgb(var(--line)); border-radius: var(--r-lg); background: rgb(var(--line)); box-shadow: var(--shadow-sm); list-style: none; }
.langs li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 132px; padding: 24px 8px; background: rgb(var(--card)); text-align: center; }
.lang-native { color: rgb(var(--heading)); font-size: clamp(1.2rem, 0.9rem + 1.2vw, 1.875rem); font-weight: 700; line-height: 1.25; }
.lang-name { color: rgb(var(--ink-faint)); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
@media (min-width: 960px) { .langs li { min-height: 170px; } }

/* ------------------------------------------------------------------ stats, quotes */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; margin: 0; }
.stat { display: flex; flex-direction: column-reverse; padding: 28px; border: 1px solid rgb(var(--line)); border-radius: var(--r-lg); background: rgb(var(--card)); text-align: center; }
.stat dd { margin: 0; color: rgb(var(--brand)); font-size: clamp(2.25rem, 1.7rem + 1.8vw, 3.25rem); font-weight: 800; letter-spacing: -0.04em; }
.stat dt { color: rgb(var(--ink-soft)); }
.quote { height: 100%; margin: 0; padding: 28px; }
.quote blockquote { margin: 0; font-size: 17px; }
.quote figcaption { display: flex; flex-direction: column; margin-top: 16px; font-size: 14px; }
.quote figcaption span { color: rgb(var(--ink-faint)); }

/* ------------------------------------------------------------------ faq */

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
@media (min-width: 960px) {
  .faq-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .faq-side { position: sticky; top: calc(var(--header-h) + 32px); }
}
.faq-ask { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 32px; padding: 20px; border: 1px solid rgb(var(--line)); border-radius: var(--r); background: rgb(var(--card)); color: rgb(var(--ink-soft)); font-size: 15px; }
.faq-ask .tile-ic { width: 40px; height: 40px; margin: 0; border-radius: 12px; }
.faq-ask b { display: block; color: rgb(var(--heading)); }
.faq-ask a { overflow-wrap: anywhere; }
.faq details { border-bottom: 1px solid rgb(var(--line)); }
.faq details:first-child { border-top: 1px solid rgb(var(--line)); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 17.5px; font-weight: 650; }
.faq summary:hover h3 { color: rgb(var(--brand-ink)); }
.faq-ic { box-sizing: content-box; padding: 6px; border-radius: 50%; background: rgb(var(--ink) / 0.05); color: rgb(var(--ink-soft)); transition: transform 0.2s, background-color 0.2s; }
.faq details[open] .faq-ic { background: rgb(var(--brand-soft)); color: rgb(var(--brand)); transform: rotate(45deg); }
.faq-a { padding: 0 48px 24px 0; color: rgb(var(--ink-soft)); }

/* ------------------------------------------------------------------ plain pages */

.page-head, .post-head, .notfound { padding: calc(var(--header-h) + 48px) 0 48px; background: radial-gradient(40rem 20rem at 90% 0%, rgb(var(--brand) / 0.1), transparent 70%), linear-gradient(180deg, rgb(var(--brand-soft) / 0.75), rgb(var(--bg)) 70%); }
html.dark :is(.page-head, .post-head, .notfound) { background: radial-gradient(40rem 20rem at 90% 0%, rgb(var(--brand) / 0.12), transparent 70%), rgb(var(--bg)); }
.page-head h1 { max-width: 900px; font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); }
.page-head .intro { max-width: 680px; }
@media (min-width: 960px) { .page-head { padding: calc(var(--header-h) + 72px) 0 56px; } }
.page-head + .sec { padding-top: 32px; }
.page-head + .sec-richText { padding-top: 8px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; list-style: none; color: rgb(var(--ink-soft)); font-size: 14px; }
.crumbs li + li::before { content: '/'; margin-right: 8px; color: rgb(var(--ink-faint) / 0.7); }
.crumbs a { color: rgb(var(--brand-ink)); text-decoration: none; }
.crumbs a:hover { color: rgb(var(--brand-ink)); }
.read-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; }
@media (min-width: 1024px) {
  .read-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 72px; align-items: start; }
  .read-grid .toc { position: sticky; top: calc(var(--header-h) + 32px); max-height: calc(100vh - var(--header-h) - 64px); overflow-y: auto; }
}
.toc { padding: 20px 22px; border: 1px solid rgb(var(--line)); border-radius: var(--r); background: rgb(var(--card)); font-size: 14.5px; }
.toc p { margin-bottom: 10px; color: rgb(var(--heading)); font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.toc ol { display: grid; list-style: none; }
.toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid rgb(var(--line)); color: rgb(var(--ink-soft)); line-height: 1.4; text-decoration: none; }
.toc a:hover { border-left-color: rgb(var(--brand-ink)); color: rgb(var(--brand-ink)); }

/* ------------------------------------------------------------------ blog */

.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.post-card:hover { border-color: rgb(var(--brand) / 0.35); box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card-cover { display: block; overflow: hidden; text-decoration: none; }
.post-card-cover img, .cover-art { width: 100%; max-height: 270px; aspect-ratio: 1200 / 630; object-fit: cover; }
.cover-art { position: relative; display: flex; align-items: flex-end; padding: 22px 24px; overflow: hidden; background: radial-gradient(22rem 14rem at 100% 0%, rgb(27 150 255 / 0.55), transparent 70%), linear-gradient(150deg, #032d60, #001639); }
.cover-2 { background: radial-gradient(22rem 14rem at 100% 0%, rgb(83 189 235 / 0.5), transparent 70%), linear-gradient(150deg, #0176d3, #032d60); }
.cover-3 { background: radial-gradient(22rem 14rem at 100% 0%, rgb(167 145 255 / 0.45), transparent 70%), linear-gradient(150deg, #2b1666, #032d60); }
.cover-art::before { content: ''; position: absolute; inset: 0; background: var(--dots) 0 0 / 16px 16px; -webkit-mask-image: linear-gradient(110deg, #000, transparent 55%); }
.cover-mark { position: absolute; right: 22px; top: 20px; width: 22%; aspect-ratio: 6 / 5; background: url(tick.svg) no-repeat center / contain; }
.cover-tag { position: relative; color: #fff; font-size: clamp(1.4rem, 1rem + 1.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.post-card-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 24px 26px 26px; }
.post-card h2, .post-card h3 { font-size: 1.25rem; font-weight: 750; line-height: 1.3; letter-spacing: -0.02em; }
.post-card h2 a, .post-card h3 a { color: inherit; text-decoration: none; }
.post-card h2 a:hover, .post-card h3 a:hover { color: rgb(var(--brand-ink)); }
.post-excerpt { color: rgb(var(--ink-soft)); font-size: 15.5px; line-height: 1.6; }
.post-tag { color: rgb(var(--brand-ink)); font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.post-meta { margin-top: auto; padding-top: 8px; color: rgb(var(--ink-faint)); font-size: 14px; }
@media (min-width: 860px) {
  .post-card.is-featured { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); margin-bottom: 24px; }
  .post-card.is-featured .post-card-cover img, .post-card.is-featured .cover-art { height: 100%; min-height: 340px; max-height: none; }
  .post-card.is-featured .post-card-body { justify-content: center; padding: 48px; }
  .post-card.is-featured h2 { font-size: clamp(1.75rem, 1.3rem + 1vw, 2.25rem); }
  .post-card.is-featured .post-meta { margin-top: 12px; }
}
.post-card.is-featured { margin-bottom: 20px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; list-style: none; }
.topics a, .tags a { display: inline-block; padding: 7px 14px; border: 1px solid rgb(var(--line-strong)); border-radius: 999px; background: rgb(var(--card)); color: rgb(var(--ink-soft)); font-size: 14px; font-weight: 550; text-decoration: none; }
.topics a:hover, .tags a:hover, .topics a[aria-current] { border-color: rgb(var(--brand-ink)); color: rgb(var(--brand-ink)); }
.sec-blog { padding-top: 48px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; }
.pager-n { color: rgb(var(--ink-faint)); font-size: 14px; }
.empty { padding: 48px 0; color: rgb(var(--ink-faint)); text-align: center; }

/* a post */
.post-head { padding-bottom: 40px; }
main > .post:first-child { margin-top: 0; }
main > .post:first-child > .post-head { margin-top: calc(-1 * var(--header-h)); }
.post-head h1 { font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem); line-height: 1.08; }
.post-head .lead { margin-top: 20px; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 32px; }
.avatar { display: grid; flex: none; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(145deg, #0176d3, #032d60); color: #fff; font-weight: 800; }
.byline p { color: rgb(var(--ink-soft)); font-size: 14.5px; line-height: 1.4; }
.byline b { color: rgb(var(--heading)); font-size: 15.5px; }
.byline-meta { display: block; color: rgb(var(--ink-faint)); }
.post-cover-wrap { max-width: 1104px; }
.post-figure { margin: 0 0 8px; }
.post-cover { width: 100%; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.post-layout { max-width: 792px; padding-top: 24px; padding-bottom: 80px; }
.post-layout .toc { margin-bottom: 36px; }
/* Wide screens: "On this page" waits in the margin, beside the text. */
@media (min-width: 1240px) {
  .post-layout.has-toc { display: grid; grid-template-columns: 1fr minmax(0, 728px) 1fr; gap: 48px; max-width: none; }
  .post-layout.has-toc .toc { position: sticky; top: calc(var(--header-h) + 32px); justify-self: end; width: 230px; margin: 0; padding: 0; border: 0; background: none; }
  .post-layout.has-toc .post-main { grid-column: 2; grid-row: 1; }
}
.post-main .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgb(var(--line)); list-style: none; }
.post-cta { position: relative; overflow: hidden; isolation: isolate; margin-top: 48px; padding: 36px; border-radius: var(--r-lg); background: radial-gradient(30rem 18rem at 100% 0%, rgb(27 150 255 / 0.45), transparent 65%), var(--navy-grad); color: rgb(var(--on-band)); }
.post-cta h2 { color: inherit; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.post-cta p { max-width: 460px; margin-top: 10px; color: rgb(var(--on-band) / 0.8); }
.post-cta .actions { margin-top: 24px; }
.post-cta-mark { position: absolute; z-index: -1; right: 32px; top: 32px; width: 64px; height: 54px; background: url(tick.svg) no-repeat center / contain; }
@media (max-width: 639px) { .post-cta-mark { display: none; } }

/* Markdown: posts, rich text, FAQ answers */
.prose { max-width: 70ch; color: rgb(var(--ink) / 0.9); font-size: 17px; line-height: 1.75; overflow-wrap: break-word; }
@media (min-width: 640px) { .prose { font-size: 18px; } }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { margin-top: 2.1em; font-size: 1.65rem; line-height: 1.2; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h4 { margin-top: 1.5em; font-size: 1.08rem; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: 0.6em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: rgb(var(--ink)); font-weight: 650; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { padding-left: 0.25em; }
.prose li + li { margin-top: 0.45em; }
.prose li::marker { color: rgb(var(--brand)); font-weight: 700; }
.prose a { font-weight: 550; text-decoration: underline; text-decoration-color: rgb(var(--brand) / 0.4); }
.prose a:hover { text-decoration-color: currentColor; }
.prose blockquote { margin: 1.6em 0; padding: 16px 22px; border-left: 4px solid rgb(var(--brand)); border-radius: 0 14px 14px 0; background: rgb(var(--brand-soft) / 0.6); color: rgb(var(--ink)); }
.prose code { padding: 2px 6px; border-radius: 6px; background: rgb(var(--well)); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 0.88em; }
html:not(.dark) .prose code { background: #f1f4f8; }
.prose pre { padding: 18px 20px; overflow-x: auto; border-radius: 14px; background: #0b1220; color: #e9edef; font-size: 15px; line-height: 1.6; }
.prose pre code { padding: 0; background: none !important; color: inherit; }
.prose img { border-radius: 14px; }
.prose hr { margin: 2.5em 0; border: 0; border-top: 1px solid rgb(var(--line)); }
.prose table { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.prose th, .prose td { padding: 11px 14px; border-bottom: 1px solid rgb(var(--line)); text-align: left; vertical-align: top; }
.prose .ta-left { text-align: left; }
.prose .ta-center { text-align: center; }
.prose .ta-right { text-align: right; }
.prose th { border-bottom-width: 2px; color: rgb(var(--heading)); font-weight: 700; white-space: nowrap; }
.prose tr:nth-child(even) td { background: rgb(var(--bg-alt)); }
.read-grid .prose { font-size: 17px; }
.faq-a.prose { max-width: none; font-size: 16px; line-height: 1.7; color: rgb(var(--ink-soft)); }
.faq-a.prose > * + * { margin-top: 0.8em; }

/* ------------------------------------------------------------------ contact form */

/* The message form on /contact, before the page's own sections (backend/src/site/render/contact.js; site.js sends it). */
.contact-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) {
  .contact-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .contact-side { position: sticky; top: calc(var(--header-h) + 32px); }
}
.contact-side h2 { font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem); }
.contact-ways { display: grid; gap: 14px; margin-top: 32px; list-style: none; }
.contact-ways li { display: flex; align-items: center; gap: 14px; min-width: 0; color: rgb(var(--ink-soft)); font-size: 15px; line-height: 1.45; }
.contact-ways li > span:last-child { min-width: 0; }
.contact-ways .tile-ic { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.contact-ways b { display: block; color: rgb(var(--heading)); }
.contact-ways a { font-weight: 550; overflow-wrap: anywhere; }
.contact-card { padding: 24px 20px; }
@media (min-width: 640px) { .contact-card { padding: 36px; } }
.cform { position: relative; display: grid; gap: 20px; }
.cform[hidden], .cform-done[hidden], .cform-alert[hidden], .field-error[hidden] { display: none; }
.cform-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .cform-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.field label { color: rgb(var(--heading)); font-size: 15px; font-weight: 600; }
.opt { margin-left: 4px; color: rgb(var(--ink-faint)); font-size: 13px; font-weight: 500; }
.field :is(input, select, textarea) {
  width: 100%; min-height: 50px; margin: 0; padding: 12px 14px;
  border: 1.5px solid rgb(var(--line-strong)); border-radius: 12px;
  background: rgb(var(--bg)); color: rgb(var(--ink));
  font: inherit; font-size: 16px; line-height: 1.45;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 168px; resize: vertical; }
.field :is(input, textarea)::placeholder { color: rgb(var(--ink-faint)); opacity: 1; }
.field :is(input, select, textarea):hover { border-color: rgb(var(--ink-faint) / 0.75); }
.field :is(input, select, textarea):focus { border-color: rgb(var(--brand)); outline: none; box-shadow: 0 0 0 4px rgb(var(--brand) / 0.18); }
.field.has-error :is(input, select, textarea) { border-color: rgb(var(--hue-overdue)); }
.field.has-error :is(input, select, textarea):focus { box-shadow: 0 0 0 4px rgb(var(--hue-overdue) / 0.18); }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select::after { content: ''; position: absolute; right: 19px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid rgb(var(--ink-soft)); border-bottom: 2px solid rgb(var(--ink-soft)); transform: rotate(45deg); pointer-events: none; }
.field-hint { color: rgb(var(--ink-faint)); font-size: 14px; line-height: 1.45; }
.field-hint:has(.cform-count) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px; }
.cform-count { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cform-count.is-over { color: rgb(var(--hue-overdue)); font-weight: 600; }
.field-error { display: flex; align-items: flex-start; gap: 6px; color: rgb(var(--hue-overdue)); font-size: 14px; font-weight: 550; line-height: 1.4; }
.field-error .ic { margin-top: 1px; }
.cform-alert { display: flex; align-items: flex-start; gap: 10px; padding: 14px 16px; border: 1px solid rgb(var(--hue-overdue) / 0.35); border-radius: 12px; background: rgb(var(--hue-overdue) / 0.08); color: rgb(var(--ink)); font-size: 15px; line-height: 1.5; }
.cform-alert .ic { margin-top: 2px; color: rgb(var(--hue-overdue)); }
.cform-alert a { font-weight: 600; overflow-wrap: anywhere; }
/* The honeypot: off screen for people, there for bots. */
.cform-hp { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.cform-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.cform-note { flex: 1 1 220px; color: rgb(var(--ink-faint)); font-size: 14px; line-height: 1.5; }
@media (max-width: 479px) { .cform-send { width: 100%; } }
.cform-send .spin { display: none; flex: none; width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cform-spin 0.7s linear infinite; }
.cform-send:disabled { cursor: progress; opacity: 0.85; }
.cform-send.is-sending .spin { display: inline-block; }
.cform-send.is-sending .ic-go { display: none; }
@keyframes cform-spin { to { transform: rotate(360deg); } }
.cform-done { display: flex; flex-direction: column; align-items: center; padding: 28px 0; text-align: center; }
.cform-done:focus { outline: none; }
.cform-done-ic { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 50%; background: rgb(var(--hue-done) / 0.12); color: rgb(var(--hue-done)); }
.cform-done h3 { font-size: 1.5rem; }
.cform-done p { max-width: 420px; margin: 10px 0 24px; color: rgb(var(--ink-soft)); font-size: 16.5px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------------ 404 */

.notfound { padding-bottom: 112px; }
.nf-code { margin-bottom: 8px; background: linear-gradient(135deg, rgb(var(--brand)), rgb(var(--heading))); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(5rem, 3rem + 9vw, 9rem); font-weight: 800; letter-spacing: -0.06em; line-height: 1; }
.notfound .lead { margin-top: 16px; }
.nf-links { display: grid; gap: 12px; margin-top: 40px; list-style: none; }
@media (min-width: 640px) { .nf-links { grid-template-columns: 1fr 1fr; } }
.nf-links a { display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; border: 1px solid rgb(var(--line)); border-radius: var(--r); background: rgb(var(--card)); color: rgb(var(--ink-soft)); font-size: 14px; text-decoration: none; transition: border-color 0.2s, box-shadow 0.2s; }
.nf-links a:hover { border-color: rgb(var(--brand) / 0.5); box-shadow: var(--shadow); }
.nf-links .tile-ic { width: 44px; height: 44px; margin: 0; border-radius: 12px; }
.nf-links b { display: block; color: rgb(var(--heading)); font-size: 16px; }

/* ------------------------------------------------------------------ footer */

.site-footer { padding: 72px 0 36px; background: #001639; color: rgb(255 255 255 / 0.72); font-size: 15px; }
html.dark .site-footer { border-top: 1px solid rgb(var(--line)); background: #081015; color: rgb(var(--ink-soft)); }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
html.dark .site-footer a:hover { color: rgb(var(--ink)); }
.footer-top { display: grid; gap: 48px; }
@media (min-width: 960px) { .footer-top { grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 72px; } }
.site-footer .brand-footer, .site-footer .brand-footer:hover { color: #fff; text-decoration: none; }
html.dark .site-footer .brand-footer { color: rgb(var(--ink)); }
.brand-footer img { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.18); }
.footer-brand p { max-width: 320px; margin-top: 18px; line-height: 1.6; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; list-style: none; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgb(255 255 255 / 0.2); border-radius: 50%; color: #fff; transition: background-color 0.15s, border-color 0.15s; }
html.dark .socials a { border-color: rgb(var(--line-strong)); color: rgb(var(--ink)); }
.socials a:hover { border-color: #fff; background: rgb(255 255 255 / 0.1); }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
@media (min-width: 720px) { .footer-cols { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); } }
.footer-cols h2 { margin-bottom: 16px; color: #fff; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
html.dark .footer-cols h2 { color: rgb(var(--ink)); }
.footer-cols ul { display: grid; gap: 12px; list-style: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgb(255 255 255 / 0.14); font-size: 14px; }
html.dark .footer-bottom { border-top-color: rgb(var(--line)); }
.made { display: inline-flex; align-items: center; gap: 10px; }
.tricolour { display: inline-flex; flex-direction: column; width: 20px; height: 14px; overflow: hidden; border-radius: 3px; box-shadow: 0 0 0 1px rgb(255 255 255 / 0.2); }
.tricolour i { flex: 1; background: #ff9933; }
.tricolour i + i { background: #fff; }
.tricolour i + i + i { background: #138808; }

/* ------------------------------------------------------------------ motion, print */

/* Scrolling in (site.js): what starts below the fold rises into place as it comes into view. */
html.reveal .rv { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
html.reveal .rv.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media print {
  .site-header, .announce, .site-footer, .band, .hero-visual, .post-cta, .jump { display: none; }
  body { background: #fff; }
  html.reveal .rv { opacity: 1 !important; transform: none !important; }
}

/* The fallback landing page (backend/src/site/fallback.js): shown while the
   site cannot be built from the database. */
.fallback-note { display: flex; gap: 12px; align-items: flex-start; max-width: 60ch; margin: 0 0 24px; padding: 14px 16px; border: 1px solid rgb(var(--line)); border-left: 4px solid rgb(var(--brand)); border-radius: 12px; background: rgb(var(--card)); color: rgb(var(--ink)); }
.fallback-points { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); list-style: none; padding: 0; margin: 40px 0 0; }
.fallback-points li { padding: 16px; border: 1px solid rgb(var(--line)); border-radius: 14px; background: rgb(var(--card)); color: rgb(var(--ink-soft)); }
.fallback-points strong { color: rgb(var(--ink)); }
.is-fallback .site-footer { padding-block: 24px; color: rgb(255 255 255 / 0.8); }
.is-fallback .site-footer a { color: inherit; }
