/* Shared styles for the KwikSite marketing site (index, faq, terms, privacy). */
:root {
  --bg:#0a0d12; --panel:#161b22; --panel2:#1c2230; --border:#2a3140;
  --text:#e6edf3; --muted:#9aa6b4; --accent:#2f81f7; --accent2:#62a6ff; --green:#2ea043;
  --radius:14px; --maxw:1080px;
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0; background:var(--bg); color:var(--text);
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  line-height:1.55; -webkit-font-smoothing:antialiased;
}
a { color:var(--accent2); text-decoration:none; }
a:hover { text-decoration:underline; }
.wrap { max-width:var(--maxw); margin:0 auto; padding:10px 22px; }
/* Narrower reading column for content pages (terms, privacy, faq). */
.narrow { max-width:840px; }

/* Buttons */
.btn { display:inline-flex; align-items:center; gap:8px; border-radius:10px; padding:12px 20px; font-weight:700; font-size:1rem; cursor:pointer; border:1px solid transparent; transition:transform .12s, box-shadow .2s, background .2s; }
.btn:hover { text-decoration:none; }
.btn.primary { background:linear-gradient(180deg,var(--accent2),var(--accent)); color:#fff; box-shadow:0 6px 22px -8px var(--accent); }
.btn.primary:hover { transform:translateY(-1px); box-shadow:0 10px 28px -8px var(--accent); }
.btn.ghost { background:transparent; border-color:var(--border); color:var(--text); }
.btn.ghost:hover { border-color:var(--accent); }

/* Brand */
.brand { font-weight:800; font-size:1.55rem; letter-spacing:-0.02em; }
.brand:hover { text-decoration:none; }
.brand .b1 { color:var(--accent2); }
.brand .b2 { color:#fff; }

/* Nav (identical header on every page) */
nav { position:sticky; top:0; z-index:10; backdrop-filter:blur(10px); background:rgba(10,13,18,.72); border-bottom:1px solid var(--border); }
nav .wrap { display:flex; align-items:center; justify-content:space-between; height:64px; }
nav .links { display:flex; align-items:center; gap:20px; }
nav .links a.nav { color:var(--muted); font-weight:600; font-size:.95rem; }
nav .links a.nav:hover { color:var(--text); text-decoration:none; }
nav .links a.nav[aria-current="page"] { color:var(--text); }

/* Hamburger menu (mobile only) */
.menu-toggle { display:none; flex-direction:column; justify-content:center; align-items:center; gap:5px; width:36px; height:36px; background:transparent; border:1px solid var(--border); border-radius:8px; cursor:pointer; padding:0; flex:0 0 auto; }
.menu-toggle span { display:block; width:18px; height:2px; background:var(--text); border-radius:2px; transition:transform .2s, opacity .2s; }
.menu-toggle.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity:0; }
.menu-toggle.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }
.mobile-menu { display:none; flex-direction:column; gap:2px; padding:6px 22px 18px; border-top:1px solid var(--border); }
.mobile-menu.open { display:flex; }
.mobile-menu a.nav { color:var(--muted); font-weight:600; font-size:.95rem; padding:12px 4px; border-bottom:1px solid var(--border); }
.mobile-menu a.nav:hover { color:var(--text); text-decoration:none; }
.mobile-menu a.nav[aria-current="page"] { color:var(--text); }
.mobile-menu .btn { margin-top:12px; justify-content:center; }

/* Headings - base sizes for content pages; hero/section override below */
h1 { font-size:2.1rem; line-height:1.15; letter-spacing:-0.02em; margin:0 0 8px; font-weight:800; }
h2 { font-size:1.3rem; margin:34px 0 10px; letter-spacing:-0.01em; scroll-margin-top:80px; }
p, li { color:#cdd6e0; }

/* Content pages (terms, privacy, faq) */
main { padding:48px 0 64px; }
.lead { color:var(--muted); font-size:1.05rem; margin:0 0 26px; }
.updated { color:var(--muted); font-size:.9rem; margin:0 0 32px; }
.callout { background:var(--panel); border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:10px; padding:16px 18px; margin:22px 0; }
.callout h2 { margin-top:0; font-size:1.2rem; }

/* FAQ - table of contents + accordions */
.toc { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 34px; }
.toc a { font-size:.86rem; color:var(--muted); border:1px solid var(--border); border-radius:999px; padding:6px 13px; }
.toc a:hover { color:var(--text); border-color:var(--accent); text-decoration:none; }
details { border:1px solid var(--border); border-radius:10px; margin:10px 0; background:var(--panel); overflow:hidden; }
summary { cursor:pointer; padding:14px 16px; font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:14px; }
summary::-webkit-details-marker { display:none; }
summary::after { content:"+"; color:var(--accent2); font-size:1.35rem; line-height:1; flex:0 0 auto; }
details[open] summary::after { content:"\2013"; }
details[open] summary { border-bottom:1px solid var(--border); }
.a { padding:14px 16px; color:#cdd6e0; }
.a p { margin:0 0 10px; } .a p:last-child { margin-bottom:0; }
.a ol, .a ul { margin:0 0 10px; padding-left:22px; } .a li { margin:4px 0; }
.prompt { display:block; background:var(--bg); border:1px solid var(--border); border-left:3px solid var(--accent); border-radius:8px; padding:11px 13px; margin:10px 0; font-size:.92rem; color:#e6edf3; }
.prompt b { color:var(--accent2); font-weight:600; }

/* Hero (landing) */
header.hero { position:relative; overflow:hidden; padding:40px 0 40px; }
header.hero::before { content:""; position:absolute; inset:-200px 0 auto 0; height:520px; background:radial-gradient(900px 360px at 50% 0,rgba(47,129,247,.22),transparent 70%); pointer-events:none; }
.hero-grid { position:relative; display:grid; grid-template-columns:1.05fr .95fr; gap:48px; align-items:center; }
.eyebrow { display:inline-block; font-size:.8rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--accent2); background:rgba(47,129,247,.12); border:1px solid rgba(47,129,247,.3); padding:5px 11px; border-radius:999px; margin-bottom:18px; }
.hero h1 { font-size:clamp(2.3rem,5vw,3.5rem); line-height:1.05; letter-spacing:-0.03em; margin:0 0 18px; }
.hero h1 .grad { background:linear-gradient(120deg,var(--accent2),#a78bfa); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lede { font-size:1.18rem; color:var(--muted); max-width:34ch; margin:0 0 28px; }
.cta-row { display:flex; gap:14px; flex-wrap:wrap; align-items:center; }
.cta-note { color:var(--muted); font-size:.9rem; }

/* Product mock (landing) */
.mock { background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; box-shadow:0 30px 80px -30px rgba(0,0,0,.8); }
.mock .topbar { display:flex; align-items:center; gap:7px; padding:11px 14px; border-bottom:1px solid var(--border); background:var(--panel2); }
.mock .dot { width:11px; height:11px; border-radius:50%; background:#3a4252; }
.mock .url { margin-left:10px; font-size:.78rem; color:var(--muted); }
.mock .body { display:grid; grid-template-columns:1fr 1.1fr; min-height:280px; }
.mock .chat { border-right:1px solid var(--border); padding:14px; display:flex; flex-direction:column; gap:10px; }
.bubble { font-size:.82rem; padding:9px 11px; border-radius:10px; line-height:1.4; }
.bubble.u { background:#1f6feb22; border:1px solid #1f6feb55; align-self:flex-end; }
.bubble.a { background:var(--panel2); border:1px solid var(--border); color:var(--muted); align-self:flex-start; }
.dots i { display:inline-block; width:6px; height:6px; border-radius:50%; background:var(--accent2); margin-right:4px; animation:bnc 1.4s infinite both; }
.dots i:nth-child(2){ animation-delay:.16s; } .dots i:nth-child(3){ animation-delay:.32s; }
@keyframes bnc { 0%,80%,100%{opacity:.3;transform:translateY(0)} 40%{opacity:1;transform:translateY(-4px)} }
.mock .preview { background:#0b0f17; padding:0; }
.mini-site { height:100%; display:flex; flex-direction:column; }
.mini-nav { display:flex; align-items:center; justify-content:space-between; padding:11px 14px; border-bottom:1px solid var(--border); font-size:.72rem; }
.mini-nav .logo { font-weight:800; color:#fff; } .mini-nav .logo span{ color:var(--accent2); }
.mini-nav .m { color:var(--muted); }
.mini-hero { flex:1; padding:20px 16px; background:radial-gradient(400px 200px at 70% 0,rgba(99,102,241,.25),transparent); }
.mini-tag { font-size:.62rem; letter-spacing:.1em; color:var(--accent2); text-transform:uppercase; }
.mini-h { font-size:1.35rem; font-weight:800; letter-spacing:-.02em; margin:8px 0; line-height:1.1; }
.mini-p { font-size:.74rem; color:var(--muted); }

/* Sections (landing) */
section.block { padding:64px 0; }
.section-head { text-align:center; max-width:640px; margin:0 auto 44px; }
.section-head h2 { font-size:clamp(1.7rem,3.4vw,2.4rem); letter-spacing:-0.02em; margin:0 0 12px; }
.section-head p { color:var(--muted); font-size:1.08rem; margin:0; }
.features { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.card { display:grid; grid-template-columns:auto 1fr; column-gap:12px; background:var(--panel); border:1px solid var(--border); border-radius:10px; padding:14px 16px; transition:border-color .2s, transform .12s; }
.card:hover { border-color:#3a4658; transform:translateY(-2px); }
.card .ico { grid-row:1 / span 2; align-self:start; width:34px; height:34px; border-radius:9px; display:flex; align-items:center; justify-content:center; font-size:1.05rem; background:rgba(47,129,247,.12); border:1px solid rgba(47,129,247,.25); }
.card h3 { grid-column:2; grid-row:1; margin:0; font-size:.98rem; }
.card p { grid-column:2; grid-row:2; margin:3px 0 0; color:var(--muted); font-size:.84rem; line-height:1.4; }
.steps { display:grid; grid-template-columns:repeat(3,1fr); gap:22px; counter-reset:step; }
.step { position:relative; padding:26px 22px; background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); }
.step::before { counter-increment:step; content:counter(step); position:absolute; top:-16px; left:22px; width:34px; height:34px; border-radius:50%; background:linear-gradient(180deg,var(--accent2),var(--accent)); color:#fff; font-weight:800; display:flex; align-items:center; justify-content:center; }
.step h3 { margin:10px 0 6px; font-size:1.1rem; }
.step p { margin:0; color:var(--muted); font-size:.95rem; }
.cta-band { text-align:center; background:linear-gradient(180deg,var(--panel),var(--panel2)); border:1px solid var(--border); border-radius:20px; padding:54px 24px; position:relative; overflow:hidden; }
.cta-band::before { content:""; position:absolute; inset:auto 0 -160px 0; height:300px; background:radial-gradient(600px 200px at 50% 100%,rgba(47,129,247,.25),transparent 70%); pointer-events:none; }
.cta-band h2 { font-size:clamp(1.7rem,3.4vw,2.3rem); margin:0 0 12px; letter-spacing:-.02em; position:relative; }
.cta-band p { color:var(--muted); margin:0 0 26px; position:relative; }
.cta-band .btn { position:relative; }

/* Comparison tables (pricing, blog) */
.cmp { max-width:840px; margin:0 auto; border:1px solid var(--border); border-radius:var(--radius); overflow-x:auto; -webkit-overflow-scrolling:touch; }
.cmp table { width:100%; min-width:560px; border-collapse:collapse; }
.cmp th, .cmp td { padding:13px 16px; text-align:left; border-bottom:1px solid var(--border); font-size:.94rem; }
.cmp thead th { background:var(--panel2); font-size:.86rem; letter-spacing:.02em; }
.cmp td:not(:first-child), .cmp th:not(:first-child) { text-align:center; width:160px; }
.cmp tr:last-child td { border-bottom:none; }
.cmp .y { color:var(--green); font-weight:800; }
.cmp .n { color:var(--muted); }
@media (max-width:720px){ .cmp td:not(:first-child), .cmp th:not(:first-child){ width:90px; } }

/* Blog */
.post-meta { color:var(--muted); font-size:.86rem; margin:0 0 10px; }
.post-meta a { color:var(--muted); }
.post-meta a:hover { color:var(--accent2); }
.post h1 { margin-bottom:14px; }
.post h3 { font-size:1.08rem; margin:24px 0 8px; }
.post-cta { margin:40px 0 28px; }
.post-back { margin:0 0 40px; }
.blog-grid { display:grid; gap:18px; max-width:760px; margin:0 auto; }
.blog-card { display:block; color:var(--text); background:var(--panel); border:1px solid var(--border); border-radius:var(--radius); padding:24px 26px; transition:border-color .2s, transform .12s; }
.blog-card:hover { border-color:#3a4658; transform:translateY(-2px); text-decoration:none; }
.blog-card h2 { margin:0 0 8px; font-size:1.3rem; }
.blog-card:hover h2 { color:var(--accent2); }
.blog-card p { margin:0; color:var(--muted); }

/* Footer (identical on every page) */
footer { border-top:1px solid var(--border); padding:34px 0; color:var(--muted); font-size:.92rem; margin-top:20px; }
footer .wrap { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
footer a { color:var(--muted); } footer a:hover { color:var(--text); }
footer .links a { margin-left:18px; }

@media (max-width:860px) {
  .hero-grid { grid-template-columns:1fr; gap:34px; }
  .lede { max-width:none; }
  .features, .steps { grid-template-columns:1fr; }
  nav .links { display:none; }
  .menu-toggle { display:flex; }
}
