/* Gift cards page (9 Nov 2026). The card fills in as you type, turns over for the message,
   and seals when it goes in the basket. Motion lives under .mo (set by motion.js), so reduced motion gets none. */

/* Hero: a YouBeChef dinner at home */
.gcx-hero { position: relative; min-height: min(74vh, 640px); display: flex; align-items: flex-end; color: #fff; background: var(--ink); overflow: hidden; }
.gcx-hero__img, .gcx-hero__img picture, .gcx-hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcx-hero__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(36, 37, 28, .86) 0%, rgba(36, 37, 28, .62) 42%, rgba(36, 37, 28, .08) 78%); }
.gcx-hero__copy { position: relative; width: 100%; padding-top: 72px; padding-bottom: 64px; }
.gcx-hero__copy > * { max-width: 600px; }
.gcx-kicker { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font: 600 14px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; }
.gcx-kicker .fd { width: 26px; height: 26px; }
.gcx-hero h1 { color: #fff; font-size: clamp(46px, 6.4vw, 88px); }
.gcx-hero h1 .s { font-size: 1.1em; margin-left: .05em; }
.gcx-lede { margin: 20px 0 0; font-size: 18.5px; line-height: 1.55; font-style: italic; color: rgba(255, 255, 255, .92); }
.gcx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }
.gcx-link { color: #fff; font: 600 16px/1.2 var(--head); letter-spacing: .04em; text-transform: uppercase; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.gcx-link:hover { color: var(--sand); }
.gcx-xmas { margin: 26px 0 0; padding: 12px 0 0 16px; border-left: 3px solid var(--orange); font-size: 15.5px; line-height: 1.5; color: rgba(255, 255, 255, .88); }
.gcx-xmas b { color: #fff; }

/* Make: card beside the form */
.gcx-make { position: relative; background: var(--sand); padding: clamp(56px, 7vw, 104px) 0; scroll-margin-top: 70px; }
.gcx-make__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 96px); }
.gcx-sticky { position: sticky; top: 100px; }
.gcx-stage { padding: 40px 30px 0 10px; }
.gcx-formcol h2 { font-size: clamp(40px, 4.4vw, 60px); }
.gcx-sub { margin: 14px 0 6px; font-style: italic; font-size: 17.5px; color: var(--ink-2); }
.gcx-form { margin-top: 18px; background: #fff; padding: clamp(20px, 3vw, 34px); box-shadow: 0 24px 50px -36px rgba(60, 60, 40, .5); }
.gcx-form fieldset { border: 0; padding: 0; margin: 0; }
.gcx-form legend.field { margin: 0; padding: 0; }
.gcx-form .ybc-amounts { gap: 8px; }
.gcx-form .ybc-amounts span { min-width: 70px; height: 48px; transition: background .2s, color .2s, transform .2s; }
.gcx-form .ybc-amounts label:hover span { transform: translateY(-2px); }
.gcx-form .ybc-amounts input:checked + span { background: var(--orange); border-color: var(--orange); color: #fff; }
.gcx-covers { margin: 14px 0 4px; padding-left: 12px; border-left: 3px solid var(--orange); font-size: 15.5px; line-height: 1.45; font-style: italic; min-height: 2.9em; display: flex; align-items: center; }
.gcx-count { display: block; text-align: right; font-weight: 400; color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.gcx-form .gc-when { display: grid; margin-top: 6px; }
.gcx-form .gc-when [hidden] { display: none !important; }
.gcx-total { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--rule); }
.gcx-total p { margin: 0; display: grid; }
.gcx-total p span { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.gcx-total p b { font: 700 32px/1 var(--head); }
.gcx-total .btn { flex: 1; max-width: 300px; }
.gcx-small { margin: 14px 0 0; font-size: 14px; color: var(--ink-2); }

.gcx-how { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 0; }
.gcx-how li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--rule); }
.gcx-how span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--orange); font: 700 15px/1 var(--head); color: var(--orange); }
.gcx-how p { margin: 0; font-style: italic; font-size: 15.5px; }

/* The card */
.gcx-card { position: relative; display: block; width: 100%; max-width: 560px; margin: 0 auto; aspect-ratio: 1.6; perspective: 1400px; cursor: pointer; outline: none; --gx: 30%; --gy: 20%; }
.gcx-card:focus-visible .gcx-tilt { outline: 3px solid var(--orange); outline-offset: 8px; }
.gcx-tilt { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotate(-3deg) rotateX(var(--rx, 0deg)) rotateY(calc(var(--ry, 0deg) + var(--flip, 0deg))); transition: transform .8s cubic-bezier(.3, 1.3, .4, 1); }
.gcx-card.is-flipped { --flip: 180deg; }
.gcx-face { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden; box-shadow: 0 40px 60px -36px rgba(110, 55, 0, .55), 0 2px 6px rgba(0, 0, 0, .08); }
.gcx-front { background: var(--orange); color: #fff; padding: 7% 7.5%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto auto; }
.gcx-front .ybc-logo { width: clamp(84px, 24%, 128px); background: #fff; justify-self: start; }
.gcx-back .ybc-logo { justify-self: end; }
.gcx-kind { justify-self: end; font: 600 12px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.gcx-for { grid-column: 1 / -1; grid-row: 3; align-self: end; justify-self: start; margin-bottom: .1em; font: 600 clamp(22px, 3vw, 34px)/1 var(--script); transform: rotate(-4deg); transform-origin: left bottom; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: .1em .1em .12em 0; }
.gcx-amt { grid-column: 1 / -1; grid-row: 4; align-self: end; justify-self: end; display: flex; align-items: flex-start; font: 800 clamp(64px, 9vw, 116px)/.8 var(--head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.gcx-amt small { font-size: .45em; margin: .06em .04em 0 0; }
.gcx-sheen { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 45%); mix-blend-mode: soft-light; }
.gcx-back { transform: rotateY(180deg); background: #fffdf5; color: var(--ink); padding: 6.5% 7.5%; display: grid; grid-template-rows: auto 1fr auto auto; gap: 6px; background-image: repeating-linear-gradient(transparent 0 31px, rgba(84, 85, 69, .09) 31px 32px); }
.gcx-back__top { display: flex; justify-content: space-between; align-items: center; font: 600 12px/1 var(--head); letter-spacing: .18em; text-transform: uppercase; color: var(--orange); }
.gcx-back .ybc-logo { width: 64px; }
.gcx-msg { margin: 6px 0 0; font: 600 clamp(19px, 2.3vw, 26px)/1.22 var(--script); color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.gcx-msg.is-set { color: var(--ink); }
.gcx-to { font-size: 15px; } .gcx-to b { font: 700 12px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-right: 6px; }
.gcx-code { display: flex; align-items: center; gap: 12px; width: 68%; background: var(--sand); padding: 9px 12px; }
.gcx-code small { font: 600 11px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.gcx-code b { font-weight: 600; font-size: 13.5px; font-style: italic; color: var(--ink-2); }
.gcx-stamp { position: absolute; right: 6%; bottom: 8%; width: 92px; height: 92px; border-radius: 50%; border: 2px solid var(--orange); outline: 1px dashed var(--orange); outline-offset: -8px; color: var(--orange); display: grid; place-content: center; text-align: center; transform: rotate(12deg); opacity: .9; }
.gcx-stamp i { font: 600 10px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; font-style: normal; }
.gcx-stamp b { font: 700 15px/1.1 var(--head); margin-top: 4px; max-width: 76px; }
.gcx-star { position: absolute; right: -26px; top: -34px; width: 72px; height: 72px; color: var(--orange); }
.gcx-added { position: absolute; left: 50%; top: -18px; transform: translate(-50%, 0); background: var(--ink); color: #fff; font: 700 13px/1 var(--head); letter-spacing: .12em; text-transform: uppercase; padding: 10px 14px; opacity: 0; pointer-events: none; z-index: 3; }
.gcx-added::before { content: "✓ "; color: var(--orange); }
.gcx-card.is-added .gcx-added { opacity: 1; }
.gcx-hint { margin: 26px 0 0; text-align: center; font: 600 22px/1 var(--script); color: var(--ink-2); }

/* Letters written in, the postmark, the card arriving */
.gcx-ch { display: inline-block; white-space: pre; }
.gcx-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 4; }
.gcx-burst .fd { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; color: var(--orange); }

/* Phone: mini card that follows the form */
.gcx-mini { position: fixed; right: 14px; bottom: 14px; z-index: 40; display: grid; align-content: end; justify-items: end; width: 118px; height: 74px; padding: 8px 10px; border: 0; background: var(--orange); color: #fff; transform: rotate(-4deg); box-shadow: 0 16px 30px -14px rgba(110, 55, 0, .7); cursor: pointer; text-align: right; }
.gcx-mini[hidden] { display: none; }
.gcx-mini__amt { font: 800 28px/1 var(--head); }
.gcx-mini__to { font: 600 15px/1 var(--script); max-width: 100px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* What they can choose */
.gcx-menus { padding: clamp(56px, 7vw, 100px) 0; background: var(--ink); color: #fff; }
.gcx-menus__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 40px; margin-bottom: 34px; }
.gcx-menus__head h2 { color: #fff; font-size: clamp(38px, 4.4vw, 60px); }
.gcx-menus__head p { margin: 0; max-width: 420px; font-style: italic; color: rgba(255, 255, 255, .85); }
.gcx-menus__rail { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.gcx-menus__rail a { display: grid; gap: 6px; color: #fff; text-decoration: none; }
.gcx-menus__rail figure { margin: 0 0 8px; aspect-ratio: 4 / 5; overflow: hidden; background: #45463a; }
.gcx-menus__rail img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.gcx-menus__rail a:hover img { transform: scale(1.05); }
.gcx-menus__rail i { font: 600 12px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; font-style: normal; color: var(--lichen); }
.gcx-menus__rail strong { font: 600 24px/1 var(--head); text-transform: uppercase; }
.gcx-menus__rail span { font-size: 15.5px; color: rgba(255, 255, 255, .85); }

@media (max-width: 900px) {
  .gcx-hero { min-height: auto; }
  .gcx-hero__shade { background: linear-gradient(to top, rgba(36, 37, 28, .9) 0%, rgba(36, 37, 28, .7) 55%, rgba(36, 37, 28, .25) 100%); }
  .gcx-hero__copy { padding-top: 120px; padding-bottom: 36px; }
  .gcx-hero h1 { font-size: 44px; }
  .gcx-lede { font-size: 16.5px; margin-top: 14px; }
  .gcx-actions { margin-top: 22px; }
  .gcx-actions .btn { width: 100%; }
  .gcx-xmas { font-size: 15px; margin-top: 20px; }
  .gcx-make { padding: 40px 0 48px; }
  .gcx-make__grid { display: flex; flex-direction: column; }
  .gcx-side, .gcx-sticky { display: contents; }
  .gcx-stage { order: 2; position: static; padding: 26px 18px 0 6px; }
  .gcx-formcol { order: 1; display: contents; }
  .gcx-formcol h2 { order: 1; font-size: 34px; }
  .gcx-sub { order: 1; font-size: 16px; margin-bottom: 0; }
  .gcx-form { order: 3; margin: 22px calc(-1 * var(--g)) 0; padding: 22px var(--g); box-shadow: none; }
  .gcx-how { order: 4; margin-top: 28px; }
  .gcx-card { max-width: 380px; }
  .gcx-star { width: 52px; height: 52px; right: -14px; top: -24px; }
  .gcx-hint { font-size: 19px; margin-top: 16px; }
  .gcx-stamp { width: 70px; height: 70px; bottom: 7%; }
  .gcx-stamp b { max-width: 60px; }
  .gcx-code { width: 66%; gap: 6px; padding: 6px 8px; white-space: nowrap; }
  .gcx-code small { font-size: 9.5px; }
  .gcx-back { padding: 5.5% 6.5%; gap: 2px; }
  .gcx-back .ybc-logo { width: 46px; }
  .gcx-back__top { font-size: 10.5px; }
  .gcx-msg { font-size: 18px; line-height: 1.18; margin-top: 4px; }
  .gcx-stamp b { font-size: 13px; }
  .gcx-back { gap: 4px; background-image: repeating-linear-gradient(transparent 0 25px, rgba(84, 85, 69, .09) 25px 26px); }
  .gcx-code { padding: 6px 10px; }
  .gcx-code b { font-size: 11px; }
  .gcx-to { font-size: 13.5px; }
  .gcx-total .btn { max-width: none; }
  .gcx-menus__rail { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 calc(-1 * var(--g)); padding: 0 var(--g) 6px; scrollbar-width: none; }
  .gcx-menus__rail::-webkit-scrollbar { display: none; }
  .gcx-menus__rail li { flex: 0 0 68%; scroll-snap-align: start; }
}

/* Motion (not for reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .mo .gcx-hero__img img { animation: gcx-drift 18s ease-out both; }
  .mo .gcx-stage .gcx-card { opacity: 0; transform: translateY(46px) rotate(-9deg) scale(.94); }
  .mo .gcx-stage.is-in .gcx-card { animation: gcx-deal 1s cubic-bezier(.2, 1.2, .35, 1) .1s forwards; }
  .mo .gcx-stage .gcx-star { transform: scale(0) rotate(-90deg); }
  .mo .gcx-stage.is-in .gcx-star { animation: gcx-star .6s cubic-bezier(.2, 1.5, .4, 1) .75s forwards; }
  .mo .gcx-stage.is-in .gcx-sheen { animation: gcx-sweep 1.4s ease .9s both; }
  .mo .gcx-card.is-bump .gcx-amt { animation: gcx-bump .5s cubic-bezier(.2, 1.5, .4, 1); }
  .mo .gcx-ch { animation: gcx-ink .42s cubic-bezier(.2, 1.3, .4, 1) both; }
  .mo .gcx-stamp.is-down { animation: gcx-stamp .5s cubic-bezier(.2, 1.4, .4, 1) .45s both; }
  .mo .gcx-card.is-added .gcx-tilt { animation: gcx-seal .8s cubic-bezier(.2, 1.3, .4, 1); }
  .mo .gcx-card.is-added .gcx-added { animation: gcx-pop .45s cubic-bezier(.2, 1.5, .4, 1) .25s both; }
  .mo .gcx-burst .fd { animation: gcx-fly 1.1s cubic-bezier(.15, .8, .3, 1) forwards; }
  .mo .gcx-hint { animation: gcx-nudge 3.2s ease-in-out 2.4s 2; }
  .mo .gcx-mini:not([hidden]) { animation: gcx-mini .4s cubic-bezier(.2, 1.4, .4, 1); }
}
@keyframes gcx-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes gcx-deal { to { opacity: 1; transform: none; } }
@keyframes gcx-star { to { transform: none; } }
@keyframes gcx-sweep { from { background-position: 0 0; --gx: -30%; --gy: 0%; opacity: 1; } 60% { opacity: 1; } to { --gx: 130%; --gy: 80%; } }
@keyframes gcx-bump { 0% { transform: scale(1); } 35% { transform: scale(1.1) rotate(-2deg); } 100% { transform: scale(1); } }
@keyframes gcx-ink { from { opacity: 0; transform: translateY(.35em) scale(.6) rotate(-8deg); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes gcx-stamp { 0% { opacity: 0; transform: scale(2.2) rotate(30deg); } 60% { opacity: .95; transform: scale(.92) rotate(10deg); } 100% { opacity: .9; transform: scale(1) rotate(12deg); } }
@keyframes gcx-seal { 0% { transform: rotate(-3deg); } 30% { transform: rotate(0deg) translateY(-14px) scale(1.05); } 100% { transform: rotate(-3deg); } }
@keyframes gcx-pop { from { opacity: 0; transform: translate(-50%, 10px) scale(.7); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes gcx-fly { 0% { opacity: 0; transform: translate(0, 0) scale(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(1); } }
@keyframes gcx-nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
@keyframes gcx-mini { from { opacity: 0; transform: translateY(30px) rotate(-12deg); } to { opacity: 1; transform: rotate(-4deg); } }
@property --gx { syntax: '<percentage>'; inherits: true; initial-value: 30%; }
@property --gy { syntax: '<percentage>'; inherits: true; initial-value: 20%; }

@media (prefers-reduced-motion: reduce) {
  .gcx-tilt { transition: none; }
}
