/* Tenth marketing site. Base, layout, components and sections.
   Every color, space, radius and shadow comes from tokens.css (var(--…)).
   No raw hex values in this file. Breakpoints: 640px and 960px only,
   plus one 359px guard for the header button (see docs/tenth-site-notes.md). */

/* ---------- Fonts (self-hosted Google Fonts Latin subsets, see assets/fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'Familjen Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/familjen-grotesk-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/public-sans-latin-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-500.woff2') format('woff2');
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 26px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, pre { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

img, svg { display: block; max-width: 100%; }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-hover); }

code, kbd, pre { font-family: var(--font-mono); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sprite { display: none; }

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--20 { width: 20px; height: 20px; }
.icon--inline { display: inline-block; vertical-align: -2px; margin-left: var(--space-1); }

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-weight: 600;
}
.skip-link:focus { top: var(--space-3); }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.lead {
  font-size: 17px;
  line-height: 26px;
  color: var(--ink-muted);
  max-width: 65ch;
}

.prose { max-width: 65ch; }
.prose > * + * { margin-top: var(--space-4); }

.muted { color: var(--ink-muted); }

.figure,
.figure-lg { font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.figure { font-size: 15px; line-height: 22px; font-weight: 500; }
.figure-lg { font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; }

.stamp-ink { color: var(--stamp-ink); }

:not(pre) > code {
  font-size: 0.88em;
  padding: 1px var(--space-1);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  overflow-wrap: anywhere;
}

/* The type scale on phones: each title steps down one size within the scale. */
@media (max-width: 639px) {
  .text-display-xl { font-size: 40px; line-height: 44px; letter-spacing: -0.015em; }
  .text-display { font-size: 28px; line-height: 34px; letter-spacing: -0.01em; }
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--space-4));
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 640px) {
  .container { max-width: calc(1120px + 2 * var(--space-5)); padding-inline: var(--space-5); }
}

.section {
  padding-block: var(--space-8);
  border-top: 1px solid var(--line);
}
.section--raised { background: var(--surface-raised); }
.section--raised .card { background: var(--surface); }
.section--first { border-top: 0; }

.section-head { margin-bottom: var(--space-6); }
.section-head > * + * { margin-top: var(--space-3); }
.section-head--center { text-align: center; }
.section-head--center .lead,
.section-head--center .prose { margin-inline: auto; }

.stack > * + * { margin-top: var(--space-4); }
.stack-lg > * + * { margin-top: var(--space-6); }

.split { display: grid; gap: var(--space-6); }
@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
  .split--top { align-items: start; }
}

.grid-2 { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-3 { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}
.actions--center { justify-content: center; }

.note {
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease-out, border-color 120ms ease-out, color 120ms ease-out;
}
.btn--primary { background: var(--brand); color: var(--on-brand); }
.btn--primary:hover,
.btn--primary:active { background: var(--brand-hover); color: var(--on-brand); }
.btn--secondary {
  background: var(--surface-raised);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover,
.btn--secondary:active { background: var(--surface-sunken); color: var(--ink); }
.btn--text {
  background: none;
  color: var(--brand);
  padding-inline: var(--space-1);
}
.btn--text:hover { color: var(--brand-hover); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 50;
}
.js .site-header { position: sticky; top: 0; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  flex: none;
}
.brand-link:hover { color: var(--ink); }
.brand-link img { width: 24px; height: 24px; }
.wordmark {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--ink);
}

.nav-main { display: none; }
.nav-main ul { display: flex; gap: var(--space-1); }
.nav-main a,
.mobile-menu a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--space-3);
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-decoration: none;
}
.nav-main a:hover,
.mobile-menu a:not(.btn):hover { color: var(--brand); }
.nav-main a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--brand);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}
.header-signin { display: none; }

.menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  color: var(--ink);
  cursor: pointer;
}
.menu-button .icon { width: 20px; height: 20px; }
.menu-button .icon--close,
.menu-button[aria-expanded="true"] .icon--open { display: none; }
.menu-button[aria-expanded="true"] .icon--close { display: block; }
html:not(.js) .menu-button { display: none; }

/* The mobile menu is open by default (no JS: an in-flow list of links).
   site.js collapses it on load and turns it into an overlay panel. */
.mobile-menu {
  background: var(--surface-raised);
  border-top: 1px solid var(--line);
}
.js .mobile-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  box-shadow: var(--shadow-overlay);
  border-bottom: 1px solid var(--line);
}
.js .mobile-menu.is-animating { animation: menu-in 180ms ease-out; }
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.mobile-menu nav { padding-block: var(--space-3); }
.mobile-menu ul > li { border-bottom: 1px solid var(--line); }
.mobile-menu ul > li:last-child { border-bottom: 0; }
.mobile-menu a:not(.btn) { display: flex; padding-inline: 0; min-height: 48px; }
.mobile-menu [aria-current="page"] { color: var(--brand); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.mobile-menu__cta { margin-top: var(--space-3); display: none; }

@media (max-width: 359px) {
  /* Too narrow for wordmark + "Join the waitlist" + menu button: the button moves into the menu. */
  .header-cta { display: none; }
  .mobile-menu__cta { display: flex; }
}

@media (min-width: 960px) {
  .nav-main { display: block; margin-left: var(--space-4); }
  .header-signin { display: inline-flex; }
  .menu-button,
  .mobile-menu { display: none !important; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--surface-sunken);
  border-top: 1px solid var(--line);
  padding-block: var(--space-7) var(--space-6);
  font-size: 15px;
  line-height: 22px;
}
.footer-grid { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-grid h2,
.theme-control legend { margin-bottom: var(--space-2); }
.footer-grid a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.footer-grid a:hover { color: var(--brand); text-decoration: underline; }
.footer-grid code { background: none; padding: 0; font-size: 14px; }

.theme-control fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.theme-control legend { padding: 0; }
.theme-control label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  cursor: pointer;
}
.theme-control input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
html:not(.js) .theme-control { display: none; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 20px;
  color: var(--ink-muted);
}
.footer-bottom img { width: 20px; height: 20px; }
.footer-bottom__brand { display: inline-flex; align-items: center; gap: var(--space-2); }

/* ---------- Cards and small components ---------- */
.card {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
@media (min-width: 640px) { .card { padding: var(--space-5); } }

.stamp-badge {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--stamp);
  color: var(--on-stamp);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stamp-figure {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--stamp);
  color: var(--on-stamp);
  font-variant-numeric: tabular-nums;
}

.pill {
  display: inline-block;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--ink);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.callout {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--info-tint);
  border-left: 3px solid var(--info);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
  max-width: 65ch;
}
.callout .icon { margin-top: 3px; color: var(--info); }
.callout--warning { background: var(--warning-tint); border-left-color: var(--warning); }
.callout--warning .icon { color: var(--warning); }

.check-list,
.x-list { list-style: none; padding: 0; display: grid; gap: var(--space-3); }
.check-list li,
.x-list li { display: flex; gap: var(--space-3); }
.check-list .icon,
.x-list .icon { margin-top: 5px; }
.check-list .icon { color: var(--success); }
.x-list .icon { color: var(--ink-muted); }

.status-yes,
.status-no { display: inline-flex; align-items: flex-start; gap: var(--space-2); }
.status-yes .icon,
.status-no .icon { margin-top: 3px; }
.status-yes .icon { color: var(--success); }
.status-no .icon { color: var(--ink-muted); }

/* ---------- Data table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-raised);
}
.section--raised .table-wrap { background: var(--surface); }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 22px;
}
.data-table caption { text-align: left; }
.data-table th,
.data-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  vertical-align: top;
  border-top: 1px solid var(--line);
}
.data-table thead th {
  border-top: 0;
  background: var(--surface-sunken);
  color: var(--ink-muted);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.data-table tbody th { font-weight: 500; }
.data-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}
.data-table thead .num { font-weight: 600; }
.table-caption { margin-top: var(--space-3); max-width: 75ch; }
.table-link { margin-top: var(--space-4); }
.table-link .btn--text { padding-inline: 0; }

/* ---------- Ledger (invoice card) ---------- */
.ledger {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
}
@media (min-width: 640px) { .ledger { padding: var(--space-5); } }
.ledger table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 22px; }
.ledger caption { text-align: left; padding-bottom: var(--space-3); }
.ledger caption > span { display: block; }
.ledger caption .text-heading-2 { margin-top: var(--space-1); color: var(--ink); }
.ledger th,
.ledger td { padding: var(--space-2) 0; border-top: 1px solid var(--line); }
.ledger th { text-align: left; font-weight: 400; color: var(--ink-muted); }
.ledger td { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.ledger tfoot th,
.ledger tfoot td {
  padding-block: var(--space-3);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.ledger__compare { margin-top: var(--space-3); font-size: 15px; line-height: 22px; display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.ledger__compare .figure { white-space: nowrap; }
.ledger__source { margin-top: var(--space-1); }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(4, 1fr); } }
.feature-grid .card { display: flex; flex-direction: column; gap: var(--space-3); }
.feature-grid .card > .icon { color: var(--ink); }
.feature-grid .card p { flex: 1; }
.feature-grid .btn--text { align-self: flex-start; padding-inline: 0; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: var(--space-5); counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--space-4);
  align-items: start;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--brand-tint);
  color: var(--ink);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.steps li > div { padding-top: 3px; max-width: 65ch; }
.steps strong { font-weight: 600; }
@media (min-width: 960px) {
  .steps--row { grid-template-columns: repeat(5, 1fr); }
  .steps--row li { grid-template-columns: 1fr; gap: var(--space-3); }
  .steps--four { grid-template-columns: repeat(4, 1fr); }
  .steps--four li { grid-template-columns: 1fr; gap: var(--space-3); }
}

/* ---------- Code block ---------- */
.code-stack { display: grid; gap: var(--space-4); min-width: 0; }
.code-block {
  position: relative;
  background: var(--surface-sunken);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-width: 0;
}
.code-block__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--line);
}
.code-block__name { font-family: var(--font-mono); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink-muted); }
.code-block pre {
  margin: 0;
  padding: var(--space-4);
  overflow-x: auto;
  font-size: 13px;
  line-height: 20px;
  color: var(--ink);
  tab-size: 2;
}
.code-block .btn { min-height: 36px; padding: var(--space-1) var(--space-3); font-size: 13px; line-height: 20px; }
@media (max-width: 639px) { .code-block .btn { min-height: 44px; } }
html:not(.js) [data-copy] { display: none; }
.tok-k { color: var(--brand); }
.tok-s { color: var(--stamp-ink); }
.tok-c { color: var(--ink-muted); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding-block: var(--space-3);
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { width: 20px; height: 20px; transition: transform 120ms ease-out; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq__answer { padding-bottom: var(--space-4); max-width: 65ch; color: var(--ink-muted); }
.faq .faq__answer > * + * { margin-top: var(--space-3); }

/* ---------- Home: hero ---------- */
.hero { padding-block: var(--space-7) var(--space-8); }
@media (min-width: 960px) { .hero { padding-top: var(--space-8); } }
.hero__copy > * + * { margin-top: var(--space-4); }
.hero__copy .actions { margin-top: var(--space-5); }
.hero__copy .note { margin-top: var(--space-3); }
@media (min-width: 960px) {
  .hero .split { grid-template-columns: 1.1fr 1fr; }
}

.page-head { padding-block: var(--space-7) var(--space-8); }
@media (min-width: 960px) { .page-head { padding-top: var(--space-8); } }
.page-head > .container > * + * { margin-top: var(--space-4); }
.page-head .actions { margin-top: var(--space-5); }

/* ---------- Home: fixed-date billing spotlight ---------- */
.spotlight { margin-top: var(--space-6); display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .spotlight { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.spotlight__copy > * + * { margin-top: var(--space-4); }

.month { max-width: 320px; }
.month table { border-collapse: separate; border-spacing: var(--space-1); width: 100%; table-layout: fixed; }
.month th {
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink-muted);
  text-align: center;
  padding-bottom: var(--space-1);
}
.month td {
  height: 36px;
  text-align: center;
  vertical-align: middle;
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}
.month td:empty { background: none; }
.month td.is-billing-day { background: var(--stamp); color: var(--on-stamp); font-weight: 600; }
.month abbr { text-decoration: none; }
.month__title { margin-bottom: var(--space-2); }
.month__note { margin-top: var(--space-2); font-weight: 600; }

/* ---------- Home: paywall mock ---------- */
.phone {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--surface-raised);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-lg) var(--radius-lg);
}
.section--raised .phone { background: var(--surface); }
.phone__title { text-align: center; }
.phone__sub { text-align: center; margin-top: var(--space-1); }
.tiers { list-style: none; padding: 0; margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.tier {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  font-size: 15px;
  line-height: 22px;
}
.tier.is-selected { border: 2px solid var(--brand); background: var(--brand-tint); padding: 11px 15px; }
.tier__name { font-weight: 600; display: flex; flex-direction: column; gap: var(--space-1); align-items: flex-start; }
.tier__price { font-variant-numeric: tabular-nums; font-weight: 500; text-align: right; }
.tier__per { display: block; font-size: 13px; line-height: 20px; color: var(--ink-muted); font-weight: 400; }
.phone__cta { margin-top: var(--space-5); width: 100%; cursor: default; }
.phone__restore { margin-top: var(--space-2); text-align: center; font-size: 13px; line-height: 20px; color: var(--brand); text-decoration: underline; }

/* ---------- Home: trust ---------- */
.trust-item > .icon { color: var(--ink); margin-bottom: var(--space-3); }
.trust-item h3 { margin-bottom: var(--space-2); }
.trust-item p { font-size: 15px; line-height: 22px; color: var(--ink-muted); }

/* ---------- Final call to action ---------- */
.final-cta { text-align: center; }
.final-cta > .container > * + * { margin-top: var(--space-4); }
.final-cta p { margin-inline: auto; max-width: 65ch; }
.final-cta .actions { margin-top: var(--space-5); }

/* ---------- Pricing: calculator ---------- */
.calc { display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .calc { grid-template-columns: 1fr 1fr; gap: var(--space-7); } }
html:not(.js) .calc { display: none; }
.calc > * { min-width: 0; }
.calc__label { display: block; margin-bottom: var(--space-2); }
.money-input {
  display: flex;
  align-items: center;
  min-height: 52px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  padding-left: var(--space-4);
}
.money-input:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.money-input span { color: var(--ink-muted); font-size: 20px; line-height: 28px; font-weight: 500; }
.money-input input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  padding: var(--space-3) var(--space-4) var(--space-3) var(--space-1);
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 28px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.money-input input:focus { outline: none; }
.money-input.is-invalid { border-color: var(--danger); }
.calc__slider { width: 100%; margin-top: var(--space-4); min-height: 44px; accent-color: var(--brand); }
.field-help,
.field-error { display: flex; gap: var(--space-2); margin-top: var(--space-2); font-size: 13px; line-height: 20px; }
.field-help { color: var(--ink-muted); }
.field-error { color: var(--danger); font-weight: 500; }
.field-help .icon,
.field-error .icon { margin-top: 2px; }

.calc-rows { display: grid; }
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-3);
  padding-block: var(--space-2);
}
.calc-row dt { font-weight: 500; }
.calc-row dd { text-align: right; font-variant-numeric: tabular-nums; }
.calc-row .per { color: var(--ink-muted); font-size: 15px; }
.calc-row--total { border-top: 1px solid var(--line-strong); margin-top: var(--space-2); padding-top: var(--space-4); align-items: center; }
.calc-row--total dt { font-weight: 600; }
.calc-row--sub { padding-top: 0; justify-content: flex-end; color: var(--ink-muted); }
.calc-message { margin-top: var(--space-3); font-weight: 600; }

.bars { margin-top: var(--space-5); display: grid; gap: var(--space-3); }
.bar__label { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 13px; line-height: 20px; font-variant-numeric: tabular-nums; }
.bar__track { height: 12px; margin-top: var(--space-1); background: var(--surface-sunken); border-radius: var(--radius-sm); overflow: hidden; }
.bar__fill { height: 100%; width: 0; min-width: 2px; border-radius: var(--radius-sm); transition: width 180ms ease-out; }
.bar__fill--tenth { background: var(--brand); }
.bar__fill--rc { background: var(--line-strong); }
.calc__foot { margin-top: var(--space-5); }

/* ---------- Pricing: promises ---------- */
.promise h3 { margin-bottom: var(--space-3); }
.timeline {
  list-style: none;
  padding: 0;
  margin-top: var(--space-5);
  display: grid;
  gap: var(--space-2);
}
@media (min-width: 640px) { .timeline { grid-template-columns: repeat(3, 1fr); } }
.timeline li {
  padding: var(--space-3);
  border-top: 3px solid var(--line-strong);
  background: var(--surface-sunken);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 15px;
  line-height: 22px;
}
.section--raised .timeline li { background: var(--surface-sunken); }
.timeline__step { display: block; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); }
.promise__ok { display: flex; gap: var(--space-2); margin-top: var(--space-4); color: var(--success); font-weight: 600; font-size: 15px; line-height: 22px; }
.promise__ok .icon { margin-top: 3px; }

/* ---------- Features page ---------- */
.feature-nav {
  position: sticky;
  top: 65px;
  z-index: 40;
  background: var(--surface);
  border-block: 1px solid var(--line);
}
html:not(.js) .feature-nav { position: static; }
.feature-nav ul {
  display: flex;
  gap: var(--space-1);
  overflow-x: auto;
  scrollbar-width: thin;
}
.feature-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: var(--space-3);
  white-space: nowrap;
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 22px;
  font-weight: 500;
  text-decoration: none;
}
.feature-nav a:hover { color: var(--ink); }
.feature-nav a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.feature-section { scroll-margin-top: 130px; }
.feature-section .section-head .icon { color: var(--ink); }
.feature-section .check-list { max-width: 75ch; }
.feature-body { display: grid; gap: var(--space-6); }

/* ---------- Compare page ---------- */
.reason h3 { margin-bottom: var(--space-3); }
.sources { list-style: none; padding: 0; display: grid; gap: var(--space-3); max-width: 75ch; }

/* ---------- Legal and 404 ---------- */
.simple-page { padding-block: var(--space-7) var(--space-8); min-height: 50vh; }
.simple-page .container > * + * { margin-top: var(--space-5); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0ms !important;
    animation-duration: 0ms !important;
  }
  .js .mobile-menu.is-animating { animation: none; }
  html { scroll-behavior: auto; }
}

/* Compare page: the "What Tenth adds" list under the side-by-side table. */
#what-tenth-adds { margin-top: var(--space-7); }

/* ---- Cookie notice (built by assets/js/site.js: initCookieNotice). Says the site does not track.
   scripts/check-cookie-consent.sh flags any change that would need a real opt-in. ---- */
.cookie-notice {
  position: fixed;
  z-index: 30; /* above page content, below the header, menus and skip link */
  left: var(--space-4);
  right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  max-width: 34rem;
  padding: 16px 18px;
  background: var(--surface-raised);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-overlay);
  font-size: 15px;
  line-height: 1.5;
}
.cookie-notice__text { flex: 1 1 16rem; margin: 0; }
.cookie-notice__text strong { font-weight: 600; }
.cookie-notice__text a { color: inherit; text-decoration: underline; text-underline-offset: 0.15em; }
.cookie-notice__ok { flex: 0 0 auto; }
@media (max-width: 520px) {
  .cookie-notice__ok { flex: 1 1 100%; }
}
@media print {
  .cookie-notice { display: none; }
}
