/* Bestbuyd — single-file clean SaaS-like landing (Cheky-inspired)
   Edit colors, spacing, and button links as needed.
*/

:root{
  --bg: #ffffff;
  --bg2: #f6f7fb;
  --text: #0b0f19;
  --muted: #667085;
  --border: rgba(16,24,40,.12);
  --shadow: 0 18px 50px rgba(2,6,23,.08);
  --shadow2: 0 10px 25px rgba(2,6,23,.08);
  --primary: #0b0f19;
  --radius: 16px;
  --radius2: 14px;
  --container: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.55;
}

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

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

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

.skip-link{
  position:absolute;
  top:-50px; left:16px;
  padding:10px 12px;
  background:#000; color:#fff;
  border-radius:10px;
  z-index:1000;
}
.skip-link:focus{top:16px}

.site-header{
  position:sticky;
  top:0;
  z-index:100;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}

.brand-link{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
}
.brand-mark{width:28px;height:28px}
.brand-name{font-weight:700;letter-spacing:-.02em}

.nav{display:flex;align-items:center;gap:12px}
.nav-menu{
  display:flex;
  align-items:center;
  gap:22px;
}
.nav-link{
  text-decoration:none;
  color:var(--muted);
  font-weight:500;
  padding:8px 10px;
  border-radius:10px;
}
.nav-link:hover{color:var(--text); background: rgba(2,6,23,.05)}
.nav-pill{
  border:1px solid var(--border);
  color:var(--text);
}

.nav-toggle{
  display:none;
  border:1px solid var(--border);
  background:#fff;
  border-radius:12px;
  height:44px; width:48px;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.nav-toggle-lines{
  width:18px;height:2px;background:var(--text);
  position:relative; display:block;
}
.nav-toggle-lines::before,
.nav-toggle-lines::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;height:2px;
  background:var(--text);
}
.nav-toggle-lines::before{top:-6px}
.nav-toggle-lines::after{top:6px}

.hero{
  padding: 72px 0 34px;
  background:
    radial-gradient(900px 280px at 20% 15%, rgba(2,6,23,.06), transparent 60%),
    radial-gradient(900px 280px at 80% 20%, rgba(2,6,23,.05), transparent 60%),
    linear-gradient(#fff, #fff);
}

.hero-grid{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 28px;
  align-items:center;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:999px;
  color:var(--muted);
  font-weight:500;
  background:#fff;
}

h1{
  font-size: clamp(32px, 4vw, 48px);
  line-height:1.05;
  margin: 16px 0 12px;
  letter-spacing:-.03em;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16.5px;
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin: 18px 0 18px;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration:none;
  border:1px solid transparent;
  font-weight:600;
  cursor:pointer;
  transition: transform .08s ease, box-shadow .12s ease, background .12s ease;
  user-select:none;
}
.btn:active{transform: translateY(1px)}
.btn-block{width:100%}

.btn-primary{
  background: var(--primary);
  color:#fff;
  box-shadow: 0 10px 20px rgba(2,6,23,.15);
}
.btn-primary:hover{box-shadow: 0 14px 26px rgba(2,6,23,.18)}
.btn-ghost{
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover{background: rgba(2,6,23,.03)}

.hero-trust{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  margin-top:10px;
}
.trust-item{
  display:flex;
  align-items:center;
  gap:8px;
  color: var(--muted);
  font-weight:500;
}
.trust-item img{width:18px;height:18px;opacity:.9}

.hero-card{
  border:1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
  overflow:hidden;
}
.preview-top{
  padding: 12px 14px;
  display:flex;
  gap:8px;
  border-bottom:1px solid var(--border);
  background: rgba(2,6,23,.02);
}
.preview-dot{
  width:10px;height:10px;border-radius:50%;
  background: rgba(2,6,23,.16);
}
.preview-body{
  padding: 16px;
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.preview-sheet{
  border:1px solid var(--border);
  border-radius: 14px;
  padding:14px;
  background: #fff;
}
.sheet-title{
  font-weight:700;
  letter-spacing:-.02em;
  margin-bottom:10px;
}
.sheet-line{
  height:10px;
  border-radius:8px;
  background: rgba(2,6,23,.06);
  margin-bottom:10px;
}
.sheet-line.short{width:60%}
.sheet-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:8px;
}
.sheet-box{
  height:34px;
  border:1px solid var(--border);
  border-radius:12px;
  background: rgba(2,6,23,.02);
}
.preview-footer{
  padding: 14px 16px 16px;
  display:flex;
  justify-content:space-between;
  border-top:1px solid var(--border);
  color: var(--muted);
  font-weight:500;
}

.section{
  padding: 64px 0;
}
.section.alt{background: var(--bg2)}
.section-head{
  margin-bottom: 26px;
}
.section-head h2{
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing:-.02em;
}
.muted{color:var(--muted)}
.small{font-size:13px}

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

.plan{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow2);
  position:relative;
  min-height: 420px;
  display:flex;
  flex-direction:column;
}
.plan h3{margin:0 0 8px; font-size:20px}
.plan-sub{margin:0 0 10px; color:var(--muted)}
.plan-price{display:flex; align-items:baseline; gap:8px; margin: 6px 0 12px}
.plan-money{font-size:44px; font-weight:800; letter-spacing:-.04em}
.plan-unit{color:var(--muted); font-weight:600}
.plan-note{
  border:1px solid var(--border);
  background: rgba(2,6,23,.02);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}
.plan-list{margin: 0 0 16px; padding-left: 18px; color: var(--text)}
.plan-list li{margin: 8px 0}
.plan .btn{margin-top:auto}

.plan-popular{
  outline: 2px solid rgba(2,6,23,.45);
  transform: translateY(-4px);
}
.pill{
  position:absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color:#fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight:700;
}

.note-box{
  display:flex;
  gap:12px;
  align-items:flex-start;
  margin-top: 18px;
  padding: 14px 16px;
  border:1px solid var(--border);
  border-radius: 16px;
  background: #fff;
}
.note-icon{
  width:28px; height:28px;
  border-radius: 10px;
  background: rgba(2,6,23,.06);
  display:flex; align-items:center; justify-content:center;
  font-weight:800;
}

.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 20px;
}
.step{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow2);
}
.step-num{
  width:34px;height:34px;border-radius:12px;
  background: rgba(2,6,23,.06);
  display:flex;align-items:center;justify-content:center;
  font-weight:800;
  margin-bottom:10px;
}
.step h3{margin:0 0 6px}
.step p{margin:0;color:var(--muted)}

.features{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 16px;
}
.feature{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display:flex;
  gap: 12px;
  box-shadow: var(--shadow2);
}
.feature img{width:36px;height:36px;opacity:.92}
.feature h3{margin:0 0 4px;font-size:16px}
.feature p{margin:0}

.faq{display:grid; gap: 10px}
.faq-item{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow2);
}
.faq-item summary{
  cursor:pointer;
  font-weight:700;
  list-style:none;
}
.faq-item summary::-webkit-details-marker{display:none}
.faq-content{padding-top:8px;color:var(--muted)}

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.contact-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow2);
}
.field{display:block;margin: 10px 0}
.field span{display:block;font-weight:600;margin-bottom:6px}
input, textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid var(--border);
  font: inherit;
}
input:focus, textarea:focus{
  outline: 2px solid rgba(2,6,23,.25);
  border-color: transparent;
}

.section.legal{
  padding: 44px 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.legal-inner{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 18px;
  flex-wrap:wrap;
}
.legal-title{margin:0;font-size:18px}
.legal-links{display:flex;gap:10px;align-items:center;color:var(--muted)}
.legal-links a{text-decoration:none}
.legal-links a:hover{color:var(--text)}

.site-footer{
  padding: 22px 0;
  background: #0b0f19;
  color: rgba(255,255,255,.9);
}
.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
  flex-wrap:wrap;
}
.footer-brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
}
.footer-brand img{width:22px;height:22px;filter: invert(1)}
.site-footer .muted{color: rgba(255,255,255,.7)}
.site-footer a{color: rgba(255,255,255,.85); text-decoration:none}
.site-footer a:hover{color:#fff}

@media (max-width: 980px){
  .pricing-grid{grid-template-columns: repeat(2, 1fr)}
  .features{grid-template-columns: 1fr}
  .steps{grid-template-columns: 1fr}
  .hero-grid{grid-template-columns: 1fr}
  .plan-popular{transform:none}
}

@media (max-width: 560px){
  .nav-toggle{display:flex}
  .nav-menu{
    position:absolute;
    right: 20px;
    top: 72px;
    background:#fff;
    border:1px solid var(--border);
    border-radius: 16px;
    padding: 10px;
    display:none;
    flex-direction:column;
    gap: 6px;
    width: 220px;
    box-shadow: var(--shadow2);
  }
  .nav-menu.is-open{display:flex}
  .nav-link{width:100%}
  .hero{padding-top: 52px}
}
