/* =====================================================
   Elastic Bento-Fluidity Design System
   Topic: Selecting ergonomic habits
   ===================================================== */

:root {
  --hue-deep: #101820;
  --hue-deep-soft: #161f29;
  --hue-deep-card: rgba(255, 255, 255, 0.04);
  --hue-deep-line: rgba(255, 255, 255, 0.08);
  --hue-relief: #D7FF00;
  --hue-relief-soft: rgba(215, 255, 0, 0.14);
  --hue-soft: #B7999C;
  --hue-soft-dim: rgba(183, 153, 156, 0.18);
  --hue-text: #f3f5f7;
  --hue-text-mute: #aab2bd;
  --hue-text-faint: #79808b;
  --hue-warn: #ffb27a;
  --hue-warn-soft: rgba(255, 178, 122, 0.14);

  --font-body: "Albert Sans", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --space-2xs: 0.35rem;
  --space-xs: 0.6rem;
  --space-sm: 1rem;
  --space-md: 1.6rem;
  --space-lg: 2.6rem;
  --space-xl: 4.2rem;
  --space-2xl: 6.4rem;

  --radius-xs: 10px;
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-soft: 0 22px 60px -28px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px rgba(215, 255, 0, 0.18), 0 18px 60px -22px rgba(215, 255, 0, 0.18);

  --bezier-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --bezier-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --tx-fast: 0.25s var(--bezier-soft);
  --tx-mid: 0.45s var(--bezier-soft);

  --bound-narrow: 68rem;
  --bound-wide: 82rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-weight: 380;
  font-size: 1rem;
  overflow-x: hidden;
  line-height: 1.6;
  color: var(--hue-text);
  background: var(--hue-deep);
  background-image:
    radial-gradient(60rem 40rem at 110% -10%, rgba(215, 255, 0, 0.06), transparent 60%),
    radial-gradient(50rem 38rem at -10% 30%, rgba(183, 153, 156, 0.10), transparent 60%),
    radial-gradient(40rem 30rem at 50% 110%, rgba(215, 255, 0, 0.05), transparent 60%);
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; transition: color var(--tx-fast); }
a:hover { color: var(--hue-relief); }

button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

ul { list-style: none; }

::selection { background: var(--hue-relief); color: var(--hue-deep); }

/* =====================================================
   Layout helpers
   ===================================================== */

.outer-frame {
  width: 100%;
  max-width: var(--bound-wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.4rem);
}

.outer-frame-narrow {
  width: 100%;
  max-width: var(--bound-narrow);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.4rem);
}

.section-block { padding: clamp(2.6rem, 6vw, 5rem) 0; position: relative; }

.section-block-tight { padding: clamp(2rem, 4vw, 3.4rem) 0; }

.section-heading {
  font-size: clamp(1.6rem, 3.4vw, 2.6rem);
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-sm);
}

.section-heading-large {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hue-relief);
  background: var(--hue-relief-soft);
  border: 1px solid rgba(215, 255, 0, 0.25);
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-sm);
}

.section-lede {
  color: var(--hue-text-mute);
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
  max-width: 44rem;
}

.center-stack { text-align: center; display: flex; flex-direction: column; align-items: center; }
.center-stack .section-lede { margin-left: auto; margin-right: auto; }

/* =====================================================
   Header — non-sticky, overlay nav, burger always last
   ===================================================== */

.top-bar {
  position: relative;
  z-index: 40;
  padding: clamp(0.9rem, 2.4vw, 1.4rem) 0;
  border-bottom: 1px solid var(--hue-deep-line);
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.92), rgba(16, 24, 32, 0.65));
  backdrop-filter: blur(14px);
}

.top-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 760;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.brand-mark-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--hue-relief);
  box-shadow: 0 0 0 6px rgba(215, 255, 0, 0.12);
  animation: dotPulse 3.4s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); }
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 1.6vw, 1.2rem);
}

.primary-nav-link {
  font-size: 0.92rem;
  font-weight: 520;
  color: var(--hue-text-mute);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-xs);
  transition: color var(--tx-fast), background var(--tx-fast);
  white-space: nowrap;
}

.primary-nav-link:hover,
.primary-nav-link[aria-current="page"] {
  color: var(--hue-relief);
  background: rgba(215, 255, 0, 0.06);
}

.burger-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hue-deep-line);
  position: relative;
  margin-left: auto;
  transition: background var(--tx-fast), border-color var(--tx-fast);
}

.burger-toggle:hover { background: rgba(215, 255, 0, 0.08); border-color: rgba(215, 255, 0, 0.25); }

.burger-bar,
.burger-bar::before,
.burger-bar::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  background: var(--hue-text);
  border-radius: 2px;
  position: absolute;
  left: 50%;
  margin-left: -0.55rem;
  transition: transform 0.3s var(--bezier-soft), opacity 0.2s ease;
}

.burger-bar { top: 50%; margin-top: -1px; }
.burger-bar::before { content: ""; top: -7px; left: 0; margin-left: 0; }
.burger-bar::after { content: ""; top: 7px; left: 0; margin-left: 0; }

@media (max-width: 1023px) {
  .primary-nav { display: none; }
  .burger-toggle { display: inline-flex; }
}

/* Drawer overlay menu — opens separately from header */

.menu-curtain {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 80;
}

.menu-curtain.is-active { opacity: 1; visibility: visible; }

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 86vw);
  background: linear-gradient(180deg, #131c26 0%, #0c141d 100%);
  border-left: 1px solid var(--hue-deep-line);
  transform: translateX(100%);
  transition: transform 0.45s var(--bezier-bounce);
  z-index: 90;
  display: flex;
  flex-direction: column;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  overflow-y: auto;
}

.menu-panel.is-active { transform: translateX(0); }

.menu-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.menu-panel-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hue-text-faint);
}

.menu-close {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hue-deep-line);
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-link-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: var(--space-sm);
}

.menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  font-size: 1.05rem;
  font-weight: 540;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background var(--tx-fast), border-color var(--tx-fast);
}

.menu-link:hover,
.menu-link[aria-current="page"] {
  background: rgba(215, 255, 0, 0.06);
  border-color: rgba(215, 255, 0, 0.18);
  color: var(--hue-relief);
}

.menu-link-meta {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--hue-text-faint);
  letter-spacing: 0.1em;
}

.menu-foot {
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--hue-deep-line);
  font-size: 0.84rem;
  color: var(--hue-text-mute);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

body.is-locked { overflow: hidden; }

/* =====================================================
   Hero / Banner — image under text background
   ===================================================== */

.banner-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  isolation: isolate;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.6rem, 6vw, 5rem);
}

.banner-canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--hue-deep);
}

.banner-canvas::before,
.banner-canvas::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: blobDrift 22s ease-in-out infinite;
}

.banner-canvas::before {
  width: 36rem; height: 36rem;
  background: radial-gradient(circle, rgba(215, 255, 0, 0.32), transparent 70%);
  top: -10rem; left: -8rem;
}

.banner-canvas::after {
  width: 28rem; height: 28rem;
  background: radial-gradient(circle, rgba(183, 153, 156, 0.45), transparent 70%);
  bottom: -8rem; right: -6rem;
  animation-delay: -10s;
}

@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(2rem, 1.5rem) scale(1.06); }
}

.banner-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.28;
  z-index: -1;
  filter: saturate(0.85) contrast(1.05);
}

.banner-photo + .banner-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 24, 32, 0.55) 0%, rgba(16, 24, 32, 0.85) 70%, rgba(16, 24, 32, 0.95) 100%);
}

.banner-frame {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  max-width: var(--bound-wide);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.4rem);
}

.banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(215, 255, 0, 0.35);
  background: var(--hue-relief-soft);
  color: var(--hue-relief);
  border-radius: var(--radius-pill);
  width: max-content;
}

.banner-headline {
  font-size: clamp(2.2rem, 6.4vw, 4.6rem);
  font-weight: 820;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 22ch;
}

.banner-headline em {
  font-style: normal;
  background: linear-gradient(120deg, var(--hue-relief), var(--hue-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.banner-sub {
  color: var(--hue-text-mute);
  max-width: 46ch;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
}

.banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
}

.banner-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
  max-width: 38rem;
}

.banner-stat-card {
  background: var(--hue-deep-card);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-sm);
  padding: var(--space-sm);
  backdrop-filter: blur(10px);
}

.banner-stat-num {
  font-size: 1.6rem;
  font-weight: 760;
  color: var(--hue-relief);
}

.banner-stat-label {
  font-size: 0.82rem;
  color: var(--hue-text-mute);
  margin-top: 0.2rem;
}

/* =====================================================
   Buttons
   ===================================================== */

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform var(--tx-fast), background var(--tx-fast), color var(--tx-fast), box-shadow var(--tx-fast);
  border: 1px solid transparent;
}

.action-link-primary {
  background: var(--hue-relief);
  color: var(--hue-deep);
  box-shadow: 0 0 0 1px rgba(215, 255, 0, 0.5), 0 18px 50px -16px rgba(215, 255, 0, 0.5);
}

.action-link-primary:hover {
  transform: translateY(-2px);
  color: var(--hue-deep);
  background: #e7ff4a;
}

.action-link-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--hue-text);
  border-color: var(--hue-deep-line);
}

.action-link-ghost:hover {
  background: rgba(215, 255, 0, 0.08);
  border-color: rgba(215, 255, 0, 0.3);
  color: var(--hue-relief);
}

.action-link-soft {
  background: var(--hue-soft-dim);
  color: var(--hue-text);
  border-color: rgba(183, 153, 156, 0.32);
}

.action-link-soft:hover {
  background: rgba(183, 153, 156, 0.28);
  color: var(--hue-text);
}

/* =====================================================
   Bento grid cards
   ===================================================== */

.bento-grid {
  display: grid;
  gap: clamp(0.8rem, 2vw, 1.2rem);
  grid-template-columns: repeat(12, 1fr);
}

.bento-cell {
  position: relative;
  background: var(--hue-deep-card);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-md);
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  backdrop-filter: blur(14px);
  transition: transform var(--tx-mid), border-color var(--tx-fast), box-shadow var(--tx-fast);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow: hidden;
}

.bento-cell::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(215, 255, 0, 0.18), transparent 50%);
  opacity: 0;
  transition: opacity var(--tx-fast);
  pointer-events: none;
  z-index: -1;
}

.bento-cell:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(215, 255, 0, 0.25);
  box-shadow: var(--shadow-soft);
}

.bento-cell:hover::before { opacity: 1; }

.bento-cell-title {
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.25;
}

.bento-cell-text {
  color: var(--hue-text-mute);
  font-size: 0.95rem;
}

.bento-cell-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hue-relief);
}

.bento-cell-icon {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius-xs);
  background: var(--hue-relief-soft);
  border: 1px solid rgba(215, 255, 0, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--hue-relief);
}

.bento-cell-icon-soft {
  background: var(--hue-soft-dim);
  border-color: rgba(183, 153, 156, 0.3);
  color: var(--hue-soft);
}

.bento-cell-img {
  width: 100%;
  height: 14rem;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 0.4rem;
}

.bento-cell-img-tall { height: 18rem; }

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-9 { grid-column: span 9; }
.span-12 { grid-column: span 12; }

@media (max-width: 1023px) {
  .span-3, .span-4, .span-5 { grid-column: span 6; }
  .span-7, .span-8, .span-9 { grid-column: span 12; }
}

@media (max-width: 640px) {
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9 { grid-column: span 12; }
}

/* =====================================================
   Featured split card with image background under text
   ===================================================== */

.split-stage {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hue-deep-line);
  isolation: isolate;
}

.split-stage-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: 0.55;
}

.split-stage-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, rgba(16, 24, 32, 0.92) 0%, rgba(16, 24, 32, 0.55) 60%, rgba(16, 24, 32, 0.92) 100%);
}

.split-stage-frame {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  padding: clamp(1.6rem, 4vw, 3rem);
}

.split-stage-frame .section-heading-large {
  max-width: 18ch;
}

/* =====================================================
   Pulse list — vertical timeline of habits
   ===================================================== */

.pulse-list {
  display: grid;
  gap: var(--space-sm);
}

.pulse-row {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: var(--space-md);
  align-items: start;
  padding: var(--space-sm);
  background: var(--hue-deep-card);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-md);
  transition: transform var(--tx-fast), border-color var(--tx-fast);
}

.pulse-row:hover {
  transform: translateX(4px);
  border-color: rgba(215, 255, 0, 0.25);
}

.pulse-row-clock {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--hue-relief);
  background: var(--hue-relief-soft);
  border: 1px solid rgba(215, 255, 0, 0.22);
  padding: 0.3rem 0.5rem;
  border-radius: var(--radius-xs);
  text-align: center;
  width: max-content;
}

.pulse-row-title {
  font-weight: 660;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.pulse-row-text {
  color: var(--hue-text-mute);
  font-size: 0.92rem;
}

@media (max-width: 540px) {
  .pulse-row { grid-template-columns: 1fr; }
}

/* =====================================================
   Habit Architect — drag and drop preview workspace
   ===================================================== */

.architect-stage {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-md);
  background: var(--hue-deep-card);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-lg);
  padding: clamp(1rem, 3vw, 2rem);
}

@media (max-width: 900px) {
  .architect-stage { grid-template-columns: 1fr; }
}

.tile-tray {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 30rem;
  overflow-y: auto;
  padding-right: 0.4rem;
}

.tile-tray-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hue-text-faint);
  margin-bottom: 0.4rem;
}

.habit-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  cursor: grab;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  transition: transform var(--tx-fast), border-color var(--tx-fast), background var(--tx-fast);
}

.habit-tile:active { cursor: grabbing; }

.habit-tile.is-dragging { opacity: 0.5; }

.habit-tile:hover {
  border-color: rgba(215, 255, 0, 0.35);
  background: rgba(215, 255, 0, 0.04);
  transform: translateY(-1px);
}

.habit-tile-name { font-weight: 580; font-size: 0.95rem; }
.habit-tile-zone { font-size: 0.74rem; color: var(--hue-relief); letter-spacing: 0.12em; text-transform: uppercase; }

.timeline-board {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.8rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.18);
  border: 1px dashed var(--hue-deep-line);
  border-radius: var(--radius-sm);
  padding: 0.6rem;
  min-height: 22rem;
}

.timeline-slot {
  border: 1px dashed rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xs);
  padding: 0.5rem 0.4rem;
  font-size: 0.7rem;
  color: var(--hue-text-faint);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 4rem;
  transition: background var(--tx-fast), border-color var(--tx-fast);
}

.timeline-slot.is-target {
  background: var(--hue-relief-soft);
  border-color: rgba(215, 255, 0, 0.5);
}

.placed-tile {
  background: var(--hue-relief);
  color: var(--hue-deep);
  border-radius: var(--radius-xs);
  padding: 0.3rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  word-break: break-word;
}

.placed-tile:hover { background: #e7ff4a; }

.architect-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--hue-text-mute);
}

@media (max-width: 1023px) {
  .timeline-grid { grid-template-columns: repeat(6, 1fr); }
}

@media (max-width: 540px) {
  .timeline-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================
   Sandbox — before/after slider
   ===================================================== */

.compare-stage {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hue-deep-line);
  background: #0a121a;
  aspect-ratio: 16 / 9;
  user-select: none;
  touch-action: none;
}

.compare-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.8rem;
  padding: var(--space-md);
}

.compare-layer-before {
  background: radial-gradient(circle at 30% 50%, rgba(255, 178, 122, 0.2), transparent 60%), #161f29;
}

.compare-layer-after {
  background: radial-gradient(circle at 70% 50%, rgba(215, 255, 0, 0.2), transparent 60%), #0d1620;
  clip-path: inset(0 0 0 50%);
  transition: clip-path 0.05s linear;
}

.compare-layer-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: absolute;
  top: 1rem;
}

.compare-layer-tag-before { left: 1rem; color: var(--hue-warn); border-color: rgba(255, 178, 122, 0.3); }
.compare-layer-tag-after { right: 1rem; color: var(--hue-relief); border-color: rgba(215, 255, 0, 0.3); }

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--hue-relief);
  z-index: 4;
  pointer-events: none;
}

.compare-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--hue-relief);
  color: var(--hue-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 0 0 4px rgba(215, 255, 0, 0.18);
}

.skeleton-figure {
  width: 8rem;
  height: 14rem;
  position: relative;
}

.skeleton-figure svg { width: 100%; height: 100%; }

.compare-caption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--hue-text);
  font-weight: 580;
}

.compare-caption span {
  display: block;
  font-size: 0.78rem;
  color: var(--hue-text-mute);
  font-weight: 400;
  margin-top: 0.2rem;
}

@media (max-width: 540px) {
  .compare-stage { aspect-ratio: 4 / 5; }
  .skeleton-figure { width: 6rem; height: 10rem; }
}

/* =====================================================
   Tracker — digital garden
   ===================================================== */

.garden-board {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .garden-board { grid-template-columns: 1fr; }
}

.tree-canvas {
  background: linear-gradient(180deg, #0d1620 0%, #131c26 100%);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: relative;
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow: hidden;
}

.tree-canvas-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--hue-text-mute);
}

.tree-canvas-num {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  color: var(--hue-relief);
  letter-spacing: -0.02em;
}

.tree-svg-wrap {
  flex: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.tree-svg-wrap svg { width: 100%; max-width: 22rem; height: auto; }

[data-leaf] {
  opacity: 0.18;
  transform-origin: center;
  transform: scale(0.6);
  transition: opacity 0.5s var(--bezier-bounce), transform 0.5s var(--bezier-bounce);
}

[data-leaf].is-grown {
  opacity: 1;
  transform: scale(1);
}

.tracker-side {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.tracker-input-group {
  background: var(--hue-deep-card);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.tracker-input-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.tracker-input-row label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hue-text-faint);
}

.tracker-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-xs);
  padding: 0.7rem 0.9rem;
  font: inherit;
  color: var(--hue-text);
  transition: border-color var(--tx-fast);
}

.tracker-input:focus { outline: none; border-color: rgba(215, 255, 0, 0.45); }

.tracker-log {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 16rem;
  overflow-y: auto;
}

.tracker-log-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-xs);
  padding: 0.7rem 0.9rem;
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.tracker-log-item-time { color: var(--hue-text-faint); font-size: 0.78rem; font-family: var(--font-mono); }

.tracker-log-empty {
  font-size: 0.88rem;
  color: var(--hue-text-mute);
  text-align: center;
  padding: 1rem;
}

/* =====================================================
   Products
   ===================================================== */

.product-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: var(--space-md);
}

.product-card {
  background: var(--hue-deep-card);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--tx-mid), border-color var(--tx-fast);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(215, 255, 0, 0.25);
}

.product-card-img-frame {
  position: relative;
  width: 100%;
  height: 14rem;
  overflow: hidden;
  background: #0a121a;
}

.product-card-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--bezier-soft);
}

.product-card:hover .product-card-img-frame img { transform: scale(1.04); }

.product-card-body {
  padding: var(--space-sm);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.product-card-title { font-size: 1.1rem; font-weight: 660; }
.product-card-text { color: var(--hue-text-mute); font-size: 0.92rem; flex: 1; }
.product-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.4rem;
  border-top: 1px solid var(--hue-deep-line);
}

.product-card-price {
  font-size: 1.1rem;
  font-weight: 720;
  color: var(--hue-relief);
}

/* =====================================================
   Contact + Form
   ===================================================== */

.contact-board {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .contact-board { grid-template-columns: 1fr; }
}

.contact-info-card {
  background: var(--hue-deep-card);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.contact-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--hue-deep-line);
}

.contact-info-row:last-child { border-bottom: none; }

.contact-info-row-label {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hue-text-faint);
  display: block;
  margin-bottom: 0.15rem;
}

.contact-info-row-value { font-size: 0.98rem; }

.contact-form {
  background: var(--hue-deep-card);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hue-text-faint);
}

.form-input,
.form-area {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--hue-text);
  transition: border-color var(--tx-fast);
}

.form-area { min-height: 8rem; resize: vertical; font-family: inherit; }

.form-input:focus,
.form-area:focus { outline: none; border-color: rgba(215, 255, 0, 0.45); }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--hue-text-mute);
}

.consent-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--hue-relief);
  flex-shrink: 0;
}

.map-frame {
  width: 100%;
  height: 18rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--hue-deep-line);
  margin-top: var(--space-md);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.4) contrast(1.05);
}

/* =====================================================
   Article (legal) pages — no images
   ===================================================== */

.article-stack {
  max-width: 56rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.article-stack h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.article-stack h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 720;
  margin-top: var(--space-md);
  color: var(--hue-relief);
}

.article-stack p,
.article-stack li { color: var(--hue-text-mute); font-size: 1rem; }

.article-stack ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 1.2rem;
}

.article-stack ul li { list-style: disc; }

.article-stack .date {
  font-size: 0.85rem;
  color: var(--hue-text-faint);
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

.article-stack .article-card {
  background: var(--hue-deep-card);
  border: 1px solid var(--hue-deep-line);
  border-radius: var(--radius-md);
  padding: var(--space-md);
}

/* =====================================================
   Footer
   ===================================================== */

.bottom-bar {
  border-top: 1px solid var(--hue-deep-line);
  background: linear-gradient(180deg, rgba(16, 24, 32, 0.7), rgba(8, 12, 18, 0.95));
  padding: clamp(1.6rem, 4vw, 2.4rem) 0 clamp(1rem, 2vw, 1.4rem);
  margin-top: var(--space-lg);
}

.bottom-bar-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 900px) {
  .bottom-bar-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .bottom-bar-grid { grid-template-columns: 1fr; }
}

.bottom-bar-block-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hue-relief);
  margin-bottom: 0.7rem;
}

.bottom-bar-block-text {
  color: var(--hue-text-mute);
  font-size: 0.92rem;
  margin-top: 0.5rem;
}

.bottom-bar-list { display: flex; flex-direction: column; gap: 0.45rem; }

.bottom-bar-list a {
  font-size: 0.92rem;
  color: var(--hue-text-mute);
}

.bottom-bar-list a:hover { color: var(--hue-relief); }

.bottom-bar-rule {
  border: none;
  height: 1px;
  background: var(--hue-deep-line);
  margin: var(--space-md) 0;
}

.bottom-bar-foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--hue-text-faint);
}

/* =====================================================
   Cookie popup banner
   ===================================================== */

.cookie-bar {
  position: fixed;
  left: 50%;
  bottom: 1rem;
  transform: translateX(-50%) translateY(140%);
  width: min(40rem, calc(100vw - 2rem));
  background: linear-gradient(135deg, #131c26 0%, #0c141d 100%);
  border: 1px solid rgba(215, 255, 0, 0.25);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  z-index: 70;
  box-shadow: var(--shadow-soft);
  transition: transform 0.5s var(--bezier-bounce);
}

.cookie-bar.is-active { transform: translateX(-50%) translateY(0); }

.cookie-bar-text {
  flex: 1 1 16rem;
  font-size: 0.9rem;
  color: var(--hue-text-mute);
}

.cookie-bar-text a { color: var(--hue-relief); }

/* =====================================================
   404
   ===================================================== */

.error-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  text-align: center;
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.error-num {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 880;
  line-height: 1;
  background: linear-gradient(120deg, var(--hue-relief), var(--hue-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.05em;
}

.error-text {
  color: var(--hue-text-mute);
  max-width: 36rem;
}

/* =====================================================
   Reveal-on-scroll
   ===================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--bezier-soft), transform 0.7s var(--bezier-soft);
  will-change: opacity, transform;
}

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

/* =====================================================
   Misc utility
   ===================================================== */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mini-tag {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hue-text-mute);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--hue-deep-line);
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-pill);
}

.divider-soft {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hue-deep-line), transparent);
  margin: var(--space-md) 0;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hue-deep-line);
}

.stack-top-xs { margin-top: var(--space-xs); }
.stack-top-sm { margin-top: var(--space-sm); }
.stack-top-md { margin-top: var(--space-md); }
.stack-top-lg { margin-top: var(--space-lg); }

.text-center { text-align: center; }

.foot-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  justify-content: center;
  margin-top: var(--space-md);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
