/* textRay marketing site · tokens from docs/brand/brand-bible-v1.md */

@font-face {
  font-family: 'Cabinet Grotesk';
  font-weight: 900;
  src: url(fonts/CabinetGrotesk-Black.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  font-weight: 700;
  src: url(fonts/CabinetGrotesk-Bold.woff2) format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  font-weight: 500;
  src: url(fonts/CabinetGrotesk-Medium.woff2) format('woff2');
  font-display: swap;
}

:root {
  --bg: #EFEBDF; --panel: #F6F3EA; --card: #FFFFFF; --ink: #141412;
  --muted: #666259; --line: #141412; --dim-line: #D8D4C6; --shadow: #141412;
  --lime: #C6F432; --lilac: #DAD3FF; --peach: #FFDDC8; --mint: #CFEEC5;
  --periwinkle: #9A93FF; --hot-orange: #FA743A;
  --ink-fixed: #141412; --cream-fixed: #F1EEE5; --peach-fixed: #FFDDC8; --lilac-fixed: #DAD3FF;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191813; --panel: #201F19; --card: #26251E; --ink: #F1EEE5;
    --muted: #A39F92; --line: #F1EEE5; --dim-line: #3B3A31; --shadow: #000000;
    --lilac: #4B4470; --peach: #6E4A33; --mint: #3A5A31;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: 'Cabinet Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 500; font-size: 17px; line-height: 1.5;
  overflow-x: clip;
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.wrap { max-width: 1140px; margin: 0 auto; padding-inline: 22px; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--hot-orange); outline-offset: 2px; }
mark {
  background: var(--lime); color: var(--ink-fixed); padding: 0 .12em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
}
h1, h2, h3 { margin: 0; }
section[id] { scroll-margin-top: 76px; }

/* ---------- shared atoms ---------- */

.eyebrow {
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 14px;
}
.big { font-weight: 900; font-size: clamp(34px, 5vw, 56px); letter-spacing: -.02em; line-height: 1.04; text-wrap: balance; }
.note { color: var(--muted); font-size: 15px; }

.lockup {
  display: inline-block; background: var(--lime); color: var(--ink-fixed);
  font-weight: 900; letter-spacing: -.02em; line-height: 1; text-decoration: none;
}
.lockup-nav { font-size: 24px; padding: 5px 12px 8px; box-shadow: 4px 4px 0 var(--shadow); }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 16px; text-decoration: none;
  border: 2px solid var(--line); box-shadow: 5px 5px 0 var(--shadow);
  padding: 12px 20px; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shadow); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--shadow); }
.btn .arrow { font-weight: 900; }
.btn-lime { background: var(--lime); color: var(--ink-fixed); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-store .apple { flex: none; }

.stamp {
  display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase;
  border: 2px solid var(--line); padding: 3px 8px; transform: rotate(-2deg);
  background: var(--card); color: var(--ink); white-space: nowrap;
}
.stamp-lime { background: var(--lime); color: var(--ink-fixed); }
.stamp-peach { background: var(--peach); color: var(--ink); }
.stamp-lilac { background: var(--lilac); color: var(--ink); }
.stamp-mint { background: var(--mint); color: var(--ink); }
.stamp-peri { background: var(--periwinkle); color: var(--ink-fixed); }
.price-stamp {
  display: inline-block; font-weight: 900; font-size: 12px;
  background: var(--ink); color: var(--bg); padding: 4px 10px; transform: rotate(2deg);
}

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  font-weight: 700; font-size: 12.5px; padding: 4px 10px;
  border: 2px solid var(--line); box-shadow: 2px 2px 0 var(--shadow);
  color: var(--ink); white-space: nowrap;
}
.p-lilac { background: var(--lilac); }
.p-peach { background: var(--peach); }
.p-mint { background: var(--mint); }

.bubble {
  background: var(--panel); border: 2px solid var(--line); box-shadow: 3px 3px 0 var(--shadow);
  padding: 10px 13px; font-size: 15px; line-height: 1.4;
  border-radius: 14px 14px 14px 3px; max-width: 44ch;
}
.bubble .who {
  display: block; font-size: 9.5px; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted); margin-bottom: 3px;
}
.bubble-you { border-radius: 14px 14px 3px 14px; background: var(--card); margin-left: auto; }
.receipt { font-size: 11px; color: var(--muted); letter-spacing: .04em; }

.card {
  background: var(--card); border: 2px solid var(--line);
  box-shadow: 6px 6px 0 var(--shadow); padding: 24px;
}
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 34px; }
.fine { font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- nav ---------- */

.nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 2px solid var(--line); }
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { font-weight: 700; font-size: 14.5px; text-decoration: none; }
.nav-links a:hover { background: var(--lime); color: var(--ink-fixed); box-shadow: 2px 2px 0 var(--shadow); }
.nav-cta { padding: 9px 16px; font-size: 14.5px; box-shadow: 4px 4px 0 var(--shadow); }

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero-h1 {
  font-weight: 900; font-size: clamp(40px, 6.4vw, 78px);
  letter-spacing: -.02em; line-height: 1.04; margin: 0 0 20px;
}
.hero-h1 > span { display: block; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 46ch; margin: 0 0 28px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero .fine { margin: 18px 0 0; }

/* load-in */
.js .rise { opacity: 0; transform: translateY(26px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--r) * 90ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* phone */
.phone {
  width: min(340px, 88vw); margin: 0 auto;
  border: 3px solid var(--line); border-radius: 44px;
  background: var(--ink); padding: 12px;
  box-shadow: 10px 10px 0 var(--shadow);
  transform: rotate(2deg);
}
.phone-screen {
  background: var(--panel); border: 2px solid var(--line); border-radius: 32px;
  padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start; min-height: 460px;
}
.phone-bar {
  align-self: stretch; display: flex; justify-content: space-between;
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  border-bottom: 1.5px solid var(--dim-line); padding-bottom: 9px;
}
.phone-verdict { font-weight: 900; font-size: 25px; line-height: 1.12; letter-spacing: -.015em; margin: 0; }
.phone-foot { display: flex; gap: 12px; align-items: center; margin-top: auto; }

/* ---------- marquees ---------- */

.mq { overflow: hidden; display: grid; gap: 18px; }
.mq-track { display: flex; width: max-content; }
.js .mq-track { animation: mq 44s linear infinite; }
.mq-track:hover { animation-play-state: paused; }
.mq-group { display: flex; align-items: center; gap: 18px; padding-right: 18px; }
@keyframes mq { to { transform: translateX(-50%); } }
.js .mq-b { animation-direction: reverse; }

/* ---------- how it works ---------- */

.how { background: var(--ink-fixed); color: var(--cream-fixed); padding: clamp(64px, 9vw, 120px) 0; }
.how .eyebrow { color: #8f8b7f; }
.how-list { list-style: none; margin: 0; padding: 0; }
.how-line { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto auto; column-gap: 18px; padding: 26px 0; border-bottom: 2px solid #33322b; align-items: baseline; }
.how-line:last-child { border-bottom: none; }
.how-line .n { grid-row: 1 / 3; font-size: 14px; color: #8f8b7f; }
.how-line h2 { font-weight: 900; font-size: clamp(32px, 5.6vw, 64px); letter-spacing: -.02em; line-height: 1.05; }
.how-line p { grid-column: 2; margin: 8px 0 0; color: #8f8b7f; font-size: 16px; }
.how-line .mk { background: none; color: inherit; position: relative; z-index: 0; padding: 0 .1em; }
.how-line .mk::before {
  content: ""; position: absolute; inset: .06em -.06em; z-index: -1;
  background: var(--lime); transform: scaleX(0); transform-origin: left center;
  transition: transform .7s cubic-bezier(.2,.7,.2,1) calc(var(--d, 0s) + .25s);
}
.how-line.in .mk { color: var(--ink-fixed); }
.how-line.in .mk::before { transform: scaleX(1); }
.js .how-line .mk { transition: color .01s linear calc(var(--d, 0s) + .5s); color: var(--cream-fixed); }
.js .how-line.in .mk { color: var(--ink-fixed); }

/* ---------- verdict wall ---------- */

.wall { padding: clamp(64px, 9vw, 110px) 0; }
.wall-head { margin-bottom: 38px; }
.vcard {
  background: var(--card); border: 2px solid var(--line); box-shadow: 5px 5px 0 var(--shadow);
  padding: 18px 20px 20px; width: 320px; flex: none;
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
}
.vcard p { margin: 0; font-weight: 900; font-size: 21px; line-height: 1.18; letter-spacing: -.01em; }
.vcard:nth-child(3n) { transform: rotate(.5deg); }
.vcard:nth-child(3n+1) { transform: rotate(-.5deg); }
.vcard .bubble { font-size: 14px; padding: 8px 11px; }
.vcard p.receipt { margin: 0; font-weight: 500; font-size: 11.5px; line-height: 1.4; letter-spacing: .04em; }
.vcard-stamps { justify-content: center; }
.vcard-stamps .stamp:nth-child(2) { transform: rotate(1.5deg); margin-left: 14px; }

/* ---------- planets (pinned) ---------- */

.planets { height: 300vh; }
.planets-pin {
  position: sticky; top: 0; height: 100vh; min-height: 560px;
  background: var(--lime); color: var(--ink-fixed);
  border-block: 3px solid var(--line);
  display: grid; align-items: center; overflow: hidden;
  transition: background-color .5s ease;
}
.planets[data-stage="1"] .planets-pin { background: var(--lilac-fixed); }
.planets[data-stage="2"] .planets-pin { background: var(--peach-fixed); }
.planets-inner { width: 100%; }
.planets-h {
  font-weight: 900; font-size: clamp(56px, 11vw, 150px);
  letter-spacing: -.03em; line-height: 1; display: flex; gap: .28em; flex-wrap: wrap;
}
.word-stack { position: relative; display: inline-block; min-width: 5.2em; }
.word { display: inline-block; }
.js .word { position: absolute; left: 0; top: 0; opacity: 0; transform: translateY(.5em); transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1); white-space: nowrap; }
.js .word.on { opacity: 1; transform: none; }
.no-js-fallback .word { position: static; opacity: 1; transform: none; }
.sub-stack { display: grid; gap: 1.1em; max-width: 52ch; margin: 34px 0 0; }
.js .sub-stack { gap: 0; }
.planets-sub { font-size: clamp(17px, 1.8vw, 21px); margin: 0; }
.js .sub-stack .planets-sub {
  grid-area: 1 / 1; opacity: 0; transform: translateY(.4em);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.7,.2,1);
}
.js .sub-stack .planets-sub.on { opacity: 1; transform: none; }
.planets-sub strong { background: var(--ink-fixed); color: var(--lime); padding: 0 .15em; font-weight: 700; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.planets-sub[data-w="1"] strong { color: var(--lilac-fixed); }
.planets-sub[data-w="2"] strong { color: var(--peach-fixed); }

/* ---------- artefacts ---------- */

.artefacts { padding: clamp(64px, 9vw, 110px) 0; }
.art-card { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.art-ex { font-weight: 900; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; margin: 0; }
.art-card .note { margin: auto 0 0; }

/* ---------- both sides ---------- */

.both { padding: clamp(24px, 4vw, 60px) 0 clamp(64px, 9vw, 110px); }
.both-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.phone-sm { transform: rotate(-2deg); }
.phone-sm .phone-screen { min-height: 420px; gap: 16px; }
.both-title { font-weight: 900; font-size: 22px; margin: 0; }
.meter { align-self: stretch; }
.m-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 5px; }
.m-bar { display: flex; border: 2px solid var(--line); font-weight: 700; font-size: 11.5px; }
.m-bar i { font-style: normal; background: var(--lime); color: var(--ink-fixed); flex: 0 0 var(--w); padding: 5px 7px; border-right: 2px solid var(--line); white-space: nowrap; }
.m-bar b { padding: 5px 7px; color: var(--muted); white-space: nowrap; }
.feat-list { list-style: none; margin: 30px 0 0; padding: 0; }
.feat-list li { padding: 18px 0; border-bottom: 2px solid var(--dim-line); }
.feat-list li:last-child { border-bottom: none; }
.feat-list h3 { font-weight: 900; font-size: 21px; letter-spacing: -.01em; }
.feat-list p { margin: 5px 0 0; color: var(--muted); font-size: 15.5px; }

/* ---------- trust ---------- */

.trust { background: var(--panel); border-block: 2px solid var(--line); padding: clamp(64px, 9vw, 110px) 0; }
.trust-grid { margin-top: 34px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 720px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-card { box-shadow: 4px 4px 0 var(--shadow); }
.trust-card h3 { font-weight: 700; font-size: 18px; margin-bottom: 6px; }
.trust-card p { margin: 0; font-size: 15.5px; color: var(--muted); }

/* ---------- cta ---------- */

.get { padding: clamp(64px, 9vw, 120px) 0; }
.cta-card {
  background: var(--peach-fixed); color: var(--ink-fixed);
  border: 3px solid var(--line); box-shadow: 10px 10px 0 var(--shadow);
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px;
}
.cta-stamp { background: var(--peach-fixed); border-color: var(--ink-fixed); color: var(--ink-fixed); }
.cta-h { font-weight: 900; font-size: clamp(38px, 6vw, 72px); letter-spacing: -.02em; line-height: 1.02; }
.cta-card .fine { color: #6E4A33; margin: 0; }
.cta-card .btn-ink { background: var(--ink-fixed); color: var(--cream-fixed); border-color: var(--ink-fixed); box-shadow: 5px 5px 0 var(--ink-fixed); }
.cta-card .btn-ink:hover { box-shadow: 2px 2px 0 var(--ink-fixed); }

/* ---------- footer ---------- */

.footer { border-top: 3px solid var(--line); background: var(--bg); }
.foot-loop { overflow: hidden; padding: clamp(30px, 5vw, 60px) 0 0; }
.foot-track { align-items: center; }
.js .foot-track { animation: mq 60s linear infinite; }
.foot-track .mq-group { gap: clamp(24px, 4vw, 56px); padding-right: clamp(24px, 4vw, 56px); }
.giant-stroke {
  font-weight: 900; font-size: clamp(64px, 11vw, 150px); letter-spacing: -.02em; line-height: 1;
  color: var(--dim-line); white-space: nowrap;
}
.foot-grid {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 28px; flex-wrap: wrap;
  padding-block: clamp(36px, 6vw, 64px) 26px;
}
.foot-tag { margin: 16px 0 0; max-width: 30ch; }
.foot-links { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 34px; }
.foot-links a { font-weight: 700; font-size: 15px; text-decoration: none; }
.foot-links a:hover { background: var(--lime); color: var(--ink-fixed); }
.foot-legal {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  border-top: 1.5px solid var(--dim-line); padding-block: 18px 26px;
  font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em;
}

/* ---------- scroll reveals ---------- */

.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.2,.7,.2,1) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .hero-grid, .both-grid { grid-template-columns: 1fr; }
  .both-phone { order: 2; }
  .nav-links { display: none; }
  .foot-links { grid-template-columns: repeat(2, auto); }
}
@media (max-width: 560px) {
  .nav-cta { padding: 8px 12px; font-size: 13px; }
  .how-line { grid-template-columns: 1fr; }
  .how-line .n { grid-row: auto; margin-bottom: 4px; }
  .how-line p { grid-column: 1; }
  .vcard { width: 260px; }
  .vcard p { font-size: 18px; }
  .planets-h { font-size: clamp(44px, 13vw, 72px); }
  .word-stack { min-width: 5.4em; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rise, .js .rv { opacity: 1; transform: none; animation: none; transition: none; }
  .js .mq-track, .js .foot-track { animation: none; }
  .btn, .btn:hover, .btn:active { transform: none; transition: none; }
  .planets { height: auto; }
  .planets-pin { position: static; height: auto; min-height: 0; padding: 72px 0; transition: none; }
  .js .word { position: static; opacity: 1; transform: none; }
  .word-stack { display: inline-flex; gap: .35em; flex-wrap: wrap; min-width: 0; }
  .js .sub-stack { gap: 1.1em; }
  .js .sub-stack .planets-sub { grid-area: auto; opacity: 1; transform: none; transition: none; }
  .js .how-line .mk, .how-line .mk::before { transition: none; }
  .how-line .mk::before { transform: scaleX(1); }
  .how-line .mk { color: var(--ink-fixed); }
}
