:root {
  --bg: #fff9f6;
  --panel: rgba(255, 252, 250, 0.92);
  --panel-strong: #ffffff;
  --line: rgba(167, 99, 115, 0.16);
  --shadow: 0 24px 60px rgba(143, 79, 96, 0.16);
  --text: #45313b;
  --muted: #8e7380;
  --brand: #b34b66;
  --brand-deep: #8f3f56;
  --accent: #f5dde1;
  --accent-strong: #efc9d1;
  --success: #7c9d5b;
  --warning: #c77a5d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background:
    radial-gradient(circle at top left, rgba(243, 212, 220, 0.7), transparent 28%),
    radial-gradient(circle at bottom right, rgba(238, 221, 205, 0.9), transparent 25%),
    linear-gradient(180deg, #fffdfb 0%, #fff8f3 100%);
  color: var(--text);
  font-family: "Manrope", sans-serif;
  display: flex;
  justify-content: center;
  padding: 28px 16px 40px;
}

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

button {
  border: 0;
  cursor: pointer;
}

.page-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.55;
  pointer-events: none;
}

.page-glow--left {
  top: 80px;
  left: -90px;
  background: rgba(245, 209, 217, 0.8);
}

.page-glow--right {
  right: -90px;
  bottom: 60px;
  background: rgba(241, 225, 209, 0.9);
}

#app {
  width: min(100%, 440px);
  position: relative;
  z-index: 1;
}

.app-shell {
  display: grid;
  gap: 24px;
  justify-items: center;
}

.hero {
  text-align: center;
  padding: 8px 8px 0;
}

.eyebrow {
  color: var(--brand);
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.hero h1,
.phone-screen h2,
.results-title,
.section-card h3,
.menu-card h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin: 8px 0 6px;
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.hero p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.7;
}

.layout {
  width: 100%;
}

.phone-frame {
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(250, 240, 236, 0.92));
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
}

.phone-frame::before,
.phone-frame::after,
.phone-screen::before,
.phone-screen::after {
  content: "";
  position: absolute;
  background: linear-gradient(180deg, rgba(241, 212, 220, 0.7), rgba(241, 229, 218, 0));
  border-radius: 50% 50% 20% 80% / 40% 40% 60% 60%;
  pointer-events: none;
}

.phone-frame::before {
  width: 180px;
  height: 180px;
  right: -32px;
  top: 110px;
  opacity: 0.85;
}

.phone-frame::after {
  width: 150px;
  height: 150px;
  left: -42px;
  bottom: -28px;
  opacity: 0.75;
}

.phone-screen {
  position: relative;
  min-height: 760px;
  padding: 22px 18px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 252, 250, 0.96), rgba(255, 247, 243, 0.94));
  overflow: hidden;
}

.phone-screen::before {
  width: 140px;
  height: 140px;
  right: -28px;
  bottom: 122px;
  opacity: 0.55;
}

.phone-screen::after {
  width: 120px;
  height: 120px;
  left: -24px;
  top: 240px;
  opacity: 0.3;
}

.screen-topbar,
.screen-bottombar,
.result-actions,
.step-actions,
.privacy-actions,
.quick-actions,
.card-actions {
  display: flex;
  gap: 12px;
}

.screen-topbar {
  justify-content: space-between;
  align-items: center;
}

.brand-mark {
  display: grid;
  gap: 4px;
}

.brand-mark strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  color: var(--brand-deep);
  letter-spacing: 0.2em;
}

.brand-mark span,
.helper-copy,
.subtle,
.step-caption,
.field-note,
.status-copy,
.legal-note,
.support-copy,
.policy-copy {
  color: var(--muted);
}

.lang-toggle,
.ghost-button,
.icon-button,
.chip-button {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--brand-deep);
}

.lang-toggle,
.icon-button {
  min-height: 42px;
  min-width: 42px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 700;
}

.screen-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(179, 75, 102, 0.1);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
}

.screen-badge__number {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: white;
}

.phone-screen h2 {
  margin: 14px 0 10px;
  font-size: 2.4rem;
  line-height: 0.95;
}

.screen-title {
  margin: 0;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.screen-copy {
  margin: 0 0 18px;
  line-height: 1.7;
}

.highlight {
  color: var(--brand);
}

.hero-icon,
.metric-icon,
.result-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 14px auto 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(245, 222, 227, 0.95), rgba(253, 245, 240, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: var(--brand-deep);
  font-size: 1.55rem;
}

.cta-button,
.secondary-button,
.list-button,
.option-button,
.menu-link,
.submit-button {
  width: 100%;
  border-radius: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cta-button,
.submit-button {
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  color: white;
  padding: 15px 18px;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(179, 75, 102, 0.28);
}

.secondary-button,
.list-button,
.option-button,
.menu-link,
.ghost-button {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  border: 1px solid var(--line);
}

.secondary-button,
.ghost-button {
  padding: 14px 18px;
  font-weight: 600;
}

.cta-button:hover,
.secondary-button:hover,
.list-button:hover,
.option-button:hover,
.menu-link:hover,
.ghost-button:hover,
.submit-button:hover,
.icon-button:hover,
.lang-toggle:hover,
.chip-button:hover {
  transform: translateY(-1px);
}

.privacy-actions,
.step-actions,
.result-actions,
.card-actions,
.screen-bottombar {
  flex-direction: column;
}

.policy-card,
.metric-card,
.helper-card,
.summary-card,
.list-card,
.tips-card,
.menu-card,
.section-card,
.success-card {
  position: relative;
  border-radius: 24px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.policy-card,
.tips-card,
.success-card {
  background: rgba(255, 248, 245, 0.95);
}

.menu-list,
.choice-list,
.metric-grid,
.labs-list,
.help-grid,
.summary-list {
  display: grid;
  gap: 12px;
}

.menu-link,
.option-button,
.list-button,
.help-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 14px 16px;
}

.menu-link__label,
.option-button__label,
.list-button__label,
.help-link__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.menu-link__index,
.option-index,
.list-index,
.help-index {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(179, 75, 102, 0.14);
  color: var(--brand);
  font-size: 0.88rem;
  font-weight: 800;
}

.menu-link__chevron,
.option-button__meta,
.list-button__meta,
.help-link__meta {
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 700;
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 20px;
}

.step-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(179, 75, 102, 0.22);
}

.step-dot.is-active {
  background: var(--brand);
  box-shadow: 0 0 0 5px rgba(179, 75, 102, 0.12);
}

.field,
.form-field {
  display: grid;
  gap: 8px;
}

.field label,
.form-field label {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 700;
}

.field input,
.form-field input,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(167, 99, 115, 0.18);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  padding: 15px 16px;
  color: var(--text);
}

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

.option-button.is-selected,
.menu-link.is-accent,
.list-button.is-selected,
.help-link.is-selected {
  border-color: rgba(179, 75, 102, 0.45);
  box-shadow: 0 10px 24px rgba(179, 75, 102, 0.1);
}

.results-panel {
  display: grid;
  gap: 14px;
}

.results-title {
  margin: 0;
  font-size: 2.3rem;
}

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

.metric-card strong,
.metric-card span,
.summary-item strong,
.summary-item span {
  display: block;
}

.metric-card strong,
.summary-item strong {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.metric-card span,
.summary-item span {
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.status-banner {
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 246, 242, 0.96), rgba(249, 236, 228, 0.94));
  border: 1px solid rgba(199, 122, 93, 0.18);
}

.status-banner.is-fertile {
  background: linear-gradient(180deg, rgba(247, 247, 237, 0.98), rgba(239, 244, 225, 0.98));
  border-color: rgba(124, 157, 91, 0.22);
}

.status-banner.is-period {
  background: linear-gradient(180deg, rgba(255, 244, 247, 0.98), rgba(250, 229, 235, 0.98));
  border-color: rgba(179, 75, 102, 0.22);
}

.status-label {
  color: var(--brand-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.status-banner.is-fertile .status-label,
.status-banner.is-fertile .status-copy strong {
  color: var(--success);
}

.status-banner.is-warning .status-label,
.status-banner.is-warning .status-copy strong {
  color: var(--warning);
}

.summary-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.summary-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.summary-item span {
  margin-top: 0;
  text-align: right;
}

.helper-card {
  display: grid;
  gap: 8px;
}

.helper-card strong,
.tips-card strong,
.section-card h3,
.menu-card h3,
.success-card strong {
  font-size: 1.1rem;
  color: var(--brand-deep);
}

.section-card h3,
.menu-card h3 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.menu-card p,
.section-card p,
.tips-card p,
.success-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.form-layout {
  display: grid;
  gap: 14px;
}

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

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

.chip-button {
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
}

.chip-button.is-selected {
  background: rgba(179, 75, 102, 0.1);
  border-color: rgba(179, 75, 102, 0.42);
}

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

.screen-preview-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.preview-card {
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
}

.preview-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-deep);
}

.preview-card p {
  margin: 0;
  line-height: 1.6;
  color: var(--muted);
}

.footnote {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.hidden {
  display: none;
}

@media (min-width: 960px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 959px) {
  .phone-screen {
    min-height: 0;
  }
}

@media (max-width: 480px) {
  body {
    padding-inline: 12px;
  }

  .phone-frame {
    padding: 12px;
    border-radius: 28px;
  }

  .phone-screen {
    padding: 18px 14px 14px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: 2.35rem;
  }

  .phone-screen h2,
  .results-title {
    font-size: 2rem;
  }
}