/* ==========================================================================
   VIDAARA — handcrafted jewellery. Design system.
   Warm paper, muted emerald, quiet gold. No dependencies.
   ========================================================================== */

:root {
  /* Brand */
  --paper: #FDFBF7;
  --paper-deep: #F5F0E6;
  --paper-warm: #FAF4EA;
  --teal: #0B6E6D;
  --teal-dark: #085251;
  --teal-light: #E4F0EF;
  --gold: #D4AF37;
  --gold-soft: #F3E7C4;
  --ink: #2B2B2B;
  --ink-soft: #5B5852;
  --ink-faint: #8C877D;
  --line: #E6DFD2;
  --line-strong: #D6CCB9;
  --white: #ffffff;
  --danger: #A3402F;

  /* Type */
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  /* Space + shape */
  --wrap: 1180px;
  --pad: clamp(1.15rem, 4vw, 2.5rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(43, 43, 43, .05), 0 6px 16px -10px rgba(43, 43, 43, .18);
  --shadow: 0 1px 2px rgba(43, 43, 43, .05), 0 18px 44px -18px rgba(43, 43, 43, .28);
  --shadow-lg: 0 30px 80px -30px rgba(43, 43, 43, .45);
  --header-h: 78px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Faint paper grain so large cream fields don't read as flat white */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background-image:
    radial-gradient(circle at 18% 12%, rgba(212, 175, 55, .07), transparent 45%),
    radial-gradient(circle at 82% 78%, rgba(11, 110, 109, .06), transparent 42%);
}

img, svg { max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.16; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1.1em; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal-dark); }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(3.2rem, 8vw, 6rem); }
.section--alt { background: var(--paper-warm); border-block: 1px solid var(--line); }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.tiny { font-size: .82rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Eyebrow ------------------------------------------------------------------ */
.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 600;
  margin: 0 0 .85rem;
}
.eyebrow--gold { color: #96772a; }

.lede { font-size: clamp(1.02rem, 1.6vw, 1.16rem); color: var(--ink-soft); max-width: 62ch; }
.section-head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.section-head.center { margin-inline: auto; }

/* Long-form legal copy ------------------------------------------------------ */
.legal { max-width: 72ch; }
.legal h2 { margin-top: 2.4rem; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { margin-top: 1.6rem; font-size: 1.05rem; }
.legal p, .legal li { color: var(--ink-soft); line-height: 1.7; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: .8rem 0; }
.legal li { margin-bottom: .4rem; }
.legal .legal__updated { color: var(--ink-faint); font-size: .85rem; margin-bottom: 2rem; }
.legal .legal__notice {
  background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: .9rem 1.1rem; font-size: .85rem; color: var(--ink-soft); margin-bottom: 2.4rem;
}

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: inherit; font-weight: 600; font-size: .95rem;
  padding: .78rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--teal); color: #fff;
  cursor: pointer; text-decoration: none;
  transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease, border-color .16s ease, color .16s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--teal-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--ink-faint); }
.btn--gold { background: linear-gradient(180deg, #e0be4c, var(--gold)); color: #3a2f0b; }
.btn--gold:hover { background: linear-gradient(180deg, #d8b23c, #c39f2c); color: #3a2f0b; }
.btn--block { width: 100%; }
.btn--sm { padding: .5rem 1rem; font-size: .85rem; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .4rem; }
.link-arrow::after { content: "→"; transition: transform .16s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header ------------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(253, 251, 247, .88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header__bar {
  display: flex; align-items: center; gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--ink); margin-right: auto;
}
/* The logo is the supplied vector lockup, used whole — emblem and wordmark
   already share a baseline in the artwork, so nothing here has to align them. */
.brand__logo { display: block; height: 46px; width: auto; }
@media (max-width: 420px) { .brand__logo { height: 38px; } }

.nav { display: flex; align-items: center; gap: .3rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .92rem; font-weight: 500;
  padding: .5rem .7rem; border-radius: 8px;
}
.nav a:hover { color: var(--ink); background: var(--paper-deep); }
.nav a[aria-current="page"] { color: var(--teal); font-weight: 600; }

/* Categories dropdown */
.has-menu { position: relative; }
.has-menu > button {
  font: inherit; font-size: .92rem; font-weight: 500; color: var(--ink-soft);
  background: none; border: 0; cursor: pointer; padding: .5rem .7rem; border-radius: 8px;
  display: inline-flex; align-items: center; gap: .35rem;
}
.has-menu > button:hover { color: var(--ink); background: var(--paper-deep); }
.has-menu > button::after {
  content: ""; width: 6px; height: 6px; margin-top: -3px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); transition: transform .18s ease;
}
.has-menu[data-open="true"] > button::after { transform: rotate(-135deg); margin-top: 2px; }
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 208px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow); padding: .4rem; display: none; flex-direction: column;
}
.has-menu[data-open="true"] .menu { display: flex; }
.menu a { padding: .5rem .7rem; border-radius: 6px; font-size: .9rem; }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: auto; padding: .45rem .85rem .45rem .7rem; cursor: pointer; color: var(--ink);
  font: inherit; font-size: .88rem; font-weight: 600;
}
.icon-btn:hover { background: var(--white); border-color: var(--line-strong); }
.cart-count {
  min-width: 20px; height: 20px; padding: 0 5px;
  display: inline-grid; place-items: center;
  background: var(--teal); color: #fff; border-radius: 999px;
  font-size: .72rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cart-count[data-empty="true"] { background: var(--line-strong); color: var(--ink-soft); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; width: 40px; height: 38px; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 17px; height: 1.6px; background: var(--ink); border-radius: 2px;
  margin-inline: auto; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -5.5px; }
.nav-toggle span::after { position: absolute; top: 5.5px; }

@media (max-width: 900px) {
  .nav-toggle { display: block; order: 3; }
  .nav {
    order: 4; width: 100%; display: none; flex-direction: column; align-items: stretch;
    padding-bottom: .8rem; gap: 0;
  }
  .nav.open { display: flex; }
  .nav a, .has-menu > button { padding: .65rem .3rem; width: 100%; text-align: left; }
  .has-menu > button { justify-content: space-between; }
  .menu { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--line); border-radius: 0; margin-left: .3rem; }
  .header__bar { flex-wrap: wrap; }
}

/* Hero --------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(90% 120% at 15% 0%, #fff 0%, rgba(255,255,255,0) 60%),
    linear-gradient(170deg, var(--paper-warm), var(--paper) 55%, var(--paper-deep));
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center; padding-block: clamp(2.8rem, 7vw, 5.4rem);
}
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--teal); }
.hero__art { position: relative; }
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin-top: 2rem; }
.hero__badges span {
  font-size: .8rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .45rem;
}
.hero__badges span::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--gold);
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; max-width: 460px; margin-inline: auto; }
}

/* Marquee strip */
.strip {
  background: var(--teal); color: #dff0ef; font-size: .8rem; letter-spacing: .1em;
  text-transform: uppercase; padding: .65rem 0; overflow: hidden;
}
.strip__inner { display: flex; gap: 2.5rem; justify-content: center; flex-wrap: wrap; }

/* Cards + product grid ------------------------------------------------------ */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card--link { text-decoration: none; color: inherit; }
.card--link:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); color: inherit; }
.card__media {
  position: relative; aspect-ratio: 4 / 3.4;
  background: linear-gradient(160deg, var(--paper-warm), var(--paper-deep));
  display: grid; place-items: center; padding: 1rem;
  border-bottom: 1px solid var(--line);
}
.card__media svg { width: 100%; height: 100%; }
.card__body { padding: .95rem 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card__name { font-family: var(--serif); font-size: 1.08rem; font-weight: 600; margin: 0; }
.card__meta { font-size: .8rem; color: var(--ink-faint); margin: 0; }
.card__foot { margin-top: auto; padding-top: .7rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.price { font-weight: 700; font-variant-numeric: tabular-nums; }
.price--was { font-weight: 500; color: var(--ink-faint); text-decoration: line-through; margin-right: .4rem; font-size: .88rem; }

.tag {
  display: inline-block; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; padding: .22rem .5rem; border-radius: 999px;
  background: var(--teal-light); color: var(--teal-dark);
}
.tag--gold { background: var(--gold-soft); color: #7d6415; }
.tag--ink { background: var(--paper-deep); color: var(--ink-soft); }
.card__badge { position: absolute; top: .7rem; left: .7rem; }

.stars { color: var(--gold); letter-spacing: .08em; font-size: .85rem; }

/* Filters ------------------------------------------------------------------ */
.shop-layout { display: grid; grid-template-columns: 232px 1fr; gap: clamp(1.4rem, 3vw, 2.6rem); align-items: start; }
@media (max-width: 820px) { .shop-layout { grid-template-columns: 1fr; } }

.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filters__group { border-top: 1px solid var(--line); padding: 1rem 0; }
.filters__group:first-child { border-top: 0; padding-top: 0; }
.filters h4 { font-family: var(--sans); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 .7rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  font: inherit; font-size: .84rem; cursor: pointer;
  padding: .35rem .75rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink-soft);
  transition: all .15s ease;
}
.chip:hover { border-color: var(--ink-faint); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1.3rem; }

select, input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea {
  font: inherit; font-size: .93rem; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: .6rem .75rem; width: 100%;
}
select { cursor: pointer; appearance: none; padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%), linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position: calc(100% - 15px) 52%, calc(100% - 10px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
textarea { resize: vertical; min-height: 76px; }
/* Validity is surfaced through [data-error] after a submit attempt — never on a
   field the visitor has not filled in yet. */
label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-soft); margin-bottom: .3rem; }
.field { margin-bottom: .9rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.field__err { color: var(--danger); font-size: .78rem; margin-top: .25rem; display: none; }
.field[data-error="true"] .field__err { display: block; }
.field[data-error="true"] input, .field[data-error="true"] select { border-color: var(--danger); }

/* Product detail ------------------------------------------------------------ */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 4vw, 3.4rem); align-items: start; }
@media (max-width: 860px) { .pdp { grid-template-columns: 1fr; } }
.pdp__stage {
  background: linear-gradient(160deg, var(--white), var(--paper-deep));
  border: 1px solid var(--line); border-radius: var(--radius);
  aspect-ratio: 1 / 1; display: grid; place-items: center; padding: clamp(1rem, 3vw, 2.2rem);
}
.thumbs { display: flex; gap: .6rem; margin-top: .7rem; }
.thumb {
  width: 68px; height: 68px; padding: 6px; border-radius: 10px; cursor: pointer;
  background: var(--white); border: 1px solid var(--line);
}
.thumb[aria-pressed="true"] { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.pdp__price { font-size: 1.65rem; font-weight: 700; font-family: var(--serif); }
.spec-list { list-style: none; padding: 0; margin: 1.2rem 0; border-top: 1px solid var(--line); }
.spec-list li { display: flex; gap: 1rem; justify-content: space-between; padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.spec-list dt, .spec-list b { color: var(--ink-faint); font-weight: 500; }

.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  cursor: pointer; padding: .85rem 0; font-weight: 600; font-size: .95rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--teal); font-size: 1.2rem; line-height: 1; }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding-bottom: 1rem; color: var(--ink-soft); font-size: .92rem; }

.review { border-top: 1px solid var(--line); padding: 1rem 0; }
.review:first-of-type { border-top: 0; }
.review__head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .85rem; }
.review__head b { font-size: .92rem; }

/* Studio -------------------------------------------------------------------- */
.studio { display: grid; grid-template-columns: minmax(0, 1fr) 372px; gap: clamp(1.3rem, 3vw, 2.4rem); align-items: start; }
@media (max-width: 980px) { .studio { grid-template-columns: 1fr; } }

.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1rem, 2.4vw, 1.5rem); margin-bottom: 1.1rem;
}
.step__head { display: flex; align-items: baseline; gap: .7rem; margin-bottom: 1rem; }
.step__num {
  flex: none; width: 26px; height: 26px; border-radius: 999px;
  background: var(--teal); color: #fff; font-size: .8rem; font-weight: 700;
  display: grid; place-items: center; align-self: center;
}
.step__head h3 { margin: 0; font-size: 1.16rem; }
.step__head p { margin: 0; font-size: .84rem; color: var(--ink-faint); }

.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: .6rem; }
/* string names and their notes need more room than the base options do */
#st-strings { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.opt {
  font: inherit; text-align: left; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--paper); border-radius: var(--radius-sm);
  padding: .7rem .8rem; display: flex; gap: .65rem; align-items: center;
  transition: all .15s ease;
}
.opt:hover { border-color: var(--ink-faint); background: var(--white); }
.opt[aria-pressed="true"] { border-color: var(--teal); background: var(--teal-light); box-shadow: inset 0 0 0 1px var(--teal); }
.opt__ico { flex: none; width: 42px; height: 42px; display: block; }
.opt__t { font-weight: 600; font-size: .9rem; display: block; line-height: 1.25; }
.opt__s { font-size: .76rem; color: var(--ink-faint); }
.swatch-line { width: 30px; height: 30px; border-radius: 999px; flex: none; border: 1px solid rgba(0,0,0,.08); }

.bead-search { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.bead-search input { flex: 1 1 190px; }
.bead-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  gap: .55rem; max-height: 340px; overflow-y: auto; padding: .2rem;
}
.bead-btn {
  border: 1px solid var(--line); background: var(--white); border-radius: 10px;
  padding: .4rem .25rem .35rem; cursor: pointer; text-align: center; font: inherit;
  transition: all .14s ease;
}
.bead-btn:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.bead-btn svg { width: 40px; height: 40px; display: block; margin: 0 auto; }
.bead-btn b { display: block; font-size: .68rem; font-weight: 600; line-height: 1.2; margin-top: .2rem; }
.bead-btn span { display: block; font-size: .66rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.bead-empty { grid-column: 1 / -1; color: var(--ink-faint); font-size: .88rem; padding: 1rem; text-align: center; }

/* Sequence strip (drag to reorder) */
.seq {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  min-height: 84px; padding: .6rem;
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius-sm);
  background: var(--paper-warm);
}
.seq[data-dragging="true"] { border-color: var(--teal); background: var(--teal-light); }
.seq__empty { color: var(--ink-faint); font-size: .88rem; margin: auto; text-align: center; }
.seq-item {
  position: relative; width: 56px; padding: .3rem .2rem .25rem; border-radius: 9px;
  background: var(--white); border: 1px solid var(--line); cursor: grab; text-align: center;
  touch-action: none; user-select: none; -webkit-user-select: none;
}
.seq-item:active { cursor: grabbing; }
.seq-item.dragging { cursor: grabbing; box-shadow: 0 10px 22px rgba(0,0,0,.18); background: var(--white); }
.seq-item.sel { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); background: var(--teal-light); }
.seq-item.drop-target { border-color: var(--teal); box-shadow: -2px 0 0 var(--teal); }
.seq-item svg { width: 34px; height: 34px; display: block; margin: 0 auto; pointer-events: none; }
.seq-item small { font-size: .6rem; color: var(--ink-faint); display: block; line-height: 1.1; }
.seq-item__x {
  position: absolute; top: -7px; right: -7px; width: 19px; height: 19px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--white); color: var(--ink-soft);
  font-size: .8rem; line-height: 1; cursor: pointer; padding: 0; display: grid; place-items: center;
}
.seq-item__x:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.seq-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; align-items: center; }
.seq-hint { font-size: .78rem; color: var(--ink-faint); }

/* Live preview panel */
.preview {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.preview__stage {
  background: radial-gradient(circle at 50% 32%, #fff, var(--paper-deep));
  border-bottom: 1px solid var(--line); padding: 1rem; aspect-ratio: 1 / .92;
  display: grid; place-items: center;
}
.preview__stage svg { width: 100%; height: 100%; }
.preview__body { padding: 1.1rem; }
.tally { list-style: none; margin: 0 0 1rem; padding: 0; font-size: .88rem; }
.tally li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.tally li b { font-variant-numeric: tabular-nums; font-weight: 600; }
.tally .tally__total {
  border-top: 1px solid var(--line); margin-top: .35rem; padding-top: .6rem;
  font-size: 1.15rem; font-family: var(--serif); font-weight: 700;
}
.tally .tally__total span { color: var(--ink); }
.price-pop { animation: pricePop .34s ease; }
@keyframes pricePop { 0% { transform: scale(1); } 40% { transform: scale(1.09); color: var(--teal); } 100% { transform: scale(1); } }

/* Cart drawer --------------------------------------------------------------- */
.scrim {
  position: fixed; inset: 0; background: rgba(43, 43, 43, .42); z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease;
  backdrop-filter: blur(2px);
}
.scrim[data-open="true"] { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(420px, 100%); background: var(--paper);
  border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(102%); transition: transform .3s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column;
}
.drawer[data-open="true"] { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); background: var(--white);
}
.drawer__head h2 { margin: 0; font-size: 1.2rem; }
.drawer__close {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  width: 34px; height: 34px; cursor: pointer; font-size: 1.15rem; line-height: 1; color: var(--ink-soft);
}
.drawer__close:hover { background: var(--paper-deep); }
.drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; }
.drawer__foot { border-top: 1px solid var(--line); padding: 1rem 1.1rem; background: var(--white); }

.line {
  display: grid; grid-template-columns: 68px 1fr; gap: .85rem;
  padding: .9rem 0; border-bottom: 1px solid var(--line);
}
.line__media {
  width: 68px; height: 68px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--white); display: grid; place-items: center; padding: 5px;
}
.line__name { font-weight: 600; font-size: .93rem; margin: 0 0 .1rem; }
.line__meta { font-size: .77rem; color: var(--ink-faint); margin: 0; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .5rem; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty button {
  width: 27px; height: 27px; border: 0; background: none; cursor: pointer;
  font-size: 1rem; line-height: 1; color: var(--ink-soft);
}
.qty button:hover { background: var(--paper-deep); color: var(--ink); }
.qty span { min-width: 24px; text-align: center; font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.link-btn {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .78rem;
  color: var(--ink-faint); text-decoration: underline; text-underline-offset: 2px;
}
.link-btn:hover { color: var(--danger); }
.spec-peek {
  margin-top: .5rem; font-size: .76rem; color: var(--ink-soft);
  background: var(--paper-warm); border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem;
}
.spec-peek summary { cursor: pointer; font-weight: 600; color: var(--teal); }
.spec-peek ol { margin: .45rem 0 0; padding-left: 1.1rem; }
.spec-peek li { margin-bottom: .12rem; }

.totals { list-style: none; margin: 0 0 .9rem; padding: 0; font-size: .9rem; }
.totals li { display: flex; justify-content: space-between; gap: 1rem; padding: .22rem 0; }
.totals li b { font-variant-numeric: tabular-nums; }
.totals .totals__grand { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .6rem; font-size: 1.1rem; font-weight: 700; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-faint); }
.empty-state svg { width: 74px; opacity: .55; margin-bottom: .8rem; }

/* Checkout ------------------------------------------------------------------ */
.checkout { display: grid; grid-template-columns: minmax(0,1fr) 384px; gap: clamp(1.4rem, 4vw, 3rem); align-items: start; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .summary { order: -1; } }
.steps-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.6rem; font-size: .86rem; }
.steps-bar span { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-faint); }
.steps-bar span[data-state="active"] { color: var(--ink); font-weight: 600; }
.steps-bar span[data-state="done"] { color: var(--teal); }
.steps-bar i {
  font-style: normal; width: 21px; height: 21px; border-radius: 999px; display: grid; place-items: center;
  border: 1px solid currentColor; font-size: .72rem; font-weight: 700;
}
.steps-bar span[data-state="active"] i { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps-bar span[data-state="done"] i { background: var(--teal); color: #fff; border-color: var(--teal); }
.steps-bar hr { flex: 1; border: 0; border-top: 1px solid var(--line-strong); margin: 0; }

.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.05rem, 2.4vw, 1.6rem); }
.panel + .panel { margin-top: 1.1rem; }
.panel h3 { font-size: 1.1rem; }
.summary { position: sticky; top: calc(var(--header-h) + 16px); }

.wallets { display: grid; gap: .55rem; grid-template-columns: 1fr 1fr; margin-bottom: 1rem; }
@media (max-width: 460px) { .wallets { grid-template-columns: 1fr; } }
.wallet {
  font: inherit; font-weight: 600; font-size: .92rem; cursor: pointer;
  border-radius: 999px; border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: .72rem 1rem; display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
}
.wallet:hover { opacity: .88; }
.wallet--g { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.divider { display: flex; align-items: center; gap: .8rem; color: var(--ink-faint); font-size: .78rem; margin: 1rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }

.pay-methods { display: grid; gap: .5rem; margin-bottom: 1rem; }
.pay-method {
  display: flex; align-items: center; gap: .7rem; cursor: pointer;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: .7rem .85rem; font-size: .92rem;
}
.pay-method:hover { border-color: var(--ink-faint); }
.pay-method:has(input:checked) { border-color: var(--teal); background: var(--teal-light); box-shadow: inset 0 0 0 1px var(--teal); }
.pay-method input { accent-color: var(--teal); margin: 0; }
.pay-method .cards { margin-left: auto; display: flex; gap: .3rem; align-items: center; }
.card-badge {
  font-size: .58rem; font-weight: 800; letter-spacing: .04em; padding: .18rem .3rem;
  border: 1px solid var(--line-strong); border-radius: 4px; color: var(--ink-soft); background: var(--white);
}
.secure-note { display: flex; gap: .5rem; align-items: flex-start; font-size: .78rem; color: var(--ink-faint); margin-top: .9rem; }

/* Gateway feedback. Lives outside a .field, so it carries its own display rule
   rather than borrowing .field__err's — and [hidden] has to win. */
#pay-error { display: block; margin: .55rem 0 0; font-size: .82rem; line-height: 1.45; color: var(--danger); }
#pay-error[hidden] { display: none; }
.notice {
  background: var(--gold-soft); border: 1px solid #e6d295; color: #6b5613;
  border-radius: var(--radius-sm); padding: .7rem .85rem; font-size: .82rem; margin-bottom: 1.1rem;
}
.notice b { color: #4d3d09; }

.receipt { max-width: 620px; margin-inline: auto; text-align: center; }
.receipt__tick {
  width: 62px; height: 62px; border-radius: 999px; background: var(--teal-light);
  display: grid; place-items: center; margin: 0 auto 1rem; color: var(--teal); font-size: 1.7rem;
}
.receipt__box { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; margin-top: 1.4rem; }

/* Toast --------------------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 14px); z-index: 120;
  background: var(--ink); color: #fff; padding: .7rem 1.1rem; border-radius: 999px;
  font-size: .88rem; font-weight: 600; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.toast[data-open="true"] { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

/* Misc content blocks -------------------------------------------------------- */
.feature { display: flex; gap: .9rem; align-items: flex-start; }
.feature__ico { flex: none; width: 42px; height: 42px; color: var(--teal); }
.feature h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.feature p { font-size: .9rem; color: var(--ink-soft); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.4rem, 4vw, 3.2rem); align-items: center; }
@media (max-width: 780px) { .split { grid-template-columns: 1fr; } }

.quote {
  font-family: var(--serif); font-size: clamp(1.25rem, 2.6vw, 1.8rem); line-height: 1.4;
  font-style: italic; color: var(--ink); margin: 0 0 .8rem;
}

.steps-illo { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.2rem; counter-reset: s; }
.steps-illo li { list-style: none; }
.steps-illo li::before {
  counter-increment: s; content: "0" counter(s);
  font-family: var(--serif); font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: .3rem;
}

/* Footer -------------------------------------------------------------------- */
.footer { background: #14201f; color: #cfdbda; margin-top: 0; }
.footer a { color: #cfdbda; text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2rem;
  padding-block: clamp(2.4rem, 6vw, 3.6rem);
}
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
.footer h4 { color: #fff; font-family: var(--sans); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .8rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .9rem; }
/* Reversed lockup — the teal artwork has no contrast on the footer ground */
.footer__logo { display: block; height: 46px; width: auto; margin-bottom: .7rem; }
.footer__brand p { font-size: .88rem; color: #9fb0af; max-width: 34ch; }
.footer__bar {
  border-top: 1px solid rgba(255,255,255,.12); padding-block: 1rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; justify-content: space-between;
  font-size: .8rem; color: #9fb0af;
}
.newsletter { display: flex; gap: .5rem; margin-top: .8rem; }
.newsletter input { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.newsletter input::placeholder { color: #8b9c9b; }

/* Reveal on scroll ------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media print {
  .header, .footer, .drawer, .scrim, .btn { display: none !important; }
}
