:root {
  --bg-cream: #f4efe6;
  --bg-shell: #fffaf3;
  --bg-card: rgba(255, 250, 243, 0.88);
  --bg-card-strong: #fffaf2;
  --text-main: #1f2933;
  --text-muted: #5d6a76;
  --line-soft: rgba(31, 41, 51, 0.1);
  --accent-amber: #d97706;
  --accent-rust: #b45309;
  --accent-forest: #0f766e;
  --accent-sand: #f0dfc1;
  --shadow-soft: 0 18px 50px rgba(31, 41, 51, 0.12);
  --shadow-hover: 0 24px 65px rgba(31, 41, 51, 0.18);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --transition: 260ms ease;
}

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

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(217, 119, 6, 0.1), transparent 35%),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, 0.12), transparent 35%),
    linear-gradient(180deg, #f7f1e8 0%, #efe5d4 100%);
}

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

[hidden] {
  display: none !important;
}

button,
a {
  font: inherit;
}

.page-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.55;
}

.orb-one {
  width: 340px;
  height: 340px;
  top: -90px;
  left: -110px;
  background: rgba(217, 119, 6, 0.2);
}

.orb-two {
  width: 300px;
  height: 300px;
  right: -60px;
  bottom: 12%;
  background: rgba(15, 118, 110, 0.18);
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.15) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 90%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1080px);
  margin: 0 auto;
  padding: 24px 16px 36px;
}

.brand-header {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

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

.brand-logo,
.brand-logo-fallback {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  border-radius: 22px;
}

.brand-logo {
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.1);
}

.brand-logo-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f59e0b, #0f766e);
  color: #fff;
  font-family: "Fraunces", serif;
  font-size: 1.5rem;
  letter-spacing: 0.04em;
  box-shadow: 0 12px 28px rgba(31, 41, 51, 0.14);
}

.brand-kicker,
.eyebrow,
.result-card-label,
.highlight-label {
  margin: 0;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-rust);
  font-weight: 800;
}

.brand-title {
  margin: 8px 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.03;
}

.funnel-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.card-topline {
  padding: 20px 20px 0;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.08);
  overflow: hidden;
}

.progress-bar {
  width: 16.666%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97706, #0f766e);
  transition: width 320ms ease;
}

.panel-stack {
  position: relative;
  min-height: 580px;
}

.funnel-panel {
  display: none;
  opacity: 0;
  transform: translateY(18px);
  padding: 24px 20px 28px;
}

.funnel-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: panel-reveal 320ms ease;
}

.panel-intro,
.result-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.panel-title,
.result-title {
  margin: 6px 0 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.08;
}

.panel-copy,
.result-summary,
.result-card-copy,
.highlight-copy,
.footer-copy,
.micro-note {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-chip,
.result-badge {
  width: fit-content;
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(31, 41, 51, 0.08);
  color: var(--text-main);
  font-weight: 700;
}

.primary-button,
.ghost-button {
  width: 100%;
  border-radius: 18px;
  padding: 17px 20px;
  border: none;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}

.primary-button {
  color: #fffaf2;
  background: linear-gradient(135deg, #c1650a, #0f766e);
  box-shadow: 0 16px 36px rgba(193, 101, 10, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(31, 41, 51, 0.2);
}

.ghost-button {
  background: transparent;
  border: 1px solid rgba(31, 41, 51, 0.14);
  color: var(--text-main);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.6);
}

.options-group {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.72));
  border-radius: var(--radius-md);
  padding: 18px 18px 16px;
  cursor: pointer;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition),
    background-color var(--transition);
}

.option-card:hover,
.option-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: var(--shadow-hover);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 247, 237, 0.88));
}

.option-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
}

.option-copy {
  display: block;
  color: var(--text-muted);
  line-height: 1.6;
}

.result-grid {
  display: grid;
  gap: 14px;
}

.result-card,
.result-highlight {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(31, 41, 51, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.result-highlight {
  background: linear-gradient(135deg, rgba(240, 223, 193, 0.8), rgba(223, 245, 239, 0.9));
}

.result-button {
  margin-top: 6px;
}

.site-footer {
  text-align: center;
  padding: 24px 12px 0;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.footer-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 700;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  text-decoration: underline;
}

.legal-shell {
  width: min(100%, 840px);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.legal-card {
  background: rgba(255, 250, 243, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 24px 20px;
}

.legal-card h1,
.legal-card h2 {
  font-family: "Fraunces", serif;
}

.legal-card p,
.legal-card li {
  color: var(--text-muted);
  line-height: 1.7;
}

.back-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent-forest);
  font-weight: 800;
  text-decoration: none;
}

.back-link:hover,
.back-link:focus-visible {
  text-decoration: underline;
}

@keyframes panel-reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 720px) {
  .page-shell {
    padding: 34px 24px 48px;
  }

  .card-topline {
    padding: 24px 28px 0;
  }

  .funnel-panel {
    padding: 30px 28px 34px;
  }

  .panel-stack {
    min-height: 620px;
  }

  .options-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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