/* ============================================================
   COMPAREDAIKINAC.COM — DESIGN SYSTEM
   World-class wireframe · PHP 8 + MySQL · No AI API
   ============================================================ */

:root {
  /* Brand palette */
  --navy:        #0A1628;
  --navy-mid:    #112040;
  --navy-soft:   #1A3158;
  --cyan:        #00C2FF;
  --cyan-dk:     #0099CC;
  --cyan-glow:   rgba(0,194,255,0.12);
  --green:       #00D68F;
  --green-dk:    #00A86B;
  --green-bg:    #E6FBF4;
  --amber:       #FFB800;
  --amber-bg:    #FFF8E0;
  --red:         #FF3B5C;
  --red-bg:      #FFF0F3;
  --purple:      #7C3AED;
  --purple-bg:   #F3F0FF;

  /* Neutral surface */
  --bg:          #F5F8FF;
  --surface:     #FFFFFF;
  --surface-2:   #F0F5FF;
  --border:      #E2EAF6;
  --border-mid:  #C8D6EE;

  /* Text */
  --text-1:  #0A1628;
  --text-2:  #334866;
  --text-3:  #64789A;
  --text-4:  #9AADCC;
  --text-inv:#FFFFFF;

  /* Typography */
  --font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(10,22,40,0.06);
  --shadow-md:   0 4px 16px rgba(10,22,40,0.10);
  --shadow-lg:   0 12px 40px rgba(10,22,40,0.14);
  --shadow-cyan: 0 8px 32px rgba(0,194,255,0.22);

  /* Transitions */
  --ease: cubic-bezier(0.4,0,0.2,1);

  /* 8px spacing scale — use these tokens for new components */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 16px;
  --sp-4: 24px;
  --sp-5: 32px;
  --sp-6: 40px;
  --sp-7: 48px;
  --sp-8: 64px;
  --focus-ring: 0 0 0 3px rgba(0,194,255,.22);
}
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }
ul, ol { list-style: none; }

/* ─── LAYOUT ─── */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}
.grid-2  { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3  { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.grid-4  { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.flex    { display: flex; align-items: center; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }

/* ─── TYPOGRAPHY ─── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan-dk);
  display: block;
  margin-bottom: 8px;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.03em; }
h1 { font-size: clamp(28px, 5vw, 52px); font-weight: 800; }
h2 { font-size: clamp(22px, 4vw, 36px); font-weight: 800; }
h3 { font-size: clamp(16px, 2.5vw, 22px); font-weight: 700; }
h4 { font-size: 15px; font-weight: 700; }
.text-muted  { color: var(--text-3); }
.text-small  { font-size: 13px; }
.text-xs     { font-size: 11px; }

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 200ms var(--ease);
  white-space: nowrap;
}
.btn-primary   { background: var(--cyan); color: var(--navy); }
.btn-primary:hover { background: #33CCFF; transform: translateY(-1px); box-shadow: var(--shadow-cyan); }
.btn-dark      { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-soft); transform: translateY(-1px); }
.btn-outline   { background: transparent; color: var(--navy); border: 1.5px solid var(--border-mid); }
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan-dk); }
.btn-ghost     { background: rgba(255,255,255,0.08); color: #fff; border: 1.5px solid rgba(255,255,255,0.18); }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }
.btn-sm        { padding: 7px 14px; font-size: 12px; }
.btn-lg        { padding: 15px 32px; font-size: 16px; }
.btn-full      { width: 100%; }

/* ─── BADGES ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-cyan    { background: rgba(0,194,255,0.12); color: var(--cyan-dk); }
.badge-green   { background: var(--green-bg); color: var(--green-dk); }
.badge-amber   { background: var(--amber-bg); color: #8A5C00; }
.badge-red     { background: var(--red-bg); color: #CC1A35; }
.badge-navy    { background: var(--navy); color: var(--cyan); }
.badge-gray    { background: var(--surface-2); color: var(--text-3); border: 1px solid var(--border); }
.badge-purple  { background: var(--purple-bg); color: var(--purple); }
.badge-star    { background: var(--amber-bg); color: #8A5C00; }

/* ─── CARDS ─── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all 220ms var(--ease);
}
.card:hover {
  border-color: rgba(0,194,255,0.35);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-padded { padding: 20px; }

/* ─── SECTION HEADINGS ─── */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.section-head-centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 36px;
}
.section-desc {
  font-size: 17px;
  color: var(--text-3);
  line-height: 1.7;
  max-width: 560px;
  margin-top: 10px;
}

/* ─── FORM ELEMENTS ─── */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--text-2); }
.form-input {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-1);
  background: var(--surface);
  transition: border-color 150ms;
}
.form-input:focus { outline: none; border-color: var(--cyan); }
.form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-1);
  background: var(--surface);
  cursor: pointer;
}
.form-select:focus { outline: none; border-color: var(--cyan); }
input[type="range"] {
  accent-color: var(--cyan);
  cursor: pointer;
}

/* ─── ANNOTATION PILLS (wireframe labels) ─── */
.ann {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  vertical-align: middle;
  margin-left: 6px;
}
.ann-seo   { background: #FFF8E0; color: #8A5C00; border: 1px solid #FFD977; }
.ann-aeo   { background: #E0EEFF; color: #0057CC; border: 1px solid #99C2FF; }
.ann-geo   { background: #EDE9FE; color: #5B21B6; border: 1px solid #C4B5FD; }
.ann-rev   { background: #E6FBF4; color: #00704A; border: 1px solid #6EE7C2; }

/* ─── TOPBAR ─── */
.topbar {
  background: var(--navy);
  height: 38px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar-tag   { font-size: 11px; color: var(--cyan); font-weight: 600; }
.topbar-sep   { color: rgba(255,255,255,0.2); margin: 0 6px; }
.topbar-text  { font-size: 11px; color: rgba(255,255,255,0.5); }
.topbar-links { display: flex; gap: 16px; }
.topbar-link  { font-size: 11px; color: rgba(255,255,255,0.6); transition: color 150ms; }
.topbar-link:hover { color: #fff; }
.topbar-wa    { background: #25D366; color: #fff; padding: 2px 10px; border-radius: var(--r-full); font-weight: 600; }

/* ─── NAVBAR ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 68px;
  display: flex;
  align-items: center;
}
.nav-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--navy);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-logo-mark svg { width: 20px; height: 20px; }
.nav-logo-text {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--navy);
}
.nav-logo-text span { color: var(--cyan-dk); }
.nav-links { display: flex; gap: 4px; flex: 1; }
.nav-link {
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--r-md);
  transition: all 150ms;
}
.nav-link:hover, .nav-link.active { color: var(--cyan-dk); background: var(--cyan-glow); }
.nav-actions { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.compare-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: all 150ms;
}
.compare-btn:hover { border-color: var(--cyan); color: var(--cyan-dk); }
.compare-count {
  background: var(--cyan);
  color: var(--navy);
  font-size: 10px;
  font-weight: 800;
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ─── HERO ─── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 72px 0 80px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(0,194,255,0.05) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,194,255,0.05) 1px,transparent 1px);
  background-size: 48px 48px;
}
.hero-orb-1 {
  position: absolute;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(0,194,255,0.12), transparent 70%);
  top: -200px; right: -150px;
  border-radius: 50%;
}
.hero-orb-2 {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,100,200,0.10), transparent 70%);
  bottom: -100px; left: 100px;
  border-radius: 50%;
}
.hero-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.4} }
.hero-title { color: #fff; margin-bottom: 18px; }
.hero-title em { color: var(--cyan); font-style: normal; }
.hero-sub { font-size: 18px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; }
.stat-item { display: flex; flex-direction: column; gap: 3px; }
.stat-num { font-family: var(--font-head); font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -.04em; }
.stat-lbl { font-size: 11px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: .06em; }
.stat-div  { width: 1px; background: rgba(255,255,255,0.1); align-self: stretch; }

/* Quick finder card */
.finder-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-xl);
  padding: 28px;
  backdrop-filter: blur(12px);
}
.finder-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--cyan);
  background: rgba(0,194,255,0.12);
  border: 1px solid rgba(0,194,255,0.25);
  padding: 3px 10px;
  border-radius: var(--r-full);
  margin-bottom: 12px;
}
.finder-card h3 { font-family: var(--font-head); font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 20px; letter-spacing: -.03em; }
.finder-label { display: block; font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.finder-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.finder-toggle {
  padding: 10px 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-md);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-align: center;
  line-height: 1.4;
  cursor: pointer;
  transition: all 150ms;
}
.finder-toggle small { display: block; font-weight: 400; opacity: .6; font-size: 10px; margin-top: 2px; }
.finder-toggle:hover, .finder-toggle.active { background: rgba(0,194,255,0.15); border-color: var(--cyan); color: #fff; }
.finder-city-wrap { position: relative; margin-bottom: 18px; }
.finder-city-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,0.35); font-size: 16px; }
.finder-city-input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-md);
  font-size: 13px;
  color: #fff;
}
.finder-city-input::placeholder { color: rgba(255,255,255,0.3); }
.finder-city-input:focus { outline: none; border-color: var(--cyan); }
.finder-submit {
  width: 100%;
  padding: 13px;
  background: var(--cyan);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 200ms;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.finder-submit:hover { background: #33CCFF; }
.finder-note { font-size: 10px; color: rgba(255,255,255,0.25); text-align: center; margin-top: 10px; }

/* Popular bar */
.popular-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-xl);
  margin-top: 40px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.popular-label { font-size: 10px; font-weight: 700; color: rgba(255,255,255,0.3); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; }
.popular-links { display: flex; gap: 8px; flex-wrap: wrap; }
.popular-link {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--r-full);
  transition: all 150ms;
}
.popular-link:hover, .popular-link.cyan { color: var(--cyan); border-color: rgba(0,194,255,0.3); }

/* ─── TOOL STRIP ─── */
.tool-strip { background: var(--surface); border-bottom: 1px solid var(--border); padding: 40px 0; }
.tool-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
.tool-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  text-decoration: none;
  position: relative;
  transition: all 220ms var(--ease);
  cursor: pointer;
}
.tool-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-lg); transform: translateY(-3px); background: var(--surface); }
.tool-card-dark { background: var(--navy); border-color: var(--navy); }
.tool-card-dark h4, .tool-card-dark p { color: #fff; }
.tool-card-dark p { color: rgba(255,255,255,0.5); }
.tool-card-dark:hover { border-color: var(--cyan); }
.tool-icon { font-size: 28px; width: 52px; height: 52px; border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-icon-cyan { background: rgba(0,194,255,0.12); }
.tool-icon-blue { background: #EFF6FF; }
.tool-icon-gold { background: #FFF7E6; }
.tool-icon-green { background: var(--green-bg); }
.tool-content h4 { margin-bottom: 5px; }
.tool-content p { font-size: 12px; color: var(--text-3); line-height: 1.5; margin-bottom: 10px; }
.tool-cta { font-size: 12px; font-weight: 600; color: var(--cyan-dk); }
.tool-badge-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 9px;
  font-weight: 700;
  background: var(--cyan);
  color: var(--navy);
  padding: 2px 8px;
  border-radius: var(--r-full);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── PRODUCT CARD ─── */
.product-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all 220ms var(--ease);
  display: flex;
  flex-direction: column;
}
.product-card:hover { border-color: rgba(0,194,255,0.4); box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.product-image-area {
  height: 150px;
  background: linear-gradient(135deg, #EBF4FF, #F5F9FF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  position: relative;
  overflow: hidden;
}
.product-image-area::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(0,194,255,0.08), transparent 70%);
}
.product-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.product-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.product-series-tag { font-size: 10px; font-weight: 700; color: var(--cyan-dk); text-transform: uppercase; letter-spacing: .06em; }
.product-name { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text-1); letter-spacing: -.03em; margin: 4px 0; }
.product-desc { font-size: 12px; color: var(--text-3); margin-bottom: 14px; }
.product-specs { display: flex; gap: 8px; margin-bottom: 12px; }
.spec-chip { flex: 1; background: var(--surface-2); border-radius: var(--r-md); padding: 9px 8px; text-align: center; }
.spec-chip-label { display: block; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-4); margin-bottom: 2px; }
.spec-chip-val { display: block; font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text-1); font-variant-numeric: tabular-nums; }
.spec-chip-val.good { color: var(--green-dk); }
.spec-chip-val.best { color: var(--cyan-dk); }
.product-feat-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.feat-tag { font-size: 10px; font-weight: 500; padding: 3px 8px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-full); color: var(--text-2); }
.product-bill-box {
  background: linear-gradient(135deg, #F0FBF6, #E8F6FF);
  border: 1px solid #B8EADA;
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: 14px;
}
.bill-amount { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--green-dk); letter-spacing: -.04em; }
.bill-period { font-size: 12px; color: var(--text-3); }
.bill-note   { font-size: 10px; color: var(--text-4); margin-top: 2px; }
.product-actions { display: flex; gap: 8px; margin-top: auto; }
.btn-compare-add {
  flex: 1;
  padding: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
  transition: all 150ms;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-compare-add:hover { border-color: var(--cyan); color: var(--cyan-dk); background: var(--cyan-glow); }
.btn-compare-add.added { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-view-prod {
  flex: 1;
  padding: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border-radius: var(--r-md);
  border: none;
  cursor: pointer;
  transition: all 150ms;
}
.btn-view-prod:hover { background: var(--cyan-dk); }

/* ─── STICKY COMPARE BAR ─── */
.compare-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: var(--surface);
  border-top: 2px solid var(--cyan);
  box-shadow: 0 -8px 40px rgba(10,22,40,0.14);
  transform: translateY(100%);
  transition: transform 350ms var(--ease);
}
.compare-bar.show { transform: translateY(0); }
.compare-bar-inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.compare-slots { display: flex; gap: 12px; flex: 1; overflow-x: auto; }
.compare-slot {
  min-width: 200px;
  height: 60px;
  border: 1.5px dashed var(--border);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
}
.compare-slot.filled { border-style: solid; border-color: var(--cyan); background: var(--cyan-glow); }
.slot-empty-label { font-size: 12px; color: var(--text-4); }
.slot-model-name { font-size: 11px; font-weight: 600; color: var(--text-1); }
.slot-remove { color: var(--red); cursor: pointer; font-size: 16px; margin-left: auto; }
.compare-bar-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ─── SAVINGS CHART ─── */
.bar-chart { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: flex; align-items: center; gap: 12px; }
.bar-model { font-size: 12px; font-weight: 500; color: var(--text-2); width: 160px; flex-shrink: 0; text-align: right; }
.bar-track { flex: 1; height: 36px; background: var(--surface-2); border-radius: var(--r-md); overflow: hidden; }
.bar-fill  { height: 100%; border-radius: var(--r-md); display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; }
.bar-fill-amount { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: #fff; }
.bar-amount { font-size: 13px; font-weight: 700; width: 80px; font-variant-numeric: tabular-nums; }

/* ─── METRIC CARD ─── */
.metric { background: var(--surface-2); border-radius: var(--r-md); padding: 16px; text-align: center; }
.metric-val { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--text-1); letter-spacing: -.04em; }
.metric-val.green { color: var(--green-dk); }
.metric-val.cyan  { color: var(--cyan-dk); }
.metric-lbl { display: block; font-size: 10px; color: var(--text-4); text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* ─── COMPARISON TABLE ─── */
.cmp-wrap { overflow-x: auto; border-radius: var(--r-xl); border: 1.5px solid var(--border); background: var(--surface); box-shadow: var(--shadow-lg); }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 700px; }
.cmp-table colgroup .col-label { width: 240px; }
.cmp-table colgroup .col-product { min-width: 220px; }

/* ADDED (12 Aug 2026 — requested): "Show all specs / Show differences
   only" toggle. Row-hiding rule targets a CLASS the JS computes at
   runtime (see initDiffOnlyToggle() in app.js) — deliberately NOT
   !important, so it correctly yields to the existing collapsible-section
   JS when a section is genuinely collapsed (display:none set inline
   takes priority either way) and applies cleanly once a section is
   expanded (inline display cleared to ''). */
.cmp-diff-toggle { display: inline-flex; border: 1.5px solid var(--border); border-radius: 999px; padding: 3px; background: var(--surface-2); }
.cmp-diff-toggle-btn { border: 0; background: transparent; border-radius: 999px; padding: 7px 14px; font-size: 12px; font-weight: 600; color: var(--text-3); cursor: pointer; transition: all 150ms; }
.cmp-diff-toggle-btn.active { background: var(--navy, #0a1628); color: #fff; }
.cmp-diff-toggle-btn:not(.active):hover { color: var(--text-1); }
.cmp-table.diff-only .cmp-row.cmp-row-identical { display: none; }
.cmp-table.diff-only .cmp-collapsible.cmp-section-all-identical { display: none; }
/* Note: rows under an all-identical section are already individually
   hidden by the .cmp-row-identical rule above (a section is only ever
   flagged all-identical when EVERY one of its rows already has that
   class) — no separate sibling rule needed for the rows themselves,
   only the section header rule above to also hide the now-pointless
   collapsible header. */

.cmp-header td {
  padding: 20px;
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
  vertical-align: bottom;
}
.cmp-header td:first-child { background: var(--surface); border-right: 2px solid var(--border); position: sticky; left: 0; z-index: 5; }
.cmp-prod-head { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.cmp-prod-img { width: 100%; max-width: 210px; height: 110px; margin: 0 auto; background: linear-gradient(135deg,#EBF4FF,#F5F9FF); border-radius: var(--r-lg); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.cmp-prod-badge-slot { min-height: 22px; display: flex; align-items: center; justify-content: center; }
.cmp-prod-series { font-size: 10px; font-weight: 700; color: var(--cyan-dk); text-transform: uppercase; letter-spacing: .06em; }
.cmp-prod-model  { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--text-1); letter-spacing: -.03em; }
.cmp-prod-sub    { font-size: 11px; color: var(--text-3); }
.cmp-section-hd td {
  background: var(--surface-2);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  border-top: 2px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cmp-section-hd td:first-child { position: sticky; left: 0; background: var(--surface-2); border-right: 2px solid var(--border); z-index: 5; }
.cmp-row td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-2);
  text-align: center;
  vertical-align: middle;
  transition: background 150ms;
}
.cmp-row:hover td { background: #F8FBFF; }
.cmp-row td:first-child { text-align: left; background: var(--surface); position: sticky; left: 0; z-index: 3; border-right: 2px solid var(--border); font-weight: 500; color: var(--text-3); font-size: 12px; }
.cmp-row:hover td:first-child { background: var(--surface); }
.val-best { background: var(--green-bg) !important; color: var(--green-dk) !important; font-weight: 700; border-radius: var(--r-md); }
.val-good { color: var(--green-dk); font-weight: 600; }
.val-low  { color: var(--red); }
.val-na   { color: var(--text-4); font-style: italic; font-size: 11px; }
.val-yes  { color: var(--green-dk); font-weight: 600; }
.val-no   { color: var(--text-4); }

/* ─── VERDICT CARD ─── */
.verdict-card {
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.verdict-card.winner { border-color: var(--green); background: var(--green-bg); }
.verdict-card.runner { border-color: var(--cyan); background: var(--cyan-glow); }
.verdict-score-ring {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.verdict-score-ring.green { background: var(--green); }
.verdict-score-ring.cyan  { background: var(--cyan-dk); }
.verdict-score-num { font-family: var(--font-head); font-size: 20px; font-weight: 800; color: #fff; }
.verdict-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.verdict-tag { font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: var(--r-full); background: rgba(0,194,255,0.12); color: var(--cyan-dk); }
.verdict-tag.green { background: var(--green-bg); color: var(--green-dk); }

/* ─── CITY CARD ─── */
.city-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 18px;
  cursor: pointer;
  transition: all 200ms;
}
.city-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.city-card-dark { background: var(--navy); border-color: var(--navy); }
.city-card-dark:hover { border-color: var(--cyan); }
.city-temp  { font-family: var(--font-head); font-size: 22px; font-weight: 800; color: var(--cyan-dk); letter-spacing: -.04em; margin-bottom: 4px; }
.city-name  { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--text-1); }
.city-zone  { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.city-rec   { font-size: 11px; font-weight: 600; color: var(--text-2); margin-top: 8px; }
.city-arrow { font-size: 14px; color: var(--cyan); margin-top: 6px; transition: transform 150ms; }
.city-card:hover .city-arrow { transform: translateX(4px); }
.city-card-dark .city-name, .city-card-dark .city-temp { color: #fff; }
.city-card-dark .city-zone, .city-card-dark .city-rec, .city-card-dark .city-arrow { color: rgba(255,255,255,0.5); }

/* ─── KNOWLEDGE CARD ─── */
.knowledge-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 20px;
  cursor: pointer;
  transition: all 200ms;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.knowledge-card:hover { border-color: var(--cyan); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.knowledge-card-dark { background: var(--navy); border-color: var(--navy); }
.knowledge-card-dark h4 { color: #fff; }
.knowledge-card-dark p  { color: rgba(255,255,255,0.5); }
.knowledge-card-dark .knowledge-cta { color: var(--cyan); }
.article-tag { font-size: 10px; font-weight: 700; color: var(--cyan-dk); text-transform: uppercase; letter-spacing: .06em; }
.knowledge-cta { font-size: 12px; font-weight: 600; color: var(--cyan-dk); margin-top: auto; }

/* ─── CALCULATOR ─── */
.calc-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.calc-label { font-size: 12px; font-weight: 500; color: var(--text-2); width: 140px; flex-shrink: 0; }
.calc-slider { flex: 1; }
.calc-val   { font-size: 13px; font-weight: 700; color: var(--text-1); width: 70px; text-align: right; font-variant-numeric: tabular-nums; }
.result-box {
  background: var(--green-bg);
  border: 1.5px solid #B8EADA;
  border-radius: var(--r-xl);
  padding: 20px;
  margin-top: 18px;
}

/* ─── ADVISOR WIZARD ─── */
.step-bar { display: flex; align-items: center; margin-bottom: 28px; }
.step-item { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.step-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface);
  color: var(--text-3);
}
.step-circle.done   { background: var(--green); border-color: var(--green); color: #fff; }
.step-circle.active { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.step-label { font-size: 10px; color: var(--text-3); }
.step-line  { flex: 1; height: 2px; background: var(--border); margin: 0 4px; position: relative; top: -10px; }
.step-line.done { background: var(--green); }
.wizard-option {
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 150ms;
}
.wizard-option:hover, .wizard-option.sel { border-color: var(--cyan); background: var(--cyan-glow); }
.wizard-option .wi-icon { font-size: 24px; margin-bottom: 6px; }
.wizard-option .wi-label { font-size: 12px; font-weight: 700; color: var(--text-1); }
.wizard-option .wi-sub   { font-size: 10px; color: var(--text-3); margin-top: 2px; }

/* ─── REVENUE ZONE ─── */
.rev-zone {
  background: var(--green-bg);
  border: 1.5px dashed var(--green);
  border-radius: var(--r-lg);
  padding: 14px;
  text-align: center;
}
.rev-zone-label { font-size: 10px; font-weight: 700; color: var(--green-dk); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.rev-zone-desc  { font-size: 11px; color: var(--text-3); }
.ad-zone {
  background: var(--amber-bg);
  border: 1.5px dashed var(--amber);
  border-radius: var(--r-lg);
  padding: 14px;
  text-align: center;
}

/* ─── FLOATING WHATSAPP ─── */
.float-wa {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  z-index: 400;
  text-decoration: none;
}
.float-wa svg { width: 28px; height: 28px; }

/* ─── CTA BAND ─── */
.cta-band { background: linear-gradient(135deg, var(--cyan-dk), #006A99); padding: 60px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.65); font-size: 17px; margin-top: 8px; }
.cta-band-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─── FOOTER ─── */
.footer { background: var(--navy); padding: 64px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 280px; margin-top: 14px; }
.footer h5 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,0.8); margin-bottom: 16px; font-family: var(--font-body); }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 13px; color: rgba(255,255,255,0.4); transition: color 150ms; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 11px; color: rgba(255,255,255,0.25); }
.footer-legal-links { display: flex; gap: 20px; }
.footer-legal-links a { font-size: 11px; color: rgba(255,255,255,0.25); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-layout { grid-template-columns: 1fr; }
  .hero-right  { display: none; }
  .tool-grid   { grid-template-columns: repeat(2,1fr); }
  .knowledge-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links    { display: none; }
  .grid-4       { grid-template-columns: repeat(2,1fr); }
  .grid-3       { grid-template-columns: 1fr 1fr; }
  .city-grid-6  { grid-template-columns: repeat(3,1fr) !important; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .hero { padding: 48px 0 56px; }
  .hero-stats   { flex-wrap: wrap; gap: 20px; }
}
@media (max-width: 480px) {
  .container    { padding-inline: 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-ctas    { flex-direction: column; }
  .tool-grid    { grid-template-columns: 1fr; }
  .footer-grid  { grid-template-columns: 1fr; }
}

/* ═══ DATA PROVENANCE SYSTEM ═══ */
.badge-verified  { background: var(--green-bg); color: var(--green-dk); border: 1px solid rgba(0,214,143,0.25); }
.badge-estimate  { background: rgba(0,194,255,0.10); color: var(--cyan-dk); border: 1px solid rgba(0,194,255,0.25); }
.badge-editorial { background: var(--purple-bg); color: var(--purple); border: 1px solid rgba(168,85,247,0.25); }
.provenance-key { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--text-3); background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.provenance-key-item { display: flex; align-items: center; gap: 5px; }

/* ═══ COMPARE PAGE — collapsible sections + product header fix ═══ */
.cmp-collapsible { cursor: pointer; }
.cmp-section-toggle { background: none; border: none; width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.cmp-toggle-icon { font-weight: 800; font-size: 18px; color: var(--cyan-dk); }
.cmp-row[data-section-row] { transition: none; }

.compare-decision-summary { background: linear-gradient(135deg,#0A1628,#112040); border-radius: 20px; padding: 24px; margin-bottom: 24px; color: #fff; }
.compare-decision-intro { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.compare-winner-chip { background: rgba(0,214,143,0.15); border: 1px solid rgba(0,214,143,0.35); border-radius: 50px; padding: 8px 16px; font-size: 13px; font-weight: 700; color: var(--green); white-space: nowrap; }
.compare-decision-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.compare-decision-winner, .compare-decision-stat { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 14px; }
.compare-decision-label { font-size: 11px; color: rgba(255,255,255,0.75); text-transform: uppercase; margin-bottom: 4px; font-weight: 600; }
.compare-decision-model { font-family: var(--font-head); font-size: 14px; font-weight: 800; }
.compare-decision-series { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.compare-decision-score { margin-top: 8px; font-size: 18px; font-weight: 800; color: var(--green); }
.compare-decision-score span { font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 500; margin-left: 3px; }
.compare-decision-stat span:first-child { display: block; font-size: 11px; color: rgba(255,255,255,0.75); margin-bottom: 6px; font-weight: 600; }
.compare-decision-stat strong { display: block; font-size: 17px; font-family: var(--font-head); }
.compare-decision-stat small { display: block; font-size: 11px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ============================================================
   UNIVERSAL CONTEXT-AWARE DAIKIN AC ADVISOR
   ============================================================ */
/*
 * FIX (12 Aug 2026 — reported bug): the launcher sat at a fixed
 * bottom:22px/right:22px, z-index 1600 — ABOVE the sticky compare tray
 * (.compare-bar, z-index 500), which also docks to the bottom-right with
 * its Compare Now / Clear buttons. Whenever both were visible at once
 * (any page with items in the comparison tray), the launcher physically
 * covered those two buttons, making them unclickable — exactly the
 * "unable to click Clear/Compare" bug reported on products.php,
 * compare.php, and index.php.
 *
 * Fix: app.js now toggles a `compare-bar-visible` class on <body> in
 * lockstep with the compare bar's own `.show` class (same 4 call sites
 * that already show/hide the bar). When present, the launcher is pushed
 * up above the bar's height instead of overlapping it — the same
 * approach this stylesheet already uses for the floating WhatsApp button
 * (.float-wa, bottom:100px, for this exact same reason).
 */
.advisor-launcher{position:fixed;right:22px;bottom:22px;z-index:1600;transition:bottom 200ms var(--ease,ease)}
.advisor-launcher-btn{display:flex;align-items:center;gap:11px;border:0;border-radius:16px;padding:12px 16px;background:var(--navy,#0a1628);color:#fff;box-shadow:0 12px 34px rgba(10,22,40,.24);cursor:pointer;text-align:left}
.advisor-launcher-btn:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(10,22,40,.30)}
.advisor-launcher-icon{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:rgba(0,194,255,.14);font-size:18px}
.advisor-launcher-btn strong{display:block;font-size:11px;letter-spacing:.03em}
.advisor-launcher-btn small{display:block;font-size:10px;color:rgba(255,255,255,.62);margin-top:2px}
body.compare-bar-visible .advisor-launcher{bottom:104px}
@media(max-width:700px){
 .advisor-launcher{left:12px;right:12px;bottom:12px}
 .advisor-launcher-btn{width:100%;justify-content:center}
 .advisor-launcher-btn small{display:none}
 /* Note: this codebase's compare-bar has no dedicated mobile layout
    rules (see .compare-bar-inner above) — it stays a single flex row
    with .compare-slots scrolling horizontally, so its height shouldn't
    grow much on mobile. This offset is a conservative safety margin
    rather than a measured value, since actual height can only be
    confirmed on a real device — verify before shipping and tighten if
    104px (same as desktop) turns out to be enough. */
 body.compare-bar-visible .advisor-launcher{bottom:150px}
}


/* ============================================================
   CONVERSION + COMPONENT SYSTEM
   ============================================================ */
.eyebrow{
  display:inline-block;
  font-size:10px;
  line-height:1;
  font-weight:800;
  letter-spacing:.10em;
  text-transform:uppercase;
  color:var(--cyan-dk);
  margin-bottom:var(--sp-2);
}
.btn:focus-visible,.form-input:focus-visible,.nav-link:focus-visible,
.advisor-launcher-btn:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.conversion-band{
  margin:0;
  padding:var(--sp-7) 0;
  background:linear-gradient(135deg,var(--surface-2),#fff);
  border-top:1px solid var(--border);
  border-bottom:1px solid var(--border);
}
.conversion-band-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:var(--sp-6);
}
.conversion-copy{max-width:720px}
.conversion-copy h2{
  font-family:var(--font-head);
  font-size:clamp(22px,3vw,30px);
  line-height:1.15;
  letter-spacing:-.03em;
  margin-bottom:var(--sp-2);
}
.conversion-copy p{font-size:14px;color:var(--text-3);line-height:1.7;max-width:620px}
.conversion-actions{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap;flex-shrink:0}
.conversion-actions .btn{white-space:nowrap}

/* Consistent interaction primitives */
.ui-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);box-shadow:var(--shadow-sm)}
.ui-card-pad{padding:var(--sp-4)}
.ui-badge{display:inline-flex;align-items:center;gap:4px;border-radius:var(--r-full);padding:6px 10px;font-size:10px;font-weight:800}
.ui-filter-bar{display:flex;align-items:center;gap:var(--sp-2);flex-wrap:wrap}
.ui-filter{min-height:40px;border:1px solid var(--border);border-radius:var(--r-md);background:var(--surface);padding:0 12px;color:var(--text-2)}
.ui-filter:focus-visible{outline:none;box-shadow:var(--focus-ring);border-color:var(--cyan)}
.ui-table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin}

/* Comparison table: preserve product columns, keep spec label visible */
.cmp-wrap{position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch}
.cmp-table{min-width:760px}
.cmp-table .cmp-header td:first-child,
.cmp-table .cmp-section-hd td:first-child,
.cmp-table .cmp-row td:first-child{
  position:sticky;
  left:0;
  z-index:4;
}
.cmp-table .cmp-header td:first-child{z-index:7}
.cmp-table .cmp-section-hd td:first-child{z-index:6}
.cmp-table .cmp-row td:first-child{z-index:5;background:var(--surface)}
.cmp-table .cmp-row:nth-child(even) td:first-child{background:#fbfdff}
.cmp-table td,.cmp-table th{min-width:180px}
.cmp-table td:first-child{min-width:240px}
.compare-mobile-hint{display:none}
