/* Rupa Silver: indigo, marigold and silver on lavender grey.
   Change the colours and fonts here; base.css reads these variables. */
:root {
  --bg: #EEEDF5;
  --surface: #FFFFFF;
  --soft: #E3E2EE;
  --ink: #1E1B2E;
  --muted: #5C5A70;
  --line: #D6D4E4;
  --line-strong: #BDBAD2;
  --indigo: #3B3F8C;
  --marigold: #F2A33A;
  --brand: #3B3F8C;
  --brand-hover: #2E3170;
  --brand-ink: #FFFFFF;
  --brand-text: #3B3F8C;
  --eyebrow: #3B3F8C;
  --head: "Young Serif", Georgia, serif;
  --body: "Work Sans", system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 22px;
  --btn-radius: 999px;
  --wrap: 1200px;
  --gap: 18px;
  --art-bg: #F6F5FA;
  --wish: #C2185B;
}
h1, h2, h3 { font-weight: 400; letter-spacing: -.01em; }
h1 em, h2 em, .f-statement em { font-style: normal; color: var(--indigo); background: linear-gradient(transparent 62%, rgba(242,163,58,.55) 62%); }
.eyebrow { letter-spacing: .14em; }
.btn { font-weight: 600; }
.btn svg { width: 18px; height: 18px; }
.btn-marigold { background: var(--marigold); color: var(--ink); }
.btn-marigold:hover { background: #E8952A; }
.text-link { color: var(--indigo); font-weight: 600; text-underline-offset: 5px; }
.pc-body h3 { font-family: var(--body); font-weight: 600; }

/* ---------- header ---------- */
.header { background: rgba(238,237,245,.92); backdrop-filter: blur(10px); }
.logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; }
.logo b { font: 400 1.9rem var(--head); color: var(--indigo); letter-spacing: -.02em; }
.nav a { color: var(--muted); font-weight: 500; border-radius: 999px; }
.nav a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--indigo); background: var(--surface); }
.bag-link { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--indigo); color: #fff; }
.bag-link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bag-count { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--marigold); color: var(--ink); font-size: .78rem; font-weight: 700; display: grid; place-items: center; }
.bag-count.is-empty { background: var(--surface); color: var(--muted); }
@media (max-width: 960px) { .header-cta { order: 2; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(32px, 5vw, 64px) 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } .hero-art { max-width: 320px; margin-inline: auto; } }
.hero h1 { font-size: clamp(2.8rem, 6.6vw, 5.6rem); line-height: 1; margin: 16px 0 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { padding: 20px 20px 0; border-radius: 50% 50% 0 0; background: radial-gradient(circle at 50% 40%, #fff, var(--soft) 70%); }
.ear { display: block; width: 100%; height: auto; }
.marquee { overflow: hidden; background: var(--indigo); color: #fff; padding-block: 12px; font-weight: 600; white-space: nowrap; }
.marquee p { display: inline-block; white-space: nowrap; text-wrap: nowrap; animation: marquee 40s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2, .sec-title { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.split-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split-2 { grid-template-columns: minmax(0, 1fr); } }
.stack-band { background: var(--ink); color: #CFCDE0; }
.stack-band .sec-title { color: #fff; }
.stack-band .eyebrow { color: var(--marigold); }
.stack-band h2 em { color: #fff; }
.stack-band .lede { color: #B9B7CF; }
.stack-chips { list-style: none; display: grid; gap: 10px; }
.stack-chips a { display: block; padding: 22px 26px; border-radius: var(--radius-lg); background: rgba(255,255,255,.07); font: 400 1.8rem var(--head); color: #fff; text-decoration: none; }
.stack-chips a:hover { background: rgba(255,255,255,.12); }
.promise-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
@media (max-width: 860px) { .promise-row { grid-template-columns: minmax(0, 1fr); } }
.promise-row div { display: grid; gap: 4px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); }
.promise-row b { font: 400 1.4rem var(--head); color: var(--indigo); }
.promise-row span { color: var(--muted); }
.quick-add { justify-self: start; margin: 8px 0 2px; min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--indigo); border-radius: 999px; background: transparent; color: var(--indigo); font-weight: 600; cursor: pointer; order: 3; }
.quick-add:hover { background: var(--indigo); color: #fff; }
.pc-body { display: flex; flex-direction: column; }
.pc-price { order: 2; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 50; transform: translate(-50%, 140%); display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-radius: 999px; background: var(--ink); color: #fff; box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); transition: transform .3s; max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); }
.toast a { color: var(--marigold); font-weight: 700; white-space: nowrap; }

/* ---------- ear stack builder (signature) ---------- */
.stack { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); grid-template-areas: "stage controls" "stage sum"; gap: clamp(18px, 3vw, 32px); align-items: start; }
@media (max-width: 860px) { .stack { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "sum" "controls"; } }
.stack-stage { grid-area: stage; position: sticky; top: 96px; padding: 20px; border-radius: var(--radius-lg); background: radial-gradient(circle at 50% 40%, #fff, var(--soft) 75%); }
@media (max-width: 860px) { .stack-stage { position: static; max-width: 340px; margin-inline: auto; width: 100%; } }
.stack-controls { grid-area: controls; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: clamp(18px, 2.6vw, 26px); border-radius: var(--radius-lg); background: var(--surface); }
@media (max-width: 520px) { .stack-controls { grid-template-columns: minmax(0, 1fr); } }
.presets { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.preset { min-height: 40px; padding: 6px 16px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: var(--surface); font-weight: 600; cursor: pointer; }
.preset:hover { border-color: var(--indigo); color: var(--indigo); }
.stack-sum { grid-area: sum; display: grid; gap: 10px; padding: clamp(18px, 2.6vw, 26px); border-radius: var(--radius-lg); background: var(--indigo); color: #DAD9F0; }
.ss-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ss-total b { font: 400 2.4rem var(--head); color: #fff; font-variant-numeric: tabular-nums; }
.stack-sum .form-note { color: #C2C1E2; }
.stack-sum .btn-primary { background: var(--marigold); color: var(--ink); justify-self: start; }

/* ---------- bag ---------- */
.bag { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .bag { grid-template-columns: minmax(0, 1fr); } }
.bag-lines { list-style: none; display: grid; gap: 12px; }
.bag-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto auto; grid-template-areas: "art info qty price" "art info x x"; gap: 6px 16px; align-items: center; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); }
@media (max-width: 560px) { .bag-line { grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: "art info info" "art qty price" "art x x"; } }
.bl-art { grid-area: art; display: block; border-radius: var(--radius); background: var(--art-bg); padding: 6px; }
.bl-info { grid-area: info; display: grid; gap: 2px; }
.bl-name { font-weight: 600; text-decoration: none; }
.bl-name:hover { text-decoration: underline; }
.bl-meta { font-size: .86rem; color: var(--muted); }
.qty { grid-area: qty; display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--line-strong); border-radius: 999px; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.1rem; cursor: pointer; border-radius: 50%; }
.qty output { min-width: 2ch; text-align: center; font-weight: 700; }
.bl-price { grid-area: price; font-variant-numeric: tabular-nums; justify-self: end; }
.bl-x { grid-area: x; justify-self: end; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font-size: .86rem; padding: 4px; }
.bag-side { display: grid; gap: 16px; position: sticky; top: 96px; }
@media (max-width: 900px) { .bag-side { position: static; } }
.totals { display: grid; gap: 8px; margin: 0 0 8px; }
.totals div { display: flex; justify-content: space-between; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.totals .t-grand { padding-top: 10px; border-top: 1px solid var(--line); }
.totals .t-grand dt { color: var(--ink); font-weight: 700; }
.totals .t-grand dd { font: 400 1.6rem var(--head); }
.totals [hidden] { display: none; }
.inline-form { display: flex; gap: 8px; margin-top: 10px; }
.inline-form .input { min-height: 46px; }
.coupon-msg, .pin-msg { font-size: .9rem; color: var(--indigo); font-weight: 600; margin-top: 6px; }
.form[hidden] { display: none; }

/* ---------- inner pages ---------- */
.page-head h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.cat-filters button[aria-pressed="true"] { background: var(--indigo); border-color: var(--indigo); }

/* ---------- CTA + footer ---------- */
.cta-band { padding-block: clamp(56px, 8vw, 104px); text-align: center; background: var(--marigold); }
.cta-band h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.cta-band h2 em { background: none; color: var(--ink); text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.cta-band p { margin: 14px auto 0; max-width: 54ch; }
.cta-band .btn-marigold { background: var(--ink); color: #fff; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.footer { background: var(--ink); color: #BAB8CE; --footer-line: rgba(255,255,255,.12); }
.f-statement { font: 400 clamp(1.8rem, 4vw, 3rem)/1.1 var(--head); color: #fff; margin-bottom: 48px; }
.f-statement em { background: none; color: var(--marigold); }
.footer .logo b { color: #fff; }
.footer h2 { color: var(--marigold); opacity: 1; }
.f-about { margin: 14px 0 10px; max-width: 34ch; }
.footer .credit a { color: #fff; }
