/* ============================================================
   Cricket99 - Warm Cricket Heritage Theme
   Fonts: Fraunces (headings) + Atkinson Hyperlegible (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,600;9..144,700;9..144,900&family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --primary: #116257;
  --primary-dark: #0d4d44;
  --secondary: #8a4e00;
  --secondary-light: #b36800;
  --bg-body: #fffaf5;
  --bg-section: #f5ede3;
  --bg-dark: #1a0e05;
  --bg-card: #ffffff;
  --border: #e0d5c5;
  --text-primary: #1a0e05;
  --text-secondary: #6b5d4d;
  --accent: #d4a030;

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Atkinson Hyperlegible', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --maxw: 1180px;
  --readw: 720px;
  --radius: 12px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(26, 14, 5, 0.06);
  --shadow-md: 0 6px 22px rgba(26, 14, 5, 0.10);
  --shadow-lg: 0 16px 44px rgba(26, 14, 5, 0.16);
  --transition: 0.22s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-primary);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { padding-left: 1.3rem; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 0.6em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.15rem; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 72px 0; position: relative; }
.section--beige { background: var(--bg-section); }
.section--dark { background: var(--bg-dark); color: #f4e9dc; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fbf3e8; }
.section--tight { padding: 52px 0; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  color: var(--secondary);
  margin: 0 0 0.7rem;
}
.section--dark .eyebrow { color: var(--accent); }
.lead { font-size: 1.2rem; color: var(--text-secondary); }
.center { text-align: center; }
.readcol { max-width: var(--readw); margin: 0 auto; }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  padding: 0.95rem 1.7rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
}
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--secondary { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.btn--secondary:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }
.btn--amber { background: var(--accent); color: var(--bg-dark); border-color: var(--accent); }
.btn--amber:hover { background: #e5b448; color: var(--bg-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--block { width: 100%; }
.btn--lg { padding: 1.1rem 2.2rem; font-size: 1.08rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 250, 245, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 42px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 0.4rem; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
  padding: 0.55rem 0.9rem;
  border-radius: 8px;
  transition: all var(--transition);
}
.nav__links a:hover { color: var(--primary); background: var(--bg-section); }
.nav__links a.is-active { color: var(--primary); }
.nav__links .nav-cta { background: var(--primary); color: #fff; }
.nav__links .nav-cta:hover { background: var(--primary-dark); color: #fff; }
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav__toggle span { width: 26px; height: 2.5px; background: var(--text-primary); border-radius: 2px; transition: all var(--transition); }
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-dark);
  color: #f4e9dc;
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: #fef7ee; margin-bottom: 0.4em; }
.hero__lead { font-size: 1.28rem; color: #d8c6b3; max-width: 34ch; }
.hero__eyebrow { color: var(--accent); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }
.hero__frame {
  border: 6px solid #2c1a0c;
  border-radius: 16px;
  padding: 10px;
  background: linear-gradient(160deg, #241408, #16090a);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero__frame img { border-radius: 8px; width: 100%; }
.hero__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 1px solid rgba(212, 160, 48, 0.35);
  pointer-events: none;
}
.hero__stats { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__stat strong { font-family: var(--font-head); font-size: 1.9rem; color: var(--accent); display: block; line-height: 1; }
.hero__stat span { font-size: 0.85rem; color: #bda88f; text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------- Decorative SVG cricket motifs ---------- */
.motif {
  position: absolute;
  opacity: 0.05;
  pointer-events: none;
  z-index: 0;
}
.motif--tr { top: -20px; right: -30px; width: 220px; }
.motif--bl { bottom: -40px; left: -40px; width: 260px; }
.section > .container { position: relative; z-index: 1; }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 640px; margin-bottom: 2.6rem; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { color: var(--text-secondary); font-size: 1.12rem; margin-bottom: 0; }

/* ---------- Pull quote ---------- */
.pullquote {
  position: relative;
  font-family: var(--font-head);
  font-size: 1.5rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--primary-dark);
  padding: 1.2rem 0 1.2rem 3.2rem;
  margin: 2.2rem 0;
}
.pullquote::before {
  content: '\201C';
  position: absolute;
  left: -6px;
  top: -18px;
  font-family: var(--font-head);
  font-size: 5.5rem;
  color: var(--primary);
  opacity: 0.4;
  line-height: 1;
}
.pullquote cite { display: block; font-family: var(--font-body); font-size: 0.95rem; font-style: normal; color: var(--text-secondary); font-weight: 700; margin-top: 0.7rem; }

/* ---------- Editorial column ---------- */
.editorial p { font-size: 1.12rem; }
.editorial h3 { margin-top: 2.2rem; }

/* ---------- Scorecard (games) ---------- */
.scorecard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
}
.scorecard__head {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  padding: 0.85rem 1.4rem;
  background: var(--bg-dark);
  color: #e9d8c4;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}
.scorecard__row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.05rem 1.4rem;
  border-top: 1px solid var(--border);
  transition: background var(--transition);
}
.scorecard__row:hover { background: var(--bg-section); }
.scorecard__match { font-family: var(--font-head); font-weight: 700; font-size: 1.08rem; }
.scorecard__match small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.82rem; color: var(--text-secondary); letter-spacing: 0; text-transform: none; }
.scorecard__odd {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 58px;
  text-align: center;
  padding: 0.35rem 0.6rem;
  border-radius: 7px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  color: var(--primary-dark);
  font-size: 0.98rem;
}
.scorecard__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-secondary); display: block; margin-bottom: 2px; font-weight: 700; }
.scorecard__cell { text-align: center; }

/* ---------- Numbered feature list ---------- */
.features-list { list-style: none; padding: 0; margin: 0; counter-reset: feat; }
.features-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.6rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.features-list li:first-child { border-top: 0; }
.features-list .feat-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  min-width: 72px;
}
.features-list h3 { margin: 0 0 0.4rem; }
.features-list p { margin: 0; color: var(--text-secondary); }

/* ---------- Stat paragraph highlight ---------- */
.stat-hl { color: var(--primary); font-weight: 700; font-family: var(--font-head); }
.stat-band p { font-size: 1.25rem; line-height: 1.9; max-width: 820px; }

/* ---------- Trust strip ---------- */
.trust-strip { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.trust-badge {
  flex: 1 1 180px;
  max-width: 220px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.trust-badge:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.trust-badge .tb-icon { width: 40px; height: 40px; margin: 0 auto 0.7rem; color: var(--primary); }
.trust-badge strong { display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 0.2rem; }
.trust-badge span { font-size: 0.88rem; color: var(--text-secondary); }

/* ---------- Generic card grid ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.6rem; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid transparent;
  border-radius: var(--radius);
  padding: 1.7rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.card:hover { border-top-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-secondary); margin-bottom: 0; }
.card .card-icon { width: 44px; height: 44px; color: var(--primary); margin-bottom: 0.9rem; }

/* ---------- Games gallery (gif thumbnails) ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.4rem; }
.game-tile {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.game-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.game-tile img { width: 100%; aspect-ratio: 364/280; object-fit: cover; }
.game-tile__cap { padding: 0.85rem 1rem; }
.game-tile__cap strong { font-family: var(--font-head); font-size: 1.02rem; display: block; }
.game-tile__cap span { font-size: 0.83rem; color: var(--text-secondary); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--bg-dark); color: #f4e9dc; text-align: center; }
.cta-band h2 { color: var(--accent); }
.cta-band p { color: #d8c6b3; max-width: 560px; margin: 0 auto 1.6rem; font-size: 1.15rem; }

/* ---------- Forms / Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 100%; }
.auth-hero {
  background: var(--bg-dark);
  color: #f4e9dc;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.auth-hero h1 { color: #fef7ee; }
.auth-hero p { color: #d8c6b3; }
.auth-hero .checklist { list-style: none; padding: 0; margin: 1.4rem 0 0; }
.auth-hero .checklist li { padding: 0.5rem 0 0.5rem 2rem; position: relative; color: #e6d6c4; }
.auth-hero .checklist li::before {
  content: '';
  position: absolute; left: 0; top: 0.7rem;
  width: 20px; height: 20px;
  background: var(--accent);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a0e05' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-size: 13px; background-repeat: no-repeat; background-position: center;
}
.auth-form-panel { padding: 64px 48px; display: flex; align-items: center; justify-content: center; }
.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.4rem;
  box-shadow: var(--shadow-md);
}
.auth-card h2 { margin-bottom: 0.3rem; }
.auth-card .sub { color: var(--text-secondary); margin-bottom: 1.6rem; }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(17, 98, 87, 0.14);
}
.pw-wrap { position: relative; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; cursor: pointer; padding: 8px; color: var(--text-secondary);
  display: flex; align-items: center;
}
.pw-toggle:hover { color: var(--primary); }
.pw-toggle svg { width: 20px; height: 20px; }
.strength { margin-top: 0.5rem; }
.strength__bar { height: 6px; border-radius: 4px; background: var(--border); overflow: hidden; }
.strength__fill { height: 100%; width: 0; border-radius: 4px; transition: width var(--transition), background var(--transition); }
.strength__label { font-size: 0.8rem; color: var(--text-secondary); margin-top: 0.35rem; display: block; }
.check-row { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 1rem; font-size: 0.9rem; color: var(--text-secondary); }
.check-row input { margin-top: 0.3rem; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.check-row a { font-weight: 700; }
.form-alt { text-align: center; margin-top: 1.3rem; font-size: 0.94rem; color: var(--text-secondary); }
.form-note { font-size: 0.82rem; color: var(--text-secondary); text-align: center; margin-top: 1rem; }

/* ---------- Interactive tools ---------- */
.tool {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}
.tool__head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.4rem; }
.tool__badge {
  font-family: var(--font-head); font-weight: 900; font-size: 1.1rem;
  background: var(--primary); color: #fff; width: 40px; height: 40px;
  border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tool__desc { color: var(--text-secondary); margin-bottom: 1.4rem; }
.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.tool-out {
  background: var(--bg-dark);
  color: #f4e9dc;
  border-radius: var(--radius-sm);
  padding: 1.4rem;
  margin-top: 1.2rem;
}
.tool-out h4 { color: var(--accent); margin-bottom: 0.6rem; }
.tool-formula {
  font-family: 'Courier New', monospace;
  background: var(--bg-section);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  font-size: 0.9rem;
  color: var(--secondary);
  margin: 0.8rem 0;
  overflow-x: auto;
}
.nrr-result { font-family: var(--font-head); font-size: 2.4rem; font-weight: 900; color: var(--accent); }
.nrr-verdict { color: #e6d6c4; margin-top: 0.5rem; margin-bottom: 0; }

/* Quiz */
.quiz-emoji { font-size: 2.6rem; line-height: 1.3; margin: 0.6rem 0 1.1rem; letter-spacing: 0.1em; }
.quiz-options { display: grid; gap: 0.7rem; }
.quiz-opt {
  text-align: left; padding: 0.85rem 1.1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-body); cursor: pointer;
  font-family: var(--font-body); font-size: 1rem; color: var(--text-primary); transition: all var(--transition);
}
.quiz-opt:hover { border-color: var(--primary); background: var(--bg-section); }
.quiz-opt.correct { border-color: var(--primary); background: rgba(17, 98, 87, 0.12); color: var(--primary-dark); font-weight: 700; }
.quiz-opt.wrong { border-color: #b3402e; background: rgba(179, 64, 46, 0.1); color: #8a2c1e; }
.quiz-opt:disabled { cursor: default; }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 0.4rem; font-weight: 700; }
.quiz-progress { height: 6px; background: var(--border); border-radius: 4px; overflow: hidden; margin-bottom: 1.2rem; }
.quiz-progress span { display: block; height: 100%; background: var(--primary); transition: width var(--transition); }
.quiz-score { text-align: center; }
.quiz-score .big { font-family: var(--font-head); font-size: 3.4rem; font-weight: 900; color: var(--primary); line-height: 1; }
.quiz-review { text-align: left; margin-top: 1.4rem; }
.quiz-review li { margin-bottom: 0.6rem; color: var(--text-secondary); font-size: 0.94rem; }
.quiz-review b { color: var(--text-primary); }

/* Boundary counter */
.bc-scoreboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 0.8rem;
  background: var(--bg-dark);
  border-radius: var(--radius-sm);
  padding: 1.3rem;
  margin-bottom: 1.2rem;
}
.bc-stat { text-align: center; }
.bc-stat strong { font-family: var(--font-head); font-size: 1.8rem; color: var(--accent); display: block; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bc-stat span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #bda88f; }
.bc-timeline { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; min-height: 34px; }
.bc-ball {
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; color: #fff;
  font-variant-numeric: tabular-nums;
}
.bc-ball.dot { background: #8b7a66; }
.bc-ball.run { background: var(--primary); }
.bc-ball.four { background: var(--secondary); }
.bc-ball.six { background: var(--accent); color: var(--bg-dark); }
.bc-ball.wkt { background: #b3402e; }
.bc-controls { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq__item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.9rem; background: var(--bg-card); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.15rem 1.4rem; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq__q:hover { color: var(--primary); }
.faq__q .faq__icon { flex-shrink: 0; width: 20px; height: 20px; transition: transform var(--transition); color: var(--primary); }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq__a-inner { padding: 0 1.4rem 1.3rem; color: var(--text-secondary); }
.faq__item.is-open .faq__a { max-height: 400px; }

/* ---------- Legal / content pages ---------- */
.page-hero { background: var(--bg-section); padding: 60px 0 48px; border-bottom: 1px solid var(--border); }
.page-hero h1 { margin-bottom: 0.3rem; }
.page-hero p { color: var(--text-secondary); margin: 0; max-width: 60ch; }
.legal-body { max-width: 800px; margin: 0 auto; }
.legal-body h2 { margin-top: 2.4rem; font-size: 1.5rem; }
.legal-body h3 { margin-top: 1.6rem; }
.legal-body ul { margin-bottom: 1.15rem; }
.legal-body li { margin-bottom: 0.5rem; }
.updated { font-size: 0.9rem; color: var(--text-secondary); font-style: italic; }
.callout {
  background: var(--bg-section);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  margin: 1.6rem 0;
}
.callout strong { color: var(--primary-dark); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-info .ci-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.contact-info .ci-icon { width: 44px; height: 44px; background: var(--bg-section); border: 1px solid var(--border); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); flex-shrink: 0; }
.contact-info .ci-icon svg { width: 22px; height: 22px; }
.contact-info h4 { margin: 0 0 0.2rem; }
.contact-info p { margin: 0; color: var(--text-secondary); }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #cbb79f; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.4rem; margin-bottom: 2.4rem; }
.site-footer .foot-logo img { height: 40px; margin-bottom: 1rem; filter: brightness(1.05); }
.site-footer p { color: #a8927a; font-size: 0.92rem; }
.footer-col h4 { color: #f0e2d1; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a { color: #c4b09a; font-size: 0.94rem; }
.footer-col a:hover { color: var(--accent); }
.foot-badges { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.2rem 0; }
.foot-badge {
  font-size: 0.74rem; font-weight: 700; padding: 0.35rem 0.7rem;
  border: 1px solid #3a2413; border-radius: 6px; color: #d8c6b3;
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.foot-badge.age { background: #b3402e; border-color: #b3402e; color: #fff; }
.footer-bottom {
  border-top: 1px solid #3a2413;
  padding-top: 1.6rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: #a8927a;
}
.footer-bottom a { color: #a8927a; }
.footer-bottom a:hover { color: var(--accent); }
.footer-disclaimer { font-size: 0.82rem; color: #8b7862; margin-top: 1rem; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__frame { max-width: 460px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-hero { padding: 48px 28px; }
  .auth-form-panel { padding: 40px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed;
    top: 74px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-body);
    border-bottom: 1px solid var(--border);
    padding: 1rem 22px 1.6rem;
    gap: 0.3rem;
    transform: translateY(-140%);
    transition: transform 0.3s ease;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - 74px);
    overflow-y: auto;
  }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 0.85rem 1rem; }
  .scorecard__head { display: none; }
  .scorecard__row { grid-template-columns: 1fr 1fr; gap: 0.6rem 1rem; }
  .scorecard__match { grid-column: 1 / -1; }
  .features-list li { grid-template-columns: 1fr; gap: 0.5rem; }
  .features-list .feat-num { font-size: 2rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.2rem; }
  .tool { padding: 1.4rem; }
  .auth-card { padding: 1.6rem; }
}

/* ---------- Accessibility ---------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--primary); color: #fff; padding: 0.7rem 1.2rem; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
