/* Gift List Tracker — site styles. Tokens mirror the app's asset catalog. */
:root {
  --evergreen: #0F3D2E;
  --evergreen-light: #1C5E45;
  --cranberry: #B3122E;
  --gold: #E8B64C;
  --snow: #F7F5F0;
  --night: #0B1A14;

  --bg: var(--snow);
  --card: #FFFFFF;
  --ink: #0F3D2E;
  --ink-secondary: #5E6D65;
  --hairline: #E6E1D6;
  --chip: #EFEBE3;
  --link: #1C5E45;
  --header-bg: rgba(247, 245, 240, 0.72);
  --shadow: 0 8px 24px rgba(11, 26, 20, 0.06);

  --radius: 20px;
  --radius-small: 14px;
  --max: 760px;
  --display: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--night);
    --card: #14271F;
    --ink: #F7F5F0;
    --ink-secondary: #A9B8B0;
    --hairline: #27402F;
    --chip: #1D342A;
    --link: #7FD1AA;
    --cranberry: #E0506A;
    --gold: #EEC36A;
    --header-bg: rgba(11, 26, 20, 0.72);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
}

a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--card); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 20;
}
.skip-link:focus { left: 16px; }

/* Glass header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hairline);
}
.site-header .inner {
  max-width: 1040px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand small { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--gold); margin-top: -4px; }

.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px;
  padding: 8px 14px; border-radius: 999px;
}
.site-nav a:hover { background: var(--chip); }
.site-nav a[aria-current="page"] { background: var(--evergreen); color: var(--snow); }
@media (prefers-color-scheme: dark) {
  .site-nav a[aria-current="page"] { background: var(--evergreen-light); }
}

main { max-width: var(--max); margin: 0 auto; padding: 32px 16px 64px; }

/* Hero */
.hero { position: relative; overflow: hidden; border-radius: 28px; padding: 32px 24px; margin-bottom: 28px;
  background: linear-gradient(135deg, #1C5E45, #0F3D2E 55%, #0B1A14); color: var(--snow); box-shadow: var(--shadow); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 6vw, 40px); line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.02em; }
.hero p { margin: 0; color: rgba(247, 245, 240, 0.85); max-width: 560px; }
.hero .eyebrow { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(232, 182, 76, 0.35) 1.5px, transparent 2px), radial-gradient(circle, rgba(247, 245, 240, 0.25) 1px, transparent 1.5px);
  background-size: 90px 90px, 60px 60px; background-position: 10px 20px, 40px 5px;
}

.updated { color: var(--ink-secondary); font-size: 14px; margin: -12px 0 24px; }

/* Gold ribbon divider */
.ribbon {
  height: 8px; border: 0; border-radius: 999px; margin: 36px 0;
  background: repeating-linear-gradient(135deg, var(--gold) 0 10px, #D9A53C 10px 12px);
  opacity: 0.9;
}

/* Gift-tag cards */
.tag-card {
  background: var(--card); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow); margin-bottom: 20px;
}
.tag-label {
  display: flex; align-items: center; gap: 8px; margin: 0 0 10px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cranberry);
}
.tag-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cranberry); flex: none; }
.tag-rule { height: 1px; background: var(--gold); border: 0; margin: 0 0 12px; }

h2 { font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; margin: 32px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 8px; }
.tag-card h2 { margin-top: 0; }
p, li { color: var(--ink); }
.muted { color: var(--ink-secondary); }
ul { padding-left: 22px; }
li { margin: 6px 0; }

table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); min-width: 140px; }
th { font-weight: 700; background: var(--chip); }

/* FAQ accordion */
.faq-search { width: 100%; font: inherit; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--card); color: var(--ink); margin-bottom: 20px; }
.faq-group { margin-bottom: 24px; }
details { border-top: 1px solid var(--hairline); }
details:first-of-type { border-top: 0; }
summary {
  list-style: none; cursor: pointer; padding: 14px 36px 14px 0; position: relative; font-weight: 650;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; line-height: 1; color: var(--cranberry); font-weight: 500;
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { summary::after { transition: none; } }
details > div { padding: 0 0 14px; color: var(--ink-secondary); }
details > div p { color: var(--ink-secondary); margin: 0 0 10px; }
.no-results { display: none; color: var(--ink-secondary); }

.pill {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.06em;
  background: rgba(232, 182, 76, 0.18); color: #9A6B12; padding: 3px 9px; border-radius: 999px; vertical-align: middle;
}
@media (prefers-color-scheme: dark) { .pill { color: var(--gold); } }

.button {
  display: inline-block; text-decoration: none; font-weight: 700; color: var(--snow); background: var(--evergreen);
  padding: 12px 20px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .button { background: var(--evergreen-light); } }

/* App Store badge & calls to action */
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { display: block; width: 150px; height: auto; }
.hero-cta { position: relative; z-index: 1; margin-top: 20px; }
.download-card { text-align: center; }
.download-card .store-badge img { width: 180px; margin: 4px auto 0; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer-brand .store-badge img { width: 130px; }
.site-nav a.nav-cta { background: var(--cranberry); color: #FFFFFF; }
.site-nav a.nav-cta:hover { background: var(--cranberry); filter: brightness(1.08); }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); }
.site-footer .inner { max-width: 1040px; margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--ink-secondary); font-size: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.site-footer a { color: var(--ink-secondary); }

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero { padding: 26px 18px; border-radius: 22px; }
  .tag-card { padding: 16px; }
  .site-nav a.nav-cta { display: none; }
}
