:root{
  --bg:#F8FAFC;
  --surface:#FFFFFF;
  --text-main:#0F172A;
  --text-muted:#475569;
  --primary:#2563EB;
  --primary-soft:#DBEAFE;
  --border:#E2E8F0;

  --container:1120px;
  --radius:16px;
}

*{box-sizing:border-box;}
html{color-scheme:light;}
body{
  margin:0;
  font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;
  font-size:16px;
  line-height:1.5;
  color:var(--text-main);
  background: linear-gradient(rgba(255,255,255,0.60), rgba(255,255,255,0.60)), 
              url('../images/calculator.jpg') center/cover fixed;
}
img{max-width:100%;height:auto;}
a{color:inherit;}

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 20px;
}

.skip-link{
  position:absolute;
  left:-999px;
  top:12px;
  background:var(--surface);
  border:1px solid var(--border);
  padding:10px 12px;
  border-radius:12px;
  z-index:70;
}
.skip-link:focus{left:12px;}

.site-header{
  padding:18px 0;
  position:sticky;
  top:0;
  z-index:60;
  background:var(--bg);
  transition:transform 180ms ease;
  will-change:transform;
}
.site-header.site-header--hidden{
  transform:translateY(-110%);
}

@media (prefers-reduced-motion: reduce){
  .site-header{transition:none;}
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:6px;
  text-decoration:none;
  font-weight:700;
}
.brand span{
  font-size:21px;
  line-height:1.1;
}
.brand-logo {
  height: 77px;
  width:auto;
  display:block;
}
.brand-mark{
  width:28px;
  height:28px;
  border-radius:10px;
  border:1px solid var(--border);
  background:var(--surface);
  display:grid;
  place-items:center;
  font-size:14px;
}

.footer-brand{
  display:flex;
  align-items:center;
  gap:10px;
}
.footer-logo{
  height: 63px;
  width:auto;
  display:block;
}

.nav{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.nav a{
  text-decoration:none;
  color:var(--text-muted);
  padding:8px 10px;
  border-radius:12px;
}
.nav a:hover{background:rgba(15,23,42,.04);}

.nav-cta{
  display:flex;
  gap:10px;
  align-items:center;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  text-decoration:none;
  font-weight:700;
  line-height:1;
  white-space:nowrap;
}
.btn-primary{
  background:var(--primary);
  color:#fff;
  border-color:var(--primary);
}
.btn-soft{
  background:var(--primary-soft);
  color:var(--primary);
  border-color:transparent;
}
.btn-ghost{
  background:transparent;
  color:var(--text-main);
}

main{padding:18px 0 48px;}

.hero{
  padding:36px 0 10px;
}
.hero-grid{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:24px;
  align-items:start;
}
.hero-card{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:24px;
}
.hero h1{
  margin:0 0 10px;
  font-size:40px;
  line-height:1.12;
  font-weight:300;
  letter-spacing:-.02em;
}
.hero p{
  margin:0 0 18px;
  color:var(--text-muted);
  font-size:18px;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.hero-note{
  margin-top:14px;
  color:var(--text-muted);
  font-size:14px;
}

.section{
  padding:28px 0;
}
.section h2{
  margin:0 0 14px;
  font-size:28px;
  letter-spacing:-.01em;
  font-weight:400;
  line-height:1.2;
}

.cards-3{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}
.card{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
}
.card h3{
  margin:0 0 6px;
  font-size:22px;
  font-weight:400;
}
.card p{
  margin:0;
  color:var(--text-muted);
}

.pricing{
  background:transparent;
}
.pricing-head{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:flex-end;
  gap:16px;
}
.pricing-head > :first-child{justify-self:start;}
.pricing-head > :last-child{justify-self:center;}
.pricing-subtitle{
  margin:0;
  color:var(--text-muted);
}

@media (max-width: 720px){
  .pricing-head{
    grid-template-columns:1fr;
    align-items:start;
  }
  .pricing-head > :last-child{justify-self:start;}
}

.toggle{
  display:flex;
  align-items:center;
  gap:12px;
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:999px;
  padding:8px 10px;
}
.toggle-label{
  color:var(--text-muted);
  font-weight:700;
  font-size:14px;
}
.toggle-switch{
  position:relative;
  width:42px;
  height:24px;
}
.toggle-switch input{
  position:absolute;
  inset:0;
  opacity:0;
}
.toggle-track{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.06);
  border-radius:999px;
  border:1px solid var(--border);
}
.toggle-thumb{
  position:absolute;
  top:3px;
  left:3px;
  width:18px;
  height:18px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:999px;
  transition:transform .18s ease;
}
.toggle-switch input:checked + .toggle-track .toggle-thumb{
  transform:translateX(18px);
}

.pricing-grid{
  margin-top:16px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.plan{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  display:flex;
  flex-direction:column;
  min-height:100%;
}
.plan-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.badge{
  font-size:12px;
  font-weight:800;
  color:var(--primary);
  background:var(--primary-soft);
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(37,99,235,.15);
}

.plan h3{margin:0 0 8px;font-size:22px;font-weight:400;}
.price{
  font-size:34px;
  font-weight:300;
  letter-spacing:-.02em;
  margin:0;
}
.price small{
  font-size:14px;
  font-weight:700;
  color:var(--text-muted);
}
.plan [data-price-note]{
  margin:12px 0 0;
  color:var(--text-muted);
  font-size:14px;
  font-weight:400;
}
.plan-desc{margin:8px 0 14px;color:var(--text-muted);}
.plan ul{
  margin:0 0 16px;
  padding-left:18px;
  color:var(--text-main);
}
.plan li{margin:6px 0;}
.plan .plan-actions{margin-top:auto;display:flex;gap:10px;flex-wrap:wrap;}

.interested{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}
.interested p{margin:0;color:var(--text-muted);}

.launch-banner{
  background:var(--primary-soft);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:16px 18px;
  display:block;
}
.launch-title{
  margin:0 0 6px;
  font-size:22px;
  font-weight:400;
  color:var(--text-main);
}
.launch-text{
  margin:0;
  color:var(--text-muted);
}
.launch-countdown{
  margin-top:12px;
  display:flex;
  gap:10px;
  align-items:flex-end;
  font-variant-numeric:tabular-nums;
}
.launch-countdown-item{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:14px;
  padding:10px 12px;
  min-width:76px;
  text-align:center;
}
.launch-countdown-value{
  font-size:22px;
  font-weight:700;
  line-height:1.1;
  color:var(--primary);
}
.launch-countdown-label{
  margin-top:4px;
  font-size:12px;
  color:var(--text-muted);
  font-weight:700;
}
.launch-noscript{
  color:var(--text-muted);
  font-size:14px;
}

.mobile-sticky-cta{display:none;}

.page{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:22px;
}
.page h1{
  margin:0 0 12px;
  font-size:28px;
  font-weight:400;
  line-height:1.2;
  letter-spacing:-.01em;
}
.page p{margin:0 0 12px;color:var(--text-main);}

.page figure{margin:18px 0 22px;}
.page img{
  display:block;
  width:clamp(120px,56%,520px);
  max-width:520px;
  height:auto;
  margin:18px 0;
  margin-left:0;
  margin-right:auto;
}
.page figure img{margin:0;}

.faq{
  display:grid;
  gap:12px;
}
.faq details{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px 16px;
}
.faq summary{
  cursor:pointer;
  font-weight:400;
}
.faq details p{margin:10px 0 0;color:var(--text-main);}
.faq details ul{
  margin:10px 0 0;
  padding-left:18px;
}

.founder-layout{
  display:flex;
  align-items:flex-start;
  gap:18px;
}
.founder-portrait img{
  width:100%;
  max-width:260px;
  height:auto;
  display:block;
  border-radius:0;
  border:0;
  margin-left:0;
  margin-right:auto;
}
.founder-content{flex:1;min-width:260px;}

@media (max-width: 920px){
  .founder-layout{flex-direction:column;align-items:flex-start;}
  .founder-content{width:100%;min-width:0;}
}

.site-footer{
  padding:26px 0 40px;
  color:var(--text-muted);
  position:sticky;
  bottom:0;
  z-index:50;
  background:var(--bg);
}
.footer-inner{
  border-top:1px solid var(--border);
  padding-top:18px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
}
.footer-links{display:flex;gap:12px;flex-wrap:wrap;}
.footer-links a{text-decoration:none;color:var(--text-muted);padding:6px 8px;border-radius:10px;}
.footer-links a:hover{background:rgba(15,23,42,.04);}

@media (max-width: 920px){
  .hero-grid{grid-template-columns:1fr;}
  .cards-3{grid-template-columns:1fr;}
  .pricing-grid{grid-template-columns:1fr;}
  .header-inner{align-items:center;}
  .header-inner{flex-wrap:wrap;justify-content:flex-start;gap:12px;}

  .site-header{padding:8px 0;}
  .brand-logo{height:48px;}

  .nav-cta{margin-left:auto;}

  .nav{
    display:flex;
    flex-basis:100%;
    order:3;
    margin-top:2px;
  }
  .nav a{padding:8px 10px;}
  .btn{padding:8px 12px;}

  .site-footer{
    position:static;
    bottom:auto;
  }

  .launch-countdown{width:100%;justify-content:space-between;}
  .launch-countdown-item{min-width:0;flex:1;}

  .has-mobile-sticky-cta main{
    padding-bottom:calc(48px + 64px + env(safe-area-inset-bottom));
  }
  .has-mobile-sticky-cta .site-footer{
    padding-bottom:calc(40px + 64px + env(safe-area-inset-bottom));
  }
  .has-mobile-sticky-cta .mobile-sticky-cta{display:block;}
  .mobile-sticky-cta{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:80;
    background:var(--primary);
    height:calc(48px + env(safe-area-inset-bottom));
    padding-bottom:env(safe-area-inset-bottom);
  }
  .mobile-sticky-cta a{
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    text-decoration:none;
    font-weight:700;
  }
}
