/* Testr marketing site — 2026 design system.
   90% neutral / 10% ocean accent · editorial serif + humanist sans ·
   motion: one reveal token, compositor-only, reduced-motion safe. */
:root {
  --ink: #0B1B2C;
  --brand: #225983;
  --bg: #F7FAFD;
  --tint: #EEF3F8;
  --card: #FFFFFF;
  --hairline: #E1E8EF;
  --slate: #5A6B7A;
  --sage: #47795F;
  --section-pad: clamp(80px, 10vw, 120px);
  --content: 1180px;
  --step-0: clamp(1rem, .95rem + .3vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + .5vw, 1.35rem);
  --step-2: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --step-3: clamp(2rem, 1.6rem + 2vw, 2.75rem);
  --step-4: clamp(2.5rem, 1.9rem + 3.2vw, 4.25rem);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: color-mix(in srgb, var(--ink) 88%, white);
  line-height: 1.6; font-size: var(--step-0);
  -webkit-font-smoothing: antialiased;
}
.serif { font-family: Georgia, "Times New Roman", serif; color: var(--ink); }
.wrap { max-width: var(--content); margin: 0 auto; padding: 0 24px; }
.measure { max-width: 66ch; }

h1, h2, h3, .display {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink); letter-spacing: -0.02em; line-height: 1.05;
  text-wrap: balance;
}

/* Kicker — small uppercase label above headings */
.kicker {
  display: block; font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}

/* Cassette rule — the brand underline */
.rule { width: 34px; margin: 16px 0 0; }
.rule i { display: block; height: 3px; width: 100%; border-radius: 2px; background: var(--brand); }
.rule i + i { margin-top: 3px; opacity: .45; }
.center .rule, .rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Motion primitives ---------- */
[data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.16, 1, .3, 1);
  }
  [data-reveal].in { opacity: 1; transform: none; }
  /* Hero load-in: blur-to-sharp, staggered via --i */
  .hero-in > * {
    opacity: 0; transform: translateY(20px); filter: blur(4px);
    transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1), filter .6s ease;
    transition-delay: calc(var(--i, 0) * 110ms);
  }
  .hero-in.is-in > * { opacity: 1; transform: none; filter: none; }
  /* Signature band wipe under the wordmark, plays once with hero */
  .bandwipe i { transform: scaleX(0); transform-origin: left; }
  .is-in .bandwipe i, .bandwipe.is-in i { transform: scaleX(1); }
  .bandwipe i { transition: transform .7s ease-out .5s; }
  .bandwipe i + i { transition-delay: .62s; }
}

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: transparent; transition: background .25s ease, box-shadow .25s ease;
}
header.scrolled {
  background: rgba(247, 250, 253, .72);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
}
.nav { display: flex; align-items: center; gap: 28px; padding: 18px 0; transition: padding .25s ease; }
header.scrolled .nav { padding: 11px 0; }
.logo { display: flex; flex-direction: column; text-decoration: none; }
.logo .mark { display: flex; align-items: flex-end; gap: 4px; }
.logo span { font-family: Georgia, serif; font-weight: 700; font-size: 25px; color: var(--ink); line-height: .9; }
.bandwipe { display: block; width: 52px; margin-top: 5px; }
.bandwipe i { display: block; height: 3px; border-radius: 2px; background: var(--brand); }
.bandwipe i + i { margin-top: 2px; opacity: .45; }
.nav a.link {
  color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 600;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s ease, color .2s ease; padding-bottom: 2px;
}
.nav a.link:hover, .nav a.link:focus-visible { background-size: 100% 1.5px; color: var(--brand); }
.nav .spacer { flex: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #F7FAFD; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 14px 26px; border-radius: 10px;
  border: none; cursor: pointer;
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, background .2s ease;
}
.btn .arrow { transition: transform .22s ease; }
.btn:hover, .btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(11, 27, 44, .18);
  background: #1E4F75;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn.secondary {
  background: transparent; color: var(--brand);
  border: 1.5px solid var(--hairline);
}
.btn.secondary:hover { background: var(--card); box-shadow: 0 8px 24px rgba(11,27,44,.1); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 88px); }
.mesh { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--tint), var(--bg) 70%); }
.mesh b { display: none; }
.mesh::after {
  content: ""; position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: var(--step-4); }
.hero .sub { margin-top: 20px; font-size: 18px; color: var(--slate); max-width: 52ch; }
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.addr {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--hairline); border-radius: 999px;
  padding: 13px 20px; font-size: 15px; color: var(--slate); text-decoration: none;
  box-shadow: 0 6px 24px rgba(11, 27, 44, .06);
  transition: transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, border-color .2s ease;
}
.addr:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 12px 32px rgba(11,27,44,.12); }
.addr .chev { color: var(--brand); font-weight: 700; }
.hero .meta { margin-top: 22px; font-size: 14px; color: var(--slate); }

/* Verified Result proof card — the hero "photo" */
.result-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 22px;
  box-shadow: 0 20px 60px rgba(11, 27, 44, .1);
  padding: 26px 26px 22px; max-width: 400px; margin-left: auto;
  transform: rotate(1.2deg);
}
.result-card .rc-head { display: flex; align-items: center; justify-content: space-between; }
.result-card .rc-brand { display: flex; align-items: flex-end; gap: 3px; font-family: Georgia, serif; font-weight: 700; font-size: 17px; color: var(--ink); }
.rc-chip {
  font-size: 12.5px; font-weight: 700; color: var(--sage);
  background: color-mix(in srgb, var(--sage) 11%, white);
  border: 1px solid color-mix(in srgb, var(--sage) 30%, white);
  padding: 5px 12px; border-radius: 999px;
}
.rc-sample {
  position: absolute; top: -10px; left: 22px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; color: var(--slate); background: var(--bg);
  border: 1px solid var(--hairline); padding: 3px 10px; border-radius: 4px;
}
.result-card { position: relative; }
.rc-code { margin-top: 14px; font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--slate); letter-spacing: .04em; }
.rc-rows { margin-top: 12px; border-top: 1px solid var(--hairline); }
.rc-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 13.5px; }
.rc-row b { color: var(--ink); font-weight: 600; }
.rc-row .neg { color: var(--sage); font-weight: 700; }
.rc-foot { margin-top: 12px; font-size: 12px; color: var(--slate); display: flex; gap: 8px; align-items: center; }

.hero-meta { margin-top: 22px; font-size: 14px; color: var(--slate); }

/* Full-bleed statement band (breaks the card-grid monotony) */
.band { background: var(--ink); color: rgba(255,255,255,.8); }
.band .bigline {
  font-family: Georgia, serif; color: #fff; font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.2; letter-spacing: -0.01em; max-width: 21ch; text-wrap: balance;
}
.band p.support { margin-top: 18px; max-width: 60ch; font-size: 16px; }

/* Pull-quote (no card chrome) */
.quote {
  font-family: Georgia, serif; font-size: clamp(20px, 2.6vw, 26px); color: var(--ink);
  line-height: 1.35; max-width: 30ch; border-left: 3px solid var(--brand);
  padding-left: 22px; margin-top: 34px;
}

/* Founder / colophon block */
.founder { display: flex; gap: 18px; align-items: flex-start; margin-top: 34px; max-width: 620px; }
.founder .sig {
  font-family: Georgia, serif; font-weight: 700; font-size: 19px; color: var(--ink);
}
.founder p { font-size: 15px; color: var(--slate); margin-top: 6px; }

/* Stat prose (replaces the count-up widget) */
.factline { margin-top: 22px; font-size: var(--step-1); color: var(--slate); max-width: 62ch; }
.factline b { color: var(--ink); font-family: Georgia, serif; }

/* Real app screenshots in device bezels */
.device {
  display: inline-block; background: var(--ink); padding: 10px;
  border-radius: 46px; box-shadow: 0 30px 80px rgba(11, 27, 44, .22);
}
.device img { display: block; width: min(300px, 74vw); height: auto; border-radius: 37px; }
.phone-shot {
  display: block; width: min(320px, 78vw); height: auto; border-radius: 38px;
  border: 1px solid var(--hairline);
  box-shadow: 0 24px 70px rgba(11, 27, 44, .16);
}

/* Fanned three-phone showcase */
.fan {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 0; margin-top: 60px; padding-bottom: 24px;
}
.fan figure { margin: 0; text-align: center; }
.fan .device img { width: min(250px, 60vw); height: auto; }
.fan figure:nth-child(1) { transform: rotate(-5deg) translateY(14px); z-index: 1; }
.fan figure:nth-child(2) { z-index: 3; margin: 0 -34px; transform: translateY(-14px); }
.fan figure:nth-child(3) { transform: rotate(5deg) translateY(14px); z-index: 2; }
.fan figcaption {
  margin-top: 22px; font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand);
}
.fan figure:nth-child(2) figcaption { margin-top: 34px; }
@media (max-width: 820px) {
  .fan { flex-direction: column; align-items: center; gap: 34px; }
  .fan figure { transform: none !important; margin: 0 !important; }
}
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.split .phone-shot { margin-inline: auto; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Quiet certification rail */
.trust-rail { text-align: center; padding: 34px 0 8px; }
.trust-rail .items {
  display: flex; gap: clamp(16px, 3vw, 36px); justify-content: center; flex-wrap: wrap;
  margin-top: 14px; font-size: 13.5px; font-weight: 500; letter-spacing: .01em;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
}
.trust-rail .items span { border-bottom: 1px solid var(--hairline); padding-bottom: 3px; }

/* ---------- Sections ---------- */
section { padding: var(--section-pad) 0; }
section.tint { background: var(--tint); }
h2.title { font-size: var(--step-3); }
.lede { margin-top: 16px; color: var(--slate); font-size: var(--step-1); max-width: 60ch; }
.grid { display: grid; gap: 22px; margin-top: 44px; }
.grid.c2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.c3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: 16px;
  padding: 26px; box-shadow: 0 4px 18px rgba(11, 27, 44, .04);
}
a.card { transition: transform .25s cubic-bezier(.16,1,.3,1), border-color .25s ease, box-shadow .25s ease; }
a.card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 14px 40px rgba(11,27,44,.09); }
.tint .card { background: var(--bg); }
.card h3 { font-size: var(--step-2); margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 15px; }
a.card { display: block; text-decoration: none; }

/* How it works — ghosted numerals over a hairline rail */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 54px; }
.steps::before {
  content: ""; position: absolute; top: 44px; left: 4%; right: 4%; height: 1px;
  background: var(--hairline);
}
.steps::after {
  content: ""; position: absolute; top: 47px; left: 4%; width: 72px; height: 3px;
  border-radius: 2px; background: var(--brand); opacity: .55;
}
.step-card { position: relative; padding-top: 8px; }
.step-card .num {
  font-family: Georgia, serif; font-size: clamp(64px, 8vw, 92px); font-weight: 700;
  color: var(--brand); opacity: .13; line-height: 1; display: block;
}
.step-card .k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-top: -18px; }
.step-card h3 { font-size: 22px; margin-top: 8px; }
.step-card p { color: var(--slate); font-size: 15px; margin-top: 8px; }

/* Stat band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 28px; margin-top: 48px; text-align: center; }
.stat .num {
  font-family: Georgia, serif; font-size: clamp(44px, 6vw, 68px); font-weight: 700; color: var(--ink);
  line-height: 1;
}
.stat .lbl { margin-top: 10px; font-size: 14px; color: var(--slate); }

/* Pricing */
.price-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 24px; margin-top: 44px; }
.price { font-family: Georgia, serif; font-size: 40px; color: var(--ink); font-weight: 700; margin: 6px 0 10px; }
.tag { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.panels { columns: 2; gap: 18px; margin-top: 12px; font-size: 14px; color: var(--slate); }
.panels li { break-inside: avoid; margin: 0 0 6px 18px; }

/* FAQ */
details { border: 1px solid var(--hairline); border-radius: 16px; background: var(--card); padding: 18px 22px; margin-top: 12px; transition: border-color .2s ease; }
details:hover { border-color: var(--brand); }
details summary { font-weight: 700; color: var(--ink); cursor: pointer; font-size: 16.5px; }
details p { margin-top: 10px; color: var(--slate); }

/* Forms */
.notify { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.notify input[type=email] {
  padding: 13px 20px; border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 15px; min-width: 280px; background: var(--card); color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.notify input[type=email]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(34,89,131,.15); }

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 56px 0 44px; }
footer .cols { display: flex; gap: 44px; flex-wrap: wrap; justify-content: space-between; }
footer a {
  color: #fff; text-decoration: none; font-size: 14px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size .3s ease; padding-bottom: 1px;
}
footer a:hover { background-size: 100% 1px; }
footer .fine { margin-top: 30px; font-size: 12.5px; color: rgba(255,255,255,.45); }
footer .serif-w { font-family: Georgia, serif; color: #fff; font-size: 21px; font-weight: 700; }
.footlinks { display: flex; flex-direction: column; gap: 9px; }

/* Learn pages */
.crumb { font-size: 13.5px; margin: 26px 0 0; }
.crumb a { color: var(--brand); text-decoration: none; font-weight: 600; }
article.learn { max-width: 720px; }
article.learn h1 { font-size: var(--step-3); margin-top: 18px; }
article.learn p.big { font-size: 18px; margin-top: 18px; color: var(--slate); }
.factbox { border-left: 3px solid var(--brand); padding: 6px 0 6px 20px; margin: 24px 0; color: var(--slate); }
.factbox b { color: var(--ink); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .result-card { margin: 8px auto 0; transform: rotate(0deg); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps::before, .steps::after { display: none; }
  .step-card .num { font-size: 56px; }
}
@media (max-width: 640px) {
  .nav a.link { display: none; }
  .panels { columns: 1; }
}
