/* EcomIQ — marketing site styles */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fc;
  --bg-ink: #0d0f1c;
  --ink: #14162b;
  --ink-2: #3a3f57;
  --ink-3: #6b7088;
  --line: #e7e9f2;
  --brand: #4f46e5;
  --brand-2: #6d5efc;
  --brand-ink: #ffffff;
  --accent: #0fa37f;       /* metrics / positive */
  --amber: #b9852b;
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(16,18,40,.04), 0 8px 28px rgba(16,18,40,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; }

h1,h2,h3 { letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.eyebrow { display:inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display:flex; align-items:center; justify-content:space-between; height: 68px; }
.brand { display:flex; align-items:center; gap:9px; font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing:-.02em; }
.brand:hover { text-decoration:none; }
.brand .mark { width:26px; height:26px; border-radius:8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); display:inline-block; }
.brand b { color: var(--brand); font-weight:800; }
.nav { display:flex; align-items:center; gap: 26px; }
.nav a { color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); text-decoration:none; }
.nav .btn { color: var(--brand-ink); }
@media (max-width: 760px){ .nav a:not(.btn){ display:none; } }

/* buttons */
.btn { display:inline-flex; align-items:center; gap:8px; padding: 11px 20px; border-radius: 10px; font-weight: 650; font-size: .96rem; border: 1px solid transparent; cursor:pointer; transition: .15s; }
.btn:hover { text-decoration:none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px rgba(79,70,229,.28); }
.btn-primary:hover { background: #4338ca; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.25); }
.btn-light:hover { background: rgba(255,255,255,.2); }

/* sections */
section { padding: 76px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left:auto; margin-right:auto; text-align:center; }

/* hero */
.hero { padding: 96px 0 70px; background:
  radial-gradient(1100px 480px at 78% -8%, rgba(109,94,252,.12), transparent 60%),
  radial-gradient(700px 380px at 8% 4%, rgba(15,163,127,.08), transparent 55%); }
.hero h1 { max-width: 14ch; }
.hero .lead { max-width: 56ch; margin: 18px 0 26px; }
.hero-cta { display:flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 16px; color: var(--ink-3); font-size: .9rem; }

/* metric band */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 22px; }
.stat { padding: 4px 0; }
.stat .n { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing:-.02em; }
.stat .n span { color: var(--accent); }
.stat .l { color: var(--ink-3); font-size: .92rem; }
@media (max-width: 820px){ .stats{ grid-template-columns: repeat(2,1fr);} }

/* grids + cards */
.grid { display:grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3,1fr); }
.cols-2 { grid-template-columns: repeat(2,1fr); }
.cols-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .cols-3,.cols-4{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .cols-2,.cols-3,.cols-4{ grid-template-columns: 1fr;} }
.card { background:#fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-2); margin: 0; }
.card .ico { width: 40px; height:40px; border-radius: 10px; background: linear-gradient(135deg, rgba(79,70,229,.12), rgba(109,94,252,.12)); display:flex; align-items:center; justify-content:center; font-size: 20px; margin-bottom: 14px; }

/* product cards */
.product { display:grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items:center; }
@media (max-width: 820px){ .product{ grid-template-columns: 1fr; } }
.tag { display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.04em; padding: 4px 10px; border-radius: 999px; }
.tag-live { background:#e9f7f1; color: var(--accent); }
.tag-soon { background:#f3f0fb; color: var(--brand); }
.tag-illus { background:#fbf3e3; color: var(--amber); }
.tag-vert { background:#eef0fb; color: var(--brand); }

/* lists */
.checks { list-style:none; padding:0; margin: 14px 0 0; }
.checks li { padding: 6px 0 6px 28px; position: relative; color: var(--ink-2); }
.checks li::before { content:"✓"; position:absolute; left:0; color: var(--accent); font-weight: 800; }

/* vertical tiles */
.vert { padding: 20px; border:1px solid var(--line); border-radius: var(--radius-sm); background:#fff; }
.vert h3 { font-size: 1.02rem; margin-bottom: 4px; }
.vert p { font-size:.92rem; color: var(--ink-3); margin:0; }
.vert .k { font-size:.78rem; font-weight:700; color: var(--brand); }

/* case study */
.case { border:1px solid var(--line); border-radius: var(--radius); padding: 26px; background:#fff; box-shadow: var(--shadow); }
.case .metric { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing:-.02em; }
.case .ctx { color: var(--ink-3); font-size:.86rem; }

/* testimonials */
.quote { border:1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--bg-soft); }
.quote p { font-size: 1.05rem; color: var(--ink); }
.quote .by { color: var(--ink-3); font-size:.9rem; margin-top: 12px; }

/* pricing */
.price-grid { display:grid; grid-template-columns: repeat(4,1fr); gap:18px; }
@media (max-width: 900px){ .price-grid{ grid-template-columns: repeat(2,1fr);} }
@media (max-width: 560px){ .price-grid{ grid-template-columns: 1fr;} }
.plan { border:1px solid var(--line); border-radius: var(--radius); padding: 24px; background:#fff; }
.plan.feat { border-color: var(--brand); box-shadow: 0 10px 30px rgba(79,70,229,.14); }
.plan .price { font-size: 1.9rem; font-weight: 800; margin: 6px 0; }
.plan .price small { font-size:.85rem; font-weight:600; color: var(--ink-3); }

/* dark CTA */
.cta-band { background: var(--bg-ink); color:#fff; border-radius: 22px; padding: 54px; text-align:center; background-image: radial-gradient(600px 240px at 80% 0%, rgba(109,94,252,.35), transparent 60%); }
.cta-band h2 { color:#fff; }
.cta-band p { color: #b9bdd4; max-width: 56ch; margin: 12px auto 24px; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq summary { font-weight: 650; cursor: pointer; list-style:none; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; float:right; color: var(--ink-3); }
.faq details[open] summary::after { content:"–"; }
.faq p { margin: 10px 0 0; color: var(--ink-2); }

/* content / legal */
.content { padding: 56px 0 72px; }
.content .container { max-width: 760px; }
.content h2 { font-size: 1.25rem; margin-top: 30px; }
.note { background:#fbf3e3; border:1px solid #f0dca6; border-radius:10px; padding: 12px 16px; font-size:.9rem; color:#6b5320; }

/* footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 52px 0 32px; }
.foot-grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
@media (max-width: 760px){ .foot-grid{ grid-template-columns: 1fr 1fr; } }
.foot-grid h4 { font-size:.8rem; text-transform:uppercase; letter-spacing:.1em; color: var(--ink-3); margin: 0 0 12px; }
.foot-grid a { display:block; color: var(--ink-2); font-size:.92rem; padding: 4px 0; }
.foot-bottom { display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-top: 32px; padding-top: 18px; border-top:1px solid var(--line); color: var(--ink-3); font-size:.88rem; }

/* waitlist form (on dark CTA band) */
.waitlist { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; margin-top: 22px; }
.waitlist input[type=email] { padding: 12px 16px; border-radius: 10px; border:1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.10); color:#fff; min-width: 280px; font: inherit; }
.waitlist input[type=email]::placeholder { color: rgba(255,255,255,.6); }
.waitlist input[type=email]:focus { outline: 2px solid var(--brand-2); }
.wl-msg { margin: 14px 0 0; font-size: .92rem; min-height: 1.2em; }
.wl-msg.ok { color: #aef0d6; }
.wl-msg.err { color: #ffc9c9; }
