/* ==========================================================================
   DhruvLabs — Design tokens
   ========================================================================== */

:root {
  /* color */
  --paper: #f5f6f2;
  --paper-2: #eceee7;
  --surface: #ffffff;
  --ink: #10131a;
  --ink-2: #3c4149;
  --ink-3: #6b7078;
  --line: #e1e3db;
  --line-strong: #cbceC4;
  --accent: #2451f0;
  --accent-ink: #0e1e5c;
  --accent-soft: #e9edfe;
  --signal: #c97f14;
  --signal-soft: #faf0da;
  --signal-line: #ecd6a4;
  --dark: #0b0d12;
  --dark-2: #14171e;
  --dark-line: #262a33;
  --dark-ink: #f5f6f3;
  --dark-ink-2: #9298a3;

  /* radius */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* shadow */
  --shadow-sm: 0 1px 2px rgba(16, 19, 26, 0.05);
  --shadow-md: 0 12px 32px -8px rgba(16, 19, 26, 0.14);

  /* type */
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* layout */
  --content-w: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  color-scheme: light;
}

/* ==========================================================================
   Reset
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Layout helpers
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--content-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(56px, 9vw, 112px);
}

.section-alt {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 56px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  padding: 5px 12px;
  border-radius: var(--r-pill);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.section-head p {
  margin-top: 14px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--ink-3);
  max-width: 46ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}

.btn-primary:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.btn-disabled {
  background: var(--surface);
  color: var(--ink-3);
  border: 1px dashed var(--line-strong);
  cursor: not-allowed;
}

/* Spec meta row (signature element) */
.spec-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-item {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: 8px 12px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}

.spec-item b {
  color: var(--ink-3);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 11px;
}

/* Hero entrance — CSS-only, plays once on load, no scroll dependency
   (a scroll-linked reveal was tried and dropped: it could leave sections
   blank if the IntersectionObserver callback lagged behind a fast scroll). */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-grid > * {
  animation: fade-up 0.5s ease both;
}

.hero-grid > *:nth-child(2) {
  animation-delay: 0.05s;
}
.hero-grid > *:nth-child(3) {
  animation-delay: 0.1s;
}
.hero-grid > *:nth-child(4) {
  animation-delay: 0.15s;
}
.hero-grid > *:nth-child(5) {
  animation-delay: 0.2s;
}

/* ==========================================================================
   Motion system — scroll reveal, 3D tilt, float
   ========================================================================== */

/* Reveal: elements are fully visible by default. They are only hidden once
   JS confirms motion is OK and adds .anim-ready to <html>, and JS guarantees
   .is-visible is applied (observer + load + hard-timeout failsafes). */
.anim-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}

.anim-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* 3D tilt: JS feeds --rx/--ry from cursor position. Values default to 0 so
   the element sits flat until hovered, and returns smoothly on mouseleave. */
[data-tilt] {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease, border-color 0.3s ease;
}

[data-tilt]:hover {
  transition: transform 0.08s linear, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* Lift child content slightly on the Z axis for real depth on hover. */
[data-tilt] > * {
  transform: translateZ(0.01px);
}

/* Magnetic elements ease back when the cursor leaves (JS clears transform). */
[data-magnet] {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Gentle float loop, used on the TryCut spotlight logo. */
@keyframes soft-float {
  from {
    transform: translateY(-6px);
  }
  to {
    transform: translateY(6px);
  }
}

.spotlight-logo {
  animation: soft-float 4.5s ease-in-out infinite alternate;
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .hero::after,
  .hero-grid > *,
  .spotlight-logo {
    animation: none;
  }
  [data-tilt],
  [data-magnet] {
    transform: none !important;
  }
}

/* ==========================================================================
   Navbar
   ========================================================================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 242, 0.9);
  border-bottom: 1px solid transparent;
}

@supports (backdrop-filter: blur(6px)) {
  .nav {
    backdrop-filter: blur(10px);
  }
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(245, 246, 242, 0.96);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 16px;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 9px 14px;
  border-radius: var(--r-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-links a:hover {
  background: var(--paper-2);
  color: var(--ink);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta .btn {
  display: none;
}

/* Mobile disclosure nav (no JS required) */
.nav-mobile {
  display: none;
}

.nav-mobile summary {
  list-style: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
}

.nav-mobile summary::-webkit-details-marker {
  display: none;
}

.nav-mobile summary .icon-close,
.nav-mobile[open] summary .icon-open {
  display: none;
}

.nav-mobile[open] summary .icon-close {
  display: block;
}

.nav-mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 8px var(--gutter) 20px;
  box-shadow: var(--shadow-md);
}

.nav-mobile-panel a {
  display: block;
  padding: 13px 4px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}

.nav-mobile-panel .btn {
  margin-top: 14px;
  width: 100%;
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-cta .btn {
    display: none;
  }
  .nav-mobile {
    display: block;
  }
}

@media (min-width: 861px) {
  .nav-cta .btn {
    display: inline-flex;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding-block: clamp(64px, 11vw, 128px) clamp(56px, 8vw, 96px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Ambient glow — slow-drifting soft gradient behind the headline. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -20%;
  left: -10%;
  width: 70vw;
  max-width: 820px;
  aspect-ratio: 1;
  background:
    radial-gradient(closest-side, rgba(36, 81, 240, 0.16), rgba(36, 81, 240, 0) 70%);
  filter: blur(8px);
  animation: hero-drift 16s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  bottom: -30%;
  right: -8%;
  width: 52vw;
  max-width: 620px;
  aspect-ratio: 1;
  background:
    radial-gradient(closest-side, rgba(201, 127, 20, 0.13), rgba(201, 127, 20, 0) 70%);
  filter: blur(8px);
  animation: hero-drift 20s ease-in-out infinite alternate-reverse;
  pointer-events: none;
}

@keyframes hero-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(4%, 6%, 0) scale(1.12);
  }
}

.hero-grid {
  display: grid;
  gap: 28px;
  max-width: 780px;
}

/* Grid items stretch to fill their column by default — override for the
   pill so it hugs its own text instead of spanning the full hero width. */
.hero-grid > .eyebrow {
  justify-self: start;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 6.4vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero .lede {
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink-3);
  max-width: 54ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.hero .spec-row {
  margin-top: 12px;
}

/* ==========================================================================
   Stats / trust strip
   ========================================================================== */

.stats {
  border-block: 1px solid var(--line);
  background: var(--paper-2);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-row div {
  padding: 22px 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  border-left: 1px solid var(--line);
}

.stats-row div:first-child {
  border-left: none;
}

@media (max-width: 700px) {
  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-row div:nth-child(3) {
    border-left: none;
  }
  .stats-row div:nth-child(odd) {
    border-left: none;
  }
}

/* ==========================================================================
   Product grid
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.product-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-logo {
  width: 56px;
  height: 56px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  flex: none;
  background: var(--paper-2);
}

.product-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.status-pill.is-available {
  color: #1c6e3f;
  background: #eaf6ee;
  border-color: #cbe8d5;
}

.status-pill.is-available::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2c9a56;
}

.status-pill.is-progress {
  color: var(--ink-3);
  background: transparent;
  border-style: dashed;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}

.product-category {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  margin-top: -10px;
}

.product-card p.desc {
  color: var(--ink-3);
  font-size: 14.5px;
}

.product-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
}

.product-card-foot a {
  font-weight: 600;
  font-size: 14.5px;
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-card-foot a:hover {
  text-decoration: underline;
}

.product-card.is-placeholder {
  border-style: dashed;
  align-items: flex-start;
  justify-content: center;
  min-height: 220px;
  color: var(--ink-3);
}

.product-card.is-placeholder .status-pill {
  margin-top: auto;
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.about-copy p {
  font-size: clamp(16px, 1.6vw, 18px);
  color: var(--ink-2);
  max-width: 60ch;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-meta {
  display: grid;
  gap: 10px;
  align-content: start;
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Principles
   ========================================================================== */

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.principle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 26px;
}

.principle-tag {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  display: block;
}

.principle-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.principle-card p {
  color: var(--ink-3);
  font-size: 14.5px;
}

@media (max-width: 900px) {
  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .principle-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Capabilities
   ========================================================================== */

.cap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cap-tag {
  font-family: var(--font-mono);
  font-size: 13.5px;
  padding: 11px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-2);
}

/* ==========================================================================
   TryCut spotlight
   ========================================================================== */

.spotlight {
  background: var(--signal-soft);
  border-block: 1px solid var(--signal-line);
}

.spotlight-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  background: var(--surface);
  border: 1px solid var(--signal-line);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: var(--shadow-sm);
}

.spotlight-logo {
  width: 104px;
  height: 104px;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  flex: none;
}

.spotlight-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.spotlight-body h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  margin-bottom: 8px;
}

.spotlight-body .tagline {
  font-size: 15.5px;
  color: var(--ink-2);
  margin-bottom: 10px;
}

.spotlight-body p.desc {
  color: var(--ink-3);
  font-size: 14.5px;
  max-width: 50ch;
}

.spotlight-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
}

.spotlight-actions .note {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-3);
  max-width: 22ch;
}

@media (max-width: 780px) {
  .spotlight-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .spotlight-actions {
    align-items: flex-start;
    text-align: left;
  }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(32px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1.2fr auto;
  align-items: center;
  gap: 32px;
}

.contact-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.contact-card p {
  color: var(--dark-ink-2);
  font-size: 15.5px;
  max-width: 46ch;
}

.contact-card .btn-primary {
  background: var(--paper);
  color: var(--ink);
}

.contact-card .btn-primary:hover {
  background: #fff;
}

.contact-email {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--dark-ink-2);
  margin-top: 14px;
  display: block;
}

@media (max-width: 780px) {
  .contact-card {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--dark);
  color: var(--dark-ink-2);
  padding-block: 56px 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--dark-line);
}

.footer-brand .brand {
  color: var(--dark-ink);
}

.footer-brand .brand span {
  color: #6f8dff;
}

.footer-brand p {
  margin-top: 12px;
  font-size: 14.5px;
  max-width: 32ch;
}

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark-ink);
  margin-bottom: 14px;
}

.footer-col ul {
  display: grid;
  gap: 10px;
}

.footer-col a {
  font-size: 14.5px;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--dark-ink);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13px;
}

@media (max-width: 780px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Legal / placeholder pages
   ========================================================================== */

.legal-main {
  padding-block: clamp(48px, 8vw, 88px);
}

.legal-header {
  max-width: 720px;
  margin-bottom: 40px;
}

.legal-header .eyebrow {
  margin-bottom: 16px;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.legal-header p {
  color: var(--ink-3);
  font-size: 15.5px;
}

.legal-placeholder {
  max-width: 720px;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 40px);
}

.legal-placeholder p {
  color: var(--ink-2);
  font-size: 15px;
}

.legal-placeholder p + p {
  margin-top: 12px;
}

/* Published legal prose */
.legal-updated {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 16px;
}

.legal-content {
  max-width: 720px;
}

.legal-content section {
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--line);
}

.legal-content section:first-of-type {
  border-top: 0;
  margin-top: 8px;
  padding-top: 0;
}

.legal-content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(19px, 2.4vw, 23px);
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
  display: flex;
  gap: 12px;
  align-items: baseline;
}

.legal-content h2 .num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  flex: none;
}

.legal-content p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 66ch;
}

.legal-content p + p {
  margin-top: 14px;
}

.legal-list + p {
  margin-top: 14px;
}

.legal-content a {
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Labeled data items (dt = what we collect / who processes it) */
.legal-defs {
  margin: 4px 0 0;
  display: grid;
  gap: 16px;
}

.legal-defs > div {
  padding-left: 16px;
  border-left: 2px solid var(--line-strong);
}

.legal-defs dt {
  font-weight: 600;
  color: var(--ink);
  font-size: 15.5px;
  margin-bottom: 4px;
}

.legal-defs dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  max-width: 64ch;
}

/* Bulleted list inside legal prose */
.legal-list {
  margin: 12px 0 0;
  padding-left: 4px;
  display: grid;
  gap: 8px;
}

.legal-list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 64ch;
}

.legal-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 28px;
}

.legal-back:hover {
  color: var(--ink);
}

/* ==========================================================================
   404
   ========================================================================== */

.error-main {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 80px;
}

.error-main .eyebrow {
  margin-bottom: 20px;
}

.error-main h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 600;
  margin-bottom: 12px;
}

.error-main p {
  color: var(--ink-3);
  margin-bottom: 24px;
}
