@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

:root {
  --bg: #0a0f0d;
  --bg2: #0f1611;
  --bg3: #141c17;
  --card: #161e19;
  --card-hover: #1c2720;
  --border: #1f2e23;
  --border-light: #2a3d30;
  --green: #22c55e;
  --green-dim: #166534;
  --green-glow: rgba(34,197,94,0.12);
  --red: #ef4444;
  --red-dim: #991b1b;
  --amber: #f59e0b;
  --amber-dim: #92400e;
  --text: #e8f0ea;
  --text-muted: #7a9a82;
  --text-dim: #4a6352;
  --accent: #00e87a;
  --accent2: #00c46a;
  --font-display: 'Inter', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(34,197,94,0.08);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

a { color: inherit; text-decoration: none; }

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,15,13,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 clamp(1rem, 4vw, 3rem);
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
}
.logo-text { display: inline; line-height: 1; }

.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 0.25rem; align-items: center; }

nav a {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: all 0.2s;
  white-space: nowrap;
}

nav a:hover, nav a.active {
  color: var(--text);
  background: var(--bg3);
}

.header-cta {
  background: var(--accent);
  color: var(--bg) !important;
  font-weight: 500 !important;
  border-radius: 8px;
}

.header-cta:hover {
  background: var(--accent2) !important;
  color: var(--bg) !important;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* ─── HERO ─── */
.hero {
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 3rem) 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,232,122,0.08);
  border: 1px solid rgba(0,232,122,0.2);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  display: block;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-stat-val {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ─── SECTION ─── */
.section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-link {
  font-size: 0.875rem;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
}

.section-link:hover { text-decoration: underline; }

/* ─── GRID CARDS ─── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}

.price-card {
  background: var(--card);
  padding: 1.5rem;
  transition: background 0.2s;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.price-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  transition: background 0.3s;
}

.price-card:hover { background: var(--card-hover); }
.price-card.up::after { background: var(--red); }
.price-card.down::after { background: var(--green); }
.price-card.neutral::after { background: var(--amber); }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  background: var(--bg3);
}

.card-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.card-value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.card-unit {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
}

.card-change {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  margin-top: 0.75rem;
}

.card-change.up { background: rgba(239,68,68,0.1); color: var(--red); }
.card-change.down { background: rgba(34,197,94,0.1); color: var(--green); }
.card-change.neutral { background: rgba(245,158,11,0.1); color: var(--amber); }

.card-updated {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ─── HIGHLIGHT CARD ─── */
.highlight-card {
  background: linear-gradient(135deg, rgba(0,232,122,0.06) 0%, rgba(0,232,122,0.02) 100%);
  border: 1px solid rgba(0,232,122,0.2);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.highlight-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(0,232,122,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.highlight-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--accent);
}

.highlight-number {
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.highlight-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

/* ─── COST CALCULATOR ─── */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; }
}

.calc-inputs { display: flex; flex-direction: column; gap: 1rem; }

.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  gap: 1rem;
}

.calc-row-label { font-size: 0.9rem; color: var(--text-muted); }

.calc-input {
  background: var(--bg3);
  border: 1px solid var(--border-light);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  text-align: right;
  padding: 6px 10px;
  border-radius: 8px;
  width: 100px;
  transition: border-color 0.2s;
}

.calc-input:focus {
  outline: none;
  border-color: var(--accent);
}

.calc-result {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.calc-total-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.calc-total {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.calc-breakdown { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; }

.calc-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.calc-line:last-child { border: none; }
.calc-line strong { color: var(--text); }

/* ─── CHART MINI ─── */
.mini-chart {
  height: 48px;
  margin-top: 0.75rem;
  position: relative;
}

.mini-chart svg { width: 100%; height: 100%; }

/* ─── TABLE ─── */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.data-table tr:last-child td { border: none; }
.data-table tr:hover td { background: var(--card-hover); }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-up { background: rgba(239,68,68,0.1); color: var(--red); }
.badge-down { background: rgba(34,197,94,0.1); color: var(--green); }
.badge-neutral { background: rgba(245,158,11,0.1); color: var(--amber); }

/* ─── COMPARISON BANNER ─── */
.compare-banner {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: space-between;
}

.compare-item { text-align: center; }

.compare-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.compare-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compare-vs {
  color: var(--text-dim);
  font-size: 1.5rem;
  font-weight: 300;
}

/* ─── FOOTER ─── */
footer {
  margin-top: 6rem;
  border-top: 1px solid var(--border);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 3rem);
}

.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand .logo { margin-bottom: 1rem; }
.footer-brand p { font-size: 0.875rem; color: var(--text-dim); max-width: 300px; line-height: 1.7; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--text); }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.8rem; color: var(--text-dim); }

/* ─── PAGE HEADER ─── */
.page-hero {
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem) 2rem;
  max-width: 1400px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--text-dim); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-muted);
  max-width: 600px;
  font-size: 1.05rem;
}

/* ─── TAGS ─── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
}

.tag:hover { border-color: var(--accent); color: var(--accent); }

/* ─── CONTENT ARTICLE ─── */
.article-body {
  max-width: 760px;
}

.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-body h2:first-child { border: none; margin-top: 1rem; }

.article-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 0.75rem;
}

.article-body p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.article-body ul {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  line-height: 1.8;
}

.article-body ul li { margin-bottom: 0.25rem; }

.info-box {
  background: rgba(0,232,122,0.04);
  border: 1px solid rgba(0,232,122,0.15);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.info-box strong { color: var(--accent); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  nav { display: none; }
}

@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1rem; }
}

@media (max-width: 400px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ─── ANIMATIONS ─── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  animation: fadeUp 0.5s ease both;
}

.fade-up:nth-child(2) { animation-delay: 0.05s; }
.fade-up:nth-child(3) { animation-delay: 0.1s; }
.fade-up:nth-child(4) { animation-delay: 0.15s; }
.fade-up:nth-child(5) { animation-delay: 0.2s; }
.fade-up:nth-child(6) { animation-delay: 0.25s; }
.fade-up:nth-child(7) { animation-delay: 0.3s; }
.fade-up:nth-child(8) { animation-delay: 0.35s; }

/* ─── TICKER ─── */
.ticker-wrap {
  overflow: hidden;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
  border-top: 1px solid var(--border);
  padding: 10px 0;
}

.ticker-content {
  display: flex;
  gap: 3rem;
  animation: ticker 40s linear infinite;
  width: max-content;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  white-space: nowrap;
  color: var(--text-muted);
}

.ticker-item strong { color: var(--text); font-weight: 500; }
.ticker-item.up strong { color: var(--red); }
.ticker-item.down strong { color: var(--green); }

/* ─── CTA SECTION ─── */
.cta-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.cta-section p { color: var(--text-muted); margin-bottom: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0,232,122,0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
}

/* ─── AFFILIATE CARD ─── */
.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.affiliate-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
}

.affiliate-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.affiliate-logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.affiliate-name { font-weight: 600; font-size: 0.95rem; }
.affiliate-desc { font-size: 0.8rem; color: var(--text-dim); flex: 1; }

.affiliate-rate {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}

.affiliate-btn {
  display: block;
  text-align: center;
  background: rgba(0,232,122,0.08);
  border: 1px solid rgba(0,232,122,0.2);
  color: var(--accent);
  padding: 8px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s;
}

.affiliate-btn:hover { background: rgba(0,232,122,0.15); }

/* ─── MOBILE NAV ─── */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(10,15,13,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  z-index: 100;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
}

@media (max-width: 900px) {
  .mobile-nav { display: flex; justify-content: space-around; }
  body { padding-bottom: 70px; }
}

.mobile-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: var(--text-dim);
  padding: 6px 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mobile-nav a.active { color: var(--accent); }
.mobile-nav a span { font-size: 1.25rem; }

/* ═══ MOBIILIOPTIMOINTI — lisäykset ═══════════════════════

   Korjaa: data-table overflow, highlight-grid liian leveä,
   calc-grid, section padding, article-body, page-hero,
   affiliate-grid, laskuri-sivut, ostovoima
═══════════════════════════════════════════════════════════ */

/* ─── DATA TABLE — scrollable on mobile ─── */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}
.table-scroll .data-table { min-width: 500px; }

@media (max-width: 600px) {
  .data-table th { font-size: 0.62rem; padding: 0.6rem 0.75rem; }
  .data-table td { font-size: 0.82rem; padding: 0.7rem 0.75rem; }
}

/* ─── HIGHLIGHT CARDS — 2-col on mobile ─── */
.highlight-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 700px) {
  .highlight-cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .highlight-cards-grid { grid-template-columns: 1fr; }
}

.highlight-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}
.highlight-number {
  font-size: clamp(1.75rem, 5vw, 3.5rem);
}
.highlight-desc { font-size: 0.8rem; }

/* ─── SECTION PADDING — tighter on mobile ─── */
@media (max-width: 600px) {
  .section {
    padding: 1.5rem 1rem;
  }
  .section-header {
    margin-bottom: 1rem;
    gap: 0.5rem;
  }
  .section-title { font-size: 1.1rem; }
}

/* ─── PAGE HERO — compact on mobile ─── */
@media (max-width: 600px) {
  .page-hero {
    padding: 1.25rem 1rem 1.25rem;
  }
  .page-hero h1 { font-size: 1.5rem; }
  .page-hero p  { font-size: 0.875rem; }
}

/* ─── ARTICLE BODY — full width on mobile ─── */
@media (max-width: 600px) {
  .article-body { max-width: 100%; }
  .article-body h2 { font-size: 1.15rem; margin: 1.75rem 0 0.75rem; }
  .article-body p, .article-body ul { font-size: 0.875rem; }
  .info-box { font-size: 0.82rem; padding: 1rem; }
}

/* ─── CALC GRID ─── */
@media (max-width: 600px) {
  .calc-grid { grid-template-columns: 1fr; gap: 1rem; }
  .calc-result { padding: 1.25rem; }
  .calc-total { font-size: 2rem; }
  .calc-row { padding: 0.75rem 1rem; }
  .calc-row-label { font-size: 0.82rem; }
}

/* ─── AFFILIATE GRID ─── */
@media (max-width: 500px) {
  .affiliate-grid { grid-template-columns: 1fr; }
}

/* ─── FOOTER ─── */
@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .footer-bottom p { font-size: 0.72rem; }
}

/* ─── CARDS GRID ─── */
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* ─── TAG LIST ─── */
@media (max-width: 480px) {
  .tag { font-size: 0.68rem; padding: 3px 8px; }
}

/* ─── BREADCRUMB ─── */
@media (max-width: 480px) {
  .breadcrumb { font-size: 0.72rem; }
}

/* ─── MOBILE NAV — safe area ─── */
@media (max-width: 900px) {
  .mobile-nav {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
  }
  .mobile-nav a {
    font-size: 0.58rem;
    padding: 4px 8px;
    min-width: 52px;
  }
  .mobile-nav a span { font-size: 1.15rem; }
}

/* ─── BUTTONS — full width on very small screens ─── */
@media (max-width: 360px) {
  .btn { font-size: 0.875rem; padding: 10px 16px; }
}

/* ─── TICKER — smaller on mobile ─── */
@media (max-width: 600px) {
  .ticker-item { font-size: 0.72rem; gap: 0.35rem; }
  .ticker-content { gap: 2rem; }
}

/* ─── LASKURI PAGES ─── */
@media (max-width: 600px) {
  .calc-total-label { font-size: 0.72rem; }
  .calc-total { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .calc-breakdown { font-size: 0.82rem; }
  .calc-line { font-size: 0.82rem; }
}

/* ─── PREVENT HORIZONTAL OVERFLOW ─── */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, table { max-width: 100%; }
pre, code { overflow-x: auto; }

/* ─── INPUT FIELDS — prevent zoom on iOS ─── */
input[type="number"],
input[type="email"],
input[type="text"],
select {
  font-size: 16px; /* Prevents iOS zoom on focus */
}

@media (min-width: 600px) {
  input[type="number"],
  input[type="email"],
  select {
    font-size: inherit;
  }
}
