@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap");

:root {
  --bg: #fbf6ef;
  --bg-strong: #f2e6d7;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --surface-dark: #17313c;
  --text: #1d2730;
  --muted: #5f6f78;
  --line: rgba(29, 39, 48, 0.1);
  --accent: #ef7a5f;
  --accent-deep: #d65d44;
  --accent-soft: rgba(239, 122, 95, 0.14);
  --mint: #7ac7b7;
  --gold: #f6c86f;
  --shadow: 0 24px 80px rgba(30, 41, 59, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Outfit", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(122, 199, 183, 0.25), transparent 22%),
    radial-gradient(circle at top right, rgba(246, 200, 111, 0.22), transparent 26%),
    linear-gradient(180deg, #fffaf4 0%, var(--bg) 54%, #f8f0e4 100%);
  min-height: 100vh;
}

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

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

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

.shell {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(251, 246, 239, 0.72);
  border-bottom: 1px solid rgba(29, 39, 48, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 30px rgba(239, 122, 95, 0.16);
}

.brand-icon {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-links a,
.pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(29, 39, 48, 0.08);
  color: var(--muted);
}

.hero {
  padding: 42px 0 28px;
}

.hero-card,
.panel,
.feature-card,
.story-card,
.ad-slot,
.result-panel,
.disclaimer,
.info-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 34px;
  overflow: hidden;
  position: relative;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -12% -40% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(122, 199, 183, 0.34) 0%, rgba(122, 199, 183, 0) 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  padding: 8px 14px;
  color: var(--muted);
  border: 1px solid rgba(29, 39, 48, 0.08);
}

.hero-grid,
.page-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.95fr);
}

.page-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero h1,
.page-hero h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  margin: 18px 0 16px;
  letter-spacing: -0.03em;
}

.hero p,
.page-hero p,
.section-head p,
.panel p,
.info-card p,
.disclaimer p,
.result-panel p,
.feature-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions,
.section-tabs,
.tag-list,
.inline-actions,
.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.ghost-button,
.cta-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  color: #fff8f2;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 18px 30px rgba(214, 93, 68, 0.24);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(29, 39, 48, 0.08);
}

.button:hover,
.ghost-button:hover,
.cta-link:hover,
.feature-card:hover {
  transform: translateY(-2px);
}

.metric-grid,
.card-grid,
.story-grid,
.form-grid,
.quiz-grid,
.info-grid {
  display: grid;
  gap: 18px;
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.metric {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(29, 39, 48, 0.06);
}

.metric strong {
  display: block;
  font-size: 1.85rem;
  margin-bottom: 6px;
}

.section {
  padding: 20px 0 32px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.section-head h2,
.panel h2,
.info-card h2,
.result-panel h2 {
  font-family: "Fraunces", serif;
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
  margin: 0 0 8px;
  letter-spacing: -0.03em;
}

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

.feature-card,
.story-card,
.info-card,
.panel,
.result-panel {
  padding: 24px;
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card-static:hover {
  transform: none;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 70%;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(246, 200, 111, 0.24), transparent 66%);
}

.feature-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
}

.card-icon-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(35, 50, 59, 0.12));
}

.tag,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(29, 39, 48, 0.05);
  color: var(--muted);
  font-size: 0.95rem;
}

.hot {
  color: #fff;
  background: linear-gradient(135deg, #eb6c57, #f5b062);
}

.cta-link {
  margin-top: 18px;
  color: var(--accent-deep);
  background: rgba(239, 122, 95, 0.08);
}

.split-panel {
  display: grid;
  gap: 18px;
}

.ad-slot {
  padding: 20px 24px;
  border-style: dashed;
  border-color: rgba(29, 39, 48, 0.12);
  color: var(--muted);
}

.ad-slot strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.page-hero {
  padding: 28px 0 18px;
}

.breadcrumbs {
  display: inline-flex;
  gap: 8px;
  color: var(--muted);
  margin-bottom: 14px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

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

.field,
.question {
  display: grid;
  gap: 10px;
}

.field label,
.question legend {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(29, 39, 48, 0.12);
  background: rgba(255, 255, 255, 0.86);
  border-radius: 16px;
  min-height: 52px;
  padding: 14px 16px;
  color: var(--text);
}

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid rgba(122, 199, 183, 0.22);
  border-color: rgba(122, 199, 183, 0.7);
}

.quiz-grid {
  grid-template-columns: 1fr;
}

.question {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 39, 48, 0.08);
}

.question legend {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  display: flex;
  gap: 12px;
  align-items: start;
  padding: 14px 15px;
  border-radius: 14px;
  background: rgba(251, 246, 239, 0.8);
}

.option input {
  margin-top: 3px;
}

.support-note,
.microcopy {
  color: var(--muted);
  font-size: 0.95rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.result-panel[hidden] {
  display: none;
}

.result-panel {
  position: relative;
  overflow: hidden;
}

.result-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, rgba(239, 122, 95, 0.72), rgba(122, 199, 183, 0.78));
}

.result-score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.result-score strong {
  font-family: "Fraunces", serif;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 1;
}

.result-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(29, 39, 48, 0.08);
}

.result-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.result-list li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(29, 39, 48, 0.05);
}

.disclaimer {
  margin-top: 18px;
  padding: 16px 18px;
}

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

.chip-button,
.meal-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 16px;
  border-radius: 16px;
  border: 1px solid rgba(29, 39, 48, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.chip-button.is-selected,
.meal-switch.is-active {
  background: linear-gradient(135deg, rgba(239, 122, 95, 0.16), rgba(122, 199, 183, 0.18));
  color: var(--text);
  border-color: rgba(239, 122, 95, 0.34);
}

.chip-button:hover,
.meal-switch:hover,
.choice-card:hover {
  transform: translateY(-2px);
}

.range {
  width: 100%;
  accent-color: var(--accent);
}

.choice-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
}

.choice-card {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 168px;
  padding: 18px 14px 14px;
  border-radius: 18px;
  border: 1px solid rgba(29, 39, 48, 0.08);
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.choice-card.is-active {
  background: linear-gradient(160deg, rgba(239, 122, 95, 0.14), rgba(122, 199, 183, 0.16));
  border-color: rgba(239, 122, 95, 0.3);
  box-shadow: 0 16px 32px rgba(239, 122, 95, 0.12);
}

.choice-card h3 {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.3;
}

.choice-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.choice-icon {
  font-size: 2rem;
  line-height: 1;
}

.choice-count,
.choice-minus {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-weight: 700;
}

.choice-count {
  top: 12px;
  right: 12px;
  background: rgba(29, 39, 48, 0.08);
  color: var(--text);
}

.choice-minus {
  top: 12px;
  left: 12px;
  border: 0;
  background: rgba(29, 39, 48, 0.06);
  color: var(--muted);
  cursor: pointer;
}

.choice-minus:hover {
  background: rgba(214, 93, 68, 0.14);
  color: var(--accent-deep);
}

.result-stats-grid {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.result-stats-grid li {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(29, 39, 48, 0.05);
}

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

.footer {
  padding: 26px 0 40px;
  color: var(--muted);
}

.footer-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  background: rgba(23, 49, 60, 0.96);
  color: rgba(255, 255, 255, 0.82);
}

.footer-card a {
  color: #fff;
}

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

.empty-state,
.error-state {
  margin-top: 16px;
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(29, 39, 48, 0.05);
  color: var(--muted);
}

.error-state {
  background: rgba(214, 93, 68, 0.12);
  color: #8b3d2d;
}

@media (max-width: 980px) {
  .hero {
    padding: 28px 0 18px;
  }

  .hero-grid,
  .page-grid,
  .card-grid,
  .story-grid,
  .info-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-head,
  .panel-header,
  .footer-card {
    align-items: start;
    flex-direction: column;
  }

}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 22px), var(--container));
  }

  .nav {
    padding: 12px 0;
    gap: 12px;
    align-items: flex-start;
  }

  .brand {
    gap: 10px;
  }

  .brand-copy small {
    font-size: 0.68rem;
  }

  .hero {
    padding: 20px 0 12px;
  }

  .page-hero {
    padding: 20px 0 12px;
  }

  .section {
    padding: 14px 0 20px;
  }

  .hero-card,
  .feature-card,
  .story-card,
  .info-card,
  .panel,
  .result-panel {
    padding: 18px;
    border-radius: 22px;
  }

  .hero h1,
  .page-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.5rem);
    margin: 10px 0 12px;
    line-height: 0.98;
  }

  .section-head {
    margin-bottom: 14px;
  }

  .section-head h2,
  .panel h2,
  .info-card h2,
  .result-panel h2 {
    margin-bottom: 6px;
  }

  .panel-header {
    margin-bottom: 14px;
  }

  .result-block {
    margin-top: 14px;
    padding-top: 14px;
  }

  .field input,
  .field select,
  .field textarea {
    min-height: 50px;
    padding: 13px 14px;
  }

  .form-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .form-actions .button,
  .form-actions .ghost-button {
    width: 100%;
  }

  .button,
  .ghost-button,
  .cta-link {
    min-height: 46px;
    padding: 12px 16px;
  }

  .choice-grid {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice-card {
    min-height: 150px;
    padding: 16px 12px 12px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .option {
    padding: 12px;
  }
}
