:root {
  color-scheme: light;
  --ink: #29241f;
  --muted: #756d65;
  --line: #e7ded5;
  --cream: #fff9f2;
  --paper: #ffffff;
  --coral: #e46c57;
  --coral-dark: #b64b3c;
  --coral-soft: #fff0eb;
  --sage: #dfe9dc;
  --lavender: #eee9f8;
  --shadow: 0 18px 50px rgba(92, 61, 39, 0.09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f7eee7;
  --muted: #c6b9af;
  --line: #4a3e37;
  --cream: #151210;
  --paper: #211c19;
  --coral: #ef7862;
  --coral-dark: #ffad9b;
  --coral-soft: #3b2521;
  --sage: #2a3c30;
  --lavender: #332d43;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--cream); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(238, 233, 248, 0.75), transparent 25rem),
    radial-gradient(circle at 0% 48%, rgba(223, 233, 220, 0.68), transparent 24rem),
    var(--cream);
  -webkit-font-smoothing: antialiased;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }

[hidden] { display: none !important; }

.page-shell {
  width: min(100%, 920px);
  margin: 0 auto;
  padding: 0 18px 24px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0 12px;
}

.header-actions {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.58);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.theme-toggle:hover { transform: translateY(-1px) rotate(-7deg); border-color: var(--coral); }
.theme-toggle:focus-visible { outline: 3px solid rgba(228, 108, 87, 0.3); outline-offset: 2px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 12px;
  background: var(--coral-soft);
  font-size: 1.1rem;
}

.header-pill {
  padding: 7px 11px;
  border: 1px solid rgba(228, 108, 87, 0.18);
  border-radius: 999px;
  color: var(--coral-dark);
  background: rgba(255, 255, 255, 0.6);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.app-main { padding: 8px 0 18px; }

.hero {
  max-width: 700px;
  padding: 30px 4px 25px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(2.35rem, 10vw, 4.7rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.hero-copy {
  max-width: 590px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.16rem);
  line-height: 1.55;
}

.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin-top: 23px;
  color: var(--muted);
  font-size: 0.8rem;
}

.hero-notes span { display: inline-flex; align-items: center; gap: 7px; }
.hero-notes strong { color: var(--coral); font-size: 0.68rem; letter-spacing: 0.08em; }

.wizard-card {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(231, 222, 213, 0.95);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

#progress-value { color: var(--coral-dark); }

.progress-track {
  height: 6px;
  margin: 10px 0 30px;
  overflow: hidden;
  border-radius: 999px;
  background: #f2ebe5;
}

#progress-bar {
  display: block;
  width: 14%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), #ef9b82);
  transition: width 220ms ease;
}

.question-kicker {
  margin: 0 0 9px;
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.question-title {
  margin: 0;
  font-size: clamp(1.55rem, 6vw, 2.2rem);
  letter-spacing: -0.045em;
  line-height: 1.06;
}

.question-subtitle {
  margin: 11px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.option-card {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 10px;
  padding: 12px 11px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.option-card:hover { border-color: #d9b2a8; transform: translateY(-1px); }
.option-card:active { transform: scale(0.985); }
.option-card:focus-visible { outline: 3px solid rgba(228, 108, 87, 0.3); outline-offset: 2px; }
.option-card[aria-pressed="true"] {
  border-color: var(--coral);
  background: var(--coral-soft);
  box-shadow: 0 8px 20px rgba(228, 108, 87, 0.13);
}

.option-icon {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 12px;
  background: #f8f2ed;
  font-size: 1.08rem;
}

.option-card[aria-pressed="true"] .option-icon { background: #fff; }
.option-copy { min-width: 0; }
.option-label { display: block; font-size: 0.9rem; font-weight: 750; line-height: 1.15; }
.option-detail { display: block; margin-top: 4px; color: var(--muted); font-size: 0.7rem; line-height: 1.25; }

.multi-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.74rem;
}
.multi-hint span { color: var(--coral); font-size: 1rem; }

.wizard-actions {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

.button {
  min-height: 48px;
  border: 0;
  border-radius: 14px;
  padding: 0 17px;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, opacity 150ms ease;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: scale(0.985); }
.button:focus-visible { outline: 3px solid rgba(228, 108, 87, 0.3); outline-offset: 2px; }
.button:disabled { cursor: not-allowed; opacity: 0.42; }
.button-primary { flex: 1; color: #fff; background: var(--coral); box-shadow: 0 9px 20px rgba(228, 108, 87, 0.2); }
.button-primary:hover:not(:disabled) { background: var(--coral-dark); }
.button-ghost { color: var(--muted); background: #f6f1ec; }
.button-ghost:hover:not(:disabled) { background: #eee6df; }

.keyboard-hint {
  margin: 13px 0 0;
  color: #9a9087;
  font-size: 0.7rem;
  text-align: center;
}

.trust-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 13px 0 0;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid rgba(231, 222, 213, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.45);
}

.trust-icon {
  display: grid;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
  place-items: center;
  border-radius: 9px;
  color: var(--coral-dark);
  background: var(--coral-soft);
  font-size: 0.86rem;
}

.trust-item strong, .trust-item small { display: block; }
.trust-item strong { font-size: 0.78rem; }
.trust-item small { margin-top: 3px; color: var(--muted); font-size: 0.72rem; line-height: 1.25; }

.results { padding: 18px 0 0; }
.results-head { padding: 14px 4px 18px; }
.results-kicker { margin: 0 0 10px; color: var(--coral-dark); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.results h2 { margin: 0; font-size: clamp(2rem, 8vw, 3.5rem); letter-spacing: -0.06em; line-height: 0.98; }
.results-intro { max-width: 580px; margin: 13px 0 0; color: var(--muted); line-height: 1.5; }

.summary-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.summary-chip { padding: 7px 10px; border-radius: 999px; color: #5f5147; background: var(--sage); font-size: 0.72rem; font-weight: 750; }
.summary-chip:nth-child(2n) { background: var(--lavender); }
.summary-chip:nth-child(3n) { background: var(--coral-soft); }

.results-toolbar { display: flex; flex-wrap: wrap; gap: 9px; margin: 4px 0 20px; }
.results-toolbar .button { min-height: 42px; font-size: 0.8rem; }

.gift-list { display: grid; gap: 12px; }
.gift-card {
  position: relative;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 26px rgba(92, 61, 39, 0.06);
}
.gift-card-top { display: flex; align-items: flex-start; gap: 12px; }
.gift-number { display: grid; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border-radius: 12px; color: var(--coral-dark); background: var(--coral-soft); font-size: 0.72rem; font-weight: 850; }
.gift-icon { font-size: 1.8rem; line-height: 1; }
.gift-card h3 { margin: 10px 0 0; font-size: 1.12rem; letter-spacing: -0.025em; }
.gift-price { margin: 4px 0 0; color: var(--coral-dark); font-size: 0.78rem; font-weight: 800; }
.gift-reason { margin: 9px 0 0; color: var(--muted); font-size: 0.87rem; line-height: 1.45; }
.gift-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.gift-tag { padding: 5px 8px; border-radius: 8px; color: #76665a; background: #f7f2ed; font-size: 0.66rem; font-weight: 700; }
.gift-link { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin-top: 15px; border-radius: 12px; color: #fff; background: var(--ink); font-size: 0.82rem; font-weight: 800; text-decoration: none; }
.gift-link:hover { background: var(--coral-dark); }
.gift-link:focus-visible { outline: 3px solid rgba(228, 108, 87, 0.32); outline-offset: 2px; }

.results-note { margin: 20px 4px 0; color: #8b8178; font-size: 0.73rem; line-height: 1.5; }

.site-footer { padding: 28px 4px 0; color: #938980; font-size: 0.7rem; line-height: 1.5; }
.site-footer p { margin: 4px 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 14px; padding-top: 13px; border-top: 1px solid rgba(231, 222, 213, 0.8); }
.legal-links a { color: var(--coral-dark); font-size: 0.68rem; font-weight: 750; text-decoration: none; }
.legal-links a:hover { text-decoration: underline; }

.noscript-card { margin-top: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--muted); }

.toast { position: fixed; z-index: 10; right: 16px; bottom: 18px; max-width: min(360px, calc(100vw - 32px)); padding: 12px 15px; border-radius: 13px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 0.8rem; line-height: 1.35; }

.legal-page { max-width: 760px; padding: 30px 4px 0; }
.legal-page h1 { max-width: 720px; margin: 0; font-size: clamp(2.35rem, 10vw, 4.2rem); letter-spacing: -0.065em; line-height: 0.98; }
.legal-meta { margin: 13px 0 0; color: #938980; font-size: 0.75rem; }
.legal-section { margin-top: 35px; }
.legal-section h2 { margin: 0; font-size: clamp(1.3rem, 5vw, 1.85rem); letter-spacing: -0.04em; line-height: 1.08; }
.legal-section p { max-width: 720px; margin: 12px 0 0; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.legal-section ul { margin: 12px 0 0; padding-left: 1.15rem; color: var(--muted); font-size: 0.92rem; line-height: 1.65; }
.legal-section a { color: var(--coral-dark); font-weight: 750; }
.legal-notice { padding: 13px 15px; border-left: 3px solid var(--coral); border-radius: 0 14px 14px 0; background: rgba(255, 240, 235, 0.65); }


/* Indexable editorial content stays lightweight and server-rendered. */
.seo-content {
  margin: 52px 4px 0;
  padding-top: 30px;
  border-top: 1px solid rgba(231, 222, 213, 0.9);
}

.seo-content h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(1.8rem, 7vw, 3.1rem);
  letter-spacing: -0.055em;
  line-height: 1;
}

.seo-intro {
  max-width: 720px;
  margin: 15px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.seo-link-grid,
.guide-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.seo-card,
.guide-card,
.faq-item {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
}

.seo-card h3,
.guide-card h3,
.faq-item h3 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.seo-card p,
.guide-card p,
.faq-item p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.seo-card a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--coral-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: none;
}

.seo-card a:hover { text-decoration: underline; }
.seo-cluster-cta { margin: 16px 0 0; }
.seo-cluster-cta a { display: inline-flex; align-items: center; gap: 7px; color: var(--coral-dark); font-size: 0.82rem; font-weight: 850; text-decoration: none; }
.seo-cluster-cta a:hover { text-decoration: underline; }
.faq-title { margin-top: 40px !important; }
.faq-list { display: grid; gap: 10px; margin-top: 18px; }

.guide-page { padding: 30px 4px 0; }
.guide-page h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.25rem, 9vw, 4.7rem);
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.guide-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.6;
}

.guide-cta {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: #fff;
  text-decoration: none;
}

.guide-section { margin-top: 48px; }
.guide-section h2 { margin: 0; font-size: clamp(1.65rem, 6vw, 2.6rem); letter-spacing: -0.05em; line-height: 1.02; }
.guide-section > p { max-width: 720px; margin: 13px 0 0; color: var(--muted); line-height: 1.6; }
.guide-list { display: grid; gap: 11px; margin: 20px 0 0; padding: 0; list-style: none; counter-reset: guide-step; }
.guide-list li { position: relative; padding: 16px 16px 16px 55px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255, 255, 255, 0.62); color: var(--muted); line-height: 1.5; counter-increment: guide-step; }
.guide-list li::before { position: absolute; top: 16px; left: 16px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: var(--coral-dark); background: var(--coral-soft); content: counter(guide-step, decimal-leading-zero); font-size: 0.68rem; font-weight: 850; }
.guide-list strong { color: var(--ink); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 17px; color: #968b82; font-size: 0.72rem; }
.breadcrumbs a { color: var(--coral-dark); font-weight: 750; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .page-shell { padding-right: 30px; padding-left: 30px; }
  .site-header { padding-top: 26px; }
  .hero { padding-top: 60px; padding-bottom: 36px; }
  .wizard-card { padding: 27px; }
  .options-grid { grid-template-columns: repeat(3, 1fr); }
  .trust-strip { grid-template-columns: repeat(3, 1fr); }
  .trust-item { padding: 16px; }
  .gift-list { grid-template-columns: 1fr 1fr; }
  .gift-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .seo-link-grid, .guide-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .page-shell { padding-right: 54px; padding-left: 54px; }
  .wizard-card { padding: 34px; }
  .gift-list { grid-template-columns: repeat(3, 1fr); }
  .gift-card:last-child:nth-child(odd) { grid-column: auto; }
}

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


/* Product polish: compact first screen, clear hierarchy and lightweight motion. */
.app-main { padding-top: 0; }
.site-header { padding-top: 14px; padding-bottom: 8px; }

.hero {
  max-width: 760px;
  padding: 22px 4px 18px;
}

.hero h1 {
  font-size: clamp(2.2rem, 8.8vw, 4.7rem);
  line-height: 0.97;
}

.hero-copy {
  margin-top: 14px;
  font-size: clamp(0.96rem, 2.35vw, 1.16rem);
  line-height: 1.48;
}

.hero-notes {
  gap: 7px;
  margin-top: 17px;
  font-size: 0.74rem;
}

.hero-notes span {
  padding: 7px 10px;
  border: 1px solid rgba(231, 222, 213, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
}

.hero-notes strong {
  font-size: 0.67rem;
  letter-spacing: 0.02em;
}

.wizard-card {
  padding: 16px;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 14px 34px rgba(92, 61, 39, 0.08);
  backdrop-filter: none;
}

.progress-track {
  height: 5px;
  margin: 8px 0 23px;
}

.question-title { font-size: clamp(1.5rem, 5.8vw, 2.2rem); }
.question-subtitle { margin-top: 9px; }

.options-grid {
  gap: 8px;
  margin-top: 18px;
}

.option-card {
  position: relative;
  min-height: 72px;
  padding: 10px;
  border-radius: 16px;
}

.option-card[aria-pressed="true"] { padding-right: 34px; }

.option-card[aria-pressed="true"]::after {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--coral);
  content: "✓";
  font-size: 0.72rem;
  font-weight: 850;
}

.option-icon {
  width: 33px;
  height: 33px;
  flex-basis: 33px;
  border-radius: 11px;
}

.keyboard-hint { margin-top: 11px; font-size: 0.68rem; }
.trust-strip { margin-top: 10px; }
.seo-content { margin-top: 44px; }
.faq-title { margin-top: 34px !important; }

.question-region.question-transition {
  animation: question-in 320ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.results.results-transition {
  animation: results-in 360ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
}

.gift-card {
  animation: gift-in 420ms cubic-bezier(0.2, 0.75, 0.3, 1) both;
  animation-delay: calc(var(--gift-index, 0) * 42ms);
}

.gift-card-featured {
  border-color: rgba(228, 108, 87, 0.38);
  background: linear-gradient(145deg, #fffdf9, #fff0eb);
  box-shadow: 0 14px 30px rgba(228, 108, 87, 0.12);
}

.gift-badge {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--coral-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gift-card-featured .gift-number {
  color: #fff;
  background: var(--coral);
}

.gift-card-featured .gift-link { background: var(--coral-dark); }
.gift-card-featured .gift-link:hover { background: var(--ink); }

.faq-item {
  padding: 0;
  overflow: hidden;
  transition: border-color 150ms ease, background 150ms ease;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  border-radius: 50%;
  color: var(--coral-dark);
  background: var(--coral-soft);
  content: "+";
  font-size: 1.1rem;
  line-height: 1;
}

.faq-item[open] { border-color: rgba(228, 108, 87, 0.3); background: rgba(255, 255, 255, 0.86); }
.faq-item[open] summary { color: var(--coral-dark); }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0 17px 17px; }

.confetti-canvas {
  position: fixed;
  z-index: 20;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@keyframes question-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes results-in {
  from { opacity: 0; transform: translate3d(0, 12px, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes gift-in {
  from { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.985); }
  to { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
}

@media (max-width: 639px) {
  .option-card { min-height: 68px; }
  .hero-notes { align-items: center; }
}

@media (min-width: 640px) {
  .site-header { padding-top: 26px; padding-bottom: 12px; }
  .hero { padding-top: 48px; padding-bottom: 28px; }
  .wizard-card { padding: 27px; }
  .gift-card-featured { grid-column: 1 / -1; }
}

@media (min-width: 860px) {
  .hero { padding-top: 58px; padding-bottom: 32px; }
  .wizard-card { padding: 34px; }
  .gift-card-featured { grid-column: span 2; }
}

@media (prefers-reduced-motion: reduce) {
  .question-region.question-transition,
  .results.results-transition,
  .gift-card { animation: none; }
}


.language-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.language-picker select {
  appearance: none;
  min-height: 42px;
  padding: 0.65rem 2.2rem 0.65rem 0.9rem;
  border: 1px solid var(--line-strong, #e4d8ce);
  border-radius: 999px;
  color: var(--ink, #29241f);
  background: rgba(255, 255, 255, 0.72);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.language-picker::after {
  content: '⌄';
  position: absolute;
  top: 50%;
  right: 0.78rem;
  color: var(--coral, #b64b3c);
  font-weight: 800;
  pointer-events: none;
  transform: translateY(-54%);
}

.language-picker select:focus-visible {
  outline: 3px solid rgba(228, 108, 87, 0.25);
  outline-offset: 2px;
}

.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;
}

@media (max-width: 520px) {
  .language-picker select {
    min-height: 38px;
    padding: 0.55rem 1.9rem 0.55rem 0.7rem;
    font-size: 0.7rem;
  }

  .language-picker::after {
    right: 0.6rem;
  }
}

.gift-match {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
}

.gift-match-label {
  flex: 0 0 auto;
  color: var(--coral-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.gift-match-track {
  flex: 1 1 auto;
  min-width: 54px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--coral-soft);
}

.gift-match-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), #f0a08c);
  transform-origin: left center;
  animation: match-fill 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes match-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (max-width: 480px) {
  .gift-match-label { font-size: 0.68rem; }
  .gift-match { gap: 8px; }
}


.gift-angle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
  color: var(--coral-dark);
  font-size: 0.7rem;
  font-weight: 800;
}

.gift-angle-mark { font-size: 0.85rem; }
.gift-new-badge { padding: 3px 6px; border-radius: 999px; color: #5f5147; background: var(--sage); font-size: 0.61rem; letter-spacing: 0.02em; }
.gift-card-discovery { border-color: rgba(102, 129, 103, 0.3); }
.gift-card-discovery .gift-angle { color: #5f8063; }

/* Responsive hardening: keep every interactive block inside the viewport. */
html,
body {
  overflow-x: clip;
}

.site-header,
.brand,
.results,
.results-head,
.results-toolbar,
.gift-card {
  min-width: 0;
}

.brand {
  flex: 1 1 auto;
}

.brand > span:last-child {
  white-space: nowrap;
}

.language-picker {
  flex: 0 0 auto;
}

.mode-button {
  min-width: 0;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

@media (max-width: 380px) {
  .page-shell {
    padding-right: 12px;
    padding-left: 12px;
  }

  .site-header {
    gap: 8px;
  }

  .brand {
    gap: 7px;
    font-size: 1rem;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .language-picker select {
    max-width: 112px;
    padding-right: 1.75rem;
  }

  .wizard-card {
    padding: 13px;
    border-radius: 20px;
  }

  .option-card {
    gap: 7px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .option-label {
    font-size: 0.82rem;
  }

  .option-detail {
    font-size: 0.66rem;
  }

  .gift-card {
    padding: 14px;
  }

  .gift-card h3 {
    font-size: 1rem;
  }

  .gift-reason {
    font-size: 0.83rem;
  }

  .gift-match {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .gift-match-track {
    flex-basis: 100%;
    height: 6px;
  }
}

.pwa-dismiss:focus-visible,
.weekly-link:focus-visible {
  outline: 3px solid rgba(228, 108, 87, 0.28);
  outline-offset: 2px;
}

.gift-card-actions {
  display: grid;
  gap: 8px;
  margin-top: 15px;
}

.gift-card-actions .gift-link {
  margin-top: 0;
}

.weekly-discovery {
  margin: 18px 4px 0;
  padding: 17px;
  border: 1px solid rgba(102, 129, 103, 0.24);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(223, 233, 220, 0.72), rgba(255, 255, 255, 0.72) 62%, rgba(238, 233, 248, 0.62));
  box-shadow: 0 10px 25px rgba(92, 61, 39, 0.05);
}

.weekly-topline,
.weekly-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.weekly-topline {
  color: #5f8063;
  font-size: 0.67rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.weekly-spark { font-size: 1rem; }
.weekly-discovery h2 { margin: 11px 0 0; font-size: clamp(1.15rem, 4vw, 1.5rem); letter-spacing: -0.035em; line-height: 1.08; }
.weekly-discovery p { max-width: 650px; margin: 8px 0 0; color: var(--muted); font-size: 0.82rem; line-height: 1.45; }
.weekly-footer { flex-wrap: wrap; margin-top: 13px; }
.weekly-price { color: #5f8063; font-size: 0.72rem; font-weight: 800; }
.weekly-link { color: var(--coral-dark); font-size: 0.76rem; font-weight: 850; text-decoration: none; }
.weekly-link:hover { text-decoration: underline; }

.analytics-consent {
  position: fixed;
  z-index: 19;
  right: 18px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  max-width: 620px;
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(228, 108, 87, 0.3);
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.98);
  box-shadow: 0 14px 38px rgba(42, 31, 23, 0.18);
  backdrop-filter: blur(14px);
}

.analytics-consent-copy { min-width: 0; }
.analytics-consent-copy strong,
.analytics-consent-copy span { display: block; }
.analytics-consent-copy strong { font-size: 0.76rem; }
.analytics-consent-copy span { margin-top: 3px; color: var(--muted); font-size: 0.67rem; line-height: 1.35; }
.analytics-consent-actions { display: flex; align-items: center; gap: 7px; }
.analytics-consent-actions .button { min-height: 34px; padding: 0 10px; font-size: 0.68rem; white-space: nowrap; }
.analytics-consent-actions .button-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--paper); }
body.analytics-consent-visible .pwa-prompt { bottom: calc(max(12px, env(safe-area-inset-bottom, 0px)) + 96px); }
.footer-preferences { display: inline-flex; margin-top: 10px; padding: 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.72rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-preferences:hover { color: var(--coral-dark); }

.pwa-prompt {
  position: fixed;
  z-index: 18;
  right: 18px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  left: 18px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px 10px;
  border: 1px solid rgba(228, 108, 87, 0.26);
  border-radius: 16px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 14px 38px rgba(42, 31, 23, 0.17);
  backdrop-filter: blur(14px);
}

.pwa-prompt-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: var(--coral);
  font-weight: 900;
}

.pwa-prompt-copy { min-width: 0; }
.pwa-prompt-copy strong,
.pwa-prompt-copy span { display: block; }
.pwa-prompt-copy strong { font-size: 0.74rem; }
.pwa-prompt-copy span { margin-top: 2px; color: var(--muted); font-size: 0.65rem; line-height: 1.25; }
.pwa-prompt .button { min-height: 34px; padding: 0 10px; font-size: 0.68rem; }
.pwa-dismiss { width: 28px; height: 28px; border: 0; border-radius: 50%; color: var(--muted); background: #f6f1ec; font-size: 1rem; cursor: pointer; }

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 17px;
}

.guide-meta span {
  padding: 6px 9px;
  border-radius: 999px;
  color: #5f5147;
  background: var(--sage);
  font-size: 0.7rem;
  font-weight: 750;
}

.guide-meta span:nth-child(2n) { background: var(--lavender); }
.answer-block { margin-top: 23px; padding: 17px; border-left: 3px solid var(--coral); border-radius: 0 17px 17px 0; background: rgba(255, 240, 235, 0.62); }
.answer-block strong { display: block; color: var(--coral-dark); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.answer-block p { margin: 8px 0 0; color: var(--ink); font-size: 1rem; line-height: 1.5; }
.guide-inline-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.guide-inline-links a { color: var(--coral-dark); font-size: 0.77rem; font-weight: 800; text-decoration: none; }
.guide-inline-links a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .weekly-discovery { margin-right: 0; margin-left: 0; }
  .analytics-consent { grid-template-columns: 1fr; gap: 8px; padding: 11px 12px; }
  .analytics-consent-actions { justify-content: flex-end; }
  .pwa-prompt { right: 12px; bottom: max(12px, env(safe-area-inset-bottom, 0px)); left: 12px; grid-template-columns: 30px minmax(0, 1fr) auto auto; padding: 8px; }
  .pwa-prompt-icon { width: 30px; height: 30px; }
  .pwa-prompt-copy span { display: none; }
  .pwa-prompt .button { grid-column: auto; justify-self: auto; }
  .pwa-dismiss { grid-column: auto; grid-row: auto; }
}

@media (max-width: 380px) {
  .pwa-prompt-copy strong { font-size: 0.74rem; }
  .pwa-prompt-copy span { font-size: 0.64rem; }
}

@media (prefers-reduced-motion: reduce) {
  .option-card:active,
  .button:active:not(:disabled),
  .gift-match-fill { transform: none; }
}

/* Dark mode: preserve the warm Regalazo palette without reducing contrast. */
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at 92% 2%, rgba(73, 55, 91, 0.55), transparent 25rem),
    radial-gradient(circle at 0% 48%, rgba(40, 71, 49, 0.42), transparent 24rem),
    var(--cream);
}

html[data-theme="dark"] .header-pill,
html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .language-picker select,
html[data-theme="dark"] .hero-notes span,
html[data-theme="dark"] .trust-item,
html[data-theme="dark"] .option-card,
html[data-theme="dark"] .gift-card,
html[data-theme="dark"] .seo-card,
html[data-theme="dark"] .guide-card,
html[data-theme="dark"] .guide-list li,
html[data-theme="dark"] .faq-item {
  background: rgba(34, 29, 26, 0.92);
  border-color: var(--line);
}

html[data-theme="dark"] .wizard-card { background: var(--paper); border-color: var(--line); }
html[data-theme="dark"] .option-card:hover,
html[data-theme="dark"] .theme-toggle:hover { border-color: var(--coral); }
html[data-theme="dark"] .option-icon,
html[data-theme="dark"] .gift-tag,
html[data-theme="dark"] .button-ghost,
html[data-theme="dark"] .pwa-dismiss { background: #302823; }
html[data-theme="dark"] .option-card[aria-pressed="true"] .option-icon { background: #4a2d27; }
html[data-theme="dark"] .button-ghost:hover { background: #40342d; }
html[data-theme="dark"] .progress-track { background: #3a302b; }
html[data-theme="dark"] .summary-chip { color: #eadbd1; }
html[data-theme="dark"] .gift-card { box-shadow: 0 8px 26px rgba(0, 0, 0, 0.2); }
html[data-theme="dark"] .gift-tag { color: #d8c7bb; }
html[data-theme="dark"] .gift-link { color: #211a17; background: #f1a08d; }
html[data-theme="dark"] .gift-link:hover { background: #ffb3a1; }
html[data-theme="dark"] .gift-card-featured { background: linear-gradient(145deg, #2a211e, #3b2521); }
html[data-theme="dark"] .gift-badge { background: rgba(62, 42, 36, 0.9); }
html[data-theme="dark"] .gift-card-featured .gift-link { color: #211a17; background: var(--coral-dark); }
html[data-theme="dark"] .gift-card-featured .gift-link:hover { background: #ffd0c4; }
html[data-theme="dark"] .seo-content { border-top-color: var(--line); }
html[data-theme="dark"] .faq-item[open] { background: #2a211e; border-color: rgba(239, 120, 98, 0.48); }
html[data-theme="dark"] .results-note,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .legal-meta,
html[data-theme="dark"] .keyboard-hint,
html[data-theme="dark"] .breadcrumbs { color: #a9988d; }
html[data-theme="dark"] .weekly-discovery { background: linear-gradient(135deg, rgba(42, 60, 48, 0.9), rgba(37, 31, 28, 0.92) 62%, rgba(51, 45, 67, 0.9)); border-color: rgba(112, 157, 119, 0.35); }
html[data-theme="dark"] .pwa-prompt { background: rgba(34, 29, 26, 0.97); border-color: rgba(239, 120, 98, 0.38); box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42); }
html[data-theme="dark"] .analytics-consent { background: rgba(34, 29, 26, 0.98); border-color: rgba(239, 120, 98, 0.38); box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42); }
html[data-theme="dark"] .answer-block,
html[data-theme="dark"] .legal-notice { background: rgba(59, 37, 33, 0.74); }
html[data-theme="dark"] .seo-cluster-cta a { color: var(--coral-dark); }
html[data-theme="dark"] .legal-links { border-top-color: var(--line); }

/* Dark mode: reduce display weights so the same hierarchy reads lighter at night. */
html[data-theme="dark"] .hero h1 { font-weight: 680; }
html[data-theme="dark"] .question-title,
html[data-theme="dark"] .results h2,
html[data-theme="dark"] .gift-card h3,
html[data-theme="dark"] .seo-content h2,
html[data-theme="dark"] .faq-title,
html[data-theme="dark"] .legal-page h1,
html[data-theme="dark"] .guide-page h1 { font-weight: 650; }
html[data-theme="dark"] .option-label,
html[data-theme="dark"] .button,
html[data-theme="dark"] .gift-link { font-weight: 650; }

/* Desktop hero: keep the statement bold without the oversized, ultra-heavy mobile treatment. */
@media (min-width: 640px) {
  .hero h1 {
    font-size: clamp(2.8rem, 6.4vw, 4.45rem);
    font-weight: 760;
    line-height: 1;
    letter-spacing: -0.055em;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: clamp(3.15rem, 5.5vw, 4.45rem);
  }
}
