/* ============================================
   KAMPANYA HESAPLA — Anatolian Editorial × EV-Tech
   Stylesheet for kampanyahesapla.com
   ============================================ */

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

/* ----- Tokens ----- */
:root {
  /* Paper / Ink palette */
  --paper: #f1ebd9;
  --paper-warm: #ebe4cc;
  --paper-deep: #e3dcc1;
  --ink: #0e0e10;
  --ink-soft: #1f1f23;
  --ink-mute: #4a4a52;
  --ink-faint: #8b8b94;
  --surface: #ffffff;
  --surface-tint: #fdfaf2;
  --border: #d4cdb5;
  --border-soft: #e3dcc4;
  --border-strong: #b8b09a;

  /* Brand accents */
  --brand: #c93330;            /* Turkish red */
  --brand-deep: #9c241f;
  --brand-soft: #f5e3e0;

  --electric: #0e7c5a;         /* EV / savings green */
  --electric-bright: #14a36a;
  --electric-soft: #d4ebdf;

  --gold: #c89438;
  --gold-soft: #f5edd6;

  --charge: #1959b6;           /* charging blue */
  --charge-soft: #d6e3f5;

  /* Type */
  --display: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', 'Menlo', monospace;

  /* Radii */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  /* Shadows */
  --sh-sm: 0 1px 2px rgba(14, 14, 16, 0.06);
  --sh-md: 0 8px 24px -12px rgba(14, 14, 16, 0.18);
  --sh-lg: 0 24px 48px -20px rgba(14, 14, 16, 0.22);
  --sh-ink: 0 2px 0 0 var(--ink);

  /* Layout */
  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background-image:
    radial-gradient(ellipse 800px 600px at 8% -10%, rgba(201, 51, 48, 0.05), transparent 70%),
    radial-gradient(ellipse 700px 500px at 100% 110%, rgba(14, 124, 90, 0.04), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.05 0 0 0 0 0.05 0 0 0 0 0.06 0 0 0 0.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  background-attachment: fixed;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

/* ----- Typography ----- */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-variation-settings: "opsz" 144;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--ink-mute);
}

.eyebrow-red { color: var(--brand); }
.eyebrow-red::before { background: var(--brand); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.01em; }
h1 { font-family: var(--display); font-size: clamp(40px, 6vw, 84px); line-height: 0.98; letter-spacing: -0.025em; font-variation-settings: "opsz" 144; }
h2 { font-family: var(--display); font-size: clamp(30px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.02em; font-variation-settings: "opsz" 100; }
h3 { font-family: var(--display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
h4 { font-family: var(--sans); font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.005em; }
h5 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }

p { margin: 0 0 1em; }
p.lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

em.italic, .italic { font-style: italic; font-family: var(--display); font-variation-settings: "opsz" 144; font-weight: 400; }
.num { font-family: var(--mono); font-feature-settings: "tnum"; }
.serif { font-family: var(--display); }

/* ----- Layout ----- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.container-wide { max-width: 1440px; }
.container-narrow { max-width: 880px; }
.container-prose { max-width: 720px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.center { text-align: center; }

section { padding: clamp(56px, 8vw, 110px) 0; }
section.tight { padding: clamp(40px, 6vw, 70px) 0; }

/* ----- Header / Nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 235, 217, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.brand-mark::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--ink);
  border-radius: 50%;
  position: relative;
  box-shadow: inset -3px -3px 0 var(--brand), 0 0 0 3px var(--paper), 0 0 0 4px var(--ink);
}
.brand-mark .ampersand { color: var(--brand); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
}
.nav-links a {
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--brand); }
.nav-cta::after { content: '→'; }

.menu-btn { display: none; }

@media (max-width: 880px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px var(--gutter) 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-md);
    z-index: 100;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--border-soft);
    font-size: 16px;
    color: var(--ink);
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--brand); }
  .menu-btn {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    transition: background 0.15s ease;
  }
  .menu-btn::before { content: '☰'; font-size: 16px; }
  .menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .menu-btn[aria-expanded="true"]::before { content: '✕'; font-size: 14px; }
  .nav-cta { display: none; }
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--brand);
  transform: translateY(-1px);
  box-shadow: var(--sh-md);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--paper);
}
.btn-soft {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-soft:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.btn-lg { padding: 18px 28px; font-size: 16px; }
.btn-sm { padding: 9px 14px; font-size: 13px; }

.btn::after { content: ''; }
.btn.has-arrow::after { content: '→'; transition: transform 0.2s ease; }
.btn.has-arrow:hover::after { transform: translateX(3px); }

/* ----- Badges ----- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 100px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-red { background: var(--brand-soft); color: var(--brand-deep); }
.badge-green { background: var(--electric-soft); color: var(--electric); }
.badge-blue { background: var(--charge-soft); color: var(--charge); }
.badge-gold { background: var(--gold-soft); color: var(--gold); }
.badge-ink { background: var(--ink); color: var(--paper); }
.badge-pulse::before {
  content: '';
  display: inline-block;
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

/* ----- Hero ----- */
.hero {
  padding: clamp(60px, 10vw, 130px) 0 clamp(40px, 6vw, 90px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: end;
}
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero h1 .underline {
  position: relative;
  white-space: nowrap;
}
.hero h1 .underline::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -0.05em;
  height: 0.08em;
  background: var(--brand);
  transform-origin: left;
  animation: drawLine 1.2s 0.4s cubic-bezier(0.7, 0, 0.3, 1) backwards;
}
@keyframes drawLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-stat .num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  font-family: var(--display);
  font-variation-settings: "opsz" 144;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.hero-stat .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(14px); animation: reveal 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal-1 { animation-delay: 0.05s; }
.reveal-2 { animation-delay: 0.18s; }
.reveal-3 { animation-delay: 0.32s; }
.reveal-4 { animation-delay: 0.46s; }
.reveal-5 { animation-delay: 0.6s; }
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ----- Mini calc preview (hero) ----- */
.calc-preview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--sh-md);
  position: relative;
  overflow: hidden;
}
.calc-preview::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand) 0%, var(--brand) 33%, var(--paper) 33%, var(--paper) 67%, var(--electric) 67%, var(--electric) 100%);
}
.calc-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.calc-preview-head h5 { color: var(--ink); }

.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px dotted var(--border-soft);
}
.calc-row:last-of-type { border-bottom: none; }
.calc-row .label { color: var(--ink-mute); }
.calc-row .value { font-family: var(--mono); font-weight: 500; }
.calc-row.highlight {
  margin-top: 12px;
  padding: 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  border: none;
}
.calc-row.highlight .label { color: rgba(241, 235, 217, 0.7); }
.calc-row.highlight .value { color: var(--paper); font-size: 18px; }

/* ----- Section header ----- */
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.section-head .heading h2 { max-width: 16ch; }
.section-head .heading p { color: var(--ink-mute); margin-top: 8px; max-width: 50ch; }
.section-head a.link {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.section-head a.link:hover { color: var(--brand); border-color: var(--brand); }

/* ----- Tool / card grid ----- */
.tool-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.tool-card {
  background: var(--paper);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: background 0.2s ease;
  grid-column: span 4;
  min-height: 240px;
}
.tool-card.span-6 { grid-column: span 6; }
.tool-card.span-8 { grid-column: span 8; }
.tool-card.span-12 { grid-column: span 12; }
.tool-card:hover { background: var(--surface-tint); }
.tool-card .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-size: 22px;
  font-style: italic;
  font-weight: 500;
}
.tool-card.featured { background: var(--ink); color: var(--paper); }
.tool-card.featured:hover { background: var(--ink-soft); }
.tool-card.featured .icon { background: var(--brand); color: var(--paper); }
.tool-card.featured h4 { color: var(--paper); }
.tool-card.featured p { color: rgba(241, 235, 217, 0.65); }

.tool-card .meta {
  position: absolute;
  top: 28px; right: 28px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.tool-card.featured .meta { color: rgba(241, 235, 217, 0.5); }

.tool-card h4 { margin-top: 8px; font-size: 19px; line-height: 1.25; }
.tool-card p { font-size: 14px; line-height: 1.5; color: var(--ink-mute); margin: 0; flex: 1; }
.tool-card .open {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-card.featured .open { color: var(--paper); }
.tool-card .open::after { content: '↗'; transition: transform 0.2s ease; }
.tool-card:hover .open::after { transform: translate(2px, -2px); }

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card, .tool-card.span-6, .tool-card.span-8, .tool-card.span-12 { grid-column: span 1; }
}

/* ----- Calculator (full) ----- */
.calculator {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--sh-md);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 3.5vw, 56px);
  position: relative;
  overflow: hidden;
}
.calculator::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--ink) 50%, var(--brand) 50%, var(--brand) 75%, var(--electric) 75%, var(--electric) 100%);
}
@media (max-width: 880px) {
  .calculator { grid-template-columns: 1fr; gap: 32px; }
}

.calc-controls h3 { margin-bottom: 6px; }
.calc-controls .calc-sub { color: var(--ink-mute); font-size: 14px; margin-bottom: 28px; }

.field {
  margin-bottom: 22px;
}
.field-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.field-label label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.field-label .field-value {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-soft);
}

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--ink);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
  border-radius: 50%;
  cursor: grab;
  transition: transform 0.15s ease, background 0.15s ease;
}
.range::-webkit-slider-thumb:hover { transform: scale(1.1); background: var(--brand); }
.range::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--ink);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1px var(--ink);
  border-radius: 50%;
  cursor: grab;
}

.field-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 15px;
  transition: border 0.15s ease;
}
.field-input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14, 14, 16, 0.08);
}

.choice-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.choice {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.choice:hover { border-color: var(--ink); }
.choice.active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.choice.disabled-senaryo {
  opacity: 0.55;
  border-style: dashed;
}
.choice.disabled-senaryo .sub { color: var(--ink-faint); }
.choice.disabled-senaryo:hover { opacity: 0.85; }
.choice .sub {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
  opacity: 0.6;
}

/* Results panel */
.calc-results {
  background: var(--paper);
  border-radius: var(--r-md);
  padding: clamp(20px, 2.5vw, 32px);
  position: relative;
}
.calc-results h5 { color: var(--brand); margin-bottom: 16px; }

.result-headline {
  border-bottom: 1px dashed var(--border);
  padding-bottom: 24px;
  margin-bottom: 24px;
}
.result-headline .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 8px; }
.result-headline .figure {
  font-family: var(--display);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variation-settings: "opsz" 144;
}
.result-headline .figure .currency {
  font-size: 0.4em;
  vertical-align: 0.4em;
  color: var(--ink-mute);
  margin-left: 6px;
  font-style: italic;
  font-family: var(--display);
}
.result-headline .sub { font-size: 13px; color: var(--ink-mute); margin-top: 6px; font-family: var(--mono); }

.result-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  font-size: 14px;
  border-bottom: 1px dotted var(--border-soft);
}
.result-row:last-of-type { border-bottom: none; }
.result-row .label { color: var(--ink-mute); }
.result-row .value { font-family: var(--mono); font-weight: 500; }
.result-row.savings .value { color: var(--electric); }

.result-cta {
  margin-top: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ----- Comparison cards ----- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 880px) {
  .compare-grid { grid-template-columns: 1fr; }
  .compare-mid { display: none; }
}

.compare-side {
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.compare-side.t10x { background: var(--paper); }
.compare-side.t10f { background: var(--ink); color: var(--paper); }
.compare-side.t10f h3, .compare-side.t10f .compare-stat .num { color: var(--paper); }
.compare-side.t10f .compare-stat .label { color: rgba(241, 235, 217, 0.55); }

.compare-mid {
  width: 80px;
  background: var(--brand);
  color: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 32px;
  font-style: italic;
}
.compare-mid::before { content: '×'; font-size: 56px; line-height: 1; }
.compare-mid::after { content: 'vs'; font-size: 14px; letter-spacing: 0.2em; text-transform: uppercase; font-style: normal; font-family: var(--mono); margin-top: 8px; }

.compare-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.compare-name { font-family: var(--display); font-size: clamp(36px, 4vw, 52px); font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.compare-tagline { font-size: 14px; color: var(--ink-mute); max-width: 28ch; }
.compare-side.t10f .compare-tagline { color: rgba(241, 235, 217, 0.65); }

.compare-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.compare-stat .num { font-family: var(--display); font-size: clamp(22px, 2vw, 28px); font-weight: 500; line-height: 1; letter-spacing: -0.01em; font-variation-settings: "opsz" 144; }
.compare-stat .label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); margin-top: 4px; display: block; }

/* ----- Article / FAQ list ----- */
.article-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 880px) { .article-list { grid-template-columns: 1fr; } }
.article-card {
  background: var(--paper);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: background 0.15s ease;
}
.article-card:hover { background: var(--surface-tint); }
.article-card .meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.article-card h4 { font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.2; flex: 1; }
.article-card .read {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.article-card .read::after { content: '→'; transition: transform 0.2s ease; }
.article-card:hover .read::after { transform: translateX(3px); }

/* ----- FAQ ----- */
.faq-list {
  border-top: 1px solid var(--border);
}
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  list-style: none;
  cursor: pointer;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h4 {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 500;
  flex: 1;
}
.faq-item summary::after {
  content: '+';
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 22px;
  flex-shrink: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.faq-item .faq-body {
  margin-top: 16px;
  padding-left: 0;
  color: var(--ink-mute);
  max-width: 70ch;
  font-size: 15px;
  line-height: 1.6;
}
.faq-item .faq-body p { margin-bottom: 12px; }

/* ----- Tables ----- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14px;
}
.data-table th {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--paper);
  color: var(--ink-mute);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table .num { text-align: right; }
.data-table tr:hover td { background: var(--surface-tint); }

/* ----- Marquee / ticker ----- */
.ticker {
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  border-block: 1px solid var(--ink);
}
.ticker-track {
  display: flex;
  gap: 56px;
  padding: 14px 0;
  white-space: nowrap;
  animation: ticker 50s linear infinite;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  align-items: center;
}
.ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.ticker-track .dot {
  width: 6px; height: 6px;
  background: var(--brand);
  border-radius: 50%;
  flex-shrink: 0;
}
.ticker-track strong { color: var(--paper); font-weight: 500; }
.ticker-track em { color: rgba(241, 235, 217, 0.6); font-style: normal; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ----- Steps ----- */
.steps {
  counter-reset: step;
  display: grid;
  gap: 4px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  background: var(--surface);
  padding: 24px 28px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  counter-increment: step;
  align-items: start;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 36px;
  font-weight: 500;
  font-style: italic;
  color: var(--brand);
  line-height: 1;
}
.step h4 { margin-bottom: 6px; font-size: 18px; }
.step p { color: var(--ink-mute); font-size: 14px; margin: 0; }

/* ----- Pull quote / callout ----- */
.callout {
  background: var(--paper-warm);
  border-left: 3px solid var(--brand);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 15px;
  color: var(--ink-soft);
}
.callout strong { color: var(--ink); }

.pull {
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
  font-style: italic;
  color: var(--ink);
  letter-spacing: -0.015em;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 0;
  margin: 40px 0;
  font-variation-settings: "opsz" 144;
}

/* ----- Newsletter / form ----- */
.notify-band {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.notify-band::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--brand) 0%, transparent 60%);
  opacity: 0.18;
  border-radius: 50%;
  pointer-events: none;
}
@media (max-width: 880px) {
  .notify-band { grid-template-columns: 1fr; }
}
.notify-band h2 { color: var(--paper); }
.notify-band p { color: rgba(241, 235, 217, 0.7); max-width: 40ch; }

.notify-form {
  display: flex;
  gap: 8px;
  background: var(--paper);
  padding: 6px;
  border-radius: 100px;
  position: relative;
  z-index: 2;
}
.notify-form input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 12px 18px;
  font-size: 15px;
  outline: none;
  color: var(--ink);
}
.notify-form input::placeholder { color: var(--ink-mute); }
.notify-form button {
  background: var(--ink);
  color: var(--paper);
  padding: 12px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease;
}
.notify-form button:hover { background: var(--brand); }

/* ----- Footer ----- */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: 72px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(241, 235, 217, 0.12);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-brand h3 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--paper);
}
.footer-brand p { color: rgba(241, 235, 217, 0.6); max-width: 32ch; font-size: 14px; }

.footer-col h5 { color: rgba(241, 235, 217, 0.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14px; color: rgba(241, 235, 217, 0.85); transition: color 0.15s ease; }
.footer-col a:hover { color: var(--brand); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(241, 235, 217, 0.4);
  letter-spacing: 0.05em;
  flex-wrap: wrap;
  gap: 16px;
}

/* ----- Misc ----- */
.divider {
  height: 1px;
  background: var(--border);
  margin: 32px 0;
  position: relative;
}
.divider-ornament {
  height: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 32px 0;
  color: var(--ink-faint);
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;
  letter-spacing: 0.4em;
}
.divider-ornament::before, .divider-ornament::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 24px;
}

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

.bg-paper-deep { background: var(--paper-deep); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-surface { background: var(--surface); }

.text-mute { color: var(--ink-mute); }
.text-faint { color: var(--ink-faint); }
.text-brand { color: var(--brand); }
.text-electric { color: var(--electric); }

/* ----- Page hero (smaller) ----- */
.page-hero {
  padding: clamp(48px, 8vw, 100px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--border);
}
.page-hero .breadcrumb {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  margin-bottom: 24px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.page-hero .breadcrumb a:hover { color: var(--brand); }
.page-hero .breadcrumb .sep { color: var(--ink-faint); }

.page-hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  margin-bottom: 16px;
}
.page-hero .lead {
  max-width: 60ch;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-mute);
}

/* ----- Anatolian ornament ----- */
.ornament {
  display: inline-block;
  width: 48px; height: 16px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 16'><path d='M0 8 L8 0 L16 8 L24 0 L32 8 L40 0 L48 8' fill='none' stroke='%23c93330' stroke-width='1.5'/></svg>") no-repeat center;
}

/* ----- Print ----- */
@media print {
  .site-header, .site-footer, .nav-cta, .ticker, .notify-band { display: none; }
  body { background: white; }
}

/* ----- Sources box ----- */
.sources {
  background: var(--paper-warm);
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 24px 28px;
  font-size: 13px;
  color: var(--ink-mute);
}
.sources h5 { color: var(--brand); margin-bottom: 12px; }
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { padding: 6px 0; border-bottom: 1px dotted var(--border); }
.sources li:last-child { border-bottom: none; }
.sources a { color: var(--ink-soft); text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 2px; }
.sources a:hover { color: var(--brand); }

/* ----- Stat cards ----- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 880px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-cell {
  background: var(--paper);
  padding: 28px;
  text-align: left;
}
.stat-cell .num {
  font-family: var(--display);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "opsz" 144;
}
.stat-cell .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 8px;
  display: block;
}
.stat-cell .delta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--electric);
}
.stat-cell .delta.down { color: var(--brand); }

/* Prose styles for content articles */
.prose { max-width: 70ch; }
.prose p { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.prose h2 { font-size: clamp(26px, 3vw, 34px); margin: 48px 0 16px; }
.prose h3 { font-size: clamp(20px, 2vw, 24px); margin: 32px 0 12px; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.prose li { padding: 4px 0; line-height: 1.6; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-color: var(--brand-soft); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand); }
.prose blockquote { border-left: 3px solid var(--brand); padding: 8px 0 8px 20px; margin: 24px 0; font-family: var(--display); font-style: italic; font-size: 20px; color: var(--ink); }
