/* =========================================================
   Gift Reminders - shared styles for every page
   ========================================================= */

:root {
  --brand: #6d28d9;
  --brand-dark: #5b21b6;
  --brand-50: #f5f3ff;
  --brand-100: #ede9fe;
  --brand-200: #ddd6fe;
  --accent: #f97316;
  --accent-50: #fff7ed;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --ok-bg: #dcfce7; --ok: #166534;
  --warn-bg: #fef9c3; --warn: #854d0e;
  --err-bg: #fee2e2; --err: #991b1b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 18px 40px rgba(76, 29, 149, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.section { padding: 80px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 19px; }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--brand); display: grid; place-items: center; }
.logo-mark svg { width: 20px; height: 20px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--ink-2); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover, .nav a.active { color: var(--brand); background: var(--brand-50); }
.nav .btn { margin-left: 8px; color: #fff; }
.nav .btn:hover { color: #fff; background: var(--brand-dark); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.menu-toggle svg { width: 22px; height: 22px; display: block; }

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 12px 20px 18px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand); color: #fff; border: 2px solid var(--brand); padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; font-family: inherit; transition: background .15s, transform .15s; }
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-lg { padding: 16px 28px; font-size: 18px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn-outline { background: #fff; color: var(--brand); }
.btn-outline:hover { background: var(--brand-50); color: var(--brand-dark); }
.btn-ghost { background: transparent; border-color: transparent; color: var(--brand); padding: 8px 12px; }
.btn-ghost:hover { background: var(--brand-50); border-color: transparent; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-danger { background: #fff; color: var(--err); border-color: #fecaca; }
.btn-danger:hover { background: var(--err-bg); border-color: #fca5a5; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 64px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-100), transparent 60%), linear-gradient(180deg, var(--brand-50), #fff); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 span { color: var(--brand); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.trust { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.check { width: 18px; height: 18px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: inline-grid; place-items: center; font-size: 12px; font-weight: 900; }

/* Email preview card in the hero */
.mock { background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--brand-100); overflow: hidden; transform: rotate(1.2deg); }
.mock-bar { background: var(--brand); color: #fff; padding: 12px 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; }
.mock-body { padding: 22px; }
.mock-meta { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.mock h3 { font-size: 22px; margin-bottom: 4px; }
.mock .wish { background: var(--brand-50); border-radius: 12px; padding: 12px 14px; margin: 14px 0; font-size: 14px; }
.mock .wish b { color: #4c1d95; display: block; margin-bottom: 4px; }
.mock .fake-btn { display: block; text-align: center; background: var(--brand); color: #fff; border-radius: 10px; padding: 12px; font-weight: 700; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .mock { transform: none; max-width: 460px; }
}

/* Scroll reminder */
.scroll-cue { display: flex; flex-direction: column; align-items: center; gap: 6px; width: max-content; max-width: 100%; margin: 44px auto 0; text-decoration: none; color: var(--brand-dark); font-weight: 700; font-size: 16px; background: #fff; border: 1.5px solid var(--brand-200); padding: 12px 22px 10px; border-radius: 999px; box-shadow: var(--shadow); text-align: center; }
.scroll-cue:hover { background: var(--brand-50); }
.scroll-cue-inline { margin-top: 0; }
.scroll-arrow { font-size: 22px; line-height: 1; animation: cue-bounce 1.6s ease-in-out infinite; }
@keyframes cue-bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .scroll-arrow { animation: none; } }
.scroll-cue-mobile { display: none; }
@media (max-width: 900px) {
  .scroll-cue-mobile { display: flex; margin: 26px 0 0; width: 100%; }
  .scroll-cue-desktop { display: none; }
}

/* ---------- Cards and grids ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }

.step-card { text-align: left; position: relative; }
.step-num { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.feature { display: flex; gap: 16px; align-items: flex-start; }
.icon { flex: 0 0 48px; height: 48px; border-radius: 14px; background: var(--brand-50); display: grid; place-items: center; font-size: 24px; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--ink-2); margin: 0; font-size: 15px; }

/* ---------- Forms ---------- */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow-lg); }
.form-section { padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.form-section:last-of-type { border-bottom: 0; }
.form-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; display: flex; align-items: center; gap: 10px; }
.form-title .pill { font-size: 12px; }
label { display: block; font-size: 14px; font-weight: 700; color: var(--ink-2); margin: 14px 0 6px; }
.opt { font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--ink);
  border: 1.5px solid #cbd5e1; border-radius: var(--radius-sm); background: #fff; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row-3 { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .row, .row-3 { grid-template-columns: 1fr; } }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.person { position: relative; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 20px; margin-bottom: 14px; }
.person-head { display: flex; align-items: center; justify-content: space-between; }
.person-head h4 { margin: 0; font-size: 16px; }
.add-person { width: 100%; padding: 14px; border: 2px dashed var(--brand-200); background: #fff; color: var(--brand); border-radius: 14px; font-weight: 700; font-size: 16px; cursor: pointer; font-family: inherit; }
.add-person:hover { background: var(--brand-50); }

.toggle { display: flex; align-items: flex-start; gap: 12px; background: var(--brand-50); border: 1px solid var(--brand-100); padding: 14px 16px; border-radius: 12px; cursor: pointer; }
.toggle input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; }
.toggle b { display: block; }
.toggle span { font-size: 14px; color: var(--ink-2); }

.alert { padding: 14px 16px; border-radius: 12px; margin-top: 16px; font-weight: 600; }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-err { background: var(--err-bg); color: var(--err); }
.alert-info { background: var(--brand-50); color: #4c1d95; border: 1px solid var(--brand-100); }

.pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--brand-50); color: var(--brand-dark); }
.pill-orange { background: var(--accent-50); color: #c2410c; }
.pill-green { background: var(--ok-bg); color: var(--ok); }
.pill-gray { background: #f1f5f9; color: var(--muted); }

/* Signup layout */
.signup-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 48px; align-items: start; }
.signup-side { position: sticky; top: 100px; }
.signup-side ul { list-style: none; padding: 0; margin: 20px 0 0; }
.signup-side li { display: flex; gap: 10px; margin-bottom: 12px; color: var(--ink-2); }
@media (max-width: 900px) { .signup-grid { grid-template-columns: 1fr; } .signup-side { position: static; } }

.success { text-align: center; padding: 10px 0; }
.success .big { font-size: 56px; line-height: 1; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; flex-wrap: wrap; }
.share-row:last-child { border-bottom: 0; }
.share-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--ink-2); }

/* ---------- Gift ideas page ---------- */
.page-hero { padding: 48px 0 32px; background: linear-gradient(180deg, var(--brand-50), #fff); border-bottom: 1px solid var(--line); }
.filters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 24px; background: #fff; padding: 16px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.filters label { margin-top: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
@media (max-width: 900px) { .filters { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .filters { grid-template-columns: 1fr; } }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.chip { border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.chip:hover { border-color: var(--brand-200); color: var(--brand); }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-group { margin-top: 18px; }
.chip-group > b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.gift-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.gift-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.gift-emoji { width: 60px; height: 60px; border-radius: 16px; background: var(--brand-50); display: grid; place-items: center; font-size: 32px; margin-bottom: 14px; }
.gift-card h3 { margin-bottom: 6px; }
.gift-card p { color: var(--ink-2); font-size: 15px; flex: 1; }
.gift-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.gift-card .btn { margin-top: auto; }
.top-pick { border: 2px solid var(--brand); position: relative; }
.top-pick::before { content: "Top match"; position: absolute; top: -12px; left: 18px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

.wish-box { background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); border: 1px solid var(--brand-100); border-radius: 20px; padding: 24px; margin: 32px 0 0; }
.wish-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.wish-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #fff; border-radius: 12px; padding: 12px 14px; border: 1px solid var(--line); }
.wish-item span { font-weight: 700; }

.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 36px 0 18px; }
.results-head h2 { font-size: 24px; margin: 0; }

.cta-band { background: var(--brand); color: #fff; border-radius: 24px; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; font-size: 28px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--brand); border-color: #fff; }
.cta-band .btn:hover { background: var(--brand-50); }

/* ---------- Manage page ---------- */
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.person-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); margin-bottom: 18px; overflow: hidden; }
.person-top { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.avatar { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-100); color: var(--brand-dark); display: grid; place-items: center; font-weight: 800; font-size: 20px; flex: 0 0 auto; }
.person-top .who { flex: 1; min-width: 180px; }
.person-top .who h3 { margin: 0; }
.countdown { text-align: right; }
.countdown b { display: block; font-size: 26px; color: var(--brand); line-height: 1; }
.countdown span { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.person-body { padding: 4px 22px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 720px) { .person-body { grid-template-columns: 1fr; } }
.history { list-style: none; padding: 0; margin: 8px 0 0; }
.history li { padding: 8px 12px; background: var(--bg-soft); border-radius: 8px; margin-bottom: 6px; font-size: 14px; }
.person-foot { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 22px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.save-note { font-size: 13px; color: var(--ok); font-weight: 700; margin-left: 8px; }

.empty { text-align: center; padding: 60px 20px; }
.empty .big { font-size: 56px; }

/* ---------- Footer ---------- */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 56px 0 32px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer a { color: #cbd5e1; text-decoration: none; display: block; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .logo { color: #fff; margin-bottom: 12px; }
.footer-bottom { border-top: 1px solid #1e293b; margin-top: 36px; padding-top: 20px; font-size: 13px; color: #94a3b8; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

.disclosure-bar { background: var(--accent-50); color: #9a3412; font-size: 13px; text-align: center; padding: 8px 16px; border-bottom: 1px solid #fed7aa; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(120px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-lg); transition: transform .25s; z-index: 100; }
.toast.show { transform: translateX(-50%) translateY(0); }

.prose h2 { font-size: 22px; margin-top: 32px; }
.prose p, .prose li { color: var(--ink-2); }

/* ---------- Version 2.1 additions ---------- */
.scroll-cue-link { display: none; align-items: center; gap: 6px; margin-top: 22px; color: var(--brand-dark); font-weight: 700; font-size: 15px; text-decoration: none; }
.scroll-cue-link .scroll-arrow { font-size: 18px; }
@media (max-width: 900px) { .scroll-cue-link.scroll-cue-mobile { display: inline-flex; } }

.key-panel { display: flex; gap: 16px; align-items: flex-start; margin-top: 20px; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: var(--radius); padding: 22px 24px; }
.key-panel .icon { background: #fff; }
.key-panel h3 { margin-bottom: 4px; }
.key-panel p { margin: 0; color: var(--ink-2); }

.reassure { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.founder { text-align: center; font-size: 13px; color: var(--muted); margin: 8px 0 0; }

.season { background: linear-gradient(90deg, #4c1d95, var(--brand)); color: #fff; }
.season .container { display: flex; align-items: center; justify-content: center; gap: 10px 18px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; font-weight: 600; font-size: 15px; text-align: center; }
.season b { font-weight: 800; }
.season a { color: #fff; font-weight: 800; text-decoration: none; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); padding: 5px 12px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.season a:hover { background: rgba(255, 255, 255, .28); }

.capture { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; background: linear-gradient(135deg, var(--brand-50), var(--accent-50)); border: 1px solid var(--brand-100); border-radius: 24px; padding: 32px; margin: 0 0 36px; }
.capture h2 { font-size: 26px; }
.capture-form { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.capture-form label:first-child { margin-top: 0; }
@media (max-width: 820px) { .capture { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 600px) {
  .season .container { gap: 8px; font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
  .season-line, .season-2 { display: none; }
  .season a { padding: 4px 10px; font-size: 13px; }
}
