/* === Tokens — "Backstage / After Dark" === */
:root {
  color-scheme: dark;

  /* Warm near-black canvas (deeper than the app, for cinematic drama) */
  --bg:        #0c0b08;
  --bg-alt:    #110f0a;
  --surface:   #181510;
  --surface-2: #201c15;
  --border:    #2a261d;
  --border-lit:#3a352a;

  /* Warm off-white text on dark */
  --text:      #f4efe4;
  --text-muted:#a89f8e;
  --text-dim:  #6f685a;

  /* Stage-lighting accents — the app's schedule-card trio */
  --venue:  #6571ee;  /* Kippy Periwinkle — also used as --accent. See docs/BRAND.md */
  --hotel:  #b98cf0;  /* violet  */
  --flight: #f0a45a;  /* amber   */

  --accent: var(--venue);
  --accent-hover: #8b96ff;                  /* lifted Periwinkle (matches app color10 dark) */
  --accent-tint: rgba(101, 113, 238, 0.12); /* Periwinkle @12% */
  --accent-on-dark: #0b0a14;
  --navy: #1a1d4a;                          /* Kippy Navy — see docs/BRAND.md */

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px -8px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 40px 80px -24px rgba(0, 0, 0, 0.7);

  --nav-bg: rgba(12, 11, 8, 0.6);

  --font-display: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.22, 0.7, 0.2, 1);
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* Emphasis stays monochrome — no italics, no accent color */
em { font-style: normal; }

::selection { background: rgba(101, 113, 238, 0.3); color: #fff; }

/* === Ambient background: stage-light aurora + film grain === */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}
.aurora::before,
.aurora::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.aurora::before {
  width: 60vw; height: 60vw;
  top: -22vw; left: -12vw;
  background: radial-gradient(circle at center, rgba(101, 113, 238, 0.55), transparent 70%);
  animation: drift1 22s var(--ease) infinite alternate;
}
.aurora::after {
  width: 55vw; height: 55vw;
  top: 8vw; right: -16vw;
  background: radial-gradient(circle at center, rgba(185,140,240,0.45), transparent 70%);
  animation: drift2 26s var(--ease) infinite alternate;
}
@keyframes drift1 {
  to { transform: translate3d(14vw, 10vh, 0) scale(1.15); }
}
@keyframes drift2 {
  to { transform: translate3d(-12vw, 16vh, 0) scale(1.1); }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* === Scroll progress === */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--venue), var(--hotel));
  z-index: 300;
}

/* === Skip link === */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--accent-on-dark);
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  z-index: 400;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

/* === Layout === */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === Nav === */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  /* Readable by default — works with no JS and on pages without the scroll handler */
  background: var(--nav-bg);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
}
/* JS adds .at-top at the top of the landing hero for the transparent look */
.nav.at-top {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.6px;
}
.nav-logo-dot { color: var(--navy); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-login {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s;
}
.nav-login:hover { color: var(--text); }

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.15s;
}
.nav-link:hover { color: var(--text); }

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-right: -9px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav.menu-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.menu-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === Buttons === */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  border: 1.5px solid transparent;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px -4px rgba(101, 113, 238, 0.4);
}
/* sheen sweep */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: var(--accent-hover);
  box-shadow: 0 8px 20px -6px rgba(101, 113, 238, 0.5);
}
.btn-primary:hover::after { left: 130%; }
.btn-primary:active { transform: translateY(0) scale(0.99); }

.btn-sm { padding: 9px 18px; font-size: 14px; border-radius: 10px; }

/* === Eyebrow === */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(101, 113, 238,0.2);
  padding: 7px 14px;
  border-radius: 30px;
  margin-bottom: 22px;
}

/* === Reveal-on-scroll === */
/* Only hide when JS is active (html.js); without scripting, content stays visible */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  will-change: opacity, transform;
}
.js .reveal.in { opacity: 1; transform: none; }

/* === Hero === */
.hero {
  padding: 110px 0 80px;
  position: relative;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 52px;
}

.hero-head h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.6vw, 64px);
  font-weight: 800;
  letter-spacing: -1.8px;
  line-height: 1.02;
  margin: 0 0 18px;
}

.hero-head .subline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .nav .container { padding: 0 16px; }
  .nav-toggle { display: flex; }
  /* Links collapse into a dropdown panel below the header. Kept in the DOM
     (not display:none) so it can slide + fade in when opened. */
  .nav-actions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 16px 16px;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-22px);
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav-actions.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    /* slight overshoot on the way in for a touch of pop */
    transition: opacity 0.3s var(--ease), transform 0.34s cubic-bezier(0.34, 1.42, 0.55, 1), visibility 0s;
  }
  .nav-link, .nav-login { width: 100%; padding: 12px 6px; font-size: 16px; }
  .nav .btn-sm { width: 100%; padding: 13px; font-size: 16px; margin-top: 4px; }
  .hero { padding: 72px 0 56px; }
  .hero-head { margin-bottom: 40px; }
  .hero-head .subline { font-size: 16px; }
}

/* === Hero mock: inbox → schedule (the before / after) === */
.hero-mock {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  justify-items: stretch;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 720px) {
  .hero-mock {
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
  }
}

.mock-schedule {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-lit);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
  will-change: transform;
}

/* Light-mode mobile email — the source you forward in */
.mock-email {
  background: #ffffff;
  border: 1px solid #e3e3e8;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  min-width: 0;
  will-change: transform;
  color: #1c1c1e;
  font-family: var(--font-body);
}
.mock-email-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #f6f6f8;
  border-bottom: 1px solid #e3e3e8;
  color: #0a84ff;
  font-size: 13px;
  font-weight: 500;
}
.mock-email-back { display: inline-flex; align-items: center; gap: 4px; }
.mock-email-back svg { width: 15px; height: 15px; }
.mock-email-actions { display: inline-flex; align-items: center; gap: 16px; }
.mock-email-actions svg { width: 17px; height: 17px; }

.mock-email-body {
  padding: 16px 18px 20px;
  position: relative;
  overflow: hidden;
}

/* scanning sweep implying the parse — top % so it spans any height */
.mock-scan {
  position: absolute;
  left: 0; right: 0;
  top: -12%;
  height: 46px;
  background: linear-gradient(180deg, rgba(101, 113, 238,0.22), transparent);
  border-bottom: 1px solid rgba(101, 113, 238,0.6);
  animation: scan 3.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes scan {
  0%   { top: -12%; opacity: 0; }
  12%  { opacity: 1; }
  70%  { opacity: 1; }
  90%  { top: 100%; opacity: 0; }
  100% { top: 100%; opacity: 0; }
}

.mock-email-subject {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #1c1c1e;
  margin-bottom: 14px;
}
.mock-email-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ececf0;
}
.mock-email-av {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f8cff, #2b6fff);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.mock-email-from { display: flex; flex-direction: column; line-height: 1.3; }
.mock-email-name { font-size: 14px; font-weight: 600; color: #1c1c1e; }
.mock-email-sub { font-size: 12px; color: #8a8a8e; }
.mock-email-text { font-size: 13px; line-height: 1.6; color: #3a3a3c; }
.mock-email-text p { margin-bottom: 10px; }
.mock-email-text p:last-child { margin-bottom: 0; }

.hero-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transform: rotate(90deg);
  animation: arrowPulse 2.4s var(--ease) infinite;
}
@media (min-width: 720px) {
  .hero-arrow { transform: none; animation: arrowPulseH 2.4s var(--ease) infinite; }
}
@keyframes arrowPulse {
  0%,100% { transform: rotate(90deg) translateX(0); opacity: 0.7; }
  50%     { transform: rotate(90deg) translateX(5px); opacity: 1; }
}
@keyframes arrowPulseH {
  0%,100% { transform: translateX(0); opacity: 0.7; }
  50%     { transform: translateX(6px); opacity: 1; }
}

.mock-schedule {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mock-sched-header {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  padding: 4px 6px 6px;
}

.mock-sched-card {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  opacity: 0;
  animation: cardIn 0.6s var(--ease) forwards;
}
.mock-schedule .mock-sched-card:nth-child(2) { animation-delay: 0.5s; }
.mock-schedule .mock-sched-card:nth-child(3) { animation-delay: 0.7s; }
.mock-schedule .mock-sched-card:nth-child(4) { animation-delay: 0.9s; }
@keyframes cardIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}

.mock-sched-bar { width: 4px; flex-shrink: 0; }

.accent-venue  .mock-sched-bar { background: var(--venue);  box-shadow: 0 0 12px var(--venue); }
.accent-hotel  .mock-sched-bar { background: var(--hotel);  box-shadow: 0 0 12px var(--hotel); }
.accent-flight .mock-sched-bar { background: var(--flight); box-shadow: 0 0 12px var(--flight); }

.mock-sched-content { padding: 11px 14px; flex: 1; min-width: 0; }
.mock-sched-title { font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.mock-sched-sub { font-size: 12px; color: var(--text-muted); }

/* === Section headings (shared) === */
.network h2,
.showcase h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.05;
  text-align: center;
  margin-bottom: 14px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 17px;
  max-width: 600px;
  margin: 0 auto 56px;
}

/* === Showcase === */
.showcase { padding: 90px 0 100px; overflow: hidden; }

.showcase-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}
@media (min-width: 900px) {
  .showcase-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.showcase-copy h2 { text-align: left; }
.showcase-sub { text-align: left; margin: 0; }

.showcase-phone {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.showcase-glow {
  position: absolute;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(101, 113, 238,0.35), transparent 65%);
  filter: blur(50px);
  z-index: 0;
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  background: rgba(24,21,16,0.85);
  border: 1px solid var(--border-lit);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  width: 190px;
  will-change: transform;
}
.float-card--a { top: 8%; left: -4%; }
.float-card--b { bottom: 12%; right: -6%; }
@media (max-width: 520px) {
  .float-card { display: none; }
}

/* === Phone bezel === */
.phone {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 300px;
  will-change: transform;
}
.phone-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  background: #08070a;
  border-radius: 40px;
  padding: 8px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08) inset,
    0 50px 90px -28px rgba(0, 0, 0, 0.8),
    0 0 60px -10px rgba(101, 113, 238,0.25);
  overflow: hidden;
}
.phone-notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 18px;
  background: #000;
  border-radius: 12px;
  z-index: 2;
}
.phone-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  object-fit: cover;
  background: var(--bg-alt);
}

/* === Network / jobs === */
.network { padding: 90px 0; }

.network-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .network-inner { grid-template-columns: 1fr 1fr; gap: 56px; }
}
.network-copy h2 { text-align: left; }
.network-sub { text-align: left; margin: 0; }

.network-visual { display: flex; justify-content: center; }
@media (min-width: 900px) { .network-visual { justify-content: flex-end; } }

.net-card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-lit);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 22px 22px 18px;
}
.net-role { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.net-meta { font-size: 13.5px; color: var(--text-muted); margin-top: 2px; }

.net-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 0 16px;
}
.net-avatars { display: flex; }
.net-avatars span {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #1a1d4a);
  border: 2px solid var(--surface);
  margin-left: -8px;
}
.net-avatars span:first-child { margin-left: 0; }
.net-avatars .net-more { background: var(--surface-2); color: var(--text-muted); }
.net-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(101, 113, 238,0.3);
  padding: 5px 12px;
  border-radius: 30px;
}
.net-reshare {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.net-toggle {
  width: 38px; height: 22px;
  border-radius: 20px;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.net-knob {
  position: absolute;
  top: 3px; right: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
}

/* === FAQ === */
.faq { padding: 90px 0 140px; }

.faq-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.faq-copy { text-align: left; }
.faq-copy h2 { text-align: left; margin: 0; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-lit); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
  line-height: 1;
}
.faq-item[open] summary::after { content: "−"; }

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}
.faq-answer p { margin: 0; }

/* === Footer === */
.footer {
  padding: 30px 0;
  border-top: 1px solid var(--border);
  background: rgba(0,0,0,0.25);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

/* === Reduced motion === */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .aurora::before, .aurora::after,
  .mock-scan, .hero-arrow,
  .mock-sched-card { animation: none !important; }
  .mock-sched-card { opacity: 1 !important; }
  [data-parallax] { transform: none !important; }
  /* Mobile menu: skip the slide; just show/hide */
  .nav-actions { transition: none !important; transform: none !important; }
}

/* === Legal pages (privacy / terms) === */
.legal-content {
  padding: 64px 0 96px;
  max-width: 760px;
  margin: 0 auto;
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1.4px;
  margin-bottom: 8px;
}
.legal-content .legal-meta {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 32px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  letter-spacing: 0.2px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  margin: 48px 0 12px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  letter-spacing: -0.4px;
  scroll-margin-top: 88px;
}
.legal-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 40px; }
.legal-content h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 24px 0 8px;
  scroll-margin-top: 88px;
}
.legal-content p,
.legal-content li {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.legal-content ul, .legal-content ol { padding-left: 24px; margin-bottom: 16px; }
.legal-content a { color: var(--accent); text-decoration: underline; }

/* In-page jump list (collapsible) */
.legal-toc {
  margin: 8px 0 40px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
}
.legal-toc > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.2px;
}
.legal-toc > summary::-webkit-details-marker { display: none; }
.legal-toc > summary::after {
  content: '+';
  font-size: 18px;
  color: var(--text-muted);
  transition: transform 200ms var(--ease);
}
.legal-toc[open] > summary { border-bottom: 1px solid var(--border); }
.legal-toc[open] > summary::after { content: '−'; }
.legal-toc ol {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  columns: 2;
  column-gap: 24px;
}
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }
.legal-toc li { margin: 0; padding: 0; break-inside: avoid; }
.legal-toc a {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.legal-toc a:hover { color: var(--text); background: var(--bg-alt); }

/* Pull-quote callout for legally meaningful sentences (liability cap, beta status) */
.legal-content .legal-callout {
  margin: 16px 0 20px;
  padding: 16px 18px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--flight);
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.55;
}
.legal-content .legal-callout p { margin: 0; color: var(--text); }
.legal-content .legal-callout strong { color: var(--text); }

/* Prohibition list — same disc, but a subtle marker hint */
.legal-content ul.dont-list { list-style: none; padding-left: 0; }
.legal-content ul.dont-list li {
  position: relative;
  padding-left: 26px;
}
.legal-content ul.dont-list li::before {
  content: '✕';
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.7;
}


/* Legal tables (third-party service providers, etc.) */
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
}
.legal-content thead { background: var(--bg-alt); }
.legal-content th {
  text-align: left;
  font-weight: 700;
  color: var(--text);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-lit);
  letter-spacing: 0.2px;
}
.legal-content td {
  padding: 14px 16px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
  margin-bottom: 0;
}
.legal-content tbody tr:first-child td { border-top: 0; }
.legal-content td:first-child { color: var(--text); font-weight: 600; width: 22%; }
@media (max-width: 640px) {
  .legal-content table { display: block; overflow-x: auto; }
  .legal-content table thead,
  .legal-content table tbody { display: table; width: 100%; min-width: 560px; }
}

.legal-content caption {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* === Support page === */
.support-content {
  padding: 64px 0 96px;
  max-width: 820px;
  margin: 0 auto;
}
.support-head { text-align: center; margin-bottom: 48px; }
.support-head .eyebrow { margin-bottom: 18px; }
.support-head h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.06;
  margin-bottom: 14px;
}
.support-head p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
}

.support-section { margin-top: 56px; }
.support-section > h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.support-section > .support-section-sub {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 24px;
}

.support-contact-fallback {
  margin: 56px 0 0;
  font-size: 14px;
  color: var(--text-dim);
  text-align: center;
}
.support-contact-fallback a { color: var(--text-muted); text-decoration: underline; }
.support-contact-fallback a:hover { color: var(--text); }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.faq-item[open] { box-shadow: var(--shadow-sm); border-color: var(--accent); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary:hover { color: var(--accent); }
.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
.faq-answer a { color: var(--accent); text-decoration: underline; }
.faq-answer p { margin-bottom: 10px; }
.faq-answer p:last-child { margin-bottom: 0; }

.deletion-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 26px;
}
.deletion-card + .deletion-card { margin-top: 16px; }
.deletion-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.deletion-card .lead { font-size: 14.5px; color: var(--text-muted); margin-bottom: 16px; }
.deletion-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.deletion-steps li {
  counter-increment: step;
  position: relative;
  padding-left: 40px;
  font-size: 15px;
  line-height: 1.7;
  min-height: 28px;
}
.deletion-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.deletion-note {
  margin-top: 18px;
  padding: 16px 18px;
  background: var(--surface);
  border-radius: 12px;
  border: 1px solid var(--border);
}
.deletion-note p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.deletion-note strong { color: var(--text); }
.deletion-note a { color: var(--accent); text-decoration: underline; }

/* === Pricing page === */
.pricing-content {
  padding: 64px 0 96px;
  max-width: 920px;
  margin: 0 auto;
}
.pricing-head { text-align: center; margin-bottom: 48px; }
.pricing-head .eyebrow { margin-bottom: 18px; }
.pricing-head h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 800;
  letter-spacing: -1.6px;
  line-height: 1.06;
  margin-bottom: 14px;
}
.pricing-head p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: stretch;
}
@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
}
.pricing-card--featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-tint), var(--surface) 60%);
  box-shadow: var(--shadow-md);
}
.pricing-card-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 8px;
}
.pricing-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  background: var(--accent-tint);
  border: 1px solid rgba(101, 113, 238, 0.2);
  padding: 4px 10px;
  border-radius: 30px;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.1;
}
.pricing-price-unit { font-size: 16px; font-weight: 600; color: var(--text-muted); }
.pricing-price-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 4px;
  min-height: 20px;
}
.pricing-tagline {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 16px 0 20px;
}
.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-features li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.pricing-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}
.pricing-card .btn-primary,
.pricing-card .btn-secondary { margin-top: auto; width: 100%; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid var(--border-lit);
  background: transparent;
  color: var(--text);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, transform 0.18s var(--ease);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0) scale(0.99); }

.pricing-faq { margin-top: 72px; }
.pricing-faq h2 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 24px;
}
.pricing-faq .faq-list { max-width: 720px; margin: 0 auto; }

