/* PawpawBI brochure, in the app's "Ledger" look (the app's src/index.css): warm paper, hairline
   rules, square corners, persimmon accent used sparingly, Fraunces for titles, IBM Plex Sans for
   text, IBM Plex Mono for labels and numbers. */

:root {
  --bg: #f3efe6;
  --surface: #fbf9f4;
  --surface-muted: #ebe6da;
  --border: #d9d2c2;
  --ink: #1f1c17;
  --ink-muted: #5d574c;
  --ink-faint: #958d7e;
  --accent: #b4441b;
  /* The accent, lighter: on dark backgrounds and for hover. */
  --accent-2: #d9703f;
  --accent-soft: #f3e2d8;
  --leaf: #2f5d46;
  --leaf-soft: #e1ebe3;
  --night: #1f1c17;

  --radius-sm: 2px;
  --radius: 3px;
  --radius-lg: 4px;

  --font-body: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 5vw, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.04;
}

/* Emphasis in a title is italic and in the accent. */
h1 em,
h2 em {
  color: var(--accent);
  font-style: italic;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

code {
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --- Page chrome ------------------------------------------------------------------------- */

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: 3px;
}

.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(var(--progress, 0));
  transform-origin: left;
}

/* A faint, still paper grain over everything. */
.grain {
  position: fixed;
  inset: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* A masthead: full width, ruled off underneath. */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  width: 100%;
  padding: 12px var(--gutter);
  border-bottom: 1px solid var(--ink);
  background: rgb(243 239 230 / 0.88);
  backdrop-filter: blur(10px);
  transition: background 0.3s;
}

.nav.scrolled {
  background: rgb(251 249 244 / 0.96);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav nav {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
}

.nav nav a {
  padding: 6px 14px;
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline 2px transparent;
  text-underline-offset: 6px;
  transition:
    color 0.2s,
    text-decoration-color 0.2s;
}

.nav nav a:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  overflow: hidden;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--surface);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.4s var(--ease-out),
    box-shadow 0.4s var(--ease-out);
  isolation: isolate;
}

/* The accent sweeps in on hover. */
.btn::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  content: '';
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}

.btn:hover::before {
  transform: translateY(0);
}

.btn-small {
  padding: 9px 18px;
  font-size: 15px;
}

.btn-big {
  padding: 18px 34px;
  font-size: 18px;
}

.btn-ghost {
  border: 1px solid var(--ink);
  background: none;
  color: var(--ink);
}

.btn-ghost::before {
  background: var(--surface-muted);
}

/* --- Reveal on scroll ----------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(32px);
  transition:
    opacity 1s var(--ease-out) var(--delay, 0s),
    transform 1s var(--ease-out) var(--delay, 0s),
    filter 1s var(--ease-out) var(--delay, 0s);
}

[data-reveal].in {
  opacity: 1;
  filter: none;
  transform: none;
}

/* The hero headline rises word by word (split into .w by script.js). */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
}

.split .w > span {
  display: inline-block;
  transform: translateY(110%) rotate(4deg);
  transition: transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i) * 60ms);
}

.split.in .w > span {
  transform: none;
}

.split[data-reveal] {
  opacity: 1;
  filter: none;
  transform: none;
}

/* The words a title leans on: italic, in the accent. */
.shine {
  color: var(--accent);
  font-style: italic;
}

/* --- Hero ------------------------------------------------------------------------------------ */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 160px var(--gutter) 40px;
  overflow: hidden;
  text-align: center;
}

/* Ruled like ledger paper, fading out at the edges. */
.grid-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgb(31 28 23 / 0.07) 1px, transparent 1px);
  background-size: 100% 40px;
  -webkit-mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    #000 30%,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    #000 30%,
    transparent 75%
  );
}

.hero-copy {
  max-width: 980px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgb(180 68 27 / 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px rgb(180 68 27 / 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(180 68 27 / 0);
  }
}

.hero h1 {
  font-size: clamp(46px, 7.2vw, 100px);
}

.lede {
  max-width: 680px;
  margin: 28px auto 0;
  color: var(--ink-muted);
  font-size: clamp(17px, 1.6vw, 20px);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.stage {
  position: relative;
  width: min(1180px, 100%);
  margin-top: 80px;
  perspective: 1600px;
}

.window {
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 50px 100px -40px rgb(40 30 10 / 0.35);
}

.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.window-bar p {
  flex: 1;
  margin-right: 40px;
  color: var(--ink-faint);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

/* Tilted back at first; script.js stands it up as you scroll. */
.tilt {
  transform: rotateX(var(--tilt, 24deg)) scale(var(--tilt-scale, 0.92));
  transform-origin: 50% 0;
  will-change: transform;
}

.chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 4px 4px 0 rgb(31 28 23 / 0.12);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  translate: 0 var(--parallax, 0px);
}

.chip-1 {
  top: 14%;
  left: -3%;
}

.chip-2 {
  top: 46%;
  right: -4%;
}

.chip-3 {
  bottom: 10%;
  left: 6%;
}

.float {
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--float-delay, 0s);
}

@keyframes float {
  50% {
    transform: translateY(-12px);
  }
}

.tick {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--leaf);
  font-size: 12px;
}

.spark {
  color: var(--accent);
}

.undo {
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-size: 12px;
}

/* --- Marquee ---------------------------------------------------------------------------------- */

.marquee-wrap {
  padding: 70px 0 40px;
}

.marquee-label {
  margin-bottom: 26px;
  padding: 0 var(--gutter);
  color: var(--ink-muted);
  text-align: center;
}

.marquee-label strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
}

.marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
}

.track {
  display: flex;
  flex: none;
  gap: 14px;
  padding-right: 14px;
  animation: marquee 50s linear infinite;
}

.marquee:hover .track {
  animation-play-state: paused;
}

.track span {
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.track span:nth-child(3n + 2) {
  background: var(--ink);
  color: var(--surface);
  border-color: var(--ink);
}

.track span:nth-child(5n + 1) {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent);
}

@keyframes marquee {
  to {
    transform: translateX(-100%);
  }
}

/* --- Statement -------------------------------------------------------------------------------- */

.statement {
  padding: 18vh var(--gutter);
}

.scrub {
  max-width: 1200px;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(32px, 5.2vw, 72px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

/* Words start faint and fill in as the paragraph scrolls past (script.js sets --lit). */
.scrub .w {
  color: color-mix(
    in srgb,
    var(--ink) calc(12% + var(--lit, 0) * 88%),
    transparent
  );
  transition: color 0.15s linear;
}

.scrub .w.hot {
  color: var(--accent);
}

/* --- Sections --------------------------------------------------------------------------------- */

.section-head {
  max-width: 900px;
  margin: 0 auto 64px;
  text-align: center;
}

.kicker {
  margin-bottom: 18px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2,
.assistant h2 {
  font-size: clamp(38px, 5.6vw, 76px);
}

.sub {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--ink-muted);
  font-size: 19px;
}

/* --- How it works ------------------------------------------------------------------------------ */

.how {
  padding: 60px var(--gutter) 120px;
}

.steps {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
}

.step {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 78vh;
  opacity: 0.25;
  transition: opacity 0.6s var(--ease-out);
}

.step.active {
  opacity: 1;
}

.num {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}

.step h3 {
  margin-bottom: 18px;
  font-size: clamp(36px, 4vw, 56px);
}

.step p {
  color: var(--ink-muted);
}

.ticks {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: flex;
  gap: 10px;
  font-weight: 500;
}

.ticks li::before {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  content: '✓';
}

/* Phones show each step's screenshot in line instead of the sticky window. */
.step-shot {
  display: none;
}

.step-stage {
  position: sticky;
  top: calc(50vh - min(26vw, 300px));
  align-self: start;
}

.shots {
  position: relative;
  aspect-ratio: 1899 / 1136;
  background: var(--bg);
}

.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: scale(1.04);
  transition:
    opacity 0.6s var(--ease-out),
    clip-path 0.9s var(--ease-out),
    transform 1.2s var(--ease-out);
}

.shot.active {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: none;
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.step-dots span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-sm);
  background: var(--border);
  transition:
    width 0.5s var(--ease-out),
    background 0.5s;
}

.step-dots span.active {
  width: 32px;
  background: var(--accent);
}

/* --- Assistant ---------------------------------------------------------------------------------- */

.assistant {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
  padding: 120px var(--gutter);
}

.assistant-copy {
  display: grid;
  gap: 26px;
}

.assistant-copy > p {
  color: var(--ink-muted);
  font-size: 19px;
}

.providers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.provider {
  display: grid;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  transition:
    transform 0.4s var(--ease-out),
    border-color 0.4s;
}

.provider:hover {
  border-color: var(--ink);
  transform: translateY(-4px);
}

.provider strong {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.provider span {
  color: var(--ink-muted);
  font-size: 14px;
}

.provider.local {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.provider.local span {
  color: rgb(255 255 255 / 0.6);
}

.fine {
  color: var(--ink-faint);
  font-size: 15px;
}

/* The chat plays out when it scrolls into view: each item waits its turn (--n). */
.chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--border);
  border-top: 2px solid var(--ink);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgb(40 30 10 / 0.3);
}

.chat > * {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
  transition-delay: calc(var(--n, 0) * 0.55s);
}

.chat.in > * {
  opacity: 1;
  transform: none;
}

.bubble {
  max-width: 88%;
  padding: 13px 17px;
  border-radius: var(--radius-sm);
  font-size: 16px;
}

.bubble.user {
  align-self: flex-end;
  border-bottom-right-radius: 6px;
  background: var(--ink);
  color: var(--surface);
}

.bubble.bot {
  align-self: flex-start;
  border-bottom-left-radius: 6px;
  background: var(--surface-muted);
}

.activity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}

.approval {
  padding: 14px 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 15px;
}

.approval-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.approval-actions span {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.approval-actions .a-allow {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--surface);
}

.chat.in .a-allow {
  animation: press 0.5s var(--ease-out) calc(var(--n, 0) * 0.55s + 0.9s);
}

@keyframes press {
  50% {
    transform: scale(0.9);
    box-shadow: 0 0 0 8px rgb(180 68 27 / 0.2);
  }
}

/* --- Reports ------------------------------------------------------------------------------------ */

.reports {
  padding: 120px var(--gutter);
}

.browser {
  max-width: 1080px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 50px 100px -30px rgb(50 30 20 / 0.3);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-muted);
}

.browser-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border);
}

.url {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-muted);
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
}

.report {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
  background: var(--bg);
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

/* Figures under a heavy rule, sections under a hairline, like a printed report. */
.kpi,
.card {
  margin: 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--ink);
}

.kpi {
  border-top-width: 2px;
}

.kpi:first-child {
  border-top-color: var(--accent);
}

.kpi span {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kpi strong {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.card figcaption {
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.card text {
  fill: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 11px;
  text-anchor: middle;
}

.axis,
.gridlines line {
  stroke: var(--border);
  stroke-width: 1;
}

/* Bars in quiet ink, the one that matters in the accent. */
.bars rect {
  rx: 0;
  fill: rgb(31 28 23 / 0.2);
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom;
  transition: transform 1.2s var(--ease-out);
  transition-delay: calc(0.3s + var(--i) * 0.12s);
}

.bars rect:first-of-type {
  fill: var(--accent);
}

.browser.in .bars rect {
  transform: none;
}

.line .stroke {
  fill: none;
  stroke: var(--leaf);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 2s var(--ease-out) 0.4s;
}

.line .area {
  fill: rgb(47 93 70 / 0.08);
  opacity: 0;
  transition: opacity 1s ease 1.6s;
}

.line circle {
  fill: var(--leaf);
  opacity: 0;
  transition: opacity 0.4s ease 2.2s;
}

.browser.in .line .stroke {
  stroke-dashoffset: 0;
}

.browser.in .line .area,
.browser.in .line circle {
  opacity: 1;
}

.report-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1080px;
  margin: 48px auto 0;
}

.report-points strong {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.report-points p {
  color: var(--ink-muted);
}

.report-points > div {
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.point-num {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* --- Bento ------------------------------------------------------------------------------------- */

.bento-wrap {
  padding: 120px var(--gutter);
}

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  isolation: isolate;
}

.tile.big {
  border-top: 3px solid var(--accent);
}

.tile.wide {
  grid-column: span 2;
}

.tile h3 {
  font-size: 26px;
}

.tile p {
  color: var(--ink-muted);
}

.tile-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 20px;
}

/* A soft light follows the pointer (script.js sets --x and --y). */
.spot::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    380px circle at var(--x, 50%) var(--y, 50%),
    rgb(180 68 27 / 0.07),
    transparent 60%
  );
  content: '';
  opacity: 0;
  transition: opacity 0.4s;
}

.spot:hover::after {
  opacity: 1;
}

.tile-link {
  align-self: flex-start;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.tile-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.file-badge {
  align-self: flex-start;
  margin-top: auto;
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: rgb(255 255 255 / 0.55);
  font-family: var(--font-mono);
  font-size: 15px;
  transform: rotate(-3deg);
  transition: transform 0.5s var(--ease-out);
}

.file-badge span {
  color: var(--surface);
}

.tile.big:hover .file-badge {
  transform: rotate(0) translateY(-4px);
}

/* --- Privacy (dark) ------------------------------------------------------------------------------ */

.privacy {
  position: relative;
  margin: 0 clamp(8px, 1.5vw, 20px);
  padding: 140px var(--gutter);
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--night);
  color: var(--surface);
  isolation: isolate;
}

.privacy::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(
    ellipse 60% 60% at 50% 40%,
    #000,
    transparent 75%
  );
  mask-image: radial-gradient(
    ellipse 60% 60% at 50% 40%,
    #000,
    transparent 75%
  );
  content: '';
}

.section-head.light .kicker {
  color: var(--accent-2);
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.privacy-grid.four {
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
}

.p-item {
  padding: 30px;
  border: 1px solid rgb(255 255 255 / 0.1);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.04);
  backdrop-filter: blur(10px);
  transition:
    border-color 0.4s,
    transform 0.6s var(--ease-out);
}

.p-item:hover {
  border-color: rgb(196 86 42 / 0.5);
  transform: translateY(-6px);
}

.p-item span {
  color: var(--accent-2);
  font-family: var(--font-mono);
  font-size: 14px;
}

.p-item h3 {
  margin: 14px 0 10px;
  font-size: 28px;
}

.p-item p {
  color: rgb(255 255 255 / 0.65);
}

/* --- Compare ----------------------------------------------------------------------------------- */

.compare {
  padding: 0 var(--gutter) 120px;
}

/* On narrow screens the table scrolls inside this box, never the page. */
.compare-scroll {
  max-width: 1180px;
  margin: 0 auto;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.compare-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.45;
}

.compare-table th,
.compare-table td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare-table tbody tr:last-child > * {
  border-bottom: 0;
}

.compare-table thead th {
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.compare-table tbody th {
  width: 22%;
  font-weight: 600;
}

/* The feature names stay in view while the table scrolls sideways. */
.compare-table tbody th,
.compare-table thead th:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  background: var(--surface);
}

.compare-hint {
  display: none;
  max-width: 1180px;
  margin: 0 auto 10px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 13px;
}

.compare-table td {
  color: var(--ink-muted);
}

.compare-table .us {
  width: 26%;
  background: var(--accent-soft);
  color: var(--ink);
}

.compare-table thead .us {
  border-top: 3px solid var(--accent);
  color: var(--accent);
}

.compare-table .yes {
  color: var(--accent);
  font-weight: 600;
}

.compare-note {
  max-width: 1180px;
  margin: 16px auto 0;
  color: var(--ink-faint);
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Outro ------------------------------------------------------------------------------------- */

.outro {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 120px var(--gutter);
  overflow: hidden;
}

.giant {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  font-family: var(--font-display);
  font-size: 26vw;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgb(180 68 27 / 0.35);
  transform: translate(-50%, -50%) scale(var(--giant, 0.8));
  opacity: var(--giant-opacity, 0.4);
}

.outro-card {
  display: grid;
  justify-items: center;
  gap: 18px;
  max-width: 760px;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--border);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 40px 100px -40px rgb(40 30 10 / 0.3);
  text-align: center;
}

.outro-card img {
  animation: float 6s ease-in-out infinite;
}

.outro-card h2 {
  font-size: clamp(36px, 5vw, 64px);
}

.outro-card p {
  color: var(--ink-muted);
}

.footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px 32px;
  padding: 40px var(--gutter) 28px;
  border-top: 1px solid var(--border);
  color: var(--ink-muted);
  font-size: 15px;
}

.footer-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
}

.footer-main .brand {
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
}

.footer-links a {
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover,
.footer-links a[aria-current='page'] {
  color: var(--accent);
}

.footer-legal {
  grid-column: 1 / -1;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 14px;
}

/* --- Legal pages ---------------------------------------------------------------------------------- */

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 150px 16px 96px;
}

.legal h1 {
  font-size: clamp(40px, 6vw, 68px);
}

.legal-updated {
  margin-top: 16px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

.legal-lede {
  margin-top: 36px;
  font-size: 20px;
  line-height: 1.55;
}

.legal h2 {
  margin: 64px 0 18px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: clamp(26px, 3.4vw, 34px);
}

.legal h3 {
  margin: 32px 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.legal p + p {
  margin-top: 14px;
}

.legal ul {
  margin: 14px 0 0;
  padding-left: 22px;
}

.legal li + li {
  margin-top: 8px;
}

.legal li::marker {
  color: var(--accent);
}

.legal a {
  color: var(--accent);
  text-underline-offset: 3px;
}

/* --- Smaller screens ------------------------------------------------------------------------------ */

@media (max-width: 960px) {
  .nav nav {
    display: none;
  }

  .nav {
    justify-content: space-between;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-stage {
    display: none;
  }

  .step {
    min-height: 0;
    padding: 40px 0;
    opacity: 1;
  }

  .step-shot {
    display: block;
    margin-bottom: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: 0 30px 60px -30px rgb(50 30 20 / 0.3);
  }

  .assistant {
    grid-template-columns: 1fr;
  }

  .bento {
    grid-template-columns: 1fr 1fr;
  }

  .tile.big {
    grid-row: auto;
    grid-column: span 2;
  }

  .privacy-grid,
  .report-points {
    grid-template-columns: 1fr;
  }

  .chip {
    display: none;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding-top: 120px;
  }

  .stage {
    margin-top: 48px;
  }

  .providers,
  .kpis,
  .charts,
  .privacy-grid.four {
    grid-template-columns: 1fr;
  }

  .eyebrow .dot {
    display: none;
  }

  .compare-hint {
    display: block;
  }

  .compare-table tbody th {
    width: 132px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .tile.big,
  .tile.wide {
    grid-column: auto;
  }

  .privacy {
    border-radius: var(--radius-sm);
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .legal {
    padding-top: 120px;
  }
}

/* --- Less motion --------------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal],
  .split .w > span,
  .chat > *,
  .bars rect,
  .line .area,
  .line circle {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .line .stroke {
    stroke-dashoffset: 0;
  }

  .tilt {
    transform: none;
  }

  .scrub .w {
    color: var(--ink);
  }
}
