/* Always light, matching the app's own default - TRACE only switches to
   dark when a signed-in user explicitly opts in via Settings, it never
   follows the OS/browser's prefers-color-scheme. A visitor landing here
   has no saved setting yet, so light is the correct default regardless of
   their system theme. */
:root {
  --bg: #f5f5f4;
  --panel: #ffffff;
  --panel2: #ffffff;
  --line: #dbd7c9;
  --text: #242018;
  --dim: #5c584a;
  --faint: #8b8674;
  --accent: #5854ff;
  --accent2: #4cc9f0; /* cyan end of the brand gradient */
  --onAccent: #ffffff;
  --shadow: 0 1px 2px rgba(36, 32, 24, 0.04), 0 12px 32px -12px rgba(36, 32, 24, 0.12);
  --shadow-lift: 0 2px 4px rgba(36, 32, 24, 0.06), 0 22px 48px -18px rgba(88, 84, 255, 0.28);
  --header-bg: rgba(255, 255, 255, 0.85);
  --hover-bg: rgba(36, 32, 24, 0.05);
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* Dark is opt-in via the profile menu's Theme submenu (same trace_settings_v1
   key + data-theme attribute the app uses, so the choice carries between the
   two). Neutrals mirror the app's dark palette (src/styles/theme.css); the
   brand accents + hero gradient are identical in both themes. */
:root[data-theme="dark"] {
  --bg: #0e1116;
  --panel: #161b22;
  --panel2: #1c232d;
  --line: #232b36;
  --text: #e6edf3;
  --dim: #8b949e;
  --faint: #6b7684;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px -14px rgba(0, 0, 0, 0.6);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.5), 0 22px 48px -18px rgba(0, 0, 0, 0.7);
  --header-bg: rgba(16, 17, 22, 0.85);
  --hover-bg: rgba(255, 255, 255, 0.06);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  /* Safety net: never let a stray wide element scroll the whole page
     sideways. clip (not hidden) so the sticky header still works. */
  overflow-x: clip;
}
a {
  color: var(--accent);
}
img {
  max-width: 100%;
}

/* Inner content column shared by every full-bleed section - the sections
   themselves span edge to edge, this centers and gutters their content. */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Full-bleed section wrapper: each product section is its own band with its
   own background, separated by background contrast + generous rhythm rather
   than hairline rules. */
.bleed {
  padding: clamp(64px, 9vw, 120px) 0;
}

/* ---------- header ---------- */
/* Sticky, translucent-white bar that stays put as the page scrolls - the
   scroll-driven layout benefits from a persistent way back to the CTAs. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
/* Full-width (not the centered .container): logo hugs the far left, the nav
   (Go to urTRACE + profile) hugs the far right, edge to edge. */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
}
.brand {
  display: block;
  line-height: 0;
}
.brand img {
  height: 30px;
  width: auto;
  display: block;
}
#nav-auth {
  display: flex;
  gap: 10px;
  align-items: center;
}
/* Keep a button's label on one line - otherwise "Go to urTRACE" wraps at
   phone width, and the flex row stretches the shorter "Profile" button to
   match its height (a misshapen tall oval). */
#nav-auth .btn {
  white-space: nowrap;
}

/* Centered "Methods" nav: a dropdown listing the research methods + the
   Variables guide. flex:1 lets it take the middle and centre its trigger
   between the logo and the auth buttons. CSS-only - opens on hover AND keyboard
   focus (:focus-within), with a transparent bridge over the gap so moving the
   cursor onto the menu doesn't close it. Uses the shared theme tokens, so it's
   light on the landing page and follows data-theme on the doc pages. */
.site-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
/* A plain top-level nav tab (e.g. Guides) sitting beside the Methods dropdown -
   same metrics as the dropdown trigger so they read as one row. */
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 6px;
  transition: color 0.14s var(--ease);
}
.nav-link:hover {
  color: var(--accent);
}
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  padding: 8px 6px;
  cursor: pointer;
}
.nav-dropdown-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  opacity: 0.55;
  transition: transform 0.2s var(--ease);
}
.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after {
  transform: rotate(-135deg);
  margin-top: 2px;
}
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 214px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  padding: 6px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.16s var(--ease),
    transform 0.16s var(--ease),
    visibility 0.16s;
  z-index: 60;
}
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s var(--ease);
}
.nav-dropdown-menu a:hover {
  background: var(--hover-bg);
}
.nav-dropdown-variables {
  color: var(--accent);
  font-weight: 600;
}
.nav-dropdown-menu-sep {
  height: 1px;
  background: var(--line);
  margin: 5px 4px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background 0.18s var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: var(--onAccent);
  box-shadow: 0 8px 20px -8px rgba(88, 84, 255, 0.6);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px -8px rgba(88, 84, 255, 0.7);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--faint);
}
.btn-lg {
  padding: 14px 30px;
  font-size: 16px;
}

/* Phone: tighten the header so the logo + both nav buttons flow on one row
   instead of overflowing (which would widen the whole document and clip
   every section on the right). Reclaim gutter, shrink logo + buttons. */
@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
  .header-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  /* Phone: drop the centered Methods dropdown - logo + two auth buttons already
     fill the row. The methods stay reachable from the footer + the /methods
     page. */
  .site-nav {
    display: none;
  }
  .brand img {
    height: 26px;
  }
  #nav-auth {
    gap: 8px;
  }
  #nav-auth .btn {
    padding: 9px 14px;
    font-size: 13px;
  }
  /* Phone: collapse the profile control to just the avatar - the name + arrow
     alongside the logo and "Go to urTRACE" overflowed and overlapped the logo.
     The avatar itself opens the dropdown here (see the landing auth script).
     `#nav-auth` prefix so this outranks the later base `.profile-trigger`
     display rule (equal specificity would otherwise let source order win). */
  #nav-auth .profile-trigger {
    display: none;
  }
}

/* ---------- logged-in profile control ---------- */
/* Injected by the auth-status script when a session is present - mirrors the
   app header's own avatar + name-dropdown (src/components/profile/*), adapted
   to this page's light-only palette. Placement matches the app: top-right,
   with the "Go to urTRACE" button to its left. */
.profile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
}
.profile-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
  overflow: hidden;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.16s var(--ease);
}
.profile-trigger:hover {
  background: var(--hover-bg);
}
.profile-name {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-arrow {
  color: var(--faint);
  font-size: 10px;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  min-width: 172px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.profile-menu[hidden] {
  display: none;
}
.profile-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.14s var(--ease);
}
.profile-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--faint);
}
/* A clear pointer affordance on the dropdown rows. */
.profile-item:hover {
  background: var(--panel2);
}

/* Theme submenu - mirrors the app's ProfileMenu. Opens to the LEFT (the
   control sits at the viewport's right edge). */
.profile-sub {
  position: relative;
}
.profile-item--haschild .profile-caret {
  margin-left: auto;
  color: var(--faint);
  font-size: 15px;
  line-height: 1;
}
.profile-submenu {
  position: absolute;
  top: 0;
  right: calc(100% + 6px);
  min-width: 150px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  box-shadow: var(--shadow);
  z-index: 61;
  display: none;
}
/* Reveal on hover or keyboard focus (not a click). */
.profile-sub:hover > .profile-submenu,
.profile-sub:focus-within > .profile-submenu {
  display: block;
}
/* Invisible bridge across the 6px gap so the pointer can travel from the
   Theme row to the submenu without passing over dead space. */
.profile-submenu::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: 8px;
  height: 100%;
}
.profile-check {
  width: 15px;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.profile-check svg {
  color: var(--accent);
}

/* ---------- hero ---------- */
/* Full-bleed edge-to-edge brand gradient (was a rounded inset card). Same
   fixed, theme-independent palette + scattered shapes as the app's own
   login/signup showcase panel (src/components/auth/AuthShell.jsx), so a
   visitor sees a consistent look between this page and the auth screens. */
.hero {
  position: relative;
  overflow: hidden;
  min-height: min(90vh, 880px);
  display: flex;
  align-items: center;
  padding: 96px 0 120px;
  text-align: center;
  background:
    radial-gradient(120% 90% at 15% 0%, rgba(255, 255, 255, 0.22) 0%, transparent 55%),
    linear-gradient(135deg, #5854ff 0%, #4cc9f0 100%);
  color: #fff;
}
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.shape {
  position: absolute;
  border-radius: 50%;
}
.shape-ring {
  top: 12%;
  left: 8%;
  width: 110px;
  height: 110px;
  border: 12px solid rgba(255, 255, 255, 0.4);
}
.shape-orange {
  top: 6%;
  right: 12%;
  width: 180px;
  height: 180px;
  background: #ff6b4a;
  opacity: 0.9;
}
.shape-yellow {
  top: 40%;
  right: 6%;
  width: 96px;
  height: 96px;
  background: #ffd166;
  opacity: 0.95;
}
.shape-pink {
  bottom: 8%;
  left: 6%;
  width: 170px;
  height: 170px;
  border-radius: 40px;
  background: #f72585;
  opacity: 0.82;
  transform: rotate(18deg);
}
.shape-dot {
  bottom: 20%;
  right: 24%;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.5);
}
/* The shapes' fixed pixel sizes/positions don't scale down with the
   clamp()-sized heading - below ~640px the orange/yellow circles start
   overlapping the headline text, so they're dropped entirely on a narrow
   viewport rather than resized (fewer, corner-hugging shapes reads better
   at that size than smaller versions of all five). */
@media (max-width: 640px) {
  .shape-orange,
  .shape-yellow,
  .shape-dot {
    display: none;
  }
  .shape-ring {
    width: 64px;
    height: 64px;
    top: 5%;
    left: 5%;
  }
  .shape-pink {
    width: 120px;
    height: 120px;
    bottom: 5%;
  }
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.1;
  margin: 0 0 22px;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: #fff;
}
.hero h1 span {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.55);
  text-underline-offset: 7px;
  text-decoration-thickness: 3px;
}
.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(16px, 1.6vw, 19px);
  max-width: 660px;
  margin: 0 auto 34px;
}
.hero .ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn-hero {
  background: #fff;
  color: var(--accent);
  font-size: 16px;
  padding: 14px 30px;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.4);
}
.btn-hero:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 36px -12px rgba(0, 0, 0, 0.45);
}
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  font-size: 16px;
  padding: 14px 30px;
}
.btn-hero-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* A quiet downward cue at the base of the banner, inviting the scroll. */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  z-index: 1;
}
.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  animation: cue 1.6s var(--ease) infinite;
}
@keyframes cue {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  35% {
    opacity: 1;
  }
  70% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 0;
  }
}

/* ---------- section headings ---------- */
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(36px, 5vw, 60px);
}
.eyebrow {
  display: inline-block;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.section-head .lead {
  color: var(--dim);
  font-size: 16px;
  margin: 14px auto 0;
}

/* ---------- features ---------- */
.features-section {
  background: var(--bg);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.feature .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(88, 84, 255, 0.12), rgba(76, 201, 240, 0.12));
  font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 {
  font-size: 16px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 14px;
  color: var(--dim);
  margin: 0;
}

/* ---------- how it works ---------- */
.how-section {
  background: var(--panel);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  max-width: 1000px;
  margin: 0 auto;
}
.step {
  text-align: center;
}
.step .num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 16px;
  font-size: 17px;
  box-shadow: 0 8px 18px -8px rgba(88, 84, 255, 0.6);
}
.step h4 {
  font-size: 15px;
  margin: 0 0 6px;
}
.step p {
  font-size: 14px;
  color: var(--dim);
  margin: 0;
}

/* ---------- byoc callout ---------- */
/* Pricing (public/pricing.js fills #pricing-grid at runtime; the section stays
   `hidden` on a deployment with no prices set). Reuses the feature grid's card
   language rather than inventing a second one. */
.pricing-section {
  background: var(--bg);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-card--popular {
  border-color: var(--accent, #22d3ee);
}
.price-badge {
  position: absolute;
  top: -11px;
  left: 26px;
  background: var(--accent, #22d3ee);
  color: #05202a;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
}
.price-name {
  font-size: 15px;
  font-weight: 700;
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price-amount strong {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.price-amount span {
  color: var(--dim);
  font-size: 14px;
}
/* Line-through PLUS a dimmed colour and a smaller size: the strikethrough is
   what carries the meaning, so it must not rely on hue alone. */
.price-was {
  color: var(--dim);
  font-size: 18px;
  text-decoration: line-through;
}
.price-save {
  color: #4ade80;
  font-size: 13px;
  font-weight: 600;
  margin-top: -4px;
}
.price-tagline {
  color: var(--dim);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}
.price-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  flex: 1;
}
.price-rows li::before {
  content: "✓";
  color: var(--accent, #22d3ee);
  margin-right: 8px;
}
.price-card .btn {
  margin-top: 6px;
  text-align: center;
}

.byoc-section {
  background: var(--bg);
}
.byoc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
}
.byoc .text {
  flex: 1 1 340px;
}
.byoc h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.byoc p {
  color: var(--dim);
  font-size: 15px;
  margin: 0;
}
.byoc .badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.1em;
  font-family: ui-monospace, monospace;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 12px;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--panel);
  border-top: 1px solid var(--line);
}
/* Sectioned footer: a brand blurb + link columns (Product / Support / Legal),
   then a thin bottom bar with the copyright + operator. */
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding: 48px 24px 28px;
}
.footer-logo-link {
  display: inline-block;
  margin-bottom: 12px;
}
.footer-logo {
  height: 26px;
  width: auto;
  display: block;
}
.footer-brand-tag {
  color: var(--faint);
  font-size: 13px;
  line-height: 1.5;
  max-width: 260px;
  margin: 0;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 2px;
}
.footer-col a {
  color: var(--faint);
  font-size: 13px;
  text-decoration: none;
}
.footer-col a:hover {
  color: var(--accent);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 12px;
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 20px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- scroll reveal ---------- */
/* Only active when JS is present (the .js gate is set before first paint) -
   a no-JS visitor never has anything hidden. Each element fades/rises as it
   enters the viewport, staggered by its --i within a group. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect a visitor's reduced-motion preference - show everything at rest,
   with none of the reveal, hover-lift, or scroll-cue motion. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .feature,
  .profile-trigger,
  .profile-item {
    transition: none;
  }
  .btn:hover,
  .feature:hover,
  .btn-hero:hover {
    transform: none;
  }
  .scroll-cue span {
    animation: none;
  }
}
