/* =============================================================================
   Not a Bot — Game Store (/shop)
   Bespoke design system. Warm, rounded, parent-friendly, kid-delightful.
   Palette: teal / sun-yellow / plum / mint on a cool mint-white paper,
   dark-navy ink. Two self-hosted families: Montserrat Alternates (display voice)
   + Nunito (reading voice).
   ========================================================================== */

/* ---- Self-hosted fonts (shared with the marketing site) ------------------ */
@font-face {
  font-family: "Montserrat Alternates";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/vendor/fonts/montserrat-700.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat Alternates";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("/vendor/fonts/montserrat-900.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/vendor/fonts/Nunito-Regular.woff2") format("woff2");
}
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/vendor/fonts/Nunito-SemiBold.woff2") format("woff2");
}

/* ---- Tokens -------------------------------------------------------------- */
:root {
  --ink: #1b2a4a;
  --ink-soft: #4a577a;
  --teal: #1f7a72;
  --teal-deep: #12554f;
  --teal-ink: #0d3f3a;
  --sun: #ffcf33;
  --sun-deep: #f2a900;
  --plum: #6d2450;
  --plum-soft: #8a3568;
  --mint: #d6f0e6;
  --mint-2: #bfe7d6;
  --cyan: #2aa5cb;
  --paper: #f2f8f5;
  --paper-2: #e7f2ec;
  --card: #ffffff;
  --line: #d9e7e0;

  --display: "Montserrat Alternates", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-lg: 26px;
  --r-md: 16px;
  --r-pill: 999px;

  --shadow-card: 0 1px 0 rgba(27, 42, 74, .04), 0 14px 30px -18px rgba(15, 85, 79, .45);
  --shadow-lift: 0 8px 16px -8px rgba(15, 85, 79, .35), 0 30px 50px -28px rgba(15, 85, 79, .55);
  --shadow-pop: 0 20px 60px -20px rgba(27, 42, 74, .45);

  --ease: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink);
  background: var(--paper);
  /* faint board-tile texture — evokes the game boards these boxes hold */
  background-image:
    radial-gradient(circle at 1px 1px, rgba(31, 122, 114, .07) 1px, transparent
    0);
  background-size: 26px 26px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 900;
  line-height: 1.02;
  margin: 0;
  letter-spacing: -.01em;
}
a {
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
button {
  font-family: inherit;
}

.wrap {
  width: min(1160px, 92vw);
  margin-inline: auto;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--r-pill);
  padding: .72em 1.35em;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  transition: transform .16s var(--ease), box-shadow .2s var(--ease), background
    .2s;
  box-shadow: 0 10px 20px -12px rgba(15, 85, 79, .8);
  text-decoration: none;
  line-height: 1;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px -12px rgba(15, 85, 79, .85);
}
.btn:active {
  transform: translateY(0);
}
.btn--sun {
  --btn-bg: var(--sun);
  --btn-fg: var(--ink);
  box-shadow: 0 10px 20px -12px rgba(242, 169, 0, .9);
}
.btn--plum {
  --btn-bg: var(--plum);
}
.btn--ghost {
  --btn-fg: var(--teal-ink);
  background: transparent;
  box-shadow: inset 0 0 0 2px var(--mint-2);
}
.btn--ghost:hover {
  background: var(--mint);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.btn--block {
  width: 100%;
  justify-content: center;
}
.btn[disabled] {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn--lg {
  font-size: 1.12rem;
  padding: .85em 1.6em;
}

/* ---- Header -------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 248, 245, .86);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 66px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__logo {
  display: block;
  flex-shrink: 0;
  height: 40px;
  width: auto;
}
.brand__name {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.16rem;
  color: var(--ink);
  letter-spacing: -.02em;
}
.brand__name small {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  font-size: .68rem;
  color: var(--teal);
  letter-spacing: .02em;
  margin-top: 1px;
}
.nav-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  padding: .5rem .3rem;
  border-radius: 8px;
}
.nav-link:hover {
  color: var(--teal-deep);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.cart-btn {
  position: relative;
  border: none;
  cursor: pointer;
  background: var(--mint);
  color: var(--teal-ink);
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  transition: transform .16s var(--ease), background .2s;
}
.cart-btn:hover {
  background: var(--mint-2);
  transform: translateY(-1px);
}
.cart-btn svg {
  width: 22px;
  height: 22px;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  background: var(--plum);
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--display);
  font-weight: 700;
  font-size: .74rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  transform: scale(0);
  transition: transform .28s var(--ease);
}
.cart-count.show {
  transform: scale(1);
}
.cart-btn.bump {
  animation: bump .4s var(--ease);
}
@keyframes bump {
  30% {
    transform: scale(1.18) rotate(-6deg);
  }
  60% {
    transform: scale(.94);
  }
}

/* ---- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 90% at 88% -10%, rgba(42, 165, 203, .16), transparent
    55%),
    radial-gradient(90% 80% at -5% 110%, rgba(255, 207, 51, .18), transparent
    55%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(2.2rem, 5vw, 4.2rem) 0 clamp(2.6rem, 5vw, 4rem);
}
.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}
.hero h1 .curve {
  color: var(--teal);
  position: relative;
  white-space: nowrap;
}
.hero h1 .curve svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -.28em;
  width: 100%;
  height: .34em;
}
.hero__sub {
  font-size: clamp(1.05rem, 1.5vw, 1.24rem);
  color: var(--ink-soft);
  max-width: 42ch;
  margin: 1.15rem 0 0;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.7rem;
}
.hero__facts {
  font-size: .95rem;
  color: var(--ink-soft);
  margin: 1.5rem 0 0;
}

/* tilted box cluster */
.hero__art {
  position: relative;
  height: clamp(300px, 34vw, 430px);
}
.hero-box {
  position: absolute;
  width: 54%;
  border-radius: 20px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-lift);
  border: 5px solid #fff;
}
.hero-box img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-box:nth-child(1) {
  left: 2%;
  top: 6%;
  transform: rotate(-7deg);
  z-index: 2;
}
.hero-box:nth-child(2) {
  right: 0;
  top: 0;
  transform: rotate(6deg);
  width: 50%;
  z-index: 1;
}
.hero-box:nth-child(3) {
  left: 26%;
  bottom: 0;
  transform: rotate(-2deg);
  width: 52%;
  z-index: 3;
}

/* ---- Catalog ------------------------------------------------------------- */
.catalog {
  padding: clamp(1.5rem, 3vw, 2.5rem) 0 4rem;
}
.catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 1rem 1.5rem;
  margin-bottom: 1.6rem;
}
.catalog__head h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  color: var(--ink);
}
.catalog__head p {
  margin: .35rem 0 0;
  color: var(--ink-soft);
}
.filters {
  display: flex;
  gap: .5rem;
  margin-left: auto;
  flex-wrap: wrap;
}
.filter {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font-weight: 600;
  font-family: var(--body);
  padding: .5rem 1rem;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .12s
    var(--ease);
}
.filter:hover {
  transform: translateY(-1px);
  border-color: var(--mint-2);
}
.filter[aria-pressed="true"] {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.4rem;
}

/* Product card — a box you could pick up */
.card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(217, 231, 224, .8);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
  will-change: transform;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift);
}
.card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--mint);
  overflow: hidden;
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card:hover .card__media img {
  transform: scale(1.04);
}
.card__media img {
  transition: transform .4s var(--ease);
}
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--body);
  font-weight: 600;
  font-size: .74rem;
  padding: .34rem .7rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94);
  color: var(--teal-ink);
  display: inline-flex;
  align-items: center;
  gap: .34rem;
  box-shadow: 0 4px 10px -6px rgba(27, 42, 74, .5);
}
.badge svg {
  width: 14px;
  height: 14px;
}
.badge--digital {
  color: #0b5a72;
}
.badge--preorder {
  background: var(--plum);
  color: #fff;
}

.card__body {
  padding: 1rem 1.05rem 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card__title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
}
.card__tag {
  font-size: 1rem;
}
.card__tagline {
  color: var(--ink-soft);
  margin: .35rem 0 0;
  font-size: .96rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .8rem;
}
.chip {
  font-size: .76rem;
  font-weight: 600;
  color: var(--teal-ink);
  background: var(--mint);
  padding: .3rem .6rem;
  border-radius: var(--r-pill);
}
.chip--grade {
  background: var(--paper-2);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

/* Festival prices: the price on sale, the regular price struck through,
   what you save. */
.badge--festival {
  left: auto;
  right: 12px;
  background: var(--sun);
  color: var(--ink);
  font-weight: 700;
}
.price-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .15rem .45rem;
}
.fest-tag {
  font-size: .72rem;
  font-weight: 700;
  color: var(--ink);
  background: var(--sun);
  padding: .12rem .5rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.price-now {
  font-weight: 700;
  color: var(--ink);
}
.price-was {
  color: var(--ink-soft);
  font-size: .88em;
  white-space: nowrap;
}
.price-save {
  font-weight: 700;
  font-size: .86em;
  color: var(--plum);
  white-space: nowrap;
}
.price-stack {
  flex: 1 1 auto;
  min-width: 0;
}

.card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  padding: 1rem 1.05rem 1.05rem;
  margin-top: .9rem;
}
.price-pill {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.08rem;
  background: var(--plum);
  color: #fff;
  padding: .42rem .85rem;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.price-pill--free {
  background: var(--mint);
  color: var(--teal-ink);
}
.preorder-note {
  font-size: .82rem;
  color: var(--plum-soft);
  font-weight: 600;
}

.card__add {
  border: none;
  cursor: pointer;
  background: var(--teal);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: .92rem;
  padding: .6rem .95rem;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  transition: transform .14s var(--ease), background .2s;
}
.card__add svg {
  width: 16px;
  height: 16px;
}
.card__add:hover {
  background: var(--teal-deep);
  transform: translateY(-1px);
}
.card__add.added {
  background: var(--sun);
  color: var(--ink);
}

/* Entrance stagger (removed for reduced-motion, see bottom) */
.grid.reveal .card {
  opacity: 0;
  transform: translateY(16px);
}
.grid.reveal .card.in {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}

/* ---- Cart drawer --------------------------------------------------------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(19, 40, 37, .42);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
  backdrop-filter: blur(2px);
}
.scrim.open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 61;
  width: min(430px, 100vw);
  height: 100dvh;
  background: var(--paper);
  box-shadow: -30px 0 60px -30px rgba(15, 85, 79, .6);
  transform: translateX(100%);
  transition: transform .34s var(--ease);
  display: flex;
  flex-direction: column;
}
.drawer.open {
  transform: none;
}
.drawer__head {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
}
.drawer__head h2 {
  font-size: 1.3rem;
}
.drawer__head h2:focus {
  outline: none;
}
.icon-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink-soft);
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  transition: background .2s, color .2s;
}
.icon-btn:hover {
  background: var(--mint);
  color: var(--ink);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}
.drawer__close {
  margin-left: auto;
}

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
}
.cart-line {
  display: grid;
  grid-template-columns: 62px 1fr auto;
  gap: .85rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-line__img {
  width: 62px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--mint);
}
.cart-line__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: .98rem;
}
.cart-line__meta {
  font-size: .82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.qty {
  display: inline-flex;
  align-items: center;
  gap: .1rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  margin-top: .5rem;
}
.qty button {
  border: none;
  background: transparent;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-size: 1.1rem;
  color: var(--teal-deep);
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.qty button:hover {
  background: var(--mint);
}
.qty span {
  min-width: 26px;
  text-align: center;
  font-weight: 600;
  font-size: .92rem;
}
.cart-line__right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .3rem;
}
.cart-line__price {
  font-family: var(--display);
  font-weight: 700;
}
.link-danger {
  background: none;
  border: none;
  color: var(--plum-soft);
  cursor: pointer;
  font-family: var(--body);
  font-weight: 600;
  font-size: .8rem;
  padding: 0;
}
.link-danger:hover {
  text-decoration: underline;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--ink-soft);
}
.cart-empty svg {
  width: 76px;
  height: 76px;
  color: var(--mint-2);
  margin: 0 auto .6rem;
}
.cart-empty h3 {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: .3rem;
}

.cart-empty .btn {
  margin-top: 1rem;
}

/* "You might also like" in the cart drawer */
.recs {
  margin-top: 1.4rem;
}
.cart-empty + .recs {
  margin-top: 0;
}
.recs__title {
  font-family: var(--display);
  font-size: 1rem;
  margin: 0 0 .5rem;
}
.recs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.rec {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: .75rem;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .5rem .6rem .5rem .5rem;
}
.rec__img {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--mint);
}
.rec__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: .92rem;
}
.rec__meta {
  font-size: .8rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.rec__price,
.cart-line__unit {
  font-size: .82rem;
  margin-top: 3px;
  line-height: 1.6;
}
.subtotal + .savings {
  margin-top: -.55rem;
}
.savings {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  font-weight: 600;
  color: var(--plum);
  margin-bottom: .9rem;
}
.rec__add {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  border: none;
  border-radius: var(--r-pill);
  background: var(--teal);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: .85rem;
  padding: .55em .9em;
  min-height: 38px;
  cursor: pointer;
}
.rec__add:hover {
  background: var(--teal-deep);
}
.rec__add svg {
  width: 14px;
  height: 14px;
}
.continue-btn {
  margin-top: .6rem;
}

/* Deep link to a game that isn't on sale */
.notice {
  background: #fff2c9;
  color: var(--ink);
  border-bottom: 1px solid #f5dd8e;
  font-weight: 600;
}
.notice__inner {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 0;
}
.notice__inner > span {
  flex: 1;
}
.notice__link {
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--teal-deep);
  text-decoration: underline;
  cursor: pointer;
}

.drawer__foot {
  border-top: 1px solid var(--line);
  padding: 1.1rem 1.25rem 1.3rem;
  background: var(--card);
}
.ship-note {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--mint);
  color: var(--teal-ink);
  font-weight: 600;
  font-size: .86rem;
  padding: .6rem .8rem;
  border-radius: var(--r-md);
  margin-bottom: .85rem;
}
.ship-note svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: .9rem;
}
.subtotal .label {
  color: var(--ink-soft);
  font-weight: 600;
}
.subtotal .amt {
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.5rem;
}

/* ---- Checkout / modal overlay ------------------------------------------- */
.modal-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(19, 40, 37, .5);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: start center;
  overflow-y: auto;
  padding: clamp(1rem, 4vh, 3rem) 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .28s var(--ease), visibility .28s;
}
.modal-scrim.open {
  opacity: 1;
  visibility: visible;
}
.modal {
  width: min(560px, 100%);
  background: var(--paper);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  transform: translateY(14px) scale(.99);
  transition: transform .3s var(--ease);
}
.modal-scrim.open .modal {
  transform: none;
}
.modal__head {
  padding: 1.3rem 1.5rem .3rem;
}
.modal__head h2 {
  font-size: 1.55rem;
}
.modal__head p {
  color: var(--ink-soft);
  margin: .3rem 0 0;
}
.modal__body {
  padding: 1.1rem 1.5rem 1.5rem;
}
.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
}
.modal {
  position: relative;
}

.steps {
  display: flex;
  gap: .4rem;
  margin: 1rem 1.5rem 0;
}
.step-dot {
  flex: 1;
  height: 6px;
  border-radius: var(--r-pill);
  background: var(--paper-2);
}
.step-dot.active {
  background: var(--teal);
}
.step-dot.done {
  background: var(--mint-2);
}

.field {
  margin-bottom: .9rem;
}
.field label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  margin-bottom: .35rem;
  color: var(--ink);
}
.field .hint {
  font-weight: 400;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  padding: .72rem .9rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--card);
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(31, 122, 114, .12);
}
.field.invalid input,
.field.invalid textarea {
  border-color: var(--plum-soft);
  box-shadow: 0 0 0 4px rgba(138, 53, 104, .1);
}
.field .err {
  color: var(--plum-soft);
  font-size: .8rem;
  font-weight: 600;
  margin-top: .3rem;
  display: none;
}
.field.invalid .err {
  display: block;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}

.summary-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: .3rem 0;
  font-size: .95rem;
}
.summary-row.total {
  border-top: 1px dashed var(--line);
  margin-top: .4rem;
  padding-top: .7rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.2rem;
}
.summary-row .muted {
  color: var(--ink-soft);
}
.delivery-note {
  color: var(--ink-soft);
  font-size: .82rem;
  margin: -.4rem 0 1rem;
}
.pay-note {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  background: var(--mint);
  color: var(--teal-ink);
  padding: .8rem 1rem;
  border-radius: var(--r-md);
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.pay-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.agree-note {
  color: var(--ink-soft);
  font-size: .82rem;
  margin: 0;
}
.agree-note a {
  color: var(--teal-deep);
  font-weight: 600;
}

.form-error {
  background: #fbe9f0;
  color: var(--plum);
  border: 1px solid #f3c9db;
  padding: .7rem .9rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 1rem;
  display: none;
}
.form-error.show {
  display: block;
}

.modal__actions {
  display: flex;
  gap: .7rem;
  margin-top: 1.1rem;
}
.modal__actions .btn {
  flex: 1;
}
.back-link {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: var(--body);
  font-weight: 600;
  cursor: pointer;
  padding: .4rem 0;
}
.back-link:hover {
  color: var(--ink);
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Confirmation -------------------------------------------------------- */
.confirm {
  text-align: center;
  padding: 1.5rem .5rem .5rem;
}
.confirm__check {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px -14px rgba(15, 85, 79, .8);
  animation: pop .5s var(--ease) both;
}
.confirm__check svg {
  width: 48px;
  height: 48px;
  color: #fff;
}
@keyframes pop {
  0% {
    transform: scale(0);
  }
  65% {
    transform: scale(1.12);
  }
  100% {
    transform: scale(1);
  }
}
.confirm h2 {
  font-size: 1.7rem;
}
.confirm p {
  color: var(--ink-soft);
  margin: .5rem 0 0;
}
.order-no {
  display: inline-block;
  margin: 1rem 0 .3rem;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1.35rem;
  color: var(--teal-deep);
  background: var(--mint);
  padding: .45rem 1.1rem;
  border-radius: var(--r-pill);
  letter-spacing: .02em;
}
.next-card {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1rem 1.1rem;
  margin: 1.2rem 0;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
}
.next-card svg {
  width: 26px;
  height: 26px;
  color: var(--teal);
  flex-shrink: 0;
}
.next-card b {
  display: block;
  margin-bottom: .15rem;
}
.next-card span {
  color: var(--ink-soft);
  font-size: .92rem;
}

/* Confetti canvas */
#confetti {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

/* ---- Preorder mini form -------------------------------------------------- */
.preorder-form .field:last-of-type {
  margin-bottom: 0;
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  padding: .8rem 1.2rem;
  border-radius: var(--r-pill);
  z-index: 90;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transition: opacity .25s, transform .25s var(--ease);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .92rem;
}
.toast svg {
  width: 18px;
  height: 18px;
  color: var(--sun);
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---- Footer -------------------------------------------------------------- */
.site-foot {
  border-top: 1px solid var(--line);
  background: var(--card);
  padding: 2rem 0;
  margin-top: 1rem;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  color: var(--ink-soft);
  font-size: .9rem;
}
.site-foot a {
  color: var(--teal-deep);
  font-weight: 600;
  text-decoration: none;
}
.site-foot a:hover {
  text-decoration: underline;
}
.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  width: 100%;
}

/* ---- Policy + contact pages (site/pages.ts) ------------------------------ */
.legal {
  width: min(780px, 92vw);
  padding: 3rem 0 3.5rem;
}
.legal h1 {
  font-size: clamp(2rem, 6vw, 2.8rem);
}
.legal__updated {
  color: var(--ink-soft);
  font-size: .9rem;
  margin: .7rem 0 1.6rem;
}
.legal__body {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: .4rem clamp(1.2rem, 4vw, 2.2rem) 1.6rem;
  box-shadow: var(--shadow-card);
  font-size: 1.02rem;
  line-height: 1.65;
}
.legal__body h2 {
  font-size: 1.2rem;
  line-height: 1.2;
  margin: 1.8rem 0 .5rem;
}
.legal__body p,
.legal__body ul {
  margin: .9rem 0 0;
}
.legal__body ul {
  padding-left: 1.3rem;
}
.legal__body li + li {
  margin-top: .35rem;
}
.legal__body a {
  color: var(--teal-deep);
  font-weight: 600;
}
.contact-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: .7rem 1.6rem;
  margin: 1.6rem 0 .4rem;
}
.contact-list dt {
  font-weight: 600;
  color: var(--ink-soft);
}
.contact-list dd {
  margin: 0;
}
.contact-list address {
  font-style: normal;
}
@media (max-width: 560px) {
  .contact-list {
    grid-template-columns: 1fr;
    gap: .15rem;
  }
  .contact-list dd + dt {
    margin-top: .8rem;
  }
}

/* Skeletons while loading */
.skeleton .card__media,
.skeleton .sk-line {
  background: linear-gradient(100deg, var(--paper-2) 30%, #fff 50%,
    var(--paper-2) 70%);
  background-size: 200% 100%;
  animation: sk 1.2s infinite;
}
.sk-line {
  height: 12px;
  border-radius: 6px;
  margin: .5rem 1.05rem 0;
}
@keyframes sk {
  to {
    background-position: -200% 0;
  }
}

/* ---- Responsive ---------------------------------------------------------- */
@media (max-width: 860px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }
  .hero__art {
    height: clamp(260px, 62vw, 360px);
    order: -1;
  }
  .row2 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .nav-link {
    display: none;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card__title {
    font-size: 1.05rem;
  }
  .brand__logo {
    height: 34px;
  }
  .brand__name small {
    display: none;
  }
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .grid.reveal .card {
    opacity: 1 !important;
    transform: none !important;
  }
  .card:hover,
  .btn:hover {
    transform: none;
  }
  #confetti {
    display: none;
  }
}
