:root {
  --bg: #f5f8fc;
  --bg-accent: radial-gradient(900px 500px at 15% -10%, rgba(56, 189, 248, 0.18), transparent 60%),
               radial-gradient(700px 440px at 88% 4%, rgba(14, 165, 233, 0.12), transparent 58%);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-subtle: rgba(241, 245, 249, 0.75);
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.14);
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --accent: #0284c7;
  --accent-bright: #38bdf8;
  --accent-soft: rgba(2, 132, 199, 0.11);
  --accent-contrast: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 6px 20px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 38px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.05);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

[data-theme="warm-studio"] {
  --bg: #f6f1ea;
  --bg-accent: radial-gradient(900px 520px at 18% -10%, rgba(217, 119, 6, 0.14), transparent 60%),
               radial-gradient(720px 440px at 88% 4%, rgba(180, 83, 9, 0.1), transparent 58%);
  --surface: rgba(255, 252, 247, 0.84);
  --surface-strong: rgba(255, 253, 249, 0.96);
  --surface-subtle: rgba(244, 236, 226, 0.78);
  --border: rgba(68, 44, 24, 0.1);
  --border-strong: rgba(68, 44, 24, 0.18);
  --text: #271b12;
  --text-muted: #645142;
  --text-soft: #856f5d;
  --accent: #c2591a;
  --accent-bright: #ea7a38;
  --accent-soft: rgba(194, 89, 26, 0.12);
  --accent-contrast: #fffaf5;
  --shadow-sm: 0 1px 2px rgba(45, 25, 10, 0.05), 0 6px 20px rgba(45, 25, 10, 0.05);
  --shadow-md: 0 14px 38px rgba(45, 25, 10, 0.1), 0 1px 2px rgba(45, 25, 10, 0.05);
}

[data-accent="sky"] { --accent: #0284c7; --accent-bright: #38bdf8; --accent-soft: rgba(2, 132, 199, 0.11); }
[data-accent="indigo"] { --accent: #4f46e5; --accent-bright: #818cf8; --accent-soft: rgba(79, 70, 229, 0.11); }
[data-accent="terracotta"] { --accent: #c2591a; --accent-bright: #ea7a38; --accent-soft: rgba(194, 89, 26, 0.12); }
[data-accent="emerald"] { --accent: #059669; --accent-bright: #34d399; --accent-soft: rgba(5, 150, 105, 0.11); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-accent);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  transition: background-color 220ms ease, color 220ms ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
  text-decoration: none !important;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-primary:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* Hero */
.hero {
  padding: 68px 0 48px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
}
.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0 auto 18px;
  max-width: 740px;
  font-size: clamp(34px, 5.2vw, 54px);
  line-height: 1.07;
  letter-spacing: -0.035em;
  font-weight: 750;
}

.hero-sub {
  margin: 0 auto 28px;
  max-width: 590px;
  font-size: 17.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

/* Interactive Demo Card */
.demo-shell {
  max-width: 820px;
  margin: 0 auto;
  background: var(--surface);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: left;
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.segmented {
  display: inline-flex;
  background: color-mix(in srgb, var(--text) 6%, transparent);
  padding: 3px;
  border-radius: 999px;
  gap: 2px;
}

.seg-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, box-shadow 140ms ease;
}
.seg-btn[aria-pressed="true"] {
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.swatches {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  padding: 0;
  transition: transform 120ms ease;
}
.swatch:hover { transform: scale(1.12); }
.swatch[aria-pressed="true"] {
  border-color: var(--text);
  transform: scale(1.1);
}

.slider-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.slider-control input[type="range"] {
  accent-color: var(--accent);
  width: 124px;
  cursor: pointer;
}
.scale-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  min-width: 46px;
  text-align: center;
}

.demo-grid {
  padding: 18px;
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 0;
  --hour-h: 64px;
}

.demo-hour-label {
  height: var(--hour-h);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  padding-right: 12px;
  text-align: right;
  transition: height 140ms ease;
  position: relative;
  top: -7px;
}

.demo-col {
  position: relative;
  border-left: 1px solid var(--border);
}

.demo-slot {
  height: var(--hour-h);
  border-top: 1px solid var(--border);
  position: relative;
  transition: height 140ms ease;
  background-image: linear-gradient(
    to bottom,
    transparent 24.5%,
    color-mix(in srgb, var(--border) 60%, transparent) 25%,
    transparent 25.5%,
    transparent 49.5%,
    color-mix(in srgb, var(--border) 75%, transparent) 50%,
    transparent 50.5%,
    transparent 74.5%,
    color-mix(in srgb, var(--border) 60%, transparent) 75%,
    transparent 75.5%
  );
}

.demo-event {
  position: absolute;
  left: 8px;
  right: 8px;
  border-radius: 8px;
  padding: 3px 9px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: top 140ms ease, height 140ms ease, background 180ms ease;
}
.demo-event.past {
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text-soft);
  border-left: 3px solid color-mix(in srgb, var(--text) 25%, transparent);
}
.demo-event.active {
  background: var(--accent-soft);
  color: var(--text);
  border-left: 3px solid var(--accent);
}
.demo-event.warm {
  background: color-mix(in srgb, var(--accent-bright) 18%, transparent);
  color: var(--text);
  border-left: 3px solid var(--accent-bright);
}
.demo-event span.meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-soft);
  white-space: nowrap;
}

.demo-now-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #ef4444;
  z-index: 3;
  transition: top 140ms ease;
}
.demo-now-line::before {
  content: "";
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}
.demo-now-pill {
  position: absolute;
  right: 8px;
  top: -10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: #ef4444;
  padding: 1px 7px;
  border-radius: 999px;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 40px;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3.6vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
}

/* Feature grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 12px;
}
.card-badge.free {
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text-muted);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

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

.price-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
}
.price-card.featured {
  background: var(--surface-strong);
  border-color: var(--accent);
  box-shadow: 0 14px 36px color-mix(in srgb, var(--accent) 16%, transparent);
  position: relative;
}

.price-tier {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price-amount {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 4px;
}
.price-amount span {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-soft);
}
.price-note {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 18px;
  min-height: 20px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 9px;
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}
.check-list li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.check-list li::before {
  content: "✓";
  color: var(--accent);
  font-weight: 800;
  flex-shrink: 0;
}

.lifetime-banner {
  margin-top: 18px;
  background: var(--surface-strong);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}
.lifetime-banner h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.lifetime-banner p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-footnote {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-soft);
}

/* Legal / doc pages */
.doc-wrap {
  max-width: 760px;
  margin: 48px auto 72px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 42px;
  box-shadow: var(--shadow-sm);
}
.doc-wrap h1 {
  font-size: 32px;
  margin: 0 0 8px;
  text-align: left;
}
.doc-meta {
  font-size: 13.5px;
  color: var(--text-soft);
  margin: 0 0 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.doc-wrap h2 {
  font-size: 19px;
  letter-spacing: -0.015em;
  margin: 28px 0 10px;
}
.doc-wrap p, .doc-wrap li {
  font-size: 15px;
  color: var(--text-muted);
}
.doc-wrap ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
}

.callout {
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 14.5px;
  color: var(--text);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 48px;
  color: var(--text-soft);
  font-size: 13.5px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-links a { color: var(--text-muted); }
.footer-disclaimer {
  font-size: 12.5px;
  color: var(--text-soft);
  margin: 0;
}

@media (max-width: 860px) {
  .features-grid, .pricing-grid { grid-template-columns: 1fr; }
  .nav-links .hide-mobile { display: none; }
  .doc-wrap { padding: 26px 22px; margin: 28px 16px 48px; }
}
