/* Purple Magic Studio. Values follow SKILL.md Part B:
   type sizes on the Tailwind scale, spacing from the token table,
   flat backgrounds, one easing curve. */

:root {
  --bg: #000000;
  --surface: #181818;
  --surface-2: #1F1F1F;
  --surface-3: #272727;
  --line: #313131;
  --text: #FFFFFF;
  --muted: #9B9B9B;
  --accent: #7C3AED;
  --accent-text: #B794F6;
  --on-accent: #FFFFFF;
  --solid: #FFFFFF;
  --on-solid: #000000;
  --tint: #272727;
  --glass: rgba(24, 24, 24, 0.72);
  --overlay: rgba(0, 0, 0, 0.8);
  --hero-from: #FFFFFF;
  --hero-to: #9B9B9B;
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --sans: "Geist", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  color-scheme: dark;
}

/* Section tones. The page no longer follows the system theme: each section picks a tone so the
   page moves between white, light grey, dark grey and black, with purple as the accent. */
.t-white, .t-grey {
  --text: #000000; --muted: #666666; --line: #E5E5E5;
  --accent: #6D28D9; --accent-text: #6D28D9; --tint: #EDE9FE;
  --solid: #000000; --on-solid: #FFFFFF;
  color-scheme: light;
}
.t-white { --bg: #FFFFFF; --surface: #F5F5F5; --surface-2: #FFFFFF; --surface-3: #EBEBEB; }
.t-grey  { --bg: #F5F5F5; --surface: #FFFFFF; --surface-2: #FFFFFF; --surface-3: #F5F5F5; }
.t-ink   { --bg: #181818; --surface: #1F1F1F; --surface-2: #272727; --surface-3: #313131; --line: #313131; }
.t-dark {
  --bg: #000000; --surface: #181818; --surface-2: #1F1F1F; --surface-3: #272727; --line: #313131;
  --text: #FFFFFF; --muted: #9B9B9B; --accent: #7C3AED; --accent-text: #B794F6; --tint: #272727;
  --solid: #FFFFFF; --on-solid: #000000;
  color-scheme: dark;
}
.t-white, .t-grey, .t-ink, .t-dark { background: var(--bg); color: var(--text); }
/* A dark grey section tucked under its rounded neighbours, so the corners show grey and not black */
.round-top, .round-bottom { position: relative; z-index: 1; }
.tuck { margin: -24px 0; padding-top: 72px !important; padding-bottom: 72px !important; }
@media (min-width: 1024px) { .tuck { margin: -48px 0; padding-top: 144px !important; padding-bottom: 144px !important; } }
.round-top { border-top-left-radius: 24px; border-top-right-radius: 24px; }
.round-bottom { border-bottom-left-radius: 24px; border-bottom-right-radius: 24px; }
@media (min-width: 1024px) {
  .round-top { border-top-left-radius: 48px; border-top-right-radius: 48px; }
  .round-bottom { border-bottom-left-radius: 48px; border-bottom-right-radius: 48px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 24px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, h4 { font-weight: 600; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
a { color: inherit; }
em, i, cite, address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
img, svg { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 4px; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  padding: 8px 12px; border-radius: 9999px;
  background: var(--solid); color: var(--on-solid);
  font-size: 14px; line-height: 20px; font-weight: 600; text-decoration: none;
  transform: translateY(-96px);
  transition: transform 700ms var(--ease);
}
.skip:focus { transform: translateY(0); }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

section { padding: 64px 0; }
@media (min-width: 1024px) { section { padding: 96px 0; } }

.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.accent { color: var(--accent-text); }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--accent-text);
}
.h2 { font-size: 30px; line-height: 36px; letter-spacing: -0.02em; max-width: 680px; }
@media (min-width: 1024px) { .h2 { font-size: 36px; line-height: 40px; } }
.lede { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 680px; }
.section-head { display: grid; gap: 16px; margin-bottom: 48px; }
sup { font-size: 12px; line-height: 0; }
sup a { color: var(--accent-text); text-decoration: none; padding: 0 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 12px; border-radius: 9999px; border: 1px solid transparent;
  font-size: 16px; line-height: 24px; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: transform 700ms var(--ease), background-color 700ms var(--ease),
    border-color 700ms var(--ease), color 700ms var(--ease), opacity 700ms var(--ease);
}
.btn i { font-size: 20px; transition: transform 700ms var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .ph-arrow-right { transform: translateX(4px); }
.btn:active { transform: scale(0.98); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn-sm { font-size: 14px; line-height: 20px; }
.btn-sm i { font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-text); color: #000000; }
.t-white .btn-primary:hover, .t-grey .btn-primary:hover { background: #000000; color: #FFFFFF; }
.t-dark .btn-primary:hover { background: var(--accent-text); color: #000000; }
.btn-solid { background: var(--solid); color: var(--on-solid); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); }

/* ---------- Scroll reveal ---------- */
.js .reveal {
  opacity: 0; transform: translateY(64px); filter: blur(12px);
  transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ---------- Island nav ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 60; pointer-events: none; padding: 0 16px; }
.nav {
  pointer-events: auto;
  margin: 24px auto 0; width: max-content; max-width: 100%;
  display: flex; align-items: center; gap: 16px; white-space: nowrap;
  padding: 8px 8px 8px 16px; border-radius: 9999px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
}
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; line-height: 20px; text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 9999px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color 700ms var(--ease), background-color 700ms var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a[aria-current="true"] { color: var(--text); background: var(--surface-3); }
.nav-cta { display: inline-flex; }
@media (min-width: 1024px) { .nav-links { display: flex; } .burger { display: none; } }

.burger {
  position: relative; width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid var(--line); background: transparent; cursor: pointer;
  transition: background-color 700ms var(--ease), transform 700ms var(--ease);
}
.burger:hover { background: var(--surface-3); }
.burger:active { transform: scale(0.98); }
.burger span {
  position: absolute; left: 12px; width: 16px; height: 2px; border-radius: 2px; background: var(--text);
  transition: transform 700ms var(--ease), top 700ms var(--ease);
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 96px 32px 48px;
  background: var(--overlay);
  -webkit-backdrop-filter: blur(64px); backdrop-filter: blur(64px);
  opacity: 0; visibility: hidden;
  transition: opacity 700ms var(--ease), visibility 700ms var(--ease);
}
.menu.open { opacity: 1; visibility: visible; }
.menu .mask { overflow: hidden; }
.menu a {
  display: block; padding: 8px 0;
  font-size: 30px; line-height: 36px; font-weight: 600; text-decoration: none;
  transform: translateY(48px); opacity: 0;
  transition: transform 700ms var(--ease), opacity 700ms var(--ease), color 700ms var(--ease);
}
.menu a:hover { color: var(--accent-text); }
.menu.open a { transform: translateY(0); opacity: 1; transition-delay: var(--d); }
.menu .btn { margin-top: 24px; align-self: flex-start; font-size: 16px; line-height: 24px; padding: 8px 12px; }
@media (min-width: 1024px) { .menu { display: none; } }

/* ---------- Hero ---------- */
/* The hero stays dark in both themes because the light curtain is additive light on black. */
.hero {
  --bg: #000000; --surface: #181818; --line: #313131; --text: #FFFFFF; --muted: #9B9B9B;
  --accent: #7C3AED; --accent-text: #B794F6; --hero-from: #FFFFFF; --hero-to: #9B9B9B;
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh; display: grid; align-items: center;
  padding: 96px 0 64px; background: #000000; color: var(--text);
}
.curtain { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.hero-copy { display: grid; gap: 24px; justify-items: center; text-align: center; }

.rot { display: grid; width: 100%; justify-items: center; }
.rot-item {
  grid-area: 1 / 1; display: grid; gap: 24px; justify-items: center; align-content: center;
  opacity: 0; filter: blur(16px); transform: translateY(16px) scale(0.98); pointer-events: none;
  transition: opacity 1100ms var(--ease), filter 1100ms var(--ease), transform 1100ms var(--ease);
}
.rot-item.on { opacity: 1; filter: blur(0); transform: none; pointer-events: auto; transition-delay: 350ms; }
.rot-item.out { transform: translateY(-16px) scale(0.98); }

.rot-dots { display: flex; align-items: center; gap: 8px; }
.rot-dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 9999px;
  display: grid; place-items: center;
}
.rot-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 9999px; background: var(--muted); opacity: 0.4;
  transition: width 700ms var(--ease), opacity 700ms var(--ease), background-color 700ms var(--ease);
}
.rot-dot:hover::before { opacity: 1; }
.rot-dot:active { transform: scale(0.98); }
.rot-dot[aria-current="true"]::before { width: 24px; opacity: 1; background: var(--accent-text); }
.rot-dot[aria-current="true"] { width: 32px; }
.rot-pause {
  width: 24px; height: 24px; padding: 0; margin-left: 4px; border-radius: 9999px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; display: grid; place-items: center;
  transition: color 700ms var(--ease), border-color 700ms var(--ease), transform 700ms var(--ease);
}
.rot-pause:hover { color: var(--text); border-color: var(--muted); }
.rot-pause:active { transform: scale(0.98); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 12px; border-radius: 9999px; border: 1px solid var(--line); background: var(--surface);
  font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted);
}
.pill .dot { width: 8px; height: 8px; border-radius: 9999px; background: var(--accent); }
.hero-title {
  max-width: 680px;
  font-size: 36px; line-height: 40px; letter-spacing: -0.03em;
  background: linear-gradient(to right, var(--hero-from), var(--hero-to));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 4px;
}
.hero-title span { display: block; }
@media (min-width: 1024px) { .hero-title { font-size: 48px; line-height: 1; } .hero h1 span + span { margin-top: 4px; } }
.hero .sub { max-width: 680px; font-size: 18px; line-height: 28px; color: #FFFFFF; text-shadow: 0 0 24px #000000, 0 0 8px #000000; }
.hero-title { font-weight: 600; text-wrap: balance; filter: drop-shadow(0 0 24px #000000); }
.hero { --hero-to: #C4B5FD; }
.hero .cta-note { color: #FFFFFF; text-shadow: 0 0 16px #000000, 0 0 8px #000000; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; }
.cta-note { font-size: 14px; line-height: 20px; color: var(--muted); }
.proof {
  display: flex; gap: 12px; align-items: flex-start; max-width: 680px; text-align: left;
  padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface);
  font-size: 14px; line-height: 20px; color: var(--muted);
}
.proof i { font-size: 20px; color: var(--accent-text); flex: none; }
.proof strong { color: var(--text); font-weight: 600; }

/* ---------- Client logos ---------- */
/* Logos are shown in one tone. The strip must sit on the pure page background for the tiles to vanish. */
.clients { padding: 48px 0 0; }
.clients-h { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); text-align: center; margin-bottom: 32px; }
.client-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; align-items: start; }
.client-row li { display: grid; gap: 8px; justify-items: center; opacity: 0.64; transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.client-row li:hover { opacity: 1; transform: translateY(-2px); }
.client-row li:last-child { grid-column: 1 / -1; }
.logo-box { height: 80px; width: 100%; display: grid; place-items: center; }
.logo-box img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; }
.logo-box.tall img.on-white { max-height: 80px; }
.logo-box.mid img.on-white { max-height: 64px; }
.logo-box img.on-white { max-height: 48px; filter: grayscale(1) invert(1) brightness(1.6); }
.logo-text { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; text-align: center; text-wrap: balance; }
.where { font-size: 12px; line-height: 16px; color: var(--muted); }
@media (min-width: 768px) {
  .client-row { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
  .client-row li:last-child { grid-column: auto; }
}

/* ---------- Demo section ---------- */
.demo-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .demo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 64px; } }
.demo-copy { display: grid; gap: 24px; align-content: start; }

/* ---------- Agent panel (interactive) ---------- */
.agent {
  padding: 8px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface);
}
.agent-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding-bottom: 8px; }
.agent-tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 4px; border-radius: 16px; border: 1px solid transparent; background: transparent;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted); cursor: pointer;
  transition: background-color 700ms var(--ease), color 700ms var(--ease), transform 700ms var(--ease), border-color 700ms var(--ease);
}
.agent-tab i { font-size: 16px; }
.agent-tab:hover { color: var(--text); background: var(--surface-2); }
.agent-tab:active { transform: scale(0.98); }
.agent-tab[aria-selected="true"] { color: var(--text); background: var(--surface-3); border-color: var(--line); }

.agent-body { border-radius: 16px; border: 1px solid var(--line); background: var(--bg); padding: 16px; display: grid; gap: 16px; }
.agent-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.agent-title { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 24px; font-weight: 600; }
.agent-title .live { width: 8px; height: 8px; border-radius: 9999px; background: var(--accent-text); }
.agent[data-state="running"] .live, .agent[data-state="waiting"] .live { animation: pulse 1600ms var(--ease) infinite; }
.agent-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.tag { padding: 2px 8px; border-radius: 9999px; border: 1px solid var(--line); font-size: 12px; line-height: 16px; color: var(--muted); }
.agent-source { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); }
.agent-source i { font-size: 16px; }

.steps { display: grid; gap: 4px; }
.step {
  display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px;
  padding: 8px; border-radius: 12px; border: 1px solid transparent;
  transition: background-color 700ms var(--ease), border-color 700ms var(--ease), opacity 700ms var(--ease);
}
.step[data-s="pending"] { opacity: 0.4; }
.step[data-s="running"], .step[data-s="waiting"] { background: var(--surface); border-color: var(--line); }
.step-ico {
  width: 32px; height: 32px; border-radius: 9999px; border: 1px solid var(--line); background: var(--surface-2);
  display: grid; place-items: center; font-size: 16px; color: var(--muted);
  transition: background-color 700ms var(--ease), color 700ms var(--ease), border-color 700ms var(--ease), transform 700ms var(--ease);
}
.step[data-s="running"] .step-ico, .step[data-s="waiting"] .step-ico { color: var(--accent-text); border-color: var(--accent); }
.step[data-s="done"] .step-ico { background: var(--accent); border-color: var(--accent); color: var(--on-accent); transform: scale(1.04); }
.step[data-s="back"] .step-ico { background: var(--surface-3); color: var(--text); }
.step-title { font-size: 14px; line-height: 20px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step-detail { min-height: 16px; margin-top: 4px; font-size: 12px; line-height: 16px; color: var(--muted); }
.skel { display: grid; gap: 4px; padding-top: 2px; }
.skel span { display: block; height: 8px; border-radius: 4px; background: var(--surface-3); animation: pulse 1200ms var(--ease) infinite; }
.skel span:nth-child(1) { width: 80%; }
.skel span:nth-child(2) { width: 48%; animation-delay: 200ms; }
.waiting-tag { color: var(--accent-text); border-color: var(--accent); }

.approve { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 900ms var(--ease); }
.approve.open { grid-template-rows: 1fr; }
.approve > div { overflow: hidden; min-height: 0; }
.approve-card { margin-top: 12px; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 12px; }
.facts { display: grid; gap: 4px; font-size: 12px; line-height: 16px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; }
.facts dt { color: var(--muted); }
.facts dd { font-family: var(--mono); text-align: right; }
.approve-why { font-size: 12px; line-height: 16px; color: var(--muted); }
.approve-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.approve-hint { font-size: 12px; line-height: 16px; color: var(--muted); }

.log {
  height: 96px; overflow-y: auto; padding: 12px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line);
  font-family: var(--mono); font-size: 12px; line-height: 16px; color: var(--muted);
  display: grid; align-content: start; gap: 4px;
}
.log li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; animation: logIn 700ms var(--ease) both; }
.log .you { color: var(--accent-text); }
.log-label { display: flex; align-items: center; justify-content: space-between; font-size: 12px; line-height: 16px; color: var(--muted); margin-bottom: -8px; }

.agent-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; min-height: 40px; }
.agent-foot p { font-size: 12px; line-height: 16px; color: var(--muted); flex: 1 1 160px; }
.agent-foot .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.agent-foot .acts[hidden] { display: none; }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- Cards and grids ---------- */
.card { padding: 24px; border-radius: 24px; border: 1px solid var(--line); background: var(--surface); }
@media (min-width: 768px) { .card { padding: 32px; } }
.card h3 { font-size: 20px; line-height: 28px; }
.card-hover { transition: transform 700ms var(--ease), border-color 700ms var(--ease), background-color 700ms var(--ease); }
.card-hover:hover { transform: translateY(-4px); border-color: var(--accent); }
.grid-2, .grid-3 { display: grid; gap: 16px; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }

.ico {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: var(--tint); border: 1px solid var(--line); color: var(--accent-text); font-size: 24px;
}
.t-white .ico, .t-grey .ico { border-color: transparent; }
.t-white .stat .num, .t-grey .stat .num { color: var(--accent); }
.t-white .card, .t-grey .card { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04); }
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; color: var(--muted); }
.ticks i { font-size: 20px; line-height: 24px; color: var(--accent-text); }
.ticks.no i { color: var(--muted); }

/* Stats */
.stat { display: grid; gap: 12px; align-content: start; }
.stat .num { font-family: var(--mono); font-size: 48px; line-height: 1; font-weight: 500; letter-spacing: -0.03em; }
.stat p { color: var(--muted); }
.versus { margin-top: 24px; }
.versus .card { display: grid; gap: 24px; align-content: start; }
.versus .ours { background: var(--surface-2); border-color: var(--accent); }

/* Tagline reveal */
.tagline { padding: 96px 0; }
.tagline p { max-width: 960px; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.tagline p + p { margin-top: 16px; }
@media (min-width: 1024px) { .tagline p { font-size: 48px; line-height: 1; } .tagline p + p { margin-top: 24px; } .tagline .w { padding-bottom: 4px; } }
.tagline .w { display: inline-block; opacity: 0.3; transition: opacity 700ms var(--ease); }
.tagline .w.on { opacity: 1; }

/* Services */
.service { display: grid; gap: 24px; align-content: start; }
.service > p { color: var(--muted); }
.first {
  margin-top: auto; padding: 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line);
  display: grid; gap: 4px; font-size: 14px; line-height: 20px;
}
.first span { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--accent-text); }

@media (min-width: 768px) and (max-width: 1023px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; } }
.managed { margin-top: 16px; display: grid; gap: 24px; align-items: center; background: var(--surface-2); }
.managed > div { display: grid; gap: 8px; }
.managed p { color: var(--muted); }
.managed .first { margin-top: 0; color: var(--text); }
@media (min-width: 1024px) { .managed { margin-top: 24px; grid-template-columns: 48px minmax(0, 1fr) minmax(0, 360px); } }

/* How it works */
.how .card { display: grid; gap: 16px; align-content: start; }
.how .n { font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--accent-text); }
.how .when { font-size: 14px; line-height: 20px; font-weight: 500; }
.how p:last-child { color: var(--muted); }

.fine { font-size: 12px; line-height: 16px; color: var(--muted); }

/* Work */
.case { display: grid; gap: 24px; align-content: start; }
.case dl { display: grid; gap: 16px; }
.case dt { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--accent-text); margin-bottom: 4px; }
.case dd { color: var(--muted); }

/* Trust */
.trust .card { display: grid; gap: 16px; align-content: start; }
.trust .card p { color: var(--muted); }

/* Engagements */
.plan { display: grid; gap: 24px; align-content: start; }
.plan.hl { border-color: var(--accent); background: var(--surface-2); }
.plan .terms { font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--muted); }
.badge { justify-self: start; padding: 4px 12px; border-radius: 9999px; background: var(--accent); color: var(--on-accent); font-size: 12px; line-height: 16px; font-weight: 600; }
.fit { margin-top: 24px; }
.fit .card { display: grid; gap: 24px; align-content: start; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 800px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color 700ms var(--ease), background-color 700ms var(--ease); }
.faq details:hover { border-color: var(--accent); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 24px; cursor: pointer; list-style: none; font-size: 18px; line-height: 28px; font-weight: 600; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; font-size: 20px; color: var(--accent-text); transition: transform 700ms var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 24px 24px; color: var(--muted); max-width: 680px; }

/* Contact */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; } }
.contact-copy { display: grid; gap: 24px; align-content: start; justify-items: start; }
.founder { display: flex; gap: 12px; align-items: center; }
.founder .av { width: 48px; height: 48px; border-radius: 9999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 600; font-size: 18px; line-height: 28px; }
.founder p { font-size: 14px; line-height: 20px; color: var(--muted); }
.founder strong { color: var(--text); font-weight: 600; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.mail a:not(.btn) { font-family: var(--mono); font-size: 14px; line-height: 20px; overflow-wrap: anywhere; }

form { display: grid; gap: 24px; }
.f { display: grid; gap: 8px; }
.f label, .f legend { font-size: 14px; line-height: 20px; font-weight: 500; padding: 0; }
.f input[type="text"], .f input[type="email"], .f textarea {
  width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg);
  font-size: 16px; line-height: 24px;
  transition: border-color 700ms var(--ease), background-color 700ms var(--ease);
}
.f textarea { min-height: 96px; resize: vertical; }
.f input:hover, .f textarea:hover { border-color: var(--muted); }
.f input:focus-visible, .f textarea:focus-visible { border-color: var(--accent); border-radius: 12px; }
.f [aria-invalid="true"] { border-color: #F87171; }
.err { font-size: 12px; line-height: 16px; color: #F87171; min-height: 16px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; padding: 8px 12px; border-radius: 9999px; border: 1px solid var(--line);
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted);
  transition: background-color 700ms var(--ease), color 700ms var(--ease), border-color 700ms var(--ease), transform 700ms var(--ease);
}
.chip:hover span { color: var(--text); border-color: var(--muted); }
.chip:active span { transform: scale(0.98); }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.sent { display: grid; gap: 16px; justify-items: start; }
.sent[hidden] { display: none; }
.sent i { font-size: 32px; color: var(--accent-text); }

/* Footer */
footer { padding: 96px 0 32px; background: var(--surface); overflow: hidden; }
.foot-top { display: grid; gap: 48px; }
@media (min-width: 1024px) { .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.foot-brand { display: grid; gap: 24px; align-content: start; justify-items: start; }
.foot-brand .brand { font-size: 18px; line-height: 28px; }
.foot-brand .brand svg { width: 48px; height: 48px; }
.foot-brand .brand { gap: 12px; }
.lockup { display: grid; gap: 4px; text-transform: uppercase; }
.lockup span:first-child { font-size: 24px; line-height: 24px; font-weight: 700; letter-spacing: 0.02em; }
.lockup span:last-child { font-size: 12px; line-height: 12px; font-weight: 400; letter-spacing: 0.4em; }
.foot-line { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; max-width: 480px; text-wrap: balance; }
.foot-cols { display: grid; gap: 32px; align-content: start; }
@media (min-width: 640px) { .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.foot-cols > div { display: grid; gap: 4px; align-content: start; }
.foot-cols p { overflow-wrap: anywhere; }
.foot-cols .muted { font-size: 14px; line-height: 20px; }
.foot-link { display: inline-flex; align-items: center; gap: 8px; padding: 4px 0; text-decoration: none; transition: color 700ms var(--ease); }
.foot-link:hover { color: var(--accent-text); }
.foot-link i { font-size: 16px; color: var(--accent-text); }
.foot-label { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--accent-text); margin-bottom: 8px; }

.sources { margin-top: 64px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); transition: border-color 700ms var(--ease); }
.sources:hover { border-color: var(--muted); }
.sources summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; list-style: none;
  padding: 16px 24px; border-radius: 16px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted);
}
.sources summary { text-wrap: balance; }
.sources summary::-webkit-details-marker { display: none; }
.sources summary i { font-size: 16px; color: var(--accent-text); transition: transform 700ms var(--ease); }
.sources[open] summary i { transform: rotate(45deg); }
.sources ol { list-style: decimal; padding: 0 24px 24px 40px; display: grid; gap: 8px; font-size: 12px; line-height: 16px; color: var(--muted); max-width: 800px; }

.wordmark {
  position: relative; width: max-content; max-width: 100%;
  margin-top: 64px; font-size: 48px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; white-space: nowrap;
  color: var(--surface-3); user-select: none; cursor: default;
}
/* Purple fill that grows out from wherever the pointer enters. main.js sets --x, --y and --r. */
.wordmark::after {
  content: attr(data-text); position: absolute; inset: 0; color: var(--accent);
  clip-path: circle(var(--r, 0px) at var(--x, 50%) var(--y, 50%));
  transition: clip-path 1100ms var(--ease);
}
.wordmark.snap::after { transition: none; }
@media (min-width: 640px) { .wordmark { font-size: 96px; } }
@media (min-width: 1024px) { .wordmark { font-size: 128px; } }

.legal { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; line-height: 20px; color: var(--muted); }

/* Simple pages (404, privacy, terms) */
.simple { min-height: 100vh; display: grid; place-items: center; padding: 96px 0; }
.simple .inner { display: grid; gap: 24px; justify-items: start; max-width: 680px; }
.simple h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.02em; }
.simple .code { font-family: var(--mono); font-size: 14px; line-height: 20px; color: var(--accent-text); }

/* ---------- Mobile pass ---------- */
@media (pointer: coarse) {
  .btn, .agent-tab, .chip span, .faq summary, .sources summary { min-height: 48px; }
  .btn-sm { min-height: 40px; }
  .chip span { align-items: center; }
}
.rot-dot { height: 40px; }
.rot-pause { width: 40px; height: 40px; border-color: transparent; font-size: 16px; }
.mail a:not(.btn) { padding: 8px 0; }
.cta-note { text-wrap: balance; }

/* Mobile nav: the logo and the Free review button share one slot and take turns. main.js toggles .show-cta */
@media (max-width: 767px) {
  .js .nav { display: grid; grid-template-columns: auto auto; gap: 12px; padding-left: 8px; }
  .js .nav .brand, .js .nav .nav-cta {
    grid-area: 1 / 1; justify-self: center;
    transition: opacity 900ms var(--ease), filter 900ms var(--ease), transform 900ms var(--ease), visibility 0ms linear 0ms;
  }
  .js .nav .brand { padding: 0 8px; }
  .js .nav .nav-cta, .js .nav.show-cta .brand {
    opacity: 0; filter: blur(8px); visibility: hidden; pointer-events: none;
    transition-delay: 0ms, 0ms, 0ms, 900ms;
  }
  .js .nav .nav-cta { transform: translateY(12px); }
  .js .nav.show-cta .brand { transform: translateY(-12px); }
  .js .nav.show-cta .nav-cta { opacity: 1; filter: blur(0); transform: none; visibility: visible; pointer-events: auto; transition-delay: 200ms, 200ms, 200ms, 0ms; }
  .js .nav .burger { grid-area: 1 / 2; }
}

@media (max-width: 767px) {
  section { padding: 48px 0; }
  .section-head { margin-bottom: 32px; }
  .h2 { font-size: 24px; line-height: 32px; }
  .lede { font-size: 16px; line-height: 24px; }

  .nav { margin-top: 12px; }
  .hero { padding: 80px 0 32px; }
  .hero-copy { gap: 16px; }
  .rot-item { gap: 16px; }
  .hero-title { font-size: 30px; line-height: 36px; }
  .hero .sub { font-size: 16px; line-height: 24px; }
  .hero .cta-row { flex-direction: column; gap: 8px; width: 100%; }
  .hero .cta-row .btn { width: 100%; max-width: 400px; }
  .hero .cta-note { font-size: 12px; line-height: 16px; }
  .proof { padding: 12px; font-size: 12px; line-height: 16px; }

  .tagline { padding: 64px 0; }
  .tagline p { font-size: 30px; line-height: 36px; }

  /* Services and stats become swipe rows so the page is not endless */
  .swipe {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; scrollbar-width: none;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 84%; scroll-snap-align: start; }
  .js .swipe > .reveal { opacity: 1; transform: none; filter: none; }
  .swipe-hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }

  /* Compact rows for trust, how it works and plans */
  .card { padding: 24px; border-radius: 16px; }
  .trust .card { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 4px; padding: 16px; }
  .trust .card .ico { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; }
  .trust .card h3 { font-size: 16px; line-height: 24px; align-self: center; }
  .trust .card p { grid-column: 2; font-size: 14px; line-height: 20px; }
  .trust .grid-3 { gap: 8px; }
  .stat .num { font-size: 36px; line-height: 40px; }
  .first { padding: 12px; }

  .faq summary { padding: 12px 16px; font-size: 16px; line-height: 24px; }
  .faq details p { padding: 0 16px 16px; }

  .contact-grid .card { padding: 16px; }
  form { gap: 12px; }
  .menu .btn { display: flex; width: 100%; }
  .form-foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .form-foot .btn { width: 100%; }
  .form-foot .cta-note { text-align: center; }

  .agent-body { padding: 12px; }
  .approve-actions .btn { flex: 1 1 0; }
  .agent-foot .acts { width: 100%; }
  .agent-foot .acts .btn { flex: 1 1 auto; }

  footer { padding: 64px 0 24px; }
  .foot-line { font-size: 20px; line-height: 28px; }
  .sources, .wordmark { margin-top: 48px; }
  .legal { flex-direction: column; }
}
@media (min-width: 768px) { .swipe-hint { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
  .tagline .w { opacity: 1; }
  .rot-item { filter: none; transform: none; }
}
