/* Gift finder (F3): an app-like flow on the store's tokens. Motion stays under 350 ms and switches off with reduced motion. */
.gf { --gf-box: #d9c6a6; --gf-lid: #c8b08a; --gf-ribbon: var(--sage); --ease: cubic-bezier(.2, .8, .2, 1);
  padding: 0 0 72px; min-height: calc(100svh - 120px); }
.gf-top, .gf-screen:not(.gl) { max-width: 1080px; margin-inline: auto; padding-inline: 16px; }

/* top bar: back, progress, step */
.gf-top { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px;
  padding: 12px 0; background: linear-gradient(var(--bg) 70%, transparent); }
.gf-top[hidden] { display: none; }
.gf-back { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); display: grid; place-items: center; cursor: pointer; }
.gf-back svg { width: 20px; height: 20px; }
.gf-back[hidden] { visibility: hidden; display: grid; }
.gf-track { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.gf-fill { display: block; height: 100%; width: 0; background: var(--sage); border-radius: inherit; transition: width .35s var(--ease); }
.gf-count { font-size: 13px; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }

/* screens slide in from the side they come from */
.gf-stage { position: relative; }
.gf-screen { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); transition: opacity .3s var(--ease), transform .32s var(--ease); }
.gf-screen.is-on { opacity: 1; transform: none; }
.gf-screen.is-off { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateX(calc(var(--dir, 1) * -28px)); pointer-events: none; }
.gf-screen[hidden] { display: none; }
.gf-screen > h2 { text-align: center; margin: 24px auto 32px; max-width: 18ch; }

/* headings take focus only so screen readers follow the new screen */
.gf h1:focus, .gf h2:focus, .gf h3:focus { outline: none; }

.gf-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.gf-points li { display: flex; gap: 10px; align-items: center; font-size: 15px; }
.gf-points svg { width: 18px; height: 18px; color: var(--sage); flex: none; }
.gf-teaser { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--r); background: var(--ok-bg); color: var(--ok); font-size: 15px; margin-bottom: 24px; }
.gf-teaser svg { width: 20px; height: 20px; flex: none; }
.gf-start { min-width: 280px; justify-content: space-between; gap: 24px; }
.gf-time { font-size: 13px; opacity: .8; font-weight: 400; }
.gf-xmas { margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.gf-resume { margin-bottom: 16px; }
.gf-resume-btn { border: 1px dashed var(--sage); background: transparent; color: var(--sage); border-radius: 999px; padding: 10px 16px; cursor: pointer; font-weight: 600; }

/* options: photo cards for the first three questions, swatches and price cards for the last two */
.gf-opts { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; margin: 0 auto; }
.gf-opts:not(.photos) { grid-template-columns: 1fr; max-width: 520px; }
.gf-opt { position: relative; display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; min-height: 64px; border-radius: var(--r);
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .18s var(--ease); }
.gf-opt.has-ph { flex-direction: column; align-items: stretch; padding: 0; overflow: hidden; gap: 0; }
.gf-ph { display: block; aspect-ratio: 1; overflow: hidden; background: var(--line); }
.gf-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gf-lb { display: grid; gap: 2px; padding: 0; }
.gf-opt.has-ph .gf-lb { padding: 12px 14px 14px; }
.gf-lb b { font-weight: 600; font-size: 16px; line-height: 1.3; }
.gf-lb small { color: var(--ink-2); font-size: 13px; line-height: 1.35; }
.gf-opt kbd { position: absolute; top: 10px; right: 10px; font: 600 11px/1 var(--sans); color: var(--ink-3); background: rgba(251, 248, 243, .85); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; }
.gf-opt:not(.has-ph) kbd { position: static; margin-left: auto; }
@media (hover: hover) and (pointer: fine) { .gf-opt:hover { border-color: var(--sage-2); } }
@media (hover: hover) and (pointer: fine) { .gf-opt:hover .gf-ph img { transform: scale(1.04); } }
.gf-opt:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.gf-opt[aria-pressed="true"] { border-color: var(--sage); box-shadow: 0 0 0 3px rgba(85, 103, 79, .18); }
.gf-opt.tap { transform: scale(.97); }
.gf-sw { display: flex; flex: none; }
.gf-sw i { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--line); margin-left: -8px; }
.gf-sw i:first-child { margin-left: 0; }
.gf-num { flex: none; width: 52px; height: 36px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-weight: 700; color: var(--clay); letter-spacing: .04em; }

/* thinking: the parcel lid lifts */
.gf-think { display: grid; justify-items: center; gap: 16px; padding: 72px 0; text-align: center; color: var(--ink-2); }
.gf-parcel { width: 140px; height: 140px; }
.gf-lid { transform-origin: 60px 56px; animation: gf-lid 1.1s var(--ease) infinite alternate; }
.gf-spark circle { fill: var(--clay); opacity: 0; animation: gf-spark 1.1s ease-in-out infinite alternate; }
.gf-spark circle:nth-child(2) { animation-delay: .2s; }
.gf-spark circle:nth-child(3) { animation-delay: .4s; }
@keyframes gf-lid { to { transform: translateY(-14px) rotate(-6deg); } }
@keyframes gf-spark { to { opacity: 1; transform: translateY(-4px); } }

/* result */
.gf-result #gf-result { display: grid; gap: 32px; max-width: 1000px; margin: 8px auto 0; }
.gf-card { display: grid; gap: 16px; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.gf-card.big { grid-template-columns: 1fr; animation: gf-reveal .5s var(--ease) both; }
.gf-card.big .gf-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gf-info { padding: 0 20px 20px; display: grid; gap: 8px; align-content: start; }
.gf-card.big .gf-info { padding: 4px 24px 24px; }
.gf-card.big h3 { font-size: clamp(28px, 4vw, 40px); }
.gf-meta { color: var(--ink-2); font-size: 14px; }
.gf-parts { font-size: 14px; color: var(--ink-2); }
.gf-price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.gf-price b { font-size: 20px; }
.gf-card.big .gf-price b { font-size: 30px; font-family: var(--serif); font-weight: 500; }
.gf-off { font-size: 13px; font-weight: 700; color: var(--ok); background: var(--ok-bg); border-radius: 99px; padding: 3px 10px; }
.gf-held { border-radius: var(--r); background: var(--ok-bg); color: var(--ok); padding: 12px 14px; display: grid; gap: 8px; }
.gf-held p { font-weight: 600; font-size: 15px; }
.gf-held b { font-variant-numeric: tabular-nums; }
.gf-held small { font-size: 13px; color: var(--ink-2); }
.gf-bar { height: 4px; border-radius: 99px; background: rgba(63, 107, 74, .18); overflow: hidden; }
.gf-bar i { display: block; height: 100%; background: var(--ok); border-radius: inherit; transition: width 1s linear; }
.gf-ended { border-radius: var(--r); background: var(--bg); color: var(--ink-2); padding: 12px 14px; font-size: 14px; }
.gf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }
.gf-card.big .gf-actions .btn { flex: 1 1 220px; }
.gf-link { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 15px; }
.gf-why h4, .gf-others h4 { font: 600 12px/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin: 0 0 12px; }
.gf-why ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gf-why li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; animation: gf-reveal .4s var(--ease) both; animation-delay: calc(.25s + var(--i) * .12s); }
.gf-why svg { width: 20px; height: 20px; color: var(--sage); flex: none; margin-top: 3px; }
.gf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gf-row .gf-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gf-row h3 { font-size: 17px; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.gf-row .gf-info { padding: 0 14px 14px; }
.gf-again { text-align: center; }
@keyframes gf-reveal { from { opacity: 0; transform: translateY(14px) scale(.985); } }

@media (min-width: 900px) {
  .gf { padding-top: 32px; }
  .gf-opts.photos.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gf-opts.photos.n5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gf-card.big { grid-template-columns: 1.1fr 1fr; align-items: center; }
  .gf-card.big .gf-info { padding: 32px; }
  .gf-why { padding: 0 8px; }
}
@media (max-width: 899px) {
  .gf-points { gap: 4px; margin-bottom: 16px; }
  .gf-points li { font-size: 14px; }
  .gf-teaser { margin-bottom: 16px; padding: 10px 14px; font-size: 14px; }
  .gf-opts.photos.n5 .gf-opt:last-child { grid-column: 1 / -1; }
  .gf-opts.photos.n5 .gf-opt:last-child .gf-ph { aspect-ratio: 2 / 1; }
}
@media (max-width: 420px) {
  .gf-opt kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gf *, .gf *::before, .gf *::after { animation: none !important; transition: none !important; }
  .gf-screen, .gf-screen.is-off { transform: none; }
}

/* Gift shop landing (screen 0 of the flow): hero, finder block, gift guide, delivery dates, collections, questions */
.gl { --gl-max: 1240px; }
.gl > section, .gl > .trust { max-width: var(--gl-max); margin-inline: auto; padding-inline: 24px; }
.gl-hero { position: relative; min-height: min(80svh, 760px); display: grid; align-items: center; overflow: hidden; }
.gl-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 50%; }
.gl-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--bg-rgb, 245, 239, 231), .96) 0%, rgba(var(--bg-rgb, 245, 239, 231), .86) 34%, rgba(var(--bg-rgb, 245, 239, 231), 0) 64%); }
.gl-hero-copy { position: relative; z-index: 1; max-width: 600px; padding: 72px 24px; margin-left: max(0px, calc((100vw - 1240px) / 2)); }
.gl-hero-copy h1 { font-size: clamp(40px, 5.4vw, 72px); margin-bottom: 16px; }
.gl-hero-copy .lede { color: var(--ink-2); font-size: 18px; max-width: 46ch; }
.gl-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.gf-xmas { display: flex; gap: 8px; align-items: center; }
.gf-xmas svg, .gl-delivery svg, .gl-reward svg { width: 18px; height: 18px; flex: none; color: var(--sage); }
.gl-finder { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; margin-block: 88px; }
.gl-finder-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
.gl-finder-copy h2 { margin-bottom: 14px; }
.gl-finder-copy .lede { color: var(--ink-2); margin-bottom: 22px; max-width: 52ch; }
.gl-reward { color: var(--ok); font-weight: 600; }
.gl-guide { margin-bottom: 56px; }
.gl-guide h2 { margin-bottom: 24px; }
.gl-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gl-tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r-lg); color: #fff; text-decoration: none; background: var(--line); }
.gl-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .gl-tile:hover img { transform: scale(1.04); } }
.gl-tile-t { position: absolute; inset: auto 0 0; display: grid; gap: 4px; padding: 56px 20px 20px; background: linear-gradient(transparent, rgba(30, 24, 18, .78)); }
.gl-tile-t b { font: 500 23px/1.15 var(--serif); }
.gl-tile-t small { font-size: 14px; opacity: .92; }
.gl-delivery { margin-bottom: 72px; }
.gl-delivery h2 { font-size: 26px; margin-bottom: 14px; }
.gl-delivery ul { list-style: none; margin: 0; padding: 20px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; background: var(--paper); border-radius: var(--r-lg); }
.gl-delivery li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.gl-col { margin-bottom: 72px; scroll-margin-top: 88px; }
.gl-col-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.gl-faq { max-width: 860px !important; margin-bottom: 64px; }
.gl-faq h2 { margin-bottom: 16px; }
.gl-faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.gl-faq summary { cursor: pointer; font-size: 18px; font-weight: 600; }
.gl-faq details p { margin-top: 10px; color: var(--ink-2); }
/* the main call to action: big, warm, a soft shine every few seconds; the mini one follows on scroll */
.gl-cta { position: relative; display: inline-flex; align-items: center; gap: 14px; min-height: 68px; padding: 10px 22px 10px 12px; border: 0; border-radius: 999px;
  background: var(--sage); color: #fff; cursor: pointer; text-align: left; overflow: hidden; box-shadow: 0 16px 34px -16px rgba(42, 52, 38, .65); transition: transform .18s var(--ease), box-shadow .18s, background .18s; }
@media (hover: hover) and (pointer: fine) { .gl-cta:hover { background: var(--sage-2); transform: translateY(-2px); box-shadow: 0 20px 38px -16px rgba(42, 52, 38, .7); } }
.gl-cta:active { transform: translateY(0) scale(.99); }
.gl-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%); transform: translateX(-120%); animation: gl-shine 4.5s 1.2s ease-in-out infinite; pointer-events: none; }
@keyframes gl-shine { 0%, 62% { transform: translateX(-120%); } 82%, 100% { transform: translateX(120%); } }
.gl-cta-ic { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.gl-cta-ic svg { width: 24px; height: 24px; }
.gl-cta-t { display: grid; gap: 2px; }
.gl-cta-t b { font-size: 18px; font-weight: 650; line-height: 1.2; }
.gl-cta-t small { font-size: 13px; opacity: .85; }
.gl-off { flex: none; font-size: 13px; font-weight: 700; color: var(--sage); background: #fff; border-radius: 999px; padding: 4px 10px; }
.gl-cta-go { margin-left: 6px; font-size: 20px; transition: transform .18s var(--ease); }
@media (hover: hover) and (pointer: fine) { .gl-cta:hover .gl-cta-go { transform: translateX(4px); } }
.gl-more { display: inline-flex; align-items: center; min-height: 48px; color: var(--ink); text-underline-offset: 4px; font-weight: 600; }
.gl-ctas { align-items: center; gap: 12px 24px; }
.gl-float { position: fixed; z-index: 30; right: 24px; bottom: 24px; opacity: 0; transform: translateY(24px) scale(.96); pointer-events: none; transition: opacity .25s, transform .3s var(--ease); }
.gl-float.show { opacity: 1; transform: none; pointer-events: auto; }
.gl-float-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: var(--sage); color: #fff; font-size: 15px; cursor: pointer; box-shadow: 0 18px 36px -14px rgba(42, 36, 32, .55); }
.gl-float-btn .gl-cta-ic { width: 44px; height: 44px; }
@media (hover: hover) and (pointer: fine) { .gl-float-btn:hover { background: var(--sage-2); } }
body:has(.gf[data-at]:not([data-at="intro"])) .gl-float { display: none; }
@media (max-width: 899px) {
  .gl > section, .gl > .trust { padding-inline: 16px; }
  .gl-hero { display: block; min-height: 0; }
  .gl-hero-img { position: relative; height: 44svh; min-height: 260px; }
  .gl-hero::after { display: none; }
  .gl-hero-copy { padding: 24px 16px 8px; margin: 0; }
  .gl-hero-copy h1 { font-size: 36px; }
  .gl-hero-copy .lede { font-size: 16px; }
  .gl-cta { width: 100%; }
  .gl-more { width: 100%; justify-content: center; }
  .gl-finder { grid-template-columns: 1fr; gap: 24px; margin-block: 48px; }
  .gl-finder-img img { aspect-ratio: 16 / 11; }
  .gf-start { width: 100%; min-width: 0; }
  .gl-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gl-tile-t { padding: 40px 12px 12px; }
  .gl-tile-t b { font-size: 17px; }
  .gl-tile-t small { display: none; }
  .gl-delivery ul { grid-template-columns: 1fr; }
  .gl-float { left: 12px; right: 12px; bottom: 12px; }
  .gl-float-btn { width: 100%; justify-content: flex-start; }
  .gl-float-btn > span:last-child { margin-left: auto; }
}
/* The gift page runs edge to edge; its sections set their own width */
#main:has(> .gf) { max-width: none; padding: 0; margin: 0; }
