/* PeekRank landing (index.html). Hand-written, no build step.
   Colour: yellow = the action + the price; orange = money you're losing (meter, countdown bar,
   strikes); green = gains; everything else is ink on paper/shelf.
   Motion follows the PeekRank Motion system (brand/motion, artifact VTgXFqwf3SdaA2whXKK2vF):
   snap for UI/text (fast, dead stop, no overshoot) · stamp for hits (hard shadow shrinks to 0 on
   impact) · text prints letter by letter · numbers roll like an odometer · no generic fades/blur. */

:root {
  --ink: #171512;
  --ink70: #4A453D;
  --ink50: #7C766B;
  --shelf: #E4E7E0;
  --paper: #F7F8F4;
  --tag: #F5C400;
  --flash: #FF4A1C;
  --flash-ink: #B32C06;
  --grocer: #0E4A38;
  --rule: rgba(23, 21, 18, 0.14);
  --rule-dark: rgba(247, 248, 244, 0.16);

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Public Sans', system-ui, sans-serif;
  --mono: 'Martian Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --snap: cubic-bezier(.2, 0, 0, 1);
  --stamp: cubic-bezier(.7, 0, .84, 0);
  --buoy: cubic-bezier(.34, 1.56, .64, 1);
  --drift: cubic-bezier(.45, 0, .55, 1);

  --wrap: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --bw: 2.5px;
  --section-y: clamp(72px, 10vw, 128px);
  --bar-h: 40px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg, img { display: block; }
a { color: inherit; }
p { margin: 0; }
section { scroll-margin-top: calc(var(--bar-h) + 12px); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
h2 { font-size: clamp(34px, 4.6vw, 56px); }

.label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink70);
}
.label--tag { color: var(--tag); }

.section-head { max-width: 780px; }
.section-head h2 { margin-top: 14px; }
.sub { margin-top: 20px; font-size: 19px; line-height: 1.6; color: var(--ink70); max-width: 62ch; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  padding: 16px 26px;
  border: var(--bw) solid var(--ink);
  transition: transform 0.15s var(--snap), box-shadow 0.15s var(--snap);
}
.btn--primary { background: var(--tag); color: var(--ink); box-shadow: 5px 5px 0 var(--ink); }
.btn--primary:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--ink); }
.btn--primary:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--ink); }
.btn--onDark { border-color: var(--tag); box-shadow: none; }
.btn--onDark:hover { box-shadow: none; transform: translateY(-2px); }
.btn--ink { background: var(--ink); color: var(--tag); }
.btn--ink:hover { transform: translateY(-2px); }
.btn--block { display: flex; width: 100%; }

.link-arrow {
  font-family: var(--display);
  font-weight: 800;
  font-size: 16px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link-arrow:hover { text-decoration-color: var(--flash); }

/* ---------- countdown bar (sticky) ---------- */
.bar {
  position: sticky; top: 0; z-index: 60;
  background: var(--flash); color: var(--ink);
  font-family: var(--mono); font-size: 13px;
}
.bar__inner { display: flex; align-items: center; justify-content: center; gap: 10px 16px; min-height: var(--bar-h); }
.bar__tag {
  background: var(--ink); color: var(--paper);
  padding: 3px 8px; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.bar__txt s { opacity: 0.7; }
.bar__txt b { font-weight: 700; }
.bar__cd { font-weight: 700; font-variant-numeric: tabular-nums; }
.bar__cta {
  font-family: var(--display); font-weight: 900; font-size: 14px; text-decoration: none;
  background: var(--ink); color: var(--tag); padding: 5px 12px;
}
.bar__cta:hover { color: var(--paper); }
.bar__cta { white-space: nowrap; }
.show-sm { display: none; }
@media (max-width: 640px) {
  .bar { font-size: 11.5px; }
  .bar__inner { justify-content: space-between; gap: 8px; }
  .bar__tag { display: none; }
  .bar__cta { font-size: 13px; padding: 5px 10px; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
}

/* ---------- nav ---------- */
.nav { background: var(--ink); color: var(--paper); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 58px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 900; font-size: 15px; letter-spacing: 0.02em;
  text-decoration: none;
}
.brand__mark { width: 24px; height: 24px; }
.brand__peek { width: 40px; height: 40px; margin: -8px -6px -8px -8px; } /* the P is 24px inside the 40px canvas */
.brand__tld { color: var(--tag); }
.nav__links { display: flex; gap: 28px; font-family: var(--mono); font-size: 12.5px; }
.nav__links a { text-decoration: none; opacity: 0.8; }
.nav__links a:hover { opacity: 1; color: var(--tag); }
@media (max-width: 760px) { .nav__links { display: none; } }
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__auth { display: flex; align-items: center; gap: 10px; }
.nav__login, .nav__signup {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700; text-decoration: none;
  border: 1.5px solid var(--tag); padding: 6px 14px; white-space: nowrap;
}
.nav__login { color: var(--tag); }
.nav__login:hover { background: var(--tag); color: var(--ink); }
.nav__signup { background: var(--tag); color: var(--ink); }
.nav__signup:hover { background: var(--paper); border-color: var(--paper); }
@media (max-width: 420px) {
  .nav__inner { gap: 12px; }
  .brand { font-size: 13px; }
  .nav__auth { gap: 8px; }
  .nav__login, .nav__signup { font-size: 11.5px; padding: 6px 10px; }
}

/* ---------- hero ---------- */
.hero { background: var(--shelf); padding: clamp(44px, 6vw, 88px) 0 clamp(64px, 8vw, 104px); overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(40px, 5vw, 64px); align-items: center; }
@media (max-width: 940px) { .hero__grid { grid-template-columns: minmax(0, 1fr); } }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink70);
}
.eyebrow b { color: var(--ink); font-size: 14px; }
.eyebrow s { text-decoration-color: var(--flash); text-decoration-thickness: 2px; }
.pill {
  background: var(--flash); color: var(--paper);
  padding: 4px 9px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; font-size: 11.5px;
}
.hero h1 { margin-top: 22px; font-size: clamp(42px, 5.4vw, 68px); max-width: 14ch; }
.hl { position: relative; white-space: nowrap; color: var(--flash-ink); }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.06em; height: 0.12em;
  background: var(--flash); border-radius: 2px; transform-origin: left;
}
.lede { margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--ink70); max-width: 47ch; }
.cta-row { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

.hero__note { margin-top: 22px; font-family: var(--mono); font-size: 12px; color: var(--ink70); }

/* ---------- hero: the offer at a glance — three price tags (cut corner + punched hole), stamped in ---------- */
.tags { display: grid; gap: 18px; min-width: 0; filter: drop-shadow(6px 6px 0 var(--ink)); }
.tag {
  --cut: 40px;
  position: relative; padding: 22px 64px 24px 26px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
  transform: rotate(var(--rot, 0deg));
}
.tag::after { /* the punched hole */
  content: ""; position: absolute; top: 18px; right: 18px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--shelf); box-shadow: inset 0 0 0 2px rgba(23, 21, 18, 0.28);
}
.tag--yellow { background: var(--tag); color: var(--ink); }
.tag--paper { background: var(--paper); color: var(--ink); margin-left: clamp(0px, 4vw, 48px); }
.tag--ink { background: var(--ink); color: var(--paper); margin-left: clamp(0px, 1.5vw, 16px); }
.tag__k { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; }
.tag__v { margin-top: 6px; font-family: var(--display); font-weight: 900; font-size: clamp(44px, 5vw, 64px); letter-spacing: -0.045em; line-height: 0.95; }
.tag--ink .tag__v { color: var(--tag); font-size: clamp(34px, 3.8vw, 48px); }
.tag__s { margin-top: 8px; font-size: 15px; line-height: 1.45; }
.tag--ink .tag__s { color: rgba(247, 248, 244, 0.8); }
@media (max-width: 940px) { .tag--paper, .tag--ink { margin-left: 0; } }

@keyframes pk-pulse { 50% { opacity: 0.25; } }

/* ---------- turn: SEO, the new way ---------- */
.turn { padding: var(--section-y) 0; background: var(--ink); color: var(--paper); }
.turn__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 860px) { .turn__grid { grid-template-columns: minmax(0, 1fr); } }
.turn__logo img { width: 100%; height: auto; aspect-ratio: 16 / 9; }
.turn__logo img:not([src]) { visibility: hidden; }
.turn h2 { font-size: clamp(40px, 5.6vw, 72px); color: var(--tag); }
.turn .sub { color: rgba(247, 248, 244, 0.78); }

/* turn: the AI superpowers block (MCP) + three short powers */
.ai {
  margin-top: clamp(48px, 7vw, 80px);
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  border: var(--bw) solid var(--tag); padding: clamp(22px, 3.5vw, 40px);
}
@media (max-width: 900px) { .ai { grid-template-columns: minmax(0, 1fr); } }
.ai h3 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 44px); color: var(--paper); }
.ai__copy > p:not(.label) { margin-top: 16px; font-size: 17px; line-height: 1.6; color: rgba(247, 248, 244, 0.8); max-width: 46ch; }
.ai__clients { list-style: none; margin: 20px 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ai__clients li { font-family: var(--mono); font-size: 12px; color: var(--paper); border: 1.5px solid var(--rule-dark); padding: 4px 10px; }
.link-arrow--onDark { color: var(--tag); }
.chat { margin: 0; min-width: 0; background: var(--paper); color: var(--ink); box-shadow: 8px 8px 0 var(--tag); font-size: 15px; line-height: 1.5; }
.chat__bar {
  display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px;
  background: var(--shelf); border-bottom: 1.5px solid var(--rule);
  font-family: var(--mono); font-size: 11.5px; color: var(--ink70);
}
.chat__tag { color: var(--flash-ink); }
.chat__body { padding: 18px; display: grid; gap: 12px; }
.chat__me { justify-self: end; max-width: 88%; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.chat__tool { font-family: var(--mono); font-size: 11.5px; color: var(--ink70); }
.chat__tool::before { content: ""; display: inline-block; width: 8px; height: 8px; background: var(--tag); border: 1.5px solid var(--ink); margin-right: 8px; vertical-align: 0; }
.chat__ai ul { list-style: none; margin: 8px 0 10px; padding: 0; font-family: var(--mono); font-size: 13px; }
.chat__ai li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.chat__ai li b { color: var(--flash-ink); white-space: nowrap; }
.powers {
  list-style: none; margin: clamp(36px, 5vw, 56px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: var(--bw) solid var(--paper);
}
.powers li { padding: 22px 24px 4px 0; }
.powers li + li { padding-left: 24px; border-left: 1px solid var(--rule-dark); }
.powers b { display: block; font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: -0.02em; line-height: 1.2; }
.powers b::before { content: ""; display: inline-block; width: 11px; height: 11px; background: var(--tag); margin-right: 10px; vertical-align: 2px; }
.powers span { display: block; margin-top: 8px; font-size: 15.5px; line-height: 1.55; color: rgba(247, 248, 244, 0.72); }
@media (max-width: 760px) {
  .powers { grid-template-columns: minmax(0, 1fr); }
  .powers li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--rule-dark); }
}

/* ---------- product: the eureka ---------- */
.product { padding: var(--section-y) 0; background: var(--shelf); }
.product__grid {
  margin-top: 52px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(36px, 5vw, 64px); align-items: start;
}
@media (max-width: 980px) { .product__grid { grid-template-columns: minmax(0, 1fr); } }
.eureka { position: relative; min-width: 0; }

.mock {
  position: relative; margin: 0; min-width: 0;
  background: var(--paper);
  border: var(--bw) solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  font-family: var(--mono);
  font-size: 12px;
}
.mock__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--ink); color: var(--paper); padding: 9px 14px; font-size: 11.5px;
}
.mock__bar span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock__tag { color: var(--tag); white-space: nowrap; }
.mock__tools {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px;
  padding: 10px 14px; border-bottom: 1.5px solid var(--ink);
}
.mock__status { font-size: 11px; color: var(--ink70); }
.mock__btn {
  position: relative; font-family: var(--display); font-weight: 900; font-size: 12.5px;
  background: var(--ink); color: var(--tag); padding: 7px 11px; border: 2px solid var(--ink);
  box-shadow: 3px 3px 0 var(--tag); transition: transform 0.12s var(--snap), box-shadow 0.12s var(--snap);
}
.mock__btn.press { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--tag); }
.mock__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1.5px solid var(--ink); }
.mock__kpis > div { padding: 12px 14px; border-right: 1.5px solid var(--rule); }
.mock__kpis > div:last-child { border-right: 0; }
.mock__kpis .k { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink70); }
.mock__kpis .v { margin-top: 4px; font-family: var(--display); font-weight: 900; font-size: 26px; letter-spacing: -0.03em; line-height: 1.1; white-space: nowrap; }
.mock__kpis .d { margin-top: 2px; font-size: 10.5px; color: var(--grocer); white-space: nowrap; }
.mock__kpis .d--muted { color: var(--ink70); }
.mock__chart { padding: 12px 14px 8px; border-bottom: 1.5px solid var(--ink); }
.mock__chart svg { width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.mock__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 10.5px; color: var(--ink70); }
.mock__range { margin-left: auto; }
.sw { display: inline-block; width: 14px; height: 3px; margin-right: 6px; vertical-align: middle; }
.sw--ink { background: var(--ink); }
.sw--back { background: var(--ink50); }
.mock__line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.mock__line--back { stroke: var(--ink50); }
.mock__line--now { stroke: var(--ink); stroke-width: 2.6; }
.mock__day1 { stroke: var(--flash); stroke-width: 1; stroke-dasharray: 3 3; }
.mock__axis { position: relative; display: flex; justify-content: space-between; margin-top: 6px; font-size: 10px; color: var(--ink50); }
.mock__axis span:nth-child(2) { position: absolute; left: 75%; transform: translateX(-50%); color: var(--flash-ink); }
.mock__table { width: 100%; border-collapse: collapse; }
.mock__table th {
  text-align: left; font-weight: 500; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink70); padding: 10px 14px 6px;
}
.mock__table td { padding: 7px 14px; border-top: 1px solid var(--rule); font-size: 11.5px; }
.mock__table td:first-child { font-family: var(--body); font-size: 13px; }
.mock__table th:not(:first-child), .mock__table td:not(:first-child) { text-align: right; white-space: nowrap; }
.mock__table td.up { color: var(--grocer); font-weight: 700; }
.mock__table tbody tr:last-child td { padding-bottom: 12px; }
.mock__cursor {
  position: absolute; left: 0; top: 0; width: 22px; height: 22px; z-index: 3; pointer-events: none;
  visibility: hidden; transform: translate(var(--cx, 0px), var(--cy, 0px));
  transition: transform 0.6s var(--snap);
}
@media (max-width: 560px) {
  .mock__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mock__kpis > div:nth-child(2) { border-right: 0; }
  .mock__kpis > div:nth-child(-n+2) { border-bottom: 1.5px solid var(--rule); }
  .hide-sm { display: none; }
  .mock__table td, .mock__table th { padding-left: 10px; padding-right: 10px; }
}

/* the stamped answer tag (price-tag shape: cut corner + punched hole) */
.answer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 30px; }
.answer__tag {
  --rot: -3deg;
  display: inline-block; position: relative; transform: rotate(var(--rot));
  background: var(--tag); color: var(--ink); border: var(--bw) solid var(--ink);
  padding: 12px 18px 12px 34px;
  font-family: var(--display); font-weight: 900; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.03em; line-height: 1;
  clip-path: polygon(16px 0, 100% 0, 100% 100%, 16px 100%, 0 50%);
  white-space: nowrap;
}
.answer__tag::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%; background: var(--shelf); border: 2px solid var(--ink);
}
.answer__sent {
  display: inline-block; padding: 4px 8px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--grocer);
  background: var(--paper); border: 1.5px solid var(--grocer);
}
.answer__sent::before { content: "✓ "; font-weight: 700; }

/* modules */
.product__side { min-width: 0; }
.modules {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 24px;
}
.modules li { border-top: var(--bw) solid var(--ink); padding-top: 11px; }
.modules h3 { font-size: 17.5px; font-weight: 800; letter-spacing: -0.02em; }
.modules p { margin-top: 5px; font-size: 14px; line-height: 1.5; color: var(--ink70); }
.modules .mod--hot { border-top-color: var(--flash); }
.modules .mod--hot h3 { color: var(--flash-ink); }
.modules .mod--soon { grid-column: 1 / -1; border-top-style: dashed; }
.soon {
  margin-left: 8px; vertical-align: 3px;
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  border: 1.5px solid var(--ink); padding: 2px 6px;
}
@media (max-width: 420px) { .modules { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

.proof {
  margin-top: 64px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink);
}
.proof > div { padding: 24px 20px 24px 0; }
.proof > div + div { padding-left: 20px; border-left: 1px solid var(--rule); }
.proof__v { font-family: var(--display); font-weight: 900; font-size: 36px; letter-spacing: -0.04em; line-height: 1; white-space: nowrap; }
.proof p:not(.proof__v) { margin-top: 8px; font-size: 14px; color: var(--ink70); max-width: 26ch; }
@media (max-width: 860px) {
  .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .proof > div:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 480px) {
  .proof { grid-template-columns: minmax(0, 1fr); }
  .proof > div, .proof > div + div { padding: 20px 0; border-left: 0; }
  .proof > div + div { border-top: 1px solid var(--rule); }
}

/* ---------- offer: value stack ---------- */
.offer { padding: var(--section-y) 0; background: var(--ink); color: var(--paper); }
.offer .sub { color: rgba(247, 248, 244, 0.78); }

.stack { list-style: none; margin: 56px 0 0; padding: 0; }
.stack__item {
  position: relative;
  display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 8px 28px; align-items: center;
  padding: 24px 26px;
  background: rgba(247, 248, 244, 0.05);
  border: 1.5px solid var(--rule-dark);
}
.stack__item + .stack__item { margin-top: 26px; }
/* the "+" joint between items */
.stack__item + .stack__item::before {
  content: "+"; position: absolute; left: 50%; top: -13px; transform: translate(-50%, -50%); z-index: 1;
  width: 34px; height: 34px; display: grid; place-items: center;
  background: var(--tag); color: var(--ink); border: 2.5px solid var(--ink);
  font-family: var(--display); font-weight: 900; font-size: 22px; line-height: 1;
}
.stack__item--soon { border-style: dashed; background: transparent; }
.stack__tag {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--tag);
}
.stack__item--soon .stack__tag { color: rgba(247, 248, 244, 0.6); }
.stack__body h3 { font-size: 23px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; }
.stack__body p { margin-top: 6px; font-size: 15px; line-height: 1.55; color: rgba(247, 248, 244, 0.72); max-width: 60ch; }
.stack__body .stack__else {
  margin-top: 10px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em;
  color: var(--tag);
}
.stack__price {
  justify-self: end; text-align: right; white-space: nowrap;
  display: flex; flex-direction: column; align-items: flex-end; gap: 8px;
}
/* The value you're NOT paying: readable, muted, struck with a drawn line. */
.stack__was {
  font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.02em; line-height: 1;
  color: rgba(247, 248, 244, 0.55); text-decoration: none;
}
.stack__was b { position: relative; font-weight: inherit; }.stack__was b::after {
  content: ""; position: absolute; left: -3px; right: -3px; top: 52%; height: 2.5px; margin-top: -1px;
  background: var(--flash); transform-origin: left;
}
.stack__was span { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: 0; margin-left: 3px; }
.stack__free {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tag); border: 1.5px solid var(--tag); padding: 3px 9px;
  --shadow-c: var(--tag);
}

@media (max-width: 760px) {
  .stack__item { grid-template-columns: minmax(0, 1fr); padding: 22px 18px 20px; gap: 6px; }
  .stack__price { justify-self: start; flex-direction: row; align-items: center; gap: 12px; margin-top: 8px; }
}

.total {
  margin-top: 40px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 0;
  border: var(--bw) solid var(--tag);
}
@media (max-width: 900px) { .total { grid-template-columns: minmax(0, 1fr); } }
.total__sum { padding: 28px 28px 30px; }
.total__act { padding: 28px; background: rgba(245, 196, 0, 0.08); border-left: var(--bw) solid var(--tag); }
@media (max-width: 900px) { .total__act { border-left: 0; border-top: var(--bw) solid var(--tag); } }

.guarantee { margin-top: 24px; font-size: 14.5px; line-height: 1.6; color: rgba(247, 248, 244, 0.8); }
.guarantee__t { font-family: var(--display); font-weight: 900; font-size: 18px; color: var(--paper); margin-bottom: 6px !important; }
.guarantee__t::before { content: "✓"; color: var(--tag); margin-right: 10px; }
.stack__foot { margin-top: 18px; font-family: var(--mono); font-size: 11.5px; line-height: 1.6; color: rgba(247, 248, 244, 0.5); max-width: 90ch; }

/* ---------- pricing: free plan + pay as you go, example costs (free pivot, 2026-10) ---------- */
.plans { margin-top: 56px; }
.plan { display: flex; flex-direction: column; gap: 14px; }
.plan .btn { margin-top: auto; }
.plan__price {
  font-family: var(--display); font-weight: 900; font-size: clamp(56px, 7vw, 84px); letter-spacing: -0.05em; line-height: 0.9;
  color: var(--tag);
}
.plan__list { list-style: none; margin: 4px 0 10px; padding: 0; font-size: 15.5px; line-height: 1.5; color: rgba(247, 248, 244, 0.85); }
.plan__list li { position: relative; padding: 10px 0 10px 26px; border-bottom: 1px solid var(--rule-dark); }
.plan__list li::before { content: "✓"; position: absolute; left: 0; color: var(--tag); font-weight: 700; }
.offer .stack { margin-top: 48px; }
.check { max-width: 70ch; margin-top: 40px; }

/* ---------- faq ---------- */
.faq { padding: var(--section-y) 0; background: var(--paper); }
.faq__inner { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .faq__inner { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.faq__list { border-top: var(--bw) solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
  padding: 22px 0;
  font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.015em; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); font-weight: 400; font-size: 22px; color: var(--ink70); flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 24px; color: var(--ink70); max-width: 62ch; }

/* ---------- close ---------- */
.close { padding: var(--section-y) 0; background: var(--tag); }
.close__inner { text-align: center; }
.close__peek { width: 112px; height: 112px; margin: -12px auto 8px; }
.close h2 { font-size: clamp(38px, 5.4vw, 68px); max-width: 15ch; margin: 0 auto; }
.close__sub { margin: 20px auto 34px; font-size: 19px; color: var(--ink); max-width: 52ch; }

/* ---------- footer ---------- */
.footer { background: var(--ink); color: var(--paper); padding: 40px 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer__line { font-size: 13.5px; opacity: 0.72; flex: 1 1 320px; }
.footer__links { display: flex; gap: 22px; font-family: var(--mono); font-size: 12.5px; }
.footer__links a { text-decoration: none; opacity: 0.8; }
.footer__links a:hover { opacity: 1; color: var(--tag); }

/* ---------- 404 ---------- */
.nf { padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 8vw, 104px); background: var(--paper); text-align: center; }
.nf__art { width: 100%; max-width: 960px; height: auto; margin: 0 auto; aspect-ratio: 16 / 9; }
.nf__cta { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 28px; align-items: center; }

/* =====================================================================================
   MOTION (PeekRank Motion system). Opt-in: JS adds the classes. With prefers-reduced-motion
   JS never arms anything, so the page just renders its final state.
   ===================================================================================== */

/* odometer: digits roll into place (JS wraps digits in .odo__d > .odo__s) */
.odo { display: inline-flex; align-items: flex-start; vertical-align: baseline; line-height: 1.1; }
.odo__d { display: inline-block; height: 1.1em; overflow: hidden; }
.odo__s { display: block; transform: translateY(0); }
.odo__s > span { display: block; height: 1.1em; line-height: 1.1; }
.odo.on .odo__s { transform: translateY(calc(var(--to) * -1.1em)); transition: transform 1.1s var(--snap) var(--dl, 0s); }

/* print: text appears letter by letter (JS splits into .ch) */
.print .ch { opacity: 0; }
.print.on .ch { animation: pk-print 1ms steps(1) forwards; animation-delay: calc(var(--i) * 24ms); }
@keyframes pk-print { to { opacity: 1; } }
.print .hl::after { transform: scaleX(0); }
.print.on .hl::after { transform: scaleX(1); transition: transform 0.3s var(--snap) var(--pd, 0.8s); }

/* snap-in reveal: fast, dead stop — no generic fade */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: transform 0.4s var(--snap), opacity 0.08s linear; }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* stamp: a hit from above — the hard shadow measures the height and reaches 0 on impact */
.armed .stamp { opacity: 0; }
.armed.on .stamp { animation: pk-stamp 0.34s var(--stamp) forwards; animation-delay: var(--sd, 0s); }
@keyframes pk-stamp {
  0% { opacity: 1; transform: translate(-10px, -12px) scale(1.35) rotate(var(--rot, 0deg)); box-shadow: 14px 16px 0 var(--shadow-c, var(--ink)); }
  82% { opacity: 1; transform: translate(0, 0) scale(1.04, 0.94) rotate(var(--rot, 0deg)); box-shadow: 0 0 0 var(--shadow-c, var(--ink)); }
  100% { opacity: 1; transform: rotate(var(--rot, 0deg)); box-shadow: 0 0 0 var(--shadow-c, var(--ink)); }
}

/* chat (AI superpowers): armed by JS, plays once in view — question types, the tool runs
   (pulsing square), the answer streams in, rows snap in and their positions roll */
.chat--armed .chat__me, .chat--armed .chat__tool, .chat--armed [data-chat-line] { visibility: hidden; }
.chat--armed .in { visibility: visible; }
.chat--armed .chat__me.in { animation: pk-bubble 0.22s var(--snap) both; }
.chat--armed li.in { animation: pk-row 0.3s var(--snap) both; }
.chat__tool.is-busy::before { animation: pk-pulse 0.7s steps(2) infinite; }
.print--fast.on .ch { animation-delay: calc(var(--i) * 11ms); }
@keyframes pk-bubble { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* stack items: snap in, then the strike draws, then FREE stamps */
.stack__item.armed { opacity: 0; transform: translateY(26px); --sd: 0.52s; }
.stack__item.armed.on { opacity: 1; transform: none; transition: transform 0.38s var(--snap), opacity 0.08s linear; }
.stack__item.armed .stack__was b::after { transform: scaleX(0); }
.stack__item.armed.on .stack__was b::after { transform: scaleX(1); transition: transform 0.3s var(--snap) 0.3s; }

/* eureka: before state (armed by JS), then the run */
.mock.eu-before .mock__kpis .v, .mock.eu-before .mock__kpis .d { opacity: 0.28; }
.mock.eu-before .mock__table tbody tr { visibility: hidden; }
.mock.eu-before .mock__line { stroke-dashoffset: 1; }
.mock.eu-before .mock__line--back { stroke-dashoffset: -1; } /* draws backwards, right → left: "rewinding" */
.mock.eu-before .mock__day1, .mock.eu-before .mock__axis { visibility: hidden; }
.mock.eu-run .mock__kpis .v, .mock.eu-run .mock__kpis .d { opacity: 1; transition: opacity 0.08s linear; }
.mock.eu-run .mock__line--back { stroke-dashoffset: 0; transition: stroke-dashoffset 0.9s var(--snap) 0.25s; }
.mock.eu-run .mock__line--now { stroke-dashoffset: 0; transition: stroke-dashoffset 0.45s var(--snap) 1.05s; }
.mock.eu-run .mock__table tbody tr { visibility: visible; animation: pk-row 0.3s var(--snap) both; }
.mock.eu-run .mock__table tbody tr:nth-child(1) { animation-delay: 0.5s; }
.mock.eu-run .mock__table tbody tr:nth-child(2) { animation-delay: 0.62s; }
.mock.eu-run .mock__table tbody tr:nth-child(3) { animation-delay: 0.74s; }
.mock.eu-run .mock__table tbody tr:nth-child(4) { animation-delay: 0.86s; }
@keyframes pk-row { from { transform: translateX(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
.mock.cursor-on .mock__cursor { visibility: visible; }
.answer.armed .answer__tag { opacity: 0; }
.answer.armed.on .answer__tag { animation: pk-stamp 0.34s var(--stamp) forwards; }
.answer.armed .answer__sent { visibility: hidden; }
.answer.armed.on .answer__sent { animation: pk-show 1ms steps(1) 0.5s both; }
@keyframes pk-show { from { visibility: hidden; } to { visibility: visible; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
