:root{
  --bg:#0b1020;
  --card:#111833;
  --text:#e7eaf6;
  --muted:#a6b0d8;
  --brand:#7aa2ff;
  --brand-2:#a67aff;
  --accent: linear-gradient(135deg, var(--brand), var(--brand-2));
}
*{box-sizing:border-box}
html,body{margin:0;height:100%;scroll-behavior:smooth;background:
  radial-gradient(1200px 600px at 20% -10%, #1c2347 0%, transparent 60%),
  radial-gradient(1000px 500px at 120% 0%, #1a1f3f 0%, transparent 60%),
  var(--bg);color:var(--text);font:16px/1.6 system-ui,-apple-system,Segoe UI,Roboto,Inter,Arial}
.container{max-width:1120px;margin:0 auto;padding:0 20px}
a{color:inherit;text-decoration:none}
h1,h2,h3{line-height:1.2;margin:0 0 .5rem}
.section{padding:80px 0}
.section.alt{background:rgba(255,255,255,0.02)}

.site-header{position:sticky;top:0;backdrop-filter:saturate(140%) blur(8px);
  background:rgba(11,16,32,0.6);z-index:50;border-bottom:1px solid rgba(255,255,255,0.06)}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.brand{display:flex;align-items:center;gap:10px;font-weight:700}
.links{display:flex;gap:22px}
.actions{display:flex;gap:10px;align-items:center}
.btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:12px;
  border:1px solid rgba(255,255,255,0.1);transition:.2s all ease;cursor:pointer}
.btn.primary{background:var(--accent);color:#0c0e1a;border:none;box-shadow:0 6px 20px rgba(122,162,255,0.25)}
.btn.ghost{background:transparent}
.btn:hover{transform:translateY(-1px);opacity:.95}
.mobile-toggle{display:none;background:transparent;border:0;color:var(--text);font-size:22px}
.mobile-menu{display:none;flex-direction:column;padding:10px 20px;border-top:1px solid rgba(255,255,255,0.06)}
.mobile-menu a{padding:10px 0}

.hero{padding:80px 0 40px;border-bottom:1px solid rgba(255,255,255,0.06)}
.hero-inner{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:center}
.hero h1{font-size:48px;letter-spacing:-0.02em}
.sub{color:var(--muted);max-width:46ch;margin:10px 0 22px}
.cta-row{display:flex;gap:12px;flex-wrap:wrap}
.trust{display:flex;gap:10px;margin-top:10px;flex-wrap:wrap}
.pill{border:1px solid rgba(255,255,255,0.1);border-radius:999px;padding:6px 12px;color:var(--muted);font-size:14px}

.mockup{background:linear-gradient(180deg,#0f1430,#0b1020);border:1px solid rgba(255,255,255,0.08);
  border-radius:16px;box-shadow:0 20px 80px rgba(0,0,0,.35);overflow:hidden}
.mockup .bar{display:flex;gap:6px;padding:10px;background:#0b1020;border-bottom:1px solid rgba(255,255,255,0.06)}
.mockup .bar span{width:10px;height:10px;border-radius:50%;background:#2f365f}
.mockup .screen{padding:20px;font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, "Liberation Mono", monospace;color:#cbd3ff;min-height:260px}

.grid.features{margin-top:28px;display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{background:var(--card);border:1px solid rgba(255,255,255,0.07);border-radius:16px;padding:18px}
.card p{color:var(--muted)}

.steps{display:grid;gap:10px;counter-reset:step}
.steps li{list-style:none;background:var(--card);padding:14px 16px;border-radius:12px;border:1px solid rgba(255,255,255,0.07)}
.steps li strong{color:#fff}

.pricing{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:18px}
.tier{background:var(--card);border:1px solid rgba(255,255,255,0.07);border-radius:16px;padding:20px;display:flex;flex-direction:column;gap:10px}
.tier--pro{outline:2px solid transparent;background:linear-gradient(180deg,rgba(122,162,255,0.09),rgba(166,122,255,0.09))}
.price{font-size:34px;font-weight:800}
.price span{font-size:16px;color:var(--muted)}

.cta{padding:80px 0;background:radial-gradient(800px 300px at 50% 0%, rgba(122,162,255,.15), transparent 70%);
  border-top:1px solid rgba(255,255,255,0.06)}
.cta-inner{display:grid;gap:12px;justify-items:center;text-align:center}
.cta-form{display:flex;gap:10px;flex-wrap:wrap}
.cta-form input{padding:12px 14px;border-radius:12px;border:1px solid rgba(255,255,255,0.1);min-width:260px;background:#0e132b;color:#fff}
.cta-form button{min-width:150px}

.site-footer{padding:28px 0;border-top:1px solid rgba(255,255,255,0.06)}
.foot{display:flex;justify-content:space-between;align-items:center;gap:20px}
.foot nav{display:flex;gap:16px}

@media (max-width: 980px){
  .links{display:none}
  .mobile-toggle{display:inline-flex}
  .hero-inner{grid-template-columns:1fr}
  .grid.features{grid-template-columns:1fr 1fr}
  .pricing{grid-template-columns:1fr}
}
@media (max-width: 560px){
  .grid.features{grid-template-columns:1fr}
  .hero h1{font-size:38px}
}
/* -------------------------------
   MOBILE RESPONSIVE FIX PACK
   — keeps your existing theme/brand
   — stacks sections cleanly
   — fixes padding/overflow
-------------------------------- */

/* 1) Base container & typography tweaks */
:root {
  --container-pad: clamp(16px, 4vw, 28px);
}
.container {
  padding-inline: var(--container-pad);
}

/* Prevent horizontal scroll from long words or code */
html, body {
  overflow-x: hidden;
  word-wrap: break-word;
}
pre, code {
  white-space: pre-wrap;
  word-break: break-word;
}

/* Images/videos never overflow */
img, video, svg, canvas {
  max-width: 100%;
  height: auto;
}

/* Buttons are large enough to tap */
.btn {
  min-height: 44px;
}

/* 2) Hero layout: stack content on small screens */
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: left; /* keep current tone */
  }
  .hero-media {
    order: 2;
  }
  .hero-copy {
    order: 1;
  }
}

/* CTA row: wrap buttons nicely on small screens */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 600px) {
  .cta-row .btn {
    flex: 1 1 100%;
  }
}

/* 3) Features grid → 1–2 columns on mobile/tablet */
.grid.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px) {
  .grid.features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .grid.features {
    grid-template-columns: 1fr;
  }
}

/* 4) Pricing tiers stack on mobile */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
@media (max-width: 980px) {
  .pricing { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pricing { grid-template-columns: 1fr; }
}

/* Card padding a bit tighter on small devices */
.card, .tier, .mockup, .box {
  padding: clamp(14px, 3.2vw, 20px);
}

/* 5) Header / nav */
.site-header .nav {
  gap: 12px;
}
.links {
  display: flex;
  gap: 14px;
}
@media (max-width: 900px) {
  .links { display: none; } /* your mobile menu handles this */
  .mobile-toggle { display: inline-flex; }
}
@media (min-width: 901px) {
  .mobile-toggle { display: none; }
}

/* Mobile menu full-width tap targets */
.mobile-menu a {
  padding: 14px 16px;
}

/* 6) Sections spacing tightened on small viewports */
.section, .cta {
  padding-block: clamp(44px, 10vw, 84px);
}

/* 7) FAQ <details> readable hit area on mobile */
details > summary {
  padding: 12px 0;
  cursor: pointer;
}

/* 8) Footer stacks gracefully */
.site-footer .foot {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}
@media (max-width: 640px) {
  .site-footer .foot {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .site-footer nav {
    display: flex; gap: 14px; flex-wrap: wrap;
  }
}

/* 9) “Back to Home Page” chip safe on notched phones */
.back-home {
  top: max(10px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
}

/* 10) Dashboard / app scaffolding responsive (if present) */
.app-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100dvh;
}
@media (max-width: 960px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { order: 2; }
  .app-main { order: 1; }
}
.reports-grid, .templates-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
@media (max-width: 1024px) {
  .reports-grid, .templates-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .reports-grid, .templates-grid { grid-template-columns: 1fr; }
}

/* Tables (if any) — scroll container on mobile */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-wrap table {
  min-width: 640px; /* keeps columns legible; wrapper scrolls */
}

/* Inputs full width on narrow screens (paywall/login/cta forms) */
form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  form .row { grid-template-columns: 1fr; }
}
input[type="email"], input[type="text"], input[type="password"], select, textarea {
  width: 100%;
}
/* --- Landing-only mobile fixes ----------------------------------------- */

/* 1) Header: hide action buttons on mobile and use the hamburger + mobile menu */
@media (max-width: 900px) {
  .site-header .nav { flex-wrap: wrap; }

  /* keep the layout stable and avoid horizontal scroll */
  .actions {
    margin-left: auto;
    gap: 8px;
    flex-wrap: nowrap;
  }

  /* show only the hamburger on mobile; the mobile menu has all links */
  .actions .btn { display: none; }
  .actions .mobile-toggle { display: inline-flex; }
}

/* 2) Hero: make sure the mockup never forces overflow */
.hero .mockup .screen {
  overflow: auto;          /* scroll inside if needed */
  max-width: 100%;
}

/* 3) Ensure container can shrink and never cause off-screen content */
.container {
  width: 100%;
  max-width: 1120px;       /* keep your original cap */
  /* padding-inline is already set above; no change */
}

/* 4) CTA buttons: keep them neat on small phones */
@media (max-width: 600px) {
  .cta-row .btn {
    flex: 1 1 100%;
    min-width: 0;          /* let them shrink evenly */
  }
  .cta-form {
    width: 100%;
    justify-content: center;
  }
  .cta-form input {
    width: 100%;
  }
}

/* 5) Kill any surprise horizontal scroll from rogue elements */
html, body {
  overflow-x: hidden;
}


