/* get.aimcellhealth.com — splash page.
 *
 * Palette is the real AIM theme, with the two a11y corrections that the brand's
 * own doc gets wrong:
 *   - Amber #F2A007 is a FILL ONLY. As a foreground on any light ground it
 *     measures ~1.8-2.1:1, which fails AA outright. Amber TEXT uses --accent-text
 *     (#916004, same hue darkened past 4.5:1 on ground, soft and white).
 *   - Ink on amber, never white on amber: white-on-amber is 2.14:1, ink is 6.66:1.
 *     Every amber button below therefore carries ink text.
 * The palette has no green and no red on purpose.
 */

@font-face {
  font-family: 'Instrument Sans';
  /* One variable file covers 400-700: Google serves the same woff2 for each
     weight, so shipping four copies was 90KB of the identical bytes. */
  src: url('fonts/InstrumentSans-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-400-italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url('fonts/Caveat-700-normal.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --accent: #F2A007;
  --accent-dk: #C8850A;
  --accent-text: #916004;
  --ink: #4A1D0C;
  --muted: #7C5949;
  --ground: #FBF3E7;
  --soft: #FEF2E1;
  --card: #F6E9DB;
  --line: #E6D5C3;
  --band: #262626;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --script: 'Caveat', ui-rounded, cursive;
  --wrap: 1120px;
  --radius: 18px;
}

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

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.top {
  padding: 28px 20px 8px;
  display: flex;
  justify-content: center;
}
.logo img { width: 116px; height: auto; }

main { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---- hero ---------------------------------------------------------- */
.hero { text-align: center; padding: 40px 0 8px; }

.eyebrow {
  font-family: var(--script);
  /* Amber as text would fail contrast; this is the darkened hue. */
  color: var(--accent-text);
  font-size: 1.5rem;
  margin: 0 0 6px;
}

.hero h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 0 0 18px;
}
/* The brand's one type flourish: serif italic on the closing phrase only. */
.hero h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1em; letter-spacing: -0.01em; }

.lede {
  max-width: 34rem;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 1.05rem;
}

.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 0 0 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease;
}
/* Ink on amber = 6.66:1. Never white here. */
.btn-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-dk); border-color: var(--accent-dk); }
.btn:active { transform: translateY(1px); }

/* ---- groups -------------------------------------------------------- */
.group { padding: 44px 0 4px; }
.group-head { margin-bottom: 20px; }
.group-head h2 {
  font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 3px;
}
.group-head p { margin: 0; color: var(--muted); font-size: 0.97rem; }

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

.card {
  display: flex; flex-direction: column;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(74, 29, 12, .08); }
.card:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

.card-shot { display: block; background: var(--card); padding: 14px; }
.card-shot img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }

.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-name { font-weight: 600; font-size: 1.02rem; }
.card-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.5; flex: 1; }

/* margin-top:auto, not a fixed gap: on phones .card-desc is display:none, so the
   flex:1 that used to push this down disappears and prices stop lining up
   across a row. auto pins the row to the card bottom either way. */
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 8px; }
.card-price { font-weight: 600; font-size: 0.98rem; }
.card-go {
  display: inline-flex; align-items: center; gap: 5px;
  color: var(--accent-text); font-weight: 600; font-size: 0.88rem;
}
.card-go svg { transition: transform .15s ease; }
.card:hover .card-go svg { transform: translateX(3px); }

/* ---- tail + footer -------------------------------------------------- */
.tail {
  margin: 48px 0 8px;
  padding: 34px 26px;
  background: var(--band);
  border-radius: var(--radius);
  text-align: center;
}
/* On the dark band amber clears 7:1, so the heading text can carry it. */
.tail p { margin: 0 auto 18px; max-width: 34rem; color: #F3EAE2; font-size: 1.03rem; }

.foot {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px 20px 44px;
  text-align: center;
  font-size: 0.87rem;
  color: var(--muted);
}
.foot p { margin: 0 0 6px; }
/* Padded to a 24px-high target: it is a standalone link, not one inside a
   sentence, so it does not get WCAG 2.5.8's inline exception. */
.foot a { color: var(--accent-text); font-weight: 600; text-decoration: none;
          display: inline-block; padding: 4px 6px; }
.foot a:hover { text-decoration: underline; }
.fine { font-size: 0.8rem; opacity: .85; }

@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .card-desc { display: none; }        /* on a phone the name + price carry it */
  .cta .btn { width: 100%; }
  .tail { padding: 28px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
