/* ============================================================
   Shubh Media — Business Email Solutions microsite (light theme)
   Shared styles for landing + 3 product pages
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --bg:#FAF9F6;
  --bg-elev:#FFFFFF;
  --bg-elev-2:#F1EFE9;
  --line:#E4E1D9;
  --text:#1B1C1E;
  --text-muted:#6B6E73;
  --accent:#EC2526;
  --accent-soft:rgba(236,37,38,.08);
  --accent-2:#B71C1C;
  --google-a:#4285F4;
  --google-b:#EA4335;
  --google-c:#FBBC05;
  --google-d:#34A853;
  --ms-a:#00A4EF;
  --zoho-a:#E2483D;
  --radius:14px;
  --maxw:1180px;
  --shadow-sm:0 2px 10px rgba(20,20,15,.05);
  --shadow-md:0 20px 44px -24px rgba(20,20,15,.18);
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Space Grotesk',system-ui,sans-serif;
  font-weight:600;
  line-height:1.15;
  margin:0 0 .5em;
  letter-spacing:-0.01em;
  color:var(--text);
}
p{margin:0 0 1em; color:var(--text-muted);}
a{color:inherit; text-decoration:none;}
img{max-width:100%;display:block;}
.mono{font-family:'IBM Plex Mono',monospace;}
button{font-family:inherit; cursor:pointer;}
:focus-visible{outline:2px solid var(--accent); outline-offset:3px;}
@media (prefers-reduced-motion: reduce){
  *{animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important;}
}

.wrap{max-width:var(--maxw); margin:0 auto; padding:0 24px;}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family:'IBM Plex Mono',monospace; font-size:12.5px; letter-spacing:.08em;
  text-transform:uppercase; color:var(--accent-2);
  background:var(--accent-soft); border:1px solid rgba(236,37,38,.22);
  padding:6px 12px; border-radius:100px; margin-bottom:18px;
}

/* ---------- Nav ---------- */
.nav{
  position:sticky; top:0; z-index:50;
  background:rgba(250,249,246,.9); backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav-inner{
  max-width:var(--maxw); margin:0 auto; padding:16px 24px;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
}
.logo{font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:20px; display:flex; align-items:center; gap:8px;}
.logo span{color:var(--accent);}
.nav-links{display:flex; gap:28px; font-size:14.5px; font-weight:500;}
.nav-links a{color:var(--text-muted); transition:color .15s;}
.nav-links a:hover, .nav-links a.active{color:var(--text);}
.nav-cta{
  display:inline-flex; align-items:center; gap:8px;
  background:var(--accent); color:#fff; font-weight:600; font-size:14px;
  padding:10px 18px; border-radius:100px; white-space:nowrap; border:none;
  transition:transform .15s, box-shadow .15s;
}
.nav-cta:hover{transform:translateY(-1px); box-shadow:0 8px 20px rgba(236,37,38,.28);}

/* Mobile hamburger toggle (hidden on desktop) */
.nav-toggle{
  display:none; width:40px; height:40px; border:1px solid var(--line); border-radius:9px;
  background:var(--bg-elev); align-items:center; justify-content:center; flex-shrink:0;
  padding:0;
}
.nav-toggle span{
  display:block; width:18px; height:2px; background:var(--text); border-radius:2px;
  position:relative; transition:transform .2s, opacity .2s, background .2s;
}
.nav-toggle span::before, .nav-toggle span::after{
  content:""; position:absolute; left:0; width:18px; height:2px; background:var(--text); border-radius:2px; transition:transform .2s, top .2s;
}
.nav-toggle span::before{top:-6px;}
.nav-toggle span::after{top:6px;}
.nav-toggle[aria-expanded="true"] span{background:transparent;}
.nav-toggle[aria-expanded="true"] span::before{top:0; transform:rotate(45deg);}
.nav-toggle[aria-expanded="true"] span::after{top:0; transform:rotate(-45deg);}

/* ---------- Hero ---------- */
.hero{padding:80px 0 56px; position:relative; overflow:hidden;}
.hero::before{
  content:""; position:absolute; inset:-20% -10% auto -10%; height:480px;
  background:radial-gradient(60% 60% at 30% 20%, rgba(236,37,38,.09), transparent 70%);
  pointer-events:none;
}
.hero-grid{display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; position:relative;}
.hero h1{font-size:clamp(32px,4.4vw,50px); max-width:15ch;}
.hero .lede{font-size:17.5px; max-width:48ch; color:var(--text-muted);}
.hero-actions{display:flex; gap:14px; margin-top:26px; flex-wrap:wrap;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:13px 24px; border-radius:100px; font-weight:600; font-size:15px;
  transition:transform .15s, box-shadow .15s, background .15s, border-color .15s;
  border:none;
}
.btn-primary{background:var(--accent); color:#fff;}
.btn-primary:hover{transform:translateY(-1px); box-shadow:0 10px 24px rgba(236,37,38,.28);}
.btn-ghost{border:1px solid var(--line); color:var(--text); background:var(--bg-elev);}
.btn-ghost:hover{border-color:var(--accent); color:var(--accent-2);}

/* Address bar signature element */
.addr-card{
  background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px; box-shadow:var(--shadow-md);
}
.addr-card .dots{display:flex; gap:6px; margin-bottom:16px;}
.addr-card .dots span{width:9px; height:9px; border-radius:50%; background:var(--bg-elev-2);}
.addr-bar{
  display:flex; align-items:center; gap:10px;
  background:var(--bg); border:1px solid var(--line); border-radius:10px;
  padding:14px 16px; font-family:'IBM Plex Mono',monospace; font-size:15px;
}
.addr-bar .caret{display:inline-block; width:8px; height:1.1em; background:var(--accent); margin-left:2px; animation:blink 1s steps(1) infinite;}
@keyframes blink{50%{opacity:0;}}
.addr-meta{display:flex; justify-content:space-between; margin-top:16px; font-size:12.5px; color:var(--text-muted);}
.addr-provider-row{display:flex; gap:10px; margin-top:18px; flex-wrap:wrap;}
.chip{
  display:inline-flex; align-items:center; gap:6px;
  font-size:12.5px; font-weight:600; padding:7px 12px; border-radius:100px;
  border:1px solid var(--line); background:var(--bg);
}
.chip i{width:8px; height:8px; border-radius:50%; display:inline-block;}

/* Wordmark badges (brand-color text marks, not logo artwork) */
.wordmark{display:inline-flex; align-items:center; gap:8px; font-family:'Space Grotesk',sans-serif; font-weight:700;}
.wordmark .dotgrid{display:inline-grid; grid-template-columns:repeat(2,7px); grid-template-rows:repeat(2,7px); gap:2px;}
.wordmark .dotgrid i{border-radius:2px; display:block;}

/* ---------- Trust bar / stat grid ---------- */
.trustbar{border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:22px 0; background:var(--bg-elev);}
.trustbar .wrap{display:flex; align-items:center; justify-content:center; gap:36px; flex-wrap:wrap;}
.trustbar .item{display:flex; align-items:center; gap:10px; font-size:14px; color:var(--text-muted); font-weight:500;}
.trustbar .item b{color:var(--text);}

.stat-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;}
.stat{background:var(--bg-elev); padding:26px 22px;}
.stat .num{font-family:'IBM Plex Mono',monospace; font-size:28px; font-weight:600; color:var(--accent-2);}
.stat .label{font-size:13px; color:var(--text-muted); margin-top:6px;}

/* ---------- Section shell ---------- */
.section{padding:80px 0;}
.section-head{max-width:640px; margin:0 0 44px;}
.section-head.center{margin-left:auto; margin-right:auto; text-align:center;}
.section-head h2{font-size:clamp(25px,3vw,36px);}

/* ---------- Product cards (landing) ---------- */
.product-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.pcard{
  background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px; display:flex; flex-direction:column; transition:border-color .15s, transform .15s, box-shadow .15s;
  box-shadow:var(--shadow-sm);
}
.pcard:hover{border-color:var(--accent); transform:translateY(-3px); box-shadow:var(--shadow-md);}
.pcard .mark{width:42px; height:42px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk',sans-serif; font-weight:700; margin-bottom:18px; font-size:16px; color:#fff;}
.pcard h3{font-size:20px; margin-bottom:4px;}
.pcard .from{font-size:13px; color:var(--text-muted); margin-bottom:18px;}
.pcard .price{font-family:'IBM Plex Mono',monospace; font-size:28px; color:var(--text); font-weight:600;}
.pcard .price sup{font-size:14px; color:var(--text-muted); font-weight:500;}
.pcard ul{list-style:none; padding:0; margin:18px 0 24px; flex:1;}
.pcard li{display:flex; gap:9px; align-items:flex-start; font-size:14px; color:var(--text-muted); margin-bottom:9px;}
.pcard li::before{content:"✓"; color:var(--accent); font-weight:700; flex-shrink:0;}
.pcard .btn{justify-content:center; width:100%;}
.pcard .best-for{font-size:12.5px; background:var(--accent-soft); color:var(--accent-2); padding:8px 12px; border-radius:8px; margin-bottom:18px;}

/* ---------- Comparison table ---------- */
.table-wrap{overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); background:var(--bg-elev);}
table{width:100%; border-collapse:collapse; min-width:680px;}
th,td{padding:16px 18px; text-align:left; border-bottom:1px solid var(--line); font-size:14.5px;}
thead th{background:var(--bg-elev-2); font-family:'Space Grotesk',sans-serif; font-weight:600; color:var(--text); font-size:15px;}
tbody td{color:var(--text-muted);}
tbody tr:last-child td{border-bottom:none;}
tbody td:first-child{color:var(--text); font-weight:500;}
td.price-cell, th.price-cell{font-family:'IBM Plex Mono',monospace; color:var(--text);}
tr.highlight td{background:var(--accent-soft);}

/* ---------- Pricing (product pages) ---------- */
.pricing-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.plan{
  background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--radius);
  padding:32px 26px; position:relative; display:flex; flex-direction:column; box-shadow:var(--shadow-sm);
}
.plan.featured{border-color:var(--accent); box-shadow:var(--shadow-md);}
.plan .badge{
  position:absolute; top:-13px; right:24px; background:var(--accent); color:#fff;
  font-size:11.5px; font-weight:700; letter-spacing:.03em; padding:5px 12px; border-radius:100px;
}
.plan h3{font-size:18px; margin-bottom:6px;}
.plan .tagline{font-size:13.5px; color:var(--text-muted); margin-bottom:20px;}
.plan .price{font-family:'IBM Plex Mono',monospace; font-size:36px; font-weight:600;}
.plan .price sup{font-size:14px; color:var(--text-muted); font-weight:500;}
.plan .price-note{font-size:12.5px; color:var(--text-muted); margin:6px 0 22px;}
.price-old{font-family:'IBM Plex Mono',monospace; font-size:18px; font-weight:500; color:var(--text-muted); text-decoration:line-through; text-decoration-color:var(--danger,#e2483d); margin-right:8px;}
.pcard .price-old{font-size:15px;}
td.price-cell .price-old{font-size:13px; margin-right:6px;}
.plan ul{list-style:none; padding:0; margin:0 0 26px; flex:1;}
.plan li{display:flex; gap:9px; align-items:flex-start; font-size:14px; margin-bottom:11px;}
.plan li::before{content:"✓"; color:var(--accent); font-weight:700; flex-shrink:0;}
.gst-note{font-size:13px; color:var(--text-muted); text-align:center; margin-top:22px;}

/* ---------- Feature blocks ---------- */
.feature-row{display:grid; grid-template-columns:1fr 1fr; gap:56px; align-items:center; padding:52px 0; border-bottom:1px solid var(--line);}
.feature-row:last-child{border-bottom:none;}
.feature-row.rev .fr-copy{order:2;}
.fr-copy .num{font-family:'IBM Plex Mono',monospace; color:var(--accent-2); font-size:13px; margin-bottom:12px; display:block;}
.fr-visual{
  background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--radius);
  padding:28px; min-height:200px; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; box-shadow:var(--shadow-sm);
}
.fr-visual svg{display:block; max-width:100%; height:auto;}

/* ---------- Steps ---------- */
.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:20px;}
.step{padding:24px; border:1px solid var(--line); border-radius:var(--radius); background:var(--bg-elev); box-shadow:var(--shadow-sm);}
.step .n{font-family:'IBM Plex Mono',monospace; color:var(--accent-2); font-size:13px; margin-bottom:14px; display:block;}
.step h4{font-size:16px; margin-bottom:6px;}
.step p{font-size:13.5px; margin:0;}

/* ---------- Use case / who it's for ---------- */
.usecase-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.usecase{border:1px solid var(--line); border-radius:var(--radius); padding:24px; background:var(--bg-elev);}
.usecase h4{font-size:15.5px; margin-bottom:8px; display:flex; align-items:center; gap:8px;}
.usecase p{font-size:13.5px; margin:0;}

/* ---------- Testimonials ---------- */
.testi-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.testi{background:var(--bg-elev); border:1px solid var(--line); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm);}
.testi p{font-size:14.5px; color:var(--text); margin-bottom:16px; font-style:italic;}
.testi .who{font-size:13px; color:var(--text-muted); font-weight:600;}

/* ---------- FAQ ---------- */
.faq{max-width:760px; margin:0 auto;}
.faq-item{border-bottom:1px solid var(--line); padding:22px 0;}
.faq-item summary{cursor:pointer; font-family:'Space Grotesk',sans-serif; font-weight:600; font-size:16px; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:16px;}
.faq-item summary::-webkit-details-marker{display:none;}
.faq-item summary::after{content:"+"; font-size:22px; color:var(--accent); flex-shrink:0; transition:transform .2s;}
.faq-item[open] summary::after{transform:rotate(45deg);}
.faq-item p{margin-top:12px; font-size:14.5px;}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--bg-elev);
  border:1px solid var(--line); border-radius:20px; padding:52px; text-align:center; position:relative; overflow:hidden;
  box-shadow:var(--shadow-md);
}
.cta-band::before{content:""; position:absolute; inset:0; background:radial-gradient(50% 80% at 50% 0%, rgba(236,37,38,.08), transparent 70%);}
.cta-band h2{font-size:clamp(23px,2.8vw,30px); position:relative;}
.cta-band p{position:relative; max-width:52ch; margin-left:auto; margin-right:auto;}
.cta-actions{display:flex; gap:14px; justify-content:center; margin-top:24px; flex-wrap:wrap; position:relative;}

/* ---------- Footer ---------- */
footer{border-top:1px solid var(--line); padding:52px 0 32px; margin-top:40px; background:var(--bg-elev);}
.footer-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:40px;}
footer h5{font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--text-muted); margin-bottom:16px; font-family:'Inter',sans-serif; font-weight:600;}
footer ul{list-style:none; padding:0; margin:0;}
footer li{margin-bottom:10px; font-size:14px;}
footer a{color:var(--text-muted); transition:color .15s;}
footer a:hover{color:var(--accent-2);}
.footer-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:24px; border-top:1px solid var(--line); font-size:13px; color:var(--text-muted); flex-wrap:wrap; gap:12px;}
footer button.linklike{background:none; border:none; padding:0; font:inherit; color:var(--text-muted); cursor:pointer; text-align:left;}
footer button.linklike:hover{color:var(--accent-2);}

/* ---------- Whatsapp float ---------- */
.wa-float{
  position:fixed; bottom:22px; right:22px; z-index:60;
  background:#25D366; color:#fff; width:56px; height:56px; border-radius:50%;
  display:flex; align-items:center; justify-content:center; box-shadow:0 10px 30px rgba(0,0,0,.25);
}

/* ============================================================
   Enquiry modal (popup form) — triggered by JS, no page navigation
   ============================================================ */
.modal-overlay{
  position:fixed; inset:0; background:rgba(20,18,14,.5); backdrop-filter:blur(2px);
  display:none; align-items:center; justify-content:center; z-index:100; padding:20px;
}
.modal-overlay.open{display:flex;}
.modal{
  background:var(--bg-elev); border-radius:18px; max-width:480px; width:100%;
  padding:32px; position:relative; max-height:92vh; overflow-y:auto;
  box-shadow:0 30px 80px -20px rgba(0,0,0,.35);
}
.modal-close{
  position:absolute; top:16px; right:16px; width:34px; height:34px; border-radius:50%;
  background:var(--bg-elev-2); border:none; display:flex; align-items:center; justify-content:center;
  font-size:18px; color:var(--text-muted);
}
.modal-close:hover{color:var(--text);}
.modal h3{font-size:21px; margin-bottom:4px;}
.modal .sub{font-size:14px; color:var(--text-muted); margin-bottom:22px;}
.field{margin-bottom:16px;}
.field label{display:block; font-size:13px; font-weight:600; margin-bottom:6px;}
.field input, .field select, .field textarea{
  width:100%; padding:11px 13px; border:1px solid var(--line); border-radius:9px;
  font-family:'Inter',sans-serif; font-size:14.5px; background:var(--bg); color:var(--text);
}
.field input:focus, .field select:focus, .field textarea:focus{border-color:var(--accent); outline:none;}
.field-row{display:grid; grid-template-columns:1fr 1fr; gap:12px;}
.modal .btn{width:100%; justify-content:center; margin-top:6px;}
.modal-note{font-size:12px; color:var(--text-muted); text-align:center; margin-top:14px;}
.modal-success{display:none; text-align:center; padding:20px 0;}
.modal-success.show{display:block;}
.modal-success .tick{width:56px; height:56px; border-radius:50%; background:var(--accent-soft); color:var(--accent); display:flex; align-items:center; justify-content:center; font-size:26px; margin:0 auto 18px;}
.modal-form.hide{display:none;}

/* ---------- Responsive ---------- */
@media (max-width:920px){
  .hero-grid{grid-template-columns:1fr;}
  .product-grid, .pricing-grid, .usecase-grid, .testi-grid{grid-template-columns:1fr;}
  .steps{grid-template-columns:1fr 1fr;}
  .stat-grid{grid-template-columns:1fr 1fr;}
  .feature-row, .feature-row.rev{grid-template-columns:1fr;}
  .feature-row.rev .fr-copy{order:0;}
  .footer-grid{grid-template-columns:1fr 1fr;}

  /* Mobile nav: collapse links into a dropdown behind the hamburger */
  .nav-toggle{display:flex;}
  .nav-links{
    display:flex; flex-direction:column; gap:2px;
    position:absolute; top:100%; left:0; right:0;
    background:var(--bg-elev); border-bottom:1px solid var(--line);
    box-shadow:var(--shadow-md);
    max-height:0; overflow:hidden; opacity:0;
    transition:max-height .25s ease, opacity .2s ease;
  }
  .nav-links.open{max-height:400px; opacity:1;}
  .nav-links a{padding:14px 24px; border-bottom:1px solid var(--line); color:var(--text);}
  .nav-links a:last-child{border-bottom:none;}
  .nav-inner{position:relative;}
  .nav-cta{padding:10px 14px; font-size:13px;}
}
@media (max-width:600px){
  .steps{grid-template-columns:1fr;}
  .stat-grid{grid-template-columns:1fr;}
  .footer-grid{grid-template-columns:1fr;}
  .footer-bottom{flex-direction:column; align-items:flex-start;}
  .field-row{grid-template-columns:1fr;}
}
