/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  opacity: 0;
  transition: opacity .25s ease;
}
body.fonts-ready { opacity: 1; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Design Tokens ── */
:root {
  --p:       #3B5BDB;
  --p1:      #4C6EF5;
  --p-bg:    #EEF2FF;
  --acc:     #F59F00;
  --acc-dk:  #E08C00;
  --acc-bg:  #FFFBEB;
  --ok:      #0CA678;
  --ok-bg:   #ECFDF5;
  --ok-dk:   #087F5B;
  --text:    #1A1A2E;
  --muted:   #6B7280;
  --border:  #E5E7EB;
  --bg:      #F8FAFC;
  --surface: #FFFFFF;
  --r:       12px;
  --r-sm:    8px;
  --r-lg:    16px;
  --shadow:  0 1px 3px rgba(0,0,0,.08), 0 4px 12px rgba(0,0,0,.06);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.12);
  --t:       .18s ease;
  --font:    'Noto Sans Thai', 'Leelawadee UI', 'Tahoma', sans-serif;
  --announce-h: 36px;
  --header-h:   64px;
}

/* ── Layout Helpers ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── A: Announcement Bar ── */
.announce-bar {
  background: var(--text);
  color: #f1f5f9;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .01em;
  position: relative;
  z-index: 200;
}
.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: marquee 35s linear infinite;
  will-change: transform;
}
.marquee-track span {
  padding: 0 3rem;
  flex-shrink: 0;
}
.marquee-track span::before {
  content: '·';
  margin-right: 3rem;
  opacity: .4;
}
.marquee-track span:first-child::before { display: none; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── B: Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 1rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}
.logo-icon {
  width: 36px; height: 36px;
  background: var(--p);
  color: #fff;
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

/* Main Nav */
.main-nav {
  display: none;
  align-items: center;
  gap: .25rem;
  margin-left: 1.5rem;
  flex: 1;
}
.main-nav a {
  padding: .4rem .75rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--t), background var(--t);
}
.main-nav a:hover { color: var(--text); background: var(--bg); }

/* Header Actions */
.header-actions {
  display: none;
  align-items: center;
  gap: .5rem;
  margin-left: auto;
}
.lang-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font: inherit;
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .65rem;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color var(--t), color var(--t);
}
.lang-btn:hover { border-color: var(--p); color: var(--p); }

/* Buttons */
.btn-ghost {
  display: inline-flex; align-items: center;
  padding: .45rem 1rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  transition: border-color var(--t), background var(--t);
}
.btn-ghost:hover { border-color: var(--p); background: var(--p-bg); color: var(--p); }

.btn-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 700;
  background: var(--acc);
  color: #1A1A2E;
  border: none;
  cursor: pointer;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  white-space: nowrap;
}
.btn-cta:hover {
  background: var(--acc-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(245,159,0,.4);
}
.btn-cta:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .5rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: .88rem;
  font-weight: 600;
  background: transparent;
  color: var(--p);
  border: 1.5px solid var(--p);
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.btn-outline:hover { background: var(--p-bg); }

.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; border-radius: var(--r); }
.full-w { width: 100%; text-align: center; }

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  border-radius: var(--r-sm);
  transition: background var(--t);
}
.hamburger:hover { background: var(--bg); }
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 99px;
  transition: transform var(--t), opacity var(--t);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav Drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  position: fixed;
  top: calc(var(--announce-h) + var(--header-h));
  left: 0; right: 0; bottom: 0;
  background: var(--surface);
  padding: 1.5rem 1.25rem;
  gap: .25rem;
  z-index: 99;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-link {
  display: block;
  padding: .85rem 1rem;
  border-radius: var(--r-sm);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--t);
}
.mobile-link:hover { background: var(--bg); }
.mobile-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── C + D: Hero ── */
.hero {
  background: linear-gradient(160deg, var(--p-bg) 0%, var(--surface) 55%);
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,91,219,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }

.badge-new {
  display: inline-block;
  background: var(--p-bg);
  color: var(--p);
  font-size: .8rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(59,91,219,.25);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2rem;
  line-height: 1.8;
}
.hero-sub strong { color: var(--text); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-bottom: 2rem;
}

/* D: Feature Pills */
.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  box-shadow: var(--shadow);
}

/* ── E: Tools Section ── */
.tools-section {
  padding: 5rem 0;
  background: var(--bg);
}

.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.section-sub { color: var(--muted); font-size: .95rem; }

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: .5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.tab {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  padding: .5rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--t);
}
.tab:hover { border-color: var(--p); color: var(--p); background: var(--p-bg); }
.tab.active { background: var(--p); border-color: var(--p); color: #fff; }
.tab-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: var(--ok); }
.dot-orange { background: var(--acc); }

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

/* Tool Card */
.tool-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
  position: relative;
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}
.tool-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--p);
}

.tool-card-icon {
  width: 52px; height: 52px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.tool-card-body { flex: 1; }
.tool-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .35rem;
}
.tool-card-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
}

.tool-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: .5rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.tool-limit {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
}

.tool-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: var(--p);
  font-size: .88rem;
  font-weight: 700;
  transition: gap var(--t), color var(--t);
}
.tool-card:hover .tool-card-arrow { gap: .55rem; color: var(--p1); }

/* Badges */
.badge-free-forever,
.badge-daily {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: .7rem;
  font-weight: 700;
  padding: .22rem .65rem;
  border-radius: 999px;
  line-height: 1.4;
}
.badge-free-forever {
  background: var(--ok-bg);
  color: var(--ok-dk);
  border: 1px solid rgba(10,198,120,.3);
}
.badge-daily {
  background: var(--acc-bg);
  color: var(--acc-dk);
  border: 1px solid rgba(245,159,0,.3);
}

/* ── F: How It Works ── */
.how-section {
  padding: 5rem 0;
  background: var(--surface);
}
.steps-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  max-width: 860px;
  margin: 0 auto;
}
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  text-align: center;
  flex: 1;
  width: 100%;
}
.step-num {
  width: 44px; height: 44px;
  background: var(--p);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 1rem;
}
.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.step p { font-size: .9rem; color: var(--muted); }
.step-arrow {
  font-size: 1.75rem;
  color: var(--border);
  transform: rotate(90deg);
}

/* ── G: Pricing ── */
.pricing-section {
  padding: 5rem 0;
  background: var(--bg);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
}
.pricing-card--featured {
  border-color: var(--p);
  box-shadow: 0 0 0 4px rgba(59,91,219,.08);
}
.plan-badge-popular {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--p);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .25rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.plan-price { display: flex; align-items: baseline; gap: .25rem; }
.price-amount { font-size: 2.25rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; }
.price-period { font-size: .88rem; color: var(--muted); font-weight: 500; }
.plan-desc { font-size: .88rem; color: var(--muted); }
.plan-features {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.plan-features li { font-size: .88rem; color: var(--text); }
.plan-features .plan-limit { color: var(--muted); }

/* ── H: Footer ── */
.site-footer {
  background: var(--text);
  color: #94a3b8;
  padding: 3.5rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer-brand .logo { margin-bottom: .75rem; }
.footer-brand .logo-icon { background: var(--p1); }
.footer-brand .logo-text { color: #fff; }
.footer-tagline { font-size: .88rem; line-height: 1.7; color: #94a3b8; }
.footer-col { display: flex; flex-direction: column; gap: .6rem; }
.footer-col h4 { font-size: .88rem; font-weight: 700; color: #e2e8f0; margin-bottom: .25rem; }
.footer-col a { font-size: .85rem; color: #94a3b8; transition: color var(--t); }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .82rem;
  color: #64748b;
}
.footer-legal { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-legal a { color: #64748b; transition: color var(--t); }
.footer-legal a:hover { color: #94a3b8; }

/* ── Section Label ── */
.section-label {
  display: inline-block;
  background: var(--ok-bg);
  color: var(--ok-dk);
  font-size: .78rem;
  font-weight: 700;
  padding: .3rem .9rem;
  border-radius: 999px;
  border: 1px solid rgba(10,198,120,.25);
  margin-bottom: .75rem;
  letter-spacing: .02em;
}
.section-label--gold {
  background: var(--acc-bg);
  color: var(--acc-dk);
  border-color: rgba(245,159,0,.25);
}

/* ── Dark Tools Section ── */
.tools-section--dark { background: #F1F5F9; }

/* ── Pro Tool Cards ── */
.tool-card--pro { border-style: dashed; }
.tool-card--pro:hover { border-style: solid; }

/* ── Tier Badges ── */
.badge-tier {
  position: absolute;
  top: 1rem; right: 1rem;
  font-size: .7rem;
  font-weight: 700;
  padding: .22rem .65rem;
  border-radius: 999px;
}
.badge-basic {
  background: var(--p-bg);
  color: var(--p);
  border: 1px solid rgba(59,91,219,.25);
}
.badge-agency {
  background: #1A1A2E;
  color: #F59F00;
  border: 1px solid rgba(245,159,0,.3);
}

/* ── Pricing Toggle ── */
.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: .25rem;
  margin-bottom: 2.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: .25rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.ptoggle {
  background: none;
  border: none;
  font: inherit;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  padding: .45rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--t);
  display: flex; align-items: center; gap: .4rem;
}
.ptoggle.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.save-badge {
  background: var(--ok-bg);
  color: var(--ok-dk);
  font-size: .68rem;
  font-weight: 700;
  padding: .1rem .45rem;
  border-radius: 999px;
}

/* ── Plan Feature List ── */
.plan-features li { font-size: .875rem; display: flex; align-items: flex-start; gap: .5rem; }
.feat-ok { color: var(--text); }
.feat-ok::before { content: '✓'; color: var(--ok); font-weight: 700; flex-shrink: 0; }
.feat-no { color: #CBD5E1; }
.feat-no::before { content: '–'; color: #CBD5E1; flex-shrink: 0; }

/* ── Pricing Note ── */
.pricing-note {
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
  margin-top: 1.5rem;
}

/* ── Tool Page Base (shared by all tool pages) ── */
.tool-page { min-height: 100vh; display: flex; flex-direction: column; }
.tool-page main { flex: 1; }

.tool-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.tool-header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--t);
}
.back-link:hover { color: var(--p); }

.tool-hero {
  background: linear-gradient(160deg, var(--p-bg) 0%, var(--surface) 60%);
  padding: 2.5rem 0 2rem;
  text-align: center;
}
.tool-icon-lg {
  font-size: 3rem;
  margin-bottom: .75rem;
}
.tool-hero h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .4rem; }
.tool-hero p { color: var(--muted); font-size: .95rem; }

.tool-workspace {
  padding: 2.5rem 0 4rem;
}
.workspace-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 2rem;
  max-width: 780px;
  margin: 0 auto;
}

/* Drop Zone */
.drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  background: var(--bg);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--p);
  background: var(--p-bg);
}
.drop-zone input[type="file"] { display: none; }
.drop-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.drop-title { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; }
.drop-sub { font-size: .85rem; color: var(--muted); }

/* Controls */
.controls { display: flex; flex-direction: column; gap: 1rem; margin: 1.5rem 0; }
.control-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.control-label { font-size: .88rem; font-weight: 600; min-width: 120px; }
.control-input {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .5rem .75rem;
  font: inherit;
  font-size: .9rem;
  width: 120px;
  transition: border-color var(--t);
}
.control-input:focus { outline: none; border-color: var(--p); }
.control-select {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: .5rem .75rem;
  font: inherit;
  font-size: .9rem;
  background: var(--surface);
  cursor: pointer;
}

/* Range Slider */
.range-wrap { display: flex; align-items: center; gap: .75rem; flex: 1; }
input[type="range"] {
  flex: 1;
  accent-color: var(--p);
  height: 4px;
  cursor: pointer;
}
.range-val { font-size: .88rem; font-weight: 700; color: var(--p); min-width: 36px; text-align: right; }

/* Preview Grid */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .75rem;
  margin: 1.25rem 0;
}
.preview-item {
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
  position: relative;
  background: var(--bg);
}
.preview-item img { width: 100%; height: 110px; object-fit: cover; display: block; }
.preview-item-info {
  padding: .4rem .5rem;
  font-size: .72rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.preview-remove {
  position: absolute;
  top: .3rem; right: .3rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: .75rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t);
}
.preview-remove:hover { background: #e03131; }

/* Result Area */
.result-area { margin-top: 1.5rem; }
.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1rem;
  background: var(--ok-bg);
  border: 1px solid rgba(10,198,120,.2);
  border-radius: var(--r-sm);
  margin-bottom: .5rem;
  gap: 1rem;
}
.result-name { font-size: .88rem; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-size { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.result-dl {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--ok);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: .35rem .75rem;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background var(--t);
}
.result-dl:hover { background: var(--ok-dk); }

/* Action Row */
.action-row {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* Stat Cards (BMI/HLV) */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.stat-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  padding: 1.25rem;
  text-align: center;
}
.stat-card.highlight { background: var(--p-bg); border-color: var(--p); }
.stat-card.ok { background: var(--ok-bg); border-color: var(--ok); }
.stat-card.warn { background: #FFFBEB; border-color: var(--acc); }
.stat-card.danger { background: #FFF5F5; border-color: #E03131; }
.stat-label { font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: .35rem; }
.stat-value { font-size: 2rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.stat-unit { font-size: .85rem; color: var(--muted); margin-top: .2rem; }

/* Risk Bar */
.risk-bar-wrap { margin: 1.25rem 0; }
.risk-bar-label { font-size: .82rem; font-weight: 600; margin-bottom: .4rem; display: flex; justify-content: space-between; }
.risk-bar-track { height: 12px; border-radius: 999px; background: linear-gradient(to right, #0CA678, #F59F00, #E03131); position: relative; }
.risk-bar-pointer {
  position: absolute;
  top: -4px;
  width: 20px; height: 20px;
  background: var(--surface);
  border: 3px solid var(--text);
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left .5s ease;
}

/* ── Responsive ── */
@media (min-width: 640px) {
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { flex-direction: row; }
  .step-arrow { transform: none; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (min-width: 960px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.8fr 1fr 1fr 1fr; }
}

@media (min-width: 1024px) {
  .main-nav { display: flex; }
  .header-actions { display: flex; }
  .hamburger { display: none; }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}
