/* =========================================================
   Kazino Sygkrisi — Forest & Gold theme
   Static HTML/CSS/JS comparison site (Greek gambling market)
   ========================================================= */

:root {
  /* Forest (πράσινο) */
  --forest-900: #0a1f15;
  --forest-800: #0e3d2f;
  --forest-700: #144c3a;
  --forest-600: #1c6149;
  --forest-500: #2a8967;
  --forest-line: rgba(224, 184, 73, 0.18);

  /* Gold accents */
  --gold-700: #b48a2a;
  --gold-500: #e0b849;
  --gold-400: #f0c862;
  --gold-200: #f7e6ad;

  /* Paper (ανοιχτό χαρτί) */
  --paper-50: #fbfaf4;
  --paper-100: #f7f4ec;
  --paper-200: #efe9d8;
  --paper-300: #e3dabf;

  /* Text */
  --text-on-dark: #f3efe1;
  --text-on-dark-muted: #b3bca8;
  --text-on-paper: #123023;
  --text-on-paper-muted: #506057;
  --link-on-paper: #1c6149;

  /* Feedback */
  --coral: #ff7a5c;
  --teal: #2bb8a0;
  --rose-bg: #fbeae5;

  /* Surfaces */
  --surface: #ffffff;
  --surface-2: #fbf9f1;
  --card-shadow: 0 6px 22px rgba(8, 38, 25, 0.08);
  --card-shadow-lg: 0 14px 40px rgba(8, 38, 25, 0.14);

  /* Layout tokens */
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --header-h: 64px;
  --container: 1160px;

  --font-display: "Georgia", "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-on-paper);
  background: var(--paper-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--link-on-paper);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-on-paper);
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
strong { color: inherit; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.2rem);
}
.center { text-align: center; }
.text-muted { color: var(--text-on-paper-muted); }
.lead {
  font-size: 1.05rem;
  color: var(--text-on-paper-muted);
  max-width: 60ch;
}
.center .lead { margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold-500);
  color: var(--forest-900);
  padding: 0.5rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---------- Top strip ---------- */
.top-strip {
  background: var(--forest-900);
  color: var(--text-on-dark-muted);
  font-size: 0.78rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--forest-line);
}
.top-strip .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.top-strip strong { color: var(--gold-400); font-weight: 600; }
.top-strip-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 0.4rem;
  background: var(--gold-500);
  color: var(--forest-900);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.02em;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--forest-800);
  border-bottom: 1px solid var(--forest-line);
  transition: box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 6px 18px rgba(8, 38, 25, 0.25);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-on-dark);
  text-decoration: none;
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--forest-900);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  letter-spacing: 0;
  box-shadow: 0 2px 6px rgba(8, 38, 25, 0.25);
}
.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.01em;
  line-height: 1;
}
.brand-name span { color: var(--gold-400); }

.nav-links {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-on-dark-muted);
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--gold-400);
  background: rgba(224, 184, 73, 0.08);
  text-decoration: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}
.nav-flag {
  width: 24px;
  height: 16px;
  border-radius: 2px;
  object-fit: cover;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--forest-line);
  border-radius: var(--radius-sm);
  color: var(--gold-400);
  cursor: pointer;
}
.nav-toggle:hover { background: rgba(224, 184, 73, 0.08); }
.nav-scrim {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 38, 25, 0.55);
  z-index: 40;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.nav-scrim.is-open { display: block; opacity: 1; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  line-height: 1.1;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 0.55rem 0.85rem; font-size: 0.84rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--forest-900);
  box-shadow: 0 4px 12px rgba(180, 138, 42, 0.25);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(180, 138, 42, 0.36); }
.btn-outline {
  background: transparent;
  color: var(--forest-700);
  border-color: var(--forest-600);
}
.btn-outline:hover { background: rgba(28, 97, 73, 0.08); color: var(--forest-800); }
.btn-ghost-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(243, 239, 225, 0.25);
}
.btn-ghost-dark:hover { background: rgba(243, 239, 225, 0.08); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(ellipse 80% 70% at 70% 0%, rgba(224, 184, 73, 0.10), transparent 60%),
    linear-gradient(180deg, var(--forest-800) 0%, var(--forest-900) 100%);
  color: var(--text-on-dark);
  padding: clamp(2.5rem, 4vw + 1rem, 5rem) 0 clamp(3rem, 5vw, 5rem);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(224, 184, 73, 0.06) 1px, transparent 0);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  position: relative;
}
.hero h1 {
  color: var(--text-on-dark);
  margin-bottom: 0.6em;
}
.hero .lead { color: var(--text-on-dark-muted); margin-bottom: 1.6rem; max-width: 52ch; }
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  border-top: 1px solid var(--forest-line);
  padding-top: 1.4rem;
  max-width: 540px;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 0.2rem; }
.hero-stats strong {
  font-family: var(--font-display);
  color: var(--gold-400);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  line-height: 1;
}
.hero-stats span { font-size: 0.78rem; color: var(--text-on-dark-muted); }
.hero-panel-wrap { position: relative; }
.hero-flag {
  position: absolute;
  top: -20px;
  right: 20px;
  width: 50px;
  height: 34px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 1;
}
.hero-panel {
  background: rgba(8, 38, 25, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--forest-line);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--card-shadow-lg);
}
.hero-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.hero-panel-head h3 {
  color: var(--text-on-dark);
  font-size: 1.15rem;
  margin: 0;
}
.hero-mini-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

/* ---------- Mini card (hero list) ---------- */
.mini-card {
  display: grid;
  grid-template-columns: 24px 38px 1fr auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: rgba(243, 239, 225, 0.05);
  border: 1px solid var(--forest-line);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, background 0.2s;
}
.mini-card:hover { border-color: rgba(224, 184, 73, 0.4); background: rgba(243, 239, 225, 0.08); }
.mini-rank {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 24px; height: 24px;
  background: var(--gold-500);
  color: var(--forest-900);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
}
.mini-logo {
  width: 46px; height: 46px;
  background: var(--surface);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.mini-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 3px; }
.mini-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mini-info strong { color: var(--text-on-dark); font-size: 0.95rem; }
.mini-info span {
  color: var(--text-on-dark-muted);
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini-score {
  font-family: var(--font-display);
  color: var(--gold-400);
  font-size: 1.2rem;
  font-weight: 700;
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: var(--paper-50);
  border-bottom: 1px solid var(--paper-200);
  padding: 1rem 0;
}
.trust-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.7rem;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-on-paper-muted);
}
.trust-item svg { color: var(--forest-600); flex-shrink: 0; }

/* ---------- Sections ---------- */
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-tight { padding: clamp(2rem, 4vw, 3rem) 0; }
.band-dark {
  background:
    linear-gradient(180deg, var(--forest-800) 0%, var(--forest-900) 100%);
  color: var(--text-on-dark);
}
.band-dark h1, .band-dark h2, .band-dark h3 { color: var(--text-on-dark); }
.band-dark .lead { color: var(--text-on-dark-muted); }

.section-head { margin-bottom: 2rem; }
.section-head.center { text-align: center; }
.section-head .lead { margin-inline: auto; }
.section-head h2 { margin-top: 0.25rem; }
.section-head .eyebrow { display: inline-block; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--forest-600);
  background: rgba(28, 97, 73, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}
.band-dark .eyebrow { color: var(--gold-400); background: rgba(224, 184, 73, 0.12); }

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-on-paper-muted);
  margin-bottom: 0.8rem;
}
.breadcrumb a { color: var(--forest-600); }
.breadcrumb span { color: var(--text-on-paper-muted); }

.page-hero {
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(224, 184, 73, 0.08), transparent 60%),
    linear-gradient(180deg, var(--forest-800), var(--forest-900));
  color: var(--text-on-dark);
  padding: clamp(2rem, 4vw, 3rem) 0 2rem;
}
.page-hero h1 { color: var(--text-on-dark); }
.page-hero .lead { color: var(--text-on-dark-muted); margin-inline: 0; max-width: 64ch; }
.page-hero .breadcrumb a { color: var(--gold-400); }
.page-hero .breadcrumb span { color: var(--text-on-dark-muted); }

/* ---------- Rank list (provider cards) ---------- */
.rank-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.rank-card {
  display: grid;
  grid-template-columns: 40px 70px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.rank-card:hover {
  border-color: var(--gold-500);
  box-shadow: var(--card-shadow-lg);
  transform: translateY(-2px);
}
.rank-card.is-top { border-color: var(--gold-500); background: linear-gradient(180deg, #fff, var(--paper-50)); }
.rank-card.is-top::before {
  content: "TOP";
  position: absolute;
  top: -10px; left: 1rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--forest-900);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}
.rank-num {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 36px; height: 36px;
  background: var(--paper-100);
  border: 1px solid var(--paper-200);
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--forest-700);
  font-size: 1.05rem;
}
.rank-logo {
  width: 84px; height: 84px;
  background: var(--paper-50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--paper-200);
  position: relative;
}
.rank-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 6px; }
.logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--forest-600), var(--forest-800));
  color: var(--gold-400);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}
.rank-body h3 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.rank-stars {
  display: inline-flex;
  gap: 1px;
  color: var(--gold-500);
  font-size: 0.85rem;
}
.rank-stars svg { width: 14px; height: 14px; }
.rank-tagline {
  font-size: 0.9rem;
  color: var(--text-on-paper-muted);
  margin: 0 0 0.55rem;
}
.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}
.rank-license-no {
  font-size: 0.78rem;
  color: var(--forest-700);
  margin: 0;
  font-weight: 600;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--paper-100);
  border: 1px solid var(--paper-200);
  color: var(--text-on-paper-muted);
}
.tag.license { color: var(--forest-700); background: rgba(28, 97, 73, 0.08); border-color: rgba(28, 97, 73, 0.18); }
.tag.license svg { color: var(--forest-600); }

.rank-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  min-width: 120px;
}
.rank-cta-buttons { display: flex; flex-direction: column; gap: 0.4rem; min-width: 140px; }
.rank-score {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--forest-700);
  line-height: 1;
  display: flex;
  align-items: baseline;
  flex-direction: column;
}
.rank-score small {
  font-family: var(--font-body);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--text-on-paper-muted);
}

/* ---------- Compare table ---------- */
.table-scroll { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--card-shadow); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  min-width: 720px;
  font-size: 0.9rem;
}
.compare-table thead { background: var(--forest-800); color: var(--text-on-dark); }
.compare-table th {
  text-align: left;
  padding: 0.9rem 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.compare-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--paper-200); vertical-align: middle; }
.compare-table tbody tr:hover { background: var(--paper-50); }
.compare-table .brand-cell { font-weight: 600; color: var(--forest-700); white-space: nowrap; }
.table-logo {
  display: inline-flex;
  width: 36px; height: 36px;
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-radius: 6px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 0.5rem;
  align-items: center;
  justify-content: center;
}
.table-logo img { max-width: 100%; max-height: 100%; object-fit: contain; padding: 2px; }
.compare-table .license-number {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-on-paper-muted);
}

/* ---------- Steps / methodology ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.step {
  background: rgba(8, 38, 25, 0.4);
  border: 1px solid var(--forest-line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
}
.step h3 {
  color: var(--gold-400);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.step p { color: var(--text-on-dark-muted); font-size: 0.88rem; margin: 0; }

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-lg); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--forest-600), var(--forest-800));
  border-radius: var(--radius-sm);
  color: var(--gold-400);
  margin-bottom: 0.9rem;
}
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p { color: var(--text-on-paper-muted); font-size: 0.9rem; margin: 0; }

/* ---------- Grid 2 ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.grid-2 > div {
  background: rgba(8, 38, 25, 0.4);
  border: 1px solid var(--forest-line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.grid-2 h2 { color: var(--text-on-dark); margin-top: 0.8rem; }
.grid-2 p { color: var(--text-on-dark-muted); margin-bottom: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background:
    linear-gradient(135deg, var(--forest-800) 0%, var(--forest-700) 100%);
  border: 1px solid var(--forest-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-on-dark);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(224, 184, 73, 0.18), transparent 50%);
}
.cta-banner h2 { color: var(--text-on-dark); margin: 0 0 0.3rem; position: relative; }
.cta-banner p { color: var(--text-on-dark-muted); margin: 0; position: relative; max-width: 50ch; }
.cta-banner .btn { position: relative; }

/* ---------- Accordion (FAQ) ---------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 760px;
  margin-inline: auto;
}
.accordion-item {
  background: var(--surface);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.accordion-trigger {
  width: 100%;
  background: none;
  border: 0;
  padding: 1rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-align: left;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--forest-800);
  cursor: pointer;
}
.accordion-trigger:hover { background: var(--paper-50); }
.chev { color: var(--forest-600); transition: transform 0.25s ease; flex-shrink: 0; }
.accordion-item[data-open="true"] .chev { transform: rotate(180deg); }
.accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}
.accordion-item[data-open="true"] .accordion-panel { grid-template-rows: 1fr; }
.accordion-panel-inner { overflow: hidden; }
.accordion-panel-inner > p {
  padding: 0 1.2rem 1rem;
  margin: 0;
  color: var(--text-on-paper-muted);
  font-size: 0.9rem;
}
.accordion-panel-inner a { font-weight: 700; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 38, 25, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  padding: 1.6rem;
  position: relative;
  box-shadow: var(--card-shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal-box { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 0.8rem; right: 0.8rem;
  width: 36px; height: 36px;
  background: var(--paper-100);
  border: 1px solid var(--paper-200);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--forest-700);
}
.modal-close:hover { background: var(--paper-200); }
.modal-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}
.modal-head .rank-logo { width: 67px; height: 67px; }
.modal-head h3 { margin: 0; font-size: 1.3rem; color: var(--forest-800); }
.modal-head .rank-stars { color: var(--gold-500); }
.license-box {
  background: var(--paper-50);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  margin: 0.9rem 0;
  color: var(--text-on-paper);
}
.license-box strong { color: var(--forest-700); }
.modal-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-on-paper);
}
.modal-list svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Helpline bar ---------- */
.helpline-bar {
  background: var(--forest-900);
  color: var(--text-on-dark-muted);
  text-align: center;
  padding: 0.8rem 1rem;
  font-size: 0.82rem;
  border-top: 1px solid var(--forest-line);
}
.helpline-bar a { color: var(--gold-400); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-900); color: var(--text-on-dark-muted); }
.footer-top { padding: 3rem 0 2rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
}
.footer-brand .brand { margin-bottom: 0.8rem; }
.footer-brand p { font-size: 0.9rem; max-width: 36ch; margin: 0 0 1rem; }
.footer-social { display: flex; gap: 0.6rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid var(--forest-line);
  border-radius: 999px;
  color: var(--gold-400);
  text-decoration: none;
}
.footer-social a:hover { background: rgba(224, 184, 73, 0.1); text-decoration: none; }
.footer-grid h4 {
  color: var(--gold-400);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  font-weight: 700;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.footer-grid ul a { color: var(--text-on-dark-muted); font-size: 0.9rem; text-decoration: none; }
.footer-grid ul a:hover { color: var(--gold-400); text-decoration: none; }

.footer-legal {
  border-top: 1px solid var(--forest-line);
  padding: 1.6rem 0 2rem;
}
.footer-compliance {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.footer-compliance img { max-height: 60px; width: auto; opacity: 0.95; }
.footer-legal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.footer-badges { display: flex; gap: 0.4rem; }
.footer-bottom-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-bottom-links a { color: var(--text-on-dark-muted); font-size: 0.82rem; text-decoration: none; }
.footer-bottom-links a:hover { color: var(--gold-400); text-decoration: none; }
.footer-disclaimer {
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-on-dark-muted);
  margin-bottom: 1rem;
  max-width: none;
  margin-inline: 0;
}
.footer-legal .container {
  max-width: var(--container);
}
.site-footer > .container > p { font-size: 0.82rem; color: var(--text-on-dark-muted); }

.badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.badge.is-coral { background: rgba(255, 122, 92, 0.15); color: var(--coral); border-color: rgba(255, 122, 92, 0.3); }
.badge.is-teal { background: rgba(43, 184, 160, 0.15); color: var(--teal); border-color: rgba(43, 184, 160, 0.3); }
.badge.is-gold { background: rgba(224, 184, 73, 0.15); color: var(--gold-400); border-color: rgba(224, 184, 73, 0.3); }
.hero .badge.is-coral,
.hero .badge.is-teal,
.hero .badge.is-gold,
.hero-badges .badge { border-color: rgba(243, 239, 225, 0.25); }

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed;
  right: 1.2rem;
  bottom: 5rem;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-700));
  color: var(--forest-900);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(8, 38, 25, 0.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 35;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover { transform: translateY(-2px); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--forest-800);
  color: var(--text-on-dark);
  padding: 0.9rem 1rem;
  border-top: 1px solid var(--gold-500);
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  z-index: 45;
  box-shadow: 0 -6px 18px rgba(8, 38, 25, 0.2);
}
.cookie-banner.is-open { display: flex; }
.cookie-banner p { margin: 0; font-size: 0.84rem; flex: 1 1 280px; }
.cookie-actions { display: flex; gap: 0.5rem; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--forest-800);
  color: var(--gold-400);
  border: 1px solid var(--gold-500);
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  z-index: 60;
  box-shadow: var(--card-shadow-lg);
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- Article body (legal / guides) ---------- */
.prose {
  max-width: 760px;
  margin-inline: auto;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-on-paper);
}
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.5rem; color: var(--forest-700); }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose a { color: var(--forest-600); font-weight: 600; }
.prose strong { color: var(--forest-800); }
.callout {
  background: var(--paper-50);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.1rem;
  margin: 1.4rem 0;
  font-size: 0.92rem;
}
.callout strong { color: var(--forest-700); }

/* ---------- Contact form ---------- */
.form-grid {
  max-width: 640px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--card-shadow);
}
.form-row {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-row.has-error input,
.form-row.has-error textarea,
.form-row.has-error select { border-color: var(--coral) !important; }
.form-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--forest-700);
}
.form-row input,
.form-row select,
.form-row textarea {
  border: 1px solid var(--paper-300);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--paper-50);
  color: var(--text-on-paper);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 0;
  border-color: var(--forest-600);
  box-shadow: 0 0 0 3px rgba(28, 97, 73, 0.12);
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-error { color: var(--coral); font-size: 0.78rem; min-height: 0.9rem; }
.form-consent { display: flex; align-items: flex-start; gap: 0.5rem; }
.form-consent input { margin-top: 0.2rem; }
.form-consent label { font-size: 0.85rem; font-weight: 400; color: var(--text-on-paper-muted); }
.contact-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.contact-info > div {
  background: var(--surface);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--card-shadow);
}
.contact-info h3 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--forest-600); margin-bottom: 0.4rem; font-family: var(--font-body); }
.contact-info p { margin: 0; font-size: 1rem; color: var(--text-on-paper); }

.alert-warn {
  background: var(--rose-bg);
  border: 1px solid rgba(255, 122, 92, 0.3);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #6b2418;
}

/* ---------- Guides listing ---------- */
.guide-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.guide-card {
  background: var(--surface);
  border: 1px solid var(--paper-200);
  border-radius: var(--radius);
  padding: 1.4rem 1.3rem;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--card-shadow-lg); border-color: var(--gold-500); }
.guide-card .eyebrow { margin-bottom: 0.8rem; }
.guide-card h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.guide-card p { color: var(--text-on-paper-muted); font-size: 0.9rem; flex: 1; }
.guide-card .guide-link { margin-top: 0.8rem; color: var(--forest-700); font-weight: 700; font-size: 0.9rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive: ≤ 960px ---------- */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
  }
  .hero-panel-wrap { order: 1; max-width: 520px; margin: 0 auto; }
  .hero-flag { top: -16px; right: 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .guide-list { grid-template-columns: repeat(2, 1fr); }
  .contact-info { grid-template-columns: 1fr; }
  .trust-bar .container { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
}

/* ---------- Responsive: ≤ 720px (mobile nav) ---------- */
@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn { display: none; }
  .nav-links {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(82vw, 320px);
    background: var(--forest-800);
    border-left: 1px solid var(--forest-line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + 1rem) 1rem 2rem;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    z-index: 45;
    overflow-y: auto;
  }
  .nav-links.is-open { transform: translateX(0); box-shadow: -10px 0 30px rgba(8, 38, 25, 0.4); }
  .nav-links a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--forest-line);
    font-size: 1rem;
  }
  .nav-actions .nav-flag { display: inline-block; }

  .rank-card {
    grid-template-columns: 36px 60px 1fr;
    grid-template-areas:
      "num logo body"
      "cta cta cta";
    row-gap: 0.8rem;
    padding: 1rem;
  }
  .rank-card .rank-num { grid-area: num; width: 32px; height: 32px; font-size: 0.92rem; }
  .rank-card .rank-logo { grid-area: logo; width: 72px; height: 72px; }
  .rank-card .rank-body { grid-area: body; }
  .rank-card .rank-cta {
    grid-area: cta;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dashed var(--paper-200);
    padding-top: 0.8rem;
    min-width: 0;
  }
  .rank-cta-buttons { flex-direction: row; min-width: 0; flex: 1; }
  .rank-cta-buttons .btn { flex: 1; }
  .rank-score { font-size: 1.5rem; }

  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .guide-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 1.2rem; text-align: center; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-brand p { max-width: none; margin-inline: auto; }
  .footer-social { justify-content: center; }
  .footer-grid h4 { margin-bottom: 0.5rem; }
  .footer-grid ul { gap: 0.35rem; align-items: center; }
  .footer-legal-row { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  .footer-compliance img { max-height: 50px; max-width: 100%; width: auto; height: auto; }
  .grid-2 { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .hero-stats strong { font-size: 1.4rem; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .top-strip .container { justify-content: center; text-align: center; }
  .top-strip-right { display: none; }
  .truncate-name { font-size: 0.85rem; }
}

/* ---------- Responsive: ≤ 420px (compact phones) ---------- */
@media (max-width: 420px) {
  .hero-badges .badge { font-size: 0.66rem; padding: 0.2rem 0.45rem; }
  .brand-name { font-size: 1.1rem; }
  .container { padding-inline: 1rem; }
  .rank-card .rank-tags { display: none; }
  .modal-box { padding: 1.3rem; }
}
