/* ============================================================
   LexLaw — Australian legal workbench, powered by AI
   Design system: black-on-white, Inter Tight, peach wash,
   black pill buttons, one dark grid section. Monochrome + peach.
   ============================================================ */

:root {
  --bg: #ffffff;
  --ink: #000000;
  --ink-soft: #121212;
  --muted: #5b5b5b;
  --muted-2: #8a8a8a;
  --hair: rgba(0, 0, 0, 0.10);
  --hair-2: rgba(0, 0, 0, 0.06);
  --blush: #f8e9e6;
  --blush-2: #f6ece4;
  --peach: #f8e9e0;
  --dark: #0f0f0f;
  --dark-2: #1c1c1c;

  --font-display: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 56px);
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow-soft: 0 24px 60px -28px rgba(20, 12, 8, 0.28);
  --shadow-float: 0 30px 80px -34px rgba(20, 12, 8, 0.36);
  --shadow-nav: 0 12px 40px -16px rgba(20, 12, 8, 0.22);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 7px 14px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-soft);
}

.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 3.6vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 18px 0 0;
}

.lede {
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(16px, 1.4vw, 18px);
  letter-spacing: -0.01em;
  max-width: 40ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 999px;
  padding: 11px 18px;
  border: 1px solid transparent;
  transition: transform .25s ease, background .25s ease, box-shadow .25s ease, color .25s ease, border-color .25s ease;
  white-space: nowrap;
}
.btn .chev { font-size: 16px; transform: translateY(0.5px); transition: transform .25s ease; }
[data-open], .more { cursor: pointer; }
.btn-dark {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(0,0,0,0.5);
}
.btn-dark:hover { background: #1f1f1f; transform: translateY(-1px); }
.btn-dark:hover .chev { transform: translateX(2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair);
}
.btn-ghost:hover { border-color: rgba(0,0,0,0.28); background: rgba(0,0,0,0.02); }
.btn-lg { padding: 14px 24px; font-size: 16px; }
.btn-light {
  background: #fff; color: var(--ink);
}
.btn-light:hover { background: #f2f2f2; transform: translateY(-1px); }

/* ============================================================
   NAV
   ============================================================ */
.nav-outer {
  position: fixed;
  top: 18px;
  left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  transition: top .3s ease;
}
.nav {
  width: 100%;
  max-width: 980px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 9px 9px 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid var(--hair);
  border-radius: 999px;
  box-shadow: var(--shadow-nav);
  transition: max-width .35s ease, padding .35s ease, box-shadow .35s ease, background .35s ease;
}
.nav.scrolled {
  max-width: 760px;
  box-shadow: 0 16px 44px -18px rgba(20, 12, 8, 0.30);
  background: rgba(255, 255, 255, 0.85);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-weight: 600;
}
.brand .mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--ink);
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
}
.brand .mark .logo-ic {
  width: 14px; height: 14px; display: block;
  fill: none; stroke: #fff;
  stroke-width: 2.4; stroke-linecap: square; stroke-linejoin: miter;
  transform: rotate(90deg);
}
.brand .word {
  font-size: 15.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  padding: 8px 13px;
  border-radius: 999px;
  transition: color .2s ease, background .2s ease;
  letter-spacing: -0.01em;
}
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.04); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
.nav-cta .btn-ghost { padding: 9px 15px; }
.nav-cta .btn-dark { padding: 9px 16px; }
/* signed-in state (name + waitlist badge, injected by auth.js) */
.nav-wl { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: 0.01em; color: var(--ink); white-space: nowrap; }
.nav-wl-dot { width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgba(31,157,85,0.16); flex: none; }
.nav-user { font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.nav-burger { display: none; }
@media (max-width: 860px) { .nav-wl { display: none; } }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav.scrolled { max-width: 980px; }
}
@media (max-width: 560px) {
  .nav-cta .btn-ghost { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 40px;
  overflow: hidden;
}
.hero-wash {
  position: absolute;
  top: -340px; left: -240px;
  width: 1100px; height: 980px;
  background:
    radial-gradient(closest-side, rgba(248, 224, 210, 0.95), rgba(248, 226, 220, 0.45) 55%, rgba(255,255,255,0) 78%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}
.hero-wash.two {
  top: 60px; left: auto; right: -360px;
  width: 820px; height: 760px;
  background: radial-gradient(closest-side, rgba(225, 235, 230, 0.55), rgba(255,255,255,0) 72%);
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.hero-copy { padding-top: 8px; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.4vw, 60px);
  line-height: 1.07;
  letter-spacing: -0.038em;
  margin: 20px 0 0;
  color: var(--ink);
}
.hero h1 .l1 { font-weight: 600; display: block; }
.hero h1 .l2 { font-weight: 400; display: block; font-family: var(--font-body); letter-spacing: -0.03em; }
.hero-sub {
  margin: 22px 0 0;
  color: var(--muted);
  font-weight: 500;
  font-size: clamp(16px, 1.5vw, 18.5px);
  max-width: 38ch;
  letter-spacing: -0.012em;
}
.hero-actions {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* waitlist counter cluster */
.waitcluster {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.waitline {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--muted);
  letter-spacing: -0.01em;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.counter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  background: linear-gradient(95deg, #7fa793 0%, #9bbcae 35%, #e9b9a0 78%, #f0c3a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.avatars { display: inline-flex; }
.avatars image-slot {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -11px;
  background: var(--blush);
  box-shadow: 0 1px 4px rgba(20,12,8,0.18);
  overflow: hidden;
}
.avatars image-slot::part(empty) { font-size: 0; transform: scale(0.58); opacity: 0.5; }
.avatars image-slot:first-child { margin-left: 0; }
.avatars image-slot:nth-child(2) { background: #e7ddd4; }
.avatars image-slot:nth-child(3) { background: #dfe7e2; }
.avatars image-slot:nth-child(4) { background: #efe2dc; }

/* ---------- Hero visual ---------- */
.hero-visual {
  position: relative;
  height: 520px;
  perspective: 1600px;
}
.hv-window {
  position: absolute;
  top: 20px; left: 0;
  width: 100%;
  max-width: 500px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  will-change: transform;
}
.win-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hair-2);
}
.win-dots { display: flex; gap: 6px; }
.win-dots i { width: 10px; height: 10px; border-radius: 50%; background: #e2ddd8; display: block; }
.win-dots i:nth-child(1){ background:#e8c7bd; }
.win-title {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted-2); margin-left: 6px;
}
.win-body { display: grid; grid-template-columns: 156px 1fr; min-height: 318px; }
.win-rail { border-right: 1px solid var(--hair-2); padding: 14px 12px; background: #fcfaf9; }
.rail-h { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 8px; }
.rail-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.rail-item.active { background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--hair-2); }
.rail-item .ri-dot { width: 7px; height: 7px; border-radius: 2px; background: #d8ccc4; flex:none; }
.rail-item.active .ri-dot { background: var(--ink); }
.rail-sep { height: 1px; background: var(--hair-2); margin: 12px 2px; }

.win-chat { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.bubble-q {
  align-self: flex-end;
  max-width: 86%;
  background: var(--ink);
  color: #fff;
  font-size: 13px; font-weight: 500;
  padding: 10px 13px;
  border-radius: 14px 14px 4px 14px;
  line-height: 1.4;
}
.answer { max-width: 92%; }
.answer .who { font-family: var(--font-mono); font-size: 9.5px; letter-spacing:.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px;}
.answer .who::before { content:""; width: 14px; height:14px; border-radius: 4px; background: var(--ink); display:inline-block;}
.answer .text { font-size: 13px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.thinking { display: inline-flex; gap: 4px; padding: 4px 0; }
.thinking i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); animation: blink 1.2s infinite; }
.thinking i:nth-child(2){ animation-delay:.2s;} .thinking i:nth-child(3){ animation-delay:.4s;}
@keyframes blink { 0%,80%,100%{opacity:.25;} 40%{opacity:1;} }
.cite-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  padding: 5px 9px; border-radius: 7px;
  background: var(--blush); color: var(--ink-soft);
  border: 1px solid rgba(0,0,0,0.05);
  display: inline-flex; align-items: center; gap: 5px;
  opacity: 0; transform: translateY(4px);
  transition: opacity .4s ease, transform .4s ease;
}
.chip.show { opacity: 1; transform: none; }
.chip::before { content:"§"; opacity:.55; }

/* phone */
.hv-phone {
  position: absolute;
  bottom: 12px; right: -40px;
  width: 156px;
  background: #0f0f0f;
  border-radius: 30px;
  padding: 8px;
  box-shadow: var(--shadow-float);
  will-change: transform;
  z-index: 3;
}
.phone-screen {
  background: #fff; border-radius: 23px; overflow: hidden;
  height: 350px;
  display: flex; flex-direction: column;
}
.phone-top { padding: 14px 14px 8px; }
.phone-top .pt-h { font-family: var(--font-mono); font-size: 8.5px; letter-spacing:.12em; text-transform: uppercase; color: var(--muted-2);}
.phone-top .pt-q { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: -0.02em; margin-top: 4px; line-height: 1.2;}
.phone-card { margin: 6px 12px; padding: 10px; border: 1px solid var(--hair-2); border-radius: 12px; font-size: 11px; color: var(--muted); font-weight: 500; line-height: 1.4;}
.phone-card .pc-t { color: var(--ink); font-weight: 600; font-size: 11.5px; margin-bottom: 3px;}
.phone-chip { display:inline-flex; align-items:center; gap:4px; font-family: var(--font-mono); font-size: 8.5px; background: var(--blush); padding: 3px 6px; border-radius: 5px; color: var(--ink-soft); margin-top: 6px;}

/* floating notification cards */
.noti {
  position: absolute;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 11px 13px;
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: 210px;
  will-change: transform;
  z-index: 4;
}
.noti .ico { width: 28px; height: 28px; border-radius: 8px; flex:none; display:grid; place-items:center; background: var(--blush); }
.noti .ico::before { content:""; width: 11px; height: 11px; border-radius: 3px; background: var(--ink); }
.noti .nt { font-size: 12px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; }
.noti .ns { font-size: 10.5px; color: var(--muted-2); font-weight: 500; margin-top: 1px; }
.noti-1 { top: -14px; right: -26px; }
.noti-3 { bottom: 70px; left: -42px; }
@media (max-width: 1080px) {
  .noti-1 { right: -6px; }
  .noti-3 { left: 0; }
}

/* ---------- Icons & enriched mock UI ---------- */
.ic {
  width: 1em; height: 1em; display: inline-block;
  fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  vertical-align: middle; flex: none;
}

/* window header status chip */
.win-bar { position: relative; }
.win-status {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); background: rgba(0,0,0,.025);
  border: 1px solid var(--hair); padding: 4px 8px; border-radius: 999px;
}
.win-status .ic { width: 11px; height: 11px; color: var(--ink); }

/* rail icons */
.rail-item .ic { width: 14px; height: 14px; color: var(--muted-2); }
.rail-item.active .ic { color: var(--ink); }

/* main column with input bar */
.win-main { display: flex; flex-direction: column; min-height: 318px; }
.win-main .win-chat { flex: 1; }

.answer .who { gap: 7px; }
.answer .who::before { content: none; }
.who-mark {
  width: 16px; height: 16px; border-radius: 5px;
  background: var(--ink); color: #fff;
  display: inline-grid; place-items: center;
}
.who-mark .ic { width: 10px; height: 10px; fill: currentColor; stroke: none; }

.cite-head {
  display: flex; align-items: center; gap: 6px; margin-top: 14px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-2);
}
.cite-head .ic { width: 13px; height: 13px; color: var(--ink); }
.cite-row { margin-top: 8px; }

.win-input {
  display: flex; align-items: center; gap: 8px;
  margin: 0 14px 14px; padding: 8px 8px 8px 12px;
  border: 1px solid var(--hair); border-radius: 12px; background: #fcfaf9;
}
.win-input > .ic { width: 14px; height: 14px; color: var(--muted-2); fill: currentColor; stroke: none; }
.wi-ph { flex: 1; font-size: 12px; color: var(--muted-2); font-weight: 500; }
.wi-send { width: 27px; height: 27px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.wi-send .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; }

/* phone refinements */
.phone-notch { width: 44px; height: 5px; border-radius: 3px; background: #e6ddd6; margin: 9px auto 2px; }
.phone-top .pt-h { display: flex; align-items: center; gap: 5px; }
.phone-top .pt-h .ic { width: 11px; height: 11px; color: var(--ink); fill: currentColor; stroke: none; }
.pc-t { display: flex; align-items: center; gap: 6px; }
.pc-t .ic { width: 12px; height: 12px; color: var(--ink); }
.phone-input {
  margin: auto 12px 12px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--hair-2); border-radius: 10px; padding: 6px 6px 6px 11px;
  font-size: 10.5px; color: var(--muted-2); font-weight: 500;
}
.phone-input span:first-child { flex: 1; }
.pi-send { width: 22px; height: 22px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; }
.pi-send .ic { width: 11px; height: 11px; fill: currentColor; stroke: none; }

/* notification icons */
.noti .ico::before { content: none; }
.noti .ico .ic { width: 15px; height: 15px; color: var(--ink); }

/* bento icons */
.bc-ico::before { content: none; }
.bc-ico .ic { width: 17px; height: 17px; color: #fff; }

/* citations mock */
.cit-card { gap: 10px; }
.cit-card > div { flex: 1; min-width: 0; }
.cit-ico { width: 30px; height: 30px; border-radius: 8px; background: rgba(0,0,0,.04); display: grid; place-items: center; flex: none; }
.cit-ico .ic { width: 15px; height: 15px; color: var(--ink); }
.cit-card .cit-badge { margin-left: 0; }

/* research mock */
.search-bar .ic { width: 15px; height: 15px; color: var(--muted-2); }
.filters .f { display: inline-flex; align-items: center; gap: 4px; }
.filters .f .ic { width: 11px; height: 11px; }
.result .r-ico { width: 28px; height: 28px; border-radius: 7px; background: #fff; box-shadow: inset 0 0 0 1px var(--hair-2); display: grid; place-items: center; flex: none; }
.result .r-ico .ic { width: 14px; height: 14px; color: var(--muted); }

/* drafting mock */
.draft-tag {
  display: inline-flex; align-items: center; gap: 5px; margin: 0 0 12px;
  font-family: var(--font-mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-2);
}
.draft-tag .ic { width: 11px; height: 11px; color: var(--ink); fill: currentColor; stroke: none; }
.skeleton.typing { position: relative; }
.skeleton.typing::after {
  content: ""; position: absolute; right: -3px; top: -3px;
  width: 2px; height: 14px; background: var(--ink);
  animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* matters mock */
.matter-head .mh-ico::before { content: none; }
.matter-head .mh-ico .ic { width: 16px; height: 16px; color: var(--ink); }
.mrow .mr-ico { width: auto; height: auto; background: none; display: inline-flex; }
.mrow .mr-ico .ic { width: 15px; height: 15px; color: var(--ink); }
.mrow.muted .mr-ico .ic { color: var(--muted-2); }

/* ============================================================
   COVERAGE STRIP
   ============================================================ */
.coverage {
  padding: 72px 0 64px;
  text-align: center;
  border-top: 1px solid var(--hair-2);
  margin-top: 64px;
}
.coverage .anchor {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 27px);
  letter-spacing: -0.02em;
  margin: 18px auto 0;
  max-width: 22ch;
}
.coverage .anchor b { font-weight: 600; }
.marquee {
  margin-top: 36px;
  position: relative;
  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);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: scroll-x 38s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.juris {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  padding: 10px 18px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  white-space: nowrap;
  background: #fff;
}
@keyframes scroll-x { from { transform: translateX(0);} to { transform: translateX(-50%);} }

/* ============================================================
   PRODUCT (sticky copy, scrolling animated boxes)
   ============================================================ */
.product { padding: clamp(50px, 7vw, 88px) 0 clamp(44px, 6vw, 76px); }
.product-head {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 4px;
}
.product-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

/* sticky copy column */
.product-copy-col {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex; align-items: center;
}
.pcopy-stack { position: relative; width: 100%; min-height: 300px; }
.pcopy {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: center;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
  pointer-events: none;
}
.pcopy.active { opacity: 1; transform: none; pointer-events: auto; }
.pcopy h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  margin: 16px 0 16px;
}
.pcopy p {
  color: var(--muted); font-weight: 500;
  max-width: 40ch; margin: 0; letter-spacing: -0.01em;
}
.pcopy .more, .pbox-copy .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  margin-top: 22px; cursor: pointer;
}
.pcopy .more .chev { transition: transform .2s ease; }
.pcopy .more:hover .chev { transform: translateX(3px); }

/* scrolling boxes */
.pbox {
  min-height: 92vh;
  display: flex; align-items: center;
}
.pbox .panel {
  width: 100%;
  opacity: 0;
  transform: translateY(52px) scale(.96);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: transform, opacity;
}
.pbox.in .panel { opacity: 1; transform: none; }
.pbox-copy { display: none; }

/* ============================================================
   FEATURE SHOWCASES
   ============================================================ */
.feature {
  padding: clamp(60px, 8vw, 110px) 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.feature.rev .feature-grid { direction: rtl; }
.feature.rev .feature-grid > * { direction: ltr; }
.feature-copy { max-width: 460px; }
.reveal-head {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 18px 0 20px;
}
.reveal-head .w {
  color: rgba(0,0,0,0.14);
  transition: color .3s ease;
  display: inline;
}
.reveal-head .w.lit { color: var(--ink); }
.feature-copy p { color: var(--muted); font-weight: 500; margin: 0 0 14px; letter-spacing: -0.01em; }
.feature-copy .more {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 15px; color: var(--ink);
  margin-top: 4px;
}
.feature-copy .more .chev { transition: transform .2s ease; }
.feature-copy .more:hover .chev { transform: translateX(3px); }

/* blush product panel */
.panel {
  background: var(--blush);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 3vw, 36px);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.03);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.panel.blush2 { background: var(--blush-2); }

/* generic mock card inside panel */
.mock {
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--hair-2);
  box-shadow: var(--shadow-soft);
  width: 100%;
  overflow: hidden;
}
.mock-bar { display:flex; align-items:center; gap:8px; padding: 11px 14px; border-bottom: 1px solid var(--hair-2);}
.mock-bar .win-dots i { width:9px; height:9px;}
.mock-pad { padding: 18px; }

/* citations mock */
.cit-mock .answer-block { font-size: 13.5px; line-height: 1.6; font-weight: 500; color: var(--ink);}
.cit-mock .answer-block mark { background: #f3ddd4; color: var(--ink); padding: 0 2px; border-radius: 3px; }
.cit-list { margin-top: 16px; display: grid; gap: 8px; }
.cit-card { display:flex; align-items:center; gap: 10px; border: 1px solid var(--hair-2); border-radius: 10px; padding: 9px 11px;}
.cit-card .cit-badge { font-family: var(--font-mono); font-size: 9px; letter-spacing:.08em; background: var(--ink); color:#fff; padding: 4px 6px; border-radius: 5px; flex:none;}
.cit-card .cit-name { font-size: 12.5px; font-weight: 600;}
.cit-card .cit-sub { font-size: 11px; color: var(--muted-2); font-weight: 500;}
.cit-card .cit-go { margin-left:auto; font-size: 16px; color: var(--muted-2);}

/* research mock */
.search-bar { display:flex; align-items:center; gap: 10px; border: 1px solid var(--hair); border-radius: 12px; padding: 11px 14px; font-size: 13px; color: var(--muted); font-weight: 500;}
.search-bar .mag { width: 15px; height:15px; border: 2px solid var(--muted-2); border-radius: 50%; position: relative; flex:none;}
.search-bar .mag::after { content:""; position:absolute; width: 6px; height: 2px; background: var(--muted-2); transform: rotate(45deg); bottom: -2px; right: -3px; border-radius: 2px;}
.filters { display:flex; gap:6px; flex-wrap: wrap; margin: 14px 0;}
.filters .f { font-family: var(--font-mono); font-size: 10px; padding: 5px 9px; border-radius: 999px; border: 1px solid var(--hair); color: var(--muted);}
.filters .f.on { background: var(--ink); color:#fff; border-color: var(--ink);}
.result { display:flex; gap: 10px; padding: 11px 0; border-top: 1px solid var(--hair-2);}
.result .rnum { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); width: 18px; flex:none;}
.result .rt { font-size: 12.5px; font-weight: 600;}
.result .rs { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 2px;}

/* drafting mock */
.draft-doc { font-size: 12px; line-height: 1.7; color: var(--ink); font-weight: 500;}
.draft-doc .dh { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: -0.02em; margin-bottom: 10px;}
.skeleton { height: 9px; border-radius: 4px; background: #efe6e0; margin: 8px 0;}
.skeleton.w90 { width: 90%; } .skeleton.w70 { width: 70%; } .skeleton.w80{ width: 80%;}
.skeleton.ink { background: #ded2ca; }
.draft-src { margin-top: 14px; display:flex; gap:6px; flex-wrap: wrap;}
.draft-src .ds { font-family: var(--font-mono); font-size: 9.5px; background: var(--blush); padding: 4px 8px; border-radius: 6px; color: var(--ink-soft); display:inline-flex; gap:5px;}
.draft-src .ds::before { content:"§"; opacity:.5;}

/* matters mock */
.matter-head { display:flex; align-items:center; gap: 10px; margin-bottom: 14px;}
.matter-head .mh-ico { width: 34px; height: 34px; border-radius: 9px; background: var(--blush); display:grid; place-items:center; flex:none;}
.matter-head .mh-ico::before{ content:""; width:13px; height:13px; border:2px solid var(--ink); border-radius: 3px;}
.matter-head .mh-t { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing:-0.02em;}
.matter-head .mh-s { font-size: 11px; color: var(--muted-2); font-weight: 500;}
.matter-rows { display: grid; gap: 8px;}
.mrow { display:flex; align-items:center; gap: 10px; border: 1px solid var(--hair-2); border-radius: 10px; padding: 10px 12px; font-size: 12px; font-weight: 500;}
.mrow .mr-tag { font-family: var(--font-mono); font-size: 8.5px; letter-spacing:.08em; text-transform: uppercase; color: var(--muted-2); margin-left:auto;}
.mrow .mr-ico { width: 8px; height:8px; border-radius: 2px; background: var(--ink); flex:none;}
.mrow.muted .mr-ico { background: #cdbfb6;}

/* ============================================================
   DARK BENTO
   ============================================================ */
.dark {
  position: relative;
  background: var(--dark);
  color: #fff;
  border-radius: 36px;
  margin: 30px var(--pad);
  padding: clamp(48px, 7vw, 96px) clamp(28px, 5vw, 72px);
  overflow: hidden;
}
.dark::before {
  content:"";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 30%, #000, transparent 78%);
  pointer-events: none;
}
.dark::after {
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(120% 90% at 50% -10%, rgba(120,120,120,0.18), transparent 60%);
  pointer-events:none;
}
.dark .inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.dark .eyebrow { color:#fff; border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.04);}
.dark .eyebrow .dot { background:#fff;}
.dark h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 20px 0 0;
  max-width: 20ch;
}
.dark h2 b { font-weight: 600; }
.bento {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.bcard {
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 22px;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.bcard:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); transform: translateY(-2px); }
.bcard .bc-ico { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,0.08); display:grid; place-items:center;}
.bcard .bc-ico::before { content: none; }
.bcard .bc-t { font-family: var(--font-display); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; margin-top: 16px;}
.bcard .bc-s { font-size: 13px; color: rgba(255,255,255,0.6); font-weight: 500; margin-top: 6px; line-height: 1.45;}
.bcard.span3 { grid-column: span 3; }
.bcard.span2 { grid-column: span 2; }
.bcard.span4 { grid-column: span 4; }

/* mini chat preview inside a bento card */
.bchat { display:flex; flex-direction:column; gap:8px; margin-top: 14px;}
.bchat .bq { align-self:flex-end; background:#fff; color:#000; font-size:11.5px; font-weight:500; padding:7px 10px; border-radius:10px 10px 3px 10px; max-width: 75%;}
.bchat .ba { align-self:flex-start; background: rgba(255,255,255,0.08); color:#fff; font-size:11.5px; font-weight:500; padding:7px 10px; border-radius:10px 10px 10px 3px; max-width: 80%;}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how { padding: clamp(64px, 9vw, 120px) 0 40px; text-align: center; }
.how-head { display:flex; flex-direction: column; align-items: center; gap: 0;}
.how-frame {
  margin: 44px auto 0;
  max-width: 980px;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}
.how-frame .win-bar { justify-content: flex-start; }
.how-stage {
  background: linear-gradient(180deg, #faf6f3, #fff);
  min-height: 440px;
  display: grid;
  grid-template-columns: 200px 1fr;
}
.how-stage .hs-rail { border-right: 1px solid var(--hair-2); padding: 18px; text-align: left; background: #fcfaf9;}
.how-stage .hs-main { padding: 26px; text-align: left; display:flex; flex-direction: column; gap: 16px;}
.hs-step {
  display:flex; gap: 12px; align-items:flex-start; padding: 12px 14px;
  border-radius: 12px; border: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.hs-step.active { background:#fff; border-color: var(--hair-2); box-shadow: var(--shadow-soft);}
.hs-step .hs-n { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2); width: 22px; flex:none; padding-top: 2px;}
.hs-step.active .hs-n { color: var(--ink);}
.hs-step .hs-t { font-size: 13px; font-weight: 600; letter-spacing:-0.01em;}
.hs-step .hs-d { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 2px; line-height: 1.4;}
.how-playbar { display:flex; align-items:center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--hair-2); }
.how-playbar .play { width: 30px; height:30px; border-radius:50%; background: var(--ink); display:grid; place-items:center; flex:none;}
.how-playbar .play::before { content:""; border-left: 9px solid #fff; border-top: 5px solid transparent; border-bottom: 5px solid transparent; margin-left: 2px;}
.how-playbar .track { flex:1; height: 4px; border-radius: 999px; background: var(--hair); position: relative; overflow: hidden;}
.how-playbar .track i { position:absolute; left:0; top:0; bottom:0; width: 38%; background: var(--ink); border-radius: 999px;}
.how-playbar .time { font-family: var(--font-mono); font-size: 11px; color: var(--muted-2);}

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: clamp(64px, 9vw, 110px) 0; }
.faq-grid { display:grid; grid-template-columns: 0.7fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: start;}
.faq-list { border-top: 1px solid var(--hair); }
.faq-item { border-bottom: 1px solid var(--hair); }
.faq-q {
  width: 100%; background: none; border: none; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 500; font-size: clamp(17px, 1.9vw, 21px);
  letter-spacing: -0.02em; color: var(--ink);
}
.faq-q .pm { width: 18px; height:18px; position: relative; flex:none;}
.faq-q .pm::before, .faq-q .pm::after { content:""; position:absolute; background: var(--ink); border-radius:2px; transition: transform .3s ease, opacity .3s ease;}
.faq-q .pm::before { left: 50%; top:0; bottom:0; width: 2px; transform: translateX(-50%);}
.faq-q .pm::after { top: 50%; left:0; right:0; height: 2px; transform: translateY(-50%);}
.faq-item.open .pm::before { transform: translateX(-50%) scaleY(0); opacity: 0;}
.faq-a { max-height: 0; overflow: hidden; transition: max-height .42s cubic-bezier(.4,0,.2,1);}
.faq-a-inner { padding: 0 4px 24px; color: var(--muted); font-weight: 500; max-width: 56ch; letter-spacing:-0.01em;}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--hair-2);
  padding: 72px 0 40px;
  margin-top: 30px;
}
.footer-top { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand .word { color: var(--ink); }
.footer-tag { color: var(--muted); font-weight: 500; max-width: 30ch; margin: 18px 0 18px; font-size: 15px;}
.socials { display:flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hair); display:grid; place-items:center; color: var(--muted); transition: all .2s; font-family: var(--font-mono); font-size: 11px;}
.socials a:hover { background: var(--ink); color:#fff; border-color: var(--ink);}
.fcol h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing:.12em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 16px; font-weight: 500;}
.fcol a { display:block; color: var(--muted); font-weight: 500; padding: 6px 0; font-size: 14.5px; transition: color .2s;}
.fcol a:hover { color: var(--ink);}
.footer-bottom { display:flex; align-items:center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--hair-2); font-size: 13px; color: var(--muted-2); font-weight: 500;}

/* ============================================================
   WAITLIST MODAL
   ============================================================ */
.modal-scrim {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 12, 8, 0.32);
  backdrop-filter: blur(6px);
  display: grid; place-items: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.modal-scrim.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 440px;
  background: #fff;
  border-radius: 26px;
  border: 1px solid var(--hair);
  box-shadow: 0 40px 100px -30px rgba(20,12,8,0.5);
  padding: 30px;
  position: relative;
  transform: translateY(14px) scale(.98);
  transition: transform .34s cubic-bezier(.2,.8,.2,1);
  overflow: hidden;
}
.modal-scrim.open .modal { transform: none; }
.modal-wash { position:absolute; top:-120px; left:-80px; width: 360px; height: 320px; background: radial-gradient(closest-side, rgba(248,224,210,.9), transparent 72%); filter: blur(4px); pointer-events:none;}
.modal-x { position:absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; border:1px solid var(--hair); background:#fff; display:grid; place-items:center; color: var(--muted); font-size: 16px; z-index: 3;}
.modal-x:hover { background:#f4f4f4; color: var(--ink);}
.modal .m-eye { position: relative; z-index: 2; }
.modal h3 { position: relative; z-index:2; font-family: var(--font-display); font-weight: 600; font-size: 25px; letter-spacing: -0.03em; margin: 16px 0 6px;}
.modal p.m-sub { position: relative; z-index:2; color: var(--muted); font-weight: 500; margin: 0 0 22px; font-size: 15px;}
.field { position: relative; z-index: 2; margin-bottom: 12px; }
.field label { display:block; font-family: var(--font-mono); font-size: 10px; letter-spacing:.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px;}
.field input, .field select {
  width: 100%; font-family: var(--font-body); font-size: 15px; font-weight: 500;
  padding: 12px 14px; border: 1px solid var(--hair); border-radius: 12px; background:#fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: rgba(0,0,0,0.4); box-shadow: 0 0 0 3px rgba(0,0,0,0.05);}
.field input.err { border-color: #c98b78; }
.field .err-msg { color: #b5694f; font-size: 12px; font-weight: 500; margin-top: 5px; display: none;}
.field.show-err .err-msg { display: block; }

/* custom role dropdown — styled + scrollable */
/* Lift the role field's stacking context above the later z-index:2 siblings
   (.m-fine / .m-switch); otherwise the open dropdown's z-index:30 is trapped
   inside this field's context and those paragraphs paint over it, making the
   white panel look see-through. */
.join-only > .field { z-index: 20; }
.cselect { position: relative; }
.cselect-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500; text-align: left;
  padding: 12px 14px; border: 1px solid var(--hair); border-radius: 12px; background: #fff; color: var(--ink);
  cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.cselect-btn:focus-visible { outline: none; border-color: rgba(0,0,0,0.4); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.cselect.open .cselect-btn { border-color: rgba(0,0,0,0.4); box-shadow: 0 0 0 3px rgba(0,0,0,0.05); }
.cselect-val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-val.is-placeholder { color: var(--muted-2); }
.cselect-chev { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--muted-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.cselect.open .cselect-chev { transform: rotate(180deg); }
.cselect-list {
  list-style: none; margin: 6px 0 0; padding: 6px; position: absolute; top: 100%; left: 0; right: 0; z-index: 30;
  background: #fff; border: 1px solid var(--hair); border-radius: 12px; box-shadow: 0 18px 40px -20px rgba(0,0,0,0.28);
  max-height: 224px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: none;
}
.cselect.open .cselect-list { display: block; }
.cselect-opt {
  padding: 10px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink);
  cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.cselect-opt:hover, .cselect-opt.active { background: rgba(0,0,0,0.05); }
.cselect-opt[aria-selected="true"] { font-weight: 600; }
.cselect-opt[aria-selected="true"]::after { content: "✓"; color: var(--ink); font-size: 13px; }
.field.show-err .cselect-btn { border-color: #c98b78; }
.modal .row2 { display:grid; grid-template-columns: 1fr 1fr; gap: 12px;}
.modal .btn-dark.full { width: 100%; justify-content: center; margin-top: 8px; }
.modal .m-fine { position:relative; z-index:2; font-size: 12px; color: var(--muted-2); font-weight: 500; text-align: center; margin: 14px 0 0;}
.modal .m-switch { position: relative; z-index:2; text-align:center; margin-top: 16px; font-size: 13.5px; color: var(--muted); font-weight: 500;}
.modal .m-switch button { background:none; border:none; color: var(--ink); font-weight: 600; text-decoration: underline; padding: 0;}

/* success state */
.m-success { position: relative; z-index: 2; text-align: center; padding: 8px 0; }
.m-success .tick {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(135deg, #7fa793, #e9b9a0);
  display:grid; place-items:center;
}
.m-success .tick::before { content:""; width: 22px; height: 12px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px,-2px);}
.m-success h3 { margin-top: 0; }
.m-success .pos { display:inline-flex; align-items:center; gap: 8px; margin-top: 14px; font-family: var(--font-mono); font-size: 12px; background: var(--blush); padding: 8px 14px; border-radius: 999px; color: var(--ink-soft);}
.m-success .pos b { font-weight: 700; }
.hidden { display: none !important; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal-up { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal-up.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 460px; margin-top: 8px; }
  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature.rev .feature-grid { direction: ltr; }
  .faq-grid { grid-template-columns: 1fr; gap: 18px;}
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bcard.span3, .bcard.span2, .bcard.span4 { grid-column: span 1; }
  .how-stage { grid-template-columns: 1fr; }
  .how-stage .hs-rail { display:none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px;}
}
@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 0; }
  .product-head { align-items: flex-start; text-align: left; }
  .product-copy-col { display: none; }
  .pbox { min-height: auto; }
  .pbox-copy { display: block; }
  .pbox-copy h3 {
    font-family: var(--font-display); font-weight: 500;
    line-height: 1.1; letter-spacing: -0.026em; margin: 16px 0 14px;
  }
  .pbox-copy p { color: var(--muted); font-weight: 500; margin: 0; max-width: 46ch; }
  /* entrance animation for copy + panel on mid/small screens */
  .pbox-copy { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; transition-delay: .05s; }
  .pbox.in .pbox-copy { opacity: 1; transform: none; }
}

/* middle / tablet screens: alternating two-column rows (matches desktop quality) */
@media (min-width: 561px) and (max-width: 900px) {
  .product { padding-top: clamp(40px, 6vw, 70px); }
  .product-boxes { display: flex; flex-direction: column; gap: clamp(8px, 2vw, 24px); }
  .pbox {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 52px); align-items: center;
    padding: clamp(34px, 5vw, 56px) 0;
  }
  .pbox:nth-child(even) .pbox-copy { order: 2; }
  .pbox-copy { margin-bottom: 0; }
  .pbox-copy h3 { font-size: clamp(24px, 3.6vw, 33px); }
  .pbox-copy p { font-size: 15.5px; }
}

/* phones: clean vertical stack */
@media (max-width: 560px) {
  .pbox {
    display: flex; flex-direction: column; align-items: stretch;
    padding: 32px 0 8px;
    border-top: 1px solid var(--hair-2);
  }
  .product-boxes > .pbox:first-child { border-top: none; padding-top: 8px; }
  .pbox-copy { margin-bottom: 22px; }
  .pbox-copy h3 { font-size: clamp(24px, 6vw, 30px); margin: 14px 0 12px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 120px; }
  .hero-visual { height: 420px; transform: scale(.92); transform-origin: top center;}
  .bento { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .modal .row2 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important;}
  .reveal-up { opacity: 1 !important; transform: none !important; }
  .reveal-head .w { color: var(--ink) !important; }
  .chip { opacity: 1 !important; transform: none !important; }
  .marquee-track { animation: none !important; }
  .pbox .panel { opacity: 1 !important; transform: none !important; }
  .pbox-copy { opacity: 1 !important; transform: none !important; }
  .pcopy { transition: none !important; }
}

/* ============================================================
   LARGE SCREENS — scale the whole design up on big displays.
   The layout caps at --maxw (1200px) and is sized in px, so on a
   16" MacBook fullscreen (~1728px) or an external monitor it reads
   small / "zoomed out" at 100%. A uniform zoom scales type + spacing
   together (like baking in a little browser zoom) and still reflows,
   so there's no horizontal scrollbar. 1.2 ≈ the 120% that looked right.
   ============================================================ */
@media (min-width: 1600px) { body { zoom: 1.2; } }
@media (min-width: 2000px) { body { zoom: 1.35; } }

/* ============================================================
   AUTH MODAL ADDITIONS (login / signup)
   ============================================================ */
.login-mode .join-only { display: none; }

/* Forgot-password link — only shown when logging in */
.m-forgot { display: none; text-align: right; margin: -4px 0 6px; }
.mode-login .m-forgot { display: block; }
.m-forgot button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  color: var(--muted); text-decoration: underline;
}
.m-forgot button:hover { color: var(--ink); }

/* Password-reset flow field visibility:
   reset  = request a link (email only) · update = set a new password (password only) */
.mode-reset #fPassword,
.mode-update #fEmail,
.mode-reset .join-only,
.mode-update .join-only { display: none; }
.mode-update #captcha { display: none; }

.modal .hp-field { position: absolute !important; left: -9999px; top: 0; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.modal .m-error {
  position: relative; z-index: 2; display: none; margin: 2px 0 14px;
  padding: 10px 13px; border-radius: 11px;
  background: #fbeae5; border: 1px solid #e6c3b7; color: #9c3d27;
  font-size: 13px; font-weight: 500; line-height: 1.45;
}
.modal .m-error.show { display: block; }
.modal .m-resend { margin: -6px 0 14px; }
.modal .m-resend button {
  background: none; border: 0; padding: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  color: var(--ink); text-decoration: underline;
}
.modal .m-resend button[disabled] { opacity: .6; cursor: default; text-decoration: none; }
.modal .m-resend .m-resend-note { font-size: 13px; font-weight: 500; color: var(--muted); }
.modal .m-fine a { color: var(--ink); text-decoration: underline; }

/* ============================================================
   CONTENT / LEGAL PAGES
   ============================================================ */
.page-head { border-bottom: 1px solid var(--hair-2); background: var(--bg); }
.page-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.page-head .nav-cta { display: flex; gap: 8px; align-items: center; }
.page-head .nav-cta .btn-ghost { padding: 9px 15px; }
.page-head .nav-cta .btn-dark { padding: 9px 16px; }
.legal { padding: 54px 0 32px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; margin: 16px 0 10px; }
.legal .updated { color: var(--muted-2); font-size: 13px; font-family: var(--font-mono); letter-spacing: .04em; margin: 0 0 30px; }
.legal h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 22px; margin: 38px 0 10px; }
.legal h3 { font-size: 16.5px; font-weight: 600; margin: 22px 0 6px; color: var(--ink); }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 20px; }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.legal .lead { font-size: 18px; color: var(--ink); margin-bottom: 22px; }
.legal .note { background: var(--peach); border: 1px solid var(--hair); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; color: var(--ink-soft); margin: 0 0 26px; }
.legal .toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.legal .toc a { font-family: var(--font-mono); font-size: 12px; text-decoration: none; border: 1px solid var(--hair); border-radius: 999px; padding: 6px 12px; color: var(--muted); }
.legal .toc a:hover { color: var(--ink); border-color: rgba(0,0,0,.25); }

.modal .cf-captcha:not(:empty){ margin: 2px 0 14px; display:flex; justify-content:center; }

/* avatars hidden for now (kept in DOM for easy re-enable) */
.waitcluster .avatars { display: none; }
