/* ==========================================================================
   demo.css — Al-Faris HVAC Standalone Demo (Fully Responsive)
   ========================================================================== */

:root {
  --ink: #1F2A38;
  --ink-soft: #5B6774;
  --cloud: #F3F5F8;
  --paper: #FFFFFF;
  --steel: #2F5D82;
  --steel-dark: #234B6A;
  --steel-deeper: #163248;
  --ember: #E2884F;
  --ember-soft: #FCE7D6;
  --ice: #7FB5D5;
  --ice-soft: #E6F1F8;
  --line: #E3E7EC;
  --shadow: rgba(24, 35, 48, 0.18);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ============ DEMO BANNER ============ */
.demo-banner {
  background: var(--steel-deeper);
  color: #fff;
  text-align: center;
  padding: clamp(8px, 1.5vw, 12px) clamp(12px, 3vw, 24px);
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.demo-banner span { color: var(--ice); }

/* ============ NAV ============ */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.5vw, 24px) clamp(16px, 6vw, 80px);
  max-width: 1200px;
  margin: 0 auto;
  gap: 12px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  flex-shrink: 0;
}
.logo .dot {
  width: clamp(8px, 1vw, 10px);
  height: clamp(8px, 1vw, 10px);
  border-radius: 50%;
  background: var(--ice);
  box-shadow: 0 0 0 4px var(--ice-soft);
  flex-shrink: 0;
}
.logo-suffix {
  color: var(--steel);
  font-weight: 600;
  font-size: clamp(0.78rem, 1.3vw, 0.92rem);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: clamp(16px, 2.2vw, 28px);
  font-size: clamp(0.82rem, 1.1vw, 0.88rem);
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links span { cursor: pointer; transition: color 0.15s; }
.nav-links span:hover { color: var(--steel); }

/* ============ HERO ============ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 60px) clamp(16px, 6vw, 80px) clamp(48px, 8vw, 80px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 5vw, 60px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--steel);
  font-size: clamp(0.72rem, 1.1vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: clamp(12px, 2vw, 20px);
  background: var(--ice-soft);
  padding: clamp(5px, 0.8vw, 7px) clamp(10px, 1.6vw, 14px);
  border-radius: 999px;
  align-self: flex-start;
  white-space: nowrap;
}
.hero-eyebrow svg {
  width: clamp(12px, 1.2vw, 15px);
  height: clamp(12px, 1.2vw, 15px);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(1.7rem, 5.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 clamp(14px, 2vw, 20px);
}
.hero h1 .accent { color: var(--steel); }

.hero p {
  font-size: clamp(0.92rem, 1.4vw, 1.05rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 500px;
  margin: 0 0 clamp(20px, 3vw, 30px);
}

.hero-actions {
  display: flex;
  gap: clamp(8px, 1.2vw, 12px);
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--steel-deeper);
  color: #fff;
  border: none;
  padding: clamp(11px, 1.5vw, 14px) clamp(20px, 2.4vw, 26px);
  border-radius: 999px;
  font-size: clamp(0.85rem, 1.2vw, 0.95rem);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.15s;
  white-space: nowrap;
}
.hero-cta:hover { background: var(--steel-dark); transform: translateY(-1px); }

.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--steel-deeper);
  border: 1.5px solid var(--line);
  padding: clamp(10px, 1.4vw, 12px) clamp(18px, 2.2vw, 22px);
  border-radius: 999px;
  font-size: clamp(0.82rem, 1.1vw, 0.92rem);
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.hero-phone:hover { border-color: var(--steel); color: var(--steel); }
.hero-phone svg {
  width: clamp(13px, 1.3vw, 16px);
  height: clamp(13px, 1.3vw, 16px);
  flex-shrink: 0;
}

.hero-visual {
  height: clamp(220px, 30vw, 340px);
  background: linear-gradient(135deg, var(--ice-soft) 0%, #CFE3F0 100%);
  border-radius: clamp(16px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.6) 0%, transparent 50%);
}

.hero-visual-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, 1.5vw, 16px);
  padding: 16px;
}

.hvac-icon {
  font-size: clamp(3.5rem, 9vw, 6rem);
  filter: drop-shadow(0 10px 20px rgba(47, 93, 130, 0.2));
  line-height: 1;
}

.hvac-badge {
  background: var(--steel-deeper);
  color: #fff;
  font-size: clamp(0.68rem, 1vw, 0.78rem);
  font-weight: 700;
  padding: clamp(6px, 0.9vw, 8px) clamp(12px, 1.6vw, 16px);
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ============ SECTION HEAD ============ */
section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 60px) clamp(16px, 6vw, 80px);
}

.services { border-top: 1px solid var(--line); }

.section-head {
  max-width: 560px;
  margin: 0 0 clamp(28px, 4vw, 40px);
}
.section-head .kicker {
  color: var(--steel);
  font-size: clamp(0.74rem, 1vw, 0.82rem);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}
.section-head p {
  color: var(--ink-soft);
  font-size: clamp(0.9rem, 1.2vw, 0.98rem);
  line-height: 1.6;
  margin: 0;
}

/* ============ SERVICES ============ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 2vw, 20px);
}

.service-card {
  padding: clamp(20px, 2.6vw, 28px);
  border: 1px solid var(--line);
  border-radius: clamp(14px, 1.8vw, 18px);
  background: var(--paper);
  transition: border-color 0.2s, transform 0.2s;
}
.service-card:hover {
  border-color: var(--ice);
  transform: translateY(-2px);
}

.service-icon {
  width: clamp(42px, 5vw, 48px);
  height: clamp(42px, 5vw, 48px);
  border-radius: clamp(10px, 1.4vw, 12px);
  background: var(--ice-soft);
  color: var(--steel);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(12px, 1.8vw, 18px);
  flex-shrink: 0;
}
.service-icon svg {
  width: clamp(18px, 2.2vw, 22px);
  height: clamp(18px, 2.2vw, 22px);
}

.service-card h3 {
  font-size: clamp(0.95rem, 1.3vw, 1.05rem);
  font-weight: 700;
  margin: 0 0 6px;
}
.service-card .price {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(0.74rem, 1vw, 0.82rem);
  color: var(--ember);
  font-weight: 700;
  margin-bottom: clamp(8px, 1.2vw, 12px);
}
.service-card p {
  font-size: clamp(0.82rem, 1.1vw, 0.88rem);
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0;
}

/* ============ TRUST BAR ============ */
.trust {
  background: var(--steel-deeper);
  max-width: 100%;
  padding: clamp(32px, 5vw, 50px) clamp(16px, 6vw, 80px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
  text-align: center;
  color: #fff;
  margin-top: clamp(28px, 4vw, 40px);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: clamp(4px, 0.8vw, 8px);
  min-width: 0;
}

.trust-num {
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ice);
  line-height: 1.1;
}

.trust-label {
  font-size: clamp(0.72rem, 1vw, 0.82rem);
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ============ FOOTER ============ */
footer {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 30px) clamp(16px, 6vw, 80px) clamp(80px, 12vw, 100px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: clamp(0.78rem, 1vw, 0.85rem);
  color: var(--ink-soft);
  gap: 12px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CHAT WIDGET
   ========================================================================== */

.widget {
  position: fixed;
  bottom: clamp(80px, 12vw, 100px);
  right: clamp(12px, 2vw, 26px);
  width: clamp(320px, 92vw, 380px);
  height: clamp(440px, 78svh, 560px);
  max-height: 78svh;
  background: var(--cloud);
  border-radius: clamp(16px, 2vw, 20px);
  box-shadow: 0 22px 54px var(--shadow);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 9998;
  animation: slideUp 0.3s ease;
}
.widget.open { display: flex; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.w-header {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-deeper) 100%);
  padding: clamp(14px, 2vw, 18px) clamp(14px, 2.2vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.w-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}
.w-avatar {
  width: clamp(32px, 4vw, 38px);
  height: clamp(32px, 4vw, 38px);
  border-radius: 50%;
  background: var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.w-avatar::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: clamp(8px, 1vw, 10px);
  height: clamp(8px, 1vw, 10px);
  background: #2ecc71;
  border: 2px solid var(--steel-deeper);
  border-radius: 50%;
}
.w-avatar svg {
  width: clamp(16px, 2.2vw, 20px);
  height: clamp(16px, 2.2vw, 20px);
}
.w-brand-text {
  min-width: 0;
  flex: 1;
}
.w-brand-text .name {
  color: var(--paper);
  font-weight: 700;
  font-size: clamp(0.82rem, 1.2vw, 0.94rem);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-brand-text .status {
  color: rgba(255,255,255,0.75);
  font-size: clamp(0.65rem, 0.9vw, 0.72rem);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.w-close {
  background: rgba(255,255,255,0.14);
  border: none;
  width: clamp(26px, 3.2vw, 30px);
  height: clamp(26px, 3.2vw, 30px);
  border-radius: 50%;
  color: var(--paper);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(13px, 1.6vw, 16px);
  font-family: inherit;
  flex-shrink: 0;
  transition: background 0.15s;
}
.w-close:hover { background: rgba(255,255,255,0.24); }

.w-quick {
  display: flex;
  gap: 8px;
  padding: clamp(8px, 1.4vw, 12px) clamp(12px, 1.8vw, 16px);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.w-quick::-webkit-scrollbar { display: none; }
.w-pill {
  background: var(--ice-soft);
  color: var(--steel-dark);
  border: none;
  padding: clamp(6px, 0.9vw, 7px) clamp(10px, 1.6vw, 14px);
  border-radius: 999px;
  font-size: clamp(0.7rem, 1vw, 0.78rem);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.w-pill:hover { opacity: 0.8; }
.w-pill:active { transform: scale(0.97); }

.w-body {
  flex: 1;
  overflow-y: auto;
  padding: clamp(12px, 1.8vw, 16px);
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 12px);
  -webkit-overflow-scrolling: touch;
}
.w-body::-webkit-scrollbar { width: 6px; }
.w-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.w-msg {
  max-width: 85%;
  padding: clamp(9px, 1.3vw, 11px) clamp(11px, 1.6vw, 14px);
  border-radius: 14px;
  font-size: clamp(0.78rem, 1.1vw, 0.85rem);
  line-height: 1.5;
  word-wrap: break-word;
  overflow-wrap: break-word;
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.w-msg.bot {
  background: var(--paper);
  color: var(--ink);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  white-space: pre-line;
}
.w-msg.user {
  background: var(--steel-deeper);
  color: var(--paper);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.w-typing {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: clamp(9px, 1.3vw, 12px) clamp(11px, 1.6vw, 16px);
  background: var(--paper);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  width: fit-content;
}
.w-typing span {
  width: 6px;
  height: 6px;
  background: #a0aec0;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}
.w-typing span:nth-child(1) { animation-delay: -0.32s; }
.w-typing span:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.w-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}
.w-input {
  width: 100%;
  padding: clamp(9px, 1.3vw, 11px) clamp(10px, 1.4vw, 12px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  font-size: clamp(0.78rem, 1vw, 0.84rem);
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}
.w-input:focus { border-color: var(--steel); }
.w-submit {
  background: var(--ember);
  color: #fff;
  border: none;
  padding: clamp(9px, 1.3vw, 11px);
  border-radius: 8px;
  font-size: clamp(0.78rem, 1vw, 0.85rem);
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.w-submit:hover { opacity: 0.9; }
.w-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.w-footer {
  flex-shrink: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: clamp(9px, 1.3vw, 12px) clamp(11px, 1.6vw, 14px);
}
.w-input-wrap {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 6px 6px 6px clamp(12px, 1.6vw, 16px);
  transition: border-color 0.15s;
}
.w-input-wrap:focus-within { border-color: var(--steel); }
.w-textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: clamp(0.78rem, 1.1vw, 0.85rem);
  line-height: 1.5;
  max-height: 80px;
  padding: 6px 0;
  background: transparent;
  color: var(--ink);
  min-width: 0;
}
.w-send {
  background: var(--steel-deeper);
  color: var(--paper);
  border: none;
  width: clamp(30px, 4vw, 34px);
  height: clamp(30px, 4vw, 34px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s;
}
.w-send:hover { background: var(--steel-dark); }
.w-send:disabled { background: #cbd5e1; cursor: not-allowed; }
.w-send svg {
  width: clamp(12px, 1.6vw, 15px);
  height: clamp(12px, 1.6vw, 15px);
}

.w-powered {
  text-align: center;
  font-size: clamp(9px, 1.2vw, 10px);
  color: #a0aec0;
  margin-top: 8px;
}
.w-powered a {
  color: #a0aec0;
  text-decoration: none;
  font-weight: 600;
}
.w-powered a:hover {
  color: var(--steel);
  text-decoration: underline;
  text-decoration-color: var(--ember);
  text-underline-offset: 2px;
}

.launcher {
  position: fixed;
  bottom: clamp(16px, 2vw, 26px);
  right: clamp(16px, 2vw, 26px);
  width: clamp(48px, 6vw, 58px);
  height: clamp(48px, 6vw, 58px);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--steel) 0%, var(--steel-deeper) 100%);
  border: none;
  box-shadow: 0 10px 26px var(--shadow);
  color: var(--paper);
  cursor: pointer;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
.launcher:hover { transform: scale(1.05); }
.launcher svg {
  width: clamp(20px, 2.6vw, 24px);
  height: clamp(20px, 2.6vw, 24px);
}
.launcher-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: var(--ember);
  color: #fff;
  font-size: clamp(9px, 1.2vw, 11px);
  font-weight: 700;
  width: clamp(16px, 2vw, 20px);
  height: clamp(16px, 2vw, 20px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* ===== EXTRA LARGE DESKTOPS (1441px+) ===== */
@media (min-width: 1441px) {
  nav, .hero, section, footer {
    max-width: 1320px;
  }
  .hero h1 { font-size: 3.4rem; }
  .trust-num { font-size: 2.4rem; }
}

/* ===== SMALL LAPTOPS (1025px – 1280px) ===== */
@media (max-width: 1280px) {
  .hero { gap: 40px; }
}

/* ===== TABLET LANDSCAPE / SMALL LAPTOP (max-width: 1024px) ===== */
@media (max-width: 1024px) {
  .hero { gap: 32px; }
  .trust { grid-template-columns: repeat(4, 1fr); }
}

/* ===== TABLET PORTRAIT (max-width: 860px) ===== */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero-visual {
    order: -1;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
    height: 260px;
  }
  .nav-links { display: none; }
  .service-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ===== LARGE PHONES (max-width: 640px) ===== */
@media (max-width: 640px) {
  .hero-visual { height: 220px; }
  .hero-actions { gap: 10px; }
  .hero-cta, .hero-phone {
    flex: 1;
    justify-content: center;
    min-width: 140px;
  }
}

/* ===== STANDARD PHONES (max-width: 480px) ===== */
@media (max-width: 480px) {
  .demo-banner {
    font-size: 11px;
    padding: 8px 14px;
  }
  .hero-visual { height: 190px; }
  .hero-actions {
    flex-direction: column;
    gap: 8px;
  }
  .hero-cta, .hero-phone {
    width: 100%;
    justify-content: center;
    flex: none;
  }
  .service-card {
    padding: 18px;
  }
  .trust {
    padding: 28px 20px;
    gap: 22px;
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  /* Widget: full width on phones */
  .widget {
    width: calc(100vw - 20px);
    right: 10px;
    left: 10px;
    bottom: 84px;
    height: 74svh;
  }
  .launcher {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    right: 16px;
    width: 54px;
    height: 54px;
  }
}

/* ===== TINY PHONES (max-width: 360px) ===== */
@media (max-width: 360px) {
  .hero h1 { font-size: 1.5rem; }
  .hero p { font-size: 0.88rem; }
  .hero-eyebrow {
    font-size: 0.68rem;
    padding: 5px 10px;
  }
  .hero-visual { height: 160px; }
  .hvac-icon { font-size: 3rem; }
  .hvac-badge { font-size: 0.62rem; padding: 5px 10px; }
  .service-card {
    padding: 16px;
  }
  .service-icon {
    width: 38px;
    height: 38px;
  }
  .trust {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: left;
    padding: 24px 18px;
  }
  .trust-item {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  .trust-num { font-size: 1.4rem; }
  .trust-label { font-size: 0.76rem; }

  .widget {
    width: calc(100vw - 12px);
    right: 6px;
    left: 6px;
    bottom: 78px;
    height: 76svh;
    border-radius: 14px;
  }
  .w-msg { max-width: 90%; }
}

/* ===== LANDSCAPE PHONES (short screens) ===== */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 20px;
    padding-bottom: 30px;
    gap: 20px;
  }
  .hero-visual { height: 160px; }
  .hero h1 { font-size: 1.6rem; }
  section { padding: 28px 5vw; }
  .trust { padding: 24px 5vw; }
  footer { padding: 18px 5vw 60px; }

  /* Widget: use available height */
  .widget {
    bottom: 8px;
    right: 8px;
    left: auto;
    width: min(380px, 55vw);
    height: calc(100svh - 16px);
    max-height: calc(100svh - 16px);
    border-radius: 14px;
  }
  .w-quick { padding: 6px 12px; }
  .w-body { padding: 10px; gap: 8px; }
  .w-msg { font-size: 0.78rem; padding: 8px 11px; }
  .w-footer { padding: 8px 12px; }
  .launcher {
    bottom: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
  }
}

/* ===== VERY SMALL LANDSCAPE (max-height: 400px) ===== */
@media (max-height: 400px) and (orientation: landscape) {
  .demo-banner { padding: 5px 12px; font-size: 10px; }
  nav { padding: 10px 4vw; }
  .hero { padding: 14px 4vw 20px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 1.3rem; }
  section { padding: 20px 4vw; }
  .trust { padding: 18px 4vw; }
}

/* ===== SAFE AREA (notched devices) ===== */
@supports (padding: env(safe-area-inset-bottom)) {
  .launcher {
    bottom: calc(clamp(16px, 2vw, 26px) + env(safe-area-inset-bottom));
  }
  .widget {
    bottom: calc(clamp(80px, 12vw, 100px) + env(safe-area-inset-bottom));
  }
  footer {
    padding-bottom: calc(clamp(80px, 12vw, 100px) + env(safe-area-inset-bottom));
  }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}