/* ============================================================================
   Fit First — website theme
   Dark by default (brand), with a light mode via [data-theme="light"].
   Glassmorphism + soft shadows + scroll-reveal animations.
   NOTE: the auth pages (reset-password / email-confirmed / email-changed) and
   the legal pages reuse the shared classes below (.card, .field, .btn, .msg,
   .icon, .legal, .nav, .footer …). Those class names + behaviours are load-
   bearing for reset.js / auth-result.js — keep them.
   ========================================================================== */

/* ---- Theme tokens ---- */
:root {
  --bg: #0B0A08;
  --bg-2: #100F0E;
  --text: #EDE9E0;
  --text-dim: #C9C3B8;
  --text-muted: #9A948A;

  --surface: rgba(21, 20, 18, 0.65);
  --surface-2: rgba(255, 255, 255, 0.04);
  --surface-solid: #151412;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Brand gold (token names kept as --orange* so existing usages don't change) */
  --orange: #ffc107;
  --orange-2: #ffd34d;
  --orange-deep: #4a3a00;
  --orange-soft: rgba(255, 193, 7, 0.14);
  --glow: rgba(255, 193, 7, 0.42);
  --on-orange: #120C00; /* dark text/icon on the bright gold fill */
  --rose: #f43f5e;

  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.75);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, 0.6);
  --blur: 18px;

  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 30px;
  --maxw: 1140px;
}

[data-theme="light"] {
  --bg: #ece7db;
  --bg-2: #e0dacb;
  --text: #231e14;
  --text-dim: #4a4434;
  --text-muted: #7a7361;

  --surface: rgba(255, 252, 245, 0.62);
  --surface-2: rgba(255, 252, 245, 0.55);
  --surface-solid: #fffdf7;
  --border: rgba(40, 30, 10, 0.10);
  --border-strong: rgba(40, 30, 10, 0.16);

  /* Deeper gold in light mode so it stays readable as text/links on a light bg */
  --orange: #9a7400;
  --orange-2: #b8860b;
  --orange-soft: rgba(255, 193, 7, 0.16);
  --glow: rgba(255, 193, 7, 0.28);
  --on-orange: #fffaf0; /* light text on the deeper light-mode gold */

  --shadow: 0 24px 60px -30px rgba(17, 24, 39, 0.28);
  --shadow-sm: 0 10px 26px -16px rgba(17, 24, 39, 0.22);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}
a {
  color: inherit;
  text-decoration: none;
}

/* ---- Ambient aurora background ---- */
body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  width: 60vw;
  height: 60vw;
  max-width: 760px;
  max-height: 760px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.5;
  pointer-events: none;
}
body::before {
  top: -18vw;
  right: -12vw;
  background: radial-gradient(circle, var(--glow), transparent 65%);
  animation: drift1 18s ease-in-out infinite alternate;
}
body::after {
  bottom: -22vw;
  left: -14vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.28), transparent 65%);
  animation: drift2 22s ease-in-out infinite alternate;
}
[data-theme="light"] body::before {
  opacity: 0.35;
}
[data-theme="light"] body::after {
  opacity: 0.25;
}
@keyframes drift1 {
  to {
    transform: translateY(40px) scale(1.15);
  }
}
@keyframes drift2 {
  to {
    transform: translateY(-40px) scale(1.1);
  }
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.4px;
}
.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 16px 2px var(--glow);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 26px 5px var(--glow);
  }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links > a:not(.nav-cta) {
  color: var(--text-muted);
  padding: 8px 6px;
  transition: color 0.15s ease;
}
.nav-links > a:not(.nav-cta):hover {
  color: var(--text);
}
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-orange) !important;
  font-weight: 600;
  box-shadow: 0 8px 20px -8px var(--glow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.nav-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 26px -8px var(--glow);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease,
    background-color 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--orange);
  transform: translateY(-1px);
}
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* ---- Layout ---- */
.main {
  flex: 1;
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
}

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}
.reveal[data-delay="1"] {
  transition-delay: 0.08s;
}
.reveal[data-delay="2"] {
  transition-delay: 0.16s;
}
.reveal[data-delay="3"] {
  transition-delay: 0.24s;
}
.reveal[data-delay="4"] {
  transition-delay: 0.32s;
}
.reveal[data-delay="5"] {
  transition-delay: 0.4s;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 92px 16px 48px;
  position: relative;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 26px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 10px 1px var(--glow);
}
.hero h1 {
  font-size: clamp(42px, 8vw, 78px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.02;
}
.hero h1 .accent {
  background: linear-gradient(120deg, var(--orange), var(--orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  margin: 24px auto 0;
  max-width: 580px;
  font-size: 18px;
  color: var(--text-dim);
}

/* ---- Store buttons ---- */
.store-badges {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  padding: 11px 22px 11px 18px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #0c0c0f;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.store-btn:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 20px 40px -18px var(--glow);
}
.store-btn svg {
  width: 27px;
  height: 27px;
  fill: #fff;
}
.store-btn .labels {
  display: flex;
  flex-direction: column;
  line-height: 1.12;
  text-align: left;
}
.store-btn .sub {
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #a8a8b3;
}
.store-btn .main {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

/* ---- Phone mockup (CSS only) ---- */
.hero-stage {
  margin: 56px auto 0;
  display: flex;
  justify-content: center;
  perspective: 1400px;
}
.phone {
  width: 268px;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, #1c1c20, #0a0a0c);
  border: 1px solid var(--border-strong);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
[data-theme="light"] .phone {
  background: linear-gradient(160deg, #2a2a30, #141417);
}
.phone-screen {
  border-radius: 32px;
  background: linear-gradient(180deg, #0c0c0f, #121216);
  padding: 18px 16px;
  min-height: 460px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.phone-notch {
  width: 92px;
  height: 22px;
  background: #000;
  border-radius: 0 0 14px 14px;
  margin: -18px auto 14px;
}
.screen-title {
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.screen-title span {
  color: var(--orange-2);
  font-size: 12px;
}

/* Mini visuals inside the phone / panels */
.viz-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.viz-card h4 {
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.viz-card h4 b {
  color: #fff;
  font-size: 13px;
}
.chart {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  height: 70px;
}
.chart i {
  flex: 1;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  border-radius: 5px 5px 2px 2px;
  opacity: 0.9;
}
.rings {
  display: flex;
  gap: 10px;
}
.ring {
  flex: 1;
  text-align: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 6px;
}
.ring .num {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}
.ring .lbl {
  color: #a1a1aa;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.ring .num.o {
  color: var(--orange-2);
}

/* ---- Sections ---- */
.section {
  padding: 72px 0 24px;
}
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 44px;
}
.section-head h2 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -1.2px;
}
.section-head .lead {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 17px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(248px, 1fr));
}
.feature-card {
  position: relative;
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-strong),
    transparent
  );
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}
.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-soft);
  border: 1px solid var(--border);
  margin-bottom: 18px;
}
.feature-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
}
.feature-card p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Showcase rows (alternating) ---- */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 64px 0;
}
.showcase.flip .showcase-visual {
  order: -1;
}
.showcase-text .tag {
  color: var(--orange);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.showcase-text h3 {
  margin-top: 12px;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.8px;
}
.showcase-text p {
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
}
.checklist {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checklist li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-dim);
  font-size: 15px;
}
.checklist .ck {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.checklist .ck svg {
  width: 13px;
  height: 13px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.showcase-visual {
  display: flex;
  justify-content: center;
}
.panel {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  padding: 22px;
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

/* Workout session rows */
.set-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 14px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}
.set-row .l {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 14px;
}
.set-row .idx {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.set-row .r {
  color: var(--text-muted);
  font-size: 13px;
}
.timer {
  text-align: center;
  font-weight: 800;
  font-size: 34px;
  letter-spacing: 1px;
  margin: 6px 0 14px;
}
.timer .accent {
  color: var(--orange);
}

/* Social feed preview */
.post {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: 12px;
}
.post .av {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--orange-2), var(--orange-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}
.post .who {
  font-weight: 700;
  font-size: 14px;
}
.post .when {
  color: var(--text-muted);
  font-size: 12px;
}
.post .body {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 14px;
}
.post .meta {
  margin-top: 10px;
  display: flex;
  gap: 18px;
  color: var(--text-muted);
  font-size: 12px;
}
.post .meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.post .meta svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ---- Stats band ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 36px 0;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--blur));
  backdrop-filter: blur(var(--blur));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.stat {
  text-align: center;
}
.stat b {
  display: block;
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(120deg, var(--orange), var(--orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat span {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- CTA band ---- */
.cta-band {
  margin: 72px 0 8px;
  padding: 64px 32px;
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(140%);
  backdrop-filter: blur(var(--blur)) saturate(140%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
/* soft glow orb behind the CTA (matches the card aesthetic) */
.cta-band::before {
  content: "";
  position: absolute;
  top: -45%;
  left: 50%;
  width: 540px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--glow), transparent 65%);
  opacity: 0.5;
  filter: blur(50px);
  pointer-events: none;
}
/* hairline top highlight, same as the feature cards */
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-strong),
    transparent
  );
}
.cta-band > * {
  position: relative;
  z-index: 1;
}
.cta-band .eyebrow {
  margin-bottom: 18px;
}
.cta-band h2 {
  font-size: clamp(30px, 5.2vw, 46px);
  font-weight: 800;
  letter-spacing: -1.4px;
}
.cta-band h2 .accent {
  background: linear-gradient(120deg, var(--orange), var(--orange-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cta-band p {
  margin: 14px auto 0;
  max-width: 470px;
  color: var(--text-dim);
}
.cta-band .store-badges {
  margin-top: 30px;
}

/* ============================================================================
   AUTH CARDS — used by reset-password / email-confirmed / email-changed.
   (reset.js + auth-result.js toggle .icon--error / .msg--error / .msg--ok and
   set .style.display on #loading / #reset-form — keep these names.)
   ========================================================================== */
.center-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 64vh;
  padding: 32px 0;
}
.card {
  position: relative;
  width: 100%;
  max-width: 430px;
  padding: 42px 30px;
  text-align: center;
  border-radius: var(--radius-xl);
  background: var(--surface);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(150%);
  backdrop-filter: blur(var(--blur)) saturate(150%);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  background: var(--orange-soft);
  border: 1px solid var(--border);
  box-shadow: 0 0 30px -6px var(--glow);
}
.icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--orange);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--error {
  background: rgba(244, 63, 94, 0.14);
  box-shadow: 0 0 30px -6px rgba(244, 63, 94, 0.5);
}
.icon--error svg {
  stroke: var(--rose);
}
.card h1 {
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.card > p {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 15px;
}
.hint {
  margin-top: 26px;
  font-size: 12px;
  letter-spacing: 1.6px;
  color: var(--text-muted);
}

/* Form */
.field {
  text-align: left;
  margin-top: 18px;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-soft);
}
/* Show/hide password toggle (reset page) */
.pw-wrap {
  position: relative;
}
.pw-wrap input {
  padding-right: 48px;
}
.pw-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 10px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.pw-toggle:hover {
  color: var(--text);
  background: var(--surface-2);
}
.pw-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pw-toggle .eye-off {
  display: none;
}
.pw-wrap.is-visible .pw-toggle .eye {
  display: none;
}
.pw-wrap.is-visible .pw-toggle .eye-off {
  display: block;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 22px;
  padding: 15px 18px;
  border: none;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--on-orange);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 26px -10px var(--glow);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}
.btn:disabled {
  background: var(--orange-deep);
  color: var(--orange-soft);
  cursor: not-allowed;
  filter: none;
  transform: none;
  box-shadow: none;
}
.msg {
  margin-top: 14px;
  font-size: 14px;
  min-height: 20px;
  color: var(--text-muted);
}
.msg--error {
  color: var(--rose);
}
.msg--ok {
  color: var(--orange);
}

/* ============================================================================
   LEGAL / long-form pages (privacy / terms / delete-account)
   ========================================================================== */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 0 8px;
}
.legal h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
}
.legal .updated {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 8px;
}
.legal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-top: 36px;
}
.legal p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.75;
  margin-top: 12px;
}
.legal ul,
.legal ol {
  margin-top: 12px;
  padding-left: 22px;
  color: var(--text-dim);
}
.legal li {
  font-size: 15px;
  line-height: 1.75;
  margin-top: 8px;
}
.legal a {
  color: var(--orange);
}
.legal strong {
  color: var(--text);
}
.note {
  background: var(--surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-left: 3px solid var(--orange);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 56px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.footer-links a:hover {
  color: var(--orange);
}

/* ============================================================================
   v2 — anchor offset, typewriter, cursor spotlight, richer feature cards.
   (Appended late so it overrides earlier equal-specificity rules.)
   ========================================================================== */

/* Anchored sections land BELOW the sticky nav (fixes #download / #features). */
[id] {
  scroll-margin-top: 96px;
}

/* Typewriter caret */
.tw-wrap {
  white-space: nowrap;
}
.caret {
  display: inline-block;
  width: 3px;
  height: 0.86em;
  margin-left: 5px;
  vertical-align: -0.06em;
  border-radius: 2px;
  background: var(--orange);
  box-shadow: 0 0 12px var(--glow);
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Cursor spotlight (mouse-follow glow) */
.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 0%),
    var(--orange-soft),
    transparent 62%
  );
  pointer-events: none;
}
.spotlight:hover::after {
  opacity: 1;
}

/* Richer, larger feature cards (less "list-like") with glow + icon motion */
.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 30px 26px;
}
.feature-card h3 {
  font-size: 19px;
}
.feature-card .feature-icon {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature-card:hover {
  transform: translateY(-7px);
  border-color: var(--orange);
  box-shadow: var(--shadow), 0 30px 60px -30px var(--glow);
}
.feature-card:hover .feature-icon {
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 26px -4px var(--glow);
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 44px 0;
  }
  .showcase.flip .showcase-visual {
    order: 0;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 26px;
  }
}
@media (max-width: 560px) {
  .nav,
  .footer-inner,
  .main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hero {
    padding-top: 64px;
  }
  .card {
    padding: 32px 22px;
  }
  .nav-links {
    gap: 8px;
    font-size: 14px;
  }
  .nav-links > a.hide-sm {
    display: none;
  }
}

/* ---- Accessibility: respect reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
