/* Reset & Variables — shared brand DNA with the app shell (charcoal / canvas / red) */
:root {
  --primary: #ff1a14;
  --primary-hover: #d91610;
  --secondary: #1B3139;
  --text-main: #1B3139;
  --text-muted: #3c4043;
  --bg-white: #ffffff;
  --bg-light: #EEF1F3;
  --shadow-card: 0 6px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-strong: 0 20px 40px rgba(27, 49, 57, 0.12);
  --shadow-cta: 0 6px 10px rgba(15, 23, 42, 0.28);
  --radius-pill: 50px;
  --radius-button: 14px;
  --radius-card: 20px;
  --font-main: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-main);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Buttons — same height/radius language as app .bz-btn-primary (14px / ~50px) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 28px;
  border-radius: var(--radius-button);
  font-weight: 700;
  cursor: pointer;
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  border: 2px solid transparent;
  font-size: 0.95rem;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-cta);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  filter: brightness(1.03);
  transform: translateY(-1px);
  box-shadow: var(--shadow-cta);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background-color: var(--secondary);
  color: white;
}

.btn-white {
  background-color: white;
  color: var(--primary);
}

.btn-store-badge {
  display: inline-block;
  transition: transform 0.2s ease;
}

.btn-store-badge:hover {
  transform: translateY(-2px);
}

.btn-store {
  display: inline-flex;
  align-items: center;
  background: black;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  margin: 0 10px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease;
  min-width: 170px;
  border: 1px solid rgba(255,255,255,0.2);
  text-align: left;
}

.btn-store:hover {
  transform: translateY(-2px);
}

.btn-store svg {
  width: 28px;
  height: 28px;
  margin-right: 12px;
  fill: white;
}

.store-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.store-subtitle {
  font-size: 0.65rem;
  font-weight: 400;
  opacity: 0.9;
}

.store-title {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Navbar — Apple-style frosted glass (global nav material) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  color: #f5f5f7;
  padding: 0;
  min-height: 48px;
  display: flex;
  align-items: center;
  background: rgba(22, 22, 23, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  width: 100%;
  min-height: 48px;
  padding-top: 0;
  padding-bottom: 0;
}

.nav-toggle-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  z-index: 2;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 28px;
  min-width: 0;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}

.logo .logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 28px;
  justify-content: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  color: #f5f5f7;
  opacity: 0.88;
  transition: opacity 0.18s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.14);
  color: #f5f5f7;
  padding: 6px 14px;
  border-radius: 980px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: background 0.18s ease, border-color 0.18s ease;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
}

.nav-btn-disabled,
.btn-disabled,
.btn-coming-soon {
  cursor: default;
  user-select: none;
}

.nav-btn.nav-btn-disabled {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

/* Light frosted variant for pages with light backgrounds */
.navbar-dark {
  color: #1d1d1f;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
}

.navbar-dark .nav-links a {
  color: #1d1d1f;
  opacity: 0.8;
}

.navbar-dark .nav-links a:hover {
  opacity: 1;
}

.navbar-dark .nav-btn {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.28) inset;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar-dark .nav-btn.nav-btn-disabled {
  background: rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: none;
}

/* Hero Section */
.hero-section {
  background-color: var(--primary);
  color: white;
  padding-top: 100px; /* Reduced further to move up ~33% */
  padding-bottom: 40px; /* Reduced further */
  position: relative;
  overflow: hidden;
  text-align: center;
  /* Subtle grid pattern */
  background-image: 
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Decorative circles */
.circle-bg {
  position: absolute;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.circle-bg--tl {
  width: 800px;
  height: 800px;
  top: -200px;
  left: -200px;
  opacity: 0.1;
}
.circle-bg--br {
  width: 600px;
  height: 600px;
  bottom: -100px;
  right: -100px;
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto 8px;
}

.hero-brand {
  margin: 0 0 12px;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  text-align: center;
}

.hero-title {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 14px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 560px;
  margin: 0 auto 22px;
  font-weight: 300;
  line-height: 1.55;
}

.ios-launch-note {
  display: inline-block;
  margin: 0 0 18px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.btn-coming-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 154px;
  padding: 14px 28px;
  border-radius: 6px;
  background: #fff;
  color: var(--text-main);
  font-weight: 700;
}

.btn-coming-soon--red {
  background: var(--primary);
  color: #fff;
}

.hero-store-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.store-badge-img {
  height: 56px;
  width: auto;
  display: block;
}

.hero-phones {
  position: relative;
  height: 830px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 28px;
  padding-bottom: 8px;
}

.device-picture {
  display: contents;
}

.hero-screenshot {
  width: auto;
  transition: transform 0.3s ease;
}

.hero-screenshot:hover {
  transform: translateY(-4px);
}

.hero-screenshot-center {
  width: min(460px, 36vw);
  height: auto;
  z-index: 10;
  margin: 0 16px;
}

.hero-screenshot-side {
  display: block;
  width: min(360px, 29vw);
  height: auto;
  opacity: 0.95;
  margin-top: 110px;
  z-index: 5;
}

.app-screenshot {
  width: min(100%, 460px);
  max-width: none;
  max-height: none;
  height: auto;
  margin: 0 auto;
}

/* CSS Phone Mockup – single clean drop shadow right/bottom */
.phone-mockup {
  width: 208px;
  height: 416px;
  background: #fff;
  border-radius: 32px;
  border: 8px solid #1B3139;
  position: relative;
  box-shadow: 6px 10px 32px rgba(0,0,0,0.18);
  overflow: hidden;
  margin: 0 24px;
  transition: transform 0.3s ease;
}

.phone-mockup.center {
  z-index: 10;
  transform: translateY(0);
}

.phone-mockup.side {
  width: 192px;
  height: 384px;
  opacity: 0.9;
  transform: translateY(48px);
  z-index: 5;
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 20px;
  background: #1B3139;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 20;
}

/* Screen Content UI */
.screen-content {
  padding: 32px 16px;
  height: 100%;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.ui-header { 
  height: 24px; 
  margin-bottom: 16px; 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.ui-title { 
  font-weight: 600; 
  font-size: 0.9rem; 
  color: var(--secondary); 
}

/* Dial UI (Temperature) */
.ui-dial-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 16px 0;
  position: relative;
}
.ui-dial {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 6px solid #f0f0f0;
  border-top-color: var(--primary);
  border-right-color: var(--primary);
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ui-dial-value {
  transform: rotate(45deg);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--secondary);
}
.ui-dial-label {
  position: absolute;
  bottom: -24px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Chart UI (Energy) */
.ui-chart-container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 96px;
  margin-top: 16px;
  padding: 0 8px;
}
.ui-bar-col {
  width: 10px;
  background: #eee;
  border-radius: 5px;
}
.ui-bar-col.active {
  background: var(--primary);
}

/* List/Toggle UI (Appliances) */
.ui-toggle-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.ui-toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #f9f9f9;
  border-radius: 12px;
}
.ui-toggle-label {
  font-size: 0.8rem;
  font-weight: 600;
}
.ui-toggle-switch {
  width: 30px;
  height: 16px;
  background: #ddd;
  border-radius: 20px;
  position: relative;
}
.ui-toggle-switch.on {
  background: var(--primary);
}
.ui-toggle-switch::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  transition: left 0.2s;
}
.ui-toggle-switch.on::after {
  left: 16px;
}


/* Section Styles */
.section {
  padding: 60px 0;
  position: relative;
}
.section--white { background-color: #fff; }
.section--muted { background-color: #f7f8fa; }

.section-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: -1px;
}

/* Feature Row (Zig Zag) */
.feature-row {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 0;
}

.feature-row.reverse {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.feature-heading {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--secondary);
  line-height: 1.2;
}

.feature-desc {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.8;
  max-width: 450px;
}

/* Geometric Decoration (Rectangles) */
.decor-rect {
  position: absolute;
  width: 240px;
  height: 360px;
  background-color: #2D5BFF; /* Bright blue from screenshot */
  border-radius: 32px;
  z-index: -1;
}

/* Specific offsets for visual balance */
.feature-visual .decor-rect {
  top: 40px;
  right: 40px; /* Offset to the right */
  left: auto;
}

.feature-visual.left .decor-rect {
  top: 40px;
  left: 40px; /* Offset to the left */
  right: auto;
}

/* Testimonials */
.testimonials-section {
  padding: 120px 0 48px;
  background: white;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 20px;
  text-align: center;
  letter-spacing: -1px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 80px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 60px;
}

.testimonial-card {
  background: #fcfcfc; /* Very light grey/white */
  padding: 50px;
  border-radius: 10px;
  border: 1px solid #f0f0f0;
  transition: transform 0.3s;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.testimonial-quote {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 30px;
  font-style: italic;
}

.user-profile {
  display: flex;
  align-items: center;
  margin-top: 25px;
}

.user-avatar {
  width: 60px;
  height: 60px;
  background: #ddd;
  border-radius: 50%;
  margin-right: 20px;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-main);
}

.user-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-main);
}

.user-info span {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* FAQ */
.faq-section {
  padding: 48px 0 60px;
  max-width: 900px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 20px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #fcfcfc;
  overflow: hidden;
}

.accordion-item[open] {
  background: white;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border-color: transparent;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: 25px 30px;
  background: none;
  border: none;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

.accordion-icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--text-main);
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.accordion-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.accordion-item[open] > .accordion-header .accordion-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.accordion-header::-webkit-details-marker { display: none; }
.accordion-header::marker { content: ""; }

.accordion-content {
  padding: 0 30px 30px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 1rem;
}

.btn-learn-more {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  border-radius: 4px;
  font-weight: 600;
  background: transparent;
  margin-top: 30px;
}

.btn-learn-more:hover {
  background: var(--secondary);
  color: white;
}

.btn-learn-more.btn-disabled:hover {
  background: transparent;
  color: var(--secondary);
}

/* Broker plan paths */
.broker-paths-section {
  padding: 76px 0;
  background: #f7f8fa;
}

.broker-paths-heading {
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--text-muted);
}

.broker-paths-heading .section-title {
  margin-bottom: 12px;
}

.broker-paths-eyebrow,
.broker-path-label {
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.broker-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.broker-path-card {
  display: flex;
  min-height: 360px;
  padding: 34px;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border: 1px solid #e4e7eb;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(19, 35, 43, 0.06);
}

.broker-path-card-primary {
  border-top: 5px solid var(--primary);
}

.broker-path-card h3 {
  margin: 10px 0 14px;
  color: var(--secondary);
  font-size: 2rem;
}

.broker-path-card p {
  color: var(--text-muted);
  line-height: 1.7;
}

.broker-path-price {
  margin: 24px 0 4px;
  color: var(--secondary) !important;
  font-weight: 700;
}

.broker-path-savings {
  margin: 0 0 14px;
  font-size: 0.9rem;
}

.broker-path-cta {
  display: inline-block;
  padding: 12px 20px;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: 5px;
  font-weight: 700;
}

.broker-path-cta:hover,
.broker-path-cta-primary {
  background: var(--secondary);
  color: white;
}

.broker-path-cta-primary:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.broker-path-cta.btn-disabled:hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

/* Screenshots Showcase */
.screenshot-showcase {
  padding: 72px 0;
  background: white;
}

.screenshot-gallery {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}

.screenshot-gallery img {
  flex: 0 0 auto;
  width: min(85vw, 420px);
  height: auto;
  scroll-snap-align: start;
}

/* Clients / Trusted By */
.clients-section {
  padding: 60px 0 72px;
  background: var(--bg-light);
}

.clients-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 64px;
}

.client-logo {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-muted);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.client-logo:hover {
  opacity: 1;
}

/* Download Section – centered, tight gap between button and phone */
.download-heading {
  font-size: 2.5rem;
}
.download-store-buttons {
  margin-left: -8px;
}

.download-section {
  padding: 60px 0 80px;
  background: white;
}

.download-section .feature-row {
  gap: 48px;
  margin-bottom: 0;
  justify-content: center;
  flex-wrap: wrap;
}

.download-section .feature-text {
  flex: 1 1 420px;
  max-width: 420px;
}

.download-section .feature-visual {
  flex: 1 1 420px;
  justify-content: center;
}

.download-section .feature-desc {
  max-width: 100%;
}

/* Subscribe Section – full-width blue block */
.subscribe-section {
  padding: 56px 24px 64px;
  background: var(--primary);
  color: white;
}

.subscribe-card {
  background: transparent;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  overflow: visible;
  color: white;
}

.sub-text {
  max-width: 520px;
}

.sub-text h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.sub-text p {
  opacity: 0.92;
  font-size: 0.95rem;
  line-height: 1.65;
}

.sub-action {
  flex-shrink: 0;
  margin-left: 48px;
}

.btn-outline-white {
  background: transparent;
  border: 1px solid white;
  color: white;
  padding: 12px 30px;
  border-radius: 4px;
  font-weight: 500;
  text-transform: capitalize;
}

.btn-outline-white:hover {
  background: white;
  color: var(--primary);
}

.btn-outline-white.btn-disabled:hover {
  background: transparent;
  color: white;
}

.sub-decor {
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  pointer-events: none;
}
.sub-decor::after {
  content: '';
  position: absolute;
  top: 40px;
  left: 40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

/* Footer */
.site-footer {
  background-color: white;
  color: var(--text-main);
  padding-top: 32px;
  padding-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 20px;
}

.footer-logo .logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 300px;
}

.footer-form {
  display: flex;
  gap: 10px;
}

.footer-input {
  background: #f9f9f9;
  border: 1px solid #eee;
  padding: 12px 15px;
  border-radius: 4px;
  font-size: 0.9rem;
  width: 200px;
}

.btn-register {
  background: white;
  border: 1px solid var(--secondary);
  color: var(--secondary);
  padding: 12px 25px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-register:hover {
  background: var(--secondary);
  color: white;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: #333;
  text-transform: uppercase;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-col ul li a:hover {
  color: var(--primary);
}

.copyright-bar {
  background-color: #0a1128;
  color: white;
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Legal / compliance pages */
.legal-page {
  padding: 140px 0 80px;
  background: var(--bg-white);
}

.legal-content {
  max-width: 820px;
}

.legal-content h1 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 16px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.legal-content p,
.legal-content li {
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.7;
}

.legal-content p {
  margin-bottom: 14px;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 18px 22px;
}

.legal-content ul li,
.legal-content ol li {
  margin-bottom: 8px;
}

.legal-content a {
  color: var(--primary);
}

.small-note {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border: 1px solid #e7e7e7;
}

.pricing-table th,
.pricing-table td {
  padding: 12px;
  border-bottom: 1px solid #ededed;
  text-align: left;
  vertical-align: top;
}

.pricing-table th {
  background: var(--bg-light);
  font-weight: 600;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  /* Let the title wrap naturally instead of forcing the desktop line breaks. */
  .hero-title-line {
    display: inline;
  }

  .hero-phones {
    height: auto;
    gap: 16px;
    align-items: flex-end;
  }

  .hero-screenshot-center {
    width: min(483px, 46vw);
  }

  .hero-screenshot-side {
    width: min(360px, 34vw);
    margin-top: 80px;
  }

  .screenshot-gallery img {
    width: min(86vw, 460px);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .subscribe-card {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }

  .legal-page {
    padding-top: 120px;
  }

  .download-section .feature-row {
    flex-direction: column;
    text-align: center;
    gap: 28px;
  }

  .download-section .feature-text {
    max-width: 680px;
  }

  .download-section .feature-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .download-section .store-buttons {
    margin-left: 0 !important;
  }
}

@media (max-width: 768px) {
  .navbar {
    position: relative;
    padding: 12px 0;
    background: var(--primary);
  }

  .navbar-dark {
    background: var(--bg-white);
    border-bottom: 1px solid #eee;
  }

  .nav-container {
    flex-wrap: wrap;
    gap: 8px;
  }

  .logo .logo-img {
    height: 40px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-panel {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 12px 0 8px;
  }

  .nav-toggle-input:checked ~ .nav-panel {
    display: flex;
  }

  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle__bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle-input:checked ~ .nav-toggle .nav-toggle__bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-links a {
    display: block;
    padding: 12px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .navbar-dark .nav-links a {
    border-bottom-color: #eee;
  }

  .nav-btn {
    text-align: center;
  }

  .hero-section {
    padding-top: 28px;
  }

  .hero-phones {
    min-height: 0;
  }

  .feature-row,
  .feature-row.reverse {
    flex-direction: column;
    gap: 32px;
  }

  .feature-text,
  .feature-visual {
    flex: none;
    width: 100%;
  }

  .feature-text {
    text-align: center;
  }

  .download-store-buttons {
    margin-left: 0;
    justify-content: center;
  }

  .broker-paths-grid {
    grid-template-columns: 1fr;
  }

  .broker-path-card {
    min-height: auto;
  }

  .section-title {
    font-size: 2.4rem;
  }

  .download-heading {
    font-size: 2rem;
  }

  .legal-page {
    padding-top: 40px;
  }
}

@media (max-width: 576px) {
  .hero-phones {
    justify-content: center;
  }

  .hero-screenshot-center {
    width: min(92vw, 360px);
    margin: 0;
  }

  .app-screenshot {
    width: min(92vw, 483px);
  }

  .screenshot-gallery img {
    width: min(92vw, 483px);
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .legal-content h1 {
    font-size: 1.7rem;
  }

  .pricing-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Blog */
.blog-empty {
  margin: 24px 0;
  padding: 22px;
  border: 1px dashed #ddd;
  border-radius: 12px;
  color: var(--text-muted);
  text-align: center;
}

.blog-list {
  display: grid;
  gap: 22px;
  margin-top: 24px;
}

.blog-card {
  padding: 22px 24px;
  border: 1px solid #eee;
  border-radius: 14px;
  background: #fff;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.blog-card:hover {
  border-color: #e2e2e2;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
}

.blog-card-title {
  margin: 0 0 6px;
  font-size: 1.4rem;
}

.blog-card-title a {
  color: var(--text-main);
}

.blog-meta {
  margin: 0 0 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.blog-excerpt {
  margin: 0 0 12px;
  color: #444;
}

.blog-readmore {
  font-weight: 700;
  color: var(--primary);
}

.blog-draft-banner {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #ffe0a3;
  background: #fff8e8;
  border-radius: 10px;
  color: #8a5a00;
  font-size: 0.92rem;
}

.blog-post h1 {
  margin-bottom: 6px;
}

.blog-body {
  margin-top: 20px;
  line-height: 1.75;
  color: #333;
}

.blog-body h2 {
  margin: 28px 0 10px;
  font-size: 1.35rem;
}

.blog-body p {
  margin: 0 0 16px;
}

.blog-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  line-height: 1.7;
}

/* =========================================================================
   Brokerage PRO — product-grade checkout / portal (aligned with app tokens)
   ========================================================================= */
.brokerage-page {
  --bz-accent1: #ff1a14;
  --bz-accent1-hover: #d91610;
  --bz-deep-red: #E5002C;
  --bz-deep-green: #00B45A;
  --bz-off-market: #1B3139;
  --bz-canvas: #EEF1F3;
  --bz-gray-4: #E5E5EA;
  --bz-gray-5: #F5F5F7;
  --bz-text-secondary: #202124;
  --bz-text-tertiary: #3c4043;
  --bz-separator: rgba(60, 60, 67, 0.14);
  --bz-radius-field: 12px;
  --bz-radius-button: 14px;
  --bz-radius: 16px;
  --bz-radius-card: 20px;
  --bz-shadow-card: 0 6px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --bz-shadow-cta: 0 6px 10px rgba(15, 23, 42, 0.28);
}

.brokerage-page .legal-content {
  max-width: 860px;
}

.brokerage-hero {
  text-align: center;
}

.brokerage-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: #ff1a14;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.brokerage-hero h1 {
  margin-top: 12px;
}

.brokerage-hero__lede {
  max-width: 620px;
  margin: 0 auto;
  color: var(--bz-text-secondary);
}

.brokerage-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  align-items: center;
  margin: 26px 0;
  padding: 16px 18px;
  border: 1px solid var(--bz-separator);
  border-radius: var(--bz-radius);
  background: #fff;
  box-shadow: var(--bz-shadow-card);
}

.brokerage-trust__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--bz-text-secondary);
  font-size: 0.95rem;
}

.brokerage-trust__item strong {
  color: var(--bz-off-market);
  font-weight: 700;
}

.brokerage-trust__icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: var(--bz-accent1);
  flex: 0 0 auto;
}

.brokerage-trust__icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.brokerage-plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.brokerage-plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 2px solid var(--bz-gray-4);
  border-radius: var(--bz-radius);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.brokerage-plan-card:hover {
  border-color: #ff1a14;
  box-shadow: var(--bz-shadow-card);
}

.brokerage-plan-card:focus-within {
  outline: none;
  border-color: var(--bz-accent1);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.25);
}

.brokerage-plan-card.is-selected {
  border-color: var(--bz-accent1);
  background: #fff7f6;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.14);
}

.brokerage-plan-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.brokerage-plan-card.is-disabled:hover {
  border-color: var(--bz-gray-4);
  box-shadow: none;
}

.brokerage-plan-card__radio {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.brokerage-plan-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brokerage-plan-card__dot {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid #bbb;
  position: relative;
  transition: border-color 0.15s ease;
}

.brokerage-plan-card.is-selected .brokerage-plan-card__dot {
  border-color: var(--bz-accent1);
}

.brokerage-plan-card.is-selected .brokerage-plan-card__dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: var(--bz-accent1);
}

.brokerage-plan-card__label {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bz-text-tertiary);
  font-weight: 700;
}

.brokerage-plan-card__price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--bz-accent1);
  margin-top: 10px;
  line-height: 1.1;
}

.brokerage-plan-card__cadence {
  color: var(--bz-off-market);
  font-weight: 700;
}

.brokerage-plan-card__note {
  margin-top: 8px;
  color: var(--bz-text-tertiary);
  font-size: 0.92rem;
}

.brokerage-plan-card__unavailable {
  margin-top: 10px;
  color: #8a3b00;
  font-size: 0.88rem;
  font-weight: 700;
}

.brokerage-plan-card__badge {
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--bz-accent1);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
}

.brokerage-fieldset {
  border: 0;
  padding: 0;
  margin: 24px 0 0;
}

.brokerage-estimator,
.brokerage-card {
  margin: 16px 0 24px;
  padding: 18px;
  border: 1px solid var(--bz-separator);
  border-radius: var(--bz-radius);
  background: var(--bz-gray-5);
}

.brokerage-card--white {
  background: #fff;
  box-shadow: var(--bz-shadow-card);
}

.brokerage-estimator__row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.brokerage-estimator__meta {
  color: var(--bz-text-tertiary);
  font-size: 0.9rem;
}

.brokerage-estimator__meta strong {
  color: var(--bz-off-market);
}

.brokerage-estimator__hint {
  color: #aaa;
}

.brokerage-estimator__total {
  margin-left: auto;
  text-align: right;
}

.brokerage-estimator__total-label {
  color: var(--bz-text-tertiary);
  font-size: 0.85rem;
}

.brokerage-estimator__amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bz-off-market);
}

.brokerage-estimator__cadence {
  color: var(--bz-text-tertiary);
  font-size: 0.85rem;
}

.brokerage-estimator__footnote {
  margin: 10px 0 0;
  color: #888;
  font-size: 0.8rem;
}

.brokerage-field {
  display: block;
  font-weight: 700;
  color: var(--bz-off-market);
}

.brokerage-input,
.brokerage-page input[type="email"],
.brokerage-page input[type="text"],
.brokerage-page input[type="number"] {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--bz-gray-4);
  border-radius: var(--bz-radius-field);
  background: #fff;
  color: var(--bz-off-market);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.brokerage-input:focus,
.brokerage-page input[type="email"]:focus,
.brokerage-page input[type="text"]:focus,
.brokerage-page input[type="number"]:focus {
  outline: none;
  border-color: var(--bz-accent1);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.18);
}

.brokerage-input--inline {
  width: 90px;
  margin-top: 0;
  margin-left: 8px;
}

.brokerage-input--readonly {
  background: var(--bz-gray-5);
}

.brokerage-cta {
  text-align: center;
  margin: 8px 0 32px;
}

.brokerage-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--bz-radius-button);
  background: var(--bz-accent1);
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--bz-shadow-cta);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.brokerage-btn:hover {
  filter: brightness(1.03);
  color: #fff;
}

.brokerage-btn--dark {
  background: var(--bz-off-market);
  box-shadow: none;
}

.brokerage-btn--sm {
  min-height: 44px;
  padding: 10px 18px;
  font-weight: 700;
}

.brokerage-btn--ghost {
  background: none;
  color: var(--bz-deep-red);
  box-shadow: none;
  min-height: auto;
  padding: 6px 0;
  font-weight: 600;
}

.brokerage-btn--ghost:hover {
  color: var(--bz-deep-red);
  filter: none;
  text-decoration: underline;
}

.brokerage-faq {
  display: grid;
  gap: 14px;
}

.brokerage-faq details {
  border: 1px solid var(--bz-separator);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

.brokerage-faq summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--bz-off-market);
}

.brokerage-faq p {
  margin: 8px 0 0;
  color: var(--bz-text-tertiary);
}

.brokerage-flash {
  padding: 12px 14px;
  border-radius: var(--bz-radius-field);
  font-weight: 600;
  margin-bottom: 16px;
}

.brokerage-flash--notice {
  background: rgba(0, 180, 90, 0.1);
  border: 1px solid rgba(0, 180, 90, 0.28);
  color: #067a3d;
}

.brokerage-flash--alert {
  background: #E5002C;
  border: 1px solid transparent;
  color: #fff;
}

.brokerage-banner {
  padding: 14px 16px;
  border-radius: var(--bz-radius-field);
  margin-bottom: 18px;
}

.brokerage-banner--warn {
  border: 1px solid #ffe0a3;
  background: #fff8ec;
  color: #664d00;
}

.brokerage-banner--error {
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  color: var(--bz-deep-red);
}

.brokerage-banner p {
  margin: 6px 0 0;
}

.brokerage-invite {
  display: flex;
  gap: 10px;
  max-width: 520px;
  margin: 10px 0 16px;
}

.brokerage-invite .brokerage-input,
.brokerage-invite input[type="email"] {
  flex: 1;
  margin-top: 0;
  width: auto;
}

.brokerage-seats {
  display: grid;
  gap: 10px;
  margin: 16px 0 24px;
}

.brokerage-seat {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--bz-separator);
  border-radius: var(--bz-radius-field);
  background: #fff;
}

.brokerage-seat__email {
  font-weight: 600;
  color: var(--bz-off-market);
  word-break: break-word;
}

.brokerage-seat__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.brokerage-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bz-canvas);
  color: var(--bz-text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
}

.brokerage-status--active {
  background: rgba(0, 180, 90, 0.12);
  color: #067a3d;
}

.brokerage-status--pending,
.brokerage-status--invited {
  background: rgba(255, 149, 0, 0.14);
  color: #8a5a00;
}

.brokerage-status--revoked {
  background: var(--bz-gray-5);
  color: var(--bz-text-tertiary);
}

.brokerage-status--over {
  background: #E5002C;
  color: #fff;
}

.brokerage-step {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 10px;
}

.brokerage-step h2 {
  margin: 0;
  font-size: 1.15rem;
}

.brokerage-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--bz-accent1);
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
}

.brokerage-form-grid {
  display: grid;
  gap: 14px;
  max-width: 460px;
}

.brokerage-interval-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.brokerage-interval-option {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border: 1px solid var(--bz-gray-4);
  border-radius: var(--bz-radius-field);
  background: #fff;
  cursor: pointer;
}

.brokerage-interval-option.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.brokerage-checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--bz-separator);
  border-radius: 10px;
}

.brokerage-checkout-total__label {
  color: var(--bz-text-tertiary);
}

.brokerage-checkout-total__amount {
  font-size: 1.35rem;
  color: var(--bz-off-market);
}

.brokerage-center {
  text-align: center;
}

.brokerage-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .brokerage-seat {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brokerage-invite {
    flex-direction: column;
  }

  .brokerage-estimator__total {
    margin-left: 0;
    text-align: left;
    width: 100%;
  }
}
