/* ============================================
   ActuFax — Magazine Style (white + orange)
   ============================================ */

/* Self-hosted fonts (no Google Fonts CDN — KVKK-friendly) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable.woff2') format('woff2-variations'),
       url('../fonts/InterVariable.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/InterVariable-Italic.woff2') format('woff2-variations'),
       url('../fonts/InterVariable-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/SourceSerif4-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Palette */
  --af-bg: #FFFFFF;
  --af-bg-soft: #F8FAFC;
  --af-bg-card: #FFFFFF;
  --af-text: #0F172A;
  --af-text-muted: #475569;
  --af-text-soft: #64748B;
  --af-border: #E2E8F0;
  --af-border-soft: #F1F5F9;
  --af-accent: #F97316;
  --af-accent-hover: #EA580C;
  --af-accent-soft: #FFEDD5;
  --af-accent-dark: #C2410C;
  --af-success: #16A34A;
  --af-warning: #F59E0B;
  --af-danger: #DC2626;
  --af-link: #0F172A;
  --af-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  --af-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);

  /* Type */
  --af-font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --af-font-serif: 'Source Serif 4', 'Merriweather', Georgia, serif;
  --af-font-mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;

  /* Layout */
  --af-container: 1200px;
  --af-container-narrow: 760px;
  --af-radius: 10px;
  --af-radius-lg: 16px;
  --af-radius-sm: 6px;
}

/* Skip-to-main link (a11y WCAG 2.4.1) */
.af-skip {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--af-text);
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  z-index: 200;
  text-decoration: none;
  transition: top .2s ease;
}
.af-skip:focus {
  top: 12px;
  color: #FFFFFF !important;
  outline: 2px solid var(--af-accent);
  outline-offset: 2px;
}

/* Reset & base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--af-font-ui);
  font-size: 17px;
  line-height: 1.65;
  color: var(--af-text);
  background: var(--af-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--af-link); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--af-accent); }
button { font: inherit; cursor: pointer; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--af-font-serif);
  font-weight: 700;
  line-height: 1.2;
  color: var(--af-text);
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-top: 2.5em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-top: 2em; }
h4 { font-size: 1.15rem; margin-top: 1.5em; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.5em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 700; color: var(--af-text); }

/* Container */
.af-container { max-width: var(--af-container); margin: 0 auto; padding: 0 24px; }
.af-narrow { max-width: var(--af-container-narrow); margin: 0 auto; padding: 0 24px; }

/* ============================================
   Header / Navigation
   ============================================ */
.af-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--af-border);
}
.af-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--af-container);
  margin: 0 auto;
  gap: 24px;
}
.af-logo { display: flex; align-items: center; gap: 10px; }
.af-logo img { height: 75px; width: auto; }
.af-nav { display: flex; gap: 28px; align-items: center; }
.af-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--af-text);
  position: relative;
  padding: 4px 0;
}
.af-nav a:hover { color: var(--af-accent); }
.af-nav a.active::after {
  content: '';
  position: absolute;
  bottom: -18px;
  left: 0; right: 0;
  height: 3px;
  background: var(--af-accent);
}
.af-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: var(--af-accent);
  color: #FFFFFF !important;
  border-radius: var(--af-radius-sm);
  font-weight: 600;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.25);
}
.af-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.af-cta:hover {
  background: var(--af-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(249, 115, 22, 0.38);
}
.af-cta:hover::before { transform: translateX(100%); }
.af-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-sm);
  padding: 8px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease;
}
.af-mobile-toggle svg { width: 22px; height: 22px; color: var(--af-text); }
.af-mobile-toggle:hover { border-color: var(--af-accent); }
.af-mobile-toggle .af-icon-close { display: none; }
.af-header.is-open .af-mobile-toggle .af-icon-bars { display: none; }
.af-header.is-open .af-mobile-toggle .af-icon-close { display: block; }

/* ============================================
   Page Intro (magazine-style with subtle gradient)
   ============================================ */
.af-intro {
  padding: 64px 0 36px;
  text-align: center;
  border-bottom: 1px solid var(--af-border-soft);
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(249, 115, 22, 0.06), transparent 70%),
    linear-gradient(180deg, #FFFBF5 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
}
.af-intro::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(15, 23, 42, 0.04) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 30%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, transparent 90%);
  pointer-events: none;
}
.af-intro > * { position: relative; }
.af-intro .af-section__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: var(--af-accent-soft);
  font-size: 12px;
  font-weight: 700;
  color: var(--af-accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border-radius: 999px;
  margin-bottom: 18px;
}
.af-intro h1 {
  margin: 0 auto 16px;
  max-width: 880px;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  background: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.af-intro__lede {
  font-family: var(--af-font-serif);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.55;
  color: var(--af-text-muted);
  max-width: 720px;
  margin: 0 auto;
}

/* Buttons (kept for in-article CTAs / future use) */
.af-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: var(--af-accent);
  color: #FFFFFF !important;
  border-radius: var(--af-radius-sm);
  font-weight: 600;
  font-size: 16px;
  transition: background .15s ease, transform .15s ease;
  border: 0;
  cursor: pointer;
}
.af-btn-primary:hover { background: var(--af-accent-hover); transform: translateY(-1px); }
.af-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: transparent;
  color: var(--af-text) !important;
  border-radius: var(--af-radius-sm);
  border: 1.5px solid var(--af-border);
  font-weight: 600;
  font-size: 16px;
  transition: border-color .15s ease, color .15s ease;
}
.af-btn-secondary:hover { border-color: var(--af-accent); color: var(--af-accent) !important; }

/* ============================================
   Trust strip
   ============================================ */
.af-trust {
  background: var(--af-bg-soft);
  padding: 26px 0;
  border-bottom: 1px solid var(--af-border-soft);
}
.af-trust__inner {
  max-width: var(--af-container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.af-trust__item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--af-text-muted);
  transition: transform .2s ease;
}
.af-trust__item:hover { transform: translateY(-1px); }
.af-trust__item svg {
  width: 22px;
  height: 22px;
  color: var(--af-success);
  flex-shrink: 0;
  background: #DCFCE7;
  padding: 4px;
  border-radius: 50%;
  box-sizing: content-box;
}
.af-trust__num {
  font-family: var(--af-font-serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--af-text);
  margin-right: 2px;
}

/* ============================================
   Section
   ============================================ */
.af-section { padding: 70px 0; }
.af-section--soft { background: var(--af-bg-soft); }
.af-section__head {
  max-width: var(--af-container);
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 16px;
}
.af-section__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  position: relative;
  display: inline-block;
}
.af-section__head h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 48px;
  height: 3px;
  background: var(--af-accent);
  border-radius: 2px;
}
.af-section__head a {
  font-weight: 600;
  color: var(--af-accent);
  font-size: 15px;
  position: relative;
  transition: gap .2s ease;
}
.af-section__head a:hover { color: var(--af-accent-hover); }
.af-section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--af-font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--af-accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}
.af-section__eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--af-accent);
  border-radius: 2px;
  display: inline-block;
}

/* ============================================
   Article cards
   ============================================ */
.af-grid {
  max-width: var(--af-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 28px;
  perspective: 1200px;
}
.af-grid--3 { grid-template-columns: repeat(3, 1fr); }
.af-grid--4 { grid-template-columns: repeat(4, 1fr); }
.af-grid--features { grid-template-columns: 1.5fr 1fr 1fr; }

.af-card {
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s cubic-bezier(.4,0,.2,1), box-shadow .3s cubic-bezier(.4,0,.2,1), border-color .3s ease;
  position: relative;
}
.af-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--af-radius-lg);
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), transparent 50%);
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
.af-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.10), 0 2px 6px rgba(15, 23, 42, 0.06);
  border-color: rgba(249, 115, 22, 0.35);
}
.af-card:hover::after { opacity: 1; }
.af-card__media { aspect-ratio: 16/9; overflow: hidden; background: var(--af-bg-soft); position: relative; }
.af-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.af-card:hover .af-card__media img { transform: scale(1.04); }
.af-card__tag {
  position: absolute;
  top: 12px; left: 12px;
  padding: 4px 10px;
  background: var(--af-accent);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.af-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.af-card__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--af-text-soft); margin-bottom: 10px; }
.af-card__meta strong { color: var(--af-text-muted); font-weight: 500; }
.af-card h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  line-height: 1.3;
}
.af-card h3 a { color: var(--af-text); }
.af-card h3 a:hover { color: var(--af-accent); }
.af-card__excerpt { color: var(--af-text-muted); font-size: 15px; margin: 0 0 14px; flex: 1; }
.af-card__read {
  font-size: 14px;
  font-weight: 600;
  color: var(--af-accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  transition: gap .2s ease;
}
.af-card:hover .af-card__read { gap: 10px; }

/* Featured card (larger) */
.af-card--feature {
  grid-column: span 2;
  grid-row: span 2;
}
.af-card--feature .af-card__media { aspect-ratio: 16/10; }
.af-card--feature h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.af-card--feature .af-card__excerpt { font-size: 17px; }

/* Brand strip */
.af-brand-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 44px 24px;
  max-width: var(--af-container);
  margin: 0 auto;
  border-top: 1px solid var(--af-border-soft);
  border-bottom: 1px solid var(--af-border-soft);
}
.af-brand-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: transform .25s ease, filter .25s ease;
  filter: grayscale(40%) opacity(0.75);
}
.af-brand-strip a:hover {
  transform: translateY(-2px);
  filter: grayscale(0%) opacity(1);
}
.af-brand-strip img {
  max-height: 36px;
  width: auto;
  display: block;
}

/* ============================================
   Comparison Table
   ============================================ */
.af-table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--af-border); border-radius: var(--af-radius); }
.af-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--af-bg-card);
}
.af-table th, .af-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--af-border-soft);
}
.af-table th {
  background: var(--af-bg-soft);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--af-text-muted);
}
.af-table tr:last-child td { border-bottom: 0; }
.af-table tr.af-winner { background: #F0FDF4; }
.af-table tr.af-winner td:first-child::before {
  content: '★ ';
  color: var(--af-accent);
  font-weight: 700;
}

/* ============================================
   Quote box
   ============================================ */
.af-quote {
  margin: 32px 0;
  padding: 28px 32px;
  background: var(--af-accent-soft);
  border-left: 4px solid var(--af-accent);
  border-radius: var(--af-radius);
  font-family: var(--af-font-serif);
  font-style: italic;
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--af-text);
}
.af-quote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  font-style: normal;
  font-family: var(--af-font-ui);
  color: var(--af-text-muted);
}

/* ============================================
   BLUF box
   ============================================ */
.af-bluf {
  margin: 24px 0;
  padding: 24px 28px;
  background: var(--af-bg-soft);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
}
.af-bluf__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--af-font-ui);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--af-accent);
  margin: 0 0 12px;
}
.af-bluf ul { margin: 0; padding-left: 20px; }
.af-bluf li { margin-bottom: 8px; font-size: 16px; }
.af-bluf li strong { color: var(--af-text); }

/* ============================================
   FAQ accordion
   ============================================ */
.af-faq { margin: 32px 0; }
.af-faq details {
  background: var(--af-bg-card);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.af-faq details[open] { border-color: var(--af-accent); }
.af-faq summary {
  padding: 18px 22px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.af-faq summary::-webkit-details-marker { display: none; }
.af-faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--af-accent);
  transition: transform .2s ease;
}
.af-faq details[open] summary::after { transform: rotate(45deg); }
.af-faq__body { padding: 0 22px 22px; color: var(--af-text-muted); }

/* ============================================
   Article (long-form)
   ============================================ */
.af-article {
  max-width: var(--af-container-narrow);
  margin: 0 auto;
  padding: 50px 24px 80px;
}
.af-article__meta { display: flex; align-items: center; gap: 14px; font-size: 14px; color: var(--af-text-soft); margin-bottom: 20px; }
.af-article__meta a { color: var(--af-accent); font-weight: 500; }
.af-article h1 { margin-bottom: 24px; }
.af-article__lede {
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--af-text-muted);
  font-family: var(--af-font-serif);
  margin-bottom: 32px;
}
.af-article p, .af-article ul, .af-article ol { font-size: 17px; }
.af-article a:not(.af-btn-primary):not(.af-btn-secondary) {
  color: var(--af-accent-dark);
  border-bottom: 1px solid var(--af-accent-soft);
}
.af-article a:not(.af-btn-primary):not(.af-btn-secondary):hover { color: var(--af-accent); border-color: var(--af-accent); }
.af-article img { border-radius: var(--af-radius); margin: 24px 0; }
.af-article figure { margin: 28px 0; }
.af-article figcaption { font-size: 14px; color: var(--af-text-soft); text-align: center; margin-top: 8px; }

/* TOC */
.af-toc {
  background: var(--af-bg-soft);
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 18px 22px;
  margin: 28px 0;
}
.af-toc__title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--af-text-muted);
  margin: 0 0 10px;
}
.af-toc ol { margin: 0; padding-left: 22px; counter-reset: toc; list-style: none; }
.af-toc li { margin-bottom: 5px; counter-increment: toc; position: relative; }
.af-toc li::before { content: counter(toc) '.'; position: absolute; left: -22px; color: var(--af-accent); font-weight: 600; }
.af-toc a { color: var(--af-text); font-size: 15px; }
.af-toc a:hover { color: var(--af-accent); }

/* ============================================
   Author bio card
   ============================================ */
.af-author {
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--af-bg-soft);
  border-radius: var(--af-radius-lg);
  margin: 40px 0;
  align-items: flex-start;
}
.af-author__photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F97316, #FB923C);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 800;
  font-size: 36px;
  flex-shrink: 0;
}
.af-author__photo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.af-author__body h3 { margin: 0 0 6px; font-size: 1.15rem; }
.af-author__role { color: var(--af-text-muted); font-size: 14px; margin: 0 0 10px; }
.af-author__bio { font-size: 15px; color: var(--af-text-muted); margin: 0 0 10px; }
.af-author__credentials { display: flex; gap: 14px; flex-wrap: wrap; }
.af-author__credentials span {
  font-size: 12px;
  padding: 4px 10px;
  background: #FFFFFF;
  border: 1px solid var(--af-border);
  border-radius: 999px;
  color: var(--af-text-muted);
  font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
.af-footer {
  background: #0F172A;
  color: #CBD5E1;
  padding: 60px 0 30px;
  margin-top: 60px;
}
.af-footer h4 {
  color: #FFFFFF;
  font-family: var(--af-font-ui);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.af-footer a { color: #94A3B8; font-size: 14px; }
.af-footer a:hover { color: var(--af-accent); }
.af-footer__grid {
  max-width: var(--af-container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.af-footer__col ul { list-style: none; padding: 0; margin: 0; }
.af-footer__col li { margin-bottom: 8px; }
.af-footer__bottom {
  max-width: var(--af-container);
  margin: 0 auto;
  padding: 24px 24px 0;
  border-top: 1px solid #1E293B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.af-disclaimer {
  background: #FEF3C7;
  border-left: 4px solid #F59E0B;
  padding: 14px 20px;
  font-size: 13px;
  color: #78350F;
  line-height: 1.5;
  max-width: var(--af-container);
  margin: 0 auto 30px;
  border-radius: var(--af-radius-sm);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .af-grid--3 { grid-template-columns: 1fr 1fr; }
  .af-grid--4 { grid-template-columns: 1fr 1fr; }
  .af-grid--features { grid-template-columns: 1fr; }
  .af-card--feature { grid-column: span 2; grid-row: auto; }
  .af-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .af-nav { display: none; }
  .af-mobile-toggle { display: inline-flex; }
  .af-intro { padding: 40px 0 20px; }
  .af-grid--3 { grid-template-columns: 1fr; }
  .af-grid--4 { grid-template-columns: 1fr 1fr; }
  .af-card--feature { grid-column: auto; }
  .af-section { padding: 50px 0; }
  .af-footer__grid { grid-template-columns: 1fr; }
  .af-author { flex-direction: column; }
  .af-author__photo { width: 80px; height: 80px; font-size: 28px; }
}
@media (max-width: 480px) {
  .af-grid--4 { grid-template-columns: 1fr; }
  .af-trust__inner { gap: 14px; }
  .af-trust__item { font-size: 13px; }
}

/* Mobile menu open */
.af-header.is-open .af-nav {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: #FFFFFF;
  flex-direction: column;
  padding: 16px 24px;
  gap: 16px;
  border-bottom: 1px solid var(--af-border);
}

/* ============================================
   Legal: Age gate modal (18+)
   ============================================ */
.af-age-gate {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.af-age-gate__card {
  background: #FFFFFF;
  max-width: 480px;
  width: 100%;
  border-radius: var(--af-radius-lg);
  padding: 36px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.af-age-gate__badge {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--af-accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--af-font-serif);
  font-size: 28px;
  font-weight: 800;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
}
.af-age-gate__card h2 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}
.af-age-gate__card p {
  color: var(--af-text-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 24px;
}
.af-age-gate__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.af-age-gate__yes,
.af-age-gate__no {
  padding: 12px 28px;
  border-radius: var(--af-radius-sm);
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.af-age-gate__yes {
  background: var(--af-accent);
  color: #FFFFFF;
}
.af-age-gate__yes:hover { background: var(--af-accent-hover); }
.af-age-gate__no {
  background: #F1F5F9;
  color: var(--af-text);
}
.af-age-gate__no:hover { background: #E2E8F0; }
.af-age-gate__legal {
  font-size: 12px;
  color: var(--af-text-soft);
  margin-top: 18px;
  line-height: 1.4;
}
.af-age-gate__legal a { color: var(--af-accent); text-decoration: underline; }

/* ============================================
   Legal: KVKK Cookie banner
   ============================================ */
.af-cookies {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 540px;
  margin: 0 auto;
  z-index: 90;
  background: #FFFFFF;
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius-lg);
  padding: 22px 24px;
  box-shadow: 0 10px 40px rgba(15,23,42,0.18);
  display: none;
  font-size: 14px;
  line-height: 1.5;
}
.af-cookies.is-visible { display: block; animation: af-cookies-in .3s ease; }
@keyframes af-cookies-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.af-cookies h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-family: var(--af-font-ui);
}
.af-cookies p { margin: 0 0 14px; color: var(--af-text-muted); }
.af-cookies a { color: var(--af-accent); text-decoration: underline; }
.af-cookies__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.af-cookies__btn {
  padding: 10px 18px;
  border-radius: var(--af-radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: background .15s ease;
}
.af-cookies__accept {
  background: var(--af-accent);
  color: #FFFFFF;
}
.af-cookies__accept:hover { background: var(--af-accent-hover); }
.af-cookies__customize,
.af-cookies__reject {
  background: transparent;
  color: var(--af-text);
  border: 1px solid var(--af-border);
}
.af-cookies__customize:hover,
.af-cookies__reject:hover { border-color: var(--af-text-muted); }

/* Cookie preferences modal */
.af-cookies-prefs {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.af-cookies-prefs.is-open { display: flex; }
.af-cookies-prefs__card {
  background: #FFFFFF;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: var(--af-radius-lg);
  padding: 28px 32px;
}
.af-cookies-prefs__card h3 { margin: 0 0 16px; }
.af-cookies-prefs__group {
  border: 1px solid var(--af-border);
  border-radius: var(--af-radius);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.af-cookies-prefs__group-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.af-cookies-prefs__group-head strong { font-size: 15px; }
.af-cookies-prefs__group p { margin: 0; font-size: 13px; color: var(--af-text-muted); line-height: 1.5; }
.af-toggle {
  position: relative;
  width: 42px;
  height: 24px;
  background: #CBD5E1;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease;
}
.af-toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: transform .2s ease;
}
.af-toggle.is-on { background: var(--af-accent); }
.af-toggle.is-on::after { transform: translateX(18px); }
.af-toggle.is-locked { opacity: .6; cursor: not-allowed; }

/* Affiliate disclosure inline notice */
.af-affiliate-notice {
  background: #FFFBEB;
  border-left: 4px solid #F59E0B;
  padding: 12px 16px;
  font-size: 13px;
  color: #78350F;
  border-radius: var(--af-radius-sm);
  margin: 20px 0;
  line-height: 1.5;
}
.af-affiliate-notice strong { color: #78350F; }

/* Responsible gambling badge for footer */
.af-responsible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #FEE2E2;
  color: #991B1B;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Reveal animation — staggered for cards */
.af-fade { opacity: 0; transform: translateY(18px); transition: opacity .55s cubic-bezier(.4,0,.2,1), transform .55s cubic-bezier(.4,0,.2,1); }
.af-fade.af-in { opacity: 1; transform: translateY(0); }
.af-grid .af-card.af-fade:nth-child(1) { transition-delay: 0ms; }
.af-grid .af-card.af-fade:nth-child(2) { transition-delay: 60ms; }
.af-grid .af-card.af-fade:nth-child(3) { transition-delay: 120ms; }
.af-grid .af-card.af-fade:nth-child(4) { transition-delay: 180ms; }
.af-grid .af-card.af-fade:nth-child(5) { transition-delay: 80ms; }
.af-grid .af-card.af-fade:nth-child(6) { transition-delay: 140ms; }
.af-grid .af-card.af-fade:nth-child(7) { transition-delay: 200ms; }
.af-grid .af-card.af-fade:nth-child(8) { transition-delay: 260ms; }

/* Smooth focus rings */
:focus-visible {
  outline: 2px solid var(--af-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Subtle separator pattern between sections */
.af-section + .af-section--soft { border-top: 1px solid var(--af-border-soft); }

/* Smooth scroll progress bar already in main.js */
@media (prefers-reduced-motion: reduce) {
  .af-fade { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* Print */
@media print {
  .af-header, .af-footer, .af-cta, .af-cookies, .af-age-gate { display: none !important; }
  body { font-size: 11pt; color: #000; }
}
