/* =========================================================
   Musky Metrics — marketing site styles
   ========================================================= */

:root {
  --navy-950: #071d33;
  --navy-900: #0a2647;
  --navy-800: #0f3a63;
  --blue-700: #135ca0;
  --blue-600: #1a6bb8;
  --blue-500: #1f7bc9;
  --blue-400: #4a9adf;
  --gold-400: #f0b93d;
  --gold-500: #e0a52a;
  --red-600: #c0392b;
  --ink-900: #101923;
  --ink-700: #33404d;
  --ink-500: #5b6b7a;
  --paper: #ffffff;
  --paper-tint: #f4f8fc;
  --line: #e1e8f0;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --shadow-card: 0 20px 40px -20px rgba(7, 29, 51, 0.35);
  --shadow-soft: 0 10px 30px -15px rgba(7, 29, 51, 0.25);
  --max-width: 1180px;

  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; color: var(--ink-700); }

.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; left: -999px; top: 0; background: var(--navy-950); color: #fff;
  padding: .75em 1.25em; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

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

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  background: rgba(19, 92, 160, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.eyebrow--gold { color: var(--gold-500); background: rgba(240, 185, 61, 0.15); }
.eyebrow--light { color: #cfe3f7; background: rgba(255,255,255,0.12); }

.section { padding: 88px 0; }
.section--tint { background: var(--paper-tint); }
.section--navy { background: linear-gradient(180deg, var(--navy-950), var(--navy-800)); color: #e9f1fa; }
.section--navy p { color: #c3d6e8; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
.section-head p { font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-400); color: var(--navy-950); box-shadow: var(--shadow-soft); }
.btn--gold:hover { background: var(--gold-500); }
.btn--ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--navy { background: var(--navy-900); color: #fff; }
.btn--navy:hover { background: var(--navy-950); }
.btn--outline { border-color: var(--navy-900); color: var(--navy-900); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(7, 29, 51, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header__inner {
  display: flex; align-items: center; gap: 24px;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 1.15rem; margin-right: auto; }
.brand__mark { border-radius: 50%; }
.brand__text strong { color: var(--gold-400); font-weight: 800; }

.main-nav { display: none; }
.main-nav ul { display: flex; gap: 28px; }
.main-nav a { color: #d7e6f4; font-weight: 600; font-size: 0.96rem; white-space: nowrap; padding: 8px 0; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: #fff; border-color: var(--gold-400); }

.site-header__cta { display: none; gap: 12px; }

.nav-toggle {
  margin-left: auto;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle__bar { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  max-height: 0; overflow: hidden; background: var(--navy-950);
  transition: max-height .25s ease;
}
.mobile-nav.is-open { max-height: 480px; }
.mobile-nav ul { padding: 8px 24px; }
.mobile-nav a { display: block; padding: 12px 0; color: #e6eef6; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,0.08); }
.mobile-nav__cta { display: flex; gap: 12px; padding: 16px 24px 24px; }

@media (min-width: 980px) {
  .main-nav { display: block; }
  .site-header__cta { display: flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}
@media (min-width: 980px) and (max-width: 1179px) {
  .site-header__inner { gap: 18px; }
  .main-nav ul { gap: 16px; }
  .site-header__cta .store-badges { --badge-h: 32px; gap: 8px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: radial-gradient(1200px 600px at 80% -10%, #1a4d80 0%, transparent 60%), linear-gradient(160deg, var(--navy-950) 10%, var(--navy-800) 55%, var(--blue-700) 130%);
  color: #fff;
  padding: 72px 0 100px;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  color: #fff;
}
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero__lead { font-size: 1.2rem; color: #cfe0f0; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero__trust { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 0.88rem; color: #a9c2da; }
.hero__trust strong { color: #fff; }
.hero__art { position: relative; justify-self: center; }
.hero__art img {
  border-radius: 34px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
  border: 6px solid rgba(255,255,255,0.08);
  max-width: 300px;
}

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr 0.9fr; }
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.feature-card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-800));
  color: #fff; font-size: 1.4rem; margin-bottom: 1rem;
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { margin: 0; font-size: 0.96rem; }
.feature-card a.feature-card__link { display: inline-block; margin-top: .9rem; font-weight: 700; color: var(--blue-600); font-size: 0.9rem; }

/* ---------- Media/text split rows ---------- */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
.split img { border-radius: var(--radius-lg); box-shadow: var(--shadow-card); margin: 0 auto; max-width: 280px; }
.split ul { margin-top: 1.2rem; }
.split ul li {
  display: flex; gap: 10px; padding: 8px 0; color: var(--ink-700); font-weight: 500;
}
.split ul li::before { content: "\2713"; color: var(--blue-600); font-weight: 800; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}

/* ---------- Influencer buckets ---------- */
.bucket-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.bucket-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 26px;
}
.bucket-card h3 { color: var(--gold-400); font-size: 1.05rem; }
.bucket-card ul li { padding: 5px 0; color: #cddceb; font-size: 0.95rem; border-bottom: 1px dashed rgba(255,255,255,0.08); }
.bucket-card ul li:last-child { border-bottom: none; }
.bucket-card p { color: #cddceb; font-size: 0.95rem; margin: 0; }

/* ---------- Stats ---------- */
.stat-row {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  text-align: center;
  margin-top: 3rem;
}
.stat-row strong { display: block; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold-400); }
.stat-row span { font-size: 0.9rem; color: #b9cee2; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.testimonial {
  background: var(--paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 28px;
  margin: 0;
}
.testimonial p { font-size: 1.05rem; color: var(--ink-900); font-style: italic; }
.testimonial__person { display: flex; align-items: center; gap: 12px; margin-top: 1.2rem; }
.testimonial__person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial__person strong { display: block; font-size: 0.92rem; }
.testimonial__person span { font-size: 0.82rem; color: var(--ink-500); }
.testimonial__person span a { display: block; margin-top: 4px; color: var(--blue-700); font-weight: 600; }
.testimonial__person span a:hover { text-decoration: underline; }
.testimonial--feature { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.testimonial--feature > p, .testimonial--feature > footer { margin-left: 28px; margin-right: 28px; }
.testimonial--feature > footer { margin-bottom: 28px; }
.testimonial__photo { display: block; margin-bottom: 1.2rem; }
.testimonial__photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 20%; }
.testimonial p.testimonial__note { font-style: normal; font-size: 1rem; color: var(--ink-700); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-950); color: #fff; padding: 56px 0; }
.cta-band__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.cta-band h2 { color: #fff; font-size: 1.6rem; margin-bottom: .3em; }
.cta-band p { color: #c3d6e8; margin: 0; max-width: 46ch; }
/* Official store badges, shown at the same visible height. The Google Play
   artwork carries clear space of 41px around its 564x168 badge, so its image
   is taller and pulled in by negative margins to match Apple's. */
.store-badges { --badge-h: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.store-badge { display: block; line-height: 0; border-radius: 9px; }
.store-badge:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 3px; }
.store-badge img { height: var(--badge-h); width: auto; }
.store-badge--play img {
  height: calc(var(--badge-h) * 250 / 168);
  margin: calc(var(--badge-h) * -41 / 168);
}
.site-header__cta .store-badges { --badge-h: 40px; flex-wrap: nowrap; gap: 10px; }
.mobile-nav__cta .store-badges { --badge-h: 44px; }
.hero__actions .store-badges { --badge-h: 54px; }

/* ---------- Story / quote block ---------- */
.story-block {
  background: var(--paper-tint);
  border-radius: var(--radius-lg);
  padding: 48px;
  border-left: 6px solid var(--gold-400);
}
.story-block p:first-of-type::first-letter {
  font-size: 3.2rem; font-weight: 800; color: var(--blue-700); float: left; line-height: 1; margin-right: 10px;
}
.story-block--media { display: grid; gap: 36px; align-items: center; }
.story-block__media { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-block__media figure { margin: 0; }
.story-block__media img { width: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); background: #fff; }
.story-block__media figcaption { margin-top: 10px; font-size: 0.82rem; color: var(--ink-500); text-align: center; }
@media (min-width: 900px) {
  .story-block--media { grid-template-columns: 1.15fr 1fr; }
}
@media (max-width: 560px) {
  .story-block { padding: 32px 22px; }
}

/* ---------- Pricing plans ---------- */
.plan-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: 780px;
  margin: 0 auto;
}
.plan-card {
  position: relative;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
}
.plan-card--featured { border-color: var(--gold-400); box-shadow: var(--shadow-card); }
.plan-card__badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold-400); color: var(--navy-950);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.plan-card h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-500); }
.plan-card__price { font-size: 2.6rem; font-weight: 800; color: var(--navy-950); margin: 0.2em 0; }
.plan-card__price span { font-size: 1rem; font-weight: 600; color: var(--ink-500); }
.plan-card__sub { font-size: 0.9rem; color: var(--ink-500); margin-bottom: 1.5rem; }
.plan-card p.plan-card__desc { font-size: 0.95rem; }

.compare-table-wrap { overflow-x: auto; margin-top: 1rem; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.compare-table thead th { color: var(--ink-500); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.compare-table th:not(:first-child), .compare-table td:not(:first-child) { text-align: center; }
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.yes { color: var(--blue-600); font-weight: 700; }
.compare-table td.no { color: var(--ink-500); }
.compare-table th.premium-col { color: var(--gold-500); }

/* ---------- Pricing-style callouts (as-seen-on etc.) ---------- */
.press-strip {
  display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: center;
  padding: 28px 0; color: var(--ink-500); font-weight: 600; font-size: 0.9rem;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #cddceb; padding: 64px 0 0; }
.site-footer__inner {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.site-footer__brand { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__brand p { color: #fff; margin: 0; font-size: 1.05rem; }
.site-footer__brand strong { color: var(--gold-400); }
.site-footer__brand span { display: block; font-size: 0.8rem; color: #9fb6cb; font-weight: 400; }
.site-footer__nav { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.site-footer__nav h3 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.9rem; }
.site-footer__nav li { margin-bottom: 8px; }
.site-footer__nav a { font-size: 0.92rem; color: #b9cee2; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__legal { padding: 22px 24px; font-size: 0.82rem; color: #8fa6bd; }

@media (min-width: 700px) {
  .site-footer__inner { grid-template-columns: 1.2fr 2fr; }
  .site-footer__nav { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.narrow { max-width: 760px; margin: 0 auto; }

/* ---------- Simple content pages (privacy/terms) ---------- */
.prose h2 { margin-top: 2em; font-size: 1.35rem; }
.prose h3 { margin-top: 1.5em; font-size: 1.1rem; }
.prose ul { margin: 0 0 1em; padding-left: 1.4em; list-style: disc; }
.prose li { margin-bottom: .4em; color: var(--ink-700); }

/* ---------- Contact form ---------- */
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.contact-methods { display: grid; gap: 18px; }
.contact-methods a { font-weight: 700; color: var(--blue-600); }

/* ---------- Checkout ---------- */
.checkout__choice { border: 0; margin: 0 0 2rem; padding: 0; display: grid; gap: 14px; }
.checkout__choice legend { padding: 0; margin-bottom: 1rem; }
.checkout__choice legend h2 { margin: 0; font-size: 1.5rem; }
@media (min-width: 700px) { .checkout__choice { grid-template-columns: 1fr 1fr; } }
.choice-card {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start;
  padding: 20px; border: 2px solid var(--line); border-radius: var(--radius-md); cursor: pointer;
  background: var(--paper);
}
.choice-card:has(input:checked) { border-color: var(--gold-400); box-shadow: var(--shadow-soft); }
.choice-card input { grid-row: span 2; margin-top: .3em; width: 18px; height: 18px; accent-color: var(--navy-900); }
.choice-card__title { font-weight: 800; color: var(--navy-950); }
.choice-card__sub { font-size: .92rem; color: var(--ink-500); }
.checkout__panel {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-soft);
}
.checkout__panel h2 { font-size: 1.4rem; }
.checkout__panel .btn + .btn { margin-left: 8px; }
.checkout__terms { background: var(--paper-tint); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .95rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; color: var(--ink-900); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink-900); padding: 12px 14px;
  border: 1px solid #c9d5e2; border-radius: var(--radius-sm); background: #fff;
}
.field input:focus, .field textarea:focus { outline: 3px solid rgba(31, 123, 201, .35); border-color: var(--blue-500); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red-600); }
.field textarea { resize: vertical; min-height: 110px; }
.field__optional { font-weight: 400; color: var(--ink-500); }
.field__hint { font-size: .85rem; color: var(--ink-500); margin: .35rem 0 0; }
.field__error { font-size: .88rem; color: var(--red-600); font-weight: 600; margin: .35rem 0 0; }
.checkout__status { min-height: 1.5em; font-size: .95rem; }
.checkout__status--error { color: var(--red-600); font-weight: 600; }
.checkout__done:focus { outline: none; }
.checkout__step { font-size: 1.1rem; margin: 1.5rem 0 .25rem; }
.checkout__account { margin-bottom: 1.25rem; }
.checkout__choice--compact { margin-bottom: 1.5rem; gap: 10px; }
.checkout__choice--compact legend { margin-bottom: .5rem; }
.checkout__choice--compact legend .checkout__step { margin: 0; }
.checkout__choice--compact .choice-card { padding: 14px 16px; }
.checkout__choice--compact .field__error { grid-column: 1 / -1; }
.signin-buttons { display: grid; gap: 10px; margin: 1rem 0; }
.signin-buttons .btn + .btn { margin-left: 0; }
.signin-divider { display: flex; align-items: center; gap: 12px; margin: 1.25rem 0; font-size: .88rem; color: var(--ink-500); }
.signin-divider::before, .signin-divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.signin-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 1rem 0 0; }
.link-button {
  background: none; border: 0; padding: 0; font: inherit; font-size: .92rem; font-weight: 700;
  color: var(--blue-600); cursor: pointer; text-decoration: underline;
}
.link-button[hidden] { display: none; }
.promo__row { display: flex; gap: 8px; }
.promo__row input { flex: 1; min-width: 0; text-transform: uppercase; }
.promo__row .btn { flex: none; margin-left: 0; }
.promo__price { font-size: .95rem; font-weight: 600; color: var(--ink-900); margin: .5rem 0 0; }

/* ---------- Gift link page ---------- */
.gift__code { margin-bottom: 2rem; }
.gift__code-value {
  font: 800 1.8rem/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em;
  color: var(--navy-950); background: var(--paper-tint); border-radius: var(--radius-sm);
  padding: 14px 16px; overflow-wrap: anywhere; user-select: all;
}
.gift__steps { padding-left: 1.3rem; display: grid; gap: 1rem; }
.gift__badges { margin-top: .75rem; flex-wrap: wrap; }

/* ---------- Gift Certificate (printed Gifts) ---------- */
.certificate-page__intro { margin-bottom: 2rem; }
.certificate-page__intro h1 { margin: .5rem 0 .75rem; }
/* The dotted line is where to cut: 7 × 5 inches fits a 5 × 7 card. */
.certificate-cut {
  width: 100%; max-width: 7in; margin: 0 auto; padding: 10px;
  border: 2px dashed #b8c6d6; border-radius: 4px;
}
.certificate {
  aspect-ratio: 7 / 5; display: flex; flex-direction: column; justify-content: space-between; gap: 6px;
  padding: 22px 26px; color: var(--ink-900); background: #fff;
  border: 3px solid var(--navy-900); outline: 1px solid var(--gold-400); outline-offset: -9px;
  text-align: center;
}
.certificate p { margin: 0; }
.certificate__head { display: flex; align-items: center; justify-content: center; gap: 12px; }
.certificate__logo { width: 48px; height: 48px; }
.certificate__head > div { text-align: left; }
.certificate__brand { font-size: .72rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--blue-700); }
.certificate__title { margin: 0; font-size: 1.7rem; line-height: 1.1; color: var(--navy-950); }
.certificate__for { font-size: .95rem; color: var(--ink-700); }
.certificate__name { font-size: 1.6rem; font-weight: 800; line-height: 1.2; color: var(--navy-950); overflow-wrap: anywhere; }
.certificate__message {
  font-style: italic; font-size: .9rem; line-height: 1.4; color: var(--ink-700);
  max-width: 34em; margin: 0 auto !important; white-space: pre-line; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.certificate__message[hidden] { display: none; }
.certificate__code-box { border: 1px solid var(--line); background: var(--paper-tint); border-radius: 8px; padding: 6px 12px; margin: 0 auto; }
.certificate__label { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-500); }
.certificate__code {
  font: 800 1.45rem/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .08em;
  color: var(--navy-950); overflow-wrap: anywhere;
}
.certificate__steps {
  list-style-position: inside; padding: 0; margin: 0; font-size: .8rem; line-height: 1.45; color: var(--ink-700);
}
.certificate__fine { font-size: .68rem; line-height: 1.4; color: var(--ink-500); overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .certificate { aspect-ratio: auto; padding: 20px 16px; gap: 10px; }
  .certificate__title { font-size: 1.35rem; }
  .certificate__name { font-size: 1.3rem; }
  .certificate__code { font-size: 1.15rem; }
}
@media print {
  @page { size: letter portrait; margin: .5in; }
  .site-header, .site-footer, .skip-link, .no-print { display: none !important; }
  body { background: #fff; box-shadow: none; }
  .certificate-page { padding: 0 !important; }
  .certificate-page .wrap { max-width: none; padding: 0; }
  .certificate-cut { width: 7.25in; max-width: none; padding: .125in; border-radius: 0; }
  .certificate { aspect-ratio: auto; height: 5in; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }
