/* ===================================================================
   Alarmify — Shared Design System v2
   Fonts: Inter (display/headlines/body), Poppins (micro/UI labels)
   =================================================================== */

/* ===== Design Tokens ===== */
:root {
  --indigo-700: #363086;
  --indigo-600: #4D44FF;
  --indigo-500: #6F67FF;
  --indigo-100: #E8E6FF;
  --indigo-50:  #F3F2FF;

  --cyan-500: #70D9F2;
  --cyan-400: #9FE6F7;
  --cyan-100: #E6F8FD;

  --ink-900: #201D1D;
  --ink-800: #201D1D;
  --ink-600: #2B3135;
  --ink-500: #5F6D71;
  --ink-400: #707779;
  --ink-300: #B8B8B8;
  --ink-200: #EBEBEB;
  --ink-100: #F5F5F5;
  --ink-50:  #FAFAFA;

  --paper: #FFFFFF;
  --cream: #F7F5EE;

  --success: #1ECBB8;
  --warning: #F5B454;
  --danger:  #E85C5C;

  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 999px;

  --shadow-sm:     0 1px 2px rgba(14,17,20,0.05);
  --shadow-md:     0 8px 24px rgba(14,17,20,0.06), 0 2px 6px rgba(14,17,20,0.04);
  --shadow-lg:     0 20px 60px rgba(14,17,20,0.10), 0 4px 14px rgba(14,17,20,0.06);
  --shadow-indigo: 0 20px 40px -16px rgba(77,68,255,0.45);

  --font-display: 'Inter', -apple-system, system-ui, sans-serif;
  --font-body:    'Inter', -apple-system, system-ui, sans-serif;
  --font-micro:   'Poppins', -apple-system, system-ui, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink-800); font-size: 14px; line-height: 1.5; background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; cursor: pointer; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.01em; font-weight: 600; color: var(--ink-800); }

.af-h1 { font-size: clamp(30px, 7vw, 58px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 600; }
.af-h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.1;  letter-spacing: -0.02em; font-weight: 600; }
.af-h3 { font-size: clamp(22px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.01em; font-weight: 600; }
.af-h4 { font-size: clamp(18px, 2.5vw, 24px); line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }

.af-eyebrow {
  font-family: var(--font-micro);
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--indigo-600);
}
/* Inline color highlight */
.af-hl { color: var(--indigo-600); }
/* Keep highlight legible on the indigo hero band */
.af-chevron-bg .af-hl { color: #79E6FF; }

.af-body    { font-family: var(--font-body); font-size: 14px; color: var(--ink-600); line-height: 1.55; }
.af-body-lg { font-family: var(--font-body); font-size: 16px; color: var(--ink-600); line-height: 1.6; }
.af-micro   { font-family: var(--font-micro); font-size: 12px; color: var(--ink-500); line-height: 1.5; }

/* ===== Buttons ===== */
.af-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: var(--r-pill);
  font-family: var(--font-micro); font-weight: 500; font-size: 14px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
  cursor: pointer; white-space: nowrap; border: 0;
}
.af-btn:hover { transform: translateY(-1px); }
.af-btn:focus-visible { outline: 3px solid var(--indigo-600); outline-offset: 2px; }
.af-btn-primary:focus-visible,
.af-btn-cyan:focus-visible { outline-color: var(--ink-900); }
.af-btn-ghost:focus-visible { outline-color: #fff; }
.af-btn-primary { background: var(--indigo-600); color: #fff; box-shadow: var(--shadow-indigo); }
.af-btn-primary:hover { background: var(--indigo-500); }
.af-btn-cyan    { background: var(--cyan-500); color: var(--ink-900); }
.af-btn-cyan:hover { background: var(--cyan-400); }
.af-btn-ghost   { background: rgba(255,255,255,0.08); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.af-btn-ghost:hover { background: rgba(255,255,255,0.15); }
.af-btn-outline { background: #fff; color: var(--indigo-600); border: 1.5px solid var(--indigo-600); }
.af-btn-outline:hover { background: var(--indigo-600); color: #fff; }
.af-btn-dark    { background: var(--ink-900); color: #fff; }
.af-btn-sm { height: 36px; padding: 0 16px; font-size: 13px; }
.af-btn-lg { height: 52px; padding: 0 28px; font-size: 15px; }

/* ===== Cards ===== */
.af-card {
  background: #fff; border-radius: var(--r-lg);
  border: 1px solid var(--ink-200);
  padding: 24px;
}
.af-card-elevated {
  background: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: 28px;
}
.af-card-featured {
  background: var(--indigo-600); color: #fff; border-radius: var(--r-xl);
  box-shadow: var(--shadow-indigo);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.af-card-featured .af-card-label {
  position: absolute; top: 16px; right: 16px;
  background: var(--cyan-500); color: var(--ink-900);
  font-family: var(--font-micro); font-size: 10px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 12px; border-radius: var(--r-pill);
}

/* ===== Chips ===== */
.af-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--indigo-50); color: var(--indigo-600);
  font-family: var(--font-micro); font-size: 12px; font-weight: 500;
}
.af-chip-cyan { background: var(--cyan-100); color: #0a7d95; }
.af-chip-ink  { background: var(--ink-100); color: var(--ink-600); }

/* ===== Inputs ===== */
.af-input {
  width: 100%; height: 44px; padding: 0 16px;
  border: 1px solid var(--ink-200); border-radius: var(--r-pill);
  background: #fff; color: var(--ink-800); font-family: var(--font-body); font-size: 14px;
  outline: none; transition: border-color .12s, box-shadow .12s;
}
.af-input:focus { border-color: var(--indigo-600); box-shadow: 0 0 0 3px rgba(77,68,255,0.15); }
textarea.af-input { height: auto; padding: 12px 16px; border-radius: var(--r-md); resize: vertical; }
.af-label {
  display: block; font-family: var(--font-micro); font-size: 12px; font-weight: 500;
  color: var(--ink-600); margin-bottom: 6px;
}

/* ===== Chevron / Diamond Hero Background ===== */
.af-chevron-bg {
  background-color: var(--indigo-600);
  position: relative;
  overflow: hidden;
}
.af-chevron-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('assets/alarmify-icon-white.svg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 1;
  pointer-events: none;
  z-index: 0;
}
.af-chevron-bg > * { position: relative; z-index: 1; }

/* Soft indigo tint (for inline sections) */
.af-chevron-soft {
  background: linear-gradient(180deg, var(--indigo-50) 0%, var(--indigo-100) 100%);
}

/* ===== Photo Placeholders ===== */
.af-ph {
  background-image: url('assets/feature1.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--ink-100);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  font-size: 0;
  color: transparent;
}
.af-ph:nth-of-type(4n+1) { background-image: url('assets/feature1.jpg'); }
.af-ph:nth-of-type(4n+2) { background-image: url('assets/feature2.jpg'); }
.af-ph:nth-of-type(4n+3) { background-image: url('assets/feature4.jpg'); }
.af-ph:nth-of-type(4n)   { background-image: url('assets/hero.jpg'); }

/* ===== Promo Bar ===== */
.promo-bar {
  height: 40px;
  background-color: var(--indigo-600);
  display: flex; align-items: center; justify-content: center; padding: 0 96px;
  font-family: var(--font-body); font-size: 12px; color: #fff;
}
.promo-bar-actions {
  margin-left: auto; display: flex; gap: 16px; align-items: center;
}
.promo-bar b { color: var(--cyan-500); }
.promo-bar-actions svg { opacity: 0.7; }
.promo-bar-actions a { cursor: pointer; color: rgba(255,255,255,0.85); }

/* ===== Main Navigation ===== */
.main-nav {
  height: 72px; background: var(--ink-900);
  display: flex; align-items: center; padding: 0 96px; gap: 24px;
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 27px; }
.nav-links { display: flex; gap: 32px; margin-left: 64px; flex: 1; }
.nav-links a {
  font-family: var(--font-body); font-size: 14px; font-weight: 400;
  color: rgba(255,255,255,0.85);
  padding-bottom: 4px;
  position: relative;
  transition: color .2s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--cyan-500);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { width: 100%; }
.nav-phone {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 500; font-size: 14px; color: #fff;
}
.nav-phone svg { color: var(--cyan-500); }

/* Promo bar scrolls with page; only nav is sticky (handled on .main-nav) */
.site-header { position: relative; }

/* ===== Trust Strip ===== */
.trust-strip {
  background: var(--indigo-50); border-bottom: 1px solid var(--ink-200);
  padding: 14px 96px; display: flex; justify-content: space-between;
  align-items: center; gap: 24px; flex-wrap: wrap;
}
.trust-strip-item {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 13px; color: var(--ink-800);
}
.trust-strip-item svg { color: var(--indigo-600); flex-shrink: 0; }

/* ===== Page Hero (Chevron Band) ===== */
.page-hero {
  padding: 56px 96px 64px;
  color: #fff;
}
.page-hero .af-eyebrow { color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.page-hero h1 { color: #fff; max-width: 820px; }
.page-hero .hero-sub {
  margin-top: 16px; max-width: 620px;
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

/* ===== Section Wrapper ===== */
.section-inner { max-width: 1280px; margin: 0 auto; }
.pad-section { padding: 64px 96px; }
.pad-section-sm { padding: 40px 96px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink-900); color: #fff;
  padding: 64px 96px 32px; margin-top: 64px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
}
.footer-brand img { height: 27px; width: auto; }
.footer-brand p {
  margin-top: 16px; font-family: var(--font-micro); font-size: 14px;
  line-height: 1.55; color: rgba(255,255,255,0.85);
}
.footer-phone {
  display: flex; align-items: center; gap: 8px; margin-top: 16px;
  font-family: var(--font-micro); font-weight: 700; font-size: 16px; color: #fff;
}
.footer-phone svg { color: var(--cyan-500); }
.footer-license {
  margin-top: 16px; font-family: var(--font-micro); font-size: 12px;
  color: rgba(255,255,255,0.65); line-height: 1.6;
}
.footer-col-title { /* .af-eyebrow inside dark footer */ color: var(--cyan-500) !important; }
.footer-links {
  display: flex; flex-direction: column; gap: 12px; margin-top: 16px;
  font-family: var(--font-body); font-size: 14px;
}
.footer-links a { color: rgba(255,255,255,0.85); transition: color .15s; }
.footer-links a:hover { color: var(--cyan-500); }
.footer-accreditation { display: flex; gap: 12px; margin-top: 16px; align-items: center; }
.footer-badge {
  background: #fff; border-radius: 8px; padding: 8px 10px;
  display: flex; align-items: center; justify-content: center;
}
.footer-badge img { display: block; height: 36px; width: auto; }
.footer-rating {
  margin-top: 16px; display: flex; align-items: center; gap: 8px;
  font-family: var(--font-micro); font-size: 13px; color: #fff;
}
.footer-rating .g-badge {
  background: #fff; color: var(--ink-900); width: 24px; height: 24px;
  border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px;
}
.footer-rating .stars { color: var(--warning); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-micro); font-size: 12px; color: rgba(255,255,255,0.6);
  flex-wrap: wrap; gap: 12px;
}
.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: grid; place-items: center;
  font-weight: 700; font-size: 11px; color: rgba(255,255,255,0.8);
  transition: background .15s;
}
.footer-social-btn:hover { background: rgba(255,255,255,0.18); }

/* ===== BluSky Upsell ===== */
.blusky-upsell {
  background: radial-gradient(circle at 30% 30%, var(--indigo-700) 0%, var(--ink-900) 80%);
  border-radius: var(--r-xl); padding: 44px 64px; color: #fff;
  margin: 56px 48px 0;
  display: flex; gap: 64px; align-items: center;
}
.blusky-upsell-brand { flex: 1; }
.blusky-upsell-body { flex: 2; }
.blusky-upsell-body h3 { color: #fff; margin-top: 12px; }
.blusky-upsell-body .af-eyebrow { color: var(--indigo-500); }
.blusky-upsell-body span { color: var(--cyan-500); }
.blusky-upsell-actions { display: flex; gap: 12px; margin-top: 24px; flex-wrap: wrap; }

/* ===== Package Cards ===== */
.packages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; align-items: start;
  padding-top: 20px; /* clearance for floating pill badge */
}
.package-card {
  width: 100%; position: relative;
  border-radius: var(--r-xl); padding: 28px;
  background: #fff; box-shadow: var(--shadow-md);
  border: 1px solid var(--ink-200);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.package-card:not(.featured):hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--indigo-100);
  border-color: var(--indigo-600);
}
.package-card.featured {
  background: var(--indigo-600); color: #fff;
  box-shadow: var(--shadow-indigo);
  transform: translateY(-12px);
  border-color: transparent;
}
.package-card.featured:hover {
  transform: translateY(-18px);
  box-shadow: 0 28px 64px -12px rgba(77,68,255,0.55);
}
.package-card.featured .af-card-label {
  position: absolute;
  top: -15px; left: 50%; transform: translateX(-50%);
  background: var(--cyan-500); color: var(--ink-900);
  font-family: var(--font-micro); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 16px; border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(112,217,242,0.45);
}
.package-thumb {
  width: 100%; height: 160px; display: block;
  border-radius: var(--r-md); object-fit: contain;
  margin-bottom: 20px;
}
.package-card:not(.featured) .package-thumb { background: #fff; }
.package-card.featured .package-thumb { background: #fff; }
.package-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.package-card:not(.featured) .package-name { color: var(--ink-900); }
.package-card.featured .package-name { color: #fff; }
.package-from { font-family: var(--font-micro); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 16px; }
.package-card:not(.featured) .package-from { color: var(--ink-500); }
.package-card.featured .package-from { color: rgba(255,255,255,0.7); }
.package-price-row { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.package-price { font-family: var(--font-display); font-weight: 800; font-size: 36px; letter-spacing: -0.02em; }
.package-card:not(.featured) .package-price { color: var(--ink-900); }
.package-card.featured .package-price { color: #fff; }
.package-price-note { font-family: var(--font-micro); font-size: 11px; min-width: 0; }
.package-card:not(.featured) .package-price-note { color: var(--ink-500); }
.package-card.featured .package-price-note { color: rgba(255,255,255,0.75); }
.package-divider { border: none; border-top: 1px solid; margin: 16px 0; }
.package-card:not(.featured) .package-divider { border-color: var(--ink-200); }
.package-card.featured .package-divider { border-color: rgba(255,255,255,0.2); }
.package-features-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.package-features-list li {
  display: flex; gap: 10px; align-items: flex-start;
  font-family: var(--font-body); font-size: 13px; line-height: 1.5;
}
.package-card:not(.featured) .package-features-list li { color: var(--ink-600); }
.package-card.featured .package-features-list li { color: rgba(255,255,255,0.92); }
.package-features-list li svg { margin-top: 2px; flex-shrink: 0; }
.package-cta { width: 100%; margin-top: 20px; }
.package-details-link {
  display: block; text-align: center; margin-top: 10px;
  font-family: var(--font-micro); font-size: 12px;
  background: none; border: none; width: 100%;
  cursor: pointer; padding: 4px 0; text-decoration: underline;
  text-underline-offset: 2px;
}
.package-card:not(.featured) .package-details-link { color: var(--indigo-600); }
.package-card.featured .package-details-link { color: rgba(255,255,255,0.85); }

/* ===== Package includes expandable ===== */
.package-includes {
  overflow: hidden; max-height: 0;
  transition: max-height 0.32s ease, margin-top 0.32s ease;
  margin-top: 0;
}
.package-card.details-open .package-includes {
  max-height: 480px; margin-top: 14px;
}
.package-includes hr {
  border: none; border-top: 1px solid;
  margin: 0 0 12px;
}
.package-card:not(.featured) .package-includes hr { border-color: var(--ink-100); }
.package-card.featured .package-includes hr { border-color: rgba(255,255,255,0.12); }
.package-includes-label {
  font-family: var(--font-micro); font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px;
}
.package-card:not(.featured) .package-includes-label { color: var(--ink-400); }
.package-card.featured .package-includes-label { color: rgba(255,255,255,0.5); }
.package-includes-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.package-includes-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-family: var(--font-body); font-size: 12px; line-height: 1.4;
}
.package-card:not(.featured) .package-includes-list li { color: var(--ink-600); }
.package-card.featured .package-includes-list li { color: rgba(255,255,255,0.78); }
.package-includes-list li::before {
  content: '—'; flex-shrink: 0; font-size: 10px;
  margin-top: 2px; opacity: 0.4;
}

/* ===== Checkout step bar ===== */
.checkout-steps {
  display: flex; align-items: center; gap: 16px;
  padding: 0 0; margin-top: 40px;
  overflow-x: auto;
}
.checkout-step { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 130px; }
.checkout-step-circle {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
}
.checkout-step-circle.done { background: var(--indigo-600); color: #fff; }
.checkout-step-circle.active { background: #fff; border: 2px solid var(--indigo-600); color: var(--indigo-600); }
.checkout-step-circle.pending { background: #fff; border: 1.5px solid var(--ink-200); color: var(--ink-300); }
.checkout-step-label {
  font-family: var(--font-body); font-size: 12px; text-align: center; max-width: 130px;
}
.checkout-step-label.done, .checkout-step-label.active { color: var(--indigo-600); font-weight: 600; }
.checkout-step-label.pending { color: var(--ink-400); font-weight: 500; }
.checkout-step-connector { flex: 1; height: 2px; margin-bottom: 22px; min-width: 20px; }
.checkout-step-connector.done { background: var(--indigo-600); }
.checkout-step-connector.pending { background: var(--ink-200); }

/* ===== Sign-in Modal ===== */
.signin-overlay { position: fixed; inset: 0; background: rgba(14,17,20,0.5); display: grid; place-items: center; backdrop-filter: blur(2px); z-index: 200; }
.signin-modal { background: #fff; border-radius: var(--r-xl); padding: 40px; width: 440px; max-width: 90vw; box-shadow: var(--shadow-lg); }
.signin-modal-header { display: flex; justify-content: space-between; align-items: center; }

/* ===== Order Summary ===== */
.order-summary {
  background: var(--indigo-50); border-radius: var(--r-lg); padding: 24px;
}
.order-summary-title {
  text-align: center; font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: var(--indigo-600); padding-bottom: 16px; border-bottom: 1px solid var(--indigo-100);
}
.order-line {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-family: var(--font-body); font-size: 13px; margin-top: 10px;
  padding: 10px; border-radius: var(--r-lg); border: 1px solid var(--indigo-100);
  background: var(--indigo-50);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  cursor: default;
}
.order-line:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--indigo-100);
  border-color: var(--indigo-600);
}
.order-line-thumb {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--r-md);
  background: #fff; background-size: contain; background-repeat: no-repeat;
  background-position: center; border: 1px solid var(--indigo-100);
}
.order-line-info { flex: 1; min-width: 0; }
.order-line-name { font-weight: 500; color: var(--ink-800); }
.order-line-sub { font-family: var(--font-micro); font-size: 11px; color: var(--ink-500); margin-top: 2px; }
.order-line-price { font-weight: 600; color: var(--ink-900); white-space: nowrap; }
.order-divider { border: none; border-top: 1px solid var(--indigo-100); margin: 18px 0 14px; }
.order-total { display: flex; justify-content: space-between; font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink-900); }
.order-monthly { display: flex; justify-content: space-between; font-family: var(--font-body); font-size: 13px; margin-top: 8px; }
.order-coupon { display: flex; gap: 8px; margin-top: 16px; }
.order-coupon .af-input { flex: 1; }

/* Order line remove button */
.order-line-remove {
  background: none; border: none; padding: 4px; margin-left: 2px;
  color: var(--ink-300); cursor: pointer; border-radius: 4px;
  line-height: 1; flex-shrink: 0; transition: color 0.15s ease, background 0.15s ease;
}
.order-line-remove:hover { color: #e53e3e; background: #fff1f0; }
.order-line.is-removing {
  opacity: 0; transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Order empty state */
.order-empty {
  text-align: center; padding: 28px 16px;
  font-family: var(--font-body); font-size: 13px; color: var(--ink-400);
  display: none;
}
.order-empty svg { display: block; margin: 0 auto 10px; opacity: 0.35; }
.order-empty a { color: var(--indigo-600); text-decoration: none; font-weight: 500; }
.order-empty a:hover { text-decoration: underline; }

/* Undo toast */
.cart-undo-toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--ink-900); color: #fff;
  font-family: var(--font-body); font-size: 13px;
  padding: 10px 18px; border-radius: 8px;
  display: flex; align-items: center; gap: 12px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 500; white-space: nowrap;
}
.cart-undo-toast.visible {
  opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0);
}
.cart-undo-toast button {
  background: none; border: none; color: var(--cyan-400);
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  cursor: pointer; padding: 0;
}
.cart-undo-toast button:hover { text-decoration: underline; }

/* ===== FAQ Accordion ===== */
.faq-item {
  border-radius: var(--r-md); padding: 16px 24px;
  transition: background .2s, border-color .2s;
  border: 1px solid var(--ink-200);
}
.faq-item.open { background: var(--indigo-50); border-color: var(--indigo-100); }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  color: var(--ink-800);
}
.faq-item.open .faq-question { color: var(--indigo-600); }
.faq-chevron { transition: transform .2s; flex-shrink: 0; color: var(--ink-400); }
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--indigo-600); }
.faq-answer {
  margin-top: 12px; font-family: var(--font-body); font-size: 14px;
  line-height: 1.6; color: var(--ink-600); display: none;
}
.faq-item.open .faq-answer { display: block; }

/* ===== Add-on Cards ===== */
.addon-card {
  padding: 16px; display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--r-lg); border: 1px solid var(--ink-200); background: #fff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.addon-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 2px var(--indigo-100);
  border-color: var(--indigo-600);
}
.addon-thumb {
  width: 72px; height: 72px; flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--ink-100); background-size: cover; background-position: center;
}
.addon-name { font-family: var(--font-body); font-weight: 500; font-size: 14px; color: var(--ink-800); }
.addon-price { margin-top: 2px; font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink-900); }
.addon-price-note { font-family: var(--font-micro); font-size: 11px; color: var(--ink-500); }
.addon-actions { display: flex; gap: 6px; margin-top: 10px; align-items: center; }
.qty-control {
  display: flex; align-items: stretch; border: 1.5px solid var(--ink-200);
  border-radius: var(--r-pill); overflow: hidden;
  font-family: var(--font-body); height: 40px;
}
.qty-btn {
  width: 40px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-500); cursor: pointer; font-size: 20px; line-height: 1;
  transition: background .15s, color .15s; user-select: none;
}
.qty-btn:hover { background: var(--indigo-50); color: var(--indigo-600); }
.qty-control > span:nth-child(2) {
  min-width: 40px; display: flex; align-items: center; justify-content: center;
  font-weight: 600; color: var(--ink-900); font-size: 14px;
  border-left: 1px solid var(--ink-200); border-right: 1px solid var(--ink-200);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pad-section    { padding: 48px 48px; }
  .pad-section-sm { padding: 28px 48px; }
  .page-hero      { padding: 40px 48px 56px; }
  .promo-bar      { padding: 0 48px; }
  .main-nav       { padding: 0 48px; }
  .trust-strip    { padding: 14px 48px; }
  .site-footer    { padding: 56px 48px 24px; }
  .nav-links { gap: 20px; margin-left: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .mobile-nav { padding-left: 48px; padding-right: 48px; }
}
/* Nav collapses at ≤1200px (tablets & narrow viewports) */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
}
@media (max-width: 768px) {
  .promo-bar { padding: 0 20px; }
  .main-nav { padding: 0 14px; height: 60px; }
  .mobile-nav { padding-left: 14px; padding-right: 14px; top: 60px; }
  .search-overlay { top: 60px; }
  .pad-section { padding: 40px 20px; }
  .pad-section-sm { padding: 24px 20px; }
  .page-hero { padding: 32px 20px 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .blusky-upsell { flex-direction: column; gap: 24px; margin: 40px 20px 0; padding: 32px 28px; }
  .trust-strip { display: none; }
  .checkout-steps { display: none; }
  .site-footer { padding: 40px 20px 20px; }
}
/* Packages go single-column below 900px — keeps cards readable at mid-tablet widths */
@media (max-width: 900px) {
  .packages-grid { grid-template-columns: 1fr; }
  .package-card.featured { transform: none; }
}

/* ===== Nav Utility Icons (search, login, cart) ===== */
.nav-utils {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
  margin-left: 16px;
}
.nav-util-btn {
  position: relative; /* needed for badge positioning */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: rgba(255,255,255,0.7);
  border-radius: var(--r-md);
  transition: color .15s, background .15s;
  flex-shrink: 0;
}
.nav-util-btn:hover {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

/* ===== Cart badge ===== */
.cart-badge {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--cyan-500);
  color: var(--ink-900);
  font-family: var(--font-micro);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  border-radius: var(--r-pill);
  pointer-events: none;
  transform: scale(0);
  transform-origin: top right;
  transition: transform 150ms ease-out;
}
.cart-badge.visible {
  transform: scale(1);
}

/* ===== Hamburger Button ===== */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-left: 2px;
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s cubic-bezier(.4,0,.2,1), opacity .2s ease;
  transform-origin: center;
}
body.menu-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
body.menu-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

/* ===== Mobile Nav Drawer ===== */
.mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px; /* sticky nav height only — promo bar scrolls away */
  left: 0; right: 0; bottom: 0;
  background: var(--ink-900);
  z-index: 98;
  padding: 20px 48px 40px;
  overflow-y: auto;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.4,0,.2,1), opacity .22s ease;
}
.mobile-nav.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-nav > a {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color .15s;
  display: block;
}
.mobile-nav > a:hover { color: #fff; }
.mobile-nav > a.active { color: #fff; font-weight: 600; }
.mobile-nav-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 24px 0 20px;
}
.mobile-nav-phone {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--cyan-500);
  padding-top: 4px;
}
.mobile-nav-phone svg { flex-shrink: 0; }

/* ===== Responsive additions ===== */
@media (max-width: 1200px) {
  .nav-hamburger { display: flex; }
  .nav-utils { margin-left: auto; } /* push utils+hamburger to far right when links are hidden */
  .package-card { max-width: none; }
}
/* Belt-and-suspenders: guarantee hamburger stays visible at all mobile widths */
@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
  .promo-bar { display: none; }
  /* Scale logo down so logo + 3 utility icons + hamburger fit in ~330px */
  .nav-logo img { height: 28px; }
  /* Promo bar hidden so nav drawer starts directly below nav */
  .mobile-nav { top: 60px; }
  .checkout-step { min-width: 60px; }
  .checkout-step-circle { width: 38px; height: 38px; font-size: 15px; }
  .checkout-step-label { font-size: 11px; }
}
@media (max-width: 480px) {
  /* Nav: tighten gap + shrink logo so all items fit at 360px
     Budget at 360px: 360 − 24px padding = 336px
     logo(116) + gap(4) + nav-utils(136) + gap(4) + hamburger(44) = 304px ✓ */
  .main-nav { gap: 4px; padding: 0 12px; }
  .mobile-nav { padding-left: 12px; padding-right: 12px; }
  .nav-logo img { height: 22px; max-width: 108px; }
  /* Addon actions: stack qty stepper + button vertically */
  .addon-actions { flex-direction: column; align-items: stretch; }
  .addon-actions .af-btn { width: 100%; justify-content: center; }
  .addon-actions .qty-control { justify-content: center; }
  /* BluSky: keep 16px side margin so card never bleeds to screen edge */
  .blusky-upsell { padding: 24px 20px; margin: 32px 16px 0; border-radius: var(--r-lg); }
  /* Checkout steps: hide labels so all 4 circles fit without horizontal scroll */
  .checkout-step { min-width: 0; flex: none; }
  .checkout-step-circle { width: 34px; height: 34px; font-size: 13px; }
  .checkout-step-label { display: none; }
  .checkout-step-connector { min-width: 10px; }
}

/* ===== 340px and below — absolute minimum safety net ===== */
@media (max-width: 340px) {
  /* Nav: further reduce logo + padding at 320-340px */
  .main-nav { padding: 0 10px; gap: 2px; }
  .mobile-nav { padding-left: 10px; padding-right: 10px; }
  .nav-logo img { height: 20px; max-width: 96px; }
  /* Utility icons: tighten to 36px to reclaim 24px in the bar */
  .nav-util-btn { width: 36px; height: 36px; }
  /* Sections: reduce side padding to give content more room */
  .pad-section { padding: 32px 14px; }
  .pad-section-sm { padding: 20px 14px; }
  .page-hero { padding: 28px 14px 36px; }
  /* Features: drop to single column below 340px */
  .features-grid { grid-template-columns: 1fr; }
  /* Package cards: reduce inner padding slightly */
  .package-card { padding: 20px; }
  /* Footer */
  .site-footer { padding: 32px 14px 16px; }
}

@media (min-width: 1081px) and (max-width: 1260px) {
  .nav-links { gap: 20px; margin-left: 24px; }
  .trust-strip-item span { display: inline; }
}

/* ===== Search Overlay ===== */
.search-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(32,29,29,0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 200ms ease;
}
.search-backdrop.active { opacity: 1; pointer-events: all; }

.search-overlay {
  position: fixed; top: 72px; left: 0; right: 0; z-index: 95;
  background: #fff;
  border-bottom: 1px solid var(--ink-100);
  box-shadow: 0 8px 32px rgba(32,29,29,0.12);
  padding: 20px 96px 24px;
  opacity: 0; pointer-events: none;
  transform: translateY(-10px);
  transition: transform 200ms ease-out, opacity 200ms ease-out;
}
.search-overlay.active {
  opacity: 1; pointer-events: all;
  transform: translateY(0);
}
/* Search form pill */
.search-form {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink-50); border: 1.5px solid var(--ink-200);
  border-radius: var(--r-pill); padding: 0 6px 0 18px;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.search-form:focus-within {
  border-color: var(--indigo-600); background: #fff;
  box-shadow: 0 0 0 3px rgba(77,68,255,0.1);
}
.search-input {
  flex: 1; height: 48px; border: none; background: transparent;
  font-family: var(--font-body); font-size: 16px; color: var(--ink-900);
  outline: none;
}
.search-input::placeholder { color: var(--ink-400); }
/* Clear / close button inside the form */
.search-close-btn {
  width: 40px; height: 40px; border: none; background: transparent;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink-400); border-radius: 50%; flex-shrink: 0;
  transition: color 0.15s, background 0.15s;
}
.search-close-btn:hover { color: var(--ink-900); background: var(--ink-100); }
.search-close-btn:focus-visible {
  outline: 2px solid var(--indigo-600); outline-offset: 2px;
}
/* Results list */
.search-suggestions { margin-top: 16px; }
.search-suggestion-label {
  font-family: var(--font-micro); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-400);
  margin-bottom: 8px;
}
.search-results-list { display: flex; flex-direction: column; gap: 2px; }
.search-result-item {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 10px; border-radius: var(--r-md);
  text-decoration: none; transition: background 0.12s; cursor: pointer;
}
.search-result-item:hover { background: var(--indigo-50); }
.search-result-item:focus-visible {
  outline: 2px solid var(--indigo-600); outline-offset: -2px;
  border-radius: var(--r-md); background: var(--indigo-50);
}
.search-result-icon {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--indigo-50); display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; color: var(--indigo-600);
}
.search-result-name {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--ink-900); line-height: 1.3;
}
.search-result-desc {
  font-family: var(--font-body); font-size: 12px; color: var(--ink-500);
  margin-top: 1px; line-height: 1.3;
}
.search-no-results {
  padding: 16px 10px; font-family: var(--font-body); font-size: 14px;
  color: var(--ink-500);
}
@media (max-width: 1080px) {
  .search-overlay { padding: 16px 48px 20px; }
}
@media (max-width: 768px) {
  .search-overlay { padding: 12px 16px 16px; }
}

/* ===== Alarm.com Powered Section ===== */
.adc-section {
  padding: 80px 96px;
}
.adc-section-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  gap: 40px;
}
.adc-phone-col {
  grid-column: 1;
  position: relative;
  display: flex;
  justify-content: center;
}
.adc-phone-frame {
  width: 260px;
  height: 520px;
  border-radius: 40px;
  border: 2px solid rgba(255,255,255,0.18);
  background: #0a0a0a;
  position: relative;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.06);
}
.adc-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background: #0a0a0a;
  border-radius: 20px;
  z-index: 10;
}
.adc-phone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 38px;
}
.adc-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.adc-notif-stack {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.adc-notification {
  left: unset;
  right: unset;
  position: relative;
  top: unset;
  transform: none;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.37);
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.00) 83.08%, rgba(255, 255, 255, 0.25) 100%), rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(17px);
  -webkit-backdrop-filter: blur(17px);
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 20;
}
.adc-notif-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #4D44FF;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adc-notif-icon--red {
  background: #e53935;
}
.adc-notif-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
.adc-notif-body {
  flex: 1;
  min-width: 0;
}
.adc-notif-source {
  display: block;
  font-family: var(--font-micro);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  margin-bottom: 3px;
}
.adc-notif-msg {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-family: var(--font-micro);
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
}
.adc-copy-col {
  grid-column: 2 / 4;
  min-width: 0;
}
.adc-copy-col h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 20px;
}
.adc-copy-col h2 .adc-hl {
  color: var(--cyan-500);
}
.adc-copy-col p {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin: 0 0 32px;
}
.adc-btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.95);
  color: var(--ink-900);
  font-family: var(--font-micro);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
  letter-spacing: -0.01em;
}
.adc-btn:hover {
  background: #fff;
  transform: translateY(-1px);
}
.adc-powered-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--r-pill);
  padding: 6px 14px 6px 8px;
  margin-bottom: 24px;
}
.adc-powered-badge img {
  width: 22px;
  height: 22px;
}
.adc-powered-badge span {
  font-family: var(--font-micro);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
@media (max-width: 1080px) {
  .adc-section { padding: 64px 48px; }
  .adc-section-inner { gap: 48px; }
}
@media (max-width: 768px) {
  .adc-section { padding: 56px 24px; }
  .adc-section-inner { grid-template-columns: 1fr; gap: 40px; justify-items: center; text-align: center; }
  .adc-phone-col { grid-column: 1; }
  .adc-copy-col { grid-column: 1; }
  .adc-notif-stack { left: 10px; right: 10px; }
  .adc-notification { text-align: left; }
  .adc-notif-msg { font-size: 11px; }
  .adc-notif-source { font-size: 9px; }
  .adc-phone-frame { width: 220px; height: 440px; }
  .adc-copy-col h2 { font-size: 36px; }
}

body.admin-bar .main-nav {
  top: 32px;
}
body.admin-bar .mobile-nav {
  top: 104px;
}
@media (max-width: 782px) {
  body.admin-bar .main-nav {
    top: 46px;
  }
  body.admin-bar .mobile-nav {
    top: 106px;
  }
}

.footer-links a.active {
  color: var(--cyan-500);
}

.alarmify-interest-note,
.alarmify-contact-status {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.55;
}
.alarmify-interest-note {
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  color: var(--ink-700);
}
.alarmify-contact-status.success {
  background: #eafaf7;
  border: 1px solid rgba(30,203,184,0.28);
  color: #117c6f;
}
.alarmify-contact-status.error {
  background: #fff2f2;
  border: 1px solid rgba(232,92,92,0.24);
  color: #b13f3f;
}

.alarmify-enquiry-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.alarmify-enquiry-points {
  padding-left: 18px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--ink-600);
  line-height: 1.7;
}
.alarmify-enquiry-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
