/* ThreadNudge landing. All values come from tokens.css */

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s-4)); -webkit-text-size-adjust: 100%; background: var(--bg); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
canvas { display: block; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-xs); }
::selection { background: var(--accent); color: var(--on-accent); }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; }
.eye { fill: var(--eye, #080a08); }

/* ---------- Type roles ---------- */

h1, h2 { font-weight: 500; letter-spacing: var(--track-display); text-wrap: balance; }
h1 { font-size: var(--fs-hero); line-height: var(--lh-hero); }
h2 { font-size: var(--fs-title); line-height: var(--lh-title); }
h3 { font-size: var(--fs-large); line-height: var(--lh-large); font-weight: 500; letter-spacing: -0.01em; }
.dim { color: var(--ink-3); }

.lead { font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink-2); max-width: var(--measure); text-wrap: pretty; }
.figure { font-size: var(--fs-figure); line-height: var(--lh-figure); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }

.label {
  display: flex; align-items: center; gap: var(--s-2);
  font-size: var(--fs-label); line-height: var(--lh-label); letter-spacing: 0.01em; color: var(--ink-3);
}
.label:has(+ h2) { font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-2); }
.label + h1, .label + h2 { margin-top: var(--s-4); }

.prose { display: grid; gap: var(--s-4); max-width: var(--measure); color: var(--ink-2); font-size: var(--fs-large); line-height: var(--lh-large); }

/* ---------- Layout ---------- */

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

.section { padding-block: var(--section); }
.section--line { border-top: 1px solid var(--line); }

.split { display: grid; gap: var(--s-6); }
@media (min-width: 900px) {
  .split { grid-template-columns: 6fr 5fr; gap: var(--s-16); align-items: end; }
  .split--top { align-items: start; }
}
.center { display: grid; justify-items: center; text-align: center; max-width: 52rem; margin-inline: auto; }

/* ---------- Icons ---------- */

.icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Dithered art and avatars ---------- */

.dither { image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated; }
.avatar { width: 40px; height: 40px; flex: none; border-radius: var(--r-sm); }

/* the fine screen that sits over every large dithered field */
.stage::after, .demo__screen::after, .closing::after, .trial__art-wrap::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(4, 20, 12, 0.16) 1px, transparent 1px), linear-gradient(90deg, rgba(4, 20, 12, 0.16) 1px, transparent 1px);
  background-size: 5px 5px;
}

/* ---------- Buttons and inputs ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  height: var(--control-lg); padding-inline: var(--s-5);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-size: var(--fs-body); line-height: 1; font-weight: 500; white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn--sm { height: var(--control-sm); padding-inline: var(--s-4); font-size: var(--fs-small); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); }

.input {
  height: var(--control-lg); min-width: 0; padding-inline: var(--s-4);
  background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color var(--t-fast) var(--ease);
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: var(--ink-3); }
.input:focus-visible { outline-offset: 0; border-color: var(--accent); border-radius: var(--r-sm); }

.signup { display: grid; grid-template-columns: 1fr; gap: var(--s-3); max-width: 30rem; }
.signup__note { grid-column: 1 / -1; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-3); }
.signup__note[data-state="ok"] { color: var(--accent); }
.signup__note[data-state="error"] { color: var(--warn); }
@media (min-width: 480px) { .signup { grid-template-columns: 1fr auto; } }

/* ---------- Header ---------- */

.header { position: sticky; top: 0; z-index: 10; background: rgba(8, 10, 8, 0.82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__row { display: flex; align-items: center; gap: var(--s-3); height: var(--header-h); }
.header__actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }

.logo { display: inline-flex; align-items: center; gap: var(--s-2); font-size: var(--fs-body); line-height: 1; font-weight: 500; letter-spacing: -0.02em; }
.logo__mark { width: 20px; height: 20px; fill: var(--accent); }

.nav { display: none; gap: var(--s-8); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.nav a { transition: color var(--t-fast) var(--ease); }
.nav a:hover { color: var(--ink); }
.nav--footer { display: flex; flex-wrap: wrap; gap: var(--s-6); }

.menu { position: relative; }
.menu summary { display: grid; place-items: center; width: var(--control-sm); height: var(--control-sm); border: 1px solid var(--line-strong); border-radius: var(--r-sm); cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: calc(100% + var(--s-2)); min-width: 200px; display: grid; padding: var(--s-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); }
.menu__panel a { padding: var(--s-2) var(--s-3); border-radius: var(--r-xs); font-size: var(--fs-small); line-height: var(--lh-small); }
.menu__panel a:hover { background: var(--raised); }

@media (min-width: 860px) {
  .header__row { gap: var(--s-12); }
  .logo { font-size: var(--fs-large); }
  .nav { display: flex; }
  .menu { display: none; }
}

/* ---------- Hero ---------- */

.hero { padding-block: var(--s-12) 0; }
.hero__top { display: grid; gap: var(--s-8); }
.hero__side { display: grid; gap: var(--s-6); }
/* which sources are read, stated plainly */
.src { border-radius: var(--r-xs); }
.avatar.src { border-radius: var(--r-sm); }
.src--line { box-shadow: 0 0 0 1px var(--line-strong); }
.reads { display: grid; gap: var(--s-8); margin-top: var(--s-10); }
.reads__sources { display: grid; gap: var(--s-4); align-content: start; }
.reads__list { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.reads__list .src { display: block; width: 48px; height: 48px; border-radius: var(--r-sm); }
.reads__names { font-size: var(--fs-large); line-height: var(--lh-large); color: var(--ink); max-width: var(--measure); }
.reads__note { color: var(--ink-2); max-width: var(--measure); }
@media (min-width: 1000px) { .reads { grid-template-columns: 5fr 7fr; gap: var(--s-16); } }

.hero__caption { font-size: var(--fs-lead); line-height: var(--lh-lead); max-width: 44rem; }

@media (min-width: 1000px) {
  .hero { padding-block: var(--s-20) 0; }
  .hero__top { grid-template-columns: 7fr 5fr; gap: var(--s-16); align-items: end; }
}

/* headline words light up one after another */
.js [data-words] .w { opacity: 0.14; transition: opacity 700ms var(--ease); transition-delay: calc(var(--i) * 55ms); }
.js [data-words].in .w { opacity: 1; }

/* The stage: a dithered meadow where found threads land on a grid */

.stage { position: relative; isolation: isolate; overflow: hidden; margin-top: var(--s-12); border-radius: var(--r-lg); background: #3fa98a; }
.stage > .dither, .closing > .dither, .demo__wash { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }

.stage__bar { padding: var(--s-3) var(--s-2); font-size: var(--fs-small); line-height: var(--lh-small); }
.stage__bar span { display: inline-block; padding: var(--s-2) var(--s-4); background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-sm); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

.stage__cells { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: var(--cell); }
.stage__grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(90deg, rgba(4, 20, 12, 0.3) 1px, transparent 1px), linear-gradient(rgba(4, 20, 12, 0.3) 1px, transparent 1px);
  background-size: 25% 100%, 100% var(--cell);
  background-position: 0 0, 0 calc(var(--s-3) * 2 + var(--s-2) * 2 + var(--lh-small) + 2px);
}
.js .stage__grid { clip-path: inset(0 100% 0 0); transition: clip-path var(--t-draw) var(--ease); }
.js .stage.in .stage__grid { clip-path: inset(0); }

.tile {
  grid-column: 1 / -1; display: flex; align-items: center; gap: var(--s-3); min-width: 0;
  margin: var(--s-2); padding-inline: var(--s-4);
  background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-md);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease), background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  transition-delay: calc(var(--i, 0) * 110ms + 500ms), calc(var(--i, 0) * 110ms + 500ms), 0ms, 0ms;
}
.tile > div { display: grid; gap: var(--s-1); min-width: 0; }
.tile .label { color: rgba(241, 244, 236, 0.72); white-space: nowrap; overflow: hidden; }
.tile__q { font-size: var(--fs-small); line-height: var(--lh-small); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile.is-active { background: var(--glass-strong); border-color: var(--accent); }
.js .tile { opacity: 0; transform: scale(0.92); }
.js .stage.in .tile { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .stage__cells { grid-template-columns: repeat(8, 1fr); grid-template-rows: repeat(3, var(--cell)); }
  .stage__grid { background-size: 12.5% 100%, 100% var(--cell); }
  .tile:nth-child(1) { grid-column: 1 / span 3; grid-row: 1; }
  .tile:nth-child(2) { grid-column: 6 / span 3; grid-row: 1; }
  .tile:nth-child(3) { grid-column: 3 / span 3; grid-row: 2; }
  .tile:nth-child(4) { grid-column: 1 / span 3; grid-row: 3; }
  .tile:nth-child(5) { grid-column: 5 / span 3; grid-row: 3; }
}

/* the mascot: hops to the thread it is nudging you toward */
.nudge {
  position: absolute; left: 0; top: 0; z-index: 2; width: 32px; height: 32px;
  fill: var(--ink); filter: drop-shadow(0 3px 0 rgba(4, 20, 12, 0.35));
  translate: var(--x, 24px) var(--y, 24px);
  transition: translate 560ms var(--ease), opacity 300ms var(--ease);
  opacity: 0;
}
.nudge.is-on { opacity: 1; }
.nudge.is-hop { animation: hop 560ms var(--ease); }
@keyframes hop { 0%, 100% { transform: translateY(0) rotate(0); } 45% { transform: translateY(-22px) rotate(-8deg); } }

.stage__foot { display: grid; gap: var(--s-5); padding: var(--s-6); }
.stage__when { font-size: var(--fs-large); line-height: var(--lh-large); font-weight: 500; color: #06150b; }
.stage__count { font-size: var(--fs-title); line-height: var(--lh-title); font-weight: 500; letter-spacing: var(--track-display); color: #06150b; }
.why { display: grid; gap: var(--s-2); padding: var(--s-4) var(--s-5); background: var(--glass); border-radius: var(--r-md); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.why .label { color: rgba(241, 244, 236, 0.72); }
.why__text { min-height: calc(var(--lh-body) * 2); transition: opacity 220ms var(--ease); }
.why__text.is-swap { opacity: 0; }
@media (min-width: 900px) {
  .stage__foot { grid-template-columns: 1fr 360px; align-items: end; }
}

/* ---------- Panels ---------- */

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); }
.panel__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-1) var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.panel__foot { padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-3); }
.panel--quiet { background: transparent; }

/* ---------- Problem: alert vs digest ---------- */

.compare { display: grid; gap: var(--s-6); margin-top: var(--s-16); }
@media (min-width: 900px) { .compare { grid-template-columns: 5fr 6fr; align-items: stretch; } }
.compare .panel { display: flex; flex-direction: column; }
.compare .panel__foot { margin-top: auto; }

.noise li { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); align-items: center; height: 44px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.noise li:last-child { border-bottom: 0; }
.noise li span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.noise .noise__hit { color: var(--ink); }
.noise .src { width: 24px; height: 24px; }
.js .compare.in .noise li { animation: stream 2200ms var(--ease) both; animation-delay: calc(var(--i) * 90ms + 200ms); }
.js .compare.in .noise .noise__hit { animation-name: stream-hit; }
.noise li:not(.noise__hit) .src { filter: grayscale(1); }
@keyframes stream { 0% { opacity: 0; transform: translateY(8px); } 25% { opacity: 1; transform: none; } 70% { opacity: 1; } 100% { opacity: 0.38; } }
@keyframes stream-hit { 0% { opacity: 0; transform: translateY(8px); } 25%, 100% { opacity: 1; transform: none; } }

.picks li { display: flex; gap: var(--s-4); padding-block: var(--s-4); border-bottom: 1px solid var(--line); }
.picks li:last-child { border-bottom: 0; }
.picks li > div { display: grid; gap: var(--s-1); }
.picks__q { font-size: var(--fs-large); line-height: var(--lh-large); font-weight: 500; letter-spacing: -0.01em; }
.picks__why { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }

/* ---------- Demo stepper ---------- */

.demo { margin-top: var(--s-16); }
.demo__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
.demo__tab {
  position: relative; display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); padding-block: var(--s-4); text-align: left;
  border-top: 1px solid var(--line-strong);
  font-size: var(--fs-body); line-height: var(--lh-body);
  color: var(--ink-3); transition: color var(--t-fast) var(--ease);
}
.demo__tab span { color: inherit; opacity: 0.6; }
.demo__tab::before { content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease); }
.demo__tab:hover, .demo__tab.is-active { color: var(--ink); }
.demo__tab.is-active::before, .demo__tab.is-done::before { transform: scaleX(1); }
.demo__tab.is-done::before { opacity: 0.4; }

.demo__body { display: grid; gap: var(--s-8); margin-top: var(--s-8); }
@media (min-width: 900px) { .demo__body { grid-template-columns: 4fr 7fr; gap: var(--s-16); align-items: start; } }

.demo__copy { display: grid; }
.demo__text { grid-area: 1 / 1; display: grid; gap: var(--s-3); align-content: start; color: var(--ink-2); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 400ms var(--ease), transform 400ms var(--ease), visibility 0s 400ms; }
.demo__text.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.demo__text h3 { color: var(--ink); font-size: var(--fs-figure); line-height: var(--lh-figure); font-weight: 500; letter-spacing: -0.03em; }

.demo__screen { position: relative; isolation: isolate; overflow: hidden; display: grid; padding: var(--s-5); border-radius: var(--r-lg); background: #3fa98a; min-height: 480px; }
@media (min-width: 600px) { .demo__screen { padding: var(--s-10); } }
.screen { grid-area: 1 / 1; display: none; align-self: center; }
.screen.is-active { display: block; }

.window { display: grid; gap: var(--s-3); padding: var(--s-6); background: #0b0e0b; border: 1px solid var(--glass-line); border-radius: var(--r-md); box-shadow: 0 24px 48px rgba(4, 20, 12, 0.35); }
.window__head, .window__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.window__title { font-size: var(--fs-large); line-height: var(--lh-large); font-weight: 500; letter-spacing: -0.01em; }
.window > .label:not(:first-child) { margin-top: var(--s-2); }

.field { display: flex; align-items: center; height: var(--control-lg); padding-inline: var(--s-4); background: var(--raised); border: 1px solid var(--line-strong); border-radius: var(--r-sm); font-family: var(--font-mono); font-size: var(--fs-small); }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; background: var(--accent); vertical-align: text-bottom; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; height: 32px; padding-inline: var(--s-3); border: 1px solid var(--line-strong); border-radius: var(--r-xs); font-size: var(--fs-small); color: var(--ink-2); }
.chip--on { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

.row { display: flex; gap: var(--s-3); padding: var(--s-3); background: var(--raised); border-radius: var(--r-sm); }
.row > div { display: grid; gap: var(--s-1); min-width: 0; }
.row--flat { padding: 0; background: none; }
.row__q { font-size: var(--fs-small); line-height: var(--lh-small); }
.row__why { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.row .label { white-space: nowrap; overflow: hidden; }

.out { display: grid; grid-template-columns: 24px 1fr; gap: var(--s-3); padding: var(--s-3); background: var(--raised); border-radius: var(--r-sm); }
.out > div { display: grid; gap: var(--s-1); min-width: 0; }
.out__n { display: grid; place-items: center; width: 24px; height: 24px; background: var(--accent-soft); color: var(--accent); border-radius: var(--r-xs); font-size: var(--fs-small); line-height: 1; font-weight: 500; }
.out__v { font-family: var(--font-mono); font-size: var(--fs-small); line-height: var(--lh-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.draft { display: grid; gap: var(--s-2); margin-top: var(--s-2); padding-left: var(--s-4); border-left: 1px solid var(--line-strong); }
.draft__text { min-height: calc(var(--lh-small) * 8); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink); }
@media (min-width: 600px) { .draft__text { min-height: calc(var(--lh-small) * 5); } }
.linkchip { display: inline-flex; align-items: center; gap: var(--s-2); height: 32px; padding-inline: var(--s-3); background: var(--raised); border-radius: var(--r-xs); font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink); }
.linkchip .icon { color: var(--ink-3); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.stats > div { display: grid; gap: var(--s-2); padding: var(--s-4); background: var(--raised); border-radius: var(--r-sm); }
.bars { display: grid; margin-top: var(--s-2); }
.bars li { display: grid; grid-template-columns: 20px 1fr 56px 24px 56px; gap: var(--s-3); align-items: center; height: 36px; border-bottom: 1px solid var(--line); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.bars li:last-child { border-bottom: 0; }
.bars__q { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars__track { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bars__track i { display: block; height: 100%; border-radius: 2px; background: var(--ink-3); transform: scaleX(0); transform-origin: left; transition: transform 900ms var(--ease); }
.bars.on .bars__track i { transform: scaleX(var(--w)); }
.bars__n { text-align: right; }
.bars .is-top { color: var(--ink); }
.bars .is-top i { background: var(--accent); }
.bars .src { width: 20px; height: 20px; }
.bars__code { display: none; font-family: var(--font-mono); color: var(--ink-3); }
.bars__head .bars__code { font-family: inherit; }
@media (min-width: 600px) { .bars li { grid-template-columns: 20px 1fr 72px 96px 24px 64px; } .bars__code { display: block; } }
.bars .bars__head { height: 32px; color: var(--ink-3); }
.bars__head span:last-child { text-align: right; }

/* things inside a demo screen that pop in one by one */
.js [data-pop] { opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 360ms var(--ease), transform 360ms var(--ease); }
.js [data-pop].on { opacity: 1; transform: none; }

/* ---------- Draft anatomy ---------- */

.anatomy { display: grid; gap: var(--s-8); margin-top: var(--s-16); counter-reset: rule; }
@media (min-width: 900px) { .anatomy { grid-template-columns: 6fr 5fr; gap: var(--s-16); align-items: start; } }
.anatomy__draft { display: grid; gap: var(--s-5); }
.anatomy__who { display: flex; align-items: center; gap: var(--s-3); }
.anatomy__who > div { display: grid; gap: var(--s-1); }
.anatomy__name { font-weight: 500; }
.anatomy__text { font-size: var(--fs-lead); line-height: var(--lh-lead); }
.mark { text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.mark::after, .rules li::before {
  display: inline-grid; place-items: center; width: 20px; height: 20px;
  background: var(--accent-soft); color: var(--accent); border-radius: var(--r-xs);
  font-size: var(--fs-label); line-height: 1; font-weight: 500;
}
.mark::after { content: attr(data-n); margin-left: var(--s-1); vertical-align: 3px; }

.rules { display: grid; gap: var(--s-6); }
.rules li { position: relative; display: grid; align-content: start; gap: var(--s-1); padding-left: var(--s-8); counter-increment: rule; color: var(--ink-2); }
.rules li::before { content: counter(rule); position: absolute; left: 0; top: 3px; }
.rules h3 { color: var(--ink); }

/* ---------- Pricing ---------- */

.pricing { display: grid; gap: var(--s-6); margin-top: var(--s-16); }
@media (min-width: 900px) { .pricing { grid-template-columns: 5fr 6fr; align-items: stretch; } }

.trial { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.trial__art { width: 100%; height: 128px; }
.trial__body { display: flex; flex-direction: column; flex: 1; gap: var(--s-5); padding: var(--s-6); }
.trial__price { font-size: var(--fs-large); line-height: var(--lh-large); color: var(--ink-2); }
.trial__price .figure { margin-right: var(--s-1); }
.trial .btn { margin-top: auto; align-self: start; }

.ticks { display: grid; gap: var(--s-3); padding-block: var(--s-5); border-block: 1px solid var(--line); }
.ticks li { display: flex; align-items: center; gap: var(--s-3); }
.ticks .icon { color: var(--ink-3); }

.packs { display: flex; flex-direction: column; gap: var(--s-2); }
.pack { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: var(--s-1) var(--s-4); padding-block: var(--s-5); border-bottom: 1px solid var(--line); }
.pack:last-child { border-bottom: 0; }
.pack > div { display: grid; gap: var(--s-1); }
.pack__name { font-size: var(--fs-large); line-height: var(--lh-large); font-weight: 500; letter-spacing: -0.01em; }
.pack__fit { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.pack__unit { grid-column: 2; grid-row: 2; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-3); }
.pack .figure { grid-column: 3; grid-row: 1 / span 2; min-width: 64px; text-align: right; }
@media (min-width: 600px) {
  .pack { grid-template-columns: 40px 1fr auto 80px; }
  .pack__unit { grid-column: 3; grid-row: 1; text-align: right; }
  .pack .figure { grid-column: 4; grid-row: 1; }
}

.terms { display: grid; gap: var(--s-2); margin-top: auto; padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-2); }
.terms li { position: relative; padding-left: var(--s-4); }
.terms li::before { content: ""; position: absolute; left: 0; top: 8px; width: 4px; height: 4px; background: var(--ink-3); }

.aside { margin-top: var(--s-8); max-width: var(--measure); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-3); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; padding-block: var(--s-4); font-size: var(--fs-large); line-height: var(--lh-large); font-weight: 500; letter-spacing: -0.01em; cursor: pointer; list-style: none; transition: color var(--t-fast) var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--ink-3); transition: transform var(--t-fast) var(--ease); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { max-width: var(--measure); padding-bottom: var(--s-6); color: var(--ink-2); }

/* ---------- Closing and footer ---------- */

.closing-wrap { padding-bottom: var(--s-16); }
.closing { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; padding: var(--s-12) var(--s-4); border-radius: var(--r-lg); background: #3fa98a; }
@media (min-width: 768px) { .closing { padding: var(--s-24) var(--s-8); } }
.closing__card { display: grid; gap: var(--s-5); justify-items: start; width: 100%; max-width: 640px; padding: var(--s-8) var(--s-6); background: var(--bg); border-radius: var(--r-lg); }
@media (min-width: 768px) { .closing__card { padding: var(--s-12); } }
.closing__nudge { width: 40px; height: 40px; fill: var(--accent); }
.closing .signup { width: 100%; margin-top: var(--s-3); }

.footer { padding-block: var(--s-8); border-top: 1px solid var(--line); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-12); }
.footer__row > .label { margin-left: auto; }

/* ---------- Inner pages: pricing, blog, legal ---------- */

.link, .article a, .signup__note a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color var(--t-fast) var(--ease); }
.link:hover, .article a:hover, .signup__note a:hover { text-decoration-color: var(--ink); }

.section--tight { padding-block: var(--s-10) var(--section); }
.page-head { padding-block: var(--s-12) var(--s-6); }
.page-head h1 { font-size: var(--fs-title); line-height: var(--lh-title); max-width: 52rem; }
.page-head .lead { margin-top: var(--s-5); max-width: 44rem; }
.page-head__meta { margin-top: var(--s-5); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-3); }
@media (min-width: 768px) { .page-head { padding-block: var(--s-20) var(--s-8); } }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-3); }
.crumbs a { transition: color var(--t-fast) var(--ease); }
.crumbs a:hover { color: var(--ink); }

.article > * { max-width: 44rem; }
.article > .table-scroll, .article > .faq { max-width: 52rem; }
.article h2 { margin-top: var(--s-16); font-size: var(--fs-figure); line-height: var(--lh-figure); letter-spacing: -0.03em; }
.article > h2:first-child { margin-top: 0; }
.article p, .article ul, .article ol { margin-top: var(--s-4); font-size: var(--fs-large); line-height: var(--lh-large); color: var(--ink-2); }
.article ul, .article ol { display: grid; gap: var(--s-3); padding-left: var(--s-6); }
.article ul { list-style: square; }
.article ol { list-style: decimal; }
.article li::marker { color: var(--ink-3); }
.article strong { color: var(--ink); font-weight: 500; }
.article code { padding: 2px var(--s-2); background: var(--raised); border-radius: var(--r-xs); font-family: var(--font-mono); font-size: var(--fs-small); color: var(--ink); }
.article .article__summary { margin-top: 0; padding-left: var(--s-5); border-left: 2px solid var(--accent); font-size: var(--fs-lead); line-height: var(--lh-lead); color: var(--ink); }
.article .faq { margin-top: var(--s-6); }
.article .faq p { margin-top: 0; font-size: var(--fs-body); line-height: var(--lh-body); }
.article__art { width: 100%; height: 120px; border-radius: var(--r-lg); }
@media (min-width: 768px) { .article__art { height: 200px; } }

.table-scroll { margin-top: var(--s-6); overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.table { width: 100%; min-width: 520px; border-collapse: collapse; }
.table th, .table td { padding: var(--s-4) var(--s-5); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); font-size: var(--fs-body); line-height: var(--lh-body); }
.table th { font-size: var(--fs-small); line-height: var(--lh-small); font-weight: 400; color: var(--ink-3); }
.table td { color: var(--ink-2); }
.table td:first-child { color: var(--ink); font-weight: 500; }
.table tr:last-child td { border-bottom: 0; }

.posts { display: grid; gap: var(--s-4); }
.post { display: grid; gap: var(--s-5); padding: var(--s-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.post:hover { border-color: var(--line-strong); background: var(--raised); }
.post > div { display: grid; gap: var(--s-3); align-content: center; }
.post h2, .post h3 { font-size: var(--fs-quote, 1.5rem); line-height: 2rem; letter-spacing: -0.02em; text-wrap: balance; }
.post p:not(.label) { color: var(--ink-2); max-width: 44rem; }
.post__art { width: 100%; height: 96px; border-radius: var(--r-md); }
@media (min-width: 768px) { .post { grid-template-columns: 200px 1fr; gap: var(--s-8); } .post__art { height: 100%; min-height: 136px; } }
.more__title { margin-bottom: var(--s-8); font-size: var(--fs-figure); line-height: var(--lh-figure); }

.footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); }
.footer__grid nav, .footer__grid > div { display: grid; gap: var(--s-3); align-content: start; color: var(--ink-2); }
.footer__grid a:not(.logo) { transition: color var(--t-fast) var(--ease); }
.footer__grid a:not(.logo):hover { color: var(--ink); }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { max-width: 20rem; }
.footer__base { margin-top: var(--s-10); padding-top: var(--s-6); border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-3); }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } .footer__brand { grid-column: auto; } }
.footer { padding-block: var(--s-12) var(--s-8); }

/* ---------- Scroll reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--t-enter) var(--ease), transform var(--t-enter) var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
