/* =========================================================
   Givter — style.css
   Clean, modern, white + orange design system.
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Core surfaces */
  --white: #ffffff;
  --bg: #fafafa;
  --bg-soft: #fff7f3;
  --surface: #ffffff;

  /* Text */
  --ink: #1a1d23;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --muted-2: #9ca3af;

  /* Accent — orange */
  --orange: #ff6a3d;
  --orange-dark: #e8552b;
  --orange-light: #ff8b61;
  --orange-soft: #ffe4d6;
  --orange-soft-2: #fff1ea;

  /* Lines */
  --line: #e8e8ec;
  --line-soft: #f1f1f4;

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 20px 48px rgba(16, 24, 40, 0.10);
  --shadow-orange: 0 10px 28px rgba(255, 106, 61, 0.28);

  /* Type */
  --font-display: "Poppins", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  background: var(--bg);
  overflow-x: hidden;
}
button {
  font-family: inherit;
  cursor: pointer;
}
img {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ---------- Shell / layout ---------- */
.shell {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.wrap {
  width: min(1120px, 92vw);
  margin-inline: auto;
}
.wrap--narrow {
  width: min(720px, 92vw);
  margin-inline: auto;
}

/* =========================================================
   NAVIGATION
   ========================================================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
}
.brand__mark {
  flex: none;
  width: 36px;
  height: 36px;
  display: block;
}
.brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand__name em {
  font-style: normal;
  color: var(--orange);
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.95rem;
  font-weight: 500;
}
.navlinks a {
  text-decoration: none;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
  position: relative;
}
.navlinks a:hover {
  color: var(--ink);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
body.is-quizzing .navbar__actions,
body.is-quizzing .navlinks {
  display: none;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
    background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}
.btn--primary {
  color: #fff;
  background: var(--orange);
  box-shadow: var(--shadow-orange);
}
.btn--primary:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 106, 61, 0.36);
}
.btn--lg {
  font-size: 1.05rem;
  padding: 17px 36px;
}
.btn--sm {
  font-size: 0.88rem;
  padding: 10px 20px;
}
.btn--ghost {
  background: var(--white);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover:not(:disabled) {
  border-color: var(--orange);
  color: var(--orange-dark);
  transform: translateY(-2px);
}
.btn--ghost-soft {
  background: var(--orange-soft-2);
  color: var(--orange-dark);
  border: 1px solid var(--orange-soft);
}
.btn--ghost-soft:hover:not(:disabled) {
  background: var(--orange-soft);
  transform: translateY(-2px);
}
.btn--text {
  background: none;
  color: var(--ink-soft);
  padding: 10px 14px;
}
.btn--text:hover {
  color: var(--ink);
}
.btn__arrow {
  transition: transform 0.22s var(--ease);
}
.btn:hover:not(:disabled) .btn__arrow {
  transform: translateX(4px);
}

/* =========================================================
   SEARCH BAR COMPONENT
   ========================================================= */
.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  padding: 7px 7px 7px 22px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.searchbar:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft), var(--shadow-md);
}
.searchbar__icon {
  flex: none;
  color: var(--muted-2);
  display: grid;
  place-items: center;
}
.searchbar__input {
  flex: 1;
  border: 0;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  padding: 10px 0;
  min-width: 0;
}
.searchbar__input::placeholder {
  color: var(--muted-2);
}
.searchbar .btn {
  flex: none;
}
.searchbar--hero {
  max-width: 560px;
  margin: 0 auto;
  padding: 9px 9px 9px 26px;
}

/* =========================================================
   SCREEN SYSTEM
   ========================================================= */
.screen {
  display: none;
  flex: 1;
  padding: 10px 0 80px;
  animation: screenIn 0.5s var(--ease) both;
}
.screen.is-active {
  display: block;
}
@keyframes screenIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0 48px;
}
.hero__inner {
  max-width: 700px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  background: var(--orange-soft-2);
  border: 1px solid var(--orange-soft);
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 22px 0 0;
  color: var(--ink);
}
.hero h1 .accent {
  color: var(--orange);
}
.hero__sub {
  margin: 18px auto 0;
  max-width: 540px;
  font-size: clamp(1.02rem, 2.2vw, 1.18rem);
  color: var(--muted);
}
.hero__search {
  margin-top: 36px;
}
.hero__or {
  margin: 22px 0 0;
  color: var(--muted-2);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__cta {
  margin-top: 14px;
}
.reassure {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}
.reassure span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.reassure span::before {
  content: "✓";
  color: var(--orange);
  font-weight: 700;
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section {
  padding: 72px 0;
}
.section--soft {
  background: var(--bg-soft);
}
.section__head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}
.section__kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 10px;
}
.section__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.section__title em {
  font-style: normal;
  color: var(--orange);
}
.section__sub {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 26px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-soft);
}
.step-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: var(--orange-soft-2);
  color: var(--orange);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 18px;
}
.step-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  margin: 0 0 8px;
  color: var(--ink);
}
.step-card__text {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Value chips row */
.value-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 44px;
}
.value-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--r-pill);
  padding: 10px 18px;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.value-chip b {
  color: var(--orange-dark);
}

/* FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq-item.is-open {
  border-color: var(--orange-soft);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--ink);
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 600;
}
.faq-q__icon {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--orange);
  font-size: 1.1rem;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.faq-item.is-open .faq-q__icon {
  transform: rotate(45deg);
  background: var(--orange-soft-2);
  border-color: var(--orange-soft);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-a__inner {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 40px;
  background: var(--white);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
}
.footer-brand em {
  font-style: normal;
  color: var(--orange);
}
.footer-brand .brand__mark {
  width: 28px;
  height: 28px;
}
.footer-note {
  color: var(--muted-2);
  font-size: 0.82rem;
  text-align: right;
  line-height: 1.6;
}
.footer-note b {
  color: var(--muted);
}

/* =========================================================
   QUIZ
   ========================================================= */
.quiz {
  max-width: 680px;
  margin-inline: auto;
}

/* Progress */
.progress {
  margin: 6px auto 28px;
  max-width: 680px;
}
.progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.progress__step {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.progress__step b {
  color: var(--orange-dark);
}
.progress__label {
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 500;
}
.progress__track {
  position: relative;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--line);
  overflow: hidden;
}
.progress__fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: var(--r-pill);
  background: var(--orange);
  transition: width 0.5s var(--ease-spring);
}

/* Question card */
.q-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4.5vw, 46px);
}
.q-card.q-anim {
  animation: qIn 0.4s var(--ease-spring) both;
}
@keyframes qIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.q-card.q-leave {
  animation: qOut 0.22s var(--ease) both;
}
@keyframes qOut {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.99);
  }
}

.q-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 10px;
}
.q-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--ink);
}
.q-title:has(+ .q-subtitle) {
  margin-bottom: 8px;
}
.q-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* Option grid */
.options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 15px 17px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}
.option:hover {
  transform: translateY(-2px);
  border-color: var(--orange-light);
  box-shadow: var(--shadow-sm);
}
.option__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line);
  font-size: 20px;
  transition: transform 0.18s var(--ease), border-color 0.18s var(--ease), background 0.18s var(--ease);
}
.option:hover .option__icon {
  transform: scale(1.06);
}
.option.is-selected {
  border-color: var(--orange);
  background: var(--orange-soft-2);
  box-shadow: 0 0 0 1px var(--orange);
}
.option.is-selected .option__icon {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.option__check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 13px;
  transition: all 0.18s var(--ease);
}
.option.is-selected .option__check {
  background: var(--orange);
  border-color: var(--orange);
}

/* Custom interest entry */
.custom-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.custom-input {
  flex: 1 1 200px;
  min-width: 0;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg);
  color: var(--ink);
}
.custom-input::placeholder {
  color: var(--muted-2);
}
.custom-input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
  background: #fff;
}
.custom-add-btn {
  flex: 0 0 auto;
  padding: 14px 24px;
}

/* Chips for custom interests */
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.chip-list:empty {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange-soft-2);
  border: 1px solid var(--orange-soft);
  border-radius: var(--r-pill);
  padding: 8px 8px 8px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--orange-dark);
}
.chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: rgba(232, 85, 43, 0.12);
  color: var(--orange-dark);
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s var(--ease);
}
.chip button:hover {
  background: rgba(232, 85, 43, 0.22);
}

/* Open-text question */
.q-textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 1.02rem;
  line-height: 1.6;
}
.q-textarea::placeholder {
  color: var(--muted-2);
}
.q-textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-soft);
  background: #fff;
}
.q-skip-note {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

/* Quiz nav */
.q-nav {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.q-back {
  background: none;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 10px 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}
.q-back:hover {
  color: var(--ink);
  transform: translateX(-3px);
}
.q-back[hidden] {
  visibility: hidden;
}
.q-hint {
  color: var(--muted-2);
  font-size: 0.85rem;
  font-weight: 500;
}

/* =========================================================
   LOADING
   ========================================================= */
.loading {
  display: grid;
  place-items: center;
  min-height: 56vh;
  text-align: center;
}
.seal-loader {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 32px;
  display: grid;
  place-items: center;
}
.seal-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid var(--orange-soft);
  border-top-color: var(--orange);
  animation: ringSpin 1s linear infinite;
}
@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}
.seal-stamp {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  background: var(--orange);
  box-shadow: var(--shadow-orange);
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  animation: sealPulse 1.6s var(--ease) infinite;
}
@keyframes sealPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.9);
  }
}
.seal-ripple {
  display: none;
}
.loading h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.loading__msg {
  color: var(--muted);
  min-height: 1.6em;
  transition: opacity 0.3s var(--ease);
  font-size: 1.02rem;
}

/* =========================================================
   RESULTS
   ========================================================= */
.results__head {
  text-align: center;
  max-width: 660px;
  margin: 0 auto 36px;
}
.results__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 5vw, 2.6rem);
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 16px 0 12px;
  color: var(--ink);
}
.results__head h2 .accent {
  color: var(--orange);
}
.results__summary {
  color: var(--muted);
  font-size: 1.02rem;
}
.summary-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.summary-tags .tag {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.summary-tags .tag i {
  font-style: normal;
  margin-right: 6px;
}

/* Grid of gift cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}
.gift-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  animation: cardIn 0.5s var(--ease-spring) both;
}
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.gift-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--orange-soft);
}
.gift-card__media {
  position: relative;
  height: 152px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}
.gift-card__medallion {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--orange-soft-2);
  border: 1.5px solid var(--orange-soft);
}
.gift-card__icon {
  font-size: 2.6rem;
  line-height: 1;
}
.gift-card__category {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.gift-card__media img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gift-card:hover .gift-card__media img {
  transform: scale(1.05);
}
.gift-card__retailer {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 13px 5px 10px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.gift-card__retailer::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.gift-card__retailer--amazon::before {
  background: var(--ink);
}
.gift-card__retailer--etsy::before {
  background: #7a9b86;
}
.gift-card__price {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: var(--orange);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.gift-card__body {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.gift-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.18rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0 0 8px;
  color: var(--ink);
}
.gift-card__desc {
  color: var(--muted);
  font-size: 0.93rem;
  margin: 0 0 14px;
}
.gift-card__why {
  background: var(--bg-soft);
  border: 1px solid var(--orange-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.gift-card__why-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin-bottom: 4px;
}
.gift-card__why p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.gift-card__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* Results actions */
.results__actions {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.results__more {
  margin-top: 28px;
  text-align: center;
}
.results__more-note {
  margin: 14px auto 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  z-index: 50;
}
.toast.is-show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Error / empty state */
.notice {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.notice h3 {
  font-family: var(--font-display);
  font-weight: 700;
  margin: 0 0 8px;
  font-size: 1.4rem;
}
.notice p {
  color: var(--muted);
  margin: 0 0 20px;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
  .navlinks {
    display: none;
  }
}

@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .options {
    grid-template-columns: 1fr;
  }
  .btn--lg {
    width: 100%;
    justify-content: center;
  }
  .results__actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .q-card {
    padding: 24px 20px;
  }
  .q-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .q-nav .btn {
    width: 100%;
    justify-content: center;
  }
  .q-nav .q-back {
    align-self: center;
  }
  .searchbar--hero {
    flex-wrap: wrap;
    padding: 14px 18px;
    border-radius: var(--r-lg);
  }
  .searchbar--hero .searchbar__input {
    flex: 1 1 100%;
    order: 1;
  }
  .searchbar--hero .btn {
    order: 2;
    width: 100%;
    justify-content: center;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-note {
    text-align: center;
  }
}

@media (max-width: 380px) {
  .option {
    padding: 13px;
    font-size: 0.95rem;
  }
  .option__icon {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}

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

/* ==========================================================
   FILTER BAR & SORT CONTROLS (results page)
   ========================================================== */
.results__filter-bar {
  margin: 0 0 1.5rem;
}

.filter-bar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  padding: 0.4rem 1rem;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background 0.15s var(--ease), color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.filter-chip:hover {
  border-color: var(--orange-light);
  color: var(--orange);
  background: var(--orange-soft-2);
}
.filter-chip.is-active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(255,106,61,0.25);
}

.filter-bar__sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.filter-bar__sort-label {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}
.sort-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 0.4rem 2.2rem 0.4rem 0.9rem;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--line);
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.7rem center;
  font-size: 0.875rem;
  color: var(--ink);
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color 0.15s var(--ease);
}
.sort-select:hover,
.sort-select:focus {
  border-color: var(--orange);
  outline: none;
}

/* Skip button for optional quiz questions */
.q-skip-btn {
  display: block;
  margin: 1.25rem auto 0;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.5rem 1rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.15s;
}
.q-skip-btn:hover {
  color: var(--orange);
}

/* Optional badge on quiz kicker */
.q-kicker--optional::after {
  content: " · Optional";
  font-size: 0.75em;
  color: var(--muted-2);
  font-weight: 400;
}

@media (max-width: 640px) {
  .filter-bar__filters {
    gap: 0.4rem;
  }
  .filter-chip {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
  }
  .filter-bar__sort {
    flex-wrap: wrap;
  }
}
