/* =========================================================
   BibTime marketing site
   Palette & theme system mirror the BibTime product:
   - Light default (warm off-white + sage green + dusty rose)
   - Dark via [data-theme="dark"] (deep warm slate)
   - System follows prefers-color-scheme when no data-theme set
   ========================================================= */

:root {
  /* Light theme tokens */
  --bg:           oklch(97.5% 0.006 85);
  --bg-elev:      oklch(99%   0.004 85);
  --bg-sunk:     oklch(94.5% 0.008 85);
  --bg-card:      oklch(99%   0.003 85);
  --fg:           oklch(25%   0.015 260);
  --fg-dim:       oklch(40%   0.015 260);
  --fg-faint:     oklch(55%   0.012 260);
  --line:         oklch(88%   0.01  80);
  --line-strong:  oklch(82%   0.012 80);

  --primary:         oklch(55% 0.1 160);
  --primary-hover:   oklch(50% 0.11 160);
  --primary-fg:      oklch(98% 0.01 160);
  --primary-soft:    oklch(55% 0.1 160 / 0.12);
  --primary-softer:  oklch(55% 0.1 160 / 0.06);

  --secondary:       oklch(62% 0.1 12);
  --secondary-soft:  oklch(62% 0.1 12 / 0.12);

  --accent:          oklch(55% 0.08 260);
  --success:         oklch(62% 0.1 155);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.04);
  --shadow-md: 0 4px 16px oklch(0% 0 0 / 0.05);
  --shadow-lg: 0 20px 50px -20px oklch(35% 0.04 260 / 0.25);

  --mono:   "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans:   "DM Sans", system-ui, -apple-system, sans-serif;

  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.625rem;
  --radius-xl: 1rem;

  --page-max: 1220px;
  --page-pad: clamp(20px, 4vw, 56px);
  --section-gap: clamp(80px, 12vh, 140px);
}

/* Dark — via data-theme */
html[data-theme="dark"] {
  --bg:           oklch(20% 0.01 260);
  --bg-elev:      oklch(24% 0.012 260);
  --bg-sunk:      oklch(17% 0.008 260);
  --bg-card:      oklch(24% 0.012 260);
  --fg:           oklch(92% 0.008 80);
  --fg-dim:       oklch(75% 0.01 80);
  --fg-faint:     oklch(60% 0.012 260);
  --line:         oklch(32% 0.015 260);
  --line-strong:  oklch(40% 0.018 260);

  --primary:         oklch(65% 0.1 160);
  --primary-hover:   oklch(70% 0.11 160);
  --primary-fg:      oklch(15% 0.02 160);
  --primary-soft:    oklch(65% 0.1 160 / 0.18);
  --primary-softer:  oklch(65% 0.1 160 / 0.08);

  --secondary:       oklch(70% 0.09 12);
  --secondary-soft:  oklch(70% 0.09 12 / 0.18);

  --accent:          oklch(65% 0.08 260);
  --success:         oklch(65% 0.1 155);

  --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.3);
  --shadow-md: 0 4px 16px oklch(0% 0 0 / 0.35);
  --shadow-lg: 0 24px 60px -20px oklch(0% 0 0 / 0.55);
}

/* System — when no data-theme is set, follow OS preference */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    --bg:           oklch(20% 0.01 260);
    --bg-elev:      oklch(24% 0.012 260);
    --bg-sunk:      oklch(17% 0.008 260);
    --bg-card:      oklch(24% 0.012 260);
    --fg:           oklch(92% 0.008 80);
    --fg-dim:       oklch(75% 0.01 80);
    --fg-faint:     oklch(60% 0.012 260);
    --line:         oklch(32% 0.015 260);
    --line-strong:  oklch(40% 0.018 260);

    --primary:        oklch(65% 0.1 160);
    --primary-hover:  oklch(70% 0.11 160);
    --primary-fg:     oklch(15% 0.02 160);
    --primary-soft:   oklch(65% 0.1 160 / 0.18);
    --primary-softer: oklch(65% 0.1 160 / 0.08);

    --secondary:      oklch(70% 0.09 12);
    --secondary-soft: oklch(70% 0.09 12 / 0.18);

    --accent:         oklch(65% 0.08 260);
    --success:        oklch(65% 0.1 155);

    --shadow-sm: 0 1px 2px oklch(0% 0 0 / 0.3);
    --shadow-md: 0 4px 16px oklch(0% 0 0 / 0.35);
    --shadow-lg: 0 24px 60px -20px oklch(0% 0 0 / 0.55);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
  transition: background 260ms ease, color 260ms ease;
}

body { overflow-x: hidden; }

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: color 180ms ease;
}

a:hover { color: var(--primary); }

::selection {
  background: var(--primary-soft);
  color: var(--fg);
}

button { font: inherit; cursor: pointer; }

em {
  font-family: var(--sans);
  font-style: italic;
  font-weight: 400;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 14px var(--page-pad);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.brand:hover { color: var(--primary); }

.brand-mark {
  color: var(--primary);
  transition: transform 500ms cubic-bezier(.2, .8, .2, 1);
}

.brand:hover .brand-mark { transform: rotate(360deg); }

.nav {
  display: flex;
  gap: 28px;
  justify-content: center;
  font-size: 14.5px;
  color: var(--fg-dim);
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 4px 0;
}

.nav a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 220ms ease;
}

.nav a:hover { color: var(--fg); }
.nav a:hover::before { width: 100%; }

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

.nav-cta { padding: 9px 16px; }

@media (max-width: 900px) {
  .nav { display: none; }
  .site-header { grid-template-columns: auto 1fr auto; }
}
@media (max-width: 560px) {
  .nav-cta { display: none; }
}

/* Theme toggle ---------------------------------------- */
.theme-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  background: var(--bg-card);
  gap: 2px;
}

.theme-toggle button {
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--fg-faint);
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: color 180ms ease, background 180ms ease;
}

.theme-toggle button:hover { color: var(--fg); }

.theme-toggle button.is-active {
  background: var(--primary-soft);
  color: var(--primary);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-border: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--btn-border);
  border-radius: var(--radius-md);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.2;
  transition:
    transform 140ms ease,
    background 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn-arrow { transition: transform 260ms cubic-bezier(.2, .8, .2, 1); }
.btn:hover .btn-arrow { transform: translateX(3px); }

.btn-primary {
  --btn-bg: var(--primary);
  --btn-fg: var(--primary-fg);
  --btn-border: var(--primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--primary-fg);
  box-shadow: 0 6px 20px -6px var(--primary-soft);
}

.btn-ghost {
  --btn-bg: transparent;
  --btn-border: var(--line-strong);
  color: var(--fg);
}

.btn-ghost:hover {
  background: var(--bg-sunk);
  border-color: var(--fg-faint);
  color: var(--fg);
}

.btn-large {
  padding: 13px 20px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: var(--section-gap) var(--page-pad);
  position: relative;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(44px, 5vw, 72px);
}

.section-label {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.section-head h2 {
  margin: 0 0 18px;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--fg);
}

.head-em {
  font-weight: 400;
  color: var(--fg-dim);
}

.head-em em {
  font-style: italic;
  font-weight: 400;
}

.section-lede {
  margin: 0;
  font-size: clamp(15.5px, 1.15vw, 17.5px);
  color: var(--fg-dim);
  max-width: 60ch;
  line-height: 1.55;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
  padding: clamp(56px, 9vh, 108px) var(--page-pad) clamp(72px, 10vh, 128px);
  max-width: var(--page-max);
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40px -10% 20%;
  background:
    radial-gradient(600px 400px at 80% 30%, var(--primary-softer), transparent 60%),
    radial-gradient(500px 350px at 10% 80%, var(--secondary-soft), transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.eyebrow {
  margin: 0 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-dim);
  box-shadow: var(--shadow-sm);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--primary-soft); }
  50%      { box-shadow: 0 0 0 8px transparent; }
}

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(40px, 6.5vw, 78px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--fg);
}

.hero-em {
  display: block;
  margin-top: 6px;
  color: var(--fg-dim);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero-em em {
  font-weight: 400;
}

.lede {
  margin: 0 0 32px;
  max-width: 54ch;
  color: var(--fg-dim);
  font-size: clamp(16px, 1.25vw, 18.5px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  list-style: none;
  margin: 0;
  padding: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 18px;
  border-right: 1px solid var(--line);
}

.hero-stats li:last-child { border-right: none; padding-right: 0; }
.hero-stats li + li { padding-left: 18px; }

.stat-value {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-size: 13px;
  color: var(--fg-faint);
  line-height: 1.35;
}

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

@media (max-width: 520px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .hero-stats li {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 14px;
  }
  .hero-stats li + li { padding-left: 0; }
  .hero-stats li:last-child { border-bottom: none; padding-bottom: 0; }
}

/* Hero preview card --------------------------------- */
.hero-preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: transform 400ms cubic-bezier(.2, .8, .2, 1);
}

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

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sunk);
}

.preview-head-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 0 4px var(--secondary-soft);
  animation: pulse-live 1.6s ease-in-out infinite;
}

@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 4px var(--secondary-soft); }
  50%      { box-shadow: 0 0 0 7px transparent; }
}

.preview-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--fg);
}

.preview-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--fg-faint);
  letter-spacing: 0.01em;
}

/* Hero carousel ------------------------------------- */
.carousel-track {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  aspect-ratio: 4 / 3;
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms ease;
  pointer-events: none;
}

.carousel-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: var(--bg-sunk);
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line-strong);
  cursor: pointer;
  transition: background 220ms ease, transform 220ms ease, width 220ms ease;
}

.carousel-dot:hover {
  background: var(--fg-faint);
}

.carousel-dot.is-active {
  background: var(--primary);
  width: 22px;
  border-radius: 4px;
}

.carousel-dot:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
}

.carousel-slide.is-active img {
  cursor: zoom-in;
}

/* Lightbox ------------------------------------------ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background: rgba(10, 12, 16, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: lightbox-fade-in 200ms ease;
}

.lightbox[hidden] { display: none; }

@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-figure {
  margin: 0;
  max-width: min(1400px, 100%);
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  background: var(--bg-card);
  pointer-events: auto;
}

.lightbox-caption {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.32);
}

.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.lightbox-close {
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  font-size: 22px;
}

.lightbox-prev { left: clamp(12px, 2vw, 24px); }
.lightbox-next { right: clamp(12px, 2vw, 24px); }
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover { transform: translateY(-50%) translateX(-2px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(2px); }

@media (max-width: 640px) {
  .lightbox-prev,
  .lightbox-next { width: 40px; height: 40px; }
}

.preview-caption {
  margin: 0;
  padding: 0 8px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-faint);
  font-style: italic;
}

/* =========================================================
   ALL-IN-ONE BAND
   ========================================================= */
.band {
  background: var(--bg-sunk);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  padding: 44px var(--page-pad);
  display: grid;
  gap: 20px;
  align-items: center;
}

.band-title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-align: center;
}

.band-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  font-size: 14px;
  color: var(--fg-dim);
}

.band-flow li {
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-card);
  font-weight: 500;
}

.band-flow .band-arrow {
  border: none;
  padding: 7px 0;
  background: transparent;
  color: var(--primary);
  font-weight: 500;
}

/* =========================================================
   FEATURES
   ========================================================= */
.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.feat:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.feat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 6px;
}

.feat h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  color: var(--fg);
}

.feat p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

.feat-highlight {
  background: linear-gradient(180deg, var(--primary-softer), var(--bg-card) 70%);
  border-color: var(--primary-soft);
}

.feat-highlight .feat-icon {
  background: var(--primary);
  color: var(--primary-fg);
}

@media (max-width: 1080px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* =========================================================
   HOW IT WORKS
   ========================================================= */
.how-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.how-track::before {
  content: "";
  position: absolute;
  left: 44px;
  right: 44px;
  top: 28px;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    var(--line-strong) 0 6px,
    transparent 6px 12px
  );
  z-index: 0;
}

.how-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 4px;
}

.how-number {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  background: var(--bg-card);
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  margin-bottom: 6px;
}

.how-step h3 {
  margin: 2px 0 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--fg);
}

.how-step p {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

@media (max-width: 960px) {
  .how-track { grid-template-columns: 1fr; gap: 28px; }
  .how-track::before { display: none; }
  .how-step {
    padding-left: 72px;
    position: relative;
    min-height: 56px;
  }
  .how-number {
    position: absolute;
    left: 0;
    top: 0;
    margin: 0;
  }
}

/* =========================================================
   HARDWARE
   ========================================================= */
.hw-options {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.hw-opt {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.hw-opt:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hw-opt-featured {
  background: linear-gradient(180deg, var(--primary-softer), var(--bg-card) 65%);
  border-color: var(--primary-soft);
  box-shadow: var(--shadow-md);
}

.hw-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--bg-sunk);
  color: var(--fg-dim);
  border: 1px solid var(--line-strong);
  text-transform: uppercase;
}

.hw-tag-featured {
  background: var(--primary);
  color: var(--primary-fg);
  border-color: var(--primary);
}

.hw-opt h3 {
  margin: 8px 0 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--fg);
}

.hw-price {
  margin: 0;
  font-size: 15px;
  color: var(--fg-dim);
}

.hw-price strong {
  color: var(--fg);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hw-price span {
  color: var(--fg-faint);
  font-size: 14px;
  margin-left: 4px;
}

.hw-body {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
}

.hw-bullets {
  list-style: none;
  margin: 4px 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--fg);
}

.hw-bullets li {
  position: relative;
  padding-left: 22px;
}

.hw-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg) translateY(-2px);
  transform-origin: center;
  border-radius: 1px;
}

.hw-note {
  margin: 28px auto 0;
  max-width: 640px;
  text-align: center;
  color: var(--fg-dim);
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 960px) {
  .hw-options { grid-template-columns: 1fr; }
}

/* =========================================================
   PRICING
   ========================================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.price-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.price-card header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--fg-dim);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.price-tag {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-amount {
  font-size: 34px;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.price-term {
  font-size: 14px;
  color: var(--fg-faint);
}

.price-desc {
  margin: 0;
  color: var(--fg-dim);
  font-size: 14.5px;
  line-height: 1.55;
  flex-shrink: 0;
}

.price-bullets {
  list-style: none;
  margin: 6px 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--fg);
  flex: 1;
}

.price-bullets li {
  position: relative;
  padding-left: 20px;
}

.price-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.price-card-featured {
  border: 1px solid var(--primary);
  background: linear-gradient(180deg, var(--primary-softer), var(--bg-card) 65%);
  box-shadow: var(--shadow-md);
  position: relative;
}

.price-card-featured::before {
  content: "Most popular";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card-featured { order: -1; }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 320px at 15% 0%, var(--primary-softer), transparent 60%),
    radial-gradient(400px 240px at 100% 100%, var(--secondary-soft), transparent 60%);
  pointer-events: none;
  opacity: 0.9;
}

.contact-copy {
  padding: clamp(28px, 4vw, 48px);
  position: relative;
  z-index: 1;
}

.contact-copy h2 {
  margin: 14px 0 18px;
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--fg);
}

.contact-copy p {
  margin: 0 0 26px;
  color: var(--fg-dim);
  font-size: 16px;
  max-width: 50ch;
  line-height: 1.55;
}

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

.contact-facts {
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg-sunk);
  border-left: 1px solid var(--line);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.contact-facts dl {
  margin: 0;
  width: 100%;
  display: grid;
  gap: 0;
}

.contact-facts dl > div {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  align-items: baseline;
}

.contact-facts dl > div:last-child { border-bottom: none; }

.contact-facts dt {
  color: var(--fg-faint);
  font-weight: 500;
}

.contact-facts dd {
  margin: 0;
  color: var(--fg);
  font-weight: 500;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--success) 20%, transparent);
  margin-right: 4px;
  vertical-align: baseline;
}

@media (max-width: 860px) {
  .contact-card { grid-template-columns: 1fr; }
  .contact-facts { border-left: none; border-top: 1px solid var(--line); }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  position: relative;
  margin-top: clamp(40px, 6vh, 80px);
  padding: 32px var(--page-pad) 40px;
  border-top: 1px solid var(--line);
  background: var(--bg-sunk);
}

.footer-inner {
  max-width: var(--page-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}

.footer-meta {
  margin: 0;
  font-size: 13.5px;
  color: var(--fg-faint);
}

.footer-meta a { color: var(--fg-dim); }
.footer-meta a:hover { color: var(--primary); }

.footer-end { text-align: right; }

/* Checkered finish line at the very bottom */
.finish-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background:
    conic-gradient(var(--fg) 25%, var(--bg-sunk) 0 50%, var(--fg) 0 75%, var(--bg-sunk) 0)
      0 0 / 16px 16px;
  opacity: 0.2;
}

@media (max-width: 760px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-end { text-align: left; }
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 700ms cubic-bezier(.2, .8, .2, 1),
    transform 700ms cubic-bezier(.2, .8, .2, 1);
}

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

[data-reveal-delay="1"] { transition-delay: 60ms; }
[data-reveal-delay="2"] { transition-delay: 140ms; }
[data-reveal-delay="3"] { transition-delay: 220ms; }
[data-reveal-delay="4"] { transition-delay: 300ms; }

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