/* Shared styling for /gift and /gift-success.
   Tokens, nav pill, buttons and footer are lifted from index.html so a
   purchase page cannot drift from the site it is bought from. Note that
   legal.css is deliberately NOT reused: it is still the old dark, square
   cornered theme, and these pages sit on the light orange one. */
:root {
  --ink: #1A1917;
  --text-main: #252422;
  --text-muted: #6E6A63;
  --border: #DEDBD5;

  --brand: #F85E00;
  --brand-hover: #D14F00;
  --brand-light: #FEE7D8;
  --gold: #FC9E4F;
  --secondary: #403D39;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --font-title: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-width: 320px;
  /* Exactly as index.html paints it. Deliberately NOT background-attachment:
     fixed, which janks on mobile Safari and repaints against the viewport
     rather than the page. */
  background: linear-gradient(180deg, #F85E00 0%, #F2660C 45%, #E97024 100%);
  background-repeat: no-repeat;
  /* index.html is long enough that its body always fills the screen. These
     pages are not: the failure states are one small card, and a gradient sized
     to a short body leaves bare white under it. */
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
body > .wrap, body > div.wrap { flex: 0 0 auto; }
body > footer { margin-top: auto; }
::selection { background: var(--ink); color: #fff; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); font-weight: 700; letter-spacing: -0.01em; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 48px); }
.narrow { max-width: 760px; margin-inline: auto; }

.k-icon {
  font-family: 'Material Symbols Rounded';
  font-weight: normal; font-style: normal; line-height: 1;
  -webkit-font-smoothing: antialiased;
  display: inline-block; vertical-align: middle;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .nav-float, .g-head, .g-card { animation: none !important; }
}

/* ---------- Nav, the same floating pill as the home page ---------- */
.nav-float {
  position: sticky; top: 14px; z-index: 50;
  display: flex; justify-content: center;
  padding-inline: clamp(10px, 3vw, 16px); width: 100%;
  animation: slideDown .55s cubic-bezier(.22,.68,0,1.2) both; animation-delay: .1s;
}
.nav-pill {
  display: flex; align-items: center; justify-content: space-between;
  gap: clamp(10px, 2vw, 18px);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px; padding: 6px 8px 6px 16px;
  box-shadow: 0 10px 30px rgba(120, 50, 0, 0.14); max-width: 100%;
}
.wordmark { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-main); flex-shrink: 0; }
.wordmark-mark {
  width: 22px; height: 22px; flex: none; display: block;
  background-color: var(--text-main);
  -webkit-mask: url(logo-white.png) center / contain no-repeat;
  mask: url(logo-white.png) center / contain no-repeat;
}
.wordmark b { font-family: var(--font-title); font-weight: 700; font-size: 16px; }
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-store-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(26, 25, 23, 0.92); color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 999px;
  padding: 6px 12px; font-size: 12.5px; font-weight: 600; text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); white-space: nowrap;
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), background-color .18s ease, box-shadow .18s ease;
}
.nav-store-link:hover { transform: translateY(-1.5px) scale(1.02); background: #000; box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22); }
.nav-store-link svg { width: 14px; height: 14px; flex-shrink: 0; }
@media (max-width: 430px) { .nav-store-link span { display: none; } .nav-store-link { padding: 6px 9px; } }

/* ---------- Page head, white type straight on the orange ---------- */
.g-head {
  padding-top: clamp(38px, 7vw, 74px); padding-bottom: clamp(24px, 4vw, 38px);
  text-align: center; color: #fff;
  animation: fadeUp .6s cubic-bezier(.22,1,.36,1) both; animation-delay: .05s;
}
.g-head .eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px; padding: 6px 14px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .02em; margin-bottom: 16px;
}
.g-head .eyebrow .k-icon { font-size: 16px; }
.g-head h1 { font-size: clamp(30px, 5.4vw, 50px); line-height: 1.08; }
.g-head h1 em { font-style: normal; color: #FFE0C7; }
.g-head p { margin-top: 14px; font-size: clamp(15.5px, 1.7vw, 18px); color: rgba(255,255,255,.9); max-width: 34em; margin-inline: auto; }

/* ---------- Cards ---------- */
.g-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
  padding: clamp(20px, 4vw, 38px);
  box-shadow: 0 20px 50px rgba(120,50,0,.14);
  animation: fadeUp .65s cubic-bezier(.22,1,.36,1) both; animation-delay: .16s;
}
.g-card + .g-card { margin-top: 20px; }
.g-card > h2 { font-size: clamp(19px, 2.2vw, 24px); }
.g-card > h2 + p, .g-card > p + p { margin-top: 12px; }
.g-card p { color: var(--text-muted); }
.g-card p strong, .g-card li strong { color: var(--text-main); font-weight: 700; }
.g-card a { color: var(--brand-hover); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* A quiet aside inside a card. */
.g-note {
  background: var(--brand-light); border-radius: var(--radius-lg);
  padding: 16px 18px; display: flex; gap: 12px; align-items: flex-start;
}
.g-note .k-icon { font-size: 22px; color: var(--brand-hover); flex: none; margin-top: 1px; }
.g-note p { color: #6B3410; font-size: 15.5px; }
.g-note p strong { color: #4A2409; }

.g-msg {
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; margin-bottom: 18px; background: #FFFDFB;
  display: flex; gap: 12px; align-items: flex-start;
}
.g-msg .k-icon { font-size: 22px; color: var(--text-muted); flex: none; margin-top: 1px; }
.g-msg p { font-size: 15.5px; }
.g-msg.bad { border-color: #F3B49A; background: #FFF6F1; }
.g-msg.bad .k-icon { color: var(--brand-hover); }

/* ---------- The destination picker ---------- */
fieldset { border: none; }
legend {
  font-family: var(--font-title); font-weight: 700; font-size: clamp(19px, 2.2vw, 23px);
  color: var(--text-main); margin-bottom: 4px;
}
.legend-sub { color: var(--text-muted); font-size: 15.5px; margin-bottom: 18px; }

.bands { display: grid; gap: 10px; }
.band {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 14px; align-items: start;
  border: 1.5px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; cursor: pointer; background: #fff;
  transition: border-color .16s ease, background-color .16s ease, transform .16s cubic-bezier(.34,1.56,.64,1);
}
.band:hover { border-color: var(--gold); transform: translateY(-1px); }
.band input { position: absolute; opacity: 0; pointer-events: none; }
.tick {
  width: 20px; height: 20px; border: 2px solid #CFCBC4; border-radius: 999px;
  display: block; margin-top: 3px; flex: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.band.on { border-color: var(--brand); background: #FFFBF8; }
.band.on .tick { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 3.5px #fff; }
.band input:focus-visible ~ .tick { outline: 3px solid var(--gold); outline-offset: 2px; }
.band .where { display: block; font-family: var(--font-title); font-weight: 700; font-size: 17px; line-height: 1.3; }
.band .also { display: block; color: var(--text-muted); font-size: 14px; line-height: 1.45; margin-top: 3px; }
.band .cost { text-align: right; white-space: nowrap; }
.band .cost b { font-family: var(--font-title); font-weight: 700; font-size: 22px; display: block; line-height: 1.2; }
.band .cost small { display: block; color: var(--text-muted); font-size: 12px; margin-top: 2px; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, #FF8A3D, var(--brand) 65%, var(--brand-hover));
  color: #fff; border: none; border-radius: 999px;
  padding: 13px 26px; min-height: 48px;
  font-family: var(--font-sans); font-size: 15.5px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  box-shadow: 0 8px 22px rgba(216, 79, 0, 0.28);
  transition: transform .18s cubic-bezier(.34,1.56,.64,1), box-shadow .18s ease;
}
.btn-primary:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 14px 32px rgba(216, 79, 0, 0.38); }
.btn-primary:active { transform: scale(0.97); transition-duration: .08s; }
.btn-primary[disabled] {
  background: #E7E3DC; color: #9C968D; box-shadow: none; cursor: default; transform: none;
}
.btn-primary .k-icon { font-size: 19px; }

.buy { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.buy .buy-note { color: var(--text-muted); font-size: 14.5px; max-width: 24em; }

/* ---------- The code itself ---------- */
.code-slab {
  background: var(--brand-light); border: 1.5px dashed #F0A87C;
  border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 30px);
  text-align: center; margin-top: 4px;
}
.code-slab .label {
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand-hover); display: block; margin-bottom: 10px;
}
.code {
  font-family: var(--font-title); font-weight: 700;
  font-size: clamp(22px, 5.6vw, 38px); letter-spacing: .1em; line-height: 1.25;
  color: var(--ink);
  -webkit-user-select: all; user-select: all;
}
.code .pair { white-space: nowrap; }
.code-slab .term { color: #6B3410; font-size: 14.5px; margin-top: 10px; }

.steps { list-style: none; counter-reset: s; margin-top: 6px; }
.steps li {
  counter-increment: s; position: relative; padding-left: 40px; margin-top: 14px;
  color: var(--text-muted);
}
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 26px; height: 26px; border-radius: 999px;
  background: var(--brand-light); color: var(--brand-hover);
  font-family: var(--font-title); font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Footer, as on the home page ---------- */
footer { padding-top: clamp(34px, 6vw, 60px); width: 100%; }
footer .wordmark { color: #fff; }
footer .wordmark-mark { background-color: #fff; }
footer .foot-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; padding-bottom: 32px;
  border-top: 1px solid rgba(255,255,255,.3); padding-top: 22px;
}
footer .foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
footer .foot-links a { color: rgba(255,255,255,.85); font-size: 13.5px; text-decoration: none; transition: color .15s ease; }
footer .foot-links a:hover { color: #fff; }
footer .foot-note { color: rgba(255,255,255,.7); font-size: 13px; }
@media (max-width: 600px) {
  footer .foot-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .band { grid-template-columns: 22px minmax(0, 1fr); }
  .band .cost { grid-column: 2; text-align: left; margin-top: 8px; }
  .band .cost b { display: inline; font-size: 20px; }
  .band .cost small { display: inline; margin-left: 6px; }
}
