/* ============================================================
   Winnita Casino — «Azzurro Oro» (geo IT)
   Light premium iGaming landing (cream + royal blue + gold)
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-cream: #f7f2ea;
  --bg-cream-alt: #fbf7f0;
  --bg-hero: #f3ece0;
  --white: #ffffff;

  /* Blue / CTA */
  --cta-start: #24337f;
  --cta-end: #16225e;
  --blue: #2b54d4;
  --blue-deep: #16225e;

  /* Accents */
  --gold: #e4b24a;
  --gold-light: #f2ce6e;
  --gold-dark: #b8862a;
  --red: #d53341;
  --green: #2fa45c;

  /* Text */
  --ink: #1a2244;
  --text-secondary: #4c5261;
  --text-muted: #8a8f9e;

  /* Cards / surfaces */
  --card-bg: #ffffff;
  --card-bg-alt: #fbf7f0;
  --card-hover: #f3eee4;
  --border: rgba(20, 25, 50, 0.08);

  /* Shadows */
  --shadow-sm: 0 4px 14px rgba(20, 25, 50, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 25, 50, 0.1);

  /* Radii */
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;

  /* Layout */
  --header-h: 68px;
  --max-w: 1200px;
}

/* ---------------- Reset / base ---------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  background: linear-gradient(180deg, var(--bg-cream) 0%, var(--bg-cream-alt) 100%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Subtle premium glow so the light bg isn't flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 85% 8%, rgba(228, 178, 74, 0.05), transparent 70%),
    radial-gradient(55% 45% at 10% 30%, rgba(43, 84, 212, 0.045), transparent 70%);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--blue);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover {
  color: var(--blue-deep);
}

img {
  max-width: 100%;
  display: block;
}

ul,
ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
}

b,
strong {
  color: var(--blue-deep);
  font-weight: 600;
}

/* ---------------- Accessibility helpers ---------------- */
.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: 12px;
  top: -60px;
  z-index: 2000;
  background: var(--cta-start);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(43, 84, 212, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------- Layout ---------------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.is-pinned {
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.logo img {
  height: 30px;
  width: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  margin: 0 auto;
}

.main-nav a {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 4px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  transition: width 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.35rem;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap;
}

.btn-cta,
.btn-cta-header {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-cta:hover,
.btn-cta-header:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(20, 25, 50, 0.22);
  filter: brightness(1.05);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--blue-deep);
  box-shadow: var(--shadow-sm);
}

.btn-gold:hover {
  color: var(--blue-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(228, 178, 74, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1.5px solid rgba(43, 84, 212, 0.4);
}

.btn-outline:hover {
  color: var(--blue-deep);
  border-color: var(--blue);
  background: rgba(43, 84, 212, 0.06);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 0.95rem 2rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 42px;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ---------------- Breadcrumbs ---------------- */
.breadcrumbs {
  background: var(--bg-cream);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0.7rem 0;
}

.breadcrumbs li {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.breadcrumbs li + li::before {
  content: "›";
  color: var(--text-muted);
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover {
  color: var(--blue);
}

.breadcrumbs [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

/* ---------------- Hero ---------------- */
.hero {
  background: var(--bg-hero);
  padding: 2.5rem 0 3rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: center;
  gap: 2.5rem;
}

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 2.25rem;
  border: 1px solid var(--border);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, rgba(228, 178, 74, 0.18), rgba(43, 84, 212, 0.1));
  color: var(--gold-dark);
  border: 1px solid rgba(228, 178, 74, 0.4);
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero-card h1 {
  font-size: clamp(1.75rem, 5vw, 3rem);
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-art {
  position: relative;
}

.hero-art img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ---------------- Main / content card ---------------- */
main {
  padding: 2.5rem 0 3rem;
}

.content-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: 2.5rem;
  overflow: hidden;
}

.content-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-top: 2.5rem;
  padding-left: 0.9rem;
  position: relative;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--blue), var(--gold));
}

.prose h3 {
  font-size: 1.2rem;
  color: var(--blue-deep);
  margin-top: 1.75rem;
  display: inline-block;
  border-bottom: 2px solid rgba(228, 178, 74, 0.5);
  padding-bottom: 2px;
}

.prose p,
.prose li {
  color: var(--text-secondary);
}

.update-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Table of contents (Indice) */
.toc {
  background: var(--bg-cream-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
}

.toc h2 {
  margin: 0 0 0.75rem;
  padding: 0;
  font-size: 1.1rem;
}

.toc h2::before {
  display: none;
}

.toc ol {
  columns: 2;
  column-gap: 2rem;
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.toc a {
  color: var(--blue-deep);
}

.toc a:hover {
  color: var(--blue);
}

/* Bonus banner */
.app-bonus {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.35rem 1.6rem;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(242, 206, 110, 0.18), rgba(43, 84, 212, 0.07));
  border: 1.5px solid rgba(228, 178, 74, 0.5);
}

.app-bonus .app-bonus-text strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
}

.app-bonus .app-bonus-text span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------------- Feature grid ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  align-items: start;
  grid-auto-rows: min-content;
  margin: 1.5rem 0 2rem;
}

.feature-card {
  align-self: start;
  height: auto;
  min-height: 0;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 26px rgba(228, 178, 74, 0.22);
}

.feature-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(43, 84, 212, 0.12), rgba(228, 178, 74, 0.16));
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--ink);
  border: none;
  padding: 0;
  display: block;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ---------------- Widgets ---------------- */
.widget-panel {
  margin: 2rem 0;
  padding: 1.75rem;
  background: linear-gradient(180deg, var(--white), var(--bg-cream-alt));
  border: 1.5px solid rgba(43, 84, 212, 0.16);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.widget-panel > h2 {
  margin: 0 0 0.35rem;
  padding: 0;
  font-size: 1.3rem;
}

.widget-panel > h2::before {
  display: none;
}

.widget-panel > h2 .demo-tag,
.demo-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-dark);
  background: rgba(228, 178, 74, 0.16);
  border: 1px solid rgba(228, 178, 74, 0.4);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin-left: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

.widget-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Bonus calculator */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
}

.calc-control {
  margin-bottom: 1.1rem;
}

.calc-control label {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.calc-control output {
  color: var(--blue);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--gold));
  outline-offset: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--blue);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
}

.calc-result {
  background: linear-gradient(135deg, var(--cta-start), var(--cta-end));
  color: #fff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.calc-result .calc-label {
  font-size: 0.85rem;
  opacity: 0.85;
}

.calc-result .calc-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.1;
  margin: 0.25rem 0;
}

.calc-result .calc-hint {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* Slot lobby */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.slot-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.2s ease;
}

.slot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(20, 25, 50, 0.12);
}

.slot-thumb {
  font-size: 2rem;
  line-height: 1;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(43, 84, 212, 0.1), rgba(228, 178, 74, 0.18));
  margin-bottom: 0.6rem;
}

.slot-card h4 {
  margin: 0 0 0.15rem;
  font-size: 0.92rem;
  color: var(--ink);
}

.slot-card .slot-prov {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.slot-card .btn {
  width: 100%;
  padding: 0.5rem;
  font-size: 0.85rem;
}

.slot-msg {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--blue-deep);
  min-height: 1.2em;
  text-align: center;
}

/* Quiz */
.quiz-question {
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.85rem;
}

.quiz-options {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.6rem;
}

.quiz-options li {
  margin: 0;
}

.quiz-options label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
  font-size: 0.92rem;
}

.quiz-options label:hover {
  border-color: rgba(43, 84, 212, 0.4);
  background: var(--card-hover);
}

.quiz-options input {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
}

.quiz-result {
  margin-top: 1rem;
  font-weight: 600;
  min-height: 1.4em;
}

.quiz-result.ok {
  color: var(--green);
}

.quiz-result.no {
  color: var(--red);
}

/* Roulette */
.roulette-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

.roulette-display {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.75rem;
  font-weight: 700;
  color: #fff;
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 255, 255, 0.25), transparent 60%),
    conic-gradient(var(--red) 0 25%, var(--ink) 25% 50%, var(--red) 50% 75%, var(--ink) 75% 100%);
  border: 6px solid var(--gold);
  box-shadow: var(--shadow-md);
  flex-shrink: 0;
}

.roulette-display.spinning {
  animation: roulette-pulse 0.15s linear infinite;
}

@keyframes roulette-pulse {
  50% {
    transform: scale(1.04);
  }
}

.roulette-info {
  flex: 1;
  min-width: 200px;
}

.roulette-info .roulette-outcome {
  font-weight: 600;
  color: var(--blue-deep);
  min-height: 1.4em;
}

/* ---------------- Tables ---------------- */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  background: var(--white);
  margin: 1.5rem 0 2rem;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.data-table caption {
  text-align: left;
  padding: 0.9rem 1rem 0;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.data-table thead {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
}

.data-table th {
  color: #fff;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
}

.data-table td {
  padding: 0.8rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  vertical-align: top;
}

.data-table td b {
  color: var(--blue-deep);
}

.data-table tbody tr:nth-child(even) {
  background: var(--card-bg-alt);
}

.data-table tbody tr:hover {
  background: var(--card-hover);
}

/* ---------------- CTA block ---------------- */
.cta-block {
  margin: 2.5rem 0 0;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    linear-gradient(135deg, rgba(43, 84, 212, 0.08), rgba(228, 178, 74, 0.14)),
    var(--bg-cream-alt);
  border: 1.5px solid rgba(228, 178, 74, 0.4);
}

.cta-block h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 0.5rem;
}

.cta-block p {
  max-width: 620px;
  margin: 0 auto 1.5rem;
  color: var(--text-secondary);
}

.cta-disclaimer {
  margin-top: 1.25rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* Responsible gaming block */
.responsible {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-cream-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--red);
}

.responsible h2 {
  margin-top: 0;
  padding-left: 0;
  font-size: 1.25rem;
}

.responsible h2::before {
  display: none;
}

.responsible p {
  font-size: 0.9rem;
}

/* FAQ */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item .faq-body {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--bg-cream-alt);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 2rem;
  margin-top: 3rem;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-brand img {
  height: 28px;
}

.pay-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pay-chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--blue-deep);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  box-shadow: var(--shadow-sm);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom p {
  margin: 0;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.footer-meta .badge-18 {
  width: 30px;
  height: 30px;
  font-size: 0.72rem;
}

/* ---------------- Tablet ---------------- */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .hero-art {
    order: -1;
  }

  .toc ol {
    columns: 1;
  }
}

/* ---------------- Mobile ---------------- */
@media (max-width: 768px) {
  body {
    font-size: 0.875rem;
    line-height: 1.55;
  }

  .container {
    padding: 0 1rem;
  }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.5rem 1rem 1rem;
    transform: translateY(-140%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.28s ease, opacity 0.2s ease;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .main-nav a {
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--border);
    min-height: 42px;
    display: flex;
    align-items: center;
  }

  .main-nav a::after {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .btn-cta-header {
    padding: 0.6rem 0.9rem;
    font-size: 0.85rem;
    min-height: 42px;
  }

  .hero {
    padding: 1.75rem 0 2rem;
  }

  .hero-card {
    padding: 1.5rem;
  }

  .hero-lead {
    font-size: 0.875rem;
  }

  .content-card {
    padding: 1.5rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .prose p,
  .prose li {
    font-size: 0.875rem;
  }

  .prose h3 {
    font-size: 0.95rem;
  }

  .widget-panel {
    padding: 1.25rem;
  }

  .calc-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .slot-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Tables → cards */
  .table-wrapper {
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .data-table {
    display: block;
  }

  .data-table caption {
    padding: 0 0 0.5rem;
  }

  .data-table thead {
    display: none;
  }

  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tr {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.85rem;
    padding: 0.35rem 0.9rem;
  }

  .data-table tbody tr:nth-child(even) {
    background: var(--white);
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    text-align: right;
    padding: 0.55rem 0;
    border-top: 1px solid var(--border);
  }

  .data-table tr td:first-child {
    border-top: none;
  }

  .data-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--ink);
    text-align: left;
    flex: 0 0 45%;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    margin-left: 0;
  }

  .cta-block {
    padding: 1.75rem 1.25rem;
  }
}

/* ---------------- Very small ---------------- */
@media (max-width: 380px) {
  body {
    font-size: 0.8125rem;
  }

  .slot-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
