/* ============================================================
   AgileSeller — marketing site styles
   Brand: blue #084D95 / red #D82C25 on light SaaS canvas
   ============================================================ */

:root {
  --blue: #084D95;
  --blue-700: #063b73;
  --blue-50: #eef4fb;
  --red: #D82C25;
  --red-600: #be241e;
  --ink: #16202e;
  --slate: #4a5a6e;
  --muted: #7c8aa0;
  --line: #e6ebf2;
  --bg: #ffffff;
  --bg-soft: #f6f9fd;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(16,32,46,.06), 0 4px 14px rgba(16,32,46,.05);
  --shadow-md: 0 10px 30px rgba(8,77,149,.10);
  --max: 1160px;
  --font: -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(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.18; color: var(--ink); margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--slate); }

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

.eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); background: var(--blue-50);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .98rem;
  padding: 12px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(216,44,37,.28); }
.btn-primary:hover { background: var(--red-600); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(8,77,149,.25); }
.btn-blue:hover { background: var(--blue-700); color: #fff; }
.btn-ghost { background: #fff; color: var(--blue); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; }
.brand img { height: 34px; width: auto; }
.brand span b { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--slate); font-weight: 600; font-size: .97rem; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .login { color: var(--slate); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1100px 460px at 85% -10%, rgba(8,77,149,.10), transparent 60%),
    radial-gradient(700px 360px at 5% 10%, rgba(216,44,37,.06), transparent 60%),
    var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center; padding: 84px 0 78px; }
.hero h1 span { color: var(--blue); }
.hero .lead { font-size: 1.18rem; color: var(--slate); max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 18px; }
.hero-trust { font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero-trust b { color: var(--slate); }

/* ---------- Channel pills ---------- */
.channels-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.chan-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-weight: 700; font-size: .9rem; color: var(--slate);
  box-shadow: var(--shadow-sm);
}
.chan-dot { width: 9px; height: 9px; border-radius: 50%; }

/* ---------- Dashboard mock card (hero visual) ---------- */
.mock {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-md); padding: 18px; transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
}
.mock-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.mock-dots span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; background: var(--line); }
.mock-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }
.kpi { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.kpi .label { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.kpi .value { font-size: 1.25rem; font-weight: 800; color: var(--ink); }
.kpi .delta { font-size: .75rem; font-weight: 700; color: #1a9d5a; }
.kpi .delta.down { color: var(--red); }

/* ---------- Sections ---------- */
section { padding: 78px 0; }
.section-head { max-width: 680px; margin: 0 auto 50px; text-align: center; }
.section-head p { font-size: 1.08rem; }
.soft { background: var(--bg-soft); }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4e0f0; }
.card .ico {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); margin-bottom: 16px;
}
.card .ico svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; font-size: .96rem; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split + .split { margin-top: 70px; }
.split.reverse .split-media { order: 2; }
.split ul { list-style: none; padding: 0; margin: 18px 0 0; }
.split ul li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--slate); font-weight: 500; }
.split ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%; background: var(--blue-50); color: var(--blue);
  font-size: .75rem; font-weight: 800; display: grid; place-items: center;
}
.media-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 22px;
}

/* mini bar chart */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bars div { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(var(--blue), #2f74c0); }
.bars div:nth-child(odd) { background: linear-gradient(var(--red), #e8645e); }
.media-card .cap { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 8px; font-weight: 600; }

/* table mock */
.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tbl th { text-align: left; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); color: var(--slate); }
.tag { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.tag.ok { background: #e7f6ee; color: #1a9d5a; }
.tag.warn { background: #fdecea; color: var(--red); }

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: var(--blue); letter-spacing: -.03em; }
.stat .lbl { color: var(--muted); font-weight: 600; font-size: .92rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); position: relative; }
.step .n { width: 38px; height: 38px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--blue), var(--blue-700)); color: #fff; border-radius: 22px; padding: 56px; text-align: center; box-shadow: var(--shadow-md); }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 560px; margin: 0 auto 26px; font-size: 1.1rem; }

/* ---------- Channels page table ---------- */
.chan-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.chan-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.chan-card .badge { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.05rem; }
.chan-card .status { font-size: .78rem; font-weight: 700; color: #1a9d5a; background: #e7f6ee; padding: 3px 10px; border-radius: 999px; }
.chan-card .status.soon { color: var(--blue); background: var(--blue-50); }
.chan-card ul { list-style: none; padding: 0; margin: 16px 0 0; }
.chan-card li { font-size: .9rem; color: var(--slate); padding: 5px 0 5px 22px; position: relative; }
.chan-card li::before { content: "›"; position: absolute; left: 4px; color: var(--blue); font-weight: 800; }

/* ---------- Compare table ---------- */
.compare { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.compare th, .compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: .95rem; }
.compare thead th { background: var(--blue); color: #fff; font-weight: 700; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare td.center, .compare th.center { text-align: center; }
.check { color: #1a9d5a; font-weight: 800; }

/* ---------- About ---------- */
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.value { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.value h3 { color: var(--blue); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-md); }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  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; transition: border .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(8,77,149,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.contact-info { padding-top: 6px; }
.contact-info .row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.contact-info .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-info .ico svg { width: 20px; height: 20px; }
.note { font-size: .8rem; color: var(--muted); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 64px 0 56px; text-align: center; }
.page-hero p { font-size: 1.12rem; max-width: 640px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer { background: #0c1928; color: #c4d0e0; padding: 60px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #97a8bf; font-size: .94rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: #fff; margin-bottom: 14px; }
.footer-brand img { height: 32px; background: #fff; padding: 4px 6px; border-radius: 8px; }
.footer-about { color: #8295ad; font-size: .92rem; max-width: 320px; }
.footer-bottom { border-top: 1px solid #1c2c40; margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: #7c8ca4; font-size: .86rem; }

/* ---------- Responsive ---------- */
/* ---------- Legal / prose pages ---------- */
.legal { padding: 56px 0 78px; }
.legal-wrap { max-width: 820px; margin: 0 auto; }
.legal .updated { color: var(--muted); font-size: .9rem; font-weight: 600; margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; padding-top: 8px; }
.legal h3 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--blue); }
.legal p, .legal li { color: var(--slate); font-size: 1rem; }
.legal ul { padding-left: 22px; margin: 0 0 1rem; }
.legal li { margin-bottom: 8px; }
.legal a { font-weight: 600; }
.legal .toc {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin-bottom: 36px;
}
.legal .toc h4 { margin: 0 0 12px; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 30px; }
.legal .toc li { margin-bottom: 6px; font-size: .92rem; }
.legal .disclaimer {
  background: #fff7f6; border: 1px solid #f3cdca; border-left: 4px solid var(--red);
  border-radius: 10px; padding: 16px 20px; margin-bottom: 32px; font-size: .92rem; color: var(--slate);
}

@media (max-width: 640px) { .legal .toc ol { columns: 1; } }

@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .grid-3, .steps, .chan-cards, .values { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .mock { transform: none; margin-top: 10px; }
  .hero-grid { padding: 56px 0; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .login { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px 22px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .grid-3, .grid-2, .steps, .chan-cards, .values, .stats { grid-template-columns: 1fr; }
  .cta-band { padding: 38px 24px; }
  section { padding: 56px 0; }
}
