/* Wagent marketing — intentional, calm, Canadian */
:root {
  --bg: #f4f7f5;
  --bg-alt: #e8efeb;
  --ink: #0b1f1a;
  --ink-muted: #3d534c;
  --line: #c5d4cc;
  --brand: #0f6b4c;
  --brand-deep: #0a4d38;
  --accent: #c4a35a;
  --accent-soft: #f3ead2;
  --panel: #ffffff;
  --shadow: 0 18px 50px rgba(11, 31, 26, 0.12);
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --max: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
code {
  font-size: 0.9em;
  background: var(--bg-alt);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff;
  padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.header-inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 4rem;
}
.logo {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--ink); font-weight: 700; letter-spacing: -0.02em;
}
.logo-mark {
  width: 1.35rem; height: 1.35rem; border-radius: 0.4rem;
  background: linear-gradient(145deg, var(--brand), #1a9b6c 55%, var(--accent));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
}
.nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav a { text-decoration: none; color: var(--ink-muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0; padding: 0.5rem; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 1.25rem; height: 2px; background: var(--ink); margin: 5px 0;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.7rem 1.2rem; font-weight: 600;
  font-size: 0.95rem; border: 1px solid transparent; cursor: pointer;
  text-decoration: none; transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.875rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost:hover { background: var(--panel); color: var(--ink); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background:
    radial-gradient(900px 420px at 85% 10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 60%),
    radial-gradient(700px 380px at 5% 0%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
  grid-template-columns: 1.1fr 0.9fr;
}
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem;
  font-weight: 600; color: var(--brand); margin: 0 0 0.75rem;
}
.hero h1 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.08; letter-spacing: -0.02em; margin: 0 0 1rem;
}
.hero h1 em { font-style: italic; color: var(--brand-deep); }
.lede { font-size: 1.125rem; color: var(--ink-muted); max-width: 36rem; margin: 0 0 1.5rem; }
.lede-sm { color: var(--ink-muted); max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.75rem; }
.hero-trust {
  list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem;
  color: var(--ink-muted); font-size: 0.9rem;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-trust li::before {
  content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--brand);
}

.hero-visual { position: relative; min-height: 320px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-site { overflow: hidden; }
.panel-chrome {
  display: flex; align-items: center; gap: 0.35rem;
  padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--line); background: #fafcfb;
}
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #d0d8d4; }
.dot:nth-child(1) { background: #e07a6a; }
.dot:nth-child(2) { background: #e0c06a; }
.dot:nth-child(3) { background: #6abf8c; }
.url { margin-left: 0.5rem; font-size: 0.75rem; color: var(--ink-muted); }
.panel-body { padding: 1rem; }
.fake-hero {
  height: 88px; border-radius: 12px;
  background: linear-gradient(120deg, #123d32, #1f7a58 50%, #d4b56a);
  margin-bottom: 0.85rem;
}
.fake-rows { display: grid; gap: 0.45rem; }
.fake-rows span {
  display: block; height: 10px; border-radius: 999px; background: var(--bg-alt);
}
.fake-rows span:nth-child(1) { width: 92%; }
.fake-rows span:nth-child(2) { width: 78%; }
.fake-rows span:nth-child(3) { width: 64%; }

.panel-agent {
  position: absolute; right: -0.5rem; bottom: -0.75rem; width: min(100%, 240px);
  padding: 1rem 1.1rem; background: var(--ink); color: #e8f0ec; border: 0;
}
.agent-label { margin: 0; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.7; }
.agent-msg { margin: 0.45rem 0 0.85rem; font-size: 0.92rem; line-height: 1.35; }
.agent-chips { display: flex; gap: 0.4rem; }
.agent-chips span {
  font-size: 0.75rem; padding: 0.3rem 0.55rem; border-radius: 999px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
}
.agent-chips .accent { background: color-mix(in srgb, var(--accent) 35%, transparent); border-color: var(--accent); }

/* Sections */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2, .cta h2, .dogfood-grid h2, .canada-band h2 {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 0.75rem;
}
.section-head p { color: var(--ink-muted); margin: 0; }

.cards.dual {
  display: grid; gap: 1.25rem; grid-template-columns: repeat(2, 1fr);
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.5rem; box-shadow: 0 8px 24px rgba(11, 31, 26, 0.04);
}
.card-icon {
  width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  border-radius: 0.65rem; background: var(--accent-soft); color: var(--brand-deep);
  margin-bottom: 1rem; font-size: 1.1rem;
}
.card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.card p { color: var(--ink-muted); margin: 0 0 1rem; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.checklist li {
  position: relative; padding-left: 1.35rem; color: var(--ink); font-size: 0.95rem;
}
.checklist li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}

.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 1rem; counter-reset: step;
  grid-template-columns: repeat(4, 1fr);
}
.steps li {
  counter-increment: step; background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.25rem 1.1rem; display: grid; gap: 0.45rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.4rem; color: var(--brand);
}
.steps strong { font-size: 1.05rem; }
.steps span { color: var(--ink-muted); font-size: 0.92rem; }

.dogfood-grid {
  display: grid; gap: 2rem; grid-template-columns: 1.2fr 0.8fr; align-items: center;
}
.flow-card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.flow-row {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.85rem 1rem; border-radius: 12px; background: var(--bg);
  border: 1px solid var(--line);
}
.flow-arrow {
  text-align: center; padding: 0.65rem 0; color: var(--brand); font-weight: 600; font-size: 0.85rem;
}
.badge {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  padding: 0.3rem 0.55rem; border-radius: 999px;
}
.badge-preview { background: #e7f1ff; color: #1d4f91; }
.badge-prod { background: #e5f6ec; color: #0f6b4c; }

.canada-band {
  display: grid; gap: 2rem; grid-template-columns: 1.1fr 0.9fr; align-items: start;
}
.canada-band p { color: var(--ink-muted); }
.stats {
  display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; margin: 0;
}
.stats > div {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem;
}
.stats dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-muted); }
.stats dd { margin: 0.25rem 0 0; font-weight: 600; }

.cta { padding-bottom: 5rem; }
.cta-inner {
  text-align: center; background: var(--ink); color: #e8f0ec;
  border-radius: calc(var(--radius) + 4px); padding: 3rem 1.5rem;
  background-image:
    radial-gradient(500px 200px at 20% 0%, rgba(15, 107, 76, 0.45), transparent 60%),
    radial-gradient(400px 180px at 90% 100%, rgba(196, 163, 90, 0.25), transparent 55%);
}
.cta-inner p { color: rgba(232, 240, 236, 0.78); max-width: 32rem; margin: 0 auto 1.5rem; }
.cta-form {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-bottom: 0.75rem;
}
.cta-form input {
  min-width: min(100%, 280px); border-radius: 999px; border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06); color: #fff; padding: 0.75rem 1.1rem; font: inherit;
}
.cta-form input::placeholder { color: rgba(255,255,255,0.45); }
.form-note { color: var(--accent) !important; }
.fineprint { font-size: 0.8rem !important; opacity: 0.7; }

.site-footer {
  border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--ink-muted); font-size: 0.9rem;
}
.footer-inner {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
}
.footer-brand { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink); font-weight: 700; }
.footer-links a { text-decoration: none; }

@media (max-width: 900px) {
  .hero-grid, .cards.dual, .steps, .dogfood-grid, .canada-band { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .panel-agent { position: relative; right: auto; bottom: auto; margin-top: 1rem; width: 100%; }
  .nav { display: none; }
  .header-inner .btn-sm { display: none; }
  .nav-toggle { display: inline-block; }
  .nav.is-open {
    display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 4rem;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 1rem 1.25rem 1.25rem;
  }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
}
