/* The gift page: the same brand in warm daylight. It's for the people who buy presents (parents,
   grandparents) more than for the people who slouch, so it trades the app's dark lab look for
   paper, ribbon and bigger type. Loaded after styles.css: tokens first, then its own parts. */

body.giftpage {
  --bg: #fbf6ef;
  --surface: #ffffff;
  --surface-2: #f6efe5;
  --surface-3: #eee4d6;
  --line: #e6dac9;
  --line-soft: #efe6da;
  --text: #1f1b2d;
  --muted: #57516a;
  --dim: #6b6479;       /* 5:1 on the page colour */
  --accent: #6252f0;
  --accent-soft: #5243d8;
  --ribbon: #e0523d;
  --gold: #f2b441;
  --serif: Fraunces, Georgia, "Times New Roman", serif;
  color-scheme: light;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
}
.giftpage::before {
  background-image: radial-gradient(rgba(60, 40, 20, .07) 1px, transparent 1.2px);
}
.giftpage a { color: var(--accent-soft); }
.giftpage a.btn:not(.primary) { color: var(--text); }
.giftpage .btn:hover { border-color: #d6c8b4; }
.giftpage .btn.primary { color: #fff; }
.giftpage .btn.big { padding: 16px 30px; font-size: 16px; border-radius: 13px; }
.giftpage .card:hover { border-color: #d6c8b4; }
.giftpage .nav { background: color-mix(in srgb, var(--bg) 82%, transparent); }
.giftpage .logo { color: var(--text); }
.giftpage .logo:hover { text-decoration: none; }
.logo-gift {
  font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px;
  color: #fff; background: var(--ribbon);
}
.giftpage .nav-links a:not(.btn) { color: var(--muted); }
.giftpage .nav-links a:not(.btn):hover { color: var(--text); }
.giftpage .eyebrow {
  background: #fff; color: var(--muted); border-color: var(--line); text-transform: none;
  font-family: inherit; font-size: 14px; letter-spacing: 0; font-weight: 500;
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- hero */

.ghero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.ghero::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  width: 900px; height: 620px; right: -260px; top: -160px;
  background: radial-gradient(closest-side, rgba(242, 180, 65, .28), transparent);
}
.ghero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%;
  width: 700px; height: 520px; left: -240px; top: 80px;
  background: radial-gradient(closest-side, rgba(98, 82, 240, .12), transparent);
}
.ghero-grid, .ready-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center;
}
@media (max-width: 900px) { .ghero-grid, .ready-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } }
.ghero h1, .ready h1 {
  margin-top: 22px; font-size: clamp(2.5rem, 5.6vw, 4.3rem); font-weight: 800; letter-spacing: -0.045em; line-height: 1.02;
  text-wrap: balance;
}
.gband h2, .gfinal h2 { text-wrap: balance; }
.hl { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -0.02em; color: var(--accent); white-space: nowrap; }
@media (max-width: 480px) { .hl { white-space: normal; } }
.giftpage .lede { margin: 22px 0 0; max-width: 34em; font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--muted); }
.giftpage .cta-row { justify-content: flex-start; }
.gchips { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.gchips li {
  padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.gchips b { color: var(--text); font-weight: 650; }

/* ---------------------------------------------------------------- the gift card */

.gcard-stage { display: grid; place-items: center; padding: 20px 10px; }
.gcard {
  --w: 420px;
  /* the ratio is a minimum: a long message makes the card taller rather than being cut off */
  position: relative; width: min(var(--w), 100%); aspect-ratio: 1.42;
  padding: 26px 28px 22px; border-radius: 22px; color: #fff;
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .18), transparent 55%),
    linear-gradient(140deg, #7a6bff 0%, #5a49e6 48%, #3f7fd8 100%);
  box-shadow: 0 40px 70px -34px rgba(58, 42, 160, .75), 0 2px 0 rgba(255, 255, 255, .25) inset;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.gcard > * { flex-shrink: 0; }
.gcard[data-kind="life"] {
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 255, 255, .2), transparent 55%),
    linear-gradient(140deg, #2b2350 0%, #463aa8 55%, #7a6bff 100%);
}
.hero-card .gcard { transform: rotate(-3deg); }
.hero-card { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.gcard-ribbon {
  position: absolute; top: 0; bottom: 0; right: 74px; width: 22px;
  background: linear-gradient(90deg, #c9402c, var(--ribbon) 40%, #f06b55);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}
.gcard-bow {
  position: absolute; right: 43px; top: 14px; width: 84px; fill: var(--ribbon); stroke: #b73a28; stroke-width: 1.2;
  filter: drop-shadow(0 4px 5px rgba(40, 20, 80, .35));
}
.gcard-top { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }
.gcard-mark { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(255, 255, 255, .22); }
.gcard-mark svg { width: 13px; height: 13px; }
.gcard-for { margin-top: 18px; font-size: 13px; opacity: .85; padding-right: 90px; }
.gcard-for b { font-weight: 700; opacity: 1; }
.gcard-what { margin-top: 4px; font-family: var(--serif); font-size: 1.55rem; font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; padding-right: 90px; }
.gcard-msg {
  margin: 12px 0 0; font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.35;
  padding-right: 90px; overflow-wrap: anywhere; opacity: .95;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.gcard-msg[hidden], .gcard-from[hidden] { display: none; }
.gcard-from { margin-top: 4px; font-size: 13px; opacity: .85; }
.gcard-code {
  margin-top: auto; display: inline-flex; flex-direction: column; align-self: flex-start;
  padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .95); color: #1f1b2d;
}
.gcard-code span { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #6b6479; }
.gcard-code b { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: .08em; }
.gcard-code.placeholder b { color: #b7afc3; }
.gcard-how { margin-top: 8px; font-size: 11.5px; opacity: .85; }
.gcard-how b { font-weight: 600; }
@media (max-width: 480px) {
  .gcard { padding: 20px 20px 16px; aspect-ratio: auto; min-height: 250px; }
  .gcard-what { font-size: 1.3rem; }
  .gcard-ribbon { right: 56px; }
  .gcard-bow { right: 32px; width: 70px; top: 12px; }
  .gcard-for, .gcard-what, .gcard-msg { padding-right: 72px; }
}

/* ---------------------------------------------------------------- sections */

.gband { padding: 96px 0; border-top: 1px solid var(--line-soft); }
.gsec-head { max-width: 40em; }
.gkicker { font-size: 14px; font-weight: 650; color: var(--ribbon); letter-spacing: .01em; }
.gband h2, .gsec-head h2 {
  margin-top: 12px; font-size: clamp(1.9rem, 3.9vw, 2.9rem); font-weight: 750; letter-spacing: -0.04em; line-height: 1.08;
}
.gsec-head p { margin-top: 18px; font-size: 1.08rem; color: var(--muted); }

.weight-fact {
  margin-top: 40px; padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 30px 60px -45px rgba(60, 40, 20, .35);
}
.wf-big { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.wf-big b { font-size: clamp(3rem, 8vw, 4.6rem); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ribbon); }
.wf-big span { flex: 1 1 18em; font-size: 1.08rem; color: var(--muted); }
.wf-row { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wf-row li { padding: 14px 16px; border-radius: 14px; background: var(--surface-2); display: flex; flex-direction: column; }
.wf-row li:last-child { background: rgba(224, 82, 61, .1); }
.wf-row b { font-size: 1.4rem; font-weight: 750; letter-spacing: -0.03em; }
.wf-row span { font-size: 13.5px; color: var(--muted); }
@media (max-width: 640px) { .wf-row { grid-template-columns: repeat(2, 1fr); } }
.wf-source { margin-top: 14px; font-size: 12.5px; color: var(--dim); }

.persona-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .persona-grid { grid-template-columns: 1fr; } }
.persona { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.persona h3 { margin-top: 18px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.persona p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.picon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(98, 82, 240, .1); color: var(--accent);
}
.picon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* the one dark band: what they'll actually see, on a laptop */
.dark-band {
  background: #121320; color: #eef0f4; border-top: 0;
  --muted: #b3b6c6; --text: #eef0f4;
}
.dark-band .gkicker { color: var(--gold); }
.how-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .how-grid { grid-template-columns: minmax(0, 1fr); } }
.how-lede { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }
.how-steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.how-steps li { counter-increment: s; position: relative; padding-left: 46px; color: var(--muted); font-size: 15.5px; }
.how-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; background: rgba(242, 180, 65, .16); color: var(--gold);
  font-weight: 700; font-size: 14px;
}
.how-steps b { color: #fff; font-weight: 650; }
.laptop { width: 100%; max-width: 520px; justify-self: center; }
.laptop-screen {
  position: relative; aspect-ratio: 16 / 10; border-radius: 16px 16px 4px 4px; overflow: hidden;
  border: 10px solid #26283a; border-bottom-width: 14px;
  background: radial-gradient(90% 80% at 50% 42%, #10132a 0%, #07080d 70%);
}
.laptop-screen canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.laptop-base {
  height: 14px; margin: 0 -6%; border-radius: 0 0 14px 14px;
  background: linear-gradient(#34364a, #1d1e2b); position: relative;
}
.laptop-base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 5px; border-radius: 0 0 6px 6px; background: #121320; }
.demo-toast {
  position: absolute; right: 12px; top: 12px; width: min(52%, 230px); padding: 10px 12px; border-radius: 12px;
  background: rgba(21, 24, 32, .92); border: 1px solid #353a48; font-size: 12.5px; color: #b3b6c6;
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; transform: translateY(-8px); transition: opacity .3s ease, transform .3s ease;
}
.demo-toast b { color: #fff; font-size: 13.5px; }
.demo-toast.show { opacity: 1; transform: none; }

.promises { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .promises { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .promises { grid-template-columns: 1fr; } }
.promises li { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.promises .ok {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 10px;
  background: rgba(40, 170, 110, .12); color: #1f8a57; font-weight: 700;
}
.promises b { font-size: 1.05rem; font-weight: 700; }
.promises span:last-child { font-size: 14.5px; color: var(--muted); }

.give-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .give-steps { grid-template-columns: 1fr; } }
.give-steps li { padding: 26px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.give-steps .n {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ribbon); color: #fff; font-weight: 750;
}
.give-steps h3 { margin-top: 16px; font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; }
.give-steps p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* ---------------------------------------------------------------- choosing */

.choose-band { background: linear-gradient(180deg, #f7efe3, var(--bg)); }
.choose-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .choose-grid { grid-template-columns: minmax(0, 1fr); } .choose-grid .preview { order: -1; } }
.choose-form { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: 0 40px 80px -60px rgba(60, 40, 20, .5); }
.kinds { border: 0; margin: 0; padding: 0; }
#kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 520px) { #kinds { grid-template-columns: 1fr; } }
.kind {
  position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; border-radius: 16px; cursor: pointer;
  border: 2px solid var(--line); background: var(--surface-2); transition: border-color .15s ease, background .15s ease;
}
.kind:hover { border-color: #d6c8b4; }
.kind:has(input:checked) { border-color: var(--accent); background: rgba(98, 82, 240, .06); }
.kind:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.kind input { position: absolute; opacity: 0; pointer-events: none; }
.kind-tag {
  position: absolute; top: -11px; left: 14px; padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 650; color: #fff; background: var(--ribbon);
}
.kind-name { font-weight: 700; font-size: 1.02rem; letter-spacing: -0.01em; }
.kind-price { font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.kind-price small { margin-left: 6px; font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.kind-sub { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.gpromo { margin-top: 14px; padding: 10px 14px; border-radius: 12px; background: rgba(242, 180, 65, .18); font-size: 14px; color: #6a4a08; }
.gpromo[hidden] { display: none; }
.fields { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .fields { grid-template-columns: 1fr; } }
.fields label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.fields .wide { grid-column: 1 / -1; }
.opt { font-weight: 400; color: var(--dim); font-size: 12.5px; margin-left: 4px; }
.fields label:has(.opt) { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 0; }
.fields input, .fields textarea {
  flex-basis: 100%; margin-top: 6px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; font-weight: 400; resize: vertical;
}
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(98, 82, 240, .18); background: #fff; }
.fields textarea { min-height: 84px; }
#msgCount { margin-left: auto; }
#payBtn { width: 100%; margin-top: 24px; }
.pay-note { margin-top: 12px; font-size: 13.5px; color: var(--dim); text-align: center; }
.gmsg { margin-top: 10px; font-size: 14px; color: #b3261e; text-align: center; }
.gmsg:empty { display: none; }
.preview { position: sticky; top: 90px; }
.preview-cap { margin-top: 16px; font-size: 13px; color: var(--dim); text-align: center; }

.mine { margin-top: 44px; padding: 22px 24px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.mine[hidden] { display: none; }
.mine h3 { font-size: 1rem; font-weight: 700; }
.mine ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.mine li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.mine small { color: var(--dim); font-family: var(--mono); font-size: 12.5px; }

/* ---------------------------------------------------------------- the rest */

.giftpage .faq { border-top-color: var(--line); }
.giftpage .faq details { border-bottom-color: var(--line); }
.giftpage .faq summary::after { border-color: var(--line); color: var(--accent); }
.giftpage .faq summary:hover { color: var(--accent); }
.giftpage .faq details p { font-size: 16px; }

.gfinal { text-align: center; padding: 110px 0; background: radial-gradient(60% 80% at 50% 50%, rgba(242, 180, 65, .22), transparent 70%); }
.gfinal h2 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 800; }
.gfinal p { margin-top: 16px; color: var(--muted); font-size: 1.12rem; }
.gfinal .btn { margin-top: 30px; }
.giftpage footer { border-top-color: var(--line-soft); color: var(--dim); }
.giftpage footer a { color: var(--muted); }

/* ---------------------------------------------------------------- after paying */

.ready { padding: 64px 0 72px; background: linear-gradient(180deg, #f3ebff, var(--bg)); border-bottom: 1px solid var(--line-soft); }
.ready[hidden] { display: none; }
.ready .eyebrow { color: #1f8a57; }
.ready-grid { display: none; }
.ready.done .ready-grid { display: grid; }
.ready.done .ready-wait { display: none; }
.ready-wait { text-align: center; font-size: 1.1rem; color: var(--muted); padding: 40px 0; }
.ready-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px; }
.ready-note { margin-top: 16px; font-size: 14px; color: var(--dim); }

.print-sheet { display: none; }
@media print {
  @page { margin: 16mm; }
  body.giftpage { background: #fff; }
  body.giftpage > *:not(.print-sheet) { display: none !important; }
  .giftpage::before { display: none; }
  .print-sheet { display: block; }
  .print-sheet .gcard { --w: 150mm; box-shadow: none; margin: 0 auto; }
  .print-how { width: 150mm; margin: 12mm auto 0; color: #1f1b2d; }
  .print-how h3 { font-size: 16pt; }
  .print-how ol { margin: 4mm 0 0; padding-left: 6mm; font-size: 12pt; line-height: 1.7; }
}
