/* Sagat — site styles.
   One file, no build step. Order: tokens, base, layout, components, sections, legal pages, print. */

/* ───────────────────────────── Tokens ───────────────────────────── */

:root {
  color-scheme: light dark;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-rounded: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  --bg: #f6f6f3;
  --bg-glass: rgba(246, 246, 243, 0.74);
  --surface: #ffffff;
  --surface-2: #eeeeea;
  --ink: #0c0c0b;
  --ink-2: #464642;
  --ink-3: #6b6b65;
  --line: rgba(12, 12, 11, 0.1);
  --line-strong: rgba(12, 12, 11, 0.2);
  --accent: #95d26b;
  --accent-ink: #2f6a12;
  --accent-soft: rgba(149, 210, 107, 0.26);
  --on-accent: #0c0c0b;
  --focus-ring: #2f6a12;
  --shadow-device: 0 60px 110px -50px rgba(12, 12, 11, 0.5), 0 24px 48px -28px rgba(12, 12, 11, 0.35);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.7) inset, 0 30px 60px -40px rgba(12, 12, 11, 0.25);

  --phone-frame: #0c0c0b;
  --phone-edge: rgba(255, 255, 255, 0.18);
  --phone-screen: #ffffff;

  --nav-h: 64px;
  --gutter: clamp(20px, 5vw, 48px);
  --max: 1160px;
  --section-y: clamp(88px, 12vw, 160px);
  --radius: 22px;
  --radius-sm: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --bg-glass: rgba(10, 10, 10, 0.72);
    --surface: #131312;
    --surface-2: #1b1b19;
    --ink: #f5f5f2;
    --ink-2: #b9b9b2;
    --ink-3: #8a8a83;
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.18);
    --accent-ink: #95d26b;
    --accent-soft: rgba(149, 210, 107, 0.15);
    --focus-ring: #95d26b;
    --shadow-device: 0 70px 120px -50px rgba(0, 0, 0, 0.95), 0 0 0 1px rgba(255, 255, 255, 0.04);
    --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.04) inset;

    --phone-frame: #1b1b19;
    --phone-edge: rgba(255, 255, 255, 0.24);
    --phone-screen: #000000;
  }
}

/* ───────────────────────────── Base ───────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
button { font: inherit; }

::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

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

/* ───────────────────────────── Type ───────────────────────────── */

h1, h2 {
  font-family: var(--font-display);
  font-weight: 600;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 7.4vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.046em;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  letter-spacing: -0.036em;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.025em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.lede {
  max-width: 34ch;
  font-size: clamp(1.15rem, 0.6rem + 1.4vw, 1.4rem);
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}

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

/* ───────────────────────────── Layout ───────────────────────────── */

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

.section { padding-block: var(--section-y); }

.section__head {
  max-width: 40rem;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.section__head h2 { margin-top: 18px; }
.section__head p:not(.eyebrow) {
  margin-top: 22px;
  max-width: 46ch;
  font-size: 1.1875rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.split__copy > p:not(.eyebrow) {
  margin-top: 22px;
  max-width: 44ch;
  font-size: 1.1875rem;
  color: var(--ink-2);
  text-wrap: pretty;
}
.split__copy h2 { margin-top: 18px; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
}
@media (min-width: 861px) {
  .split--flip > .stack { order: -1; }
}

/* ───────────────────────────── Header ───────────────────────────── */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: var(--bg-glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}
.brand__mark { width: 24px; height: 24px; color: var(--ink); }
.brand__mark .dot { fill: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 30px);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  transition: color 0.2s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--ink); }

@media (max-width: 480px) {
  .nav__links a.hide-xs { display: none; }
}

/* ───────────────────────────── Buttons & badges ───────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 22px 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.badge__dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.badge__dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: ping 2.6s var(--ease) infinite;
}
@keyframes ping {
  0% { transform: scale(0.5); opacity: 0.9; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}
.link-arrow span { transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateY(3px); }
.link-arrow--right:hover span { transform: translateX(3px); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
}

/* ───────────────────────────── Motion ───────────────────────────── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(0.4em); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ───────────────────────────── Hero ───────────────────────────── */

.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 112px));
  padding-bottom: clamp(72px, 10vw, 136px);
  overflow: clip;
}
.hero::before {
  content: "";
  position: absolute;
  top: -8%;
  right: -12%;
  width: min(980px, 110vw);
  aspect-ratio: 1;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 72%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
}

.hero h1 { margin-top: 26px; }
.hero h1 .w {
  display: inline-block;
  opacity: 0;
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 110ms + 120ms);
}
.hero .lede { margin-top: 30px; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 28px;
  margin-top: 40px;
}
.hero__note {
  margin-top: 22px;
  font-size: 0.875rem;
  color: var(--ink-3);
}

.hero__visual {
  position: relative;
  justify-self: center;
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 24px; }
  .hero::before { right: -40%; top: 20%; }
}

/* ───────────────────────────── Phone illustration ───────────────────────────── */

.phone {
  --w: min(316px, 74vw);
  position: relative;
  width: var(--w);
  aspect-ratio: 9 / 19;
  padding: calc(var(--w) * 0.03);
  border-radius: calc(var(--w) * 0.165);
  background: var(--phone-frame);
  box-shadow: 0 0 0 1px var(--phone-edge), var(--shadow-device);
  container-type: inline-size;
}
.phone__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--w) * 0.137);
  background: var(--phone-screen);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.25;
}
.phone__island {
  position: absolute;
  top: 3cqw;
  left: 50%;
  width: 27cqw;
  height: 7.6cqw;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
}
.phone__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4.6cqw 8cqw 0 9cqw;
  font-size: 3.9cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.phone__status svg { height: 3.3cqw; width: auto; fill: currentColor; }
.phone__sys { display: inline-flex; align-items: center; gap: 1.6cqw; }

.focus {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6cqw;
  padding: 0 7cqw;
  text-align: center;
}
.focus__project { font-size: 4.3cqw; color: var(--ink-2); }
.focus__state {
  margin-top: -3.6cqw;
  font-family: var(--font-rounded);
  font-size: 4.4cqw;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-2);
}
.focus__time {
  margin-top: -2cqw;
  font-family: var(--font-rounded);
  font-size: 21cqw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.focus__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 12.6cqw;
  border-radius: 4.6cqw;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-rounded);
  font-size: 4.6cqw;
  font-weight: 600;
}
.focus__debt { display: grid; gap: 0.6cqw; }
.focus__debt small { font-size: 3.1cqw; color: var(--ink-2); }
.focus__debt span { font-size: 4cqw; }

.tabbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 2.6cqw 4cqw 6.4cqw;
  border-top: 1px solid var(--line);
  font-size: 2.9cqw;
  color: var(--ink-3);
  text-align: center;
}
.tabbar > div { display: grid; justify-items: center; gap: 1cqw; }
.tabbar svg { width: 6.4cqw; height: 6.4cqw; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tabbar .is-active { color: var(--accent-ink); }

/* ───────────────────────────── Trust strip ───────────────────────────── */

.strip { border-block: 1px solid var(--line); }
.strip__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.strip__item {
  padding: 26px 24px;
  border-left: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-3);
  line-height: 1.4;
}
.strip__item:first-child { padding-left: 0; border-left: 0; }
.strip__item strong {
  display: block;
  margin-bottom: 2px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
@media (max-width: 800px) {
  .strip__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip__item { padding: 20px 16px 20px 0; border-left: 0; }
  .strip__item:nth-child(odd) { padding-left: 0; }
  .strip__item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .strip__item:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ───────────────────────────── Ledger ───────────────────────────── */

.ledger__caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.ledger { border-top: 1px solid var(--line-strong); }
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr) minmax(0, 1.7fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  padding-block: clamp(26px, 3.6vw, 44px);
  border-bottom: 1px solid var(--line);
}
.ledger__name {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.ledger__mark {
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ink-3);
}
.ledger__mark--work { background: var(--accent); }
.ledger__mark--free { background: transparent; border: 2px solid var(--ink-3); }
.ledger__mark--debt { border-radius: 3px; background: transparent; border: 2px solid var(--ink-3); }
.ledger__fig {
  font-family: var(--font-rounded);
  font-size: clamp(1.3rem, 2.1vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.ledger__desc {
  max-width: 44ch;
  color: var(--ink-2);
  text-wrap: pretty;
}
@media (max-width: 760px) {
  .ledger__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 12px; }
  .ledger__desc { grid-column: 1 / -1; }
}

/* ───────────────────────────── Cards ───────────────────────────── */

.card {
  padding: clamp(26px, 3.6vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

/* ───────────────────────────── "Can't drift" ───────────────────────────── */

.span__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.span__label b {
  display: block;
  margin-top: 2px;
  font-family: var(--font-rounded);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.span__label > div:last-child { text-align: right; }

.span__track {
  position: relative;
  height: 6px;
  margin: 46px 0 34px;
  border-radius: 999px;
  background: var(--line-strong);
}
.span__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--accent);
  animation: span-fill 14s linear infinite;
}
.span__now {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--surface);
  transform: translate(-50%, -50%);
  animation: span-now 14s linear infinite;
}
.span__now::after {
  content: "now";
  position: absolute;
  bottom: 190%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
@keyframes span-fill { from { width: 0; } to { width: 100%; } }
@keyframes span-now { from { left: 0; } to { left: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .span__fill { width: 58%; animation: none; }
  .span__now { left: 58%; animation: none; }
}

.span__eq {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5em 0.6em;
  padding-top: 26px;
  border-top: 1px solid var(--line);
  font-family: var(--font-rounded);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.span__eq .op { color: var(--ink-3); font-weight: 400; }
.span__eq .result {
  padding-bottom: 2px;
  border-bottom: 3px solid var(--accent);
}

.checks { margin-top: 36px; border-top: 1px solid var(--line); }
.checks li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}
.checks li span:last-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--ink);
}
.checks svg { width: 16px; height: 16px; fill: none; stroke: var(--accent-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ───────────────────────────── Everywhere (Live Activity) ───────────────────────────── */

.stack {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  padding: clamp(28px, 5vw, 56px) 0;
}
.stack::before {
  content: "";
  position: absolute;
  inset: 8% 6%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 75%);
  pointer-events: none;
}

.island {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(236px, 70vw);
  height: 46px;
  padding: 0 16px 0 14px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 30px 60px -30px rgba(0, 0, 0, 0.7);
}
.island__glyph {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
}
.island__time {
  font-family: var(--font-rounded);
  font-size: 1.0625rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.activity {
  position: relative;
  width: min(360px, 100%);
  padding: 20px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-card), 0 40px 70px -46px rgba(12, 12, 11, 0.45);
}
.activity__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.activity__kind {
  display: block;
  font-family: var(--font-rounded);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-ink);
}
.activity__project { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--ink-2); }
.activity__time {
  font-family: var(--font-rounded);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.activity__bar {
  position: relative;
  height: 6px;
  margin-top: 18px;
  border-radius: 999px;
  background: var(--line-strong);
  overflow: hidden;
}
.activity__bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 52%;
  border-radius: inherit;
  background: var(--accent);
}
.activity__actions { display: flex; gap: 10px; margin-top: 18px; }
.activity__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--surface-2);
  font-family: var(--font-rounded);
  font-size: 0.875rem;
  font-weight: 600;
}

.facts { margin-top: 36px; border-top: 1px solid var(--line); }
.facts li {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.facts strong { font-weight: 600; letter-spacing: -0.01em; }
.facts span { color: var(--ink-2); }
@media (max-width: 560px) {
  .facts li { grid-template-columns: 1fr; gap: 4px; }
}

/* ───────────────────────────── Features (3-up) ───────────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.feature {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.feature__icon {
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}
.feature__icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.feature p { color: var(--ink-2); text-wrap: pretty; }
.feature__more {
  margin-top: auto;
  padding-top: 8px;
  font-size: 0.875rem;
  color: var(--ink-3);
}
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr; }
}

/* ───────────────────────────── Plan the day ───────────────────────────── */

.plan__title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 0.8125rem;
  color: var(--ink-3);
}
.plan__title b {
  font-family: var(--font-rounded);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.plan__title span { color: var(--ink-2); }
.plan__bar {
  display: flex;
  gap: 2px;
  height: 56px;
  margin: 22px 0 10px;
}
.plan__bar i {
  display: block;
  flex: var(--m) 0 0;
  min-width: 0;
  border-radius: 4px;
  background: var(--accent);
}
.plan__bar i.b { background: var(--ink-3); opacity: 0.5; }
.plan__bar i.f { background: var(--ink-3); opacity: 0.22; }
.plan__scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.plan__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.plan__legend span { display: inline-flex; align-items: center; gap: 8px; }
.plan__legend b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.plan__legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); }
.plan__legend i.b { background: var(--ink-3); opacity: 0.5; }
.plan__legend i.f { background: var(--ink-3); opacity: 0.22; }

/* ───────────────────────────── Night band (privacy) ───────────────────────────── */

.night {
  --n-bg: #0a0a0a;
  --n-ink: #f5f5f2;
  --n-ink-2: #b9b9b2;
  --n-line: rgba(255, 255, 255, 0.14);
  background: var(--n-bg);
  color: var(--n-ink);
  border-block: 1px solid var(--n-line);
}
.night .eyebrow { color: #8a8a83; }
.night h2 { max-width: 16ch; }
.night__lede {
  margin-top: 26px;
  max-width: 44ch;
  font-size: 1.1875rem;
  color: var(--n-ink-2);
  text-wrap: pretty;
}
.night__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  margin-top: clamp(48px, 7vw, 88px);
  padding-top: 36px;
  border-top: 1px solid var(--n-line);
}
.night__grid h3 { color: var(--n-ink); }
.night__grid p { margin-top: 10px; color: var(--n-ink-2); text-wrap: pretty; }
.night__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(36px, 5vw, 56px);
  min-height: 44px;
  font-weight: 600;
  color: var(--accent);
}
.night__link span { transition: transform 0.25s var(--ease); }
.night__link:hover span { transform: translateX(4px); }
.night :focus-visible { outline-color: var(--accent); }
@media (max-width: 860px) {
  .night__grid { grid-template-columns: 1fr; }
}

/* ───────────────────────────── Free & Pro ───────────────────────────── */

.tiers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.tier {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3.6vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.tier--pro { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.tier__name {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.tier__lead { margin-top: 10px; color: var(--ink-2); }
.tier__list { margin-top: 28px; border-top: 1px solid var(--line); }
.tier__list li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.tier__list li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tier__list small { display: block; color: var(--ink-3); font-size: 0.875rem; line-height: 1.4; }
.tier__foot { margin-top: auto; padding-top: 26px; font-size: 0.875rem; color: var(--ink-3); }
@media (max-width: 860px) {
  .tiers { grid-template-columns: 1fr; }
}

/* ───────────────────────────── Closing + footer ───────────────────────────── */

.closing { padding-bottom: clamp(56px, 8vw, 96px); text-align: center; }
.closing h2 { max-width: 14ch; margin: 0 auto; }
.closing .lede { margin: 26px auto 0; }
.closing .badge { margin-top: 40px; }

.support {
  padding-block: 0 clamp(72px, 9vw, 112px);
  text-align: center;
  color: var(--ink-2);
}
.support a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}
.support a:hover { border-color: var(--ink); }

.site-footer {
  padding-block: 44px 56px;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--ink-3);
}
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px 48px;
}
.footer__brand { display: grid; gap: 8px; }
.footer__brand .brand { color: var(--ink); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  transition: color 0.2s ease;
}
.footer__links a:hover { color: var(--ink); }
.footer__legal { margin-top: 28px; max-width: 70ch; line-height: 1.55; }

/* ───────────────────────────── Legal pages ───────────────────────────── */

.legal {
  padding-top: calc(var(--nav-h) + clamp(48px, 8vw, 104px));
  padding-bottom: clamp(72px, 10vw, 136px);
}
.legal__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 720px);
  justify-content: center;
  gap: clamp(40px, 7vw, 104px);
}
.legal__toc {
  position: sticky;
  top: calc(var(--nav-h) + 32px);
  align-self: start;
  font-size: 0.875rem;
}
.legal__toc p {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.legal__toc ol { counter-reset: toc; border-left: 1px solid var(--line); }
.legal__toc li { counter-increment: toc; }
.legal__toc a {
  display: flex;
  gap: 10px;
  margin-left: -1px;
  padding: 7px 0 7px 16px;
  border-left: 1px solid transparent;
  color: var(--ink-3);
  line-height: 1.35;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.legal__toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-variant-numeric: tabular-nums;
  opacity: 0.6;
}
.legal__toc a:hover { color: var(--ink); }
.legal__toc a.is-active { color: var(--ink); border-left-color: var(--accent); }

.legal__head h1 {
  margin-top: 22px;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  letter-spacing: -0.045em;
}
.legal__meta { margin-top: 18px; font-size: 0.9375rem; color: var(--ink-3); }

.callout {
  margin-top: clamp(32px, 5vw, 48px);
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.callout h2 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.callout ul { margin-top: 14px; display: grid; gap: 10px; }
.callout li { display: flex; gap: 12px; color: var(--ink); }
.callout li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 0.68em;
  border-radius: 50%;
  background: var(--accent);
}

.prose { counter-reset: sec; }
.prose > section { counter-increment: sec; padding-top: clamp(40px, 6vw, 64px); }
.prose h2 {
  display: flex;
  align-items: baseline;
  gap: 16px;
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.prose h2::before {
  content: counter(sec, decimal-leading-zero);
  flex: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.prose h3 { margin-top: 30px; font-size: 1.0625rem; }
.prose p, .prose ul, .prose ol, .prose .table-wrap { margin-top: 16px; }
.prose p, .prose li { color: var(--ink-2); text-wrap: pretty; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul { display: grid; gap: 10px; }
.prose ul li { position: relative; padding-left: 22px; }
.prose ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ink-3);
  opacity: 0.6;
}
.prose ol { display: grid; gap: 10px; counter-reset: item; }
.prose ol li { position: relative; padding-left: 30px; counter-increment: item; }
.prose ol li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.prose a {
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.2s ease;
}
.prose a:hover { border-color: var(--ink); }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.prose th, .prose td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose tr:last-child td { border-bottom: 0; }
.prose th {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: color-mix(in srgb, var(--surface-2) 50%, transparent);
}
.prose td { color: var(--ink-2); }
.prose td:first-child { width: 28%; color: var(--ink); font-weight: 600; }
@media (max-width: 520px) {
  .prose th, .prose td { padding: 12px 14px; }
  .prose td:first-child { width: 32%; }
}

@media (max-width: 960px) {
  .legal__grid { grid-template-columns: minmax(0, 720px); }
  .legal__toc { display: none; }
}

/* ───────────────────────────── Print ───────────────────────────── */

@media print {
  :root { --bg: #fff; --surface: #fff; --ink: #000; --ink-2: #222; --ink-3: #444; --line: #ccc; --line-strong: #999; }
  .site-header, .skip, .legal__toc, .site-footer .footer__links { display: none !important; }
  body { font-size: 11pt; }
  .legal { padding-top: 0; }
  .legal__grid { display: block; }
  a { text-decoration: underline; }
}
