/* ============================================================
   ALCHEMY GOLD RESEARCH — DESIGN SYSTEM (HYBRID — white base · purple content blocks)
   White grounds · purple + gold · deep-purple accent panels
   Mirrors ag.css class-for-class so the same markup works.
   ============================================================ */

:root {
  /* Brand */
  --purple:        #2F194A;
  --purple-deep:   #1B0E30;
  --bg:            #FFFFFF;   /* page ground */
  --bg-2:          #F4F1F7;   /* alt section (cool tint, split the difference) */
  --raise:         #FFFFFF;   /* cards / panels */
  --raise-2:       #F3F1F6;   /* hover / inputs */
  --purple-mist:   #EEE9F4;

  /* Gold */
  --gold:          #C79B34;
  --gold-deep:     #8A671A;
  --gold-light:    #B5891F;   /* readable gold on white */
  --gold-pale:     #F6EDD6;

  /* Light tiles (product imagery) */
  --tile:          #F4F2EC;
  --tile-2:        #E7E2D7;

  /* Type on light */
  --white:         #FFFFFF;
  --ink:           #1C1626;
  --body:          #463E54;
  --muted:         #877E94;

  --line:          #E7E3DC;
  --line-soft:     #F0EDE7;
  --ok:            #2E7D52;
  --bar-bg:        rgba(251,250,247,0.92);
  --navh:          112px;

  --sans: 'Raleway', system-ui, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;

  --maxw: 1240px;
  --shadow-sm: 0 1px 3px rgba(31,17,51,0.05), 0 1px 2px rgba(31,17,51,0.03);
  --shadow-md: 0 8px 22px -14px rgba(31,17,51,0.12);
  --shadow-lg: 0 20px 44px -24px rgba(31,17,51,0.16);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  color: var(--body);
  background: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 82% -6%, rgba(199,155,52,0.10), transparent 60%),
    radial-gradient(820px 460px at -6% 8%, rgba(47,25,74,0.06), transparent 55%);
  background-attachment: fixed;
  line-height: 1.7; font-weight: 400; overflow-x: hidden;
}
body.ag-locked { overflow: hidden; height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 6px; border: 3px solid var(--bg-2); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 2rem; }

/* ── Typography ── */
.eyebrow {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--gold-deep);
  display: inline-flex; align-items: center; gap: 0.65rem;
}
.eyebrow::before { content: ''; width: 26px; height: 1.5px; background: var(--gold); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ''; width: 26px; height: 1.5px; background: var(--gold); }

h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
.display {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1.08;
  letter-spacing: -0.015em; color: var(--ink);
}
.display em { font-style: italic; color: var(--gold-deep); }
.section-h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.06; color: var(--ink);
}
.section-h2 em { font-style: italic; color: var(--purple); }
.lead { font-size: 1.05rem; color: var(--body); max-width: 56ch; }
.text-gold { color: var(--gold-deep); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.95rem 1.8rem;
  border: 1.5px solid transparent; transition: all 0.22s ease; white-space: nowrap;
}
.btn-gold { background: var(--gold); color: var(--purple); border-color: var(--gold); }
.btn-gold:hover { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn-purple { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-purple:hover { background: var(--purple-deep); border-color: var(--purple-deep); }
.btn-outline { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-outline:hover { background: var(--purple); color: #fff; }
.btn-gold-outline { background: transparent; color: var(--gold-deep); border-color: var(--gold); }
.btn-gold-outline:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--purple); color: var(--purple); }
/* nav CTA: purple outline → solid purple on hover (navigation, not a buy action) */
.btn-nav-cta { background: transparent; color: var(--purple); border-color: var(--purple); }
.btn-nav-cta:hover { background: var(--purple); color: #fff; border-color: var(--purple); }
.btn-lg { padding: 1.1rem 2.3rem; font-size: 0.74rem; }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================ TICKER */
.ag-ticker {
  background: var(--purple-deep); color: rgba(255,255,255,0.82);
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; overflow: hidden; white-space: nowrap;
  padding: 0.5rem 0;
}
.ag-ticker-track { display: inline-flex; gap: 3rem; animation: ag-ticker 38s linear infinite; }
.ag-ticker-track span { display: inline-flex; align-items: center; gap: 3rem; }
.ag-ticker-track span::after { content: '◆'; color: var(--gold); font-size: 0.55rem; }
@keyframes ag-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================ NAV */
/* Header mount point must not constrain its sticky children — display:contents
   makes #ag-header vanish from layout so the sticky nav's containing block is
   <body> (full page height) instead of the short header wrapper. Without this,
   the nav un-sticks after ~150px of scroll and downstream sticky bars float. */
#ag-header { display: contents; }
.ag-skip-link {
  position: absolute; left: 1rem; top: -3.5rem; z-index: 999;
  background: var(--purple-deep); color: #fff; padding: 0.8rem 1.4rem;
  font-size: 0.85rem; font-weight: 700; text-decoration: none; border-radius: 2px;
  transition: top 0.15s ease;
}
.ag-skip-link:focus { top: 0.75rem; }
[inert] { pointer-events: none; }
.ag-nav {
  position: sticky; top: 0; z-index: 200;
  background: #ffffff; backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.ag-nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 2rem;
  height: var(--navh); display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.ag-logo { display: flex; align-items: center; }
.ag-logo img { height: 88px; width: auto; }
.ag-nav-links { display: flex; gap: 2.2rem; list-style: none; }
.ag-nav-links a {
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--body); transition: color 0.2s; position: relative; padding: 0.4rem 0;
}
.ag-nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px; background: var(--gold); transition: width 0.25s; }
.ag-nav-links a:hover, .ag-nav-links a.active { color: var(--purple); }
.ag-nav-links a:hover::after, .ag-nav-links a.active::after { width: 100%; }
/* Products nav dropdown */
.ag-nav-has-menu { position: relative; }
.ag-nav-has-menu > a { display: inline-flex; align-items: center; gap: 0.4rem; }
.ag-nav-caret { width: 9px; height: 9px; stroke: currentColor; stroke-width: 2.4; fill: none; transition: transform 0.2s; }
.ag-nav-has-menu:hover .ag-nav-caret { transform: rotate(180deg); }
.ag-nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 210px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 44px rgba(27,14,48,0.16);
  padding: 0.4rem; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transition: opacity 0.2s, transform 0.2s; z-index: 210;
}
.ag-nav-has-menu:hover .ag-nav-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.ag-nav-menu::before { content: ''; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.ag-nav-menu a {
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--body); padding: 0.7rem 0.9rem; transition: all 0.15s;
}
.ag-nav-menu a::after { display: none; }
.ag-nav-menu a:hover { background: var(--purple-mist); color: var(--gold-deep); }
.ag-nav-right { display: flex; align-items: center; gap: 1.3rem; }
.ag-icon-btn { background: none; border: none; position: relative; display: flex; align-items: center; justify-content: center; padding: 0.3rem; }
.ag-icon-btn svg { width: 22px; height: 22px; stroke: var(--ink); }
.ag-cart-count {
  position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px;
  background: var(--gold); color: #fff; border-radius: 9px; font-size: 0.62rem;
  font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px;
  opacity: 0; transform: scale(0.5); transition: all 0.2s;
}
.ag-cart-count.show { opacity: 1; transform: scale(1); }
.ag-burger { display: none; background: none; border: none; }
.ag-burger svg { width: 26px; height: 26px; stroke: var(--ink); }

/* ============================================================ CART DRAWER */
.ag-cart-overlay { position: fixed; inset: 0; background: rgba(30,15,51,0.45); opacity: 0; visibility: hidden; transition: all 0.3s; z-index: 400; backdrop-filter: blur(2px); }
.ag-cart-overlay.open { opacity: 1; visibility: visible; }
.ag-cart {
  position: fixed; top: 0; right: 0; height: 100%; width: 420px; max-width: 90vw;
  background: #fff; z-index: 401; transform: translateX(100%); transition: transform 0.35s cubic-bezier(.4,0,.2,1);
  display: flex; flex-direction: column; box-shadow: var(--shadow-lg); border-left: 1px solid var(--line);
}
.ag-cart.open { transform: translateX(0); }
.ag-cart-head { padding: 1.5rem 1.6rem; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.ag-cart-head h3 { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.ag-cart-close { background: none; border: none; font-size: 1.6rem; color: var(--muted); line-height: 1; }
.ag-cart-body { flex: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.ag-cart-empty { text-align: center; color: var(--muted); padding: 4rem 1rem; }
.ag-cart-empty svg { width: 54px; height: 54px; stroke: var(--line); margin: 0 auto 1rem; }
.ag-cart-item { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line-soft); }
.ag-cart-item-img { width: 64px; height: 64px; background: var(--tile); flex-shrink: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ag-cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.ag-cart-item-main { flex: 1; min-width: 0; }
.ag-cart-item-name { font-weight: 600; color: var(--ink); font-size: 0.92rem; text-transform: uppercase; letter-spacing: 0.04em; }
.ag-cart-item-var { font-size: 0.72rem; color: var(--gold-deep); text-transform: uppercase; letter-spacing: 0.08em; }
.ag-cart-item-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 0.5rem; }
.ag-qty { display: inline-flex; align-items: center; border: 1px solid var(--line); }
.ag-qty button { width: 26px; height: 26px; background: none; border: none; color: var(--purple); font-size: 1rem; line-height: 1; }
.ag-qty button:hover { background: var(--purple-mist); }
.ag-qty span { min-width: 28px; text-align: center; font-size: 0.82rem; font-weight: 600; color: var(--ink); }
.ag-cart-item-price { font-weight: 700; color: var(--purple); font-size: 0.95rem; }
.ag-cart-remove { background: none; border: none; color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; text-decoration: underline; margin-top: 0.3rem; }
.ag-cart-remove:hover { color: var(--gold-deep); }
.ag-cart-foot { border-top: 1px solid var(--line); padding: 1.4rem 1.6rem; }
.ag-cart-ship { font-size: 0.72rem; color: var(--muted); margin-bottom: 0.8rem; text-align: center; }
.ag-cart-ship b { color: var(--gold-deep); }
.ag-cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.ag-cart-subtotal span { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }
.ag-cart-subtotal b { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); font-weight: 600; }

/* ============================================================ DISCLAIMER GATE */
.ag-gate { position: fixed; inset: 0; z-index: 1000; background: rgba(30,15,51,0.78); backdrop-filter: blur(10px); display: flex; align-items: center; justify-content: center; padding: 1.5rem; opacity: 0; visibility: hidden; transition: opacity 0.4s; }
.ag-gate.show { opacity: 1; visibility: visible; }
.ag-gate-card { background: #fff; max-width: 610px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(20px) scale(0.98); transition: transform 0.4s; border-top: 5px solid var(--gold); }
.ag-gate.show .ag-gate-card { transform: translateY(0) scale(1); }
.ag-gate-head { text-align: center; padding: 1.7rem 2.4rem 1rem; border-bottom: 1px solid var(--line-soft); }
.ag-gate-head img { height: 42px; margin: 0 auto 0.7rem; }
.ag-gate-head h2 { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; color: var(--ink); }
.ag-gate-head p { font-size: 0.95rem; color: var(--body); margin-top: 0.55rem; line-height: 1.5; letter-spacing: 0; }
.ag-gate-head .gate-brand { font-family: var(--serif); font-style: italic; font-weight: 600; color: var(--gold-deep); font-size: 1.12em; letter-spacing: 0; }
.ag-gate-body { padding: 1rem 2.4rem 1.1rem; }
.ag-gate-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.ag-gate-list li { display: flex; gap: 0.7rem; font-size: 0.84rem; color: var(--body); line-height: 1.45; }
.ag-gate-list li svg { width: 18px; height: 18px; stroke: var(--gold-deep); flex-shrink: 0; margin-top: 3px; }
.ag-gate-list b { color: var(--ink); font-weight: 700; }
.ag-gate-fine { font-size: 0.71rem; color: var(--muted); line-height: 1.5; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid var(--line-soft); }
.ag-gate-fine a { color: var(--purple); text-decoration: underline; }
.ag-gate-actions { display: flex; gap: 0.9rem; padding: 0 2.4rem 1.7rem; }

/* Compact the gate when vertical room is scarce (short laptops / landscape tablets) */
@media (max-height: 740px) {
  .ag-gate-head { padding: 1.2rem 2.4rem 0.8rem; }
  .ag-gate-head img { height: 36px; margin-bottom: 0.55rem; }
  .ag-gate-head h2 { font-size: 1.4rem; }
  .ag-gate-head p { font-size: 0.88rem; margin-top: 0.4rem; line-height: 1.42; }
  .ag-gate-body { padding: 0.85rem 2.4rem 0.95rem; }
  .ag-gate-list { gap: 0.5rem; }
  .ag-gate-list li { font-size: 0.82rem; line-height: 1.4; }
  .ag-gate-fine { margin-top: 0.7rem; padding-top: 0.7rem; line-height: 1.45; }
  .ag-gate-actions { padding: 0 2.4rem 1.3rem; }
  .ag-gate-actions .btn { padding-top: 0.85rem; padding-bottom: 0.85rem; }
}
.ag-gate-actions .btn { flex: 1; justify-content: center; }
.ag-gate-deny { position: fixed; inset: 0; z-index: 1001; background: var(--purple-deep); display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.ag-gate-deny.show { display: flex; }
.ag-gate-deny img { height: 64px; margin-bottom: 2rem; }
.ag-gate-deny h2 { color: #fff; font-family: var(--serif); font-size: 2rem; margin-bottom: 1rem; }
.ag-gate-deny p { color: rgba(255,255,255,0.72); max-width: 44ch; font-size: 0.95rem; }
.ag-gate-deny button { margin-top: 2rem; }

/* ============================================================ FOOTER (stays deep purple) */
.ag-footer { background: var(--purple-deep); color: rgba(255,255,255,0.62); padding: 3rem 0 0; }
.ag-footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.25rem; }
.ag-footer img.fl { height: 54px; margin-bottom: 1.2rem; }
.ag-footer-blurb { font-size: 0.84rem; line-height: 1.7; max-width: 34ch; }
.ag-footer h4 { color: #fff; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 1.2rem; font-weight: 700; }
.ag-footer ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.ag-footer ul a { font-size: 0.86rem; transition: color 0.2s; }
.ag-footer ul a:hover { color: var(--gold-light); }
.ag-news-form { display: flex; margin-top: 0.6rem; border: 1px solid rgba(255,255,255,0.2); }
.ag-news-form input { flex: 1; background: none; border: none; padding: 0.7rem 0.9rem; color: #fff; font-family: inherit; font-size: 0.82rem; }
.ag-news-form input::placeholder { color: rgba(255,255,255,0.4); }
.ag-news-form button { background: var(--gold); border: none; color: var(--purple); padding: 0 1.1rem; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s; }
.ag-news-form button:hover { background: var(--purple); color: #fff; }
/* Same width + height as the newsletter row above it — outlined rather
   than filled gold, so it reads as a secondary action instead of
   competing with the Join button's solid-gold treatment. Height is
   pinned to match .ag-news-form's rendered height (39.375px) exactly. */
.ag-foot-install { display: flex; align-items: center; justify-content: flex-start; gap: 0.6rem; width: 100%; height: 2.46rem; box-sizing: border-box; margin-top: 0.7rem; padding: 0.4rem 1rem; background: transparent; border: 1px solid var(--gold); text-decoration: none; color: var(--gold-light); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; transition: background 0.2s, color 0.2s; }
.ag-foot-install:hover { background: var(--gold); color: var(--purple); }
.ag-foot-install img { width: 22px; height: 22px; border-radius: 5px; flex-shrink: 0; }
.ag-legal { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.6rem 0; font-size: 0.7rem; line-height: 1.7; color: rgba(255,255,255,0.45); }
.ag-footer-bar { border-top: 1px solid rgba(255,255,255,0.12); padding: 1.3rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.72rem; }
.ag-footer-bar a:hover { color: var(--gold-light); }
/* social icon rows */
.ag-social { display: flex; gap: 0.55rem; margin-top: 1.4rem; }
.ag-social a { width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); transition: background 0.2s, border-color 0.2s, transform 0.2s; }
.ag-social a:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.ag-social svg { width: 15px; height: 15px; fill: rgba(255,255,255,0.85); stroke: none; }
.ag-social svg[data-stroke] { fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 2; }
.ag-social a:hover svg { fill: var(--purple-deep); }
.ag-social a:hover svg[data-stroke] { stroke: var(--purple-deep); }
/* contact page: purple badges on white */
.ct-social-wrap { margin-top: 1.8rem; }
.ct-social-label { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.85rem; }
.ct-social-row { display: flex; gap: 0.6rem; }
.ct-social-row a { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--purple); transition: background 0.2s, transform 0.2s; }
.ct-social-row a:hover { background: var(--gold); transform: translateY(-2px); }
.ct-social-row svg { width: 17px; height: 17px; fill: #fff; stroke: none; }
.ct-social-row svg[data-stroke] { fill: none; stroke: #fff; stroke-width: 2; }

/* ============================================================ PRODUCT CARD */
.ag-card { background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s; position: relative; }
.ag-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold); }
.ag-card-media { position: relative; aspect-ratio: 4/3; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ag-card-media img { position: relative; z-index: 1; width: auto; height: 86%; object-fit: contain; transition: transform 0.45s ease; }
.ag-card:hover .ag-card-media img { transform: translateY(-6px) scale(1.035); }
.ag-card-badge { position: absolute; top: 0.9rem; left: 0.9rem; background: var(--purple); color: #fff; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.35rem 0.6rem; z-index: 2; }
.ag-card-cat { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: 0.45rem; }
.ag-card-body { padding: 1rem 1.2rem 1.1rem; display: flex; flex-direction: column; flex: 1; border-top: 1px solid var(--line-soft); }
.ag-card-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); line-height: 1.05; min-height: 2.1em; text-transform: uppercase; letter-spacing: 0.02em; }
.ag-card-tagline { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-deep); margin: 0.3rem 0 0.55rem; line-height: 1.3; min-height: 1.72rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* explanation block — purple panel (full-bleed within the card); fixed to 3 blurb lines so every card's panel is the same height */
.ag-card-desc { flex: 0 0 auto; background: var(--purple); margin: 0 -1.2rem; padding: 0.65rem 1.2rem 0.7rem; }
.ag-card-blurb { font-size: 0.78rem; color: rgba(255,255,255,0.85); line-height: 1.5; min-height: 4.5em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* purity/COA is now a (future-clickable) button, not a dead label */
.ag-card-chip { display: inline-flex; align-items: center; gap: 0.35rem; align-self: flex-start; margin-top: 0.7rem; padding: 0.3rem 0.6rem; background: var(--purple-mist); color: var(--gold-deep); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background 0.2s, color 0.2s; }
.ag-card-chip:hover { background: var(--gold); color: #160B28; }
.ag-card-chip svg { width: 12px; height: 12px; stroke: currentColor; fill: none; }
.ag-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 0.7rem; border-top: 1px solid var(--line); }
.ag-card-price { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; color: var(--purple); }
.ag-card-price small { font-size: 0.7rem; color: var(--muted); font-family: var(--sans); font-weight: 500; }
.ag-card-add { background: var(--gold); color: var(--purple); border: none; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.55rem 1.05rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: background 0.2s, color 0.2s; }
.ag-card-add:hover { background: var(--purple); color: #fff; }
.ag-card-add svg { width: 15px; height: 15px; stroke: currentColor; }
.ag-card-soon-badge { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3; background: var(--gold); color: #1B0E30; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.34rem 0.62rem; }
/* Left corner, same spot as .ag-card-soon-badge — the two are mutually
   exclusive on any given card (a card is either out of stock or showing
   a saving, never both), and the right corner is taken by .ag-card-share. */
.ag-card-save-badge { position: absolute; top: 0.9rem; left: 0.9rem; z-index: 3; background: var(--purple); color: #fff; font-size: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.34rem 0.62rem; box-shadow: 0 3px 8px rgba(47,25,74,0.16); }
/* Badges pop in sync with the image on hover — same transform, same
   timing, so the whole card feels like one unit rather than the image
   scaling underneath a static badge. */
.ag-card-soon-badge, .ag-card-save-badge { transition: transform 0.45s ease; }
.ag-card:hover .ag-card-soon-badge, .ag-card:hover .ag-card-save-badge { transform: translateY(-6px) scale(1.035); }

/* ===== Product detail: Option A — full-width overview + grouped spec sheet ===== */
.pd-overview { max-width: 860px; margin-bottom: 2.8rem; }
.pd-pathways--row { flex-direction: row; flex-wrap: wrap; gap: 0.6rem 1.6rem; }
.pd-specsheet { background: var(--raise); border: 1px solid var(--line); }
.pd-specsheet-h { background: var(--purple); color: #fff; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 1rem 1.4rem; font-weight: 700; }
.pd-spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pd-spec-group { border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.pd-spec-group .pd-spec-row:last-child { border-bottom: none; }
.pd-spec-gh { font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-deep); font-weight: 800; padding: 0.95rem 1.4rem 0.5rem; }
.pd-specsheet-actions { display: flex; gap: 0.8rem; padding: 1.2rem 1.4rem; }
.pd-specsheet-actions .btn { margin: 0; }
@media (max-width: 880px) {
  .pd-spec-group { border-right: none; }
  .pd-specsheet-actions { flex-direction: column; }
}

/* ── Toast ── */
.ag-toast { position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(140%); background: var(--purple-deep); color: #fff; padding: 0.9rem 1.5rem; z-index: 500; font-size: 0.82rem; font-weight: 600; display: flex; align-items: center; gap: 0.7rem; box-shadow: var(--shadow-lg); transition: transform 0.35s cubic-bezier(.4,0,.2,1); }
.ag-toast.show { transform: translateX(-50%) translateY(0); }
.ag-toast svg { width: 18px; height: 18px; stroke: var(--gold-light); }

/* ── Section scaffolding ── */
.section { padding: 3.25rem 0; }
.section-tight { padding: 2.75rem 0; }
/* scroll spotlight — tintable sections sit in faint tint, fade to white when centred (logic in ag.js) */
.tintable { background: var(--bg-2); transition: background 0.55s ease; }
.tintable.lit { background: var(--bg); }
@media (prefers-reduced-motion: reduce) { .tintable { transition: none; } }
.grid-products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-stacks { grid-template-columns: repeat(3, 1fr); max-width: 980px; margin-inline: auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .grid-products { grid-template-columns: repeat(3, 1fr); }
  .ag-footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  :root { --navh: 88px; }
  .ag-logo img { height: 62px; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 1.3rem; }
  .ag-nav-links, .ag-nav-right .btn { display: none; }
  .ag-burger { display: block; }
  .ag-logo img { height: 56px; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .grid-stacks { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 2.75rem 0; }
  /* left-aligned mobile footer throughout — consistent, structured rhythm */
  .ag-footer { padding-top: 2.5rem; text-align: left; }
  .ag-footer-top { grid-template-columns: 1fr 1fr; gap: 1.75rem 1.5rem; text-align: left; }
  .ag-footer-top > div:first-child { grid-column: 1 / -1; text-align: left; }
  .ag-footer img.fl { height: 46px; margin: 0 0 0.9rem; display: block; }
  .ag-footer-top > div:first-child .ag-footer-blurb { max-width: 42ch; margin-left: 0; margin-right: 0; }
  .ag-footer-top > div:first-child .ag-social { justify-content: flex-start; }
  .ag-footer-top > div:last-child { grid-column: 1 / -1; }
  .ag-footer-top > div:last-child .ag-news-form { max-width: 420px; margin: 0; }
  .ag-footer-top > div:last-child .ag-foot-install { max-width: 420px; }
  /* mobile: tighter overall, bigger icon (near-full button height), bigger
     left-aligned text — reads more like an app badge than a centered pill */
  .ag-foot-install { height: auto; justify-content: flex-start; padding: 0.45rem 0.8rem; gap: 0.85rem; }
  .ag-foot-install img { width: 42px; height: 42px; }
  .ag-foot-install span { font-size: 0.85rem; letter-spacing: 0.04em; }
  .ag-legal { text-align: left; }
  .ag-footer-bar { flex-direction: column; align-items: flex-start; text-align: left; gap: 0.9rem; }
  .ag-footer-bar > span:last-child { flex-wrap: wrap; justify-content: flex-start; gap: 0.6rem 1.2rem !important; }
  /* narrow dropdown anchored under the burger icon (top-right), not a full-width band */
  /* dropdown reads as an extension of the nav bar itself — flush to its bottom
     edge and the screen's right edge, square corners like the rest of the site
     (matches the cart drawer's flat, bordered-panel treatment) */
  .ag-mobile-open .ag-nav-links { display: flex; position: absolute; top: var(--navh); right: 0; left: auto; flex-direction: column; align-items: flex-start; background: #fff; padding: 1.4rem 2rem; gap: 1.1rem; width: max-content; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); }
}
@media (max-width: 560px) {
  /* Kept as a single row (not stacked) and shrunk throughout — stacking the
     two buttons cost more vertical space than it saved, which is why the
     card used to require scrolling to reach "I Agree" on a phone screen. */
  .ag-gate-head { padding: 0.9rem 1.5rem 0.6rem; }
  .ag-gate-head img { height: 30px; margin-bottom: 0.4rem; }
  .ag-gate-head h2 { font-size: 1.2rem; }
  .ag-gate-head p { font-size: 0.79rem; margin-top: 0.3rem; line-height: 1.38; }
  .ag-gate-body { padding: 0.65rem 1.5rem 0.75rem; }
  .ag-gate-list { gap: 0.4rem; }
  .ag-gate-list li { font-size: 0.75rem; line-height: 1.32; gap: 0.5rem; }
  .ag-gate-list li svg { width: 14px; height: 14px; margin-top: 2px; }
  .ag-gate-fine { font-size: 0.65rem; margin-top: 0.55rem; padding-top: 0.55rem; line-height: 1.35; }
  .ag-gate-actions { padding: 0 1.5rem 1rem; gap: 0.55rem; }
  .ag-gate-actions .btn { padding: 0.6rem 0.5rem; font-size: 0.64rem; letter-spacing: 0.03em; white-space: normal; text-align: center; line-height: 1.25; }
}
@media (max-width: 460px) {
  /* 2-up product grid on phones (Amazon-style side-by-side), compacted to fit two cards per row */
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .grid-stacks { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .ag-card-body { padding: 0.8rem 0.85rem 0.9rem; }
  .ag-card-name { font-size: 1.05rem; }
  .ag-card-tagline { font-size: 0.58rem; margin: 0.25rem 0 0.45rem; }
  .ag-card-desc { margin: 0 -0.85rem; padding: 0.55rem 0.85rem 0.6rem; }
  .ag-card-blurb { font-size: 0.72rem; -webkit-line-clamp: 2; }
  .ag-card-price { font-size: 1.1rem; }
  .ag-card-foot { flex-direction: column; align-items: stretch; gap: 0.5rem; }
  .ag-card-add { justify-content: center; padding: 0.5rem 0.7rem; }
  /* smaller Out of Stock badge on the 2-up phone grid so it covers less of the (smaller) vial */
  .ag-card-soon-badge { top: 0.5rem; left: 0.5rem; font-size: 0.5rem; letter-spacing: 0.07em; padding: 0.24rem 0.42rem; }
  .ag-card-save-badge { top: 0.5rem; left: 0.5rem; font-size: 0.5rem; letter-spacing: 0.06em; padding: 0.24rem 0.42rem; }
}
