/* ============================================================================
   Noda — Gift Card page (gift.html) styles.
   A DEDICATED stylesheet (not appended to the landing's styles.css) so it always
   loads fresh — a returning visitor's cached landing styles.css can never leave
   the gift page unstyled. It builds on the landing's design tokens (:root vars in
   styles.css) and base primitives (.wrap, .btn*, .eyebrow, .reveal, nav, footer,
   .glow, .gradient-text), and defines only the gift-specific layout with g*/gift-
   prefixed names so nothing collides with .hero/.step/.final/.halo on the landing.
   Palette: Noda OLED — teal/blue/purple/gold.
   ============================================================================ */

/* ---- defensive icon sizing (also have intrinsic width/height in the markup) ---- */
.btn svg { width: 18px; height: 18px; flex: none; }
.btn svg use { pointer-events: none; }

/* Back-arrow affordance on the nav brand (returns to the landing) */
.brand-back-link { display: inline-flex; align-items: center; gap: 9px; }
.brand-back { color: var(--text-3); font-weight: 700; font-size: 18px; line-height: 1;
  transition: color .2s var(--ease), transform .2s var(--ease); }
.brand-back-link:hover .brand-back { color: var(--teal); transform: translateX(-3px); }

/* ---------- gift sections / headings ---------- */
.gsec { padding: clamp(60px, 8vw, 112px) 0; position: relative; z-index: 1; }
.gsec.alt { background: linear-gradient(180deg, var(--bg-soft), rgba(10,10,20,.55));
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.gcenter { max-width: 760px; margin: 0 auto; text-align: center; }
.h-section { font-size: clamp(28px, 4.2vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -0.025em; }
.glead { color: var(--text-3); font-size: clamp(16px, 1.6vw, 18.5px); margin-top: 16px; line-height: 1.6; }
.gcenter .glead { margin-left: auto; margin-right: auto; max-width: 660px; }
.eyebrow .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 10px var(--teal); margin-right: 8px; vertical-align: middle; }

/* ---------- gift hero ---------- */
.ghero { padding: clamp(44px, 6vw, 88px) 0 clamp(40px, 5vw, 68px); position: relative; z-index: 1; }
.ghero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(28px, 5vw, 68px); align-items: center; }
.ghero-copy h1 { font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; }
.ghero-copy h1 .gradient-text { display: inline-block; }
.ghero-copy .glead { font-size: clamp(16px, 1.55vw, 19px); max-width: 560px; color: var(--text-2); margin-top: 22px; }
.ghero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-micro { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  color: var(--text-3); font-size: 14px; background: rgba(38,198,218,.06);
  border: 1px solid rgba(38,198,218,.18); padding: 9px 14px; border-radius: 999px; }
.hero-micro svg { width: 16px; height: 16px; flex: none; color: var(--teal); }
.reveal.d1 { transition-delay: .06s; } .reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; } .reveal.d4 { transition-delay: .24s; }

.ghero-card-wrap { position: relative; display: flex; justify-content: center; align-items: center; min-height: 400px; }
.ghalo { position: absolute; width: 460px; height: 460px; max-width: 96%; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, rgba(41,121,255,.42), rgba(124,77,255,.22) 45%, transparent 70%);
  filter: blur(22px); opacity: .85; z-index: 0; pointer-events: none; }

/* ---------- the gift card ---------- */
.giftcard {
  position: relative; z-index: 1;
  width: 380px; max-width: 100%; min-height: 218px;
  border-radius: 24px; padding: 22px 24px;
  display: flex; flex-direction: column;
  color: #fff; overflow: hidden; isolation: isolate;
  box-shadow: 0 30px 70px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.16);
  font-family: var(--font);
}
/* crisp 1px gradient hairline border that follows the rounded corners */
.giftcard::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 3;
  background: linear-gradient(140deg, rgba(255,255,255,.45), rgba(255,255,255,.06) 40%, rgba(255,255,255,.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.giftcard.showcase { transform: rotate(-4deg); animation: gcfloat 7s ease-in-out infinite; }
@keyframes gcfloat { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-10px); } }
/* faint starfield/dot texture + soft top sheen on every card */
.giftcard::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; z-index: 2;
  background:
    radial-gradient(140% 80% at 30% -10%, rgba(255,255,255,.16), transparent 55%),
    radial-gradient(1.4px 1.4px at 18% 26%, rgba(255,255,255,.7) 0, transparent 100%),
    radial-gradient(1.2px 1.2px at 72% 18%, rgba(255,255,255,.55) 0, transparent 100%),
    radial-gradient(1.4px 1.4px at 86% 64%, rgba(255,255,255,.5) 0, transparent 100%),
    radial-gradient(1px 1px at 40% 78%, rgba(255,255,255,.5) 0, transparent 100%);
}
.giftcard > * { position: relative; z-index: 4; }
.gc-top { display: flex; align-items: center; justify-content: space-between; }
.gc-brand { font-weight: 800; font-size: 21px; letter-spacing: -0.02em; display: inline-flex; align-items: center; gap: 6px; }
.gc-chip { font-size: 10px; font-weight: 800; letter-spacing: .2em; padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.32); backdrop-filter: blur(2px); }
.gc-emoji { font-size: 32px; line-height: 1; margin: 10px 0 6px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.4)); }
.gc-term { font-weight: 700; font-size: 13px; letter-spacing: .14em; color: rgba(255,255,255,.94); }
.gc-codelabel { margin-top: auto; padding-top: 12px; font-size: 9px; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.gc-code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-weight: 700;
  font-size: clamp(12px, 1.2vw, 16px); letter-spacing: .04em; margin-top: 4px; white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.gc-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px; font-size: 12px; font-weight: 600; }
.gc-foot > span:first-child { min-width: 0; }
.gc-foot .gc-os { display: inline-flex; align-items: center; flex: none; font-weight: 700; font-size: 10px; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.34); border: 1px solid rgba(255,255,255,.24); }

/* card themes (Noda teal/blue/purple/gold) — each with its own brand glow */
.theme-mint     { background: radial-gradient(130% 130% at 78% -8%, #16a6c2 0%, #0e5a78 38%, #08283f 100%); }
.theme-thanks   { background: radial-gradient(130% 130% at 16% -8%, #2979ff 0%, #1456b0 40%, #0a2147 100%); }
.theme-birthday { background: radial-gradient(130% 130% at 16% -8%, #8a5bff 0%, #5a36b0 42%, #1d1340 100%); }
.theme-holiday  { background: radial-gradient(130% 120% at 50% -14%, #c79235 0%, #5e4513 34%, #11203a 80%); }
.theme-mint     { box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 60px -22px rgba(38,198,218,.7), inset 0 1px 0 rgba(255,255,255,.16); }
.theme-thanks   { box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 60px -22px rgba(41,121,255,.7), inset 0 1px 0 rgba(255,255,255,.16); }
.theme-birthday { box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 60px -22px rgba(124,77,255,.7), inset 0 1px 0 rgba(255,255,255,.16); }
.theme-holiday  { box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 60px -22px rgba(212,168,67,.65), inset 0 1px 0 rgba(255,255,255,.16); }
.theme-birthday .gc-chip { background: rgba(124,77,255,.3); border-color: rgba(124,77,255,.6); color: #e3d8ff; }
.theme-holiday  .gc-chip { background: rgba(212,168,67,.26); border-color: rgba(212,168,67,.55); color: #f6e2ad; }
.theme-holiday  .gc-codelabel, .theme-holiday .gc-foot { color: rgba(255,255,255,.85); }

/* ---------- trust strip ---------- */
.proof { padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(38,198,218,.05), transparent); position: relative; z-index: 1; }
.proof-inner { display: flex; align-items: center; justify-content: center; gap: 10px 18px; flex-wrap: wrap;
  color: var(--text-2); font-size: 15px; font-weight: 500; }
.proof-dot { color: var(--teal); }

/* ---------- gift steps ---------- */
.gift-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 52px); }
.gstep { background: linear-gradient(170deg, var(--card), var(--surface)); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 22px; position: relative; overflow: hidden;
  transition: transform .2s var(--ease), border-color .2s var(--ease); }
.gstep:hover { transform: translateY(-4px); border-color: rgba(38,198,218,.4); }
.gstep .gnum { font-weight: 800; font-size: 40px; line-height: 1; margin-bottom: 8px;
  background: linear-gradient(120deg, var(--teal-bright), var(--blue)); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent; }
.gstep h3 { font-size: 17px; color: var(--text); margin-bottom: 8px; letter-spacing: -.01em; }
.gstep p { color: var(--text-3); font-size: 14px; line-height: 1.55; }

/* ---------- card designs grid ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: clamp(40px, 5vw, 52px); }
.card-pick { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.card-pick .giftcard { width: 100%; transition: transform .22s var(--ease), box-shadow .22s var(--ease); }
.card-pick:hover .giftcard { transform: translateY(-8px); }
.card-pick .card-choose { width: 100%; justify-content: center; }
.card-pick.selected .giftcard { outline: 2px solid var(--teal); outline-offset: 4px; }
.card-pick.selected .card-choose { background: rgba(38,198,218,.16); border-color: var(--teal); color: var(--teal-bright); }

/* ---------- what you get ---------- */
.get-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(40px, 5vw, 52px); }
.get-card { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 24px 20px;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s; }
.get-card:hover { transform: translateY(-5px); border-color: rgba(38,198,218,.4); background: var(--card-2); }
.get-card .mi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(38,198,218,.2), rgba(41,121,255,.14)); margin-bottom: 15px;
  border: 1px solid rgba(38,198,218,.22); }
.get-card .mi svg { width: 22px; height: 22px; flex: none; color: var(--teal-bright); }
.get-card h4 { font-size: 15.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; letter-spacing: -.01em; }
.get-card p { color: var(--text-3); font-size: 13.5px; line-height: 1.55; }
.tnote { margin-top: 32px; max-width: 800px; color: var(--text-3); font-size: 13.5px; line-height: 1.65; }

/* ---------- order form ---------- */
.order-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start;
  background: linear-gradient(160deg, var(--card), var(--surface)); border: 1px solid var(--divider);
  border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 52px); box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.order-intro .h-section { margin-top: 14px; }
.order-intro .glead { margin-top: 14px; }
.order-price { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 20px; color: var(--text);
  background: rgba(38,198,218,.1); border: 1px solid var(--teal); border-radius: 12px; padding: 11px 16px; font-weight: 600; }
.order-price strong { color: var(--teal-bright); font-size: 23px; line-height: 1; }
.order-total { margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--teal-bright); letter-spacing: .01em; }
.order-points { list-style: none; margin-top: 24px; display: grid; gap: 13px; padding: 0; }
.order-points li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.order-points li svg { width: 19px; height: 19px; flex: none; margin-top: 2px; color: var(--teal); }

.order-form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .req { color: var(--teal); }
.field .opt { color: var(--text-4); font-weight: 400; }
.field input, .field textarea, .order-form .form-select {
  width: 100%; font-family: var(--font); font-size: 15px; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--divider);
  border-radius: 12px; padding: 13px 14px; transition: border-color .2s, background .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 84px; }
.order-form .form-select { appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e9a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 13px; padding-right: 38px; }
.order-form .form-select option { color: #0d0d1a; background: #fff; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-4); }
.field input:focus, .field textarea:focus, .order-form .form-select:focus {
  outline: none; border-color: var(--teal); background: var(--surface); box-shadow: 0 0 0 3px rgba(38,198,218,.16); }
.field input:focus-visible, .field textarea:focus-visible, .order-form .form-select:focus-visible {
  outline: 2px solid var(--teal); outline-offset: 2px; }
.field input.invalid, .field textarea.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,68,68,.14); }
.field-row { display: grid; grid-template-columns: 1fr 120px; gap: 16px; }
.order-submit { width: 100%; justify-content: center; margin-top: 6px; }
.order-fineprint { color: var(--text-4); font-size: 12.5px; line-height: 1.55; }
.form-status { font-size: 14px; font-weight: 600; padding: 12px 14px; border-radius: 12px; }
.form-status.ok { color: var(--teal-bright); background: rgba(38,198,218,.12); border: 1px solid var(--teal); }
.form-status.err { color: #ff9a9a; background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); }

/* ---------- availability / restrictions notice ---------- */
.restrict-wrap { padding-block: clamp(28px, 5vw, 56px); position: relative; z-index: 1; }
.gift-restrict { max-width: 880px; margin: 0 auto; background: rgba(212,168,67,.07);
  border: 1px solid rgba(212,168,67,.3); border-radius: 16px; padding: 22px 26px; }
.gift-restrict .rlabel { display: inline-block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 9px; }
.gift-restrict p { color: var(--text-2); font-size: 14px; line-height: 1.65; }

/* ---------- FAQ accordion ---------- */
.faq-list { max-width: 820px; margin: clamp(40px, 5vw, 52px) auto 0; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden;
  transition: border-color .2s var(--ease); }
.faq-item:hover { border-color: rgba(38,198,218,.32); }
.faq-item.open { border-color: var(--teal); background: var(--card-2); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: none; border: 0; cursor: pointer; color: var(--text); font-family: var(--font);
  font-size: 16px; font-weight: 700; text-align: left; padding: 18px 20px; letter-spacing: -.01em; }
.faq-q .chev { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px;
  background: rgba(255,255,255,.05); transition: transform .25s var(--ease), background .2s; }
.faq-q .chev svg { width: 16px; height: 16px; color: var(--text-2); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); background: rgba(38,198,218,.18); }
.faq-item.open .faq-q .chev svg { color: var(--teal-bright); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-a-inner { padding: 0 20px 18px; color: var(--text-3); font-size: 15px; line-height: 1.65; }

/* ---------- final CTA ---------- */
.gfinal { padding: clamp(60px, 8vw, 112px) 0; position: relative; z-index: 1; }
.final-card { max-width: 780px; margin: 0 auto; text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--card), var(--surface)); border: 1px solid var(--divider);
  border-radius: var(--radius-lg); padding: clamp(40px, 5vw, 64px); }
.final-card::before { content: ""; position: absolute; inset: -40% 20% auto 20%; height: 320px; pointer-events: none;
  background: radial-gradient(circle, rgba(41,121,255,.22), transparent 70%); filter: blur(20px); }
.final-card > * { position: relative; }
.final-card h2 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.025em; }
.final-card .glead { margin: 16px auto 0; max-width: 540px; color: var(--text-2); }
.final-card .ghero-cta { justify-content: center; margin-top: 30px; }
.final-card .micro { margin-top: 18px; color: var(--text-4); font-size: 13px; }

/* ---------- gift page responsive ---------- */
@media (max-width: 980px) {
  .ghero-grid { grid-template-columns: 1fr; text-align: center; }
  .ghero-copy .glead { margin-left: auto; margin-right: auto; }
  .ghero-cta { justify-content: center; }
  .ghero-card-wrap { min-height: 0; order: -1; margin-bottom: 6px; }
  .gift-steps { grid-template-columns: repeat(2, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .get-grid { grid-template-columns: repeat(2, 1fr); }
  .order-wrap { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .gift-steps { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
  .get-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .giftcard.showcase { transform: none; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
  .giftcard.showcase { animation: none; }
}
