/* piperspin-bonus-it.it — light theme, violet accent */

:root {
  --bg: #ffffff;
  --bg-soft: #f8f5ff;
  --bg-tint: #f1eaff;
  --surface: #ffffff;
  --ink: #1c1430;
  --ink-2: #4a4060;
  --muted: #7a6f92;
  --line: #e8e1f5;
  --line-strong: #d6c9f0;

  --violet: #7c3aed;
  --violet-600: #6d28d9;
  --violet-700: #5b21b6;
  --violet-300: #c4a7ff;
  --violet-100: #ede4ff;
  --grad: linear-gradient(135deg, #9b5cff 0%, #7c3aed 45%, #5b21b6 100%);

  --ok: #0f9d6b;
  --warn: #c2410c;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(40, 16, 90, .06), 0 2px 8px rgba(40, 16, 90, .05);
  --shadow: 0 10px 30px -12px rgba(76, 29, 149, .22), 0 2px 6px rgba(40, 16, 90, .05);
  --shadow-lg: 0 30px 60px -24px rgba(76, 29, 149, .38);

  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;

  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 1.0625rem/1.72 var(--font-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--violet-600); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-700); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: clamp(1.18rem, 1.8vw, 1.38rem); font-weight: 700; margin-top: 1.9em; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
strong { color: var(--ink); font-weight: 700; }
code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .9em; background: var(--bg-tint); color: var(--violet-700); padding: .1em .4em; border-radius: 6px; }
:focus-visible { outline: 3px solid var(--violet-300); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.visually-hidden { position: absolute !important; 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: 12px; top: -60px; z-index: 200; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  --btn-pad: .82em 1.5em;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: var(--btn-pad);
  border: 0; border-radius: 999px;
  background: var(--grad); color: #fff;
  font: 700 1rem/1.2 var(--font-body);
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .65), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(124, 58, 237, .75); filter: saturate(1.1); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--sm { --btn-pad: .58em 1.15em; font-size: .92rem; }
.btn--lg { --btn-pad: 1em 1.8em; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn--ghost { background: #fff; color: var(--violet-700); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn--ghost:hover { color: var(--violet-700); background: var(--bg-soft); box-shadow: inset 0 0 0 1.5px var(--violet-300); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 40px; height: 40px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font: 800 1.32rem/1 var(--font-head); color: var(--ink); letter-spacing: -.02em; }
.logo__name span { color: var(--violet); }
.logo__tag { font: 700 .62rem/1 var(--font-body); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__link { display: block; padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-weight: 600; font-size: .95rem; text-decoration: none; transition: background .15s, color .15s; }
.nav__link:hover { background: var(--bg-tint); color: var(--violet-700); }
.nav__cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before { content: ""; top: -6px; }
.nav-toggle__bars::after { content: ""; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 12px 20px 22px; margin: 0;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: 2px; margin-bottom: 14px; }
  .nav__link { padding: 12px 14px; border-radius: 12px; font-size: 1.02rem; }
  .nav__cta { display: flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 420px) { .header-actions .btn { display: none; } .logo__tag { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 26px 0 56px;
  background:
    radial-gradient(900px 420px at 88% -10%, rgba(155, 92, 255, .18), transparent 65%),
    radial-gradient(700px 380px at -10% 110%, rgba(124, 58, 237, .10), transparent 60%),
    linear-gradient(180deg, #fbf9ff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }

.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--violet-700); }

/* Author byline — top right of the content */
.byline {
  display: inline-flex; align-items: center; gap: 12px; margin-left: auto;
  padding: 8px 18px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.byline__avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 .95rem/1 var(--font-head); letter-spacing: .02em; flex: none; }
.byline__text { display: flex; flex-direction: column; line-height: 1.25; }
.byline__role { font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }
.byline__name { font: 700 1rem/1.25 var(--font-head); color: var(--ink); }
.byline__date { font-size: .8rem; color: var(--muted); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero h1 { margin-bottom: .45em; }
.text-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--violet-100); color: var(--violet-700); font-size: .8rem; font-weight: 700; line-height: 1.3; }
.badge--ok { background: #e3f7ef; color: var(--ok); }
.badge--ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--age { background: #fff1e8; color: var(--warn); }
.badge--green { background: #e3f7ef; color: var(--ok); }

/* Bonus card */
.bonus-card {
  position: relative; padding: 30px 28px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.bonus-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--grad); }
.bonus-card__ribbon { position: absolute; top: -14px; right: 22px; padding: 6px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.bonus-card__label { font: 700 .82rem/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 8px; }
.bonus-card__amount { font: 800 clamp(2.8rem, 6vw, 3.6rem)/1 var(--font-head); color: var(--ink); margin: 0 0 6px; letter-spacing: -.03em; }
.bonus-card__amount span { color: var(--violet); }
.bonus-card__extra { font-weight: 700; color: var(--violet-700); margin-bottom: 20px; }
.bonus-card__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.bonus-card__facts li { padding: 12px 6px; text-align: center; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.bonus-card__facts strong { display: block; font: 800 1.15rem/1.2 var(--font-head); color: var(--ink); margin-bottom: 2px; }
.bonus-card__code { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; margin-bottom: 16px; border: 1.5px dashed var(--violet-300); border-radius: 12px; background: #fcfaff; font-size: .9rem; font-weight: 600; }
.bonus-card__code code { background: none; padding: 0; font-weight: 800; letter-spacing: .06em; color: var(--violet-700); }
.bonus-card__terms { margin: 14px 0 0; font-size: .76rem; line-height: 1.5; color: var(--muted); text-align: center; }

/* ---------- Stats + TOC ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; margin: -30px 0 0; padding: 0; position: relative; z-index: 2; }
.stat { padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stat__value { display: block; font: 800 1.7rem/1.1 var(--font-head); color: var(--violet-700); }
.stat__label { font-size: .88rem; color: var(--muted); }

.page-toc { margin: 34px 0 10px; padding: 22px 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.page-toc__title { font: 800 .8rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; }
.page-toc ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.page-toc li { counter-increment: toc; }
.page-toc a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; background: #fff; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); font-size: .9rem; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s; }
.page-toc a::before { content: counter(toc, decimal-leading-zero); font-size: .72rem; font-weight: 800; color: var(--violet-300); }
.page-toc a:hover { border-color: var(--violet-300); color: var(--violet-700); }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section--tint { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section__head { max-width: 780px; margin-bottom: 26px; }
.section__head > p { font-size: 1.08rem; color: var(--ink-2); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--violet); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--grad); }
.prose { max-width: 820px; }
.prose > h3:first-child { margin-top: 0; }
.prose h3 { position: relative; padding-left: 16px; }
.prose h3::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--grad); }

.dot-list { list-style: none; padding: 0; }
.dot-list li { position: relative; padding-left: 26px; margin-bottom: .5em; }
.dot-list li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; border-radius: 3px; background: var(--violet); transform: rotate(45deg); opacity: .85; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 12px 16px 12px 58px; margin-bottom: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.section--tint .steps li { background: #fff; }
.steps li::before { content: counter(step); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--violet-100); color: var(--violet-700); font: 800 .9rem/1 var(--font-head); }

.callout { display: flex; gap: 14px; padding: 16px 18px; margin: 0 0 1.2em; background: var(--violet-100); border-radius: 14px; color: var(--ink); }
.callout::before { content: "i"; flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--violet); color: #fff; font: 800 .9rem/1 var(--font-head); }
.callout p { margin: 0; }

/* Tables */
.table-wrap { margin: 0 0 1.3em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: .96rem; min-width: 440px; }
.table th, .table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.table thead th { background: #faf7ff; color: var(--violet-700); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.table tbody th { color: var(--ink); font-weight: 700; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table tbody tr:hover { background: #fcfaff; }
.table .is-total { background: var(--violet-100); }
.table .is-total > * { color: var(--violet-700); font-weight: 800; }

.cta-row { margin-top: 28px; }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: border-color .15s; }
.faq__item[open] { border-color: var(--violet-300); }
.faq__item summary { position: relative; list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font: 700 1.06rem/1.4 var(--font-head); color: var(--ink); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--violet-100); color: var(--violet-700); font: 700 1.2rem/1 var(--font-body); transition: transform .2s; }
.faq__item[open] summary::after { content: "–"; }
.faq__answer { padding: 0 22px 18px; }
.faq__answer p:last-child { margin: 0; }

/* Author box */
.author-box { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; align-items: center; margin: 56px 0; padding: 22px 26px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.author-box__avatar { grid-row: span 2; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #fff; font: 800 1.2rem/1 var(--font-head); }
.author-box__name { margin: 0; font: 800 1.15rem/1.3 var(--font-head); color: var(--ink); }
.author-box__meta { margin: 0; font-size: .9rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 30px; background: #faf8ff; border-top: 1px solid var(--line); font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 40ch; }
.footer-col h2 { font: 800 .8rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a, .footer-link-btn { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover, .footer-link-btn:hover { color: var(--violet-700); text-decoration: underline; }
.footer-link-btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.footer-rg { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 36px; padding: 18px 0; border-block: 1px solid var(--line); }
.footer-rg a { color: var(--ink-2); font-weight: 600; }
.footer-legal { margin-top: 20px; font-size: .84rem; color: var(--muted); }
.footer-legal p { margin-bottom: .8em; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: none; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); transform: translateY(140%); transition: transform .25s ease; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta__text { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.sticky-cta__text strong { display: block; font: 800 1rem/1.2 var(--font-head); color: var(--violet-700); }
@media (max-width: 767px) { .sticky-cta { display: flex; } body { padding-bottom: 84px; } }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; z-index: 150; left: 16px; bottom: 16px; max-width: 420px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: .9rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: .4em; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 767px) { .cookie-banner { left: 12px; right: 12px; bottom: 96px; max-width: none; } }

/* ---------- Legal pages ---------- */
.page-hero { padding: 30px 0 40px; background: linear-gradient(180deg, #fbf9ff, #fff); border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-top: 18px; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { max-width: 70ch; }
.page-hero__updated { font-size: .88rem; color: var(--muted); }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; padding-block: 48px 64px; }
.toc { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; padding: 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); font-size: .92rem; }
.toc h2 { font: 800 .78rem/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 6px; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--violet-700); }
.legal__body { max-width: 780px; }
.legal__body section + section { margin-top: 36px; }
.legal__body h2 { font-size: 1.5rem; }
.legal__body h3 { font-size: 1.1rem; margin-top: 1.3em; }
.notice { padding: 14px 18px; background: #fff7ed; border-left: 4px solid var(--warn); border-radius: 10px; }
.notice p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .bonus-card { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .legal { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
}
@media (max-width: 767px) {
  body { font-size: 1rem; }
  .hero { padding: 18px 0 48px; }
  .hero__top { margin-bottom: 22px; }
  .byline { margin-left: 0; }
  .stats { grid-template-columns: 1fr 1fr; margin-top: -24px; }
  .section { padding: 48px 0; }
  .btn--lg { width: 100%; }
  .bonus-card { padding: 28px 20px 22px; }
  .author-box { padding: 18px; }
}
@media (max-width: 520px) {
  .container { padding-inline: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero__top { flex-direction: column-reverse; align-items: flex-start; }
  .table { font-size: .9rem; }
  .table th, .table td { padding: 10px 12px; }
}
