/* ============================================================
   Pipa & Eduardo — Wedding Template
   Design tokens lifted from the codebase + tuned to the
   Save the Date's lighter, sky-blue field.
   ============================================================ */

:root {
  /* Palette — codebase tokens */
  --color-ink:        #1F3A4A;
  --color-ink-light:  #3A5A6E;
  --color-ink-soft:   #5A7383;
  --color-sky:        #7EB8C9;
  --color-sky-deep:   #5A8FA0;
  --color-sky-light:  #B8D9E3;
  --color-mist:       #E4EDF0;
  --color-mist-deep:  #D4E2E8;
  --color-cream:      #F8F5F0;
  --color-sand:       #EDE8DF;
  --color-petal:      #C9B59A;
  --color-sage:       #8A9E8C;

  /* Type */
  --font-display:  "Italiana", "Cormorant Garamond", serif;
  --font-accent:   "Cormorant Garamond", "Italiana", serif;
  --font-body:     "Jost", system-ui, sans-serif;

  --tracking-display: 0.02em;
  --tracking-caps:    0.18em;

  /* Layout */
  --content-w: 1100px;
}

/* Theme-aware page background */
body[data-palette="mist"]  { --page-bg: #EAF1F4; --page-fg: var(--color-ink); }
body[data-palette="cream"] { --page-bg: var(--color-cream); --page-fg: var(--color-ink); }

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page-bg);
  color: var(--page-fg);
  font-family: var(--font-body);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
a { color: inherit; text-decoration: none; }

/* ---------- Type helpers ---------- */
.font-display  { font-family: var(--font-display); letter-spacing: var(--tracking-display); font-weight: 400; }
.font-accent   { font-family: var(--font-accent);  font-style: italic; font-weight: 300; }
.font-body     { font-family: var(--font-body); }
.caps          { text-transform: uppercase; letter-spacing: var(--tracking-caps); font-size: 11px; font-weight: 400; }

/* ---------- Top nav ---------- */
.topnav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px;
  background: color-mix(in srgb, var(--page-bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.topnav.scrolled {
  background: color-mix(in srgb, var(--page-bg) 96%, transparent);
  border-bottom-color: color-mix(in srgb, var(--color-ink) 8%, transparent);
}
.topnav .brand { font-family: var(--font-accent); font-style: italic; font-size: 18px; color: var(--color-ink); }
.topnav .links { display: flex; gap: 28px; }
.topnav .links a {
  font-size: 11px; letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--color-ink-light); transition: color .2s ease;
  position: relative;
}
.topnav .links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--color-sky-deep);
  transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
.topnav .links a:hover { color: var(--color-ink); }
.topnav .links a:hover::after,
.topnav .links a.active::after { transform: scaleX(0.6); }
.topnav .links a.active { color: var(--color-ink); }

.menu-btn { display: none; background: none; border: 0; padding: 6px; color: var(--color-ink); }
@media (max-width: 820px) {
  .topnav .links { display: none; }
  .topnav .links.open {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 18px;
    padding: 22px 32px 28px;
    background: var(--page-bg);
    border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 8%, transparent);
  }
  .menu-btn { display: inline-flex; }
}

/* ---------- Sections ---------- */
section { position: relative; }
.section-pad { padding: 110px 24px; }
.section-inner { max-width: var(--content-w); margin: 0 auto; }
.section-eyebrow {
  display: flex; align-items: center; justify-content: center;
  gap: 14px;
  color: var(--color-sky-deep);
  margin-bottom: 18px;
}
.section-eyebrow::before, .section-eyebrow::after {
  content: ""; height: 1px; width: 48px;
  background: currentColor; opacity: .5;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  text-align: center;
  color: var(--color-ink);
  line-height: 1.05;
  margin: 0 0 12px;
}
.section-sub {
  font-family: var(--font-accent); font-style: italic;
  color: var(--color-ink-soft);
  text-align: center;
  font-size: 19px;
  margin: 0 auto 56px;
  max-width: 620px;
  line-height: 1.5;
}
.divider-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-sky-deep);
  margin: 22px auto;
  opacity: .55;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 130px 24px 90px;
  background: linear-gradient(180deg, #EAF1F4 0%, #DFEAEF 100%);
}
body[data-palette="cream"] .hero {
  background: linear-gradient(180deg, #F4EFE8 0%, var(--color-cream) 100%);
}
.hero-frame {
  position: relative;
  width: 100%;
  max-width: 640px;
  padding: 78px 56px 70px;
  text-align: center;
  z-index: 2;
}
.hero-frame::before, .hero-frame::after {
  content: ""; position: absolute; pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 55%, transparent);
}
.hero-frame::before { inset: 0; }
.hero-frame::after  { inset: 8px; }
.hero .eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--color-sky-deep);
  margin: 0 0 6px;
  padding: 0 28px;
  display: inline-block;
  position: relative;
}
.hero .eyebrow::before, .hero .eyebrow::after {
  content: ""; position: absolute; top: 50%; width: 64px; height: 1px;
  background: color-mix(in srgb, var(--color-sky-deep) 55%, transparent);
}
.hero .eyebrow::before { right: 100%; }
.hero .eyebrow::after  { left:  100%; }

.hero .names-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 36px 0 0;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 92px);
  color: var(--color-ink);
  line-height: 1;
  margin: 0;
}
.hero .amp {
  font-family: var(--font-accent); font-style: italic; font-weight: 300;
  font-size: clamp(32px, 4vw, 42px);
  color: var(--color-sky-deep);
  line-height: 1;
  margin: 0;
}
.hero .date {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 66px);
  color: var(--color-sky-deep);
  letter-spacing: 0.04em;
  margin: 36px 0 0;
}
.hero .date-rule {
  width: 64px; height: 1px;
  background: color-mix(in srgb, var(--color-sky-deep) 55%, transparent);
  margin: 28px auto;
}
.hero .meta {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: end;
  margin-top: 8px;
}
.hero .meta-block .caps {
  color: var(--color-sky-deep);
  display: block;
  margin-bottom: 6px;
}
.hero .meta-block .val {
  font-family: var(--font-accent); font-style: italic;
  font-size: 22px;
  color: var(--color-ink);
}
.hero .meta-sep {
  width: 1px;
  height: 36px;
  background: color-mix(in srgb, var(--color-sky-deep) 35%, transparent);
  justify-self: center;
}
.hero .note {
  font-family: var(--font-accent); font-style: italic;
  color: var(--color-ink-soft);
  font-size: 15px;
  margin: 38px 0 0;
}

/* Hero decoration */
.deco { position: absolute; pointer-events: none; }
.deco.tl { top: 6%;  left: 5%; }
.deco.tr { top: 8%;  right: 6%; }
.deco.ml { top: 38%; left: 7%; }
.deco.mr { top: 42%; right: 8%; }
.deco.bl { bottom: 7%; left: 6%; }
.deco.br { bottom: 5%; right: 5%; }
.deco.bc { bottom: 14%; left: 50%; transform: translateX(-50%); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes floatX {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -10px); }
}
.float        { animation: float 8s ease-in-out infinite; }
.float.d2     { animation-delay: -2s; }
.float.d4     { animation-delay: -4s; }
.float.d6     { animation-delay: -6s; }
.float.flip   { transform: scaleX(-1); }
.float.flip.d2 { animation-delay: -2s; }
.deco.bc.float { animation-name: floatX; }

/* Countdown chips inside hero frame */
.countdown {
  margin: 30px auto 4px;
  display: flex; justify-content: center; gap: 8px;
  max-width: 100%;
}
.countdown .chip {
  flex: 1;
  background: color-mix(in srgb, var(--color-sky-light) 35%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 25%, transparent);
  padding: 12px 4px 10px;
  text-align: center;
}
.countdown .num {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--color-ink);
  line-height: 1;
}
.countdown .lbl {
  font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-sky-deep);
  margin-top: 6px;
}

/* ---------- Story ---------- */
.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.story-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(135deg,
      color-mix(in srgb, var(--color-sky-light) 60%, transparent) 0 12px,
      color-mix(in srgb, var(--color-sky-light) 40%, transparent) 12px 24px);
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 30%, transparent);
  overflow: hidden;
}
.story-photo[data-has-photo="true"] {
  background: var(--color-mist);
  aspect-ratio: auto;
}
.story-photo .photo-img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  image-rendering: auto;
}
.story-photo .photo-label {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: .15em;
  color: var(--color-sky-deep); opacity: .8;
  text-align: center;
  padding: 0 20px;
}
.story-photo .photo-frame {
  position: absolute; inset: -12px;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 40%, transparent);
  pointer-events: none;
}
.story-copy h3 {
  font-family: var(--font-display);
  font-size: 38px; margin: 0 0 8px; color: var(--color-ink);
}
.story-copy .lede {
  font-family: var(--font-accent); font-style: italic;
  font-size: 22px; color: var(--color-sky-deep);
  margin: 0 0 28px;
}
.story-copy p {
  line-height: 1.75;
  color: var(--color-ink-light);
  margin: 0 0 18px;
  font-size: 15.5px;
}
.story-copy .sig {
  font-family: var(--font-accent); font-style: italic;
  color: var(--color-ink);
  font-size: 22px;
  margin-top: 24px;
}
@media (max-width: 820px) {
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Timeline (O Dia) ---------- */
.timeline {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 12px 0;
}
.timeline::before {
  content: "";
  position: absolute; left: 50%; top: 0; bottom: 0;
  width: 1px;
  background: color-mix(in srgb, var(--color-sky-deep) 35%, transparent);
}
.timeline .step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0;
  padding: 22px 0;
}
.timeline .step .time {
  text-align: right;
  font-family: var(--font-display); font-size: 28px;
  color: var(--color-sky-deep);
  padding-right: 18px;
}
.timeline .step .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--page-bg);
  border: 1px solid var(--color-sky-deep);
  justify-self: center; align-self: start;
  margin-top: 14px;
  position: relative; z-index: 1;
}
.timeline .step .body {
  padding-left: 18px;
}
.timeline .step .body h4 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-ink);
}
.timeline .step .body p {
  margin: 0;
  color: var(--color-ink-light);
  font-size: 14px; line-height: 1.6;
}
.timeline .step.right .time { text-align: right; }
.timeline .step.left  { direction: rtl; }
.timeline .step.left > * { direction: ltr; }
.timeline .step.left .time { padding-right: 0; padding-left: 18px; text-align: left; }
.timeline .step.left .body { padding-left: 0; padding-right: 18px; text-align: right; }

@media (max-width: 640px) {
  .timeline::before { left: 18px; }
  .timeline .step { grid-template-columns: 36px 1fr; }
  .timeline .step.left { direction: ltr; }
  .timeline .step .time {
    grid-column: 2; text-align: left; padding: 0 0 4px;
  }
  .timeline .step .dot { grid-column: 1; }
  .timeline .step .body { grid-column: 2; padding: 0; text-align: left !important; }
}

/* ---------- Detail cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
@media (max-width: 820px) {
  .cards { grid-template-columns: 1fr; }
}
.card {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 18%, transparent);
  padding: 40px 28px;
  text-align: center;
  position: relative;
  box-shadow: 0 2px 10px rgba(31,58,74,0.04);
}
.card .ic {
  display: inline-flex;
  width: 44px; height: 44px;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 40%, transparent);
  border-radius: 50%;
  align-items: center; justify-content: center;
  color: var(--color-sky-deep);
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 24px; margin: 0 0 12px;
  color: var(--color-ink);
}
.card p { margin: 4px 0; color: var(--color-ink-light); font-size: 14.5px; line-height: 1.6; }
.card .small { font-size: 13px; color: var(--color-ink-soft); }
.card .link {
  display: inline-block; margin-top: 14px;
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--color-sky-deep);
  border-bottom: 1px solid color-mix(in srgb, var(--color-sky-deep) 40%, transparent);
  padding-bottom: 2px;
  transition: color .2s ease, border-color .2s ease;
}
.card .link:hover { color: var(--color-ink); border-color: var(--color-ink); }

/* ---------- Gifts ---------- */
.gifts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 980px) { .gifts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .gifts { grid-template-columns: 1fr; } }

.gift {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 15%, transparent);
  display: flex; flex-direction: column;
  position: relative;
  box-shadow: 0 2px 8px rgba(31,58,74,0.05);
  transition: transform .25s ease, box-shadow .25s ease;
}
.gift:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(31,58,74,0.09); }
.gift .ph {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--color-mist);
  background-image:
    repeating-linear-gradient(45deg,
      rgba(126,184,201,0.08) 0 8px,
      transparent 8px 16px);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-sky-deep);
  font-family: ui-monospace, monospace;
  font-size: 10px; letter-spacing: .15em;
}
.gift .badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 9px; letter-spacing: .18em; text-transform: uppercase;
  padding: 4px 8px;
  background: color-mix(in srgb, var(--color-sage) 12%, white);
  border: 1px solid color-mix(in srgb, var(--color-sage) 50%, transparent);
  color: var(--color-sage);
}
.gift .body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.gift h4 {
  font-family: var(--font-display);
  font-size: 19px; margin: 0 0 6px; color: var(--color-ink);
}
.gift .desc {
  font-family: var(--font-accent); font-style: italic;
  color: var(--color-ink-soft); font-size: 14px; line-height: 1.5; margin: 0 0 14px;
}
.gift .price { font-size: 14px; color: var(--color-ink); font-weight: 400; margin-bottom: 12px; }
.gift .bar {
  height: 4px; background: var(--color-sand); position: relative; overflow: hidden;
  margin-bottom: 6px;
}
.gift .bar .fill {
  position: absolute; inset: 0 auto 0 0;
  background: var(--color-sky-deep);
  transition: width .8s ease;
}
.gift .progress-meta { font-size: 11px; color: var(--color-ink-soft); margin-bottom: 14px; }
.gift .cta {
  margin-top: auto;
  display: flex; gap: 8px;
}
.btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  height: 38px;
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  border: 1px solid var(--color-ink); background: var(--color-ink); color: var(--color-cream);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--color-ink-light); border-color: var(--color-ink-light); }
.btn.ghost { background: transparent; color: var(--color-ink); }
.btn.ghost:hover { background: color-mix(in srgb, var(--color-sky-deep) 12%, transparent); color: var(--color-ink); }

/* ---------- RSVP ---------- */
.rsvp-wrap {
  max-width: 680px; margin: 0 auto;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 20%, transparent);
  padding: 56px clamp(28px, 5vw, 60px);
  position: relative;
  box-shadow: 0 2px 14px rgba(31,58,74,0.06);
}
.rsvp-wrap::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 16%, transparent);
  pointer-events: none;
}
.form-row { display: grid; gap: 18px; }
.form-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--color-sky-deep);
}
.field input, .field textarea, .field select {
  border: 0; border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 25%, transparent);
  background: transparent;
  padding: 10px 0 8px;
  color: var(--color-ink);
  font-size: 15px;
  outline: none;
  transition: border-color .2s ease;
}
.field textarea { min-height: 90px; resize: vertical; padding-top: 10px; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--color-sky-deep);
}
.choice-group {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.choice {
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 30%, transparent);
  background: #fff;
  padding: 16px 18px;
  cursor: pointer;
  text-align: left;
  display: flex; align-items: center; gap: 14px;
  transition: border-color .2s ease, background .2s ease;
}
.choice .dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 50%, transparent);
  position: relative;
  flex: 0 0 14px;
}
.choice.sel { border-color: var(--color-sky-deep); background: color-mix(in srgb, var(--color-sky-light) 35%, white); }
.choice.sel .dot::after {
  content: ""; position: absolute; inset: 3px;
  background: var(--color-sky-deep); border-radius: 50%;
}
.choice .label { font-size: 14px; color: var(--color-ink); }
.choice .sub { font-size: 11px; color: var(--color-ink-soft); letter-spacing: .12em; text-transform: uppercase; }
.choice-group.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 560px) {
  .choice-group, .choice-group.three { grid-template-columns: 1fr; }
}

.rsvp-success {
  text-align: center;
  padding: 24px 0;
}
.rsvp-success .check {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1px solid var(--color-sky-deep);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--color-sky-deep);
  margin-bottom: 14px;
}
.rsvp-success h4 {
  font-family: var(--font-display); font-size: 30px; color: var(--color-ink);
  margin: 0 0 6px;
}
.rsvp-success p {
  font-family: var(--font-accent); font-style: italic; color: var(--color-ink-light);
  font-size: 17px; margin: 0;
}

/* ---------- Travel ---------- */
.travel-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px;
}
@media (max-width: 820px) { .travel-grid { grid-template-columns: 1fr; } }
.map-frame {
  position: relative; aspect-ratio: 4/3;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 30%, transparent);
  overflow: hidden;
  background: #F2EFE9;
}
.map-frame .pin {
  position: absolute; left: 60%; top: 54%;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--color-sky-deep);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-sky-deep) 50%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-sky-deep) 60%, transparent); }
  100% { box-shadow: 0 0 0 22px transparent; }
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-frame .pin-label {
  position: absolute; left: 60%; top: 54%;
  transform: translate(14px, -50%);
  font-family: var(--font-accent); font-style: italic;
  font-size: 14px; color: var(--color-ink);
  background: color-mix(in srgb, #fff 80%, transparent);
  padding: 2px 8px;
}
.travel-list { display: flex; flex-direction: column; gap: 18px; }
.travel-item {
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 15%, transparent);
  background: #fff;
  padding: 22px 24px;
  display: grid; grid-template-columns: 40px 1fr auto; gap: 16px; align-items: center;
}
.travel-item .ic { color: var(--color-sky-deep); }
.travel-item h4 {
  font-family: var(--font-display); font-size: 20px; color: var(--color-ink); margin: 0 0 2px;
}
.travel-item p { margin: 0; font-size: 13px; color: var(--color-ink-light); line-height: 1.5; }
.travel-item .dist {
  font-size: 11px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--color-sky-deep);
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
}
.faq-item button {
  width: 100%;
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center;
  background: none; border: 0; text-align: left;
  font-family: var(--font-display); font-size: 20px; color: var(--color-ink);
  cursor: pointer;
}
.faq-item .plus {
  width: 22px; height: 22px; position: relative; flex: 0 0 22px;
  color: var(--color-sky-deep);
}
.faq-item .plus::before, .faq-item .plus::after {
  content: ""; position: absolute; background: currentColor;
}
.faq-item .plus::before { left: 0; right: 0; top: 50%; height: 1px; transform: translateY(-50%); }
.faq-item .plus::after  { top: 0; bottom: 0; left: 50%; width: 1px; transform: translateX(-50%); transition: transform .25s ease; }
.faq-item.open .plus::after { transform: translateX(-50%) scaleY(0); }
.faq-item .ans {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .25s ease;
  color: var(--color-ink-light); line-height: 1.7; font-size: 15px;
}
.faq-item.open .ans { max-height: 400px; padding: 0 0 24px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--color-ink);
  color: var(--color-cream);
  text-align: center;
  padding: 70px 24px 60px;
  position: relative;
  overflow: hidden;
}
.footer .names {
  font-family: var(--font-display);
  font-size: 38px; margin: 0 0 8px;
}
.footer .sub {
  font-family: var(--font-accent); font-style: italic;
  color: color-mix(in srgb, var(--color-sky-light) 85%, transparent);
  font-size: 17px;
  margin: 0 0 22px;
}
.footer .meta {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-sky-light) 70%, transparent);
}
.footer .rule {
  width: 36px; height: 1px;
  background: color-mix(in srgb, var(--color-sky-light) 50%, transparent);
  margin: 22px auto;
}
.footer .corner {
  position: absolute; pointer-events: none; opacity: .14;
}
.footer .corner.l { left: 24px; top: 24px; }
.footer .corner.r { right: 24px; bottom: 24px; }

/* ---------- Alt section backgrounds ---------- */
.bg-sand  { background: var(--color-sand); }
.bg-mist  { background: var(--color-mist); }
.bg-cream { background: var(--color-cream); }
body[data-palette="mist"]  .bg-alt  { background: #DDE9ED; }
body[data-palette="cream"] .bg-alt  { background: var(--color-sand); }
body[data-palette="mist"]  .bg-base { background: #EAF1F4; }
body[data-palette="cream"] .bg-base { background: var(--color-cream); }

/* tiny visual flourish for separators between sections */
.flourish {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 0 auto 26px;
}
.flourish .l, .flourish .r {
  height: 1px; width: 56px;
  background: color-mix(in srgb, var(--color-sky-deep) 50%, transparent);
}

/* ---------- Modals ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--color-ink) 60%, transparent);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 100;
  animation: fadeIn .2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  position: relative;
  background: var(--color-cream);
  width: 100%; max-width: 480px;
  padding: 44px 38px 36px;
  animation: rise .25s ease both;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 30%, transparent);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-frame {
  position: absolute; inset: 8px;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 18%, transparent);
  pointer-events: none;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px;
  background: transparent; border: 0;
  color: var(--color-ink-soft);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: color-mix(in srgb, var(--color-sky-deep) 12%, transparent); color: var(--color-ink); }
.modal-body { position: relative; z-index: 1; text-align: center; }
.modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--color-ink);
  margin: 0 0 14px;
  text-align: center;
}
.modal-lede {
  font-family: var(--font-accent); font-style: italic;
  color: var(--color-ink-light);
  font-size: 16px; line-height: 1.55;
  margin: 0 0 22px;
}
.modal-note {
  font-size: 13px;
  color: var(--color-ink-soft);
  line-height: 1.6;
  margin: 18px 0 0;
  font-family: var(--font-accent);
  font-style: italic;
}

.qrcode {
  margin: 0 auto 22px;
  width: 200px; height: 200px;
  background: #fff;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 25%, transparent);
  display: flex; align-items: center; justify-content: center;
}
.qrcode img { width: 100%; height: 100%; object-fit: contain; }

.pix-key {
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--color-sky-deep) 20%, transparent);
  padding: 18px 20px;
  margin: 4px 0 6px;
  text-align: left;
}
.pix-key-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 14px;
}
.pix-key .caps {
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--color-sky-deep);
  display: block; margin-bottom: 4px;
}
.pix-key .key {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 15px;
  color: var(--color-ink);
  word-break: break-all;
}
.pix-meta {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid color-mix(in srgb, var(--color-ink) 10%, transparent);
  font-size: 13.5px;
  color: var(--color-ink);
}
.copy-btn {
  flex: 0 0 auto;
  padding: 0 18px;
  height: 36px;
  font-size: 10.5px; letter-spacing: .15em;
  white-space: nowrap;
}
.wa-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  margin-top: 22px;
  height: 46px;
  width: 100%;
  text-decoration: none;
  background: #25D366;
  border-color: #25D366;
  color: white;
}
.wa-btn:hover { background: #1FB85B; border-color: #1FB85B; }

@media (max-width: 480px) {
  .modal { padding: 40px 24px 28px; }
  .pix-meta { grid-template-columns: 1fr; }
  .pix-key-row { flex-direction: column; align-items: stretch; }
  .pix-key-row .copy-btn { width: 100%; }
}

/* responsive paddings */
@media (max-width: 640px) {
  .section-pad { padding: 80px 18px; }
  .hero-frame { padding: 56px 28px 50px; }
  .topnav { padding: 14px 20px; }
}
