/* Finance OS website. Colours from app/lib/ui/theme.dart and premium.dart.
   Phone first; no external fonts (system font stack); no inline styles (CSP style-src 'self'). */

:root {
  color-scheme: light dark;
  --bg: #F7F9F9;
  --bg-2: #EDF2F2;
  --card: #FFFFFF;
  --line: #D9E0DF;
  --text: #0F1F1D;
  --muted: #475569;
  --primary: #0F766E;
  --primary-strong: #0B5D57;
  --on-primary: #FFFFFF;
  --indigo: #4F46E5;
  --violet: #7C3AED;
  --focus: #4F46E5;
  --header-bg: rgba(247, 249, 249, 0.88);
  --hero-1: #0B5D57;
  --hero-2: #134E6F;
  --hero-3: #312E81;
  --income: #15803D;
  --expense: #C53030;
  --transfer: #4338CA;
  --pending: #B45309;
  --ok-fg: #166534;
  --ok-bg: #DCFCE7;
  --pre-fg: #92400E;
  --pre-bg: #FEF3C7;
  --soon-fg: #334155;
  --soon-bg: #E2E8F0;
  --plan-free: #475569;
  --plan-plus: #6D28D9;
  --plan-business: #0F766E;
  --plan-organization: #C2410C;
  --plan-enterprise: #3730A3;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px -16px rgba(15, 23, 42, 0.22);
  --radius: 18px;
  --radius-sm: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1514;
    --bg-2: #121B1A;
    --card: #19211F;
    --line: #2F3A38;
    --text: #E7EFED;
    --muted: #B9C5C3;
    --primary: #5EEAD4;
    --primary-strong: #99F6E4;
    --on-primary: #00332E;
    --indigo: #A5B4FC;
    --violet: #C4B5FD;
    --focus: #A5B4FC;
    --header-bg: rgba(14, 21, 20, 0.88);
    --hero-1: #0B4A45;
    --hero-2: #123B57;
    --hero-3: #2A2770;
    --income: #4ADE80;
    --expense: #FF8A80;
    --transfer: #A5B4FC;
    --pending: #FCD34D;
    --ok-fg: #86EFAC;
    --ok-bg: rgba(34, 197, 94, 0.16);
    --pre-fg: #FCD34D;
    --pre-bg: rgba(245, 158, 11, 0.16);
    --soon-fg: #CBD5E1;
    --soon-bg: rgba(148, 163, 184, 0.16);
    --plan-free: #CBD5E1;
    --plan-plus: #C4B5FD;
    --plan-business: #5EEAD4;
    --plan-organization: #FDBA74;
    --plan-enterprise: #A5B4FC;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  }
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { color: var(--primary-strong); }
strong { font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
ul, ol { padding-left: 1.25em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.container--wide { width: min(1360px, 100% - 32px); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--card); color: var(--text); padding: 12px 16px; border-radius: var(--radius-sm);
  box-shadow: var(--shadow); font-weight: 700;
}
.skip-link:focus { top: 8px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.small { font-size: 0.875rem; }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.eyebrow {
  display: inline-block; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.75rem;
}

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; color: var(--text); text-decoration: none; }
.brand:hover { color: var(--text); }
.brand svg { width: 36px; height: 36px; flex: none; }
.brand-name { font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; }
.brand-by { font-size: 0.8125rem; color: var(--muted); font-weight: 600; }
.menu-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 48px; min-height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--card); color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
}
.menu-button svg { width: 20px; height: 20px; }
@media (max-width: 399px) {
  .menu-button { padding: 0; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.site-nav { width: 100%; }
.site-nav ul { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-wrap: wrap; gap: 2px 4px; }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 12px;
  border-radius: var(--radius-sm); color: var(--text); text-decoration: none; font-weight: 600;
}
.site-nav a:hover { background: var(--bg-2); color: var(--text); }
.site-nav a[aria-current="page"] { color: var(--primary); background: var(--bg-2); }
@media (max-width: 759px) {
  html.js .site-nav:not(.is-open) { display: none; }
  html.js .site-nav ul { flex-direction: column; }
  html.js .site-nav a { width: 100%; }
}
@media (min-width: 760px) {
  .menu-button { display: none; }
  .site-nav { width: auto; }
  .site-nav ul { padding: 0; }
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; font: inherit; font-weight: 700; line-height: 1.2;
  text-decoration: none; cursor: pointer; text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.btn-primary:hover { color: var(--on-primary); background: var(--primary-strong); }
.btn-outline { background: var(--card); color: var(--text); border-color: var(--line); }
.btn-outline:hover { color: var(--text); border-color: var(--primary); }
.btn-light { background: #FFFFFF; color: #0B5D57; }
.btn-light:hover { color: #0B5D57; background: #ECFDF9; }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #FFFFFF; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.16); }
.btn-plan { background: var(--plan); color: #FFFFFF; width: 100%; }
.btn-plan:hover { color: #FFFFFF; filter: brightness(1.08); }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
button.btn-copy {
  min-height: 48px; min-width: 48px; padding: 0 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
}

/* ------------------------------------------------------------ hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate; color: #FFFFFF;
  background: linear-gradient(135deg, var(--hero-1) 0%, var(--hero-2) 55%, var(--hero-3) 100%);
  padding-block: clamp(48px, 10vw, 112px) clamp(56px, 10vw, 120px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; filter: blur(8px);
}
.hero::before {
  width: 520px; height: 520px; right: -180px; top: -200px;
  background: radial-gradient(closest-side, rgba(94, 234, 212, 0.45), rgba(94, 234, 212, 0));
}
.hero::after {
  width: 600px; height: 600px; left: -260px; bottom: -320px;
  background: radial-gradient(closest-side, rgba(165, 180, 252, 0.4), rgba(165, 180, 252, 0));
}
.hero a:not(.btn) { color: #FFFFFF; }
.hero :focus-visible { outline-color: #FFFFFF; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 0.25em; }
.hero h1 .by { display: block; font-size: 0.42em; font-weight: 700; letter-spacing: 0; opacity: 0.92; margin-top: 0.35em; }
.hero .lead { color: rgba(255, 255, 255, 0.9); }
.hero-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 20px;
  padding: 8px 14px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
}
.hero-note svg { width: 18px; height: 18px; flex: none; }
.hero-status { margin-top: 12px; font-size: 0.9rem; }
.hero .hero-status { color: rgba(255, 255, 255, 0.85); }
.page-hero { padding-block: clamp(40px, 8vw, 80px); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3rem); }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* decorative app mock, no data */
.mock { position: relative; max-width: 380px; width: 100%; margin-inline: auto; }
.mock-card {
  background: rgba(255, 255, 255, 0.96); color: #0F1F1D; border-radius: 24px; padding: 18px;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55); animation: float 7s ease-in-out infinite alternate;
}
.mock-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.mock-title { font-weight: 800; font-size: 0.95rem; }
.mock-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.mock-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.mock-pill--synced { color: #166534; background: #DCFCE7; }
.mock-bars { display: grid; gap: 10px; margin-bottom: 16px; }
.mock-bar { display: grid; grid-template-columns: 70px 1fr; align-items: center; gap: 10px; font-size: 0.78rem; font-weight: 700; color: #475569; }
.mock-bar span:last-child { height: 12px; border-radius: 999px; background: #E2E8F0; position: relative; overflow: hidden; }
.mock-bar span:last-child::after { content: ""; position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.mock-bar--in span:last-child::after { width: 78%; background: linear-gradient(90deg, #15803D, #4ADE80); }
.mock-bar--out span:last-child::after { width: 52%; background: linear-gradient(90deg, #C53030, #FF8A80); }
.mock-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #E5EAEA; }
.mock-dot { width: 36px; height: 36px; border-radius: 12px; }
.mock-dot--in { background: #DCFCE7; }
.mock-dot--out { background: #FEE2E2; }
.mock-dot--tr { background: #E0E7FF; }
.mock-lines span { display: block; height: 9px; border-radius: 999px; background: #E2E8F0; }
.mock-lines span + span { margin-top: 6px; width: 60%; background: #EEF2F2; }
.mock-kind { font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.mock-kind--in { color: #166534; background: #DCFCE7; }
.mock-kind--out { color: #9B1C1C; background: #FEE2E2; }
.mock-kind--tr { color: #3730A3; background: #E0E7FF; }
.mock-float {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  background: #FFFFFF; color: #0F1F1D; font-size: 0.8rem; font-weight: 800;
  padding: 10px 14px; border-radius: 14px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.55);
  animation: float 6s ease-in-out infinite alternate-reverse;
}
.mock-float svg { width: 18px; height: 18px; flex: none; }
.mock-float--a { left: -8px; bottom: -20px; color: #0B5D57; }
.mock-float--b { right: -6px; top: 38%; color: #3730A3; }
@media (min-width: 480px) {
  .mock-float--a { left: -28px; }
  .mock-float--b { right: -24px; }
}
@keyframes float { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ------------------------------------------------------------ sections */
.section { padding-block: clamp(48px, 8vw, 96px); }
.section--alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.trust { list-style: none; padding: 0; margin: -32px 0 0; display: grid; gap: 12px; grid-template-columns: 1fr; position: relative; z-index: 2; }
.trust-item {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  font-weight: 700;
}
.trust-item svg { width: 28px; height: 28px; flex: none; color: var(--primary); }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------ badges */
.badge {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 0.8125rem; font-weight: 800; line-height: 1.2; padding: 5px 10px; border-radius: 999px;
}
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.badge--available { color: var(--ok-fg); background: var(--ok-bg); }
.badge--preview { color: var(--pre-fg); background: var(--pre-bg); }
.badge--soon { color: var(--soon-fg); background: var(--soon-bg); }
.badge--sm { font-size: 0.75rem; padding: 3px 8px; }
.plan-chip {
  display: inline-flex; align-items: center; white-space: nowrap; font-size: 0.8125rem; font-weight: 800;
  line-height: 1.2; padding: 4px 10px; border-radius: 999px; color: var(--plan); border: 1.5px solid var(--plan);
}
[data-plan="free"] { --plan: var(--plan-free); }
[data-plan="plus"] { --plan: var(--plan-plus); }
[data-plan="business"] { --plan: var(--plan-business); }
[data-plan="organization"] { --plan: var(--plan-organization); }
[data-plan="enterprise"] { --plan: var(--plan-enterprise); }
@media (prefers-color-scheme: dark) {
  /* white text on plan fills needs the strong light-theme colours */
  .btn-plan[data-plan="free"] { background: #475569; }
  .btn-plan[data-plan="plus"] { background: #6D28D9; }
  .btn-plan[data-plan="business"] { background: #0F766E; }
  .btn-plan[data-plan="organization"] { background: #C2410C; }
  .btn-plan[data-plan="enterprise"] { background: #3730A3; }
}
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin: 0 0 24px; padding: 0; list-style: none; font-size: 0.9rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 8px; }

/* ------------------------------------------------------------ feature cards */
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px 20px; box-shadow: var(--shadow);
}
.card--accent::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--accent, var(--primary)), var(--indigo));
}
.card h3 { margin-bottom: 0.4em; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px;
  color: var(--accent, var(--primary)); background: var(--bg-2);
}
.card-icon svg { width: 26px; height: 26px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.accent-teal { --accent: #0F766E; }
.accent-indigo { --accent: #4338CA; }
.accent-sky { --accent: #0369A1; }
.accent-amber { --accent: #B45309; }
.accent-violet { --accent: #6D28D9; }
.accent-pink { --accent: #BE185D; }
.accent-green { --accent: #15803D; }
@media (prefers-color-scheme: dark) {
  .accent-teal { --accent: #5EEAD4; }
  .accent-indigo { --accent: #A5B4FC; }
  .accent-sky { --accent: #7DD3FC; }
  .accent-amber { --accent: #FCD34D; }
  .accent-violet { --accent: #C4B5FD; }
  .accent-pink { --accent: #F9A8D4; }
  .accent-green { --accent: #86EFAC; }
}
.status-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; font-size: 0.95rem; }
.status-list li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; }
.status-list .badge { margin-top: 1px; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 0.45em; width: 12px; height: 7px;
  border-left: 3px solid var(--primary); border-bottom: 3px solid var(--primary); transform: rotate(-45deg);
}

/* ------------------------------------------------------------ gradient band */
.band {
  color: #FFFFFF; border-radius: 28px; padding: clamp(24px, 5vw, 48px); position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--hero-1), var(--hero-2) 60%, var(--hero-3));
}
.band h2, .band h3 { color: #FFFFFF; }
.band p, .band li { color: rgba(255, 255, 255, 0.92); }
.band a:not(.btn) { color: #FFFFFF; }
.band :focus-visible { outline-color: #FFFFFF; }
.band .badge--preview { color: #FDE68A; background: rgba(253, 230, 138, 0.16); }
.band .badge--available { color: #BBF7D0; background: rgba(187, 247, 208, 0.16); }
.band .badge--soon { color: #E2E8F0; background: rgba(226, 232, 240, 0.16); }
.band-grid { display: grid; gap: 16px; margin-top: 24px; }
.band-col { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--radius); padding: 18px; }
.band-col ul { margin: 0; padding-left: 1.1em; }
@media (min-width: 760px) { .band-grid { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------ callouts */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start;
  border-radius: var(--radius); padding: 16px 18px; border: 1px solid var(--line); background: var(--card);
}
.callout svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.callout p { margin: 0; }
.callout p + p { margin-top: 0.5em; }
.callout--warn { background: var(--pre-bg); border-color: transparent; color: var(--text); }
.callout--warn svg { color: var(--pre-fg); }
.callout--info svg { color: var(--primary); }

/* ------------------------------------------------------------ pricing */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 640px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plans { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1280px) { .plans { grid-template-columns: repeat(5, 1fr); } }
.plan {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.plan.is-selected { border-color: var(--plan); box-shadow: 0 0 0 2px var(--plan), var(--shadow); }
.plan-bar { height: 6px; background: linear-gradient(90deg, var(--plan), var(--indigo)); }
.plan-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; flex: 1; }
.plan-name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.35rem; }
.plan-name svg { width: 30px; height: 30px; color: var(--plan); flex: none; }
.plan-tagline { color: var(--muted); margin: 0; font-size: 0.95rem; }
.plan-price { margin: 0; font-weight: 800; font-size: 1.35rem; color: var(--plan); line-height: 1.3; }
.plan-price .per { font-size: 0.9rem; font-weight: 700; }
.plan-price-alt { display: block; font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.plan-price-soon { font-size: 1.05rem; }
.plan h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 6px 0 0; }
.plan ul { margin: 0; }
.plan .checks li::before { border-color: var(--plan); }
.plan-limits { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 0.92rem; }
.plan-cta { margin-top: auto; display: grid; gap: 8px; }
.plan-cta .small { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare caption { text-align: left; padding: 16px; font-weight: 700; }
.compare th, .compare td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { border-top: 0; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); white-space: nowrap; }
.compare tbody th { font-weight: 700; }
.compare tbody th .desc { display: block; font-weight: 400; color: var(--muted); font-size: 0.875rem; margin-top: 2px; }
.compare .group th { background: var(--bg-2); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.compare td.c { text-align: center; }
/* tick / dash drawn in CSS; the words stay for screen readers */
.yes, .no { display: inline-block; position: relative; width: 22px; height: 22px; overflow: hidden; color: transparent; vertical-align: middle; white-space: nowrap; }
.yes::before {
  content: ""; position: absolute; left: 5px; top: 5px; width: 12px; height: 7px;
  border-left: 3px solid var(--plan, var(--primary)); border-bottom: 3px solid var(--plan, var(--primary)); transform: rotate(-45deg);
}
.no::before { content: ""; position: absolute; left: 6px; top: 10px; width: 10px; height: 2px; border-radius: 2px; background: var(--muted); }
.col-plan { display: none; }
@media (min-width: 760px) {
  .col-plan { display: table-cell; }
  .col-from { display: none; }
}
/* narrow screens: one block per feature (status and plan side by side under the name) */
@media (max-width: 599px) {
  .table-wrap--compare { overflow: hidden; }
  .compare, .compare tbody { display: block; }
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .compare tbody tr { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px 12px; padding: 14px 16px; border-top: 1px solid var(--line); }
  .compare tbody tr:first-child { border-top: 0; }
  .compare tbody th, .compare tbody td { display: block; padding: 0; border: 0; }
  .compare tbody th[scope="row"] { grid-column: 1 / -1; }
  .compare tbody td:empty { display: none; }
  .compare tbody td:empty + .col-from { grid-column: 1 / -1; }
  .compare tbody .col-plan { display: none; }
  .compare tr.group { background: var(--bg-2); padding: 10px 16px; }
  .compare tr.group th { background: none; }
}

/* ------------------------------------------------------------ downloads */
.platform { display: flex; flex-direction: column; gap: 12px; }
.platform-head { display: flex; align-items: center; gap: 12px; }
.platform-head svg { width: 40px; height: 40px; color: var(--accent, var(--primary)); flex: none; }
.platform-head h3 { margin: 0; }
.platform .btn { margin-top: auto; }
.platform .soon-label {
  margin-top: auto; display: flex; align-items: center; justify-content: center; min-height: 48px;
  border-radius: var(--radius-sm); border: 1px dashed var(--line); color: var(--muted); font-weight: 700;
}
.meta { margin: 0; display: grid; gap: 6px; font-size: 0.9rem; }
.meta div { display: grid; gap: 2px; }
.meta dt { color: var(--muted); font-weight: 700; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.hash { font-family: var(--mono); font-size: 0.82rem; word-break: break-all; }
.hash-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
pre.cmd {
  margin: 0.5em 0 1em; padding: 14px 16px; border-radius: var(--radius-sm); background: #0F1F1D; color: #E7EFED;
  font-family: var(--mono); font-size: 0.88rem; white-space: pre-wrap; word-break: break-word; overflow-x: auto;
}

/* ------------------------------------------------------------ checkout / status panel */
.panel {
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  padding: clamp(20px, 5vw, 36px); max-width: 680px;
}
.panel h2 { font-size: clamp(1.4rem, 4vw, 1.8rem); }
.panel-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; margin-bottom: 16px; background: var(--bg-2); color: var(--primary); }
.panel-icon svg { width: 30px; height: 30px; }
.ref { font-family: var(--mono); font-size: 0.9rem; overflow-wrap: anywhere; background: var(--bg-2); padding: 2px 6px; border-radius: 6px; }

/* ------------------------------------------------------------ FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px;
  padding: 12px 18px; cursor: pointer; font-weight: 700; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; line-height: 1; color: var(--primary); flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 18px 16px; }
.faq .answer p:last-child, .faq .answer ul:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: 32px; }

/* ------------------------------------------------------------ prose (legal) */
.prose { max-width: 74ch; }
.prose h2 { font-size: clamp(1.3rem, 3.5vw, 1.6rem); margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }
.prose li { margin-bottom: 0.35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg-2); }
.prose .table-wrap { margin-bottom: 1em; }
.prose .table-wrap table { margin: 0; }
.prose .table-wrap th, .prose .table-wrap td { border-width: 0 0 1px 0; }
.toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 8px; }
.toc ol { margin: 0; columns: 1; }
@media (min-width: 760px) { .toc ol { columns: 2; } }
.toc a { display: inline-block; padding: 4px 0; }
.licence { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.licence h3 { font-size: 1rem; margin-top: 1em; }
.licence h3:first-child { margin-top: 0; }

/* ------------------------------------------------------------ footer */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 40px 28px; margin-top: 0; font-size: 0.95rem; }
.footer-grid { display: grid; gap: 24px; }
.footer-brand p { color: var(--muted); max-width: 42ch; }
.made-by { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; color: var(--text); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; display: grid; gap: 6px; }
.footer-bottom p { margin: 0; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ------------------------------------------------------------ motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .btn:hover { transform: none; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ------------------------------------------------------------ print */
@media print {
  .site-header, .site-footer, .menu-button, .skip-link { display: none !important; }
  .hero, .band { color: #000; background: none; }
  .hero .lead, .band p, .band li { color: #000; }
}
