/* ==========================================================================
   BrickIQ — marketing site design system (light modern)
   Self-contained: system fonts, no external assets (strict CSP compliant).
   ========================================================================== */

:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #5b6b84;
  --muted-2: #8a97ab;
  --line: #e7ebf3;
  --line-2: #eef1f7;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-tint: #eef2ff;
  --brand: #4f46e5;
  --brand-2: #6366f1;
  --brand-ink: #3730a3;
  --sky: #0ea5e9;
  --mint: #10b981;
  --amber: #f59e0b;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
  --shadow-lg: 0 24px 60px rgba(30, 41, 89, .16);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --maxw: 1160px;
  --grad: linear-gradient(135deg, #6366f1 0%, #4f46e5 50%, #0ea5e9 130%);
  --grad-soft: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

/* Password show/hide eye (added by password-eye.js) */
.pw-wrap { position: relative; }
.pw-wrap .pw-input { width: 100%; padding-right: 44px; }
.pw-eye {
  position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
  width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer;
  color: #94a3b8; display: grid; place-items: center; border-radius: 8px; padding: 0;
}
.pw-eye:hover { color: #475569; background: rgba(100, 116, 139, .12); }
.pw-eye svg { width: 19px; height: 19px; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section-sm { padding: 56px 0; }
.center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-ink); background: var(--bg-tint);
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.lead { font-size: 1.16rem; color: var(--muted); max-width: 640px; }
.center .lead { margin-inline: auto; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer;
  padding: 13px 24px; border-radius: var(--r-pill); border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(79, 70, 229, .32); }
.btn-primary:hover { box-shadow: 0 14px 30px rgba(79, 70, 229, .42); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: #c9d2e5; transform: translateY(-2px); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-light:hover { background: rgba(255,255,255,.22); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-arrow::after { content: "→"; font-weight: 600; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-2);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand b { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink-2); font-weight: 600; font-size: .96rem; position: relative; }
.nav-links a:hover { color: var(--brand); }
.nav-links a.active { color: var(--brand); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: #fff;
  border-radius: 12px; cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 78% 0%, rgba(99,102,241,.14), transparent 60%),
    radial-gradient(50% 50% at 8% 12%, rgba(14,165,233,.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.24rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.hero-trust { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-trust div { font-size: .9rem; color: var(--muted); }
.hero-trust b { display: block; font-size: 1.5rem; color: var(--ink); font-weight: 800; letter-spacing: -.02em; }

/* ---- app mockup (pure CSS/SVG) ---- */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line-2); background: var(--bg-soft); }
.mock-bar i { width: 11px; height: 11px; border-radius: 50%; background: #d6dcea; display: inline-block; }
.mock-bar i:nth-child(1){ background:#f87171; } .mock-bar i:nth-child(2){ background:#fbbf24; } .mock-bar i:nth-child(3){ background:#34d399; }
.mock-bar span { margin-left: 10px; font-size: .78rem; color: var(--muted-2); }
.mock-body { padding: 22px; }
.mock-steps { display: flex; gap: 8px; margin-bottom: 20px; }
.mock-steps i { height: 6px; border-radius: 3px; background: var(--line); flex: 1; }
.mock-steps i.on { background: var(--grad); }
.mock-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.mock-row:last-child { border: 0; }
.mock-row small { color: var(--muted); font-size: .85rem; }
.mock-figure { font-weight: 800; letter-spacing: -.02em; }
.mock-big { text-align: center; padding: 16px; margin: 8px 0 4px; background: var(--grad-soft); border-radius: var(--r); }
.mock-big small { color: var(--brand-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.mock-big b { display: block; font-size: 2rem; color: var(--brand-ink); letter-spacing: -.02em; }

/* ---- trust strip ---- */
.strip { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--bg-soft); }
.strip .wrap { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; justify-content: center; padding-block: 26px; }
.strip p { margin: 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.strip .logo-word { font-weight: 800; font-size: 1.05rem; color: #b3bccd; letter-spacing: -.02em; }

/* ---- cards / grids ---- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dfe5f1; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad-soft); color: var(--brand-ink); margin-bottom: 18px;
}
.card .ic svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }

.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head p { margin: 0; }

/* ---- how it works (stepper) ---- */
.steps { counter-reset: s; display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); }
.step {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 22px; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-weight: 800; font-size: 1.05rem; color: #fff; background: var(--grad);
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.08rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---- feature split ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 13px; align-items: flex-start; }
.feature-list .tick {
  flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--bg-tint); color: var(--brand);
  display: grid; place-items: center; font-weight: 800; font-size: .8rem; margin-top: 2px;
}
.feature-list b { display: block; }
.feature-list span { color: var(--muted); font-size: .95rem; }
.panel {
  background: var(--grad-soft); border: 1px solid #dfe6ff; border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}

/* ---- white-label / integrate ---- */
.integrate { background: var(--ink); color: #dfe6f5; border-radius: 0; }
.integrate h2 { color: #fff; }
.integrate .muted { color: #9fb0cf; }
.code {
  font-family: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  background: #0a1120; border: 1px solid #1e2b45; border-radius: var(--r);
  padding: 22px; color: #cbd5e1; font-size: .88rem; line-height: 1.7; overflow-x: auto;
}
.code .k { color: #7dd3fc; } .code .s { color: #86efac; } .code .c { color: #64748b; }
.subdomain { display: inline-flex; align-items: center; background: #0a1120; border: 1px solid #1e2b45; border-radius: var(--r-pill); padding: 8px 8px 8px 18px; gap: 12px; font-size: .95rem; }
.subdomain b { color: #fff; } .subdomain .you { color: var(--sky); }
.subdomain .tag { background: var(--grad); color: #fff; border-radius: var(--r-pill); padding: 5px 14px; font-size: .82rem; font-weight: 700; }

/* ---- testimonials ---- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.quote p { font-size: 1.02rem; color: var(--ink-2); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .av { width: 42px; height: 42px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; }
.quote .who b { display: block; font-size: .95rem; } .quote .who small { color: var(--muted); }
.stars { color: var(--amber); letter-spacing: 2px; margin-bottom: 10px; }

/* ---- pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan.pop { border-color: var(--brand); box-shadow: var(--shadow-md); position: relative; }
.plan.pop::after { content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff; font-size: .76rem; font-weight: 700; padding: 5px 14px; border-radius: var(--r-pill); }
.plan .price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 10px 0 2px; }
.plan .price small { font-size: .95rem; font-weight: 600; color: var(--muted); }
.plan .tier { font-weight: 800; font-size: 1.15rem; }
.plan ul { list-style: none; margin: 20px 0 26px; padding: 0; display: grid; gap: 12px; }
.plan li { display: flex; gap: 10px; color: var(--ink-2); font-size: .95rem; }
.plan li::before { content: "✓"; color: var(--brand); font-weight: 800; }
.plan .btn { width: 100%; margin-top: auto; }

/* ---- CTA band ---- */
.cta-band { background: var(--grad); border-radius: var(--r-lg); padding: 56px; text-align: center; color: #fff; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 26px; }

/* ---- forms ---- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-md); }
.form-note { font-size: .85rem; color: var(--muted); }
.form-status { margin-top: 14px; padding: 13px 16px; border-radius: var(--r-sm); font-size: .92rem; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-status.err { display: block; background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ---- page hero (inner pages) ---- */
.page-hero { padding: 72px 0 40px; background: var(--grad-soft); border-bottom: 1px solid var(--line-2); }
.page-hero .eyebrow { background: #fff; }
.page-hero .lead { margin-inline: auto; }

/* ---- stat row ---- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat small { color: var(--muted); font-weight: 600; }

/* ---- prose (legal) ---- */
.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: 1.4rem; margin-top: 2em; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 1.2em; }

/* ---- footer ---- */
.site-footer { background: var(--ink); color: #9fb0cf; padding: 64px 0 30px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: #fff; }
.site-footer .brand b { color: var(--sky); }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: #9fb0cf; padding: 6px 0; font-size: .94rem; }
.footer-col a:hover { color: #fff; }
.footer-about { max-width: 320px; margin: 16px 0 0; font-size: .94rem; }
.footer-bottom { border-top: 1px solid #1e2b45; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .86rem; color: var(--muted-2); }

/* ---- reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- responsive ---- */
@media (max-width: 940px) {
  .hero-grid, .split, .split.rev .split-media { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .grid-3, .grid-4, .steps, .plans, .stat-row, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-media { max-width: 460px; margin: 0 auto; }
  .section { padding: 64px 0; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 24px; gap: 6px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 10px 0; }
  .grid-3, .grid-4, .steps, .plans, .grid-2, .form-row, .stat-row, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .form-card, .card, .plan { padding: 24px; }
}
