/* ─────────────────────────────────────────────────────
   Pixelish CRM — brand-aligned styles
   Lifted directly from pixelish.co.uk global-settings.css
   ───────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Pixelish brand */
  --navy: #0f1b2d;
  --navy-2: #253246;
  --navy-3: #3a475b;
  --coral: #ff4f3f;
  --coral-deep: #c20000;
  --coral-soft: #fac4bb;
  --paper: #efeceb;
  --paper-2: #f9fafb;

  --ink: #111827;
  --body: #374151;
  --muted: #6b7280;
  --rule: #e5e7eb;

  --success: #047857;
  --warning: #fbbf24;
  --danger: #ef4444;
  --info: #0ea5e9;

  --sidebar-w: 224px;
  --header-h: 56px;

  --shadow-sm: 0 1px 2px rgba(15,27,45,0.06);
  --shadow-md: 0 4px 12px rgba(15,27,45,0.08);
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--paper-2);
  color: var(--body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--coral); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; letter-spacing: -0.01em; margin: 0; }

/* ── App shell ─────────────────────────────────────── */
.app {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────── */
.sidebar {
  background: var(--navy);
  color: var(--paper);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  display: block;
  padding: 4px 8px 24px 8px;
  color: var(--paper);
  text-decoration: none;
}
.sidebar .brand:hover { text-decoration: none; opacity: 0.92; }
.sidebar .brand-logo {
  display: block;
  width: 130px;
  height: auto;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 6px;
  color: rgba(239,236,235,0.78);
  font-weight: 500;
  font-size: 13.5px;
  border-left: 2px solid transparent;
}
.sidebar nav a:hover { background: rgba(255,255,255,0.06); color: var(--paper); text-decoration: none; }
.sidebar nav a.active {
  background: rgba(255,79,63,0.12);
  color: var(--paper);
  border-left-color: var(--coral);
}
.sidebar nav a .ico { font-size: 16px; width: 18px; display: inline-block; text-align: center; }
.sidebar .footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 11px;
  color: rgba(239,236,235,0.5);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── Header ────────────────────────────────────────── */
.header {
  height: var(--header-h);
  background: white;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky; top: 0; z-index: 10;
}
.header h1 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}
.header .user {
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--muted);
}
.header .user .name { color: var(--ink); font-weight: 500; }
.header .user .avatar {
  width: 32px; height: 32px;
  background: var(--coral);
  color: white;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
}
.header form { display: inline; }
.header .logout {
  background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 12px;
}
.header .logout:hover { color: var(--coral); }

/* ── Main ──────────────────────────────────────────── */
main { padding: 28px 32px 64px 32px; }
main > .page-title {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
}
main > .page-title h2 { font-size: 26px; }
main > .page-title .sub {
  color: var(--muted); font-size: 13px; margin-top: 4px;
}

/* ── Cards / panels ────────────────────────────────── */
.panel {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin-bottom: 16px;
}
.panel h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 12px;
  font-weight: 600;
}

/* ── Stat tiles ────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--coral);
  border-radius: 8px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
}
.stat .label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.stat .value { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.stat:nth-child(2) { border-left-color: var(--coral-soft); }
.stat:nth-child(3) { border-left-color: var(--info); }
.stat:nth-child(4) { border-left-color: var(--warning); }

/* ── Tables ────────────────────────────────────────── */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--rule);
  font-size: 13.5px;
}
.table th {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--paper-2);
}
.table tr:hover td { background: var(--paper-2); }

/* ── Badges ────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--paper);
  color: var(--ink);
}
.badge.coral { background: var(--coral); color: white; }
.badge.lead { background: var(--coral-soft); color: var(--coral-deep); }
.badge.client { background: #d1fae5; color: var(--success); }
.badge.archived { background: var(--rule); color: var(--muted); }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 9px 16px;
  background: var(--coral);
  color: var(--ink);
  border: none;
  border-radius: 6px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { background: var(--coral-deep); color: white; text-decoration: none; }
.btn.ghost { background: white; color: var(--ink); border: 1px solid var(--rule); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); }

/* ── Filter tabs ───────────────────────────────────── */
.tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 16px;
}
.tabs a {
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 500;
  font-size: 13.5px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

/* ── Pipeline board ────────────────────────────────── */
.board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 260px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.board .col {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--coral);
  border-radius: 8px;
  padding: 10px 10px 14px;
}
.board .col h4 {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex; justify-content: space-between;
}
.board .col .count { color: var(--ink); font-weight: 700; }
.board .card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
}
.board .card .name { font-weight: 600; color: var(--ink); }
.board .card .meta { color: var(--muted); font-size: 11.5px; margin-top: 2px; }

/* ── Two-column grid ───────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
@media (max-width: 1100px) { .grid-2 { grid-template-columns: 1fr; } }

/* ── Forms ─────────────────────────────────────────── */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 5px; letter-spacing: 0.02em; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: inherit;
  font-size: 14px;
  background: white;
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,79,63,0.15);
}

/* ── Login screen ──────────────────────────────────── */
.login-shell {
  min-height: 100vh;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  background: white;
  border-radius: 12px;
  padding: 36px 32px;
  width: 380px;
  max-width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.login-card .login-logo {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 0 8px;
}
.login-card .lede { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.login-card .error {
  background: #fef2f2; color: var(--danger);
  padding: 10px 12px; border-radius: 6px;
  font-size: 13px; margin-bottom: 16px;
  border-left: 3px solid var(--danger);
}
.login-card .btn { width: 100%; padding: 11px; margin-top: 4px; }

/* ── Public form ───────────────────────────────────── */
.public-shell {
  min-height: 100vh;
  background: var(--paper-2);
  padding: 40px 20px;
}
.public-card {
  max-width: 640px;
  margin: 0 auto;
  background: white;
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.public-card .public-logo {
  width: 160px;
  height: auto;
  display: block;
  margin: 0 0 12px;
}
.public-card h1 { font-size: 28px; margin: 12px 0 6px; }
.public-card .lede { color: var(--muted); margin-bottom: 28px; }
.services-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-bottom: 14px;
}
.service-pick {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 14px;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
}
.service-pick:has(input:checked) {
  border-color: var(--coral);
  background: rgba(255,79,63,0.05);
}
.service-pick input { width: auto; }

/* ── Detail page heads (Lead, Quote, etc.) ─────────── */
.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.detail-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.detail-head .detail-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.detail-head .detail-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-head .detail-actions form { margin: 0; display: inline; }
.back-link {
  font-size: 12px; color: var(--muted); font-weight: 500;
}
.back-link:hover { color: var(--coral-deep); text-decoration: none; }

/* ── Quote line item table ─────────────────────────── */
.lineitem-table {
  width: 100%;
  border-collapse: collapse;
}
.lineitem-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 600;
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--rule);
}
.lineitem-table td {
  padding: 4px 6px;
  vertical-align: middle;
}
.lineitem-table td input {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  font-family: inherit;
  font-size: 13.5px;
  background: white;
  color: var(--ink);
}
.lineitem-table td input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 79, 63, 0.15);
}
.lineitem-table tr.lineitem td:first-child { padding-left: 0; }
.li-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.li-remove:hover { color: var(--coral-deep); background: var(--paper-2); }

/* ── Key/value rows (settings) ─────────────────────── */
.kv-row {
  display: flex; justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 13px;
}
.kv-row:last-child { border-bottom: none; }
.kv-row span { color: var(--muted); }
.kv-row strong { color: var(--ink); font-weight: 600; }

/* ── Flash banners ─────────────────────────────────── */
.flash {
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13.5px;
  margin-bottom: 16px;
  border-left: 3px solid var(--rule);
  background: var(--paper-2);
}
.flash.error { background: #fef2f2; color: var(--coral-deep); border-left-color: var(--coral-deep); }
.flash.notice { background: #ecfdf5; color: var(--success); border-left-color: var(--success); }

/* ── Form list rows (Settings → Forms) ─────────────── */
.form-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
}
.form-row:last-child { border-bottom: none; }
.form-row-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.form-row-head strong { font-size: 14.5px; color: var(--ink); }
.form-row-head .muted { color: var(--muted); font-size: 12.5px; }
.share-row label {
  display: block;
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); margin-bottom: 6px;
}
.share-url {
  display: flex; align-items: center; gap: 8px;
}
.share-url code {
  flex: 1;
  display: block;
  padding: 9px 12px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--ink);
  overflow-x: auto;
  white-space: nowrap;
}
.share-url .btn { padding: 9px 14px; font-size: 12.5px; }

/* ── Empty state ───────────────────────────────────── */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13.5px;
}
.empty .ico { font-size: 32px; opacity: 0.4; display: block; margin-bottom: 8px; }
.empty strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; }

/* ─────────────────────────────────────────────────────
   Marketing / landing page
   ───────────────────────────────────────────────────── */
body.marketing { background: var(--paper-2); font-size: 15px; }
body.marketing h1, body.marketing h2, body.marketing h3 { color: var(--ink); }

/* ── Top nav ──────────────────────────────────────── */
.marketing-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 40px;
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.78);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.marketing-nav .brand {
  display: inline-block;
  line-height: 0;
}
.marketing-nav .brand:hover { text-decoration: none; opacity: 0.85; }
.marketing-nav .nav-logo {
  height: 28px;
  width: auto;
  display: block;
}
.marketing-nav nav { display: flex; gap: 28px; }
.marketing-nav nav a {
  color: var(--body); font-weight: 500; font-size: 14px;
}
.marketing-nav nav a:hover { color: var(--coral); text-decoration: none; }
.marketing-nav .actions { display: flex; gap: 10px; align-items: center; }
.marketing-nav .actions .btn { padding: 8px 14px; font-size: 13px; }

@media (max-width: 820px) {
  .marketing-nav { padding: 14px 20px; }
  .marketing-nav nav { display: none; }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255,79,63,0.12), transparent 60%),
    radial-gradient(700px 500px at 5% 110%, rgba(255,79,63,0.08), transparent 60%),
    var(--navy);
  color: var(--paper);
  padding: 80px 40px 110px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin: 14px 0 20px;
}
.hero h1 br { display: block; }
.hero .eyebrow {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral);
}
.hero .lede {
  font-size: 17px; line-height: 1.55;
  color: rgba(239,236,235,0.78);
  max-width: 540px;
  margin-bottom: 28px;
}
.hero .ctas { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.btn.lg { padding: 14px 22px; font-size: 14.5px; border-radius: 8px; }
.hero .btn.ghost { background: transparent; color: var(--paper); border: 1px solid rgba(255,255,255,0.25); }
.hero .btn.ghost:hover { background: rgba(255,255,255,0.06); }
.hero-meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px;
  color: rgba(239,236,235,0.6);
}
.hero-meta li { display: inline-flex; align-items: center; gap: 8px; }
.dot-coral {
  width: 6px; height: 6px; border-radius: 50%; background: var(--coral);
  display: inline-block;
}

/* ── Hero preview window ──────────────────────────── */
.hero-preview { position: relative; }
.window {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 6px 18px rgba(0,0,0,0.3);
  transform: rotate(0.3deg);
  border: 1px solid rgba(255,255,255,0.08);
}
.window-bar {
  background: #f3f4f6;
  border-bottom: 1px solid var(--rule);
  padding: 10px 14px;
  display: flex; align-items: center; gap: 8px;
}
.window-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #e5e7eb; }
.window-bar .dot.r { background: #ff5f57; }
.window-bar .dot.a { background: #febc2e; }
.window-bar .dot.g { background: #28c840; }
.window-bar .addr {
  margin-left: 14px;
  font-size: 11.5px; color: var(--muted);
  background: white;
  padding: 4px 10px; border-radius: 4px;
  border: 1px solid var(--rule);
  flex: 1;
}
.window-body {
  display: grid; grid-template-columns: 130px 1fr; min-height: 320px;
}
.mini-sidebar {
  background: var(--navy); color: var(--paper);
  padding: 12px 10px;
}
.mini-brand {
  font-size: 14px; font-weight: 800; letter-spacing: -0.02em;
  padding: 4px 6px 14px;
}
.mini-brand .dot { color: var(--coral); }
.mini-nav { display: flex; flex-direction: column; gap: 2px; }
.mi {
  font-size: 11.5px; padding: 6px 8px; border-radius: 4px;
  color: rgba(239,236,235,0.7);
}
.mi.active {
  background: rgba(255,79,63,0.14);
  color: var(--paper);
  border-left: 2px solid var(--coral);
  padding-left: 6px;
}
.mini-main { padding: 14px 16px; background: var(--paper-2); }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.mini-stat {
  background: white; border: 1px solid var(--rule);
  border-left: 2px solid var(--coral);
  border-radius: 5px;
  padding: 8px 10px;
}
.ms-label { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.ms-value { font-size: 18px; font-weight: 800; color: var(--ink); margin-top: 2px; }
.mini-list {
  background: white; border: 1px solid var(--rule); border-radius: 6px;
  overflow: hidden;
}
.ml-head {
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--rule);
  background: var(--paper-2); font-weight: 600;
}
.ml-row {
  display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center;
  padding: 8px 12px; font-size: 11.5px; border-bottom: 1px solid var(--rule);
}
.ml-row:last-child { border-bottom: none; }
.ml-row.faded { opacity: 0.85; }
.ml-tag {
  background: var(--coral); color: var(--ink);
  font-size: 9.5px; font-weight: 700;
  padding: 2px 6px; border-radius: 999px;
  text-align: center;
}
.ml-row:nth-child(3) .ml-tag { background: var(--success); color: white; }
.ml-row:nth-child(4) .ml-tag { background: #3730a3; color: white; }
.ml-row:nth-child(5) .ml-tag { background: var(--navy-2); color: white; }
.ml-name { color: var(--ink); font-weight: 500; }
.ml-time { color: var(--muted); font-size: 10.5px; }

.hero-flag {
  position: absolute;
  bottom: -18px; left: -10px;
  background: var(--coral);
  color: var(--ink);
  font-size: 12px; font-weight: 700;
  padding: 9px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(255,79,63,0.45);
  transform: rotate(-3deg);
}
.hero-flag::before {
  content: ''; width: 8px; height: 8px; background: var(--ink); border-radius: 50%;
  display: inline-block; margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 0 0 rgba(15,27,45,0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(15,27,45,0.6); }
  100% { box-shadow: 0 0 0 12px rgba(15,27,45,0); }
}

@media (max-width: 1080px) {
  .hero { padding: 60px 24px 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero h1 { font-size: 40px; }
  .hero .lede { font-size: 16px; }
}

/* ── Generic section ──────────────────────────────── */
.m-section {
  padding: 96px 40px;
  max-width: 1240px; margin: 0 auto;
}
.m-section.alt {
  max-width: none;
  background: white;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.m-section.alt > .section-head,
.m-section.alt > .feature-grid {
  max-width: 1240px; margin-left: auto; margin-right: auto;
}
.section-head {
  text-align: center;
  margin-bottom: 56px;
  max-width: 720px; margin-left: auto; margin-right: auto;
}
.section-head .eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 14px;
}
.section-head h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.section-head .section-lede {
  color: var(--muted);
  font-size: 16px;
  margin-top: 14px;
}

@media (max-width: 820px) {
  .m-section { padding: 64px 24px; }
  .section-head h2 { font-size: 28px; }
}

/* ── Steps ────────────────────────────────────────── */
.step-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.step {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 28px 26px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.step-n {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--coral-deep);
  margin-bottom: 14px;
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--body); font-size: 14.5px; line-height: 1.55; }

@media (max-width: 820px) {
  .step-row { grid-template-columns: 1fr; }
}

/* ── Features grid ────────────────────────────────── */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 26px 24px;
  transition: border-color 0.2s ease;
}
.feature:hover { border-color: var(--coral); }
.f-ico {
  width: 40px; height: 40px;
  background: var(--coral);
  color: var(--ink);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  margin-bottom: 14px;
}
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--body); font-size: 14px; line-height: 1.55; }

@media (max-width: 1080px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .feature-grid { grid-template-columns: 1fr; } }

/* ── Split (Why Pixelish) ─────────────────────────── */
.split {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  align-items: center;
}
.split-copy .eyebrow {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--coral-deep); margin-bottom: 14px;
}
.split-copy h2 {
  font-size: 36px; line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.split-copy p { color: var(--body); font-size: 15.5px; line-height: 1.6; margin-bottom: 18px; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; color: var(--ink); font-size: 14.5px; font-weight: 500;
}
.checks li .check {
  background: var(--coral);
  color: var(--ink);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
}
.split-quote {
  background: var(--navy);
  color: var(--paper);
  padding: 40px 36px;
  border-radius: 12px;
  position: relative;
}
.split-quote::before {
  content: '"';
  font-family: Georgia, serif;
  font-size: 96px;
  position: absolute; top: 4px; left: 20px;
  color: var(--coral); opacity: 0.4; line-height: 1;
}
.split-quote blockquote {
  margin: 0; padding: 0;
  font-size: 22px; font-weight: 600; line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--paper);
  position: relative;
}
.quote-by { color: rgba(239,236,235,0.55); font-size: 13px; margin-top: 16px; }

@media (max-width: 940px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split-copy h2 { font-size: 28px; }
}

/* ── CTA banner ───────────────────────────────────── */
.cta-banner {
  background: var(--coral);
  color: var(--ink);
  text-align: center;
  padding: 80px 40px;
}
.marketing .cta-banner h2 {
  color: var(--ink); font-size: 38px; font-weight: 800;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.cta-banner p {
  font-size: 16px; max-width: 540px; margin: 0 auto 28px;
  color: var(--ink);
}
.cta-banner .ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.cta-banner .btn { background: var(--navy); color: white; }
.cta-banner .btn:hover { background: var(--ink); color: white; }
.cta-banner .btn.ghost {
  background: transparent; color: var(--ink);
  border: 1px solid rgba(15,27,45,0.35);
}
.cta-banner .btn.ghost:hover { background: rgba(15,27,45,0.08); color: var(--ink); }

@media (max-width: 640px) {
  .cta-banner { padding: 56px 24px; }
  .cta-banner h2 { font-size: 28px; }
}

/* ── Footer ───────────────────────────────────────── */
.marketing-footer {
  background: var(--navy);
  color: rgba(239,236,235,0.55);
  padding: 28px 40px;
  font-size: 13px;
}
.mf-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.footer-logo {
  height: 24px;
  width: auto;
  display: block;
}
.marketing-footer a { color: var(--paper); text-decoration: underline; }
.marketing-footer a:hover { color: var(--coral); }

/* ── Accessibility helpers ────────────────────────── */
.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: white;
  padding: 10px 16px; border-radius: 6px;
  font-size: 14px; font-weight: 600;
  z-index: 100;
}
.skip-link:focus {
  left: 12px;
  outline: 3px solid var(--coral);
  outline-offset: 2px;
  text-decoration: none;
}

.btn:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}
.hero .btn:focus-visible,
.cta-banner .btn:focus-visible {
  outline-color: white;
}
.marketing-nav nav a:focus-visible,
.marketing-footer a:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 3px;
  text-decoration: none;
}
.marketing-nav .brand:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 4px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-flag::before { animation: none; }
  .step { transition: none; }
  .step:hover { transform: none; }
  .feature { transition: none; }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
