/* MapLeads design system (docs/design/redesign): warm paper, deep ink, one blue accent, hairlines,
   serif headlines over a clean sans. The same tokens drive the extension's popup and map panel. */
:root {
  --paper: #fbfaf7;
  --surface: #ffffff;
  --ink: #0e1726;
  --ink-2: #2f3a4b;
  --muted: #687182;
  --faint: #9aa1ad;
  --line: #e9e6df;
  --line-2: #dcd8cf;
  --accent: #1f4fe0;
  --accent-ink: #1a40bd;
  --accent-soft: #eef2fe;
  --good: #11704a;
  --good-soft: #e9f5ee;
  --warn: #7a5200;
  --warn-soft: #fbf3df;
  --bad: #b42318;
  --bad-soft: #fdf1f0;
  --r: 16px;
  --r-sm: 12px;
  --shadow-1: 0 1px 2px rgba(14, 23, 38, .05);
  --shadow-2: 0 24px 48px -28px rgba(14, 23, 38, .35);
  --serif: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
[hidden] { display: none !important; }
::selection { background: #dbe4fd; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { text-wrap: balance; }

/* ---- Nav ---- */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(251, 250, 247, .86); -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 650; font-size: 17px; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.links { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: 15px; }
.links a { color: var(--ink-2); }
.links a:hover, .links a[aria-current="page"] { color: var(--ink); text-decoration: none; }
.links a[data-signin]:not(.who) { padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink); background: var(--surface); }
.who:hover { text-decoration: none; }
.avatar { width: 32px; height: 32px; flex: none; display: grid; place-items: center; overflow: hidden; border-radius: 50%; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 11px 20px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 600 15.5px/1.2 var(--sans); cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; box-shadow: var(--shadow-1); }
.btn:hover { border-color: #c9c4b9; color: var(--ink); text-decoration: none; }
.btn.primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn.primary:hover { border-color: #1f2c42; background: #1f2c42; color: #fff; }
.btn.big { padding: 15px 26px; font-size: 17px; }
.btn.small { padding: 7px 13px; font-size: 14px; border-radius: 10px; }
.btn.danger { border-color: var(--bad); background: var(--bad); color: #fff; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, .pp:focus-visible, .more:focus-visible, .quiet:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.quiet { margin-top: 22px; padding: 0; border: 0; background: none; color: var(--muted); font: 15px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.quiet:hover { color: var(--ink); }

/* ---- Home ---- */
.hero { padding-top: 104px; padding-bottom: 56px; text-align: center; }
.hero h1 { max-width: 12.5em; margin: 0 auto 22px; font: 400 clamp(44px, 6.4vw, 80px)/1.02 var(--serif); letter-spacing: -.028em; }
.lede { max-width: 33em; margin: 0 auto 34px; color: var(--ink-2); font-size: clamp(17px, 2vw, 20px); line-height: 1.55; text-wrap: pretty; }
.hero-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.film { padding-top: 8px; }
.reel { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 22px; background: #0a0b0c; box-shadow: 0 50px 90px -50px rgba(14, 23, 38, .65), 0 0 0 1px rgba(14, 23, 38, .08); }
.reel iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pp { position: absolute; right: 14px; bottom: 14px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(20, 21, 24, .55); color: #f4f2ec; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.pp:hover { background: rgba(20, 21, 24, .75); }
.pp .i-play, .pp.paused .i-pause { display: none; }
.pp.paused .i-play { display: block; }
.band { padding-top: 112px; }
.band > h2, .section-head h2 { margin: 0 0 12px; font: 400 clamp(30px, 4vw, 46px)/1.08 var(--serif); letter-spacing: -.02em; }
.section-head { max-width: 40em; margin-bottom: 34px; }
.sample { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-2); }
.sample-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font: 13px var(--mono); }
.sample-bar svg { width: 18px; height: 18px; }
.sample-scroll { overflow-x: auto; }
.sample table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.sample th { padding: 11px 18px; border-bottom: 1px solid var(--line); background: #faf9f6; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.sample td { padding: 12px 18px; border-bottom: 1px solid #f1efea; color: var(--ink-2); }
.sample tr:last-child td { border-bottom: 0; }
.sample td:first-child { color: var(--ink); font-weight: 600; }
.sample .num { font-family: var(--mono); font-size: 13px; text-align: right; }
.sample .lock { color: var(--faint); }
.sample-note { margin: 14px 2px 0; color: var(--muted); font-size: 14px; }
.tag, .fields li .tag { display: inline-block; padding: 3px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font: 600 11px/1 var(--sans); letter-spacing: .02em; vertical-align: 1px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust article { padding: 26px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); }
.trust svg { width: 26px; height: 26px; margin-bottom: 14px; color: var(--accent); }
.trust h3 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.trust p { margin: 0; color: var(--ink-2); font-size: 15px; }
.faq details { max-width: 820px; padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.faq details:first-of-type { border-top: 1px solid var(--line-2); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; list-style: none; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { max-width: 44em; margin: 10px 0 0; color: var(--ink-2); }
.cta { margin-top: 112px; padding: 72px 24px; border-radius: 24px; background: var(--ink); color: #fff; text-align: center; }
.cta h2 { margin: 0 0 26px; font: 400 clamp(32px, 4.4vw, 52px)/1.05 var(--serif); letter-spacing: -.02em; }
.cta .btn.primary { border-color: #fff; background: #fff; color: var(--ink); }
.cta .btn.primary:hover { background: #eef0f4; }

/* ---- Footer ---- */
footer { margin-top: 112px; padding: 44px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 20px 40px; }
footer .brand { font-size: 15px; }
footer .brand img { width: 24px; height: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-left: auto; }
footer nav a { color: var(--ink-2); }
.foot-base { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; }

/* ---- Pricing ---- */
.page-head { padding-top: 88px; padding-bottom: 44px; text-align: center; }
.page-head h1 { margin: 0 0 12px; font: 400 clamp(40px, 5.4vw, 64px)/1.04 var(--serif); letter-spacing: -.025em; }
.page-head p { margin: 0; color: var(--ink-2); font-size: 18px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 800px; margin: 0 auto; }
.plan { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow-1); }
.plan.pro { border-color: var(--ink); box-shadow: var(--shadow-2); }
.plan h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan.pro h2 { color: var(--accent); }
.price { margin: 14px 0 22px; font: 400 56px/1 var(--serif); letter-spacing: -.02em; }
.price small { color: var(--muted); font: 15px var(--sans); letter-spacing: 0; }
.plan ul { flex: 1; display: grid; align-content: start; gap: 12px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--ink-2); }
.plan li { position: relative; padding-left: 28px; }
.plan li::before { content: ''; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-4.9' fill='none' stroke='%2311704a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan .btn { width: 100%; }
.note { min-height: 1.5em; margin: 12px 0 0; color: var(--muted); font-size: 14px; text-align: center; }
.note.left { text-align: left; }
.assure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 0; color: var(--muted); font-size: 14px; }
.assure svg { width: 16px; height: 16px; }

/* ---- Sign in and account ---- */
.card { max-width: 440px; margin: 88px auto 0; padding: 40px 36px 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); text-align: center; box-shadow: var(--shadow-2); }
.card img { width: 48px; height: 48px; }
.card h1 { margin: 16px 0 26px; font: 400 34px/1.1 var(--serif); letter-spacing: -.015em; }
.card .btn { width: 100%; }
.error { margin: 0 0 16px; padding: 11px 14px; border-radius: 10px; background: var(--bad-soft); color: var(--bad); font-size: 14px; }
.legal { margin: 18px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.account { max-width: 620px; margin: 72px auto 0; }
.account h1 { margin: 0 0 30px; font: 400 44px/1.08 var(--serif); letter-spacing: -.02em; }
.done { margin: 0 0 24px; padding: 13px 16px; border-radius: 12px; background: var(--good-soft); color: var(--good); }
.wait { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 13px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.spinner { width: 16px; height: 16px; flex: none; border: 2.5px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.who-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.who-row .avatar { width: 52px; height: 52px; font-size: 20px; }
.who-row b { display: block; font-size: 18px; }
.who-row div span { color: var(--muted); }
.box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); }
.box h2 { margin: 0; font-size: 17px; }
.box p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }

/* ---- Target profiles: the list and the editor ---- */
.console, .editor { max-width: 880px; margin: 64px auto 0; }
.console .head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 16px; margin-bottom: 22px; }
.console h1, .editor h1 { flex: 1; margin: 0; font: 400 44px/1.08 var(--serif); letter-spacing: -.02em; }
.editor h1 { margin-bottom: 28px; }
.count { width: 100%; margin: 0; color: var(--muted); font-size: 14px; }
.empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--muted); text-align: center; }
.banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 22px; padding: 13px 18px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); }
.plist { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-1); }
.pr { display: flex; align-items: flex-start; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.plist .pr:last-child { border-bottom: 0; }
.pr-main { flex: 1; min-width: 0; display: grid; gap: 4px; color: var(--ink); }
.pr-main:hover { color: var(--ink); text-decoration: none; }
a.pr-main:hover .nm { color: var(--accent); }
.nm { font-weight: 650; font-size: 16.5px; letter-spacing: -.005em; }
.ds { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink-2); font-size: 14.5px; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.k { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: #1d3fae; font-size: 12.5px; font-style: normal; }
.k.no { background: var(--bad-soft); color: var(--bad); }
.k.no::before { content: '−'; font-weight: 700; }
.k.more { background: #f3f1ec; color: var(--muted); }
.k button { padding: 0 0 0 2px; border: 0; background: none; color: inherit; font-size: 15px; line-height: 1; opacity: .6; cursor: pointer; }
.meta { color: var(--muted); font-size: 13px; }
.pr.paused .pr-main { opacity: .5; }
.acts { position: relative; display: flex; align-items: center; gap: 6px; }
.more { width: 36px; height: 36px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--muted); font-weight: 700; letter-spacing: 1px; cursor: pointer; }
.more:hover { color: var(--ink); }
.pop { position: absolute; top: 42px; right: 0; z-index: 5; min-width: 160px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-2); }
.pop button { display: block; width: 100%; padding: 9px 11px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 14px var(--sans); text-align: left; cursor: pointer; }
.pop button:hover { background: #f5f3ef; }
.pop .danger { color: var(--bad); }
.pr.confirm { align-items: center; background: var(--bad-soft); }
.plist .pr.confirm:first-child { border-radius: var(--r) var(--r) 0 0; }
.plist .pr.confirm:last-child { border-radius: 0 0 var(--r) var(--r); }
.editor .pr.confirm { border: 0; border-radius: var(--r); }
.pr.confirm b { color: var(--bad); }
.back { display: inline-block; margin-bottom: 12px; color: var(--ink-2); font-size: 14px; }
.fld { margin-bottom: 22px; }
.fld label { display: block; margin-bottom: 4px; font-weight: 600; }
.fld .h { margin: 0 0 9px; color: var(--muted); font-size: 14px; }
.fld input[type="text"], .fld textarea, .chips { width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font: 15.5px/1.5 var(--sans); box-shadow: var(--shadow-1); }
.fld textarea { min-height: 108px; resize: vertical; }
.fld input:focus, .fld textarea:focus, .chips:focus-within { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(31, 79, 224, .12); }
.name-fld { max-width: 440px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 48px; padding: 7px 8px; cursor: text; }
.chips input[type="text"] { flex: 1; min-width: 120px; width: auto; padding: 4px; border: 0; box-shadow: none; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.neg { padding-left: 20px; border-left: 2px solid #f1c4bf; }
.save-row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 4px; }
.save-row .quiet { margin-top: 0; }

/* ---- Legal pages ---- */
.prose { max-width: 720px; margin: 72px auto 0; }
.prose h1 { margin: 0 0 6px; font: 400 48px/1.06 var(--serif); letter-spacing: -.02em; }
.prose .updated { margin: 0 0 36px; color: var(--muted); font-size: 14px; }
.prose h2 { margin: 36px 0 8px; font-size: 19px; letter-spacing: -.01em; }
.prose p, .prose li { color: var(--ink-2); }

@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .links { gap: 18px; }
  .links .wide { display: none; }
  .hero { padding-top: 64px; padding-bottom: 40px; }
  .band { padding-top: 80px; }
  .plans, .trust { grid-template-columns: 1fr; }
  .reel { aspect-ratio: 4 / 5; border-radius: 18px; }
  .cta { margin-top: 80px; padding: 56px 20px; border-radius: 20px; }
  footer nav { margin-left: 0; }
  .card { margin-top: 40px; padding: 32px 22px 28px; }
  .console, .editor, .account { margin-top: 36px; }
  .console .head .btn { width: 100%; }
  .pr { flex-direction: column; gap: 10px; padding: 16px 18px; }
  .pr .kw { display: none; }
  .pr.confirm .acts { width: 100%; }
  .cols { grid-template-columns: 1fr; gap: 0; }
  .save-row .btn { width: 100%; }
}
