/* Shared by pharmacy-student.html and pharmacy-student-thanks.html. Mobile first. */
:root {
  --ink: #141414;
  --gold: #c9a250;
  --gold-text: #a9843c;   /* large text on white only */
  --white: #ffffff;
  --tint: #f5f4f0;
  --text: #141414;
  --muted: #4a4a4a;
  --on-dark: #e8e6e1;
  --on-dark-muted: #b4b0a8;
  --line: #dcdad4;
  --max: 1120px;
  --gutter: clamp(16px, 4vw, 48px);
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.2; margin: 0; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.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;
}
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dark { background: var(--ink); color: var(--on-dark); }

/* Signature 45-degree marker: gold rule, then a slash */
.mark { display: block; position: relative; width: 66px; height: 12px; margin-bottom: 16px; }
.mark::before { content: ""; position: absolute; left: 0; top: 4.5px; width: 46px; height: 3px; background: var(--gold); }
.mark::after {
  content: ""; position: absolute; right: 0; top: 0; width: 18px; height: 12px;
  background: var(--gold); clip-path: polygon(12px 0, 100% 0, 6px 100%, 0 100%);
}

/* Header */
.site-top { border-top: 3px solid var(--gold); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.brand img { height: 48px; width: auto; }
.tagline { margin: 0; font-family: var(--head); font-weight: 600; font-size: 12px; color: var(--gold); }

/* Hero */
.hero-grid { display: grid; gap: 14px; padding-top: 6px; padding-bottom: 28px; }
.hero h1 { color: var(--white); font-size: 26px; letter-spacing: -.01em; margin-bottom: 12px; }
.hero-res { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.hero-res img { width: 76px; height: auto; box-shadow: 0 6px 18px rgba(0,0,0,.5); }
.res-title { margin: 0 0 2px; font-family: var(--head); font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--white); }
.subhead { margin: 0; font-size: 14px; line-height: 1.4; color: var(--on-dark); }
.band-hero {
  height: 14px; width: 62%; background: var(--gold);
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}

/* Opt-in form */
.form-card { background: var(--white); color: var(--ink); border-top: 3px solid var(--gold); padding: 14px 16px 16px; }
.opt-in { position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { margin-bottom: 8px; min-width: 0; }
.field label { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 600; line-height: 1.4; }
.field input, .field select {
  display: block; width: 100%; height: 46px; padding: 0 12px;
  font-family: var(--body); font-size: 16px; color: var(--ink);
  background: var(--white); border: 1.5px solid #6b6b6b; border-radius: 0;
}
.field input:focus-visible, .field select:focus-visible, .consent input:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 1px;
}
.consent { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; margin: 2px 0 6px; font-size: 13px; line-height: 1.4; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.fine { margin: 0 0 4px; font-size: 12px; line-height: 1.4; color: var(--muted); }
.fine-strong { margin-bottom: 10px; color: var(--ink); font-weight: 600; }

.btn {
  display: block; width: 100%; padding: 14px 20px; border: 0; cursor: pointer;
  background: var(--gold); color: var(--ink);
  font-family: var(--head); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-align: center; text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: #d8b263; }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.dark .btn:focus-visible { outline-color: var(--white); }
.form-card .btn:focus-visible { outline-color: var(--ink); }

/* Sections */
.section { padding: 56px 0; }
.tint { background: var(--tint); }
.section h2 { font-size: 26px; color: var(--ink); margin-bottom: 16px; }
.lead { font-size: 17px; }

/* Five milestones: the rising line from the PDF cover */
.rise { margin-top: 24px; }
.rise-sm { width: 100%; margin-bottom: 16px; }
.rise-lg { display: none; }
.rise-list { list-style: none; margin: 0; padding: 0; }
.rise-list li { display: grid; grid-template-columns: 44px 1fr; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 600; }
.rise-list li:last-child { border-bottom: 1px solid var(--line); }
.rise-num { font-family: var(--head); font-weight: 700; font-size: 20px; color: var(--gold-text); }

/* Sample items */
.five { list-style: none; margin: 24px 0 0; padding: 0; }
.five li { padding: 18px 0; border-top: 1px solid var(--line); }
.five h3 { font-size: 17px; margin-bottom: 6px; color: var(--ink); }
.five p { margin: 0; }

.who { list-style: none; margin: 0; padding: 0; }
.who li { position: relative; padding: 0 0 12px 26px; }
.who li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 10px;
  background: var(--gold); clip-path: polygon(10px 0, 100% 0, 4px 100%, 0 100%);
}

/* About */
.about { display: grid; gap: 24px; align-items: center; }
.about img { width: 140px; height: 140px; object-fit: cover; border-radius: 50%; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; padding-right: 28px; cursor: pointer; list-style: none;
  font-family: var(--head); font-weight: 700; font-size: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; font-weight: 600; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; }

/* Cover-style band: gold slash, then the black panel with a 45-degree edge */
.band { --h: 56px; position: relative; height: var(--h); margin-bottom: -1px; background: var(--white); overflow: hidden; }
.band::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--h) * 1.5);
  background: var(--gold); clip-path: polygon(var(--h) 0, 100% 0, calc(100% - var(--h)) 100%, 0 100%);
}
.band::after {
  content: ""; position: absolute; left: calc(var(--h) * 1.8); right: 0; top: 0; bottom: 0;
  background: var(--ink); clip-path: polygon(var(--h) 0, 100% 0, 100% 100%, 0 100%);
}

/* Closing form */
.closing { position: relative; padding: 32px 0 56px; }
.closing h2 { color: var(--white); font-size: 26px; margin-bottom: 12px; }
.closing-grid { display: grid; gap: 24px; }

/* Thanks page */
.thanks { padding: 40px 0 64px; }
.thanks h1 { color: var(--white); font-size: 30px; margin-bottom: 14px; }
.thanks .btn { max-width: 360px; }
.next { padding: 48px 0 64px; }
.next .btn { max-width: 360px; }

/* Footer */
footer { background: var(--ink); color: var(--on-dark-muted); padding: 32px 0; text-align: center; border-top: 1px solid #2c2c2c; }
footer a { color: var(--on-dark); }
.foot-tag { margin: 0 0 16px; font-family: var(--head); font-weight: 600; color: var(--gold); }
.disclaimer { max-width: 780px; margin: 0 auto 16px; font-size: 12px; line-height: 1.55; color: var(--on-dark-muted); }
.footer-links { display: flex; gap: 8px 20px; justify-content: center; flex-wrap: wrap; font-size: 13px; margin: 0 0 12px; }
.copyright { font-size: 12px; margin: 0; }

/* Cookie consent banner (rendered by analytics.js) */
.consent-banner {
  /* Slim on phones so a first-time visitor can still see the form's button */
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--white); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(0,0,0,.2);
  padding: 8px 16px 10px; display: flex; flex-direction: column; gap: 6px;
  z-index: 1200;
}
.consent-banner p { margin: 0; font-size: 12px; line-height: 1.35; color: #333; }
.consent-banner-actions { display: flex; gap: 10px; }
.consent-banner .btn { flex: 1 1 0; width: auto; padding: 7px 16px; font-size: 14px; border: 1px solid var(--gold); }
.consent-banner .btn-outline { background: transparent; }
.consent-banner .btn:focus-visible { outline-color: var(--ink); }

@media (min-width: 768px) {
  .brand img { height: 64px; }
  .tagline { font-size: 14px; }
  .hero-grid { grid-template-columns: 1fr 340px; gap: 32px; align-items: center; padding-top: 24px; padding-bottom: 56px; }
  .hero h1 { font-size: 34px; margin-bottom: 24px; }
  .hero-res { grid-template-columns: 132px 1fr; gap: 20px; }
  .hero-res img { width: 132px; }
  .res-title { font-size: 17px; margin-bottom: 6px; }
  .subhead { font-size: 16px; line-height: 1.5; }
  .form-card { padding: 22px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .section { padding: 80px 0; }
  .section h2, .closing h2 { font-size: 32px; }
  .rise-sm { display: none; }
  .rise { --w: min(calc(100vw - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter))); position: relative; margin-top: 56px; }
  .rise-lg { display: block; position: absolute; left: 0; top: 0; width: 100%; overflow: visible; }
  .rise-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 12px; }
  .rise-list li, .rise-list li:last-child { display: block; padding: calc(var(--w) * var(--y) + 18px) 8px 0 0; border: 0; font-size: 14px; line-height: 1.35; }
  .rise-num { display: block; }
  .about { grid-template-columns: 180px 1fr; gap: 40px; }
  .about img { width: 180px; height: 180px; }
  .band { --h: 88px; }
  .closing { padding: 48px 0 80px; }
  .closing-grid { grid-template-columns: 1fr 340px; gap: 32px; align-items: center; }
  .consent-banner {
    left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto;
    border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
    flex-direction: row; align-items: center; gap: 20px; padding: 14px 18px;
  }
  .consent-banner p { flex: 1 1 auto; font-size: 13px; }
  .consent-banner .btn { padding: 10px 20px; }
  .consent-banner-actions { flex: 0 0 auto; }
}
@media (min-width: 1100px) {
  .hero-grid, .closing-grid { grid-template-columns: 1fr 400px; gap: 64px; }
  .hero h1 { font-size: 44px; }
  .hero-res { grid-template-columns: 160px 1fr; }
  .hero-res img { width: 160px; }
  .rise-list li, .rise-list li:last-child { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
