/* KZOT Portal Design System — v2.0 (2026-03-25)
   Brand: #EF7946 orange + #495362 slate
   Fonts: Manrope (display) + DM Sans (body) + JetBrains Mono (prices)
   Built from Brand Skill, Tier 3 fallback (Stitch MCP unavailable)
*/

/* === CSS Custom Properties === */
:root {
  /* Orange ramp */
  --kzot-orange-50: #FDF0EA;
  --kzot-orange-100: #FADCC8;
  --kzot-orange-200: #F5B896;
  --kzot-orange-400: #EF7946;
  --kzot-orange-600: #C55A28;
  --kzot-orange-800: #8A3510;
  --kzot-orange-900: #5A250D;

  /* Slate ramp */
  --kzot-slate-50: #EAEDF0;
  --kzot-slate-100: #C3C9D1;
  --kzot-slate-300: #8E98A5;
  --kzot-slate-500: #495362;
  --kzot-slate-700: #2C3440;
  --kzot-slate-800: #212A36;
  --kzot-slate-900: #1A2030;

  /* Semantic */
  --kzot-trust: #0F6E56;
  --kzot-fdu: #BA7517;
  --kzot-info: #185FA5;
  --kzot-bg: #FAFBFC;
  --kzot-surface: #FDF0EA;
  --kzot-white: #FFFFFF;
}

/* === Base Typography === */
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--kzot-slate-500);
  background: var(--kzot-bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Manrope', sans-serif;
}

h1 { font-weight: 700; font-size: 48px; line-height: 1.15; }
h2 { font-weight: 600; font-size: 32px; line-height: 1.2; }
h3 { font-weight: 600; font-size: 24px; line-height: 1.3; }

.price, .font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* === Navigation === */
.nav-main {
  background: var(--kzot-slate-900);
  height: 64px;
}
.nav-main a:not(.btn-primary) {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: color 0.15s ease;
}
.nav-main a:not(.btn-primary):hover {
  color: var(--kzot-orange-400);
}

/* === Buttons === */
.btn-primary {
  background: var(--kzot-orange-400);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  transition: background-color 0.15s ease, transform 0.15s ease;
  display: inline-block;
  text-align: center;
}
.btn-primary:hover {
  background: var(--kzot-orange-600);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid var(--kzot-slate-100);
  color: var(--kzot-slate-500);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  transition: border-color 0.15s ease, color 0.15s ease;
  display: inline-block;
  text-align: center;
}
.btn-secondary:hover {
  border-color: var(--kzot-orange-400);
  color: var(--kzot-orange-400);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.3);
  color: white;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  transition: border-color 0.15s ease;
  display: inline-block;
  text-align: center;
}
.btn-ghost:hover {
  border-color: var(--kzot-orange-400);
}

/* === Cards === */
.card-product {
  background: var(--kzot-white);
  border: 0.5px solid var(--kzot-slate-100);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-product:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(73,83,98,0.10);
}

.card-segment {
  background: var(--kzot-white);
  border: 0.5px solid var(--kzot-slate-100);
  border-radius: 8px;
  padding: 28px;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.card-segment:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(73,83,98,0.06);
  border-color: var(--kzot-orange-200);
}

/* === Series Badge === */
.badge-series {
  background: var(--kzot-orange-50);
  color: var(--kzot-orange-800);
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
  display: inline-block;
}

/* === Trust Bar === */
.trust-bar {
  background: var(--kzot-slate-800);
  padding: 20px 0;
}
.trust-bar .trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 14px;
}
.trust-bar .trust-icon {
  color: var(--kzot-orange-400);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* === Sections === */
.section-dark {
  background: var(--kzot-slate-900);
  color: white;
}
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: white;
}
.section-dark p {
  color: var(--kzot-slate-300);
}

.surface-highlight {
  background: var(--kzot-surface);
}

/* === Prices === */
.price-card {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 22px;
  color: var(--kzot-slate-700);
}
.price-detail {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 28px;
  color: var(--kzot-slate-700);
}
.price-result {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 36px;
  color: var(--kzot-slate-700);
}

/* === Specs Table === */
.specs-table {
  border-radius: 12px;
  overflow: hidden;
}
.specs-table tr:nth-child(odd) {
  background: var(--kzot-slate-50);
}
.specs-table td {
  padding: 16px 24px;
  font-size: 14px;
}
.specs-table td:first-child {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  color: var(--kzot-slate-500);
}
.specs-table td:last-child {
  color: var(--kzot-slate-700);
}

/* === FAQ === */
.faq-item {
  background: var(--kzot-white);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(73,83,98,0.06);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: var(--kzot-slate-500);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; }
.faq-item summary .faq-arrow {
  color: var(--kzot-orange-400);
  transition: transform 0.2s ease;
}
.faq-item[open] summary .faq-arrow {
  transform: rotate(180deg);
}
.faq-item .faq-answer {
  padding: 0 24px 20px;
  color: var(--kzot-slate-300);
  font-size: 14px;
  line-height: 1.6;
}

/* === Footer === */
.footer-main {
  background: var(--kzot-slate-900);
}
.footer-main h3 {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: white;
}
.footer-main a {
  color: var(--kzot-slate-300);
  font-size: 14px;
  transition: color 0.15s ease;
}
.footer-main a:hover {
  color: var(--kzot-orange-400);
}
.footer-main p {
  color: var(--kzot-slate-300);
}

/* === Calculator Steps === */
.calc-step-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
}
.calc-step-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.calc-step-dot.active {
  background: var(--kzot-orange-400);
  color: white;
  box-shadow: 0 0 0 4px rgba(239,121,70,0.15);
}
.calc-step-dot.inactive {
  background: var(--kzot-slate-100);
  color: var(--kzot-slate-300);
}
.calc-step-connector {
  width: 56px;
  height: 2px;
  background: var(--kzot-slate-100);
}

/* Result card */
.result-card {
  background: var(--kzot-surface);
  border: 1.5px solid var(--kzot-orange-200);
  border-radius: 12px;
  padding: 24px;
}
.result-card .result-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--kzot-slate-700);
}

/* Savings badge */
.badge-savings {
  background: var(--kzot-trust);
  color: white;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
}
.badge-fdu {
  background: var(--kzot-fdu);
  color: white;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
}

/* === Chat Widget === */
#chat-toggle {
  background: var(--kzot-orange-400) !important;
}
#chat-toggle:hover {
  background: var(--kzot-orange-600) !important;
}
.chat-header {
  background: var(--kzot-orange-400);
}
#chat-input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--kzot-orange-400);
}
.chat-send-btn {
  background: var(--kzot-orange-400);
}
.chat-send-btn:hover {
  background: var(--kzot-orange-600);
}

/* === Form Inputs === */
input:focus, select:focus, textarea:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--kzot-orange-400);
  border-color: var(--kzot-orange-400);
}

/* === Scroll Reveal Animation === */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Hero Glow === */
.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239,121,70,0.08) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

/* === Product Photo Zoom === */
.card-product .product-photo {
  transition: transform 0.3s ease;
}
.card-product:hover .product-photo {
  transform: scale(1.03);
}

/* === Segment Icon === */
.segment-icon {
  width: 40px;
  height: 40px;
  color: var(--kzot-orange-400);
  flex-shrink: 0;
}

/* === Contact Icon === */
.contact-icon {
  width: 24px;
  height: 24px;
  color: var(--kzot-orange-400);
  flex-shrink: 0;
  margin-top: 2px;
}

/* === Stats Number === */
.stat-number {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: var(--kzot-orange-400);
  line-height: 1.1;
}

/* === Offer Checkmark === */
.offer-check {
  width: 20px;
  height: 20px;
  color: var(--kzot-orange-400);
  flex-shrink: 0;
  margin-top: 2px;
}

/* === Mobile Menu === */
.mobile-menu-panel {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  width: 280px;
  background: var(--kzot-slate-900);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 40;
  padding: 24px;
}
.mobile-menu-panel.open {
  transform: translateX(0);
}
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  top: 64px;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 39;
}
.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* === Line Clamp === */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === Leaflet Map === */
#calc-map { z-index: 10; }

/* === Responsive === */
@media (max-width: 767px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .price-card { font-size: 20px; }
  .price-detail { font-size: 24px; }
  .price-result { font-size: 28px; }
  #chat-panel { width: calc(100vw - 2rem) !important; right: 1rem; }
}

@media (max-width: 1023px) {
  .section-padding { padding-top: 64px; padding-bottom: 64px; }
}

@media (min-width: 1024px) {
  .section-padding { padding-top: 96px; padding-bottom: 96px; }
}
