/* GiftZilla Lists marketing site
   Every color comes from the logo: green (the dino) = everyone can see it,
   red (the belly) = hidden from the person the list is for. */

@font-face {
  font-family: "Zilla Slab";
  src: url("fonts/zilla-slab-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Zilla Slab";
  src: url("fonts/zilla-slab-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* The GiFTZiLLA LiSTS! wordmark (brand spec): all caps except a lowercase "i", typed literally. */
@font-face {
  font-family: "Some Time Later";
  src: url("fonts/some-time-later.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Every color comes from the GiftZilla logo. */
  --night: #22365c;         /* the burst behind the dino, deepened: dark surfaces */
  --burst: #3b5888;         /* the burst blue itself: borders and details on dark */
  --green: #317950;         /* the dino: "everyone can see" */
  --green-deep: #24603f;    /* the dino's shadows: headings */
  --tint: #ecf1f8;          /* pale burst blue: tinted sections */
  --paper: #ffffff;
  --red: #b44248;           /* the dino's belly: "hidden from the list owner" */
  --red-wash: #f8e9ea;
  --gold: #E8B23A;          /* ribbon gold: the same gold as the app (the "LiSTS!" colour); primary action, ribbon */
  --brand-green: #4F6B22;   /* the app's base green */
  --track: #34481A;         /* the app's footprint green */
  --text: #1b2333;          /* the logo's ink outline */
  --text-soft: #4d566a;
  --line: #d3dbe7;

  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

  --wrap: 70rem;
  --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;      /* menu links land just below the sticky bar, not under it */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; height: auto; }

h1, h2, h3, .brand-name, .footer-brand, .tag-title {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4.2vw, 2.75rem); color: var(--brand-green); }
h3 { font-size: 1.4rem; font-weight: 600; line-height: 1.2; color: var(--brand-green); }

a { color: var(--green); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow { max-width: 46rem; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.5rem; top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--gold);
  color: var(--night);
  font-weight: 700;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

.fine { font-size: 0.95rem; color: var(--text-soft); }

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.6rem 1.4rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button-primary { background: var(--gold); color: var(--night); }
.button-primary:hover { background: #f1c35b; }
.button-on-dark { border-color: #ffffff; color: #ffffff; }
.button-on-dark:hover { background: #ffffff; color: var(--night); }
.button-quiet { border-color: var(--night); color: var(--night); min-height: 2.6rem; padding-block: 0.4rem; }
.button-quiet:hover { background: var(--night); color: #ffffff; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;              /* stays at the top while the page scrolls */
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 4px solid var(--gold);           /* the app's gold line under its green header */
  box-shadow: 0 2px 10px rgba(27, 35, 51, 0.08);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.4rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-right: auto;          /* pushes the menu and Sign in to the right */
  color: var(--night);
  text-decoration: none;
}
/* The logo fills the bar's height; the title sits beside it on one line ("GiFTZiLLA LiSTS!", with
   LiSTS! at 60% of GiFTZiLLA's size) and only stacks when the window is too narrow for one line. */
.brand-mark { width: var(--logo, 64px); height: var(--logo, 64px); flex: none; }
.wordmark {
  --wm: clamp(1.9rem, 6.2vw, 2.4rem);           /* GiFTZiLLA's size; LiSTS! is 0.6 of it */
  display: flex;
  flex-direction: column;                       /* stacked on narrow screens */
  line-height: 0.95;
}
.wordmark-name {
  font-family: "Some Time Later", var(--display);
  font-weight: 400;
  font-size: var(--wm);
  letter-spacing: 1px;
  color: #1F5A3A;
  white-space: nowrap;
}
.wordmark-sub {
  font-family: "Some Time Later", var(--display);
  font-weight: 400;
  font-size: calc(var(--wm) * 0.6);
  letter-spacing: 3px;
  color: #B8322A;
  margin-top: 0.1rem;
  white-space: nowrap;
}
.brand-name { font-size: 1.45rem; }
.site-nav { display: none; gap: 1.6rem; }
.site-nav a { color: var(--text); text-decoration: none; font-size: 1rem; }
.site-nav a:hover { text-decoration: underline; }

/* ---------- Hero ---------- */

.hero {
  /* a pool of the logo's burst blue lights up the mascot */
  background:
    radial-gradient(circle at 50% 30%, #3b5888 0%, rgba(59, 88, 136, 0) 60%),
    var(--night);
  color: #ffffff;
  padding-block: 2rem 3.5rem;
  overflow: hidden;
}
.hero-grid { display: grid; gap: 1.5rem; align-items: center; }
.hero h1 { color: #ffffff; max-width: 15ch; }

/* The small line above the headline: says what this is before the punchline */
.hero-eyebrow {
  margin-bottom: 0.9rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  max-width: 46ch;
  text-wrap: balance;
}
/* "Your gift list." opens the headline, a step smaller, so the punchline stays the big moment */
.h1-lead {
  display: block;
  margin-bottom: 0.15em;
  font-size: 0.62em;
  color: var(--gold);
}

.lede { margin-top: 1.25rem; font-size: 1.25rem; max-width: 36ch; color: #e4eaf4; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-note { margin-top: 1.25rem; font-size: 0.95rem; color: #bccbe2; max-width: 40ch; }

/* The mascot: the biggest thing on the page */
.hero-art {
  position: relative;
  justify-self: center;
  width: min(17rem, 78vw);
}
/* gold glow from the gift, behind the mascot */
.hero-art::before {
  content: "";
  position: absolute;
  inset: -22%;
  background: radial-gradient(closest-side, rgba(232, 178, 58, 0.7), rgba(232, 178, 58, 0.24) 55%, rgba(232, 178, 58, 0) 100%);
  z-index: 0;
}
.hero-mascot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(5, 10, 26, 0.6));
  animation: mascot-pop 0.75s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}
@keyframes mascot-pop {
  from { opacity: 0; transform: scale(0.6) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}

/* ---------- The two views of Sam's list ---------- */

.demo-band {
  background: var(--night);
  color: #e4eaf4;
  padding-block: 3rem 4rem;
  border-top: 1px solid #2f4673;
}
.demo-grid { display: grid; gap: 2rem; }
.demo-band h2 { color: #ffffff; }
.demo-intro p { margin-top: 1rem; max-width: 36ch; font-size: 1.15rem; }
.demo-hint { color: var(--gold); font-size: 1rem; }
.demo-intro .demo-hint { font-size: 1rem; }
.demo-hint[hidden] { display: none; }

/* Feature callouts beside Sam's list. The marker is a small gift tag, like the list itself. */
.feature-list {
  display: grid;
  gap: 1.1rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid #2f4673;
}
.feature-list li {
  position: relative;
  padding-left: 1.9rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 0.95rem;
  height: 1.15rem;
  background: var(--gold);
  clip-path: polygon(0.3rem 0, calc(100% - 0.3rem) 0, 100% 0.3rem, 100% 100%, 0 100%, 0 0.3rem);
}
/* New callouts (kids, pets, moving wishes) get a small "New" flag */
.feature-list .is-new h3::after {
  content: "New";
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--green);
  color: #ffffff;
  font-family: var(--body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: 0.2em;
}
.feature-list h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  color: #ffffff;
}
.feature-list p {
  margin-top: 0.2rem;
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.45;
  color: #c9d5e8;
}

/* The list, drawn as a gift tag */

.demo { width: 100%; max-width: 30rem; }

.demo-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: #172744;
  border: 1px solid var(--burst);
  border-radius: 999px;
}
.demo-switch[hidden] { display: none; }
.switch-button {
  position: relative;
  overflow: hidden;
  min-height: 2.75rem;
  padding: 0.4rem 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #e4eaf4;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  cursor: pointer;
}
.switch-button:hover { color: #ffffff; }
.switch-button[aria-pressed="true"] { background: var(--gold); color: var(--night); }

/* Countdown to the next switch: a bar fills along the bottom of the chosen side.
   7 seconds when it is rotating, 15 when someone has tapped to hold it. */
.switch-button::after {
  content: "";
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 5px;
  height: 3px;
  border-radius: 3px;
  background: rgba(34, 54, 92, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
}
.demo.is-counting .switch-button[aria-pressed="true"]::after {
  opacity: 1;
  animation: countdown 7s linear both;
}
.demo.is-counting.is-holding .switch-button[aria-pressed="true"]::after {
  animation-duration: 15s;
}
@keyframes countdown {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.tag-shadow {
  position: relative;
  margin-top: 2.25rem;
  filter: drop-shadow(0 18px 24px rgba(8, 16, 36, 0.5));
}
/* the ribbon the tag hangs from */
.tag-shadow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2.25rem;
  width: 3px;
  height: calc(2.25rem + 1.55rem);
  margin-left: -1.5px;
  background: var(--gold);
  z-index: 1;
}
.tag {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 3.4rem 1.25rem 1.25rem;
  background: var(--paper);
  color: var(--text);
  clip-path: polygon(2.5rem 0, calc(100% - 2.5rem) 0, 100% 2.5rem, 100% 100%, 0 100%, 0 2.5rem);
  border-radius: 0 0 14px 14px;
}
.tag-hole {
  position: absolute;
  left: 50%;
  top: 1rem;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: -0.55rem;
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 0 4px var(--tint);
}
.tag-head { padding-bottom: 0.9rem; border-bottom: 2px solid var(--night); }
.tag-title { font-size: 1.75rem; color: var(--green-deep); }
.tag-date { margin-top: 0.15rem; font-size: 0.95rem; color: var(--text-soft); }

.wish {
  display: flex;
  gap: 0.75rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.wish:last-child { border-bottom: 0; }
.wish-body { min-width: 0; }
.wish-name { font-weight: 700; line-height: 1.3; }
.wish-note { font-size: 0.95rem; font-style: italic; color: var(--text-soft); }
.wish-specs { font-size: 0.95rem; color: var(--text-soft); line-height: 1.4; }
.wish-photo {
  display: block;
  width: 72px;
  height: 72px;
  margin-top: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.wish-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  background: var(--tint);
  color: var(--burst);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}
.wish-link:hover { background: #dce5f2; text-decoration: underline; }
.wish-claim { margin-top: 0.2rem; font-size: 0.95rem; font-weight: 700; color: var(--green); }
.wish-free { margin-top: 0.2rem; font-size: 0.95rem; color: var(--text-soft); }

.tick {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-top: 0.05rem;
  border-radius: 50%;
  background: var(--green);
  color: #ffffff;
}
.tick-empty { background: transparent; border: 2px solid #9aa6bc; }

.secret-line {
  margin-top: 0.4rem;
  padding: 0.45rem 0.6rem;
  background: var(--red-wash);
  border-left: 3px solid var(--red);
  border-radius: 0 6px 6px 0;
  font-size: 0.95rem;
  line-height: 1.4;
}
.secret-label { display: block; font-weight: 700; color: var(--red); }
.wish-secret .tick-empty { border-color: var(--red); }

.tag-shared { margin-top: 0.15rem; font-size: 0.95rem; color: var(--green-deep); font-weight: 700; }
.owner-extras { display: grid; gap: 0.9rem; padding-top: 0.9rem; }
.add-wish {
  padding: 0.7rem;
  border: 2px dashed #b9c6da;
  border-radius: 10px;
  text-align: center;
  color: var(--text-soft);
  font-weight: 700;
}
.no-peeking {
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  background: var(--tint);
  font-size: 0.95rem;
  line-height: 1.4;
}
.no-peeking-title { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--green-deep); }
.no-peeking p + p { margin-top: 0.2rem; }
.tag-foot { margin-top: auto; padding-top: 0.85rem; font-size: 0.95rem; color: var(--text-soft); }

.demo-caption { margin-top: 1.1rem; font-size: 1rem; color: #e4eaf4; min-height: 3.2em; }

/* Which parts each view shows */
.demo[data-view="owner"] .giver-only { display: none; }
.demo[data-view="givers"] .owner-only { display: none; }

@keyframes reveal {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
.demo[data-view="givers"] .giver-only { animation: reveal 0.35s ease-out both; }
.demo[data-view="givers"] .wish-secret { animation-delay: 0.12s; }

/* ---------- Sections ---------- */

.section { padding-block: 4rem; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--night) url(img/footprints-light.svg) repeat 0 0 / 640px 220px; color: #e4eaf4; }   /* a faint dino trail */
.section-dark h2 { color: #ffffff; }
.section-dark a { color: var(--gold); }
.section-dark .fine { color: #bccbe2; }

.section h2 + p,
.section h2 + .section-lede { margin-top: 1rem; }
.section p { max-width: 62ch; }
.section p + p { margin-top: 1rem; }
.section-lede { font-size: 1.25rem; }

.split { display: grid; gap: 2.5rem; align-items: start; }

/* How it works */
.steps { display: grid; gap: 2rem; margin-top: 2.25rem; }
.step { position: relative; padding-top: 0.25rem; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 3.25rem;
  padding-top: 0.5rem;
  margin-bottom: 0.9rem;
  background: var(--green-deep);
  color: var(--gold);
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
  /* a small gift tag */
  clip-path: polygon(0.7rem 0, calc(100% - 0.7rem) 0, 100% 0.7rem, 100% 100%, 0 100%, 0 0.7rem);
}
.step h3 + p { margin-top: 0.5rem; }

/* Who sees what */
.table-scroll { overflow-x: auto; }
.sees {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: 14px;
  overflow: hidden;
  font-size: 1rem;
}
.sees th, .sees td { padding: 0.85rem 0.9rem; text-align: left; vertical-align: top; }
.sees thead th {
  background: var(--night);
  color: #ffffff;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  width: 30%;
}
.sees thead th:first-child { width: 40%; }
.sees tbody tr + tr > * { border-top: 1px solid var(--line); }
.sees tbody th { font-weight: 700; }
.yes, .no { font-weight: 700; }
.yes { color: var(--green); }
.no { color: var(--red); }
.table-note { margin-top: 0.9rem; }

/* Families: kids, pets, and anyone without an account */
.facts { display: grid; gap: 1.75rem; margin-top: 2.25rem; }
.fact { padding-top: 1rem; border-top: 3px solid var(--green); }
.fact h3 + p { margin-top: 0.5rem; }
.fact p + p { margin-top: 0.75rem; }
/* The list-type pictures from the app: child, pet, someone else */
.fact-art { display: block; height: 7.5rem; margin-bottom: 0.75rem; }
.fact-art img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: left bottom; }
.fact-points { margin-top: 0.75rem; display: grid; gap: 0.45rem; }
.fact-points li {
  position: relative;
  padding-left: 1.35rem;
  font-size: 1rem;
  line-height: 1.45;
}
.fact-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green);
}

/* Occasions and phone */
.occasions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
  max-width: 34rem;
}
.occasions li {
  padding: 0.3rem 0.85rem;
  border: 1px solid #5b74a3;
  border-radius: 999px;
  font-size: 1rem;
  color: #ffffff;
}
.install { display: grid; gap: 1rem; margin-top: 1.5rem; }
.install dt { font-weight: 700; color: var(--gold); }

/* Questions */
.faq { margin-top: 1.75rem; border-top: 2px solid var(--night); }
.faq details { border-bottom: 1px solid #b9c6da; }
.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--night);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--body);
  font-weight: 700;
  color: var(--green);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 1.1rem; }

/* Invitation form */
.invite-form {
  display: grid;
  gap: 1.1rem;
  padding: 1.5rem;
  background: var(--paper);
  color: var(--text);
  border-radius: 14px;
}
.invite-form .fine { color: var(--text-soft); }
.field label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
.optional { font-weight: 400; color: var(--text-soft); }
.field input, .field textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid #8d99b0;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--night);
}
.field-hint { margin-top: 0.3rem; font-size: 0.95rem; color: var(--text-soft); }
.invite-form .button { justify-self: start; }

/* Footer */
.site-footer { padding-block: 2.25rem; border-top: 6px solid var(--brand-green); background: #ffffff url(img/footprints-dark.svg) repeat 0 0 / 640px 220px; }
.site-footer::before { content: ''; display: block; height: 3px; margin: -2.25rem 0 2.25rem; background: var(--gold); }
.footer-row { display: grid; gap: 1.25rem; }
.footer-logo { width: 140px; height: auto; margin-bottom: 0.5rem; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-nav a { color: var(--text); font-size: 1rem; }

/* Short pages: thank-you and not-found */
.short-mascot { display: block; width: 9rem; height: auto; margin-bottom: 1.5rem; }
.short-page { padding-block: 5rem 6rem; }
.short-page h1 { color: var(--green-deep); font-size: clamp(2.25rem, 6vw, 3.5rem); max-width: 16ch; }
.short-page p { margin-top: 1.25rem; max-width: 52ch; }
.short-page .button { margin-top: 2rem; }
.short-page .button-primary { border-color: var(--night); }

/* GiftZilla's round head, beside a section heading */
.section-head { display: flex; align-items: center; gap: 1rem; }
.head-badge { flex: none; display: block; width: 4rem; height: 4rem; }
.head-badge img { display: block; width: 100%; height: 100%; filter: drop-shadow(0 4px 8px rgba(27, 35, 51, 0.18)); }
.section-head + .steps, .section-head + .faq { margin-top: 2rem; }

/* "Sam creates a gift list", above the two views of Sam's list */
.demo-title { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.1rem; }
.head-badge-small { width: 3.25rem; height: 3.25rem; }
.head-badge-small img { filter: drop-shadow(0 4px 10px rgba(5, 10, 26, 0.5)); }
.demo-title h3 { font-size: 1.5rem; color: #ffffff; }

/* A list, not a store: the mascot beside the words */
.store-split { display: grid; gap: 1.5rem; max-width: 52rem; align-items: center; }
.store-mascot { display: block; width: 9rem; }
.store-mascot img { display: block; width: 100%; height: auto; }

/* ---------- Wider screens ---------- */

@media (min-width: 34rem) {
  .header-row { --logo: 76px; }
  .wordmark { flex-direction: row; align-items: baseline; gap: 0.35em; --wm: clamp(2.2rem, 5.6vw, 3.2rem); }
  .wordmark-sub { margin-top: 0; }
}

@media (min-width: 44rem) {
  :root { --gutter: 2rem; }
  .steps, .facts { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .footer-row { grid-template-columns: 1fr auto; align-items: center; }
  .invite-form { padding: 2rem; }
  .head-badge { width: 5rem; height: 5rem; }
  .store-split { grid-template-columns: 13rem 1fr; gap: 3rem; }
  .store-mascot { width: 13rem; }
}

@media (min-width: 60rem) {
  .site-nav { display: flex; gap: clamp(0.9rem, 1.6vw, 1.6rem); }
  html { scroll-padding-top: 6.2rem; }
  .header-row { --logo: 84px; }
  .wordmark { --wm: clamp(2.1rem, 3.6vw, 3.6rem); }
  .hero {
    padding-block: 3rem 4rem;
    background:
      radial-gradient(circle at 24% 50%, #3b5888 0%, rgba(59, 88, 136, 0) 45%),
      var(--night);
  }
  .hero-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 3.5rem; }
  .hero-art { width: 100%; max-width: 30rem; justify-self: start; }
  .demo-band { padding-block: 5rem 6rem; }
  .demo-grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr;
    column-gap: 4rem;
    row-gap: 0;
    align-items: start;
  }
  .demo-intro { grid-column: 1; grid-row: 1; }
  .feature-list { grid-column: 1; grid-row: 2; }
  .demo { grid-column: 2; grid-row: 1 / span 2; }
  .demo { justify-self: end; }
  .section { padding-block: 6rem; }
  .split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 4rem; }
  .split.split-even { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo[data-view="givers"] .giver-only { animation: none; }
  .hero-mascot { animation: none; }
}

/* ---------- Website Terms and Privacy pages ---------- */
.legal-page { padding-block: 3rem 5rem; }
.legal { max-width: 46rem; }
.legal h1 { color: var(--green-deep); font-size: clamp(2rem, 5vw, 2.9rem); }
.legal h2 { font-size: 1.35rem; margin-top: 1.9rem; }
.legal p, .legal ul { margin-top: 0.8rem; }
.legal ul { list-style: disc; padding-left: 1.3rem; }
.legal li + li { margin-top: 0.45rem; }
.legal-meta { color: var(--text-soft); font-size: 0.95rem; }
.legal-links { margin-top: 2rem; }
.support-address { font-weight: 700; user-select: all; }

/* ---------- Pop-ups ---------- */
.contact-form[hidden], .contact-done[hidden] { display: none; }
html.has-dialog { overflow: hidden; }
.gz-dialog {
  width: min(44rem, calc(100vw - 2rem));
  max-height: min(88vh, 52rem);
  padding: 0;
  border: none;
  border-radius: 20px;
  background: var(--paper);
  color: var(--text);
  box-shadow: 0 24px 60px rgba(10, 18, 36, 0.35);
  overflow: hidden;
}
.gz-dialog[open] { display: flex; flex-direction: column; }
.gz-dialog-narrow { width: min(32rem, calc(100vw - 2rem)); }
.gz-dialog::backdrop { background: rgba(15, 24, 44, 0.6); }
.gz-dialog-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.9rem 1rem 0.9rem 1.5rem;
  background: var(--night); color: #ffffff;
  border-bottom: 4px solid var(--gold);
}
.gz-dialog-title { font-family: var(--display); font-weight: 700; font-size: 1.35rem; line-height: 1.2; }
.gz-dialog-close {
  flex: none; width: 2.75rem; height: 2.75rem; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.6); background: transparent; color: #ffffff;
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.gz-dialog-close:hover, .gz-dialog-close:focus-visible { background: #ffffff; color: var(--night); }
.gz-dialog-body { padding: 1.25rem 1.5rem 1.5rem; overflow-y: auto; max-width: none; }
.gz-dialog-body > :first-child { margin-top: 0; }
.gz-dialog-foot { padding: 0.9rem 1.5rem; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.contact-form { display: grid; gap: 1rem; }
.contact-form .button { justify-self: start; }
.contact-status { min-height: 1.4em; font-size: 0.95rem; color: var(--red); }
.contact-done { display: grid; gap: 0.8rem; justify-items: start; }
.contact-done-title { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--green-deep); }
@media (max-width: 30rem) {
  .gz-dialog { width: calc(100vw - 1rem); max-height: 92vh; border-radius: 16px; }
  .gz-dialog-body { padding: 1rem 1.1rem 1.25rem; }
}


/* ---------- Preview additions: gold section, binoculars, footprints, phones ---------- */
.section-gold { background: var(--gold) url(img/footprints-dark.svg) repeat 0 0 / 640px 220px; color: var(--text); }
.section-gold h2 { color: var(--text); }
.section-gold .fine { color: #3a3112; }
.section-gold a { color: var(--text); }
.section-gold .sees { box-shadow: 0 6px 20px rgba(27, 35, 51, 0.22); }
.section-gold .sees thead th { background: var(--brand-green); }
.binoculars { display: block; width: 5.5rem; height: auto; margin-bottom: 0.75rem; }
.heading-with-icon { display: flex; align-items: center; gap: 0.9rem; }
.heading-with-icon .binoculars { width: 4.6rem; margin: 0; flex: none; }

.see-it { background: var(--tint) url(img/footprints-dark.svg) repeat 0 0 / 640px 220px; }
.access-lede { max-width: 44rem; margin-bottom: 1.8rem; }
.access-grid h3 { margin-top: 0; }
.access-grid { display: grid; gap: 1.5rem; margin-bottom: 2.2rem; }
.stage { position: relative; max-width: 62rem; margin: 0 auto; padding-bottom: 3rem; }
.browser { margin: 0; width: 100%; border-radius: 0.8rem; background: #fff; box-shadow: 0 16px 34px rgba(27, 35, 51, 0.28); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 0.35rem; padding: 0.55rem 0.8rem; background: #e5e7eb; }
.browser-bar span { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: #9ca3af; }
.browser-bar em { margin-left: 0.8rem; flex: 1; font-style: normal; font-size: 0.8rem; color: #4b5563; background: #fff; border-radius: 999px; padding: 0.15rem 0.8rem; }
.browser img { display: block; width: 100%; height: auto; }
.phone { position: relative; width: min(42vw, 12rem); border-radius: 2rem; background: #111827; padding: 0.5rem; box-shadow: 0 16px 34px rgba(27, 35, 51, 0.38); margin: 0; }
.phone::before { content: ''; position: absolute; top: 0.85rem; left: 50%; transform: translateX(-50%); width: 28%; height: 0.55rem; border-radius: 999px; background: #000; z-index: 2; }
.phone img { display: block; width: 100%; height: auto; border-radius: 1.55rem; }
.phones-row { display: flex; justify-content: center; gap: 1.1rem; margin-top: 1.6rem; }
.phones-row .phone { position: relative; width: min(42vw, 12rem); }
@media (min-width: 52rem) {
  .stage { padding-bottom: 0; }
  .browser { width: 100%; }
  .phones-row { display: block; margin: 0; }
  .phones-row .phone { position: absolute; width: 13.5rem; }
  .phone-a { right: 22%; bottom: -2.5rem; }
  .phone-b { right: 3%; bottom: 2.5rem; }
  .see-it .stage { margin-bottom: 3rem; }
}
}
@media (min-width: 52rem) { .access-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
