:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --border: #e4e7ec;
  --border-strong: #cfd4dc;
  --text: #16191f;
  --text-2: #3f4650;
  --muted: #5f6b7a;   /* 4.9:1 on the page background (WCAG AA) */
  --accent: #0f766e;
  --accent-2: #14b8a6;
  --accent-ink: #0b5f59;
  --accent-soft: #e6f4f2;
  --amber: #b45309; --amber-soft: #fff4e0;
  --red: #b91c1c; --red-soft: #fee2e2;
  --green: #15803d; --green-soft: #dcfce7;
  --blue: #1d4ed8; --blue-soft: #e0e9ff;
  --ink: #0f172a;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .04);
  --shadow-md: 0 4px 12px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: clip; }
body { font: 15px/1.55 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: -.02em; font-weight: 700; }
h2 { font-size: 17px; margin: 0; font-weight: 650; letter-spacing: -.01em; }
h3 { font-size: 12.5px; margin: 18px 0 8px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
p { margin: 0 0 8px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.strong { font-weight: 600; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.text-red { color: var(--red); }
.inline { display: inline; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }

/* top bar */
.topbar { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5; }
.topbar-inner { display: flex; align-items: center; gap: 28px; height: 60px; white-space: nowrap; overflow-x: auto; }
.viewas { background: #312e81; color: #e0e7ff; border-bottom: 1px solid #4338ca; position: sticky; top: 60px; z-index: 5; font-size: 14px; }
.viewas b { color: #fff; }
.viewas-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.viewas .btn { background: #fff; color: #312e81; border-color: #fff; }
.viewas .pill { vertical-align: middle; }
@media (max-width: 640px) { .topbar-inner { gap: 14px; } .brand { font-size: 15px; } .topbar-right { gap: 10px; } .topbar-right .btn { display: none; } }
.brand { font-weight: 750; color: var(--text); display: flex; align-items: center; gap: 10px; font-size: 16px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); display: inline-grid; place-items: center; color: #fff; font-size: 12px; font-weight: 800; box-shadow: inset 0 -2px 0 rgba(0,0,0,.12); }
.brand-mark::before { content: "L"; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--text-2); font-weight: 500; padding: 7px 11px; border-radius: 8px; font-size: 14px; }
.nav a:hover { background: #eef0f3; text-decoration: none; }
.nav a.active { color: var(--accent-ink); background: var(--accent-soft); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.mode { font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.mode-demo { background: var(--blue-soft); color: var(--blue); }
.mode-dry_run { background: var(--amber-soft); color: var(--amber); }
.mode-live { background: var(--green-soft); color: var(--green); }

/* layout */
main { padding: 28px 0 48px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head > div > .muted { max-width: 720px; }
.data-age { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin: -6px 0 8px; font-size: 13px; color: var(--muted, #6b7280); }
.data-age .linkish { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; color: var(--accent); cursor: pointer; }
.data-age .linkish:hover { text-decoration: underline; }
.back-btn { display: inline-flex; margin: 0 0 12px; padding: 10px 18px; font-size: 16px; font-weight: 650; border-radius: 10px; }
.page-head > div > .back-btn { display: flex; width: max-content; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; gap: 12px; }
.count { display: inline-block; background: var(--amber-soft); color: var(--amber); font-size: 12.5px; padding: 1px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; font-weight: 650; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.footer { padding: 22px 22px 34px; font-size: 13px; }
@media (max-width: 820px) { .two-col, .grid-2 { grid-template-columns: 1fr; } }

/* cards & tiles */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.narrative { margin-bottom: 18px; border-left: 4px solid var(--accent); }
.lede { font-size: 15.5px; line-height: 1.65; margin: 0; color: var(--text-2); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 10px; }
@media (max-width: 820px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.tile-accent { border-color: #bfe3de; background: linear-gradient(180deg, #f0faf8, #e6f4f2); }
.tile-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.tile-value { font-size: 30px; font-weight: 750; margin-top: 4px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.tile-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 9px; padding: 8px 14px; font: inherit; font-weight: 550; cursor: pointer; line-height: 1.2; transition: background .12s, box-shadow .12s, transform .06s; }
.btn:hover { background: #f1f3f5; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-ghost { background: transparent; }
.btn-small { padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn-large { padding: 13px 24px; font-size: 16px; border-radius: 11px; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); font-weight: 650; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fbfcfd; }
.table.compact th, .table.compact td { padding: 9px 12px; font-size: 14px; }
.row-muted td { opacity: .55; }
.row-muted td.check-col { opacity: 1; }
.check-col { width: 70px; text-align: center; }
.check-col input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent); }
.table td form { display: inline; margin-left: 4px; }
.scroll-x { overflow-x: auto; }
.mini { border-collapse: collapse; font-size: 12.5px; margin: 4px 0; }
.mini th, .mini td { padding: 4px 8px; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
.mini th { color: var(--muted); font-weight: 600; }

/* pills */
.pill { display: inline-block; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 999px; line-height: 1.5; vertical-align: middle; letter-spacing: .01em; }
.pill-gray { background: #eef0f3; color: #4b5563; }
.pill-amber { background: var(--amber-soft); color: var(--amber); }
.pill-red { background: var(--red-soft); color: var(--red); }
.pill-green { background: var(--green-soft); color: var(--green); }
.pill-blue { background: var(--blue-soft); color: var(--blue); }
.pill-risk-low { background: var(--green-soft); color: var(--green); }
.pill-risk-medium { background: var(--amber-soft); color: var(--amber); }
.pill-risk-high { background: var(--red-soft); color: var(--red); }
.pill-risk-info { background: var(--blue-soft); color: var(--blue); }
.pill-status-applied, .pill-status-auto_applied { background: var(--green-soft); color: var(--green); }
.pill-status-rejected, .pill-status-failed { background: var(--red-soft); color: var(--red); }
.pill-status-dismissed, .pill-status-expired, .pill-status-pending, .pill-status-approved { background: #eef0f3; color: #4b5563; }

/* proposals */
.group-title { margin-top: 20px; }
.proposals { display: flex; flex-direction: column; gap: 10px; }
.proposal { display: flex; gap: 16px; background: var(--surface); border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius); padding: 15px 18px; box-shadow: var(--shadow); }
.proposal.risk-low { border-left-color: #22c55e; }
.proposal.risk-medium { border-left-color: #f59e0b; }
.proposal.risk-high { border-left-color: #ef4444; }
.proposal.risk-info { border-left-color: #3b82f6; }
.proposal-main { flex: 1; min-width: 0; }
.proposal-title { font-weight: 640; font-size: 15px; letter-spacing: -.005em; }
.proposal-meta { display: flex; gap: 8px; align-items: center; margin: 5px 0 7px; flex-wrap: wrap; }
.rationale { color: var(--text-2); margin: 0; font-size: 14px; line-height: 1.55; }
.proposal-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 120px; }
.proposal-actions .btn { justify-content: center; }
@media (max-width: 640px) { .proposal { flex-direction: column; } .proposal-actions { flex-direction: row; } }

/* evidence */
.evidence { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 10px 0 0; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; }
.evidence dt { color: var(--muted); text-transform: capitalize; }
.evidence dd { margin: 0; min-width: 0; }
.kv { display: inline-block; margin-right: 12px; }
.kv .k { color: var(--muted); }

/* lists */
.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.list-main { min-width: 0; line-height: 1.6; }
.list-main .pill { margin-right: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 8px; vertical-align: middle; }
.dot-ok { background: #22c55e; } .dot-bad { background: #ef4444; }

/* forms */
label { display: block; font-weight: 550; margin: 12px 0 0; font-size: 14px; }
label input[type=text], label input[type=number], label input[type=email], label input[type=password], label input[type=search], label textarea, label select {
  display: block; width: 100%; margin-top: 6px; padding: 9px 11px; border: 1px solid var(--border-strong); border-radius: 9px; font: inherit; background: #fff; transition: border-color .12s, box-shadow .12s;
}
label input:focus, label textarea:focus, label select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
label textarea { resize: vertical; }
label.check { display: flex; align-items: center; gap: 8px; font-weight: 400; margin: 8px 0 0; }
label.check input { margin: 0; accent-color: var(--accent); flex-shrink: 0; }
label.check a { text-decoration: underline; }
.settings-form .card h2 { margin-bottom: 6px; }
.login-box { max-width: 400px; margin: 56px auto; }
.login-box h1 { margin-bottom: 10px; }

/* setup steps */
.steps { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-size: 13px; color: var(--muted); }
.step .n { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; align-items: center; justify-content: center; background: #eef0f3; font-weight: 700; font-size: 12px; }
.step.done { color: var(--green); border-color: #a7e3bd; background: var(--green-soft); }
.step.done .n { background: var(--green); color: #fff; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; background: #eef0f3; padding: 1px 5px; border-radius: 4px; }

/* flashes & empties */
.flashes { margin-bottom: 16px; }
.flash { padding: 11px 14px; border-radius: 9px; font-size: 14px; margin-bottom: 8px; border: 1px solid transparent; }
.flash-ok { background: var(--green-soft); color: var(--green); border-color: #bde5c8; }
.flash-error { background: var(--red-soft); color: var(--red); border-color: #f5c2c2; }
.empty { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: 32px; text-align: center; color: var(--muted); }
.small-empty { padding: 16px; font-size: 14px; }

/* ask the agent */
.ask { margin-top: 22px; }
.ask textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 9px; font: inherit; resize: vertical; }
.convo { border-top: 1px solid var(--border); margin-top: 14px; padding-top: 12px; }
.convo-q { font-weight: 550; margin-bottom: 6px; }
.convo-a { color: var(--text-2); background: var(--surface-2); border-left: 3px solid var(--accent); padding: 8px 12px; border-radius: 6px; font-size: 14.5px; line-height: 1.55; }

/* legal */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin: 18px 0 6px; font-size: 16px; }
.legal p { color: var(--text-2); }

/* ------------------------------------------------------------------ shared bits */
.row-form { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.row-form .list-main { flex: 1; min-width: 0; }
.row-form .btn { white-space: nowrap; }
.btn-block { width: 100%; justify-content: center; }
.stack-form input:not([type=checkbox]) { display: block; width: 100%; }
.signup-box { max-width: 440px; }
.signup-box .lp-eyebrow { margin-bottom: 8px; }
.signup-box h1 { font-size: 30px; letter-spacing: -.03em; }
.signup-box .form-actions { margin-top: 22px; }
.signup-box .small { margin-top: 16px; }

/* plan picker (signup) */
.plan-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.plan-opt { position: relative; border: 2px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; margin: 0; font-weight: 400; }
.plan-opt.on, .plan-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.plan-opt input { position: absolute; opacity: 0; pointer-events: none; }
.plan-opt b { display: block; font-size: 15px; }
.plan-opt span { display: block; font-weight: 700; color: var(--accent-ink); font-size: 14px; }
.plan-opt em { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }

/* template picker */
.tpl-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 14px; }
.tpl-opt { position: relative; border: 2px solid var(--border); border-radius: 12px; padding: 8px; cursor: pointer; margin: 0; font-weight: 400; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.tpl-opt:hover { border-color: var(--border-strong); }
.tpl-opt.on, .tpl-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.tpl-opt input { position: absolute; opacity: 0; pointer-events: none; }
.tpl-opt img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-radius: 8px; border: 1px solid var(--border); background: #eef1f4; display: block; margin-bottom: 8px; }
.tpl-opt b { display: block; font-size: 13.5px; color: var(--ink); }
.tpl-opt span { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 700px) { .grid-3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ landing page */
.lp-page { background: #f6f7f9; }
.lp-page .topbar { background: rgba(9, 14, 26, .82); border-bottom-color: rgba(255,255,255,.08); }
.lp-page .brand, .lp-page .topbar-right .muted { color: #fff; }
.lp-page .topbar-right .muted:hover { text-decoration: none; opacity: .85; }
.lp-page .btn-primary { background: #22c55e; border-color: #22c55e; color: #052e16; font-weight: 700; }
.lp-page .btn-primary:hover { background: #4ade80; border-color: #4ade80; }
.lp-page main.wrap { max-width: none; padding: 0; }
.lp-page .footer { max-width: 1140px; }
.lp { --lp-ink: #0b1220; --lp-navy: #0f172a; --lp-green: #22c55e; --lp-green-ink: #052e16; --lp-lime: #a3e635; }
.lp .wrap, .lp-section, .lp-strip, .lp-hero-inner, .lp-hero-mock, .lp-agency-inner, .lp-pages-inner, .lp-final-inner { max-width: 1140px; margin-left: auto; margin-right: auto; padding-left: 22px; padding-right: 22px; }
.lp-eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #15803d; margin-bottom: 12px; }
.lp-eyebrow-light { color: var(--lp-lime); }
.lp-arrow { display: inline-block; transition: transform .15s; margin-left: 2px; }
.btn-hero:hover .lp-arrow { transform: translateX(4px); }

/* hero */
.lp-hero { position: relative; overflow: hidden; background: radial-gradient(1200px 600px at 20% -10%, #14532d 0%, rgba(20,83,45,0) 60%), radial-gradient(900px 500px at 90% 10%, #0f766e 0%, rgba(15,118,110,0) 55%), linear-gradient(180deg, #0b1220 0%, #0f172a 100%); color: #fff; margin-top: -1px; padding: 84px 0 0; }
.lp-hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 85%); pointer-events: none; }
.lp-hero-glow { position: absolute; left: 50%; top: 40%; width: 900px; height: 900px; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(34,197,94,.22) 0%, rgba(34,197,94,0) 60%); filter: blur(20px); pointer-events: none; }
.lp-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 900px; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 7px 14px 7px 10px; font-size: 13px; font-weight: 650; letter-spacing: .01em; color: #e2e8f0; backdrop-filter: blur(6px); }
.lp-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-green); box-shadow: 0 0 0 4px rgba(34,197,94,.25); }
.lp-title { font-size: 76px; line-height: 1; letter-spacing: -.045em; margin: 22px 0 20px; font-weight: 800; color: #fff; }
.lp-title .lp-hl { color: var(--lp-green); }
.lp-sub { font-size: 20px; line-height: 1.55; color: #cbd5e1; margin: 0 auto 30px; max-width: 720px; }
.lp-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-hero { background: var(--lp-green); border-color: var(--lp-green); color: var(--lp-green-ink); font-weight: 800; padding: 16px 30px; font-size: 18px; border-radius: 14px; box-shadow: 0 10px 30px rgba(34,197,94,.35), inset 0 1px 0 rgba(255,255,255,.25); letter-spacing: -.01em; }
.btn-hero:hover { background: #4ade80; border-color: #4ade80; color: var(--lp-green-ink); box-shadow: 0 14px 36px rgba(34,197,94,.45); text-decoration: none; }
.btn-hero-ghost { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #fff; font-weight: 650; padding: 16px 24px; font-size: 17px; border-radius: 14px; }
.btn-hero-ghost:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.lp-fineprint { color: #94a3b8; font-size: 13.5px; margin-top: 16px; }
.lp-section .lp-fineprint { color: #5f6b7a; }
.lp-section .lp-fineprint a, .lp-refer a { text-decoration: underline; }
.lp-fineprint-light { color: #94a3b8; }
.lp-hero-mock { position: relative; z-index: 1; margin-top: 54px; padding-bottom: 0; }
.lp-mock { background: #111a2e; border: 1px solid rgba(255,255,255,.1); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 12px 12px 0; box-shadow: 0 -20px 80px rgba(34,197,94,.12), 0 30px 60px rgba(0,0,0,.4); max-width: 900px; margin: 0 auto; }
.lp-mock-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px 12px; }
.lp-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.lp-mock-bar em { margin-left: auto; font-style: normal; font-size: 12px; color: #64748b; font-weight: 600; letter-spacing: .02em; }
.lp-mock-body { background: #fff; border-radius: 12px 12px 0 0; padding: 8px; color: var(--text-2); }
.lp-mock-row { padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 15px; line-height: 1.5; }
.lp-mock-row:last-child { border-bottom: 0; }
.lp-mock-row .pill { margin-right: 8px; }
.lp-mock-row b { color: var(--ink); font-weight: 650; }

/* strip */
.lp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: -1px; padding-top: 28px; padding-bottom: 8px; position: relative; }
.lp-strip::before { content: ""; position: absolute; top: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); height: 1px; background: var(--border); }
.lp-strip div { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.lp-strip strong { display: block; font-size: 22px; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
.lp-strip span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* sections */
.lp-section { padding-top: 72px; padding-bottom: 16px; }
.lp-alt { position: relative; padding-bottom: 56px; }
.lp-alt::before { content: ""; position: absolute; top: 36px; bottom: 0; left: calc(50% - 50vw); right: calc(50% - 50vw); background: #eceff3; z-index: -1; }
.lp-h2 { font-size: 40px; letter-spacing: -.035em; line-height: 1.08; margin: 0 0 12px; font-weight: 800; color: var(--ink); max-width: 820px; }
.lp-h2-light { color: #fff; }
.lp-lead { font-size: 18px; color: var(--text-2); margin: 0 0 30px; max-width: 640px; }
.lp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
.lp-grid-4 { grid-template-columns: repeat(4, 1fr); }
.lp-feature-hot { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff 70%); }
.lp-feature { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.lp-feature:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.lp-icon { width: 44px; height: 44px; border-radius: 12px; background: #ecfdf5; display: grid; place-items: center; font-size: 22px; margin-bottom: 14px; }
.lp-feature h3, .lp-step h3, .lp-mode-card h3 { font-size: 19px; text-transform: none; letter-spacing: -.02em; color: var(--ink); margin: 0 0 6px; font-weight: 750; }
.lp-feature p, .lp-step p, .lp-mode-card p { color: var(--text-2); margin: 0; font-size: 15px; line-height: 1.6; }

/* landing pages section */
.lp-pages { margin-top: 72px; background: linear-gradient(160deg, #052e16 0%, #0f172a 55%, #0b1220 100%); color: #cbd5e1; padding: 72px 0; position: relative; overflow: hidden; }
.lp-pages::before { content: ""; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, rgba(34,197,94,.22), transparent 60%); pointer-events: none; }
.lp-pages-inner { position: relative; }
.lp-pages-lead { font-size: 18px; color: #cbd5e1; margin: 0 0 30px; max-width: 640px; }
.lp-pages-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-pages-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 24px; backdrop-filter: blur(6px); }
.lp-pages-n { width: 36px; height: 36px; border-radius: 10px; background: var(--lp-green); color: var(--lp-green-ink); display: grid; place-items: center; font-weight: 800; margin-bottom: 14px; }
.lp-pages-card h3 { color: #fff; font-size: 19px; margin: 0 0 8px; text-transform: none; letter-spacing: -.02em; font-weight: 750; }
.lp-pages-card p { margin: 0; font-size: 15px; line-height: 1.6; color: #cbd5e1; }
.lp-pages-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 30px; }
.lp-pages-cta .lp-fineprint { margin: 0; }

/* agency */
.lp-pages + .lp-agency { margin-top: 0; border-top: 1px solid rgba(255,255,255,.08); }
.lp-agency { position: relative; margin-top: 72px; background: linear-gradient(135deg, #0b1220 0%, #0f172a 60%, #14532d 140%); color: #cbd5e1; padding: 72px 0; }
.lp-agency::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 100% 0%, rgba(34,197,94,.18), transparent 60%); pointer-events: none; }
.lp-agency-inner { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.lp-agency-text p { font-size: 17px; line-height: 1.65; margin: 0 0 24px; }
.lp-agency-text strong { color: #fff; }
.btn-yt { background: #ff0000; border-color: #ff0000; color: #fff; font-weight: 700; padding: 13px 20px; font-size: 15.5px; border-radius: 12px; box-shadow: 0 8px 24px rgba(255,0,0,.3); }
.btn-yt:hover { background: #e60000; border-color: #e60000; color: #fff; text-decoration: none; }
.lp-agency-cards { display: grid; gap: 12px; }
.lp-agency-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 18px 20px; backdrop-filter: blur(6px); }
.lp-agency-card b { display: block; color: #fff; font-size: 16.5px; letter-spacing: -.01em; margin-bottom: 4px; }
.lp-agency-card span { display: block; font-size: 14.5px; line-height: 1.55; color: #cbd5e1; }
.lp-agency-card em { color: var(--lp-lime); font-style: normal; font-weight: 700; }

/* steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; counter-reset: step; }
.lp-step { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); position: relative; }
.lp-step-n { width: 40px; height: 40px; border-radius: 12px; background: var(--lp-navy); color: var(--lp-lime); display: grid; place-items: center; font-weight: 800; font-size: 17px; margin-bottom: 16px; }

/* modes */
.lp-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.lp-mode-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 26px; box-shadow: var(--shadow); }
.lp-mode-card-hot { border-color: #86efac; background: linear-gradient(180deg, #f0fdf4, #fff 70%); }
.lp-mode-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.lp-mode-head h3 { margin: 0; }

/* comparison */
.lp-compare-wrap { overflow-x: auto; margin-top: 6px; border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.lp-compare { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 15px; }
.lp-compare th, .lp-compare td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.lp-compare thead th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: #f8fafc; }
.lp-compare tbody td:first-child { font-weight: 700; color: var(--ink); width: 22%; }
.lp-compare td:not(:first-child):not(.us) { color: var(--text-2); }
.lp-compare .us { background: #f0fdf4; color: #14532d; font-weight: 700; }
.lp-compare thead th.us { background: #14532d; color: #fff; }
.lp-compare tbody tr:last-child td { border-bottom: 0; }

/* pricing */
.lp-plans { display: flex; justify-content: center; gap: 18px; align-items: stretch; flex-wrap: wrap; }
.lp-plans-2 .lp-price-main { max-width: 500px; }
.lp-price-growth { border-color: #86efac; box-shadow: 0 24px 60px rgba(34,197,94,.18); }
.lp-price-growth .lp-price-top { background: linear-gradient(135deg, #14532d, #0f172a); }
.lp-refer { text-align: center; margin-top: 26px; color: var(--text-2); font-size: 15px; }
.lp-agency-plan { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 26px auto 0; max-width: 1020px; background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 24px 28px; box-shadow: var(--shadow); }
.lp-agency-plan h3 { font-size: 22px; margin: 0 0 6px; text-transform: none; letter-spacing: -.02em; color: var(--ink); font-weight: 750; }
.lp-agency-plan p { margin: 0; color: var(--text-2); font-size: 15px; max-width: 640px; }
.lp-price { display: flex; justify-content: center; }
.lp-price-main { background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 0 0 34px; max-width: 580px; width: 100%; box-shadow: 0 24px 60px rgba(15,23,42,.12); overflow: hidden; }
.lp-price-top { background: var(--lp-navy); color: #fff; padding: 32px 38px 28px; margin-bottom: 22px; position: relative; overflow: hidden; }
.lp-price-top::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34,197,94,.35), transparent 65%); }
.lp-price-top .lp-eyebrow { color: var(--lp-lime); }
.lp-price-big { font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1; position: relative; }
.lp-price-big span { font-size: 20px; font-weight: 600; color: #cbd5e1; letter-spacing: 0; margin-left: 4px; }
.lp-price-then { font-size: 16px; color: #cbd5e1; margin-top: 10px; position: relative; }
.lp-aud { display: inline-block; margin-left: 6px; font-size: 13px; color: #94a3b8; }
.lp-checks { list-style: none; padding: 0 38px; margin: 0 0 24px; }
.lp-checks li { padding: 10px 0 10px 32px; position: relative; border-bottom: 1px solid var(--border); color: var(--text-2); font-size: 15.5px; }
.lp-checks li:last-child { border-bottom: 0; }
.lp-checks li::before { content: "✓"; position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: #dcfce7; color: #15803d; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.lp-price-main .btn-hero { margin: 0 38px; width: calc(100% - 76px); }
.lp-price-main .lp-fineprint { text-align: center; color: var(--muted); }

/* faq */
.lp-faq details { max-width: 820px; }
.lp-faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 16px 20px; margin-bottom: 8px; }
.lp-faq summary { cursor: pointer; font-weight: 650; font-size: 16px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: "+"; color: var(--muted); font-size: 20px; flex-shrink: 0; }
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 10px 0 2px; color: var(--text-2); font-size: 15px; line-height: 1.6; }

/* final */
.lp-final { margin-top: 72px; background: linear-gradient(180deg, #0f172a, #0b1220); color: #fff; padding: 80px 0 72px; text-align: center; position: relative; overflow: hidden; }
.lp-final::before { content: ""; position: absolute; left: 50%; bottom: -300px; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(34,197,94,.25), transparent 60%); pointer-events: none; }
.lp-final-inner { position: relative; }
.lp-final h2 { font-size: 40px; letter-spacing: -.035em; margin: 0 auto 26px; font-weight: 800; color: #fff; max-width: 720px; line-height: 1.1; }
.lp-page .footer { color: #5f6b7a; }
.footer a { text-decoration: underline; }

@media (max-width: 900px) {
  .lp-title { font-size: 54px; }
  .lp-h2, .lp-final h2 { font-size: 32px; }
  .lp-strip, .lp-steps, .lp-grid, .lp-grid-3, .lp-grid-4, .lp-modes, .lp-pages-grid { grid-template-columns: 1fr 1fr; }
  .lp-agency-inner { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
  .lp-hero { padding-top: 56px; }
  .lp-title { font-size: 40px; }
  .lp-sub { font-size: 17px; }
  .lp-h2, .lp-final h2 { font-size: 28px; }
  .lp-steps, .lp-grid, .lp-grid-3, .lp-grid-4, .lp-modes, .lp-pages-grid { grid-template-columns: 1fr; }
  .lp-strip { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lp-strip div { padding: 14px 16px; }
  .lp-strip strong { font-size: 18px; }
  .lp-price-top { padding: 26px 22px; }
  .lp-checks { padding: 0 22px; }
  .lp-price-main .btn-hero { margin: 0 22px; width: calc(100% - 44px); }
  .btn-hero, .btn-hero-ghost { width: 100%; justify-content: center; }
  .lp-mock-row { font-size: 14px; }
}

/* ---------------------------------------------------------------- accessibility + legal pages */
.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: -5000px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { left: 8px; outline: 3px solid var(--accent-2); }
a:focus-visible, button:focus-visible, .btn:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
label input:focus-visible, label textarea:focus-visible, label select:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
.plan-opt:has(input:focus-visible), .tpl-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
fieldset.plan-pick { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
fieldset.tpl-pick { border: 0; padding: 0; min-width: 0; }
fieldset.pal-pick { border: 0; padding: 0; min-width: 0; margin: 0 0 14px; }
fieldset.pal-pick legend { font-weight: 600; font-size: 14px; padding: 0; margin-bottom: 8px; }
.pal-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.pal-opt { position: relative; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; border: 2px solid var(--border); border-radius: 10px; padding: 8px 10px; cursor: pointer; margin: 0; font-weight: 400; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.pal-opt:hover { border-color: var(--border-strong); }
.pal-opt.on, .pal-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(15,118,110,.15); }
.pal-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pal-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.pal-sw { grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 10px; background: linear-gradient(135deg, var(--p) 0 62%, var(--a) 62% 100%); border: 1px solid rgba(0,0,0,.12); }
.pal-opt b { font-size: 13px; color: var(--ink); line-height: 1.2; }
.pal-opt > span:last-child { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.renewal-note { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--text-2); margin-top: 12px; }
.footer-links { margin-bottom: 8px; }
.footer-legal { font-size: 12.5px; line-height: 1.55; color: var(--muted); max-width: 900px; }
.legal { max-width: 860px; margin: 18px auto 30px; padding: 26px 28px; }
.legal h1 { margin-bottom: 8px; }
.legal h2 { font-size: 17px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.65; margin-bottom: 10px; }
.legal a { text-decoration: underline; }
.legal-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.legal-nav a { padding: 5px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; text-decoration: none; color: var(--text-2); }
.legal-nav a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.legal-who { margin-bottom: 18px; }
.table-wrap { overflow-x: auto; margin: 8px 0 14px; }
.legal .table td, .legal .table th { vertical-align: top; }
.btn-danger { border-color: var(--red); color: var(--red); background: var(--surface); }
.btn-danger:hover { background: var(--red-soft); }
.linklike { border: 0; background: none; padding: 0; color: var(--accent); font: inherit; cursor: pointer; text-decoration: underline; }
/* Links inside running text are underlined so they don't rely on colour alone (WCAG 1.4.1). */
main p a, main li a, main td a, main dd a, .flash a, .empty a, .lede a, .rationale a { text-decoration: underline; }
.flash a { color: inherit; font-weight: 600; }

/* before/after admin list */
.ba-admin { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.ba-admin-row { display: grid; grid-template-columns: 96px 96px 1fr auto; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.ba-admin-row img { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); }
.ba-admin-meta { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 560px) { .ba-admin-row { grid-template-columns: 1fr 1fr; } .ba-admin-row img { width: 100%; height: auto; aspect-ratio: 4 / 3; } }

/* ---------------------------------------------------------------- talk to us: book a call + ask */
.lp-talk { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 8px; }
.lp-talk-card { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 26px; box-shadow: var(--shadow); }
.lp-talk-card h3 { font-size: 20px; text-transform: none; letter-spacing: -.02em; color: var(--ink); margin: 0 0 6px; font-weight: 750; }
.lp-talk-card > p { color: var(--text-2); margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.lp-talk-form label { margin-top: 10px; }
.lp-talk-form input, .lp-talk-form textarea { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: 10px; font: inherit; }
.lp-talk-form .btn-hero { margin-top: 16px; font-size: 16px; padding: 14px 22px; }
.lp-talk-form .hp { position: absolute; left: -5000px; }
.lp-chat-log { background: #f6f7f9; border: 1px solid var(--border); border-radius: 14px; padding: 12px; height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.lp-msg { max-width: 88%; padding: 10px 13px; border-radius: 14px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; }
.lp-msg-bot { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; color: var(--text); }
.lp-msg-me { background: var(--lp-navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.lp-chat-form { display: flex; gap: 8px; margin-top: 10px; }
.lp-chat-form input { flex: 1; min-width: 0; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 12px; font: inherit; font-size: 15px; }
.lp-chat-form .btn-hero { padding: 12px 20px; font-size: 16px; }
@media (max-width: 820px) { .lp-talk { grid-template-columns: 1fr; } }

/* ---------- campaigns & keywords dashboard */
.kw-layout { display: grid; grid-template-columns: 340px 1fr; gap: 18px; align-items: start; }
.kw-tree { padding: 12px; max-height: calc(100vh - 200px); overflow: auto; position: sticky; top: 76px; }
.kw-tree-head input { width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; font: inherit; margin-bottom: 10px; }
.kw-camp { margin-bottom: 14px; }
.kw-camp-head { padding: 6px 4px 8px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.kw-camp-head b { font-size: 14px; }
.kw-group { margin: 6px 0 10px; }
.kw-group-head { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 4px 4px; }
.kw-row { display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: 6px 6px; font: inherit; cursor: pointer; color: var(--ink); }
.kw-row:hover { background: var(--surface-2); }
.kw-row.on { border-color: var(--accent); background: rgba(15,118,110,.06); }
.kw-row .kw-qs { grid-row: 1 / span 2; }
.kw-text { font-weight: 600; font-size: 13.5px; }
.kw-mini { grid-column: 2; }
.kw-qs { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; }
.kw-qs-good { background: #15803d; } .kw-qs-mid { background: #d97706; } .kw-qs-bad { background: #b91c1c; } .kw-qs-none { background: #9ca3af; }
.kw-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 34px; }
.kw-tab { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 8px 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.kw-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.kw-tab-x { border: 0; background: transparent; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 4px; opacity: .7; }
.kw-tab-x:hover { opacity: 1; }
.kw-panel { padding: 18px; }
.kw-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 14px; }
.kw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.kw-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.kw-card-wide { grid-column: 1 / -1; }
.kw-card-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.kw-big { font-size: 44px; font-weight: 800; line-height: 1; display: inline-block; padding: 6px 14px; border-radius: 12px; color: #fff; margin-bottom: 10px; }
.kw-big span { font-size: 18px; font-weight: 600; opacity: .8; margin-left: 2px; }
.kw-parts > div { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.kw-parts > div > span:first-child { color: var(--muted); }
.kw-grade { font-weight: 700; padding: 2px 8px; border-radius: 999px; font-size: 12.5px; }
.kw-grade.good { background: #dcfce7; color: #166534; } .kw-grade.mid { background: #fef3c7; color: #92400e; } .kw-grade.bad { background: #fee2e2; color: #991b1b; }
.kw-bars > div { display: grid; grid-template-columns: 150px 1fr 48px; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; }
.kw-bars span { color: var(--muted); }
.kw-bar { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.kw-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.kw-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kw-stats > div { text-align: center; padding: 8px 4px; background: var(--surface-2); border-radius: 10px; }
.kw-stats b { display: block; font-size: 17px; }
.kw-stats span { font-size: 12px; color: var(--muted); }
.kw-spark { width: 100%; height: auto; display: block; margin-bottom: 4px; }
@media (max-width: 900px) { .kw-layout { grid-template-columns: 1fr; } .kw-tree { position: static; max-height: 360px; } .kw-grid { grid-template-columns: 1fr; } .kw-stats { grid-template-columns: repeat(2, 1fr); } }

/* New-lead bell and toasts */
.bell { position: relative; margin: 0 10px 0 4px; display: inline-flex; align-items: center; text-decoration: none; font-size: 18px; line-height: 1; }
.bell:hover { text-decoration: none; }
.bell-n[hidden] { display: none; }
.bell-n { position: absolute; top: -7px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 10px; max-width: min(360px, calc(100vw - 32px)); }
.toast { display: flex; flex-direction: column; gap: 2px; background: #111827; color: #fff; padding: 14px 16px; border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.25); text-decoration: none; animation: toast-in .25s ease-out; }
.toast:hover { text-decoration: none; background: #1f2937; }
.toast span { color: #86efac; font-weight: 650; }
.toast small { color: #cbd5e1; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
tr.lead-new td { background: #eff6ff; }

/* Keyword optimisation centre */
.opt-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.opt-tile { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 2px solid var(--border); color: var(--text); text-decoration: none; transition: border-color .12s, box-shadow .12s; }
.opt-tile:hover { text-decoration: none; border-color: var(--border-strong); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.opt-tile .opt-n { font-size: 34px; font-weight: 800; line-height: 1; color: var(--red); }
.opt-tile.zero .opt-n { color: var(--green); }
.opt-tile .opt-l { font-weight: 650; }
.opt-tile.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.opt-card { margin-bottom: 8px; }
.table-scroll { overflow-x: auto; margin-top: 10px; }
.opt-table td { vertical-align: middle; }
.opt-act { text-align: right; white-space: nowrap; }
.opt-act form { margin: 0; }
@media (max-width: 720px) { .opt-tiles { grid-template-columns: 1fr; } .opt-tile { flex-direction: row; align-items: center; gap: 14px; padding: 14px 16px; } .opt-tile .opt-n { font-size: 26px; } }

/* Retargeting: picture spots and the ad preview */
.pic-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 12px 0; }
.pic-slot { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.pic-slot input[type=file] { font-size: 12px; }
.pic-box { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; justify-content: center; min-height: 92px; padding: 6px; border: 2px dashed var(--border-strong); border-radius: 12px; background: var(--surface); }
.pic-box img { max-height: 76px; max-width: 100%; border-radius: 6px; }
.pic-plus { font-size: 26px; color: var(--muted); }
.pic-slot:hover .pic-box { border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.ad-shapes { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-top: 10px; }
.ad-shape { margin: 0; }
.ad-banner, .ad-square, .ad-phone { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; }
.ad-banner { width: min(380px, 100%); }
.ad-square { width: 220px; }
.ad-phone { width: 190px; }
.ad-shapes img { display: block; width: 100%; }
.ad-copy { padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; color: #111827; }
.ad-logo { width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border); flex: 0 0 auto; }
.pic-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.pic-strip img { height: 90px; border-radius: 8px; border: 1px solid var(--border); }

/* Photo library */
.folders { display: grid; gap: 14px; margin-top: 12px; }
.folder { border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.folder-head { margin-bottom: 8px; }
.folder-pics { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.lib-pic { margin: 0; width: 140px; display: flex; flex-direction: column; gap: 4px; }
.lib-pic img { width: 140px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.lib-pic input[type=text] { width: 100%; padding: 4px 6px; font-size: 12px; border: 1px solid var(--border); border-radius: 6px; }
.lib-actions { display: flex; gap: 6px; align-items: center; }
.lib-actions select { font-size: 12px; padding: 3px 4px; border: 1px solid var(--border); border-radius: 6px; max-width: 86px; }
.folder-add .drop { display: flex; align-items: center; justify-content: center; width: 140px; height: 96px; border: 2px dashed var(--border-strong); border-radius: 8px; cursor: pointer; font-size: 13px; color: var(--muted); text-align: center; padding: 6px; }
.folder-add .drop:hover { border-color: var(--accent); color: var(--accent); }
.folder-add input[type=file] { display: none; }
.pair-matches { display: flex; gap: 14px; flex-wrap: wrap; }
.pair-match { display: flex; gap: 6px; align-items: center; }
.pair-match img { width: 92px; height: 68px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }

/* Lead outcomes */
.lead-marks { display: flex; gap: 4px; flex-wrap: wrap; margin: 0; }
.lead-marks .mark { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.lead-marks .mark:hover { background: #f1f3f5; }
.lead-marks .mark.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.lead-marks .mark-won.on { background: var(--green); border-color: var(--green); }
.lead-outcome { white-space: nowrap; }
