/* The gift pages (/gift/ and /gift/card/). Redesign for the gift ad campaign (Design, 2026-11-08): one felt
   table that holds the words, the live card and a paper slip to fill in; one paper band with three real
   cards; the success view as before, minus a band. On top of ../about/landing.css (tokens, fonts, .wrap,
   .felt, .paper, .btn, the header and footer). Prefix-free names are this page's own. */

/* ---------- small pieces the landing page does not have ---------- */
.g-kicker { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--marigold); margin-bottom: 10px; }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { box-shadow: inset 0 0 0 2px var(--ink), 0 8px 18px rgba(0, 0, 0, .12); }
.label { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; margin: 0 0 6px; }
.label .opt { font-weight: 400; color: var(--ink-soft); }
.hint { font-size: 14px; color: var(--ink-soft); line-height: 1.4; margin-top: 6px; }
.input { width: 100%; height: 56px; border-radius: 16px; border: 2px solid #CBD3CF; background: #fff; font: inherit; font-size: 18px; padding: 0 16px; color: var(--ink); transition: border-color .15s ease; }
.input:hover { border-color: #9FB0AC; }
.input:focus-visible { outline: 4px solid var(--marigold); outline-offset: 1px; border-color: var(--felt); }
.input::placeholder { color: #8C9797; }
.input[aria-invalid="true"] { border-color: var(--coral); }
textarea.input { height: auto; min-height: 76px; padding: 12px 16px; line-height: 1.45; resize: none; }
.counter { text-align: right; font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.fine { font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.err { font-size: 15px; line-height: 1.45; color: var(--coral); }
.status-box { background: #E4F0EC; border-radius: 16px; padding: 14px 16px; font-size: 16px; line-height: 1.45; margin-bottom: 22px; }
.status-box:focus { outline: none; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.4; }
.ticks li + li { margin-top: 8px; }
.tick { width: 22px; height: 22px; border-radius: 11px; background: var(--felt); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.tick svg { width: 14px; height: 14px; }

/* the top bar: on a phone the landing page hides it (its hero repeats the wordmark); this page has no
   second wordmark, so the bar stays. One quiet link; the page's one button is on the slip. */
@media (max-width: 699px) { .top { display: block; } .top-nav.g-nav { display: flex; } .top-nav.g-nav a:first-child { display: none; } }

/* ---------- the price (owner, 2026-11-12: $4.99, no struck price; shared markup with /about/): "$4.99, one time. No subscription. 14-day refund." ---------- */
.hp { display: block; }
.hp-p { line-height: 1.25; }
.hp-now { font-family: var(--display); font-weight: 600; font-size: 44px; color: var(--ink); letter-spacing: -.01em; }
.hp-once { font-size: 16px; color: var(--ink-soft); }
.hp-nb { white-space: nowrap; } /* "14-day refund." never breaks at its hyphen */

/* ---------- the table: words and the live card at the left, the slip at the right ---------- */
.g-table { padding: 40px 0 56px; }
.g-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.g-grid > * { min-width: 0; }
.g-table h1 { font-size: clamp(32px, 4.5vw, 44px); max-width: 16ch; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.g-table .lede { font-size: 18px; color: var(--on-felt-soft); margin-top: 14px; max-width: 52ch; }
.g-card { margin-top: 28px; }
.preview-l { font-size: 14px; color: var(--on-felt-soft); margin-top: 12px; text-align: center; }
/* the slip: a paper card to fill in */
.g-slip { background: var(--paper); color: var(--ink); border-radius: 24px; padding: 24px 20px 22px; box-shadow: 0 20px 40px rgba(0, 0, 0, .3); }
.field + .field { margin-top: 18px; }
.pay { margin-top: 22px; display: flex; flex-direction: column; gap: 14px; }
.pay .btn { width: 100%; font-size: 20px; white-space: normal; }
@media (min-width: 900px) {
  .g-table { padding: 56px 0 72px; }
  .g-grid { grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px); gap: 56px; align-items: start; }
  .g-slip { padding: 28px 28px 26px; }
  .g-card { margin-top: 36px; max-width: 620px; }
}
/* a phone (the gift ads land here): the slip first, so the whole button is on the first screen even inside
   Instagram's or Facebook's browser (390x664). The kicker and the heading, then the slip; the live card, its
   caption and the lede follow it. .g-words lets its children into the grid so they can be reordered: CSS only,
   the reading order in the HTML is unchanged. The iPad and the desktop keep the table as it was. */
@media (max-width: 699px) {
  .g-table { padding: 20px 0 44px; }
  .g-table .g-grid { gap: 0; }
  .g-words { display: contents; }
  .g-table .g-kicker { order: 1; margin-bottom: 6px; }
  .g-table h1 { order: 2; font-size: 28px; }
  .g-slip { order: 3; margin-top: 16px; padding: 18px 16px 18px; }
  .g-slip .field + .field { margin-top: 12px; }
  .g-slip .pay { margin-top: 14px; gap: 10px; }
  /* the note's counter rides on its label's line, and the note is 16px (still no zoom on focus in iOS Safari) */
  .g-slip .field { position: relative; }
  .g-slip .counter { position: absolute; top: 2px; right: 0; margin: 0; }
  .g-slip label[for="gift-note"] { padding-right: 52px; } /* the counter's room: the label wraps before it touches it */
  .g-slip textarea.input { font-size: 16px; min-height: 0; padding: 10px 14px; }
  .g-slip .hp-now { font-size: 36px; }
  .g-card { order: 4; margin-top: 32px; }
  .preview-l { order: 5; }
  .g-table .lede { order: 6; margin-top: 20px; }
}

/* the card arrives like a present set down on the table: once, gently */
@keyframes g-settle { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.g-card .gcard { animation: g-settle .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .g-card .gcard { animation: none; } }

/* ---------- what they'll open: three real cards and three lines ---------- */
.g-inside { padding: 48px 0 56px; text-align: center; }
.g-inside h2 { font-size: clamp(26px, 4vw, 36px); }
.g-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px auto 0; max-width: 900px; }
.g-cards li { background: #FCFBF2; border-radius: 18px; padding: 8px 8px 12px; box-shadow: var(--shadow-tile); }
.g-cards img { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; border-radius: 12px; background: #FCFBF2; }
.g-cards span { display: block; font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1.25; margin-top: 8px; text-wrap: balance; }
.g-ticks { max-width: 620px; margin: 28px auto 0; text-align: left; }
.g-try { margin-top: 24px; font-size: 17px; }
.g-try a { color: var(--felt); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
/* a small phone: three columns of ~90px, so "Tyrannosaurus" needs the smaller caption and the tighter frame
   (measured: 15px ran 2px out at 375 and 21px at 320; this leaves 10px and 4px) */
@media (max-width: 479px) {
  .g-cards { gap: 8px; }
  .g-cards li { padding: 6px 6px 10px; }
  .g-cards span { font-size: clamp(12px, 3.5vw, 15px); }
}
@media (min-width: 700px) {
  .g-inside { padding: 64px 0 72px; }
  .g-cards { gap: 20px; }
  .g-cards li { padding: 10px 10px 14px; }
  .g-cards span { font-size: 18px; margin-top: 10px; }
}

/* ---------- the success view (back from a paid Checkout) ---------- */
.g-hero { padding: 44px 0 52px; }
.g-hero h1 { font-size: clamp(32px, 4.5vw, 44px); max-width: 18ch; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.g-hero .lede { font-size: 19px; color: var(--on-felt-soft); margin-top: 14px; max-width: 56ch; }
.g-hero .lede b { color: var(--on-felt); font-weight: 700; }
.g-main { padding: 44px 0 56px; }
.g-main .g-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.g-main .g-card { margin-top: 0; }
@media (min-width: 900px) { .g-main .g-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.block + .block { margin-top: 24px; }
.copyrow { display: flex; align-items: stretch; gap: 8px; }
.copyrow .val { flex: 1; min-width: 0; min-height: 56px; border-radius: 16px; background: #fff; border: 2px solid #E6E8E4; display: flex; align-items: center; padding: 0 16px; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: .04em; color: var(--felt); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copyrow .val.link { font-family: var(--body); font-weight: 400; font-size: 16px; letter-spacing: 0; color: var(--ink); white-space: normal; overflow-wrap: anywhere; line-height: 1.35; padding: 10px 16px; }
.copyrow .btn { min-height: 56px; padding: 0 18px; border-radius: 16px; font-size: 16px; box-shadow: inset 0 0 0 2px var(--ink); }
.acts { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.acts .btn { flex: 1 1 200px; }
/* Send it first (2026-11-08, mock m04): the share sheet with the recipient page's link, then Copy the link and Print
   side by side. .acts.acts-2 outranks the phone rule that stacks .acts. */
.send { margin-top: 26px; display: grid; gap: 10px; }
.btn-send { width: 100%; min-height: 60px; font-size: 21px; gap: 10px; }
.btn-send svg { width: 24px; height: 24px; flex: none; }
.send-hint { margin: 0; }
.acts.acts-2 { margin-top: 14px; }
.acts.acts-2 .btn { flex: 1 1 140px; font-size: 17px; min-height: 56px; }
.sent { display: flex; gap: 12px; align-items: flex-start; background: #E4F0EC; border-radius: 16px; padding: 14px 16px; margin-top: 20px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.sent .tick { margin-top: 2px; }
.checking { font-family: var(--display); font-weight: 600; font-size: 22px; }
.checking-p { margin-top: 8px; font-size: 16px; color: var(--ink-soft); max-width: 56ch; }
.g-how { padding: 44px 0 52px; }
.g-how h2 { font-size: clamp(26px, 4vw, 30px); margin-bottom: 22px; text-shadow: 0 2px 0 rgba(0, 0, 0, .25); }
.how-grid { grid-template-columns: 1fr; gap: 18px; }
.g-safe { margin-top: 28px; font-size: 15px; line-height: 1.5; color: var(--on-felt-soft); max-width: 72ch; }
.g-safe b { color: var(--on-felt); font-weight: 700; }
@media (min-width: 900px) { .how-grid { grid-template-columns: 1fr 1fr 1fr; gap: 28px; } }
.steps { counter-reset: s; display: grid; gap: 14px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; }
.steps li::before { counter-increment: s; content: counter(s); flex-shrink: 0; width: 36px; height: 36px; border-radius: 18px; background: var(--marigold); color: var(--ink); font-family: var(--display); font-weight: 600; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.steps h3 { font-size: 18px; }
.steps p { font-size: 15px; color: var(--on-felt-soft); line-height: 1.45; margin-top: 2px; }

/* ---------- the gift card: one picture, drawn once and reused. 1em = 1px at 700px wide. ---------- */
.gcard-box { container-type: inline-size; width: 100%; }
.gcard { position: relative; width: 100%; aspect-ratio: 7 / 5; border-radius: 2.8em; overflow: hidden; background: var(--felt); color: var(--ink); box-shadow: 0 2.8em 6em rgba(0, 0, 0, .28); display: grid; grid-template-columns: 44% 56%; font-size: calc(100cqw / 700); }
.gcard-felt { position: relative; overflow: hidden; background-color: var(--felt); background-image: url("../about/img/felt.webp"); background-size: 320em auto; }
.gcard-fan { position: absolute; left: 50%; top: 54%; width: 0; height: 0; }
.gcard-fan .fc { position: absolute; width: 124em; height: 154em; margin: -77em 0 0 -62em; background: var(--paper); border-radius: 12em; padding: 8em; box-shadow: 0 10em 22em rgba(0, 0, 0, .35); transform-origin: 50% 120%; }
.gcard-fan .fc img { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; border-radius: 6em; }
.gcard-fan .fc span { display: block; font-family: var(--display); font-weight: 600; font-size: 11.5em; line-height: 1.15; margin-top: .55em; text-align: center; color: var(--ink); }
.gcard-fan .fc1 { transform: translate(-58em, 10em) rotate(-13deg); z-index: 1; }
.gcard-fan .fc2 { transform: translate(0, -4em) rotate(0deg); z-index: 3; }
.gcard-fan .fc3 { transform: translate(58em, 10em) rotate(13deg); z-index: 2; }
.gcard-ribbon { position: absolute; left: 0; right: 0; top: 7%; display: flex; justify-content: center; }
.gcard-ribbon span { font-family: var(--display); font-weight: 600; font-size: 13em; letter-spacing: .08em; text-transform: uppercase; color: var(--on-felt-soft); }
.gcard-paper { background: var(--paper); padding: 26em 28em 22em; display: flex; flex-direction: column; min-width: 0; }
.gcard-mark img { width: 128em; }
.gcard-h { font-family: var(--display); font-weight: 600; font-size: 30em; line-height: 1.1; margin-top: .5em; color: var(--ink); }
.gcard-from { font-family: var(--body); font-size: 15em; margin-top: .7em; color: var(--ink); overflow-wrap: anywhere; }
.gcard-from b { font-weight: 700; }
.gcard-note { font-family: var(--body); font-size: 14.5em; font-style: italic; line-height: 1.4; margin-top: .5em; color: var(--ink); overflow-wrap: anywhere; }
.gcard-rule { border-top: 1.5em dashed var(--rule); margin: 16em 0 12em; }
.gcard-code-l { font-family: var(--display); font-weight: 600; font-size: 11em; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.gcard-code { font-family: var(--display); font-weight: 600; font-size: 30em; letter-spacing: .06em; color: var(--felt); line-height: 1.1; margin-top: .1em; white-space: nowrap; }
.gcard-open { font-family: var(--body); font-size: 13.5em; line-height: 1.4; margin-top: .6em; color: var(--ink); }
.gcard-open b { font-weight: 700; }
.gcard-foot { margin-top: auto; font-family: var(--body); font-size: 11.5em; line-height: 1.4; color: var(--ink-soft); padding-top: 1em; }

/* ---------- the printable page ---------- */
.card-page { background: var(--paper-2); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0; }
.bar p { font-size: 15px; color: var(--ink-soft); max-width: 60ch; }
.bar .acts { display: flex; gap: 10px; margin-top: 0; }
.bar .acts .btn { flex: 0 0 auto; }
.sheet { padding: 8px 0 40px; }
.card-box { width: min(100%, 840px); margin: 0 auto; }
.cut { margin: 12px auto 0; width: min(100%, 840px); font-size: 14px; color: var(--ink-soft); text-align: center; }
.opened { margin: 0 auto 12px; width: min(100%, 840px); font-size: 16px; text-align: center; font-family: var(--display); font-weight: 600; color: var(--felt); }
.inactive { padding: 48px 0; text-align: center; font-family: var(--display); font-weight: 600; font-size: 24px; }
.inactive-p { margin: 8px auto 0; max-width: 46ch; font-family: var(--body); font-weight: 400; font-size: 16px; color: var(--ink-soft); }

@media (max-width: 899px) {
  .acts .btn { flex-basis: 100%; }
}
@media (max-width: 399px) {
  .copyrow .val { font-size: 17px; padding: 0 12px; }
  .copyrow .val.link { font-size: 14px; }
  .hp-now { font-size: 40px; }
}

@media print {
  @page { size: letter landscape; margin: 0.5in; }
  body, .card-page { background: #fff; }
  .bar, .cut, .opened, .top, .foot { display: none !important; }
  .wrap { padding: 0; max-width: none; }
  .sheet { padding: 0; }
  .card-box { width: 7in; margin: 0; }
  .gcard { box-shadow: none; outline: 1px dashed #B9B2A3; border-radius: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; animation: none; }
}

/* ---------- the whole library: the landing page's shelf (../about/landing.css .shelf, .journals, .asks), under the
   table, so a buyer sees the gift is every subject, not the few cards on it. Its pictures are lazy: it is below the
   first screen. It ends with the way back up to the slip. ---------- */
.g-shelf { padding-top: 8px; }
.theme-diwali .g-shelf { padding-top: 48px; } /* the rangoli band and the glow already part it from the table */
/* a link, not a second button (the buying view keeps one button, on the slip: grownups/giftPage.test.ts); 56 px
   tall to tap, the house size */
.g-shelf-give { margin-top: 28px; }
.g-shelf-give a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 8px;
  font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--marigold); text-decoration: none;
}
.g-shelf-give a span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.g-shelf-give a::after { content: "\2191"; content: "\2191" / ""; } /* an up arrow, not underlined: it goes back up */
.g-shelf-give a:hover { color: #FFD27A; }
.g-shelf-give a:focus-visible { outline: 4px solid var(--marigold); outline-offset: 2px; border-radius: 8px; }
#gift-form { scroll-margin-top: 16px; }
