/* TatCheck — award-tier landing. Paper/ink/indigo; verdict colours only where money speaks.
   Signature: the hero performs a live scan. Motion via CSS scroll-driven animations,
   graceful everywhere else. */
:root {
  --ink: #191922;
  --ink-2: #26262f;
  --paper: #faf8f4;
  --card: #ffffff;
  --indigo: #3a45c7;
  --indigo-dark: #2e37a3;
  --buy: #219853;
  --amber: #d98f10;
  --skip: #c7342e;
  --muted: #6c6a75;
  --line: #e8e4dc;
  --sticker: #ffdf5c;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
/* Tactile paper grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
a { color: var(--indigo); }

/* ---------- Nav ---------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 0;
}
.brand {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand .tick { color: var(--buy); }
nav .links { display: flex; gap: 26px; align-items: center; }
nav .links a { color: var(--muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; }
nav .links a:hover { color: var(--ink); }
nav .links a.pill { background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px; font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 48px 0 90px;
  min-height: 78vh;
}
h1 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-variation-settings: "opsz" 96, "wght" 800;
  font-size: clamp(3rem, 7.5vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
h1 .tat { color: var(--indigo); }
.hero p.lead {
  margin: 22px 0 30px;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 28rem;
}
.cta {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cta:hover { background: #000; transform: translateY(-2px); }
.cta small { display: block; font-weight: 400; opacity: 0.7; font-size: 0.75rem; }
.subnote { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

.coming {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.badge { display: inline-block; transition: transform 0.15s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { display: block; height: 54px; width: auto; }

/* ---------- The scan stage (signature) ---------- */
.stage-holder { position: relative; justify-self: center; }
.stage {
  width: min(340px, 82vw);
  background: var(--card);
  border-radius: 26px;
  box-shadow: 0 32px 80px -28px rgba(25,25,34,0.35);
  overflow: hidden;
  transform: rotate(1.5deg);
}
.stage .photo {
  position: relative;
  height: 190px;
  background: linear-gradient(135deg, #5b6a8c, #3e4a66);
  overflow: hidden;
}
/* scan beam */
.beam {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, transparent, #9fe8bf 30%, #ffffff 50%, #9fe8bf 70%, transparent);
  box-shadow: 0 0 24px 6px rgba(94, 234, 162, 0.55);
  opacity: 0;
  transform: translateX(-10px);
}
.scanning .beam { animation: sweep 2.2s cubic-bezier(0.45, 0, 0.55, 1) 1 both; }
@keyframes sweep {
  0%   { opacity: 0; transform: translateX(-10px); }
  8%   { opacity: 1; }
  48%  { transform: translateX(calc(min(340px, 82vw) - 3px)); }
  92%  { opacity: 1; transform: translateX(6px); }
  100% { opacity: 0; transform: translateX(6px); }
}
/* typed identification */
.idlines {
  position: absolute;
  left: 14px; bottom: 12px; right: 14px;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.55);
}
.idlines .l1 { font-weight: 700; font-size: 1rem; min-height: 1.4em; }
.idlines .l2 { font-weight: 500; font-size: 0.8rem; opacity: 0.85; min-height: 1.2em; }
.caret::after {
  content: "▌";
  animation: blink 0.8s steps(1) infinite;
  font-weight: 400;
}
@keyframes blink { 50% { opacity: 0; } }
/* price sticker */
.sticker {
  position: absolute;
  top: 14px; right: 14px;
  background: var(--sticker);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 7px 11px;
  border-radius: 4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  opacity: 0;
  transform: scale(2.4) rotate(-14deg);
}
.stuck .sticker {
  animation: slap 0.42s cubic-bezier(0.2, 1.6, 0.35, 1) both;
}
@keyframes slap {
  0%   { opacity: 0; transform: scale(2.4) rotate(-14deg); }
  60%  { opacity: 1; transform: scale(0.94) rotate(7deg); }
  100% { opacity: 1; transform: scale(1) rotate(6deg); }
}
.stage .body { padding: 16px; }
.ranges { display: flex; gap: 10px; }
.range {
  flex: 1;
  background: #f4f2ed;
  border-radius: 14px;
  text-align: center;
  padding: 13px 6px;
  opacity: 0;
  transform: translateY(14px);
}
.priced .range { animation: pop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.priced .range:nth-child(2) { animation-delay: 0.12s; }
@keyframes pop { to { opacity: 1; transform: none; } }
.range b { font-size: 1.2rem; display: block; }
.range small {
  text-transform: uppercase; letter-spacing: 0.08em;
  font-size: 0.62rem; color: var(--muted); font-weight: 600;
}
.worth {
  margin-top: 12px;
  background: #f4f2ed;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
}
.chip {
  background: var(--buy);
  color: #fff;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 7px 15px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: scale(1.9) rotate(-6deg);
}
.verdicted .chip { animation: stamp 0.38s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes stamp {
  0%   { opacity: 0; transform: scale(1.9) rotate(-6deg); }
  65%  { opacity: 1; transform: scale(0.92) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.profit { color: var(--buy); font-weight: 800; font-size: 1.12rem; opacity: 0; }
.verdicted .profit { opacity: 1; transition: opacity 0.3s 0.15s; }
.replay {
  position: absolute;
  bottom: -46px; left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 1px solid var(--line);
  color: var(--muted);
  font: 500 0.8rem "Inter", sans-serif;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}
.replay.show { opacity: 1; }
.replay:hover { color: var(--ink); border-color: var(--muted); }

/* ---------- Verdict ticker ---------- */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 16px 0;
  background: var(--card);
}
.ticker-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: roll 36s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes roll { to { transform: translateX(-50%); } }
.tick-item {
  white-space: nowrap;
  font-size: 0.92rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
}
.tick-item b { color: var(--ink); font-weight: 600; }
.mini-chip {
  font-size: 0.66rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  letter-spacing: 0.04em;
}
.mini-chip.buy { background: var(--buy); }
.mini-chip.skip { background: var(--skip); }
.mini-chip.risky { background: var(--amber); }
.mini-chip.retake { background: var(--muted); }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
h2 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.section-sub { color: var(--muted); max-width: 34rem; margin-bottom: 40px; }

/* ---------- Scrollytelling tour ---------- */
.tour { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
.tour-phone-wrap { position: relative; }
.tour-phone {
  position: sticky;
  top: 9vh;
  width: min(290px, 78vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 40px;
  border: 11px solid var(--ink);
  background: #0e0e13;
  overflow: hidden;
  box-shadow: 0 36px 80px -30px rgba(25,25,34,0.5);
  margin: 0 auto;
}
.tour-phone img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.55s ease;
}
.tour-phone img.active { opacity: 1; }
.beats { display: flex; flex-direction: column; }
.beat { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; }
.beat .kicker {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 3.2rem;
  color: var(--line);
  line-height: 1;
}
.beat h3 {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
  font-size: 1.7rem;
  margin: 10px 0 10px;
}
.beat p { color: var(--muted); max-width: 26rem; font-size: 1.02rem; }

/* ---------- Honesty manifesto ---------- */
.honest {
  background: var(--ink);
  color: var(--paper);
  border-radius: 28px;
  padding: 60px 52px;
}
.honest h2 { color: var(--paper); }
.honest .section-sub { color: rgba(250,248,244,0.6); }
.honest ul { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 36px; }
.honest li {
  padding-left: 28px;
  position: relative;
  font-size: 1rem;
  opacity: 0.94;
  border-bottom: 1px solid rgba(250,248,244,0.09);
  padding-bottom: 13px;
}
.honest li::before { content: "✓"; position: absolute; left: 0; color: var(--buy); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--indigo); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); font-size: 0.96rem; max-width: 44rem; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 32px 0 56px;
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}
footer a { color: var(--indigo); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .spacer { flex: 1; }

/* ---------- Legal pages ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: 24px 0 80px; }
.legal h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 6px; font-variation-settings: normal; line-height: 1.1; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 34px; }
.legal h2 { font-size: 1.25rem; margin: 34px 0 8px; }
.legal p, .legal li { color: #3a3944; font-size: 0.98rem; }
.legal ul { padding-left: 22px; margin: 8px 0; }
.legal strong { color: var(--ink); }

/* ---------- Scroll-driven flourishes (progressive) ---------- */
@supports (animation-timeline: view()) {
  .beat .inner {
    opacity: 0;
    transform: translateY(46px);
    animation: rise both;
    animation-timeline: view();
    animation-range: entry 12% entry 46%;
  }
  .honest li {
    opacity: 0;
    transform: translateX(-22px);
    animation: slidein both;
    animation-timeline: view();
    animation-range: entry 5% entry 40%;
  }
  h1 {
    animation: settle both;
    animation-timeline: scroll();
    animation-range: 0 60vh;
  }
  @keyframes rise { to { opacity: 1; transform: none; } }
  @keyframes slidein { to { opacity: 0.94; transform: none; } }
  @keyframes settle { to { font-variation-settings: "opsz" 40, "wght" 550; letter-spacing: -0.015em; } }
}

/* ---------- Reduced motion: land everything ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track { animation: none; }
  .beam { display: none; }
  .sticker, .range, .chip, .profit { opacity: 1 !important; transform: none !important; animation: none !important; }
  .beat .inner, .honest li { opacity: 1 !important; transform: none !important; animation: none !important; }
  h1 { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; padding: 24px 0 64px; min-height: 0; gap: 44px; }
  .stage { transform: none; }
  .tour { grid-template-columns: 1fr; gap: 12px; }
  .tour-phone { position: relative; top: 0; margin-bottom: 28px; }
  .beat { min-height: 0; padding: 34px 0; }
  .honest { padding: 40px 26px; }
  .honest ul { grid-template-columns: 1fr; }
  nav .links { gap: 16px; }
  nav .links a:not(.pill) { display: none; }
  section { padding: 56px 0; }
}
