/* ============================================================================
   TapAsul — styles.css
   A self-contained design system. No build step, no CDN, no external fonts.
   Brand colours arrive as CSS variables set from site.config.js.
   ========================================================================= */

/* ---------- tokens ------------------------------------------------------ */
:root {
  /* Fallback colours — site.config.js overrides these on load.
     They match the real brand so the page still looks right if JS is off. */
  --brand: #0881ef;
  --brand-hover: #0668bf;
  --brand-light: #e8f2fe;
  --brand-dark: #07559c;
  --ink: #0a0f1d;

  --text: #1e293b;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-dark: #0f172a;
  --surface-darker: #0b1220;

  --ok: #047857;
  --ok-bg: #ecfdf5;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 4px 16px -4px rgba(15, 23, 42, .08), 0 2px 6px -2px rgba(15, 23, 42, .05);
  --shadow-lg: 0 20px 45px -18px rgba(15, 23, 42, .28);

  --header-h: 72px;
  --maxw: 1180px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
  --font-display: 'Outfit', var(--font-sans);

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

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

button { cursor: pointer; background: none; border: 0; padding: 0; }

ul { margin: 0; padding: 0; list-style: none; }

main { flex: 1 0 auto; }

/* ---------- accessibility ----------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 100;
  padding: 12px 20px;
  background: var(--brand);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-weight: 600;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 0; }

/* keeps sticky header from covering jump targets */
[id] { scroll-margin-top: calc(var(--header-h) + 20px); }

/* ---------- layout ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding-block: 88px; }
.section--tight { padding-block: 64px; }
.section--alt { background: var(--surface); }
.section--muted { background: var(--surface-alt); }
.section--dark { background: var(--surface-dark); color: #e2e8f0; }
.section--dark h2 { color: #fff; }

.section-head {
  max-width: 660px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.75rem, 1.15rem + 2vw, 2.5rem);
  margin-bottom: 14px;
}
.section-head p { color: var(--text-muted); font-size: 1.0625rem; }
.section--dark .section-head p { color: #94a3b8; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand-dark);
  margin-bottom: 12px;
}
.section--dark .eyebrow { color: #7dd3fc; }

/* ---------- buttons ----------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1.2;
  text-align: center;
  transition: background-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease), color .18s var(--ease);
  border: 1px solid transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; }

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 14px -2px rgba(8, 129, 239, .4);
}
.btn--primary:hover { background: var(--brand-hover); transform: translateY(-2px); box-shadow: 0 8px 22px -4px rgba(8,129,239,.45); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { background: var(--surface-alt); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #1e293b; }

.btn--block { width: 100%; }
.btn--sm { padding: 10px 20px; font-size: .875rem; }
.btn--lg { padding: 16px 32px; font-size: 1rem; }

.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- header ------------------------------------------------------ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo { display: inline-flex; align-items: center; gap: 11px; }
.logo__mark {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: var(--brand-light);
  border-radius: 11px;
  color: var(--brand);
  transition: background-color .18s var(--ease);
}
.logo:hover .logo__mark { background: #d7e9ff; }
.logo__mark svg { width: 22px; height: 22px; }
.logo__mark img {
  width: 30px; height: 27px;
  object-fit: contain;
  display: block;
}
.footer .logo__mark img { width: 30px; height: 27px; }
.logo__text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: -.03em;
  color: var(--ink);
}
.logo__text span { color: var(--brand); }

.nav { display: none; gap: 30px; align-items: center; }
.nav a {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color .16s var(--ease);
}
.nav a:hover { color: var(--brand); }

.header__cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  color: var(--ink);
  border: 1px solid var(--line);
}
.nav-toggle:hover { background: var(--surface-alt); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }

/* mobile drawer */
.drawer {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 45;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 8px 20px 24px;
  display: none;
}
.drawer.is-open { display: block; }
@media (max-height: 520px) { .drawer { overflow-y: auto; max-height: calc(100vh - var(--header-h)); } }
.drawer ul { display: grid; gap: 2px; }
.drawer a {
  display: block;
  padding: 15px 8px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.drawer a:hover { color: var(--brand); }
.drawer .btn { margin-top: 18px; }

@media (min-width: 900px) {
  .nav { display: flex; }
  .nav-toggle { display: none; }
  .drawer { display: none !important; }
}

/* ---------- hero -------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: 64px 80px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(8, 129, 239, .10), transparent 70%),
    var(--surface-alt);
  border-bottom: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero { padding-block: 88px 104px; }
  .hero__grid { grid-template-columns: 1fr 1fr; gap: 56px; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.pill__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
}
.pill__dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--brand);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping {
  0%   { transform: scale(1);   opacity: .6; }
  70%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

.hero h1 {
  font-size: clamp(2.125rem, 1.2rem + 3.6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--brand); }

.hero__lede {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 48ch;
  margin-bottom: 32px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 420px) {
  .hero__actions .btn { width: 100%; }
  .hero { padding-block: 44px 56px; }
  .stage__hint { display: none; }
  .stage__bar { justify-content: center; }
}

/* 3D stage */
.stage {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 380px;
}
.stage__viewport {
  flex: 1;
  min-height: 300px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, #f1f7ff, #fbfdff 70%);
  touch-action: pan-y;
}
.stage__viewport canvas { display: block; width: 100% !important; height: 100% !important; }
.stage__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
}
.stage__hint {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: .75rem;
  color: var(--text-faint);
  margin: 0;
}
.stage__hint svg { width: 15px; height: 15px; color: var(--brand); }

/* SVG fallback shown when WebGL/three.js is unavailable */
.stage__fallback { width: 100%; height: 100%; display: grid; place-items: center; padding: 20px; }
.stage__fallback svg { width: 100%; height: auto; max-height: 300px; }

/* ---------- product cards ---------------------------------------------- */
.products-grid {
  display: grid;
  gap: 24px;
  max-width: 880px;
  margin-inline: auto;
}
@media (min-width: 760px) { .products-grid { grid-template-columns: 1fr 1fr; } }

.product {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 32px;
  background: var(--surface-alt);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
/* driven by JS, mirrors the radio state in the order form */
.product.is-selected { border-color: var(--brand); box-shadow: 0 12px 30px -14px rgba(8,129,239,.5); }


/* real product artwork in the pricing cards */
.product__media {
  height: 168px;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, #ffffff 0%, #eef1f5 100%);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, .07);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 16px;
}
.product__media img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .13);
}
.product__media--icon { padding: 0; }
.product__media--icon .product__icon {
  width: 56px; height: 56px;
  border-radius: 16px;
}

.product__icon {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-light);
  color: var(--brand);
}
.product__icon svg { width: 24px; height: 24px; }

.product h3 { font-size: 1.375rem; margin-bottom: 8px; }
.product__blurb { font-size: .875rem; color: var(--text-muted); }

.product__price-block {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.product__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.product__amount {
  font-family: var(--font-sans);      /* Inter: Outfit has no peso glyph */
  font-variant-numeric: tabular-nums;
  font-size: 2.125rem; font-weight: 700; color: var(--ink); letter-spacing: -.02em;
}
.product__note { color: var(--text-muted); font-size: .9375rem; }

.product__recurring {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--brand-dark);
}
.product__recurring svg { width: 15px; height: 15px; }

.product__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--ok);
}
.product__badge svg { width: 15px; height: 15px; }

.product__features { display: grid; gap: 11px; font-size: .875rem; color: var(--text-muted); }
.product__features li { display: flex; gap: 9px; align-items: flex-start; }
.product__features svg { width: 16px; height: 16px; color: var(--brand); flex: none; margin-top: 3px; }

/* ---------- customizer -------------------------------------------------- */
.customizer-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .customizer-grid { grid-template-columns: 320px 1fr; } }

.panel {
  background: rgba(30, 41, 59, .72);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: grid;
  gap: 24px;
}

.field-label {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 9px;
}

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.segmented button {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: .8125rem;
  font-weight: 600;
  color: #cbd5e1;
  background: #334155;
  border: 1px solid #475569;
  transition: all .16s var(--ease);
}
.segmented button:hover { background: #475569; }
.segmented button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

/* compact variant used on the product stage */
.segmented--sm { gap: 4px; }
.segmented--sm button {
  padding: 6px 14px;
  font-size: .75rem;
  border-radius: 8px;
  background: var(--surface-alt);
  color: var(--text-muted);
  border: 1px solid var(--line-strong);
}
.segmented--sm button:hover { background: #eef2f7; color: var(--ink); }
.segmented--sm button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* the studio panel is dark, so the compact toggle inverts there */
.studio__controls {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
}
.section--dark .segmented--sm button {
  background: rgba(30,41,59,.85);
  border-color: rgba(148,163,184,.3);
  color: #cbd5e1;
}
.section--dark .segmented--sm button:hover { background: #334155; color: #fff; }
.section--dark .segmented--sm button[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.input-dark {
  width: 100%;
  padding: 11px 14px;
  font-size: .875rem;
  color: #fff;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--radius-sm);
  transition: border-color .16s var(--ease);
}
.input-dark::placeholder { color: #64748b; }
.input-dark:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(8,129,239,.25); }

.studio {
  background: var(--surface-darker);
  border: 1px solid rgba(148,163,184,.16);
  border-radius: var(--radius-lg);
  height: 440px;
  position: relative;
  overflow: hidden;
}
.studio__viewport { position: absolute; inset: 0; display: grid; place-items: center; touch-action: pan-y; }
.studio__viewport canvas { display: block; width: 100% !important; height: 100% !important; }
.studio .stage__fallback svg { max-height: 320px; }

.studio__caption {
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  text-align: center;
  font-size: .75rem;
  color: #64748b;
  pointer-events: none;
}

/* ---------- faq --------------------------------------------------------- */
.faq { max-width: 760px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .16s var(--ease);
}
.faq details[open] { border-color: var(--line-strong); background: var(--surface); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brand); }
.faq summary svg {
  width: 18px; height: 18px;
  flex: none;
  color: var(--text-faint);
  transition: transform .2s var(--ease);
}
.faq details[open] summary svg { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 22px; font-size: .9375rem; color: var(--text-muted); }

/* ---------- team -------------------------------------------------------- */
.team-grid { display: grid; gap: 24px; max-width: 760px; margin-inline: auto; }
@media (min-width: 680px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.member__avatar {
  width: 76px; height: 76px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.375rem;
  color: var(--brand-dark);
  background: var(--brand-light);
  border: 2px solid var(--brand);
  overflow: hidden;
}
.member__avatar img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.1875rem; margin-bottom: 5px; }
.member__role { font-size: .8125rem; font-weight: 600; color: var(--brand-dark); margin-bottom: 12px; }
.member__bio { font-size: .875rem; color: var(--text-muted); }

/* ---------- order form -------------------------------------------------- */
.order-wrap { max-width: 720px; margin-inline: auto; }
.order-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
@media (min-width: 700px) { .order-card { padding: 44px; } }

.form-grid { display: grid; gap: 22px; }

.choice-list { display: grid; gap: 12px; }
.choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.choice:hover { border-color: var(--line-strong); }
/* single source of truth for the "selected" look */
.choice:has(input:checked) { border-color: var(--brand); background: #f7fbff; }

.choice__main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.choice__radio {
  appearance: none;
  width: 20px; height: 20px;
  flex: none;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.choice__radio:checked {
  border-color: var(--brand);
  border-width: 6px;
}
.choice__title { font-weight: 700; color: var(--ink); font-size: .9375rem; }
.choice__meta { font-size: .75rem; color: var(--text-muted); }
.choice__price {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-weight: 700; color: var(--ink); font-size: 1.0625rem; white-space: nowrap;
}

.qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); padding: 4px; }
.qty button {
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  transition: background-color .14s var(--ease);
}
.qty button:hover { background: var(--surface-alt); }
.qty input {
  width: 52px;
  text-align: center;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  border: 0;
  background: none;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.field { display: grid; gap: 7px; }
.field > label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input {
  width: 100%;
  padding: 12px 15px;
  font-size: .9375rem;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(8,129,239,.18);
}
.field input[aria-invalid="true"] { border-color: #dc2626; }
.field__error {
  font-size: .75rem;
  font-weight: 600;
  color: #b91c1c;
  min-height: 0;
}
.two-col { display: grid; gap: 16px; }
@media (min-width: 620px) { .two-col { grid-template-columns: 1fr 1fr; } }

.totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.totals__label { font-size: .75rem; color: var(--text-muted); }
.totals__amount {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-size: 1.75rem; font-weight: 700; color: var(--brand); letter-spacing: -.02em;
}
.totals__side { display: grid; gap: 6px; justify-items: end; text-align: right; }
.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: .75rem;
  font-weight: 700;
}
.chip--save { background: var(--ok-bg); color: var(--ok); }
.chip[hidden] { display: none; }

.form-note { font-size: .75rem; color: var(--text-muted); line-height: 1.55; }
.form-note a { color: var(--brand-dark); text-decoration: underline; }

.form-status {
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  font-size: .875rem;
  font-weight: 600;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #a7f3d0; }
.form-status--err { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---------- footer ------------------------------------------------------ */
/* any inline currency figure stays aligned */
.product__note, .choice__meta, .chip { font-variant-numeric: tabular-nums; }

.footer {
  background: var(--ink);
  color: #94a3b8;
  padding-block: 56px 32px;
  font-size: .9375rem;
}
.footer__grid {
  display: grid;
  gap: 36px;
  margin-bottom: 40px;
}
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

.footer .logo__text { color: #fff; }
.footer .logo__mark { background: rgba(8,129,239,.16); }
.footer__blurb { max-width: 34ch; margin-top: 16px; font-size: .875rem; }

.footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { display: grid; gap: 11px; }
.footer a { color: #94a3b8; transition: color .14s var(--ease); }
.footer a:hover { color: #fff; }

/* discreet link to the admin dashboard */
.footer__admin {
  color: var(--text-faint);
  text-decoration: none;
  font-size: .8125rem;
  opacity: .55;
  transition: opacity .15s var(--ease), color .15s var(--ease);
}
.footer__admin:hover { opacity: 1; color: var(--text-muted); }

.footer__bottom {
  border-top: 1px solid rgba(148,163,184,.18);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: .8125rem;
}

/* ---------- toast ------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 120%);
  z-index: 80;
  background: var(--ink);
  color: #fff;
  padding: 13px 22px;
  border-radius: var(--radius-full);
  font-size: .875rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: transform .25s var(--ease);
  max-width: min(92vw, 460px);
  text-align: center;
}
.toast:empty { display: none; }
.toast.is-visible { transform: translate(-50%, 0); }

/* ---------- reduced motion ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .btn--primary:hover, .product:hover { transform: none; }
}

/* ---------- print ------------------------------------------------------- */
@media print {
  .header, .drawer, .footer, .stage__hint, .nav-toggle, .toast { display: none !important; }
  .section, .hero { padding-block: 20px !important; }
  body { background: #fff; }
}
