/* =============================================================
   PlanMed.ai — modern landing page
   Typography strategy: single sans family (Manrope),
   contrast built from weight + size + color.
   ============================================================= */

:root {
  /* Palette */
  --bg:            #EEF4FF;
  --bg-deep:       #DDE7FB;
  --surface:       #FFFFFF;
  --surface-cream: #E0EAFB;
  --ink:           #040404;
  --ink-2:         #040404;
  --muted:         #374151;
  --border:        rgba(4, 4, 4, 0.08);
  --border-strong: rgba(4, 4, 4, 0.14);

  --blue:          #0040FF;
  --blue-soft:     #D6E1FA;
  --green:         #10B981;
  --green-soft:    #D5F5E7;
  --yellow:        #D7FF3B;
  --yellow-soft:   #F2FBCF;

  --dark:          #040404;

  /* Typography — Manrope for body, Plus Jakarta Sans for logo wordmark only */
  --font:   'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-logo: 'Plus Jakarta Sans', 'Manrope', -apple-system, sans-serif;

  --w-thin:  200;
  --w-light: 300;
  --w-reg:   400;
  --w-med:   500;
  --w-semi:  600;
  --w-bold:  700;
  --w-black: 800;

  /* Radii */
  --r-sm:  10px;
  --r-md:  18px;
  --r-lg:  28px;
  --r-xl:  36px;

  --pad-page-x: clamp(1rem, 4vw, 3rem);
  --gap:        clamp(1rem, 2vw, 1.25rem);

  --max-w: 1240px;

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

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

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

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--w-reg);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
ol, ul { list-style: none; }
em { font-style: normal; }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.04 0 0 0 0 0.04 0 0 0 0 0.05 0 0 0 0.5 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Page frame ---------- */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: clamp(1rem, 2vw, 1.5rem) var(--pad-page-x) clamp(2rem, 4vw, 3rem);
  position: relative;
  z-index: 1;
}

/* =============================================================
   NAV / LOGO
   ============================================================= */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.25rem;
  margin-bottom: clamp(1rem, 2.5vw, 2rem);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  line-height: 1;
}

.logo__mark {
  width: 32px;
  height: auto;
  flex-shrink: 0;
  display: block;
}

.logo__text {
  font-family: var(--font-logo);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
}

.logo__plan {
  font-weight: var(--w-reg);
}

.logo__med {
  font-weight: var(--w-semi);
}

.logo__suffix {
  font-weight: var(--w-reg);
  font-size: 16px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

/* =============================================================
   BUTTONS
   ============================================================= */
.btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.95rem 1.4rem;
  border-radius: 999px;
  font-weight: var(--w-bold);
  font-size: 0.95rem;
  line-height: 1.15;
  letter-spacing: -0.005em;
  cursor: pointer;
  user-select: none;
  transition: transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease),
              background 0.25s var(--ease),
              color 0.25s var(--ease);
  position: relative;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn__label { font-weight: var(--w-bold); }

/* Label variants — full by default, short only on mobile compact */
.btn__label--short { display: none; }

.btn__sub {
  font-size: 0.72rem;
  font-weight: var(--w-med);
  opacity: 0.72;
  letter-spacing: 0;
}

.btn__sub--mail {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: var(--w-reg);
  font-size: 0.7rem;
  letter-spacing: -0.01em;
  opacity: 0.8;
}

.btn__stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.15;
}

.btn__arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
  fill: none;
  stroke: currentColor;
}

.btn--sm {
  flex-direction: row;
  padding: 0.7rem 1.15rem;
  font-size: 0.88rem;
  gap: 0.5rem;
}

.btn--lg {
  padding: 1.15rem 1.75rem;
  font-size: 1rem;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 0 rgba(0, 32, 128, 0.35),
              0 12px 28px -6px rgba(0, 64, 255, 0.45);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(0, 32, 128, 0.35),
              0 18px 36px -6px rgba(0, 64, 255, 0.55);
}

.btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(0, 32, 128, 0.35),
              0 6px 14px -4px rgba(0, 64, 255, 0.4);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--blue);
  transform: translateY(-1px);
}

.btn--dark:hover .btn__arrow { transform: translate(2px, -2px); }

.btn--green {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 0 rgba(8, 110, 77, 0.35),
              0 10px 22px -6px rgba(16, 185, 129, 0.4);
}

.btn--green:hover {
  background: #0FA878;
  transform: translateY(-1px);
  box-shadow: 0 6px 0 rgba(8, 110, 77, 0.35),
              0 14px 28px -6px rgba(16, 185, 129, 0.5);
}

.btn--green:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 rgba(8, 110, 77, 0.35),
              0 4px 10px -4px rgba(16, 185, 129, 0.4);
}

.btn--green:hover .btn__arrow { transform: translate(2px, -2px); }

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

.btn--ghost:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: translateY(-2px);
}

.btn--ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn--ghost-light:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

/* =============================================================
   SECTION-FULL — shared "each section = one fold" pattern
   ============================================================= */
.section-full {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

.section-full__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}

/* Pulsing down-arrow shared by hero + every section-full */
.scroll-hint {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink);
  transition: transform 0.3s var(--ease),
              background 0.3s var(--ease),
              color 0.3s var(--ease),
              border-color 0.3s var(--ease);
  animation: scroll-bounce 2.4s ease-in-out infinite;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  flex-shrink: 0;
}

.scroll-hint svg {
  width: 18px;
  height: 18px;
}

.scroll-hint:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  animation-play-state: paused;
  transform: scale(1.08);
}

/* =============================================================
   HERO — full-viewport editorial fold
   ============================================================= */
.hero {
  min-height: calc(100vh - 7rem);
  min-height: calc(100svh - 7rem);
  display: flex;
  flex-direction: column;
  padding: 0 0 clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

.hero__top {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.95rem 0.45rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: var(--w-semi);
  color: var(--muted);
  margin-bottom: 1.5rem;
  align-self: flex-start;
  width: fit-content;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  position: relative;
  flex-shrink: 0;
}

.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--green);
  opacity: 0.4;
  animation: pulse 1.8s ease-out infinite;
}

@keyframes pulse {
  0%   { transform: scale(0.6); opacity: 0.5; }
  100% { transform: scale(2.2); opacity: 0;   }
}

.hero__title {
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 14ch;
}

.hero__word {
  display: block;
}

/* "Zautomatyzuj" — heavy, blue */
.hero__word:nth-child(1) em {
  font-weight: var(--w-black);
  color: var(--blue);
  letter-spacing: -0.05em;
}

/* "układanie" — ultra-thin, ink */
.hero__word:nth-child(2) {
  font-weight: var(--w-thin);
  color: var(--ink);
  letter-spacing: -0.04em;
}

/* "grafików" — heavy, ink */
.hero__word:nth-child(3) {
  font-weight: var(--w-black);
  color: var(--ink);
  letter-spacing: -0.05em;
}

.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  font-weight: var(--w-reg);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 1.5rem;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Scroll indicator — bottom of fold (shared .scroll-hint above) */
@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

/* =============================================================
   COUNTER — speed showcase
   ============================================================= */
.counter {
  text-align: center;
}

.counter__inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 clamp(0.5rem, 2vw, 1.5rem);
}

.counter__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: var(--w-semi);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

.counter__display {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.25rem;
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
  line-height: 0.9;
}

.counter__value {
  font-size: clamp(4.5rem, 20vw, 18rem);
  font-weight: var(--w-thin);
  letter-spacing: -0.07em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 0.9;
}

.counter__unit {
  font-size: clamp(1.75rem, 6vw, 5rem);
  font-weight: var(--w-thin);
  color: var(--blue);
  letter-spacing: -0.04em;
  padding-top: 0.2em;
}

.counter__bar {
  max-width: 420px;
  height: 2px;
  margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.counter__bar-fill {
  width: 0%;
  height: 100%;
  background: var(--blue);
  border-radius: 2px;
}

.counter__caption {
  max-width: 44ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.2vw, 1.05rem);
  font-weight: var(--w-reg);
  line-height: 1.55;
}

/* =============================================================
   BENTO — BENEFITS
   ============================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  margin-bottom: clamp(4rem, 10vw, 7rem);
}

.card {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.card:hover { transform: translateY(-4px); }

.card--cream {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}

.card--cream:hover {
  box-shadow: 0 20px 40px -20px rgba(4, 4, 4, 0.18);
}

.card--dark {
  background: var(--dark);
  color: #F5F3EC;
  background-image: radial-gradient(circle at 80% 10%, rgba(0, 64, 255, 0.42), transparent 50%),
                    radial-gradient(circle at 10% 90%, rgba(16, 185, 129, 0.3), transparent 55%);
}

.card--dark:hover {
  box-shadow: 0 20px 40px -20px rgba(0, 64, 255, 0.5);
}

.card--wide {
  grid-column: span 2;
  grid-row: span 2;
  min-height: 520px;
}

.card__title {
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: var(--w-black);
  line-height: 1.05;
  letter-spacing: -0.035em;
  margin-bottom: 1rem;
}

.card--wide .card__title {
  font-size: clamp(2rem, 3.8vw, 3.25rem);
}

.card__title em {
  font-weight: var(--w-light);
  color: var(--blue);
  letter-spacing: -0.025em;
}

.card--dark .card__title em {
  color: var(--green);
  font-weight: var(--w-light);
}

.card__desc {
  font-size: 0.95rem;
  font-weight: var(--w-reg);
  line-height: 1.55;
  color: var(--muted);
  max-width: 42ch;
}

.card--dark .card__desc {
  color: rgba(245, 243, 236, 0.72);
}

.card__visual {
  margin-top: auto;
  padding-top: 2rem;
}

/* Clock (wide card visual) */
.clock {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  margin-left: auto;
  margin-top: 1.5rem;
  box-shadow: inset 0 0 0 12px rgba(0, 64, 255, 0.06),
              0 14px 40px -14px rgba(0, 64, 255, 0.28);
}

.clock__hand {
  position: absolute;
  left: 50%;
  bottom: 50%;
  background: var(--ink);
  border-radius: 4px;
  transform-origin: bottom center;
}

.clock__hand--hour {
  width: 4px;
  height: 36px;
  margin-left: -2px;
  animation: spin-hour 24s linear infinite;
}

.clock__hand--min {
  width: 3px;
  height: 52px;
  margin-left: -1.5px;
  background: var(--blue);
  animation: spin-min 4s linear infinite;
}

.clock__center {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--blue);
}

@keyframes spin-hour { to { transform: rotate(-360deg); } }
@keyframes spin-min  { to { transform: rotate(-360deg); } }

/* Date chips (dark card) */
.date-chips {
  display: flex;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 2rem;
}

.date-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 48px;
  padding: 0 0.5rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: var(--w-semi);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: rgba(245, 243, 236, 0.6);
}

.date-chip--active {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.45);
}

/* Waveform (small card visual) */
.waveform {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
  margin-top: auto;
  padding-top: 1.5rem;
}

.waveform span {
  flex: 1;
  background: var(--blue);
  border-radius: 999px;
  animation: wave 1.4s ease-in-out infinite;
}

.waveform span:nth-child(1) { animation-delay: 0s;   }
.waveform span:nth-child(2) { animation-delay: 0.1s; }
.waveform span:nth-child(3) { animation-delay: 0.2s; }
.waveform span:nth-child(4) { animation-delay: 0.3s; }
.waveform span:nth-child(5) { animation-delay: 0.4s; }
.waveform span:nth-child(6) { animation-delay: 0.5s; }
.waveform span:nth-child(7) { animation-delay: 0.6s; }
.waveform span:nth-child(8) { animation-delay: 0.7s; }
.waveform span:nth-child(9) { animation-delay: 0.8s; }

@keyframes wave {
  0%, 100% { height: 20%; opacity: 0.5; }
  50%      { height: 100%; opacity: 1; }
}

/* =============================================================
   SECTION HEADS
   ============================================================= */
.section-head {
  max-width: 800px;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: var(--w-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.75rem);
  font-weight: var(--w-black);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.section-title em {
  font-weight: var(--w-thin);
  color: var(--blue);
  letter-spacing: -0.035em;
}

/* =============================================================
   HOW IT WORKS
   ============================================================= */
.how {
  /* spacing handled by .section-full padding */
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.step {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 16px 40px -20px rgba(0, 64, 255, 0.3);
}

.step__num {
  font-weight: var(--w-thin);
  font-size: clamp(3rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--blue);
  margin-bottom: 1.25rem;
  letter-spacing: -0.06em;
}

.step__title {
  font-size: 1.3rem;
  font-weight: var(--w-bold);
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.step__desc {
  font-size: 0.92rem;
  font-weight: var(--w-reg);
  line-height: 1.55;
  color: var(--muted);
}

/* =============================================================
   TRAITS — WHAT IS PLANMED.AI
   ============================================================= */
.traits {
  /* spacing handled by .section-full padding */
}

.trait-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.trait {
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: var(--r-lg);
  position: relative;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease),
              border-color 0.3s var(--ease);
}

.trait:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -20px rgba(4, 4, 4, 0.12);
}

.trait--blue {
  background: var(--blue-soft);
}
.trait--blue .trait__label { color: var(--blue); }

.trait--green {
  background: var(--green-soft);
}
.trait--green .trait__label { color: var(--green); }

.trait--neutral {
  background: var(--surface);
  border: 1px solid var(--border);
}
.trait--neutral:hover { border-color: var(--border-strong); }
.trait--neutral .trait__label { color: var(--ink); }

.trait__label {
  font-size: clamp(1.5rem, 2.3vw, 2rem);
  font-weight: var(--w-bold);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: auto;
  padding-bottom: 1.5rem;
  color: var(--ink);
}

.trait__desc {
  font-size: 0.95rem;
  font-weight: var(--w-reg);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}

/* =============================================================
   FREE TIME
   ============================================================= */
.freetime {
  /* spacing handled by .section-full padding */
}

.freetime-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  max-width: 1000px;
  margin: 0 auto;
}

.freetime-card {
  padding: clamp(2rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
  background: transparent;
  border: none;
  text-align: center;
  cursor: default;
}

.freetime-card + .freetime-card {
  border-left: 1px solid var(--border);
}

.freetime-card__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 1.5rem;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--blue);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--ease);
}

.freetime-card:hover .freetime-card__icon {
  transform: translateY(-3px);
}

.freetime-card__icon svg {
  width: 100%;
  height: 100%;
}

.freetime-card__title {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: var(--w-med);
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--ink);
  max-width: 16ch;
  margin: 0 auto;
}

/* =============================================================
   FINAL CTA
   ============================================================= */
.final-cta {
  /* spacing handled by .section-full padding */
}

.final-cta .section-full__inner {
  flex: 1;
  justify-content: center;
}

.final-cta__inner {
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-xl);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 20% 20%, rgba(0, 64, 255, 0.55), transparent 40%),
                    radial-gradient(circle at 85% 80%, rgba(16, 185, 129, 0.35), transparent 45%);
}

.final-cta__inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='1' cy='1' r='1' fill='%23ffffff' opacity='0.06'/></svg>");
  pointer-events: none;
}

.final-cta__title {
  position: relative;
  font-size: clamp(2rem, 5.5vw, 4rem);
  font-weight: var(--w-black);
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 2rem;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.final-cta__title em {
  font-weight: var(--w-light);
  font-size: 0.78em;
  color: #6B8AFF;
  letter-spacing: -0.03em;
  font-style: normal;
}

.final-cta__title em s {
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: #6B8AFF;
}

.final-cta__buttons {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0.25rem;
  border-top: 1px solid var(--border);
}

.footer__note {
  font-size: 0.82rem;
  font-weight: var(--w-reg);
  color: var(--muted);
}

/* =============================================================
   STICKY CTA — mobile-only floating button
   ============================================================= */
.sticky-cta {
  display: none;
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-weight: var(--w-bold);
  text-align: center;
  line-height: 1.15;
  box-shadow: 0 4px 0 rgba(8, 110, 77, 0.35),
              0 14px 32px -6px rgba(16, 185, 129, 0.45);
  transition: transform 0.35s var(--ease),
              opacity 0.35s var(--ease);
}

.sticky-cta__label {
  font-size: 0.92rem;
  font-weight: var(--w-bold);
}

.sticky-cta__sub {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: var(--w-reg);
  font-size: 0.7rem;
  letter-spacing: -0.01em;
  opacity: 0.85;
}

.sticky-cta:active {
  transform: translateY(1px);
}

.sticky-cta.is-hidden {
  opacity: 0;
  transform: translateY(120%);
  pointer-events: none;
}

/* =============================================================
   SCROLL REVEAL
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================================
   RESPONSIVE — tablet
   ============================================================= */
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; min-height: 420px; }

  .steps,
  .trait-grid,
  .freetime-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps .step:last-child,
  .trait-grid .trait:last-child,
  .freetime-grid .freetime-card:last-child {
    grid-column: span 2;
  }

  /* Freetime: reset dividers to handle 2-col wrap */
  .freetime-card + .freetime-card { border-left: none; }
  .freetime-card:nth-child(2) { border-left: 1px solid var(--border); }
  .freetime-card:nth-child(3) {
    border-top: 1px solid var(--border);
    margin-top: 1rem;
    padding-top: calc(clamp(2rem, 4vw, 3rem) + 1rem);
  }
}

/* =============================================================
   RESPONSIVE — mobile
   ============================================================= */
@media (max-width: 640px) {
  .nav { margin-bottom: 2rem; }

  /* Nav button collapses: full label → short, hide sub + arrow */
  .btn--compact-mobile { padding: 0.55rem 0.95rem; }
  .btn--compact-mobile .btn__label--full,
  .btn--compact-mobile .btn__sub--mail,
  .btn--compact-mobile .btn__arrow { display: none; }
  .btn--compact-mobile .btn__label--short { display: inline; }
  .btn--compact-mobile .btn__stack { gap: 0; }

  /* Sticky CTA appears on mobile */
  .sticky-cta { display: flex; }

  /* Add bottom breathing room so final CTA isn't hidden under sticky */
  body { padding-bottom: 5rem; }

  .hero {
    min-height: calc(100vh - 6rem);
    min-height: calc(100svh - 6rem);
    padding-bottom: 1.5rem;
  }
  .hero__title { font-size: clamp(2.5rem, 12vw, 3.75rem); }
  .scroll-hint { margin-top: 1.5rem; width: 44px; height: 44px; }

  .section-full {
    min-height: auto;
    padding: clamp(3rem, 8vw, 5rem) 0 2rem;
  }

  .counter { padding: 0; }
  .counter__value { font-size: clamp(4rem, 22vw, 7rem); }

  .bento,
  .steps,
  .trait-grid,
  .freetime-grid {
    grid-template-columns: 1fr;
  }

  .card--wide,
  .bento .card:last-child,
  .steps .step:last-child,
  .trait-grid .trait:last-child,
  .freetime-grid .freetime-card:last-child {
    grid-column: span 1;
  }

  .card { min-height: 280px; }
  .card--wide { min-height: 360px; }
  .clock { width: 120px; height: 120px; }
  .clock__hand--hour { height: 28px; }
  .clock__hand--min  { height: 40px; }

  /* Freetime: horizontal dividers in single-column layout */
  .freetime-card + .freetime-card,
  .freetime-card:nth-child(2),
  .freetime-card:nth-child(3) {
    border-left: none;
    border-top: 1px solid var(--border);
    margin-top: 0;
    padding-top: clamp(2rem, 4vw, 3rem);
  }

  .final-cta__buttons { flex-direction: column; }
  .final-cta__buttons .btn { width: 100%; }

  .footer { justify-content: center; text-align: center; }
}

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