/* JamaliFlow — AI social media management
   Jamali Web Tech and Media Solution Company */

:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --teal: #14b8a6;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #eff4ff;
  --white: #ffffff;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --shadow-sm: 0 2px 10px -4px rgba(15, 23, 42, 0.15);
  --max: 1120px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); letter-spacing: -0.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
li { margin-bottom: .4rem; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--teal));
  display: grid; place-items: center; color: #fff; flex: 0 0 auto;
}
.brand .logo-mark svg { width: 20px; height: 20px; }
.brand b { color: var(--brand); }
.brand-name { white-space: nowrap; }
.brand-flow { color: var(--brand); }
.site-footer .brand-flow { color: #60a5fa; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--body); font-weight: 500; font-size: .97rem; }
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .97rem;
  cursor: pointer; border: 1px solid transparent; transition: all .15s ease; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.eyebrow {
  display: inline-block; text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 700; color: var(--brand);
  background: var(--bg-tint); padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 64px; background:
  radial-gradient(1000px 500px at 80% -10%, rgba(20,184,166,.10), transparent 60%),
  radial-gradient(900px 500px at 0% 0%, rgba(37,99,235,.10), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { background: linear-gradient(135deg, var(--brand), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { margin: 18px 0 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note svg { color: var(--teal); flex: 0 0 auto; }

/* ---------- Dashboard mockup ---------- */
.mockup {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.mockup-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.mockup-bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.mockup-bar span:nth-child(1){ background:#f87171; } .mockup-bar span:nth-child(2){ background:#fbbf24; } .mockup-bar span:nth-child(3){ background:#34d399; }
.mockup-bar .mb-title { margin-left: 8px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.mockup-body { padding: 18px; display: grid; gap: 12px; }
.post-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.post-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.post-acct { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; color: var(--ink); }
.acct-dot { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: .7rem; font-weight: 800; }
.post-text { font-size: .88rem; color: var(--body); margin: 0; }
.chip { font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.chip-draft { background:#f1f5f9; color:#475569; }
.chip-review { background:#fef3c7; color:#92400e; }
.chip-scheduled { background:#dbeafe; color:#1e40af; }
.chip-published { background:#dcfce7; color:#166534; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: all .18s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #cdd8ea; }
.card .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-tint); color: var(--brand); margin-bottom: 14px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- How it works ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { position: relative; padding-top: 8px; }
.step .num {
  counter-increment: step; width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--teal)); color: #fff;
  display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.step .num::before { content: counter(step); }
.step h3 { font-size: 1.02rem; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ---------- Alt background ---------- */
.bg-soft { background: var(--bg-soft); }
.bg-ink { background: var(--ink); color: #cbd5e1; }
.bg-ink h2, .bg-ink h3 { color: #fff; }

/* ---------- Integrations ---------- */
.integration-list { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.integ { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.integ .badge { margin-left: auto; font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.badge-live { background:#dcfce7; color:#166534; }
.badge-review { background:#e0e7ff; color:#3730a3; }
.badge-soon { background:#f1f5f9; color:#64748b; }
.integ .pill-ico { width: 34px; height: 34px; border-radius: 9px; display:grid; place-items:center; color:#fff; font-weight:800; font-size:.8rem; flex:0 0 auto; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: start; }
.price-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px; position: relative; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--shadow); }
.price-card.featured::before { content:"Most popular"; position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--brand); color:#fff; font-size:.72rem; font-weight:700; padding:5px 14px; border-radius:999px; }
.price-name { font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.price-amt { font-size: 2.4rem; font-weight: 800; color: var(--ink); margin: 8px 0 2px; }
.price-amt small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-desc { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.price-features { list-style: none; padding: 0; margin: 20px 0; }
.price-features li { display:flex; gap:10px; align-items:flex-start; font-size:.94rem; color:var(--body); }
.price-features li::before { content:"✓"; color: var(--teal); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; margin-bottom: 12px; background:#fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 14px 0; list-style: none; display:flex; justify-content:space-between; align-items:center; }
.faq summary::-webkit-details-marker { display:none; }
.faq summary::after { content:"+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; }
.faq details[open] summary::after { content:"–"; }
.faq details p { color: var(--muted); font-size: .96rem; padding-bottom: 14px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, var(--brand), var(--teal)); color:#fff; border-radius: 24px; padding: 54px; text-align:center; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 24px; font-size: 1.1rem; }
.cta-band .btn-primary { background:#fff; color: var(--brand); }
.cta-band .btn-primary:hover { background:#f1f5f9; color: var(--brand-dark); }
.cta-band .btn-ghost { color:#fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn-ghost:hover { border-color:#fff; color:#fff; }

/* ---------- Content / policy pages ---------- */
.page-head { padding: 56px 0 8px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: 12px; }
.page-head p { color: var(--muted); max-width: 720px; }
.doc { max-width: 820px; margin: 0 auto; }
.doc h2 { font-size: 1.4rem; margin-top: 36px; }
.doc h3 { margin-top: 22px; }
.doc .updated { color: var(--muted); font-size: .92rem; margin-bottom: 8px; }
.callout { background: var(--bg-tint); border: 1px solid #cdd8ea; border-radius: 12px; padding: 16px 20px; font-size: .92rem; color: var(--body); }
.callout strong { color: var(--ink); }
.info-box { background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px 24px; margin-bottom:20px; }

/* ---------- Contact ---------- */
.contact-grid { display:grid; grid-template-columns: 1fr 1fr; gap:36px; }
.field { margin-bottom:16px; }
.field label { display:block; font-weight:600; font-size:.9rem; color:var(--ink); margin-bottom:6px; }
.field input, .field textarea, .field select {
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:10px;
  font-family:var(--font); font-size:.96rem; color:var(--ink); background:#fff;
}
.field input:focus, .field textarea:focus { outline:none; border-color:var(--brand); box-shadow:0 0 0 3px rgba(37,99,235,.12); }

/* ---------- Table (permissions) ---------- */
.tbl { width:100%; border-collapse: collapse; margin: 16px 0; font-size:.93rem; }
.tbl th, .tbl td { text-align:left; padding:12px 14px; border-bottom:1px solid var(--line); vertical-align:top; }
.tbl th { background: var(--bg-soft); color:var(--ink); font-weight:700; }
.tbl code { background:var(--bg-tint); color:var(--brand-dark); padding:2px 7px; border-radius:6px; font-size:.86rem; }

/* ---------- Flow steps (meta review) ---------- */
.flow { counter-reset: fl; display:grid; gap:14px; }
.flow-item { display:flex; gap:16px; align-items:flex-start; background:#fff; border:1px solid var(--line); border-radius:12px; padding:18px 20px; }
.flow-item .fn { counter-increment: fl; flex:0 0 auto; width:32px; height:32px; border-radius:50%; background:var(--bg-tint); color:var(--brand); font-weight:800; display:grid; place-items:center; }
.flow-item .fn::before { content: counter(fl); }
.flow-item h3 { font-size:1rem; margin:0 0 3px; }
.flow-item p { margin:0; color:var(--muted); font-size:.92rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color:#94a3b8; padding: 56px 0 28px; margin-top: 20px; }
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand .brand { color:#fff; }
.footer-brand p { color:#94a3b8; font-size:.92rem; max-width: 280px; margin-top: 12px; }
.footer-col h4 { color:#e2e8f0; font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:14px; }
.footer-col ul { list-style:none; padding:0; margin:0; }
.footer-col li { margin-bottom:9px; }
.footer-col a { color:#94a3b8; font-size:.92rem; }
.footer-col a:hover { color:#fff; text-decoration:none; }
.footer-bottom { border-top:1px solid #1e293b; padding-top:22px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:.86rem; color:#64748b; }
.footer-bottom a { color:#94a3b8; }

/* ---------- Utilities ---------- */
.text-center { text-align:center; }
.mt-0 { margin-top:0; } .mb-0 { margin-bottom:0; }
.disclaimer { font-size:.85rem; color:var(--muted); font-style:italic; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .integration-list { grid-template-columns: repeat(2,1fr); }
  .price-grid { grid-template-columns: 1fr; max-width:420px; margin:0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap:24px; }
  .nav-links { display:none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .grid-2, .grid-3, .grid-4, .steps, .integration-list { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-cta .btn-ghost { display:none; }
}
