:root {
  color-scheme: light;
  --bg: #f7f1e6;
  --bg-2: #efe4d2;
  --bg-3: #e6d7bd;
  --ink: #1c1916;
  --muted: #5c534a;
  --accent: #ee6b3a;
  --accent-2: #1f8f7a;
  --card: #fffaf2;
  --card-strong: #fffdf8;
  --card-tint: rgba(255, 250, 242, 0.82);
  --card-border: rgba(28, 25, 22, 0.12);
  --card-border-strong: rgba(28, 25, 22, 0.18);
  --shadow: 0 24px 60px rgba(20, 14, 8, 0.16);
  --shadow-soft: 0 12px 30px rgba(20, 14, 8, 0.12);
  --shadow-float: 0 18px 45px rgba(20, 14, 8, 0.14);
  --radius: 24px;
  --radius-lg: 28px;
  --radius-md: 16px;
  --focus: #1f8f7a;
  --content-max: 1140px;
  --content-narrow: 920px;
}

html {
  scroll-behavior: smooth;
}

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

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 238, 196, 0.95), transparent 32%),
    radial-gradient(circle at bottom right, rgba(185, 245, 216, 0.55), transparent 28%),
    linear-gradient(180deg, #fbf5ea 0%, #f4ecdd 48%, #ecdfc9 100%);
  color: var(--ink);
  min-height: 100vh;
  padding: 0;
  overflow-x: hidden;
}

body:not(.app) {
  padding: 32px 7vw 72px;
}

body:not(.app) main {
  max-width: var(--content-max);
  margin: 0 auto;
}

h1,
h2,
h3 {
  font-family: "Spectral", serif;
}

p {
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

input,
select,
textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(31, 143, 122, 0.2);
  outline: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 70%, white);
  outline-offset: 2px;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.55;
  z-index: -2;
}

.bg-glow-1 {
  width: 420px;
  height: 420px;
  background: #f2c94c;
  top: -120px;
  right: 10vw;
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  background: #b9f5d8;
  bottom: -200px;
  left: -140px;
}

.noise {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
}

body:not(.app) .site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 64px;
  padding: 16px 18px;
  border-radius: 999px;
  background: rgba(255, 251, 244, 0.72);
  border: 1px solid rgba(28, 25, 22, 0.08);
  box-shadow: 0 10px 28px rgba(28, 25, 22, 0.08);
  backdrop-filter: blur(16px);
}

body.app .site-header {
  position: fixed;
  top: 18px;
  left: 18px;
  bottom: 18px;
  width: 256px;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 24px;
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.96), rgba(250, 242, 228, 0.9));
  border: 1px solid rgba(30, 27, 22, 0.08);
  border-radius: 30px;
  box-shadow: 0 20px 50px rgba(30, 27, 22, 0.12);
  backdrop-filter: blur(18px);
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff8e7;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.brand-text {
  font-size: 1.1rem;
}

body:not(.app) .nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
  color: var(--muted);
  justify-content: center;
  flex: 1;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 4px 0;
  align-items: center;
  min-width: 0;
}

body.app .nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
  flex: 1;
}

.nav.nav-locked .nav-link {
  opacity: 0.45;
  pointer-events: none;
}

.nav-lock {
  font-size: 0.8rem;
  color: var(--muted);
  margin-left: 12px;
  white-space: nowrap;
}

body:not(.app) .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

body.app .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  white-space: nowrap;
  line-height: 1;
  width: 100%;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav::-webkit-scrollbar {
  display: none;
}

body:not(.app) .nav-link.active {
  background: #151311;
  color: #fff8e7;
}

body.app .nav-link.active {
  background: #1e1b16;
  color: #fff8e7;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 231, 0.06);
}

.nav-link:hover {
  background: rgba(28, 25, 22, 0.06);
  color: var(--ink);
  transform: translateY(-1px);
}

body:not(.app) #sign-out {
  white-space: nowrap;
  padding: 10px 16px;
  gap: 8px;
  align-items: center;
}

body.app #sign-out {
  white-space: nowrap;
  padding: 10px 16px;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

body.app main {
  margin-left: 292px;
  padding: 22px clamp(20px, 3vw, 44px) 72px;
  max-width: calc(var(--content-max) + 104px);
  margin-right: auto;
  width: calc(100% - 292px);
}

body.app .sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(30, 27, 22, 0.04);
  border: 1px solid rgba(30, 27, 22, 0.08);
}

body.app.sidebar-collapsed .site-header {
  width: 84px;
  padding: 28px 12px;
}

body.app.sidebar-collapsed main {
  margin-left: 128px;
  width: calc(100% - 128px);
}

body.app.sidebar-collapsed .brand-text,
body.app.sidebar-collapsed .nav-link,
body.app.sidebar-collapsed #sign-out {
  display: none;
}

body.app.sidebar-collapsed .brand {
  justify-content: center;
}

body.app.sidebar-collapsed .nav {
  gap: 6px;
}

body.app.sidebar-collapsed .nav-link {
  padding: 10px;
}

body.app.sidebar-collapsed .sidebar-toggle {
  margin: 0 auto;
}

.cta,
.ghost {
  border: none;
  border-radius: 999px;
  min-height: 46px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 25px rgba(228, 87, 46, 0.35);
}

.ghost {
  background: rgba(255, 252, 246, 0.75);
  border: 1px solid var(--card-border);
  color: var(--ink);
}

.signout-initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 10px;
  border-radius: 50%;
  background: #fff5e0;
  border: 1px solid rgba(30, 27, 22, 0.12);
  font-size: 0.8rem;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cta:hover,
.ghost:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 3.2vw, 3.4rem);
  margin: 12px 0 20px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin: 28px 0 20px;
  flex-wrap: wrap;
}

.trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card {
  background: linear-gradient(180deg, rgba(255, 253, 248, 0.98), rgba(255, 245, 230, 0.92));
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--card-border-strong);
  box-shadow: var(--shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.card-label {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-chip {
  background: #0f172a;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
}

.card-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.card-list {
  display: grid;
  gap: 16px;
}

.list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: rgba(30, 27, 22, 0.045);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(30, 27, 22, 0.05);
}

.client {
  font-weight: 600;
}

.sub {
  color: var(--muted);
  font-size: 0.85rem;
}

.pill {
  background: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  font-size: 0.85rem;
}

.pill.green {
  border-color: rgba(28, 140, 122, 0.4);
  color: #1c8c7a;
}

.pill.amber {
  border-color: rgba(228, 87, 46, 0.4);
  color: #d44f2a;
}

.card-cta {
  margin-top: 20px;
}

section {
  margin-top: clamp(60px, 8vw, 96px);
}

.section-title h2 {
  margin-top: 12px;
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.steps,
.proof,
.pricing-grid,
.faq-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 30px;
}

.step,
.proof-card,
.price-card,
.faq-item {
  background: linear-gradient(180deg, rgba(255, 251, 244, 0.92), rgba(255, 247, 235, 0.9));
  padding: 24px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: 0 10px 24px rgba(28, 25, 22, 0.06);
}

.price-card.featured {
  border: 2px solid var(--accent);
  background: linear-gradient(180deg, #fff4eb, #ffe9d8);
}

.price-label {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
}

.badge-popular {
  background: #1c8c7a;
  color: #f7fff9;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  margin-left: 8px;
  text-transform: none;
  display: inline-block;
  vertical-align: middle;
}

.price-sub {
  color: var(--muted);
  margin: 8px 0 18px;
}

.price-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 20px 0;
  color: var(--muted);
}

.price-value {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.price-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.discount-badge {
  background: #1f3a5f;
  color: #f3f7ff;
  font-size: 0.75rem;
  padding: 6px 10px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-compare {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
}

.price-original {
  text-decoration: line-through;
  color: rgba(30, 27, 22, 0.5);
  font-size: 0.8rem;
}

.billing-toggle {
  display: inline-flex;
  gap: 6px;
  background: rgba(30, 27, 22, 0.06);
  padding: 6px;
  border-radius: 999px;
  margin-top: 16px;
}

.billing-toggle .toggle {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}

.billing-toggle .toggle.active {
  background: #1e1b16;
  color: #fff;
}

.waitlist {
  background: linear-gradient(135deg, rgba(255, 249, 239, 0.96), rgba(255, 239, 215, 0.9));
  padding: 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
}

.cta-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.footer {
  margin-top: 90px;
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
}

@media (max-width: 1100px) {
  body.app .site-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    bottom: auto;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    padding: 14px 18px;
    border-radius: 0 0 24px 24px;
    border: none;
    border-bottom: 1px solid rgba(30, 27, 22, 0.08);
  }

  body.app .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    overflow: hidden;
    padding: 0;
    width: 100%;
    order: 3;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: max-height 0.22s ease, opacity 0.18s ease, transform 0.18s ease;
  }

  body.app .nav-link {
    width: 100%;
    padding: 10px 14px;
    justify-content: flex-start;
  }

  body.app main {
    margin-left: 0;
    width: 100%;
    padding: 26px 20px 96px;
    max-width: var(--content-max);
  }

  body.app .sidebar-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  body.app #sign-out {
    margin-top: 0;
    display: none;
  }

  body.app.nav-open .nav {
    max-height: 420px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    padding-top: 10px;
  }

  body.app.nav-open #sign-out {
    display: inline-flex;
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }
}

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

@media (max-width: 760px) {
  .site-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  body:not(.app) .nav {
    display: none;
  }

  .hero-card {
    order: -1;
    padding: 22px;
  }

  #sign-out {
    align-self: center;
    margin-left: auto;
  }

  body:not(.app) .site-header {
    padding: 14px 16px;
    margin-bottom: 40px;
  }
}

.bottom-nav {
  display: none;
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: #fff;
  border: 1px solid rgba(30, 27, 22, 0.12);
  border-radius: 18px;
  padding: 8px;
  z-index: 25;
  box-shadow: 0 12px 30px rgba(30, 27, 22, 0.12);
}

.bottom-nav a {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 12px;
}

.bottom-nav a.active {
  background: #1e1b16;
  color: #fff8e7;
}

@media (max-width: 520px) {
  .nav-link {
    padding: 8px 12px;
  }

  body:not(.app) {
    padding: 24px 6vw 64px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .waitlist,
  .hero-card,
  .step,
  .proof-card,
  .price-card,
  .faq-item {
    padding: 20px;
  }
}
