:root {
  color-scheme: light dark;
  --bg: #f6f3ee;
  --bg-2: #fbf8f3;
  --ink: #1e1c1a;
  --ink-muted: #5a5652;
  --teal: #1f4f4a;
  --teal-soft: #6fb8a6;
  --amber: #dfa85f;
  --glass: rgba(255, 255, 255, 0.68);
  --glass-border: rgba(255, 255, 255, 0.45);
  --shadow: 0 30px 60px rgba(17, 16, 15, 0.12);
  --radius: 18px;
  --max-width: 1200px;
  --font-display: 'Marcellus', serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0f0f;
    --bg-2: #141717;
    --ink: #f6f3ee;
    --ink-muted: #b9b3ab;
    --teal: #6faf9f;
    --teal-soft: #2a5d56;
    --amber: #f0b768;
    --glass: rgba(20, 23, 23, 0.7);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: radial-gradient(
      circle at 15% 10%,
      rgba(111, 184, 166, 0.25),
      transparent 45%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(223, 168, 95, 0.2),
      transparent 40%
    ),
    linear-gradient(140deg, var(--bg-2), var(--bg));
  min-height: 100vh;
}

body.no-scroll {
  overflow: hidden;
}

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

.ambient {
  padding: 24px 32px 80px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 0 24px;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo--small {
  font-size: 20px;
}

.nav__links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--ink-muted);
}

.nav__links a:hover {
  color: var(--ink);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font-weight: 600;
  cursor: pointer;
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--glass-border);
  box-shadow: none;
}

.hero {
  max-width: var(--max-width);
  margin: 40px auto 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4vw, 52px);
  margin: 12px 0 16px;
}

.hero__copy p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: 520px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--amber);
}

.hero__actions {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.hero__meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 13px;
}

.meta__label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: var(--amber);
}

.meta__value {
  font-weight: 600;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.hero__panel {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel__header {
  display: flex;
  gap: 8px;
}

.pill {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
}

.pill--muted {
  color: var(--ink-muted);
}

.panel__footer {
  display: flex;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 13px;
}

.section {
  max-width: var(--max-width);
  margin: 80px auto;
}

.section__header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 40px);
  margin: 0 0 12px;
}

.section__header p {
  color: var(--ink-muted);
  max-width: 620px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  padding: 24px;
}

.card h3,
.card h4 {
  margin: 0 0 10px;
  font-family: var(--font-display);
}

.path.card {
  cursor: pointer;
  transition: transform 0.2s ease;
}

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

.journey-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.pricing-page .ambient {
  padding-bottom: 96px;
}

.plans-hero {
  max-width: var(--max-width);
  margin: 72px auto 56px;
  text-align: center;
  padding: 0 8px;
}

.plans-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(44px, 5vw, 70px);
  margin: 0 0 16px;
}

.plans-hero__sub {
  margin: 0 auto;
  max-width: 760px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.7;
}

.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
}

.billing-toggle__option {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font: inherit;
  font-size: 14px;
  padding: 10px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.billing-toggle__option.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: var(--ink);
}

.billing-toggle__hint {
  color: var(--ink-muted);
}

.plans-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  padding: 30px 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.plan-card h3 {
  font-family: var(--font-display);
  margin: 0;
  font-size: 22px;
}

.plan-card__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}

.plan-card__amount {
  font-size: 44px;
  font-weight: 600;
  letter-spacing: -0.02em;
  transition: opacity 160ms ease, transform 160ms ease;
}

.plan-card__period {
  font-size: 14px;
  color: var(--ink-muted);
  transition: opacity 160ms ease, transform 160ms ease;
}

.plan-card__amount.is-fading,
.plan-card__period.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

.plan-card__desc {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.6;
  min-height: 44px;
}

.plan-card__trial {
  margin: 6px 0 4px;
  color: var(--ink-muted);
  font-size: 13px;
  text-align: center;
}

.plan-card__features {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--ink);
  font-size: 14px;
}

.plan-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
}

.plan-card__features li::before {
  content: '✓';
  font-weight: 700;
  color: var(--ink);
  opacity: 0.7;
  flex: 0 0 auto;
  margin-top: 1px;
}

.plan-card__features li.is-muted {
  color: var(--ink-muted);
}

.plan-card__features li.is-muted::before {
  opacity: 0.25;
}

.plan-card--popular {
  border-color: rgba(240, 183, 104, 0.55);
  background: rgba(255, 255, 255, 0.08);
}

.plan-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(240, 183, 104, 0.55);
  color: var(--ink);
}

.pricing-page .plan-card .btn {
  width: 100%;
  box-shadow: none;
  justify-content: center;
}

.pricing-page .plan-card--popular .btn {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--ink);
}

.pricing-page .plan-card--popular .btn:hover {
  transform: none;
}

.pricing-page .btn--ghost:hover {
  transform: none;
}

.pricing-page .footer {
  margin-top: 84px;
}

.pricing .price {
  font-size: 28px;
  font-weight: 600;
  margin: 12px 0 4px;
}

.pricing .price span {
  font-size: 14px;
  color: var(--ink-muted);
}

.pricing ul {
  padding-left: 18px;
  color: var(--ink-muted);
}

.pricing--highlight {
  border: 1px solid var(--amber);
}

.price__sub {
  font-size: 13px;
  color: var(--ink-muted);
}

.faq {
  display: grid;
  gap: 16px;
}

.faq-item.card {
  padding: 0;
  overflow: hidden;
}

.faq-item__summary {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  font-weight: 600;
  text-align: left;
}

.faq-item__summary:hover {
  background: rgba(255, 255, 255, 0.04);
}

.faq-item__icon {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-muted);
  border-bottom: 2px solid var(--ink-muted);
  transform: rotate(45deg);
  transition: transform 200ms ease, border-color 200ms ease;
  margin-top: 5px;
  flex: 0 0 auto;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(-135deg);
  border-color: var(--ink);
}

.faq-item__content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 280ms ease, opacity 220ms ease, transform 220ms ease;
}

.faq-item.is-open .faq-item__content {
  opacity: 1;
  transform: translateY(0);
}

.faq-item__content-inner {
  padding: 0 22px 18px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--ink-muted);
}

.journey-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}

.journey-modal.is-open {
  display: flex;
}

.journey-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 12, 12, 0.6);
}

.journey-modal__panel {
  position: relative;
  max-width: 960px;
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: min(88vh, 820px);
  z-index: 1;
  overflow: hidden;
}

.journey-modal__header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.journey-modal__header .btn {
  padding: 10px 16px;
}

.journey-modal__header .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.journey-modal__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
  min-height: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.journey-progress__bar {
  width: 100%;
  max-width: 520px;
  height: 6px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: hidden;
  margin: 0 auto;
}

.journey-progress__bar span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--amber);
  transition: width 0.35s ease;
}

.journey-track {
  flex: 1;
  position: relative;
  min-height: 0;
}

.journey-track > .journey-slide {
  overflow: hidden;
}

.journey-track > .journey-slide {
  flex: 0 0 100%;
  height: 100%;
  min-height: 0;
  padding: 6px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.journey-track {
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease;
  height: 100%;
  will-change: transform;
}

.journey-slide h4 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  margin: 6px 0 0;
  text-align: center;
  letter-spacing: -0.02em;
}

.tile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
}

.tile-grid .tile:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.tile {
  padding: 22px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-weight: 600;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform 0.2s ease, border 0.2s ease, background 0.2s ease;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
  min-height: 0;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 183, 104, 0.38);
}

.tile:focus-visible {
  outline: 2px solid rgba(240, 183, 104, 0.8);
  outline-offset: 2px;
}

.tile.is-selected {
  border-color: rgba(240, 183, 104, 0.7);
  background: rgba(240, 183, 104, 0.12);
  transform: translateY(-2px);
}

.journey-slide--results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.journey-summary {
  color: var(--ink-muted);
  font-size: 14px;
}

.recommendations,
.coverage-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.recommendations li {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.4);
}

@media (max-width: 900px) {
  .nav__links {
    display: none;
  }

  .journey-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
