:root{
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;

  --border: rgba(17, 24, 39, 0.10);
  --shadow: 0 1px 4px rgba(15, 23, 42, 0.08);

  --brand: #111827;
  --brandText: #ffffff;

  --radius: 14px;

  --btnPrimaryBg: #111827;
  --btnPrimaryText: #ffffff;

  --btnSecondaryBg: #f3f4f6;
  --btnSecondaryText: #111827;
  --btnSecondaryBorder: rgba(17, 24, 39, 0.14);

  --btnDisabledBg: rgba(0,0,0,0.05);
  --btnDisabledText: rgba(0,0,0,0.40);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
               system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

/* Links */
a { color: inherit; text-decoration: none; }
a:hover { opacity: 0.94; }

/* Layout */
.page { padding: 24px 16px 64px; }
.container { max-width: 920px; margin: 0 auto; }

/* =========================================================
   Identity bar
========================================================= */
.identity-bar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0;
}

.identity-brand{
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.identity-brand-logo{
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.identity-brand-logo picture{
  display: block;
  line-height: 0;
}

.identity-brand-logo img{
  display: block;
  height: 38px;
  width: auto;
  max-width: none;
}

.identity-right{
  margin-left: auto;
  display: inline-flex;
  align-items: center;
}

/* Typography */
h1{
  margin: 0 0 8px 0;
  font-size: 28px;
  letter-spacing: -0.02em;
}
h2{
  margin: 22px 0 8px 0;
  font-size: 18px;
  letter-spacing: -0.01em;
}
p { margin: 10px 0; }
ul { margin: 10px 0 0 20px; }
.muted { color: var(--muted); }

/* Code */
code{
  background: rgba(17, 24, 39, 0.06);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 0.95em;
}

/* =========================================================
   Content Surface — raised platform (used by default pages)
========================================================= */
.content-surface{
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 18px;
  padding: 18px;
}

/* Mobile override */
@media (max-width: 520px){
  .content-surface{
    padding: 14px;
    border-radius: 16px;
  }

  .identity-bar{
    gap: 10px;
    margin-bottom: 14px;
  }

  .identity-brand-logo img{
    height: 38px;
  }
}

/* Allow certain pages (gift list) to opt out of the surface */
.no-surface .content-surface{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
}

/* =========================================================
   Buttons — Apple-ish system (normalized for <a> + <button>)
   default width is AUTO (not 100%)
========================================================= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  min-height: 38px;

  padding: 10px 12px;
  border-radius: 12px;

  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1;

  border: 1px solid transparent;
  background: transparent;
  color: inherit;

  cursor: pointer;
  user-select: none;
  text-decoration: none;

  appearance: none;
  -webkit-appearance: none;

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;

  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.btn.primary{
  background: var(--btnPrimaryBg);
  color: var(--btnPrimaryText);
}

.btn.secondary{
  background: var(--btnSecondaryBg);
  color: var(--btnSecondaryText);
  border-color: var(--btnSecondaryBorder);
}

.btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.18), 0 1px 0 rgba(15, 23, 42, 0.06);
}

.btn.disabled,
.btn[aria-disabled="true"]{
  background: var(--btnDisabledBg);
  color: var(--btnDisabledText);
  border-color: transparent;
  box-shadow: none;
  cursor: default;
  pointer-events: none;
}

.btn:hover{ filter: brightness(0.985); }
.btn:active{
  transform: translateY(0.5px);
  box-shadow: 0 0 0 rgba(15, 23, 42, 0);
}

/* =========================================================
   Footer — horizontal, symmetrical, minimal
========================================================= */
.footer{
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-links{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-links a{
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 120ms ease;
}

.footer-links a:hover{
  color: var(--text);
  opacity: 1;
}

.footer-bottom{
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--muted);
}

/* =========================================================
   Gift List — shopping card, responsive
========================================================= */
.gift-header{
  text-align: center;
  margin: 6px 0 16px;
}

/* Optional logo spot inside gift header */
.gift-brand{
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
}
.gift-brand img{
  height: 34px;
  width: auto;
  display: block;
}

.gift-title{
  margin: 0 0 6px;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 1.55rem;
}

.gift-subtitle{
  margin: 0;
  opacity: 0.75;
  font-size: 0.98rem;
}

.gift-footnote{
  margin-top: 14px;
  font-size: 0.85rem;
  opacity: 0.65;
  text-align: center;
}

/* Base: 1 column */
.gift-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

/* Card */
.gift-card{
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 16px;
  overflow: hidden;

  display: grid;
  grid-template-rows: auto 1fr auto;
}

/* Image */
.gift-media{
  width: 100%;
  aspect-ratio: 16 / 11;
  background: rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gift-media img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gift-media-placeholder{
  font-size: 0.85rem;
  opacity: 0.6;
}

/* Body */
.gift-body{
  padding: 10px 12px 8px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.gift-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gift-name{
  font-weight: 650;
  letter-spacing: -0.01em;
  min-width: 0;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gift-notes{
  font-size: 0.92rem;
  opacity: 0.75;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Actions */
.gift-actions-row{
  padding: 10px 12px 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

/* Only gift action buttons should be full-width */
.gift-action{
  width: 100%;
  min-height: 38px;
  padding: 10px 10px;
  border-radius: 12px;
  font-size: 0.9rem;
}

/* Small phones */
@media (max-width: 420px){
  .gift-grid{ gap: 9px; }
  .gift-title{ font-size: 1.45rem; }
  .gift-media{ aspect-ratio: 16 / 12; }
  .gift-body{ padding: 10px 10px 8px; }
  .gift-actions-row{ padding: 10px 10px 10px; gap: 7px; }

  .gift-action{
    min-height: 36px;
    padding: 9px 8px;
    font-size: 0.86rem;
  }

  .gift-brand img{ height: 32px; }
}

/* iPhone landscape: 2 columns */
@media (orientation: landscape) and (min-width: 650px) and (max-width: 899px){
  .gift-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .gift-media{ aspect-ratio: 16 / 12; }

  .gift-body{ padding: 10px 10px 8px; }

  .gift-actions-row{
    padding: 10px 10px 10px;
    gap: 7px;
  }

  .gift-action{
    min-height: 36px;
    padding: 9px 8px;
    font-size: 0.86rem;
  }
}

/* Desktop: two columns + slightly more compact actions */
@media (min-width: 900px){
  .gift-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .gift-media{ aspect-ratio: 16 / 12; }

  .gift-actions-row{ padding: 10px 12px 12px; }
  .gift-action{
    min-height: 34px;
    padding: 9px 10px;
    font-size: 0.86rem;
  }
}

/* =========================================================
   Status Badges
========================================================= */
.badge{
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-info{
  background: rgba(59,130,246,0.14);
  color: rgb(29,78,216);
  border: 1px solid rgba(59,130,246,0.25);
}

.badge-warn{
  background: rgba(245,158,11,0.18);
  color: rgb(146,64,14);
  border: 1px solid rgba(245,158,11,0.30);
}

.badge-success{
  background: rgba(34,197,94,0.18);
  color: rgb(22,101,52);
  border: 1px solid rgba(34,197,94,0.28);
}

/* =========================================================
   Pagination — minimal, Apple-ish
========================================================= */
.gift-pager{
  margin: 16px 0 4px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.gift-pager-meta{
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.gift-pager-controls{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pager-btn{
  width: auto;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.pager-pages{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.page-chip{
  width: auto;
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
}

.page-chip.active{
  background: rgba(17,24,39,0.08);
  border-color: rgba(17,24,39,0.12);
  color: var(--text);
}

.page-ellipsis{
  color: var(--muted);
  padding: 0 4px;
  user-select: none;
}

@media (min-width: 900px){
  .gift-pager-controls{ flex-wrap: nowrap; }
}

/* =========================================================
   Gift empty / 404 card helpers
========================================================= */
.gift-empty{
  text-align: center;
}

.gift-empty-title{
  margin: 0 0 8px 0;
}

.gift-empty-subtitle{
  margin: 0;
}

.gift-empty-actions{
  display: flex;
  justify-content: center;
  margin: 0;
}

.gift-empty-footnote{
  margin: 12px 0 0 0;
}

/* =========================================================
   Home page v2
========================================================= */
.home-v2{
  padding-top: 8px;
}

.home-v2-kicker,
.home-v2-eyebrow,
.home-v2-card-eyebrow{
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-v2-kicker{
  margin-bottom: 22px;
}

.home-v2-hero{
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.home-v2-title{
  margin: 0;
  font-size: 4.5rem;
  line-height: 0.88;
  letter-spacing: -0.08em;
  color: var(--text);
}

.home-v2-subtitle{
  max-width: 680px;
  margin: 22px auto 0 auto;
  font-size: 1.08rem;
  line-height: 1.78;
  color: var(--muted);
}

.home-v2-actions{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.home-v2-actions-center{
  justify-content: center;
}

.home-v2-stage{
  margin-top: 42px;
}

.home-v2-stage-shell{
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
  min-height: 560px;
}

.home-v2-phone{
  margin: 0;
  width: 100%;
  max-width: 290px;
  transition: transform 180ms ease;
}

.home-v2-phone-center{
  max-width: 330px;
  z-index: 3;
}

.home-v2-phone-left,
.home-v2-phone-right{
  z-index: 2;
  opacity: 0.96;
}

.home-v2-phone-left{
  transform: translateY(24px);
}

.home-v2-phone-right{
  transform: translateY(24px);
}

.home-v2-phone-image{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 30px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  background: #fff;
  box-shadow:
    0 30px 70px rgba(15, 23, 42, 0.10),
    0 8px 20px rgba(15, 23, 42, 0.04);
}

.home-v2-summary{
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.home-v2-summary-pill{
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255,255,255,0.80);
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.home-v2-details{
  margin-top: 60px;
}

.home-v2-details-head{
  max-width: 720px;
  margin-bottom: 22px;
}

.home-v2-details-head h2{
  margin: 10px 0 0 0;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

.home-v2-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-v2-card{
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 26px;
  overflow: hidden;
}

.home-v2-card-copy{
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 340px;
}

.home-v2-card-copy h3{
  margin: 12px 0 0 0;
  font-size: 1.7rem;
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.home-v2-card-copy p:last-child{
  margin: 14px 0 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.home-v2-card-shot{
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-v2-inline-shot{
  margin: 0;
  width: 100%;
  max-width: 320px;
}

.home-v2-inline-shot-image{
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  border: 1px solid rgba(17, 24, 39, 0.07);
  background: #fff;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 4px 12px rgba(15, 23, 42, 0.04);
}

.home-v2-process{
  margin-top: 60px;
}

.home-v2-process-head{
  max-width: 680px;
  margin-bottom: 20px;
}

.home-v2-process-head h2{
  margin: 10px 0 0 0;
  font-size: 1.82rem;
  letter-spacing: -0.045em;
}

.home-v2-process-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.home-v2-process-card{
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 22px;
  padding: 22px;
}

.home-v2-process-number{
  width: 32px;
  height: 32px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--btnPrimaryBg);
  color: var(--btnPrimaryText);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.home-v2-process-card h3{
  margin: 0 0 8px 0;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.home-v2-process-card p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.home-v2-cta{
  margin-top: 60px;
  text-align: center;
  padding: 34px 22px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.92),
    rgba(255,255,255,0.78)
  );
  border: 1px solid rgba(17, 24, 39, 0.08);
}

.home-v2-cta h2{
  margin: 10px 0 0 0;
  font-size: 1.95rem;
  letter-spacing: -0.05em;
}

.home-v2-cta-copy{
  max-width: 620px;
  margin: 12px auto 0 auto;
  color: var(--muted);
  line-height: 1.75;
}

@media (max-width: 1080px){
  .home-v2-title{
    font-size: 3.65rem;
  }

  .home-v2-stage-shell{
    min-height: 500px;
  }

  .home-v2-phone{
    max-width: 250px;
  }

  .home-v2-phone-center{
    max-width: 290px;
  }
}

@media (max-width: 900px){
  .home-v2-title{
    font-size: 3rem;
  }

  .home-v2-stage-shell{
    min-height: auto;
    gap: 12px;
  }

  .home-v2-phone{
    max-width: 220px;
  }

  .home-v2-phone-center{
    max-width: 250px;
  }

  .home-v2-summary{
    grid-template-columns: 1fr;
  }

  .home-v2-grid{
    grid-template-columns: 1fr;
  }

  .home-v2-process-grid{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px){
  .home-v2-kicker{
    margin-bottom: 18px;
  }

  .home-v2-title{
    font-size: 2.35rem;
    line-height: 0.94;
  }

  .home-v2-subtitle{
    font-size: 1rem;
    line-height: 1.72;
  }

  .home-v2-stage{
    margin-top: 30px;
  }

  .home-v2-stage-shell{
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .home-v2-phone,
  .home-v2-phone-center{
    max-width: 100%;
  }

  .home-v2-phone-left,
  .home-v2-phone-right{
    transform: none;
    opacity: 1;
  }

  .home-v2-phone-image{
    border-radius: 24px;
  }

  .home-v2-card-copy{
    min-height: auto;
    padding: 24px;
  }

  .home-v2-card-copy h3{
    font-size: 1.45rem;
  }

  .home-v2-inline-shot-image{
    border-radius: 22px;
  }

  .home-v2-cta{
    padding: 28px 18px;
    border-radius: 24px;
  }

  .home-v2-cta h2{
    font-size: 1.65rem;
  }
}