:root {
  --bg: #f7f8f6;
  --surface: #ffffff;
  --ink: #15202b;
  --ink-2: #4a5663;
  --muted: #7a8794;
  --line: #e2e6ea;
  --brand: #0f3d5c;        /* bluegill blue */
  --brand-2: #176b86;
  --accent: #e3762e;       /* bluegill orange */
  --accent-ink: #9a4a14;
  --ok: #1f8a5b;
  --warn: #b86a0b;
  --neg: #b4261e;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(21, 32, 43, 0.06), 0 8px 24px rgba(21, 32, 43, 0.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 17px; }
a { color: var(--brand-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 750; }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.1vw, 1.8rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 650; }
p { margin: 0 0 1em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 680px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--muted); }
.fine { font-size: .85rem; color: var(--ink-2); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header / footer */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; color: var(--brand); text-decoration: none; font-size: 1.05rem; }
.brand-mark { width: 36px; height: 36px; overflow: visible; }
.pill { font-size: .78rem; font-weight: 600; color: var(--accent-ink); background: #fbe9db; border: 1px solid #f3cdb0; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-2); font-size: .9rem; background: var(--surface); }
.site-footer p { margin: 0 0 .4em; }

/* Sections */
section { padding: 48px 0; }
.hero { background: var(--surface); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.hero h1 { max-width: 820px; color: var(--brand); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 720px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 20px; }
.previews { padding-top: 40px; }
.gap { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gap p { font-size: 1.05rem; color: var(--ink-2); }
.signup { background: var(--brand); color: #fff; }
.signup h2 { color: #fff; }
.signup p { color: #d6e2ea; }
.signup .fine a { color: #fff; }
.prose h2 { margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.plain { padding-left: 1.2em; }
.next { padding-bottom: 72px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 650; padding: 11px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #cf6722; }
.btn-lg { padding: 14px 24px; font-size: 1.05rem; }
.btn-choice { background: var(--surface); color: var(--brand); border-color: var(--line); font-size: 1.3rem; padding: 18px 10px; flex-direction: column; line-height: 1; min-width: 0; }
.btn-choice small { font-size: .8rem; font-weight: 500; color: var(--muted); margin-top: 6px; }
.btn-choice:hover { border-color: var(--brand-2); }
.btn-choice[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.btn-choice[aria-pressed="true"] small { color: #cfe0ea; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0 10px; }
.price-done { color: var(--ok); font-weight: 600; }

/* Cards */
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cards li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.cards li p { margin: 0; color: var(--ink-2); }
.cards-link li { padding: 0; }
.cards-link a { display: block; padding: 22px; height: 100%; color: inherit; text-decoration: none; border-radius: var(--radius); }
.cards-link a:hover { outline: 2px solid var(--brand-2); }
.cards-link .link { display: inline-block; margin-top: 12px; color: var(--brand-2); font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.steps li { position: relative; padding-top: 4px; }
.steps li p { color: var(--ink-2); margin: 0; }
.step-n { display: inline-flex; width: 30px; height: 30px; align-items: center; justify-content: center; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: .9rem; margin-bottom: 10px; }

/* Previews (mock screens) */
.preview-grid { display: grid; grid-template-columns: 3fr 2fr; gap: 20px; align-items: start; }
.preview { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.preview-chrome { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f0f3f5; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--ink-2); }
.dots { display: inline-flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #cfd6dc; display: block; }
.preview-title { font-weight: 600; flex: 1; }
.badge { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); background: #fbe9db; padding: 3px 8px; border-radius: 4px; }
.preview-body { padding: 14px; }
.preview figcaption { padding: 12px 14px 14px; font-size: .9rem; color: var(--ink-2); border-top: 1px solid var(--line); background: #fbfcfc; }
.preview-foot { margin: 10px 0 0; font-size: .78rem; color: var(--muted); font-family: var(--mono); }
.ask { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: #fff; font-size: .95rem; }
.ask-icon { color: var(--brand-2); font-weight: 700; }
.ask-text { flex: 1; color: var(--ink); }
.ask-btn { background: var(--brand); color: #fff; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; white-space: nowrap; }
.tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl th { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 650; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl td.warn { color: var(--warn); font-weight: 650; }
.tbl td.neg { color: var(--neg); font-weight: 650; }
.tbl.small { font-size: .78rem; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: 150px 1fr 90px; align-items: center; gap: 10px; font-size: .88rem; }
.bar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-track { height: 12px; background: #eef1f3; border-radius: 6px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--brand-2); border-radius: 6px; min-width: 2px; }
.bar-fill.over { background: var(--warn); }
.bar-fill.low { background: var(--neg); }
.bar-text { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); white-space: nowrap; }

/* Form */
.signup-form { display: grid; gap: 6px; background: var(--surface); color: var(--ink); padding: 24px; border-radius: var(--radius); margin-top: 12px; }
.signup-form label { font-weight: 600; font-size: .95rem; margin-top: 12px; }
.signup-form label:first-of-type { margin-top: 0; }
.req, .opt { font-weight: 500; font-size: .8rem; color: var(--muted); margin-left: 4px; }
.signup-form input[type=text], .signup-form input[type=email], .signup-form select, .signup-form textarea { font: inherit; width: 100%; padding: 11px 12px; border: 1px solid #c9d1d8; border-radius: 8px; background: #fff; color: var(--ink); }
.signup-form input:focus, .signup-form select:focus, .signup-form textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: var(--brand-2); }
.signup-form textarea { resize: vertical; }
.signup-form .btn { margin-top: 16px; width: 100%; }
.signup-form .fine { margin: 10px 0 0; color: var(--ink-2); }
.signup-form .fine a { color: var(--brand-2); }
.form-error { color: var(--neg); font-weight: 600; margin: 8px 0 0; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.cf-turnstile { margin-top: 12px; }
.signup-form input.invalid, .signup-form select.invalid { border-color: var(--neg); }

/* Thank-you */
.thanks { padding-bottom: 36px; }
.price, .call { background: var(--surface); border-bottom: 1px solid var(--line); }

/* Admin */
.admin h2 { margin-top: 1.4em; }

@media (max-width: 820px) {
  .preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  section { padding: 36px 0; }
  .hero { padding: 40px 0 32px; }
  .pill { display: none; }
  .choices { gap: 8px; }
  .btn-choice { font-size: 1.1rem; padding: 14px 6px; }
  .bars li { grid-template-columns: 110px 1fr 80px; }
  .signup-form { padding: 18px; }
}

/* ---- Landing page v2 ---- */
.hero-split { background: linear-gradient(180deg, #ffffff 0%, #f1f5f8 100%); padding: 48px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.eyebrow { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin: 0 0 12px; }
.hero-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.hero-points li { padding-left: 26px; position: relative; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3Cpath d='M4.5 8.5l2.3 2.3L11.5 6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3Cpath d='M4.5 8.5l2.3 2.3L11.5 6' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero-preview .preview { box-shadow: 0 2px 4px rgba(21,32,43,.06), 0 20px 50px rgba(15,61,92,.18); }
.hero-mascot { width: 120px; height: 120px; margin-bottom: 18px; display: block; }
.section-intro { color: var(--ink-2); max-width: 760px; margin-bottom: 22px; font-size: 1.02rem; }
.previews .preview-grid { grid-template-columns: 1fr 1fr; }
.card-n { display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 6px; background: #e6f0f4; color: var(--brand); font-weight: 700; font-size: .85rem; margin-bottom: 10px; }
.cards li { box-shadow: 0 1px 2px rgba(21,32,43,.04); }
.compare { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compare-tbl { white-space: normal; }
.compare-tbl th, .compare-tbl td { vertical-align: top; padding: 12px 12px; }
.compare-tbl thead th { font-size: .8rem; }
.compare-tbl thead th small { display: block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--accent-ink); margin-top: 2px; }
.compare-tbl tbody th { font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .92rem; width: 30%; }
.compare-tbl td { color: var(--ink-2); font-size: .92rem; }
.compare-tbl .us { background: #eef6f8; color: var(--brand); font-weight: 600; }
.compare-tbl thead th.us { color: var(--brand); }
.how-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.steps-stack { grid-template-columns: 1fr; gap: 18px; }
.steps-stack li { display: grid; grid-template-columns: 30px 1fr; column-gap: 14px; }
.steps-stack li h3 { grid-column: 2; margin: 4px 0 4px; }
.steps-stack li p { grid-column: 2; }
.for-whom { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.for-whom h2 { font-size: 1.25rem; }
.for-whom .btn { margin-top: 6px; }
.for-whom .fine { margin: 10px 0 0; }
.faq { background: var(--surface); border-top: 1px solid var(--line); padding-bottom: 72px; }
.faq-list details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq-list summary { font-weight: 650; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--brand-2); font-size: 1.3rem; font-weight: 500; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 10px 0 0; color: var(--ink-2); }
.check { display: grid; gap: 8px; font-size: .9rem; }
.check-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 8px 10px; background: #f6f9fa; border-radius: 6px; }
.check-row .num { font-variant-numeric: tabular-nums; font-weight: 650; }
.check-row .ok { color: var(--ok); font-weight: 600; font-size: .8rem; white-space: nowrap; }
.code { font-family: var(--mono); font-size: .78rem; background: #15202b; color: #d6e2ea; padding: 10px 12px; border-radius: 6px; margin: 4px 0 0; overflow-x: auto; }

@media (max-width: 900px) {
  .hero-grid, .how-grid { grid-template-columns: 1fr; gap: 28px; }
  .previews .preview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-split { padding: 32px 0 36px; }
  .check-row { grid-template-columns: 1fr auto; }
  .check-row .ok { grid-column: 1 / -1; }
}

/* Keep grid children from stretching past the viewport (tables inside previews). */
.hero-grid > *, .preview-grid > *, .how-grid > * { min-width: 0; }
.hero-split h1 { font-size: clamp(1.8rem, 1.1rem + 2.1vw, 2.6rem); }

/* ---- Home page ---- */
.hero-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.hero-brand .hero-mascot { width: 72px; height: 72px; margin: 0; flex: none; }
.hero-brand .eyebrow { margin: 0; }
.pick { padding-bottom: 40px; }
.cards-link h3 { font-size: 1.2rem; color: var(--brand); margin-bottom: 6px; }
.offer { background: var(--surface); border-top: 1px solid var(--line); }
.demo-panel { animation: demo-in .35s ease; }
.demo-cursor { display: inline-block; width: 2px; height: 1em; background: var(--brand-2); vertical-align: -2px; margin-left: 1px; animation: blink 1s steps(2) infinite; }
.demo.is-typing .ask-btn { opacity: .5; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes demo-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .demo-cursor { animation: none; } .demo-panel { animation: none; } }

/* ---- Profit page: profit after ads feature ---- */
.feature { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.feature-title { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.3rem); color: var(--brand); max-width: 760px; }
.feature-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; margin-top: 8px; }
.feature-grid > * { min-width: 0; }
.feature-tbl { font-size: .88rem; }
.feature-tbl th, .feature-tbl td { white-space: nowrap; }
.feature-tbl thead th { white-space: normal; min-width: 90px; vertical-align: bottom; }
.feature-tbl thead th:first-child { min-width: 150px; }
.feature-tbl tbody th { font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: .88rem; text-align: left; }
.feature-tbl th:first-child, .feature-tbl td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; box-shadow: 1px 0 0 var(--line); }
.feature-tbl tr.is-neg td, .feature-tbl tr.is-neg th { background: #fdf1ef; }
.feature-tbl tr.is-neg th:first-child { background: #fdf1ef; }
.feature-tbl td.neg { color: var(--neg); font-weight: 650; }
.feature-tbl td.changed { animation: cell-flash 1.4s ease; }
@keyframes cell-flash { 0% { background: #fff1d6; } 100% { background: transparent; } }
.tag { font: inherit; font-size: .75rem; font-weight: 600; color: var(--brand); background: #e6f0f4; border: 1px solid #cfe0e8; border-radius: 999px; padding: 3px 9px; cursor: pointer; white-space: nowrap; }
.tag:hover { border-color: var(--brand-2); }
.unassigned { margin: 12px 0 0; font-size: .88rem; color: var(--ink-2); padding: 10px 12px; background: #f6f9fa; border-radius: 6px; }
.order-stats { margin: 8px 0 0; font-size: .85rem; color: var(--brand); font-weight: 600; padding: 8px 12px; border: 1px dashed #cfe0e8; border-radius: 6px; }
.popover { position: absolute; z-index: 20; background: var(--ink); color: #fff; padding: 10px 12px; border-radius: 8px; font-size: .85rem; line-height: 1.4; box-shadow: var(--shadow); }
.popover p { margin: 0; }
.popover::before { content: ""; position: absolute; top: -6px; left: 18px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ink); }
.chat { display: grid; gap: 12px; }
.chat-intro { margin: 0; font-size: .85rem; color: var(--ink-2); }
.chat-log { display: grid; gap: 10px; max-height: 340px; overflow-y: auto; }
.chat-log:empty { display: none; }
.chat-msg { padding: 10px 12px; border-radius: 10px; font-size: .9rem; max-width: 95%; }
.chat-msg p { margin: 0; }
.chat-user { background: var(--brand); color: #fff; justify-self: end; border-bottom-right-radius: 3px; }
.chat-bot { background: #f0f3f5; color: var(--ink); justify-self: start; border-bottom-left-radius: 3px; }
.chat-tag { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.chat-actions { display: flex; gap: 8px; margin-top: 10px; }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn-ghost { background: var(--surface); color: var(--brand); border-color: #c9d1d8; }
.btn-ghost:hover { border-color: var(--brand-2); }
.chat-examples { display: grid; gap: 8px; }
.chat-example { font: inherit; font-size: .88rem; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid #c9d1d8; border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.chat-example:hover { border-color: var(--brand-2); background: #f6fafb; }
.chat-example::before { content: "›"; color: var(--brand-2); font-weight: 700; margin-right: 8px; }
.proof { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.proof li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.proof-icon { flex: none; width: 36px; height: 36px; border-radius: 8px; background: #e6f0f4; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.proof-icon svg { width: 20px; height: 20px; }
.feature-cta { margin-top: 28px; }
.choice-group { border: 0; padding: 0; margin: 14px 0 0; }
.choice-group legend { font-weight: 600; font-size: .95rem; padding: 0; margin-bottom: 8px; }
.choice { display: inline-flex; align-items: center; gap: 6px; margin: 0 14px 6px 0; font-size: .95rem; cursor: pointer; }
.choice input { accent-color: var(--brand); width: 16px; height: 16px; margin: 0; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
  .chat-log { max-height: 280px; }
}

/* Feature layout: table full width, chat below with examples beside the log. */
.feature-grid { grid-template-columns: 1fr; }
.feature-chat .chat { grid-template-columns: 320px 1fr; grid-template-areas: "intro log" "examples log"; column-gap: 20px; align-items: start; }
.feature-chat .chat-intro { grid-area: intro; }
.feature-chat .chat-examples { grid-area: examples; }
.feature-chat .chat-log { grid-area: log; min-height: 120px; max-height: 360px; background: #fbfcfc; border: 1px dashed var(--line); border-radius: 8px; padding: 10px; }
.feature-chat .chat-log:empty { display: flex; align-items: center; justify-content: center; }
.feature-chat .chat-log:empty::before { content: "Pick an example on the left to see what changes."; color: var(--muted); font-size: .88rem; }
.feature-tbl thead th:first-child { min-width: 170px; }
@media (max-width: 900px) {
  .feature-chat .chat { grid-template-columns: 1fr; grid-template-areas: "intro" "examples" "log"; }
  .feature-chat .chat-log:empty { display: none; }
}
