/* Free Canadian CRM — brand + site styles */

@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Brand palette */
  --maple: #e1302a;
  --maple-600: #c4241f;
  --maple-50: #fdecea;
  --pine: #17463a;
  --pine-50: #e7f0ec;
  --lake: #2c5fd6;
  --ink: #0e1116;
  --slate: #5a6170;
  --snow: #fbfaf8;
  --frost: #f1f2f4;

  /* Semantic tokens (light) */
  --bg: var(--snow);
  --surface: #ffffff;
  --surface-2: var(--frost);
  --text: var(--ink);
  --muted: var(--slate);
  --border: #e3e4e8;
  --accent: var(--maple);
  --accent-hover: var(--maple-600);
  --accent-soft: var(--maple-50);
  --ok: var(--pine);
  --ok-soft: var(--pine-50);
  --shadow: 0 1px 2px rgba(14, 17, 22, 0.04), 0 8px 24px rgba(14, 17, 22, 0.06);
  --shadow-lg: 0 2px 4px rgba(14, 17, 22, 0.04), 0 24px 60px rgba(14, 17, 22, 0.12);

  --radius: 14px;
  --radius-sm: 9px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d11;
    --surface: #12151b;
    --surface-2: #181c23;
    --text: #f2f3f5;
    --muted: #9aa1ae;
    --border: #252a33;
    --accent: #f0443d;
    --accent-hover: #ff5a52;
    --accent-soft: rgba(240, 68, 61, 0.12);
    --ok: #4fbf98;
    --ok-soft: rgba(79, 191, 152, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.5);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
img,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
  font-weight: 650;
}
p {
  margin: 0;
}
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--surface);
  padding: 8px 12px;
  border-radius: 8px;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: 17px;
}
.brand img {
  width: 28px;
  height: 28px;
}
.brand .tld {
  color: var(--accent);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}
.nav-links a {
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--text);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  font-weight: 550;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
}
.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--muted);
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}
.nav-links .btn {
  color: #fff;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto;
  height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-grid > *,
.api > *,
.signup > *,
.band > * {
  min-width: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.pill .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
}
.pill .dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
}
.hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero .lede {
  margin-top: 20px;
  font-size: 19px;
  color: var(--muted);
  max-width: 520px;
}
.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.hero-proof {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.check {
  width: 16px;
  height: 16px;
  color: var(--ok);
  flex: none;
}

/* ---------- Product mock ---------- */
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}
.mock-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}
.mock-bar .addr {
  margin-left: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.mock-body {
  display: grid;
  grid-template-columns: 148px 1fr;
  min-height: 340px;
}
.mock-side {
  border-right: 1px solid var(--border);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
}
.mock-side div {
  padding: 6px 10px;
  border-radius: 7px;
}
.mock-side .on {
  background: var(--surface-2);
  color: var(--text);
  font-weight: 550;
}
.mock-main {
  padding: 16px;
}
.mock-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.mock-head b {
  font-size: 15px;
  letter-spacing: -0.01em;
}
.mock-head small {
  color: var(--muted);
}
.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.col h4 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 550;
  display: flex;
  justify-content: space-between;
}
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}
.card b {
  display: block;
  font-weight: 550;
  font-size: 12.5px;
}
.card span {
  color: var(--muted);
  font-size: 11.5px;
}
.tag {
  display: inline-block;
  margin-top: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 550;
}
.tag-red {
  background: var(--accent-soft);
  color: var(--accent);
}
.tag-green {
  background: var(--ok-soft);
  color: var(--ok);
}
.tag-blue {
  background: color-mix(in srgb, var(--lake) 14%, transparent);
  color: var(--lake);
}

/* ---------- Sections ---------- */
section {
  padding: 96px 0;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
}
.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature .icon svg {
  width: 20px;
  height: 20px;
}
.feature h3 {
  font-size: 18px;
  letter-spacing: -0.02em;
}
.feature p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* Canada band */
.band {
  background: var(--ink);
  color: #f2f3f5;
  border-radius: 24px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.band::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  background: url("/leaf.svg") center / contain no-repeat;
  opacity: 0.05;
  transform: rotate(-12deg);
}
.band h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}
.band p {
  margin-top: 16px;
  color: #aab0bc;
  font-size: 17px;
}
.band ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
  position: relative;
  z-index: 1;
}
.band li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15.5px;
}
.band li .check {
  color: #4fbf98;
  margin-top: 4px;
}

/* API block */
.api {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.code {
  background: #0b0d11;
  color: #d6dae2;
  border: 1px solid #252a33;
  border-radius: var(--radius);
  padding: 22px 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: var(--shadow-lg);
}
.code .c {
  color: #6b7280;
}
.code .k {
  color: #ff7a73;
}
.code .s {
  color: #7fd1ae;
}
.api h2 {
  font-size: clamp(30px, 4vw, 44px);
}
.api .lede-sm {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}
.api ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: var(--muted);
}
.api li {
  display: flex;
  gap: 10px;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  padding: 28px;
  border-top: 2px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
}
.step h3 {
  font-size: 19px;
  margin-top: 12px;
}
.step p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Lead form ---------- */
.signup {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.signup-copy h2 {
  font-size: clamp(30px, 4vw, 44px);
}
.signup-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
}
.signup-copy ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.signup-copy li {
  display: flex;
  gap: 10px;
  align-items: center;
}
.form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1 / -1;
}
label {
  font-size: 13.5px;
  font-weight: 550;
}
label .opt {
  color: var(--muted);
  font-weight: 400;
}
input,
select,
textarea {
  font: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea {
  resize: vertical;
  min-height: 88px;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 400;
}
.consent input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--accent);
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-foot {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.form-foot small {
  color: var(--muted);
  font-size: 12.5px;
}
.form-msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.form-msg[hidden] {
  display: none;
}
.form-msg.error {
  background: var(--accent-soft);
  color: var(--accent);
}
.form-success {
  text-align: center;
  padding: 40px 16px;
}
.form-success .badge {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--ok-soft);
  color: var(--ok);
  display: grid;
  place-items: center;
}
.form-success h3 {
  font-size: 24px;
}
.form-success p {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--muted);
  font-size: 14px;
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.foot nav {
  display: flex;
  gap: 20px;
}
.foot a {
  text-decoration: none;
}
.foot a:hover {
  color: var(--text);
}

/* ---------- Prose pages ---------- */
.prose {
  max-width: 720px;
  padding: 72px 0 96px;
}
.prose h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin-bottom: 12px;
}
.prose h2 {
  font-size: 22px;
  margin: 40px 0 10px;
  letter-spacing: -0.02em;
}
.prose p,
.prose li {
  color: var(--muted);
}
.prose p + p {
  margin-top: 12px;
}
.note {
  background: var(--accent-soft);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14px;
  margin: 24px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .api,
  .signup,
  .band {
    grid-template-columns: 1fr;
  }
  .features,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .band {
    padding: 40px 28px;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
  .nav-links a:not(.btn) {
    display: none;
  }
  .features,
  .steps,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 56px 0 48px;
  }
  section {
    padding: 64px 0;
  }
  .mock-body {
    grid-template-columns: 1fr;
  }
  .mock-side {
    display: none;
  }
  .board {
    grid-template-columns: 1fr 1fr;
  }
  .board .col:last-child {
    display: none;
  }
  .form {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn {
    transition: none;
  }
}
