/* ════════════════════════════════════════════════════════════════════
   RONDA · LANDING
   Editorial-clinical aesthetic. The Four Greens (#006241). Shift pastels.
   Light + dark themes via [data-theme]. Shift pastels are theme-invariant.
   ════════════════════════════════════════════════════════════════════ */

/* ─── theme tokens ───────────────────────────────────────────────────── */
:root {
  /* Shift palette — FIXED in both themes (the identity of the data) */
  --m-bg: #b5e2dd;  --m-fg: #0a4f4d;
  --a-bg: #fbd9b1;  --a-fg: #6b3e0f;
  --n-bg: #c8cfeb;  --n-fg: #1f2a5c;
  --l-bg: #eef3f3;  --l-fg: #6e8893;
  --v-bg: #f4cdd8;  --v-fg: #7a2a45;

  /* Type */
  --f-ui:      'Hanken Grotesk', -apple-system, system-ui, sans-serif;
  --f-display: 'Bricolage Grotesque', 'Hanken Grotesk', sans-serif;
  --f-serif:   'Fraunces', 'Times New Roman', serif;
  --f-mono:    'Geist Mono', ui-monospace, monospace;

  /* Rhythm */
  --r-sm:  6px;  --r-md:  8px;  --r-lg: 12px;
  --r-xl: 16px;  --r-2xl: 24px; --r-full: 9999px;

  --pad-page: clamp(20px, 4vw, 56px);
  --max-w:    1240px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ── LIGHT ─────────────────────────────────────────────────────────────── */
:root, [data-theme="light"] {
  --ink:           #0a0a0a;
  --slate:         #3a3a3c;
  --steel:         #5a5a5c;
  --stone:         #888888;
  --muted:         #a8a8aa;

  --canvas:        #ffffff;
  --surface:       #f7f7f7;
  --surface-soft:  #fafafa;
  --hairline:      #e6e6e6;

  --brand:         #006241;   /* Starbucks Green — primary */
  --brand-deep:    #00754A;   /* Green Accent — CTAs */
  --brand-dark:    #1E3932;   /* House Green */
  --brand-em:      #006241;   /* serif-italic accent color */
  --brand-tint:    #eef7f2;
  --brand-soft:    #d4e9e2;

  --band:          #1E3932;   /* full-bleed dark band (Nómina) */
  --band-panel:    #ffffff;   /* card on the band */

  --on-brand:      #ffffff;
  --glow-1:        color-mix(in srgb, var(--brand) 26%, transparent);
  --glow-2:        color-mix(in srgb, var(--n-bg) 60%, transparent);

  --card-bg:       #ffffff;
  --card-shadow:   0 18px 40px -22px rgba(15,40,30,.22);
  --grain-blend:   multiply;
  --grain-op:      .04;

  color-scheme: light;
}

/* ── DARK ──────────────────────────────────────────────────────────────── */
[data-theme="dark"] {
  --ink:           #f4f5f3;
  --slate:         #c4c8c4;
  --steel:         #9aa09a;
  --stone:         #7c827c;
  --muted:         #5a605a;

  --canvas:        #07100c;   /* near-black with a green undertone */
  --surface:       #0e1813;
  --surface-soft:  #0b140f;
  --hairline:      #1d2a23;

  --brand:         #34c98a;   /* brighter green — legible on dark */
  --brand-deep:    #2bb178;
  --brand-dark:    #0f2a1f;
  --brand-em:      #7ee0b0;   /* mint serif-italic accent */
  --brand-tint:    #0c1e16;
  --brand-soft:    #11281d;

  --band:          #0c1a13;   /* slightly raised dark band */
  --band-panel:    #14271d;   /* card on the band — lifts above it */

  --on-brand:      #04130c;
  --glow-1:        color-mix(in srgb, var(--brand) 22%, transparent);
  --glow-2:        color-mix(in srgb, var(--n-bg) 24%, transparent);

  --card-bg:       #0c150f;
  --card-shadow:   0 22px 50px -26px rgba(0,0,0,.7);
  --grain-blend:   screen;
  --grain-op:      .05;

  color-scheme: dark;
}

/* smooth theme cross-fade */
html { transition: background-color .5s var(--ease); }
body, .nav, .f-card, .sf-card, .pcard, .payroll-card, .eyebrow,
.m-pill, .float-card, .phone-screen, .btn, .nav-cta, .theme-toggle,
.cta-shell, .m-result, .m-cell, .paint-chip, .view-switch {
  transition:
    background-color .5s var(--ease),
    border-color .5s var(--ease),
    color .5s var(--ease),
    box-shadow .5s var(--ease);
}

/* ─── reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--f-ui);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; margin: 0; }
em { font-style: normal; }
::selection { background: color-mix(in srgb, var(--brand) 30%, transparent); }

/* ─── scroll progress ───────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 9500; pointer-events: none;
  background: transparent;
}
.scroll-progress span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-em));
  box-shadow: 0 0 12px color-mix(in srgb, var(--brand) 60%, transparent);
}

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

/* ─── aurora atmosphere (drifting blobs, very subtle) ───────────────────── */
.aurora {
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none;
  background:
    radial-gradient(40vw 40vw at 12% 8%,  var(--glow-1) 0%, transparent 60%),
    radial-gradient(36vw 36vw at 88% 22%, var(--glow-2) 0%, transparent 62%);
  filter: blur(20px);
  opacity: .9;
  animation: auroraDrift 26s ease-in-out infinite alternate;
}
@keyframes auroraDrift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

/* ─── reveal animation ───────────────────────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════════════════════════ */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad-page);
  background: color-mix(in srgb, var(--canvas) 72%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 80%, transparent);
}
.nav.scrolled {
  box-shadow: 0 10px 30px -24px rgba(0,0,0,.5);
}

.nav-brand { display: inline-flex; align-items: center; gap: 9px; }
.logo-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px;
  color: var(--brand);
}
.logo-word {
  font-family: var(--f-display);
  font-weight: 700; font-size: 19px;
  letter-spacing: -.02em;
}

/* Real Ronda wordmark (inherits text color → theme-adaptive) */
.wordmark { display: block; width: auto; fill: currentColor; color: var(--ink); }
.nav-brand .wordmark { height: 23px; transition: transform .25s ease; }
.nav-brand:hover .wordmark { transform: translateY(-1px); }

.nav-links {
  display: flex; gap: 28px;
  font-size: 14px; font-weight: 500;
  color: var(--slate);
}
.nav-links a { position: relative; padding: 4px 2px; transition: color .25s ease; }
.nav-links a:hover { color: var(--ink); }
.nav-links a::after {
  content: ''; position: absolute;
  left: 50%; bottom: -2px;
  width: 0; height: 1.5px; border-radius: 2px;
  background: var(--brand);
  transition: width .3s ease, left .3s ease;
}
.nav-links a:hover::after { width: 100%; left: 0; }

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

/* theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center;
  padding: 4px; border-radius: var(--r-full);
}
.tt-track {
  position: relative;
  width: 50px; height: 28px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--hairline);
  display: block;
  transition: background .3s ease, border-color .3s ease;
}
.tt-thumb {
  position: absolute; top: 50%; left: 3px;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--canvas);
  color: var(--brand);
  display: grid; place-items: center;
  box-shadow: 0 2px 6px -1px rgba(0,0,0,.25);
  transition: transform .42s var(--ease), color .3s ease;
}
[data-theme="dark"] .tt-thumb { transform: translateY(-50%) translateX(22px); }
.tt-thumb svg { position: absolute; transition: opacity .3s ease, transform .4s var(--ease); }
.tt-sun  { opacity: 1; transform: rotate(0); }
.tt-moon { opacity: 0; transform: rotate(-90deg); }
[data-theme="dark"] .tt-sun  { opacity: 0; transform: rotate(90deg); }
[data-theme="dark"] .tt-moon { opacity: 1; transform: rotate(0); }

.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px;
  background: var(--ink); color: var(--canvas);
  font-size: 13px; font-weight: 600;
  border-radius: var(--r-full);
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.nav-cta:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-1px); }

@media (max-width: 760px) { .nav-links { display: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 96px) var(--pad-page) 0;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--hairline) 70%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--hairline) 70%, transparent) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 25%, #000 25%, transparent 78%);
          mask-image: radial-gradient(ellipse at 60% 25%, #000 25%, transparent 78%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(12px); }
.glow-a {
  width: 700px; height: 700px; right: -140px; top: -220px;
  background: radial-gradient(circle, var(--glow-1) 0%, transparent 60%);
  animation: glowPulse 12s ease-in-out infinite;
}
.glow-b {
  width: 460px; height: 460px; left: -160px; bottom: -120px;
  background: radial-gradient(circle, var(--glow-2) 0%, transparent 62%);
  animation: glowPulse 14s ease-in-out infinite reverse;
}
@keyframes glowPulse { 50% { transform: scale(1.12); opacity: .8; } }

.hero-inner {
  position: relative; z-index: 1;
  max-width: var(--max-w); margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 80px);
  align-items: center;
  padding-bottom: clamp(56px, 8vw, 110px);
}
@media (max-width: 980px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-copy { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--steel);
  padding: 6px 13px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-full);
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 20%, transparent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .55; } }

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(48px, 6.6vw, 94px);
  line-height: .96; letter-spacing: -0.04em;
  font-weight: 700;
  margin: 24px 0 28px; color: var(--ink);
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title em {
  font-family: var(--f-serif);
  font-style: italic; font-weight: 400;
  color: var(--brand-em);
  letter-spacing: -0.02em; padding-right: .05em;
}

.hero-sub {
  font-size: clamp(15px, 1.1vw, 17.5px);
  color: var(--slate);
  max-width: 520px;
  margin: 0 0 32px; line-height: 1.6;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px;
  border-radius: var(--r-full);
  font-weight: 600; font-size: 14px;
  transition: transform .2s ease, background .2s ease, box-shadow .25s ease, color .2s ease;
}
.btn-primary {
  background: var(--ink); color: var(--canvas);
  box-shadow: 0 10px 24px -10px color-mix(in srgb, var(--ink) 60%, transparent);
}
.btn-primary:hover {
  background: var(--brand); color: var(--on-brand);
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--brand) 70%, transparent);
}
.btn-primary svg { transition: transform .25s ease; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--hairline); }
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }

.hero-bullets {
  display: flex; flex-wrap: wrap;
  gap: 18px 26px;
  font-size: 13px; color: var(--steel); font-weight: 500;
}
.hero-bullets li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.dot-morning { background: var(--m-bg); }
.dot-afternoon { background: var(--a-bg); }
.dot-night { background: var(--n-bg); }
.dot-vacation { background: var(--v-bg); }

/* ─── PHONE ─── */
.phone-stage {
  position: relative;
  display: grid; place-items: center;
  padding: 16px 0; min-height: 600px;
  perspective: 1400px;
}
.phone-rotors { position: absolute; inset: 0; pointer-events: none; }
.rotor {
  position: absolute; top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px dashed color-mix(in srgb, var(--brand) 28%, transparent);
  transform: translate(-50%, -50%);
  animation: spin 40s linear infinite;
}
.rotor-1 { width: 520px; height: 520px; }
.rotor-2 { width: 640px; height: 640px; animation-duration: 64s; animation-direction: reverse;
  border-color: color-mix(in srgb, var(--ink) 9%, transparent); }
.rotor-3 { width: 400px; height: 400px; animation-duration: 30s;
  border-style: solid; border-color: color-mix(in srgb, var(--brand) 10%, transparent); }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.phone {
  position: relative;
  width: 320px; height: 640px;
  border-radius: 44px;
  background: #0a0a0a;
  padding: 9px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.06) inset,
    0 0 0 1px rgba(255,255,255,.06) inset,
    0 30px 60px -20px rgba(0,0,0,.4),
    0 70px 130px -50px color-mix(in srgb, var(--brand) 50%, transparent);
  animation: phoneFloat 6s ease-in-out infinite;
  transform-style: preserve-3d;
  transition: transform .25s ease;
}
@keyframes phoneFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.phone-glare {
  position: absolute; inset: 9px;
  border-radius: 36px; z-index: 4; pointer-events: none;
  background: linear-gradient(130deg, rgba(255,255,255,.14) 0%, transparent 38%);
  mix-blend-mode: screen;
}
.phone-notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #000; border-radius: 16px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: var(--canvas);
  border-radius: 36px; overflow: hidden;
  padding: 36px 14px 0;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
}

.m-header { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; }
.m-header-l { display: flex; flex-direction: column; gap: 4px; }
.m-bar { height: 9px; background: var(--ink); border-radius: 2px; }
.m-bar.dim { background: var(--hairline); height: 6px; }
.m-bar.w40 { width: 70px; } .m-bar.w20 { width: 44px; }
.m-pill {
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  padding: 4px 10px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--r-full); color: var(--ink);
}
.m-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  font-family: var(--f-mono); font-size: 9px; text-align: center;
  color: var(--stone); padding: 0 4px; margin-top: 2px;
}
.m-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0 4px; }
.m-cell {
  position: relative; aspect-ratio: 1 / 1.05;
  border-radius: 5px; background: var(--surface-soft);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 3px 0; font-family: var(--f-mono); font-size: 9px;
  color: var(--ink); overflow: hidden;
  animation: cellIn .55s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 22ms);
}
.m-cell.ghost { color: var(--muted); background: transparent; }
.m-cell.today { outline: 1.4px solid var(--brand); outline-offset: -1px; }
.m-cell.today span {
  background: var(--brand); color: var(--on-brand);
  width: 14px; height: 14px; border-radius: 50%;
  display: inline-grid; place-items: center;
}
.m-cell .chip {
  width: 100%; text-align: center; font-style: normal;
  font-weight: 700; font-size: 8px; padding: 2px 0; letter-spacing: .04em;
}
.chip.morning { background: var(--m-bg); color: var(--m-fg); }
.chip.afternoon { background: var(--a-bg); color: var(--a-fg); }
.chip.night { background: var(--n-bg); color: var(--n-fg); }
.chip.free { background: var(--l-bg); color: var(--l-fg); }
.chip.vacation { background: var(--v-bg); color: var(--v-fg); }
@keyframes cellIn { from { opacity: 0; transform: scale(.85) translateY(4px); } to { opacity: 1; transform: none; } }

.m-result {
  margin: 4px 6px 0;
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 18%, transparent);
  border-radius: 10px; padding: 9px 11px;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.m-result-label {
  font-size: 9px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand); font-weight: 700;
}
.m-result-value {
  font-family: var(--f-mono); font-size: 22px; font-weight: 600;
  color: var(--brand); letter-spacing: -0.02em;
}
.m-result-value sup { font-size: 11px; font-weight: 500; margin-left: 1px; vertical-align: super; }
.m-result-spark { color: var(--brand); }
.m-result-spark svg { width: 56px; height: 22px; }
.spark-line { stroke-dasharray: 120; stroke-dashoffset: 120; animation: drawSpark 1.6s var(--ease) .4s forwards; }
@keyframes drawSpark { to { stroke-dashoffset: 0; } }

.m-tabs {
  margin-top: auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 8px 4px 12px;
  border-top: 1px solid var(--hairline); color: var(--steel);
}
.m-tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 9px; font-weight: 500; }
.m-tab.active { color: var(--brand); }

/* floating cards */
.float-card {
  position: absolute;
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: 14px; padding: 12px 14px;
  box-shadow: var(--card-shadow);
  transition: transform .35s ease;
  z-index: 5;
}
.fc-eyebrow {
  font-size: 10px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--steel); font-weight: 600; margin-bottom: 6px;
}
.fc-body { display: flex; gap: 4px; }
.float-a { top: 12%; left: -2%; animation: floatA 5s ease-in-out infinite; }
.float-b { bottom: 12%; right: -4%; animation: floatB 6s ease-in-out infinite; }
@keyframes floatA { 50% { transform: translateY(-10px); } }
@keyframes floatB { 50% { transform: translateY(8px); } }

.chip.sm {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  font-family: var(--f-mono); font-size: 10px; font-weight: 700;
  border-radius: 4px; font-style: normal;
}
.fc-num { font-family: var(--f-mono); font-size: 32px; font-weight: 600; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.fc-num small { font-size: 14px; font-weight: 500; color: var(--steel); margin-left: 1px; }
.fc-foot { font-size: 10px; color: var(--steel); margin-top: 4px; font-weight: 500; }

@media (max-width: 980px) { .phone-stage { min-height: 660px; } .float-a { left: 0; } .float-b { right: 0; } }
@media (max-width: 480px) { .phone { transform: scale(.88); } .float-a { top: 6%; } .float-b { bottom: 6%; } }

/* ─── ticker ─── */
.ticker {
  position: relative; z-index: 1;
  margin: 0 calc(-1 * var(--pad-page));
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  background: color-mix(in srgb, var(--surface) 60%, transparent);
}
.ticker-track {
  display: inline-flex; align-items: center; gap: 36px;
  white-space: nowrap; padding: 13px 0;
  animation: tickerMove 38s linear infinite;
}
.ticker-track span {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .02em; color: var(--steel);
}
.ticker-track .tk-sep { color: var(--stone); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.tk { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }
.tk.morning { background: var(--m-bg); } .tk.afternoon { background: var(--a-bg); }
.tk.night { background: var(--n-bg); } .tk.vacation { background: var(--v-bg); } .tk.free { background: var(--l-bg); }
@keyframes tickerMove { to { transform: translateX(-50%); } }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ═══════════════════════════════════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════════════════════════════════ */
.stats { padding: 40px var(--pad-page); max-width: var(--max-w); margin: 0 auto; }
.stats-rule { height: 1px; background: var(--hairline); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 40px 0; }
.stats-grid li { padding: 0 28px; border-right: 1px solid var(--hairline); }
.stats-grid li:first-child { padding-left: 0; }
.stats-grid li:last-child { border-right: none; padding-right: 0; }
.s-label { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); font-weight: 600; margin-bottom: 14px; }
.s-value { font-family: var(--f-mono); font-size: clamp(40px, 4.5vw, 64px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--ink); margin-bottom: 10px; }
.s-value small { font-size: .5em; color: var(--brand); font-weight: 500; margin-left: 2px; }
.s-value-word { font-family: var(--f-display); font-size: clamp(34px, 3.6vw, 52px); color: var(--brand); letter-spacing: -0.03em; }
.s-foot { font-size: 13px; color: var(--steel); line-height: 1.4; }
@media (max-width: 880px) { .stats-grid { grid-template-columns: repeat(2,1fr); gap: 32px 0; } .stats-grid li { border: none; padding: 0; } }

/* ═══════════════════════════════════════════════════════════════════════
   FEATURE
   ═══════════════════════════════════════════════════════════════════════ */
.feature { padding: clamp(60px, 9vw, 120px) var(--pad-page); max-width: var(--max-w); margin: 0 auto; }
.feature-dark {
  max-width: none;
  background: var(--band);
  color: #fff;
  margin: 64px 0;
  border-radius: 0;
  position: relative; overflow: hidden;
}
.feature-dark::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60vw 40vw at 80% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%);
}
.feature-dark > * { position: relative; }
.feature-dark .section-eyebrow { color: rgba(255,255,255,.55); }
.feature-dark .section-title { color: #fff; }
.feature-dark .section-sub { color: rgba(255,255,255,.72); }
.feature-dark .section-title em { color: color-mix(in srgb, var(--brand) 80%, white); }

.feature-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-eyebrow { font-family: var(--f-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--stone); margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.pro-pill {
  font-family: var(--f-ui); font-size: 10px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  padding: 3px 9px; border-radius: var(--r-full);
}
.feature-dark .pro-pill { color: color-mix(in srgb, var(--brand) 85%, white); background: color-mix(in srgb, var(--brand) 22%, transparent); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
.section-title { font-family: var(--f-display); font-size: clamp(32px, 4.5vw, 60px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin: 0 0 22px; color: var(--ink); }
.section-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--brand-em); }
.section-sub { font-size: 17px; color: var(--slate); max-width: 620px; line-height: 1.6; margin: 0; }

/* grid feature 1 */
.feature-grid-1 { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
@media (max-width: 880px) { .feature-grid-1 { grid-template-columns: 1fr; } }

.f-card {
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl); padding: 28px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  display: flex; flex-direction: column; min-height: 320px;
  position: relative; overflow: hidden;
}
.f-card::after {
  content: ''; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--brand) 12%, transparent), transparent 60%);
  transition: opacity .4s ease;
}
.f-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--brand) 50%, var(--hairline));
  box-shadow: var(--card-shadow);
}
.f-card:hover::after { opacity: 1; }
.f-card-big { min-height: 460px; }
.f-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.f-card-title { font-family: var(--f-display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.f-card-tag { font-size: 11px; padding: 4px 9px; background: var(--surface); border-radius: var(--r-full); font-weight: 500; color: var(--steel); font-family: var(--f-mono); }
.f-card-text { color: var(--slate); font-size: 15px; line-height: 1.55; margin: 0 0 auto; }

.paint-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.paint-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 6px; border-radius: var(--r-full);
  background: var(--surface); font-size: 13px; font-weight: 500;
  cursor: default; transition: transform .2s ease;
}
.paint-chip:hover { transform: translateY(-2px); }
.paint-chip b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; }
.paint-chip.morning b { background: var(--m-bg); color: var(--m-fg); }
.paint-chip.afternoon b { background: var(--a-bg); color: var(--a-fg); }
.paint-chip.night b { background: var(--n-bg); color: var(--n-fg); }
.paint-chip.free b { background: var(--l-bg); color: var(--l-fg); }
.paint-chip.vacation b { background: var(--v-bg); color: var(--v-fg); }

.mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: auto; }
.mc { aspect-ratio: 1 / 1; border-radius: 6px; font-family: var(--f-mono); font-size: 11px; font-weight: 700; display: grid; place-items: center; transition: transform .25s ease; }
.mc:hover { transform: scale(1.12) rotate(-3deg); }
.mc.morning { background: var(--m-bg); color: var(--m-fg); }
.mc.afternoon { background: var(--a-bg); color: var(--a-fg); }
.mc.night { background: var(--n-bg); color: var(--n-fg); }
.mc.free { background: var(--l-bg); color: var(--l-fg); }
.mc.vacation { background: var(--v-bg); color: var(--v-fg); }

.cycle { margin-top: 24px; display: flex; align-items: center; gap: 4px; position: relative; }
.cy { flex: 1; height: 36px; border-radius: 5px; }
.cy.morning { background: var(--m-bg); } .cy.afternoon { background: var(--a-bg); }
.cy.night { background: var(--n-bg); } .cy.free { background: var(--l-bg); }
.cycle-arrow { margin-left: 10px; font-size: 24px; color: var(--brand); animation: rotateLoop 6s linear infinite; display: inline-block; }
@keyframes rotateLoop { to { transform: rotate(360deg); } }

.view-switch { margin-top: 28px; display: inline-flex; padding: 4px; background: var(--surface); border-radius: var(--r-full); align-self: flex-start; }
.vs { padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--steel); border-radius: var(--r-full); cursor: pointer; transition: color .2s ease; }
.vs.active { background: var(--card-bg); color: var(--ink); box-shadow: 0 2px 6px -2px rgba(0,0,0,.2); }

/* payroll */
.payroll { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; max-width: var(--max-w); margin: 0 auto; }
@media (max-width: 880px) { .payroll { grid-template-columns: 1fr; } }
.payroll-card {
  background: var(--band-panel); color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
  border-radius: var(--r-2xl); padding: 36px;
  position: relative; overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,.5);
}
.pc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.pc-month { font-family: var(--f-mono); font-size: 13px; font-weight: 500; color: var(--steel); }
.pc-status { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; background: var(--brand-soft); color: var(--brand); padding: 4px 10px; border-radius: var(--r-full); font-weight: 700; }
.pc-amount { display: flex; align-items: baseline; font-family: var(--f-mono); font-weight: 600; color: var(--ink); letter-spacing: -0.04em; line-height: 1; margin-bottom: 24px; }
.pc-currency { font-size: 32px; color: var(--brand); margin-right: 6px; font-weight: 500; }
.pc-int { font-size: clamp(56px, 7vw, 88px); }
.pc-dec { font-size: 28px; color: var(--steel); font-weight: 500; }

.pc-bar { display: flex; height: 14px; border-radius: var(--r-full); overflow: hidden; margin-bottom: 26px; background: var(--surface); }
.pcb { width: var(--w); position: relative; transition: width .9s var(--ease); }
.pcb.base { background: var(--ink); }
.pcb.night { background: var(--n-bg); }
.pcb.fest { background: var(--a-bg); }
.pcb.extra { background: var(--brand); }
.pcb span { display: none; }

.pc-list li { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--hairline); font-size: 14px; color: var(--slate); }
.pc-list li b { font-family: var(--f-mono); font-weight: 500; color: var(--ink); }
.pc-list li:last-child { border-bottom: 1px solid var(--hairline); }

.payroll-aside { display: flex; flex-direction: column; justify-content: center; padding: 8px 4px; }
.pa-quote { font-family: var(--f-serif); font-style: italic; font-weight: 300; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.4; letter-spacing: -0.01em; color: #fff; margin-bottom: 28px; position: relative; }
.pa-mark { font-size: 64px; color: color-mix(in srgb, var(--brand) 80%, white); display: inline-block; line-height: 0; vertical-align: -0.15em; margin-right: 6px; }
.pa-attrib { display: flex; align-items: center; gap: 12px; }
.pa-av { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--m-bg), var(--v-bg)); }
.pa-name { font-weight: 600; font-size: 14px; }
.pa-role { font-size: 12px; color: rgba(255,255,255,.65); }

/* stats feature */
.stats-feature { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 880px) { .stats-feature { grid-template-columns: 1fr; } }
.sf-card { background: var(--card-bg); border: 1px solid var(--hairline); border-radius: var(--r-2xl); padding: 28px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.sf-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--hairline)); }
.sf-big { min-height: 380px; display: flex; flex-direction: column; }
.sf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.sf-title { font-family: var(--f-display); font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.sf-year { font-family: var(--f-mono); font-size: 13px; color: var(--steel); }

.bars { flex: 1; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; min-height: 240px; }
.bar { display: flex; flex-direction: column-reverse; height: 100%; position: relative; gap: 2px; }
.bar i { width: 100%; display: block; height: var(--h); border-radius: 3px; transform-origin: bottom; animation: barIn .9s var(--ease) both; }
.bar i.bm { background: var(--m-bg); } .bar i.ba { background: var(--a-bg); } .bar i.bn { background: var(--n-bg); }
.bar span { position: absolute; bottom: -22px; left: 0; right: 0; text-align: center; font-family: var(--f-mono); font-size: 10px; color: var(--stone); }
@keyframes barIn { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }
.sf-legend { margin-top: 36px; display: flex; gap: 18px; font-size: 12px; color: var(--steel); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg.morning { background: var(--m-bg); } .lg.afternoon { background: var(--a-bg); } .lg.night { background: var(--n-bg); }

.sf-col { display: flex; flex-direction: column; gap: 18px; }
.sf-card.mini { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.sf-mini-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--stone); font-weight: 600; }
.sf-mini-val { font-family: var(--f-mono); font-size: 42px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.sf-mini-val small { font-size: .42em; color: var(--steel); margin-left: 1px; }
.sf-mini-foot { font-size: 13px; color: var(--steel); }

/* ═══════════════════════════════════════════════════════════════════════
   PALETTE
   ═══════════════════════════════════════════════════════════════════════ */
.palette { padding: clamp(60px, 9vw, 120px) var(--pad-page); max-width: var(--max-w); margin: 0 auto; }
.palette-head { max-width: 720px; margin-bottom: 56px; }
.palette-title { font-size: clamp(40px, 5.6vw, 76px); }
.palette-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
@media (max-width: 980px) { .palette-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 540px) { .palette-grid { grid-template-columns: repeat(2, 1fr); } }

.pcard {
  background: var(--bg); color: var(--fg);
  border-radius: var(--r-2xl); padding: 22px;
  aspect-ratio: 3 / 4;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
  position: relative; overflow: hidden;
}
.pcard::before {
  content: ''; position: absolute; inset: 0; opacity: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.35), transparent 50%);
  transition: opacity .4s ease;
}
.pcard:hover { transform: translateY(-8px) rotate(-1.5deg); box-shadow: 0 26px 50px -22px color-mix(in srgb, var(--fg) 45%, transparent); }
.pcard:hover::before { opacity: 1; }
.pcard-letter { font-family: var(--f-mono); font-size: clamp(54px, 7vw, 96px); font-weight: 700; line-height: 1; letter-spacing: -0.05em; margin-top: -8px; position: relative; }
.pcard-meta { font-size: 12px; position: relative; }
.pcard-name { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.pcard-hex { font-family: var(--f-mono); font-size: 11px; opacity: .65; }
.accent-card { background: var(--ink); color: var(--canvas); }
.accent-card .pcard-letter { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════════════
   PLANS
   ═══════════════════════════════════════════════════════════════════════ */
.plans { padding: clamp(60px, 9vw, 120px) var(--pad-page) clamp(20px, 4vw, 40px); max-width: var(--max-w); margin: 0 auto; }
.plans-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: stretch; }
@media (max-width: 820px) { .plans-grid { grid-template-columns: 1fr; } }

.plan-card {
  position: relative; overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--r-2xl);
  padding: 32px;
  display: flex; flex-direction: column;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }

.plan-pro {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--hairline));
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 7%, var(--card-bg)), var(--card-bg) 40%);
}
.plan-glow {
  position: absolute; top: -40%; right: -20%;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 22%, transparent), transparent 65%);
  filter: blur(20px); pointer-events: none;
  animation: glowPulse 10s ease-in-out infinite;
}
.plan-flag {
  position: absolute; top: 20px; right: 20px; z-index: 1;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  color: var(--on-brand); background: var(--brand);
  padding: 5px 11px; border-radius: var(--r-full);
}

.plan-card-head { position: relative; margin-bottom: 16px; }
.plan-tier {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--steel); margin-bottom: 14px;
}
.plan-tier .wm-inline { height: 15px; color: var(--ink); }
.plan-tier b { font-family: var(--f-display); color: var(--brand); font-size: 14px; letter-spacing: 0; }
.plan-price { display: flex; flex-direction: column; gap: 2px; }
.plan-price span { font-family: var(--f-display); font-size: clamp(30px, 3.4vw, 40px); font-weight: 700; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.plan-price small { font-size: 12.5px; color: var(--steel); }

.plan-note { font-size: 14px; color: var(--slate); margin: 0 0 22px; line-height: 1.5; }

.plan-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.plan-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--ink); line-height: 1.45; }
.pl-ico {
  flex: none; width: 20px; height: 20px; margin-top: 1px;
  border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
}
.pl-ico.ok { background: var(--brand-soft); color: var(--brand); }
.pl-ico.pro { background: var(--brand); color: var(--on-brand); }

.plan-cta {
  margin-top: auto;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 20px; border-radius: var(--r-full);
  font-weight: 700; font-size: 14.5px;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.plan-cta-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--hairline); }
.plan-cta-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.plan-cta-solid { background: var(--brand); color: var(--on-brand); box-shadow: 0 14px 28px -12px color-mix(in srgb, var(--brand) 70%, transparent); }
.plan-cta-solid:hover { background: var(--brand-deep); transform: translateY(-2px); }
.plan-fine { font-size: 12px; color: var(--steel); text-align: center; margin-top: 12px; line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════════════
   CTA
   ═══════════════════════════════════════════════════════════════════════ */
.cta { padding: clamp(40px, 6vw, 80px) var(--pad-page) clamp(60px, 8vw, 100px); }
.cta-shell {
  max-width: 980px; margin: 0 auto;
  background: var(--brand-tint);
  border-radius: clamp(20px, 3vw, 36px);
  padding: clamp(40px, 7vw, 80px);
  text-align: center; position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent);
}
.cta-shell::before {
  content: ''; position: absolute; inset: -50%;
  background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--brand) 24%, transparent) 0%, transparent 50%);
  filter: blur(40px); z-index: 0;
}
.cta-rings { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; pointer-events: none; opacity: .5; }
.cta-rings span {
  position: absolute; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, transparent);
  animation: ringExpand 8s ease-out infinite;
}
.cta-rings span:nth-child(1) { width: 200px; height: 200px; }
.cta-rings span:nth-child(2) { width: 200px; height: 200px; animation-delay: 2.6s; }
.cta-rings span:nth-child(3) { width: 200px; height: 200px; animation-delay: 5.3s; }
@keyframes ringExpand { from { transform: scale(.4); opacity: .8; } to { transform: scale(2.6); opacity: 0; } }

.cta-eyebrow { position: relative; z-index: 1; display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; padding: 6px 12px; border-radius: var(--r-full); background: var(--canvas); border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent); }
.cta-title { position: relative; z-index: 1; font-family: var(--f-display); font-size: clamp(34px, 4.8vw, 60px); letter-spacing: -0.035em; font-weight: 700; line-height: 1.05; color: var(--ink); margin: 0 0 36px; }
.cta-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--brand-em); }
.cta-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 20px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px; background: var(--ink); color: var(--canvas); border-radius: var(--r-full); transition: transform .2s ease, background .2s ease, color .2s ease; }
.store-btn:hover { background: var(--brand); color: var(--on-brand); transform: translateY(-2px); }
.store-btn span { display: flex; flex-direction: column; text-align: left; font-weight: 600; font-size: 15px; line-height: 1.1; }
.store-btn small { font-size: 10px; letter-spacing: .04em; font-weight: 500; opacity: .8; margin-bottom: 1px; }
.cta-foot { position: relative; z-index: 1; font-size: 13px; color: var(--brand); font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════════ */
.footer { padding: 0 var(--pad-page) 40px; max-width: var(--max-w); margin: 0 auto; }
.footer-rule { height: 1px; background: var(--hairline); }

.footer-top {
  display: grid; grid-template-columns: 1.4fr 2fr;
  gap: clamp(32px, 5vw, 72px);
  padding: 48px 0;
}
.footer-lead { max-width: 360px; }
.footer-wordmark { height: 30px; color: var(--ink); margin-bottom: 18px; }
.footer-tagline { font-size: 14px; color: var(--steel); line-height: 1.6; margin: 0; }

.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: .1em;
  color: var(--stone); font-weight: 700; margin: 0 0 4px;
}
.footer-col a { font-size: 13.5px; color: var(--slate); transition: color .2s ease; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding-top: 24px;
  font-size: 12.5px; color: var(--steel);
}
.footer-bottom-links { display: flex; gap: 18px; }
.footer-bottom-links a:hover { color: var(--brand); }

@media (max-width: 720px) {
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-nav { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════════════════
   LEGAL PAGES (privacidad / términos)
   ═══════════════════════════════════════════════════════════════════════ */
.legal-main { max-width: 880px; margin: 0 auto; padding: clamp(36px, 6vw, 72px) var(--pad-page) clamp(56px, 8vw, 100px); position: relative; z-index: 1; }

.legal-head { margin-bottom: clamp(32px, 5vw, 52px); }
.legal-eyebrow { font-family: var(--f-mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); margin-bottom: 16px; }
.legal-title { font-family: var(--f-display); font-size: clamp(38px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 0 0 18px; color: var(--ink); }
.legal-title em { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: var(--brand-em); }
.legal-meta { font-family: var(--f-mono); font-size: 12.5px; color: var(--steel); }
.legal-lead { font-family: var(--f-serif); font-size: clamp(18px, 2vw, 22px); line-height: 1.5; color: var(--slate); margin: 22px 0 0; font-weight: 400; }

/* TL;DR callout */
.legal-callout {
  margin: 32px 0;
  background: var(--brand-tint);
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  border-radius: var(--r-xl); padding: 22px 24px;
}
.legal-callout h2 { font-family: var(--f-display); font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin: 0 0 12px; border: 0; padding: 0; }
.legal-callout ul { display: flex; flex-direction: column; gap: 9px; }
.legal-callout li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.legal-callout li::before { content: '→'; color: var(--brand); font-weight: 700; }

/* table of contents */
.legal-toc { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 22px 24px; margin: 0 0 44px; }
.legal-toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--stone); margin: 0 0 14px; border: 0; padding: 0; font-family: var(--f-ui); font-weight: 700; }
.legal-toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 0; padding: 0; }
@media (max-width: 640px) { .legal-toc ol { grid-template-columns: 1fr; } }
.legal-toc li { counter-increment: toc; font-size: 14px; }
.legal-toc a { color: var(--slate); display: flex; gap: 9px; transition: color .2s ease; }
.legal-toc a:hover { color: var(--brand); }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--brand); }

/* prose */
.legal-body { }
.legal-body section { padding-top: 14px; }
.legal-body h2 {
  font-family: var(--f-display); font-size: clamp(22px, 3vw, 28px);
  font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  margin: 44px 0 16px; color: var(--ink);
  scroll-margin-top: 90px;
  display: flex; align-items: baseline; gap: 12px;
}
.legal-body h2 .num { font-family: var(--f-mono); font-size: 14px; font-weight: 500; color: var(--brand); }
.legal-body h3 { font-family: var(--f-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin: 26px 0 10px; color: var(--ink); }
.legal-body p { font-size: 15.5px; line-height: 1.72; color: var(--slate); margin: 0 0 16px; }
.legal-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--ink); font-weight: 700; }
.legal-body ul { margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.legal-body ul li { position: relative; padding-left: 22px; font-size: 15.5px; line-height: 1.65; color: var(--slate); }
.legal-body ul li::before { content: ''; position: absolute; left: 4px; top: 11px; width: 6px; height: 6px; border-radius: 2px; background: var(--brand); }
.legal-body ul li strong { color: var(--ink); }

/* data table */
.legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 24px; font-size: 14px; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hairline); vertical-align: top; line-height: 1.5; }
.legal-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--stone); font-weight: 700; }
.legal-table td { color: var(--slate); }
.legal-table td:first-child { color: var(--ink); font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) { .legal-table td:first-child { white-space: normal; } }

/* inline note / warning */
.legal-warn {
  margin: 8px 0 24px;
  background: var(--surface);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 16px 20px;
}
.legal-warn p { margin: 0; font-size: 14.5px; color: var(--ink); }

/* plan split inside terms */
.legal-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 8px 0 24px; }
@media (max-width: 640px) { .legal-plans { grid-template-columns: 1fr; } }
.legal-plan { border: 1px solid var(--hairline); border-radius: var(--r-xl); padding: 22px; background: var(--card-bg); }
.legal-plan.is-pro { border-color: color-mix(in srgb, var(--brand) 40%, var(--hairline)); }
.legal-plan h3 { margin: 0 0 6px; }
.legal-plan .lp-price { font-family: var(--f-mono); font-size: 13px; color: var(--brand); margin-bottom: 14px; }
.legal-plan ul { margin: 0; }

.legal-back { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--steel); transition: color .2s ease; }
.legal-back:hover { color: var(--brand); }

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE — la web se ve sobre todo desde el móvil
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root { --pad-page: 18px; }

  /* nav: compacto, sin que se amontone */
  .nav { padding: 11px var(--pad-page); gap: 10px; }
  .nav-brand .wordmark { height: 20px; }
  .nav-cta { padding: 9px 14px; font-size: 12.5px; }
  .tt-track { width: 46px; height: 26px; }
  .tt-thumb { width: 20px; height: 20px; }
  [data-theme="dark"] .tt-thumb { transform: translateY(-50%) translateX(20px); }

  /* hero */
  .hero { padding-top: 26px; }
  .hero-inner { padding-bottom: 48px; }
  .hero-title { font-size: clamp(40px, 12.5vw, 58px); line-height: .98; }
  .hero-sub { font-size: 15.5px; line-height: 1.55; }
  .phone-stage { min-height: 540px; }
  .phone { transform: scale(.82); }
  .float-card { padding: 10px 12px; }
  .float-a { top: 3%; left: -1%; }
  .float-b { bottom: 3%; right: -1%; }

  /* tipografía de secciones */
  .section-title { font-size: clamp(28px, 8.5vw, 44px); }
  .section-sub { font-size: 15.5px; line-height: 1.55; }
  .feature-head { margin-bottom: 36px; }

  /* tarjetas: menos padding, sin alturas mínimas forzadas */
  .f-card, .f-card-big, .sf-card, .sf-big { min-height: 0; padding: 22px; }
  .payroll-card { padding: 24px; }
  .plan-card { padding: 24px; }
  .pcard { padding: 18px; }
  .cta-shell { padding: 36px 24px; }
  .stats { padding-top: 24px; padding-bottom: 24px; }
  .stats-grid { padding: 28px 0; }

  /* legal */
  .legal-title { font-size: clamp(34px, 11vw, 52px); }
  .legal-body h2 { margin-top: 36px; }
  .legal-table th, .legal-table td { padding: 10px; font-size: 13px; }
  .legal-callout, .legal-toc { padding: 18px; }
}

/* botones del hero a ancho completo en pantallas estrechas */
@media (max-width: 440px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .cta-actions .store-btn { width: 100%; justify-content: center; }
}

/* móviles pequeños: quita las tarjetas flotantes para despejar */
@media (max-width: 360px) {
  .phone { transform: scale(.72); }
  .float-card { display: none; }
  .phone-stage { min-height: 480px; }
}

/* ─── reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
