@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/dm-sans.woff2") format("woff2");
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("./fonts/fraunces.woff2") format("woff2");
}

:root {
  --bg: #0c241c;
  --bg-mid: #14352a;
  --panel: #f4efe4;
  --panel-soft: #ebe4d6;
  --ink: #142019;
  --muted: #5a6b62;
  --gold: #d4a84b;
  --gold-deep: #b8892f;
  --line: rgba(20, 32, 25, 0.12);
  --ok: #1f6b4a;
  --danger: #9b2c2c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--panel);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(212, 168, 75, 0.18), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(70, 140, 110, 0.22), transparent 50%),
    linear-gradient(165deg, var(--bg) 0%, var(--bg-mid) 48%, #0a1c16 100%);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--gold); }
button, input, textarea, select { font: inherit; }

.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0 0.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: #f7f1e4;
  text-decoration: none;
}
.brand span { color: var(--gold); }

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  font-size: 0.92rem;
}
.nav-links a { color: rgba(247, 241, 228, 0.82); text-decoration: none; }
.nav-links a:hover { color: var(--gold); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(212, 168, 75, 0.35);
  border-radius: 999px;
  color: #f0e2bf;
  font-size: 0.85rem;
  background: rgba(212, 168, 75, 0.08);
}

.hero {
  padding: 2.2rem 0 1.2rem;
  opacity: 0;
  animation: rise 0.8s ease 0.08s forwards;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(2.1rem, 4.8vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 0.85rem;
  max-width: 18ch;
  color: #f8f3e9;
}
.hero p.lead {
  margin: 0;
  max-width: 40rem;
  color: rgba(244, 239, 228, 0.78);
  font-size: 1.06rem;
}
.updated {
  margin: 0.75rem 0 0;
  color: rgba(244, 239, 228, 0.5);
  font-size: 0.86rem;
}

.layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  padding: 0.5rem 0 2.5rem;
  opacity: 0;
  animation: rise 0.85s ease 0.16s forwards;
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
}

.panel {
  background: var(--panel);
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.35rem 1.5rem;
}
.panel h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.35rem;
}
.hint { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }

label.field {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  margin: 0.85rem 0 0.4rem;
}

textarea, input[type="text"], select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fffdf8;
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  color: var(--ink);
  resize: vertical;
}
textarea:focus, input[type="text"]:focus, select:focus {
  outline: 2px solid rgba(212, 168, 75, 0.55);
  border-color: transparent;
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: end;
  margin-top: 0.35rem;
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
}

.exclusions {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.exclusions li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--panel-soft);
  border-radius: 999px;
  padding: 0.35rem 0.55rem 0.35rem 0.7rem;
  font-size: 0.88rem;
}
.exclusions button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 0 0.15rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.15rem;
}
.btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
  color: #1a1408;
  box-shadow: 0 10px 24px rgba(184, 137, 47, 0.28);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-small { padding: 0.45rem 0.8rem; font-size: 0.88rem; }

.msg {
  margin-top: 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.92rem;
  display: none;
}
.msg.show { display: block; }
.msg.error { background: #f8e2e2; color: var(--danger); }
.msg.ok { background: #e3f2ea; color: var(--ok); }

.result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}
.result-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  align-items: center;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
}
.result-list .who { font-weight: 650; }
.result-list .meta { color: var(--muted); font-size: 0.86rem; }
.empty { color: var(--muted); font-size: 0.95rem; margin: 0.4rem 0 0; }

.reveal {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
}
.reveal .you {
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.4rem;
}
.reveal .name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 0 0 1rem;
}
.reveal .arrow {
  color: var(--gold-deep);
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  animation: fade 0.45s ease both;
}
.reveal .gift {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.2rem);
  color: var(--ok);
  margin: 0;
  animation: pop 0.45s ease 0.08s both;
}
@media (prefers-reduced-motion: reduce) {
  .reveal .arrow, .reveal .gift, .topbar, .hero, .layout { animation: none; opacity: 1; transform: none; }
}

.section {
  padding: 0 0 2.8rem;
  color: rgba(244, 239, 228, 0.86);
}
.section h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #f7f1e4;
  margin: 0 0 0.85rem;
}
.section h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #f0e6d2;
  margin: 1.4rem 0 0.5rem;
}
.section p { margin: 0 0 0.9rem; max-width: 48rem; }
.section ul, .section ol { margin: 0 0 1rem; padding-left: 1.2rem; max-width: 48rem; }
.section li { margin: 0.35rem 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  border: 1px solid rgba(244, 239, 228, 0.12);
  border-radius: 16px;
  padding: 1rem 1.05rem;
  background: rgba(255, 255, 255, 0.03);
}
.step strong {
  display: block;
  color: var(--gold);
  margin-bottom: 0.35rem;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  font-size: 0.95rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 14px;
  overflow: hidden;
}
.compare th, .compare td {
  border: 1px solid rgba(244, 239, 228, 0.12);
  padding: 0.7rem 0.8rem;
  text-align: left;
}
.compare th { background: rgba(212, 168, 75, 0.12); color: #f7f1e4; }

details.faq {
  border-top: 1px solid rgba(244, 239, 228, 0.12);
  padding: 0.85rem 0;
}
details.faq:first-of-type { margin-top: 0.75rem; }
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: #f7f1e4;
}
details.faq p {
  margin: 0.5rem 0 0;
  color: rgba(244, 239, 228, 0.75);
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1rem;
}
.site-links a {
  color: #f0e2bf;
  text-decoration: underline;
  text-underline-offset: 3px;
}

footer {
  padding: 0 0 2.5rem;
  color: rgba(244, 239, 228, 0.45);
  font-size: 0.88rem;
}

.hidden { display: none !important; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
