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

:root{
  --navy:#1b2a4a;
  --navy-deep:#0f1b33;
  --navy-light:#263c5f;
  --white:#ffffff;
  --off-white:#f7f8fa;
  --text-dark:#1e2a3a;
  --text-muted:#5a6778;
  --coral:#e05a33;
  --coral-hover:#c94e2b;
  --coral-light:#f07a56;
  --coral-bg:rgba(224,90,51,0.06);
  --green-soft:#2e8b57;
  --border:#e2e6ec;
  --border-light:#eef0f4;
}

html{scroll-behavior:smooth}

body{
  font-family:'Outfit',sans-serif;
  background:var(--white);
  color:var(--text-dark);
  line-height:1.6;
  overflow-x:hidden;
}

.container{max-width:1120px;margin:0 auto;padding:0 24px}

/* -- NAV -- */
nav{
  background:var(--white);
  border-bottom:1px solid var(--border);
  padding:14px 0;
  position:sticky;
  top:0;
  z-index:100;
}
nav .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.nav-brand{display:flex;align-items:center}
.logo-img{height:32px;width:auto}
nav ul{list-style:none;display:flex;gap:28px}
nav ul a{
  color:var(--text-muted);
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  transition:color 0.2s;
}
nav ul a:hover{color:var(--navy)}
.nav-cta{
  background:var(--coral);
  color:#fff;
  padding:10px 22px;
  border-radius:4px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:all 0.2s;
}
.nav-cta:hover{background:var(--coral-hover)}

/* -- DIAGONAL STRIPES -- */
.stripe-bar{
  height:48px;
  background:repeating-linear-gradient(135deg,var(--coral),var(--coral) 4px,transparent 4px,transparent 10px);
  opacity:0.15;
}
.stripe-bar-thick{
  height:8px;
  background:repeating-linear-gradient(135deg,var(--coral),var(--coral) 3px,#c44a24 3px,#c44a24 6px,var(--coral) 6px,var(--coral) 9px,transparent 9px,transparent 12px);
}

/* -- HERO -- */
.hero{
  background:var(--navy-deep);
  color:#fff;
  padding:100px 0 80px;
  text-align:center;
  position:relative;
  overflow:hidden;
}

.hero-eyebrow{
  font-size:13px;
  font-weight:500;
  text-transform:uppercase;
  letter-spacing:2px;
  color:var(--coral-light);
  margin-bottom:20px;
}
.hero h1{
  font-family:'Libre Baskerville',serif;
  font-size:clamp(30px,4.5vw,52px);
  font-weight:700;
  line-height:1.2;
  max-width:640px;
  margin:0 auto 20px;
}
.hero h1 em{font-style:italic;color:var(--coral-light)}
.hero p{
  font-size:17px;
  color:rgba(255,255,255,0.7);
  max-width:520px;
  margin:0 auto 36px;
  line-height:1.7;
}
.hero-buttons{display:flex;gap:14px;justify-content:center;flex-wrap:wrap}
.btn-coral{
  background:var(--coral);
  color:#fff;
  padding:14px 28px;
  border-radius:4px;
  font-size:15px;
  font-weight:600;
  text-decoration:none;
  border:none;
  cursor:pointer;
  transition:all 0.2s;
}
.btn-coral:hover{background:var(--coral-hover)}
.btn-outline{
  background:transparent;
  color:#fff;
  padding:14px 28px;
  border-radius:4px;
  font-size:15px;
  font-weight:500;
  text-decoration:none;
  border:1px solid rgba(255,255,255,0.3);
  transition:all 0.2s;
}
.btn-outline:hover{border-color:#fff;background:rgba(255,255,255,0.05)}

/* -- SECTION COMMON -- */
.section-label{
  color:var(--coral);
  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:2px;
  margin-bottom:10px;
}
.section-title{
  font-family:'Libre Baskerville',serif;
  font-size:clamp(24px,3vw,38px);
  font-weight:700;
  color:var(--navy);
  line-height:1.2;
  margin-bottom:12px;
}
.section-desc{
  font-size:15px;
  color:var(--text-muted);
  max-width:520px;
  line-height:1.7;
}

/* -- BENTO FEATURES -- */
.features{padding:100px 0 80px;background:var(--white)}
.features-header{text-align:center;margin-bottom:56px}
.features-header .section-desc{margin:8px auto 0}

.bento{
  max-width:1100px;
  margin:0 auto;
  display:grid;
  grid-template-columns:repeat(6,1fr);
  grid-auto-rows:minmax(200px,auto);
  gap:20px;
}
.bento-card{
  position:relative;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  padding:32px;
  overflow:hidden;
  transition:box-shadow 0.35s,transform 0.35s,border-color 0.35s;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.bento-card:hover{
  border-color:var(--coral);
  box-shadow:0 8px 32px rgba(0,0,0,0.06);
  transform:translateY(-3px);
}
.bento-card::before{
  content:'';
  position:absolute;
  top:0;left:24px;right:24px;
  height:3px;
  background:var(--coral);
  border-radius:0 0 3px 3px;
  transform:scaleX(0);
  transition:transform 0.3s;
}
.bento-card:hover::before{transform:scaleX(1)}

/* Grid placement */
.b-apex     { grid-column:1/4; grid-row:1/3; }
.b-monitor  { grid-column:4/7; grid-row:1/2; }
.b-briefing { grid-column:4/7; grid-row:2/3; }
.b-rates    { grid-column:1/7; grid-row:3/4; }

/* Shared text */
.bento-text h3,
.b-monitor h3,
.b-briefing h3,
.b-rates h3,
.rates-left h3{
  font-family:'Libre Baskerville',serif;
  font-size:18px;
  font-weight:700;
  color:var(--navy);
  margin-bottom:8px;
}
.bento-text p,
.b-monitor p,
.b-briefing p,
.rates-left p{
  font-size:14px;
  color:var(--text-muted);
  line-height:1.7;
}

/* APEX hero card */
.b-apex{justify-content:space-between}
.apex-visual{
  flex:1;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:24px;
}
.apex-donuts{
  display:flex;
  gap:12px;
  flex-wrap:nowrap;
  justify-content:center;
}
.apex-donut{
  text-align:center;
  position:relative;
}
.apex-donut svg{
  width:56px;
  height:56px;
  transform:rotate(-90deg);
}
.apex-donut circle{
  fill:none;
  stroke-width:5;
  stroke-linecap:round;
}
.donut-track{stroke:var(--border)}
.donut-fill{transition:stroke-dashoffset 1s ease}
.donut-hail .donut-fill{stroke:#5b9bd5}
.donut-wind .donut-fill{stroke:#7c6faa}
.donut-flood .donut-fill{stroke:#2e8b57}
.donut-fire .donut-fill{stroke:#d4944c}
.donut-overall .donut-fill{stroke:var(--coral)}
.donut-val{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-70%);
  font-size:14px;
  font-weight:700;
  color:var(--navy);
  font-family:'Libre Baskerville',serif;
}
.donut-lbl{
  font-size:10px;
  color:var(--text-muted);
  margin-top:3px;
  text-transform:uppercase;
  letter-spacing:0.8px;
  font-weight:500;
}

/* Monitor card */
.b-monitor{padding:28px 32px}
.monitor-icon{
  width:44px;height:44px;
  border-radius:50%;
  background:var(--coral-bg);
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:16px;
  position:relative;
}
.monitor-ping{
  position:absolute;
  inset:-4px;
  border-radius:50%;
  border:1.5px solid rgba(224,90,51,0.25);
  animation:ping 2.5s cubic-bezier(0,0,0.2,1) infinite;
}
@keyframes ping{
  0%{transform:scale(1);opacity:0.6}
  75%,100%{transform:scale(1.6);opacity:0}
}

/* Briefing card */
.b-briefing{padding:28px 32px}
.notif-bubble{
  background:var(--off-white);
  border:1px solid var(--border);
  border-radius:12px;
  padding:14px 16px;
  margin-bottom:20px;
}
.notif-header{
  display:flex;
  align-items:center;
  gap:8px;
  margin-bottom:8px;
}
.notif-dot{
  width:8px;height:8px;
  border-radius:50%;
  background:var(--coral);
}
.notif-app{
  font-size:10px;
  font-weight:600;
  letter-spacing:0.8px;
  color:var(--text-muted);
  flex:1;
}
.notif-time{font-size:10px;color:var(--text-muted)}
.notif-title{
  font-size:14px;
  font-weight:600;
  color:var(--navy);
  margin-bottom:3px;
}
.notif-body{font-size:13px;color:var(--text-muted);line-height:1.4}

/* Rates card — horizontal layout */
.b-rates{
  flex-direction:row;
  align-items:center;
  justify-content:space-between;
  gap:40px;
  padding:36px 44px;
  background:linear-gradient(135deg,rgba(224,90,51,0.02) 0%,var(--white) 50%);
}
.rates-left{flex:1}
.savings-ring{
  position:relative;
  width:120px;
  height:120px;
  flex-shrink:0;
}
.savings-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.ring-track{fill:none;stroke:var(--border);stroke-width:6}
.ring-fill{
  fill:none;
  stroke:var(--coral);
  stroke-width:6;
  stroke-linecap:round;
  stroke-dasharray:263.9;
  stroke-dashoffset:263.9;
  transition:stroke-dashoffset 1.4s cubic-bezier(0.22,1,0.36,1);
}
.ring-fill.animated{stroke-dashoffset:105.6}
.savings-center{
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.savings-pct{
  font-family:'Libre Baskerville',serif;
  font-size:30px;
  font-weight:700;
  color:var(--navy);
  line-height:1;
}
.savings-label{
  font-size:10px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.8px;
  color:var(--coral);
  margin-top:2px;
}

/* Bento responsive */
@media(max-width:900px){
  .bento{
    grid-template-columns:1fr 1fr;
    grid-auto-rows:auto;
  }
  .b-apex     { grid-column:1/-1; grid-row:auto; }
  .b-monitor  { grid-column:1/2;  grid-row:auto; }
  .b-briefing { grid-column:2/3;  grid-row:auto; }
  .b-rates    { grid-column:1/-1; grid-row:auto; }
}
@media(max-width:600px){
  .bento{grid-template-columns:1fr}
  .b-apex,.b-monitor,.b-briefing,.b-rates{grid-column:1/-1}
  .b-rates{flex-direction:column;text-align:center;padding:32px 24px}
  .rates-left{align-items:center;text-align:center}
}

/* -- HOW IT WORKS -- */
.how-it-works{padding:100px 0;background:var(--white)}
.steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:32px;
  margin-top:48px;
}
.step{text-align:center;padding:0 16px}
.step-num{
  width:48px;height:48px;
  border-radius:50%;
  background:var(--navy);
  color:#fff;
  font-family:'Libre Baskerville',serif;
  font-size:20px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:0 auto 20px;
}
.step h3{
  font-family:'Libre Baskerville',serif;
  font-size:18px;
  color:var(--navy);
  margin-bottom:8px;
}
.step p{font-size:14px;color:var(--text-muted);line-height:1.7}

/* -- PRICING CALCULATOR -- */
.pricing{
  padding:100px 0;
  background:var(--navy-deep);
  color:#fff;
  position:relative;
}
.pricing::before{
  content:'';
  position:absolute;
  top:0;left:0;right:0;
  height:8px;
  background:repeating-linear-gradient(135deg,var(--coral),var(--coral) 3px,transparent 3px,transparent 7px);
  opacity:0.7;
}
.pricing-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:start;
}
.pricing-left .section-label{color:var(--coral-light)}
.pricing-left .section-title{color:#fff}
.pricing-left .section-desc{color:rgba(255,255,255,0.6)}
.calc-box{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:8px;
  padding:36px;
  backdrop-filter:blur(4px);
}
.calc-box h3{
  font-family:'Libre Baskerville',serif;
  font-size:20px;
  margin-bottom:6px;
}
.calc-box .calc-sub{
  font-size:13px;
  color:rgba(255,255,255,0.5);
  margin-bottom:28px;
}
.form-group{margin-bottom:20px}
.form-group label{
  display:block;
  font-size:13px;
  font-weight:500;
  margin-bottom:6px;
  color:rgba(255,255,255,0.7);
}
.form-row{display:flex;gap:12px}
.form-row .form-group{flex:1}
.form-group input{
  width:100%;
  padding:12px 14px;
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:4px;
  color:#fff;
  font-size:15px;
  font-family:'Outfit',sans-serif;
  transition:border-color 0.2s;
}
.form-group input:focus{outline:none;border-color:var(--coral)}
.form-group input::placeholder{color:rgba(255,255,255,0.25)}
.calc-btn{
  width:100%;
  padding:14px;
  background:var(--coral);
  color:#fff;
  border:none;
  border-radius:4px;
  font-size:15px;
  font-weight:600;
  font-family:'Outfit',sans-serif;
  cursor:pointer;
  transition:background 0.2s;
}
.calc-btn:hover{background:var(--coral-hover)}
.calc-note{
  text-align:center;
  font-size:12px;
  color:rgba(255,255,255,0.35);
  margin-top:12px;
}

/* Calculator states */
.calc-state-hidden{display:none}

/* Loading state */
.calc-steps{display:flex;flex-direction:column;gap:14px;margin:24px 0 20px}
.calc-step{
  display:flex;
  align-items:center;
  gap:10px;
  opacity:0.3;
  transition:opacity 0.4s;
}
.calc-step.active{opacity:1}
.calc-step.done{opacity:0.7}
.step-check{
  width:22px;height:22px;
  border-radius:50%;
  border:2px solid rgba(255,255,255,0.2);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  transition:all 0.3s;
  position:relative;
}
.calc-step.active .step-check{
  border-color:var(--coral);
  box-shadow:0 0 8px rgba(224,90,51,0.3);
}
.calc-step.done .step-check{
  border-color:var(--coral);
  background:var(--coral);
}
.calc-step.done .step-check::after{
  content:'';
  width:8px;height:5px;
  border-left:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(-45deg);
  margin-top:-1px;
}
.step-text{font-size:14px;color:rgba(255,255,255,0.7)}
.calc-step.active .step-text{color:#fff}
.calc-step.done .step-text{color:rgba(255,255,255,0.5)}

.calc-progress-bar{
  height:3px;
  background:rgba(255,255,255,0.1);
  border-radius:2px;
  overflow:hidden;
}
.calc-progress-fill{
  height:100%;
  width:0;
  background:var(--coral);
  border-radius:2px;
  transition:width 0.6s ease;
}

/* Result state */
.result-header{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  font-weight:600;
  color:rgba(255,255,255,0.7);
  margin-bottom:16px;
}
.result-price{
  font-family:'Libre Baskerville',serif;
  font-size:42px;
  font-weight:700;
  color:var(--coral-light);
  line-height:1;
  margin-bottom:4px;
}
.result-period{
  font-size:13px;
  color:rgba(255,255,255,0.4);
  margin-bottom:24px;
}
.result-breakdown{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:6px;
  padding:16px;
  margin-bottom:24px;
}
.breakdown-row{
  display:flex;
  justify-content:space-between;
  padding:6px 0;
}
.breakdown-row + .breakdown-row{
  border-top:1px solid rgba(255,255,255,0.06);
}
.breakdown-label{
  font-size:13px;
  color:rgba(255,255,255,0.5);
}
.breakdown-value{
  font-size:13px;
  font-weight:600;
  color:#fff;
}
.result-cta-btn{
  display:block;
  text-align:center;
  text-decoration:none;
  margin-bottom:12px;
}
.recalc-link{
  display:block;
  width:100%;
  background:none;
  border:none;
  color:rgba(255,255,255,0.4);
  font-size:13px;
  font-family:'Outfit',sans-serif;
  cursor:pointer;
  padding:8px 0;
  text-align:center;
  transition:color 0.2s;
}
.recalc-link:hover{color:rgba(255,255,255,0.7)}

/* Result card entrance */
#calc-result-state{
  animation:resultFadeIn 0.4s ease both;
}
@keyframes resultFadeIn{
  from{opacity:0;transform:scale(0.97) translateY(8px)}
  to{opacity:1;transform:scale(1) translateY(0)}
}

/* Disabled form inputs during loading */
.calc-box.is-loading .form-group input{
  opacity:0.4;
  pointer-events:none;
}

/* -- TIERS -- */
.tiers{padding:100px 0;background:var(--white)}
.tiers-header{text-align:center;margin-bottom:48px}
.tiers-header .section-desc{margin:8px auto 0}
.tier-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:20px;
}
.tier-card{
  border:1px solid var(--border);
  border-radius:8px;
  padding:28px 20px;
  text-align:center;
  transition:all 0.3s;
  position:relative;
  overflow:hidden;
}
.tier-card:hover{
  border-color:var(--coral);
  box-shadow:0 4px 20px rgba(224,90,51,0.1);
}
.tier-card::after{
  content:'';
  position:absolute;
  bottom:0;left:0;right:0;
  height:3px;
  background:var(--coral);
  transform:scaleX(0);
  transition:transform 0.3s;
}
.tier-card:hover::after{transform:scaleX(1)}
.tier-name{
  font-size:13px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:1.5px;
  color:var(--coral);
  margin-bottom:4px;
}
.tier-range{font-size:14px;color:var(--text-muted);margin-bottom:16px}
.tier-price{
  font-family:'Libre Baskerville',serif;
  font-size:28px;
  font-weight:700;
  color:var(--navy);
  margin-bottom:4px;
}
.tier-unit{font-size:13px;color:var(--text-muted)}

/* -- POST-EVENT TABLE -- */
.post-event{
  padding:80px 0;
  background:var(--off-white);
  border-top:1px solid var(--border-light);
}
.post-event-header{margin-bottom:36px}
.post-event table{
  width:100%;
  border-collapse:collapse;
  background:var(--white);
  border-radius:8px;
  overflow:hidden;
  border:1px solid var(--border);
}
.post-event th{
  background:var(--navy);
  color:#fff;
  padding:14px 20px;
  text-align:left;
  font-size:14px;
  font-weight:600;
}
.post-event td{
  padding:14px 20px;
  border-bottom:1px solid var(--border-light);
  font-size:14px;
  color:var(--text-muted);
}
.post-event tr:last-child td{border-bottom:none}
.post-event .highlight{color:var(--coral);font-weight:600}
.savings-badge{
  display:inline-block;
  background:var(--coral-bg);
  color:var(--coral);
  font-size:13px;
  font-weight:600;
  padding:6px 16px;
  border-radius:100px;
  margin-top:16px;
}

/* -- FAQ -- */
.faq{padding:100px 0;background:var(--white)}
.faq-header{text-align:center;margin-bottom:48px}
.faq-list{max-width:720px;margin:0 auto}
.faq-item{border-bottom:1px solid var(--border)}
.faq-q{
  width:100%;
  background:none;
  border:none;
  text-align:left;
  padding:20px 0;
  font-family:'Libre Baskerville',serif;
  font-size:16px;
  font-weight:700;
  color:var(--navy);
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
}
.faq-q::after{
  content:'+';
  font-size:24px;
  font-weight:300;
  color:var(--coral);
  transition:transform 0.3s;
  flex-shrink:0;
}
.faq-item.open .faq-q::after{transform:rotate(45deg)}
.faq-a{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.4s ease;
  padding:0;
}
.faq-a p{
  padding:0 0 20px;
  font-size:14px;
  color:var(--text-muted);
  line-height:1.8;
}

/* -- CTA -- */
.cta{
  padding:80px 0;
  background:var(--navy-deep);
  color:#fff;
  position:relative;
  overflow:hidden;
}
.cta::before{
  content:'';
  position:absolute;
  bottom:0;left:0;right:0;
  height:48px;
  background:repeating-linear-gradient(135deg,var(--coral),var(--coral) 4px,transparent 4px,transparent 10px);
  opacity:0.12;
}
.cta .container{text-align:center;position:relative;z-index:1}
.cta .section-title{color:#fff;max-width:480px;margin:0 auto 12px}
.cta .section-desc{color:rgba(255,255,255,0.6);margin:0 auto 32px}

/* -- FOOTER -- */
footer{
  background:var(--white);
  border-top:1px solid var(--border);
  padding:32px 0;
  text-align:center;
}
footer p{font-size:13px;color:var(--text-muted)}

/* -- ANIMATIONS -- */
.fade-up{
  opacity:0;
  transform:translateY(24px);
  transition:all 0.6s cubic-bezier(0.16,1,0.3,1);
}
.fade-up.visible{
  opacity:1;
  transform:translateY(0);
}

/* -- RESPONSIVE -- */
@media(max-width:900px){
  .steps,.tier-grid{grid-template-columns:1fr 1fr}
  .pricing-grid{grid-template-columns:1fr}
  nav ul{display:none}
}
@media(max-width:600px){
  .steps,.tier-grid{grid-template-columns:1fr}
  .form-row{flex-direction:column}
}
