:root {
  --brand: #1C3263;
  --ink: #14181f;
  --muted: #5b6573;
  --bg: #f6f7f9;
  --card: #ffffff;
  --line: #e6e9ee;
  --radius: 16px;
  --maxw: 1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.boot { padding: 4rem 1.5rem; text-align: center; color: var(--muted); }

/* ---- layout ---- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 2rem; padding-top: 1.5rem; }
}

/* ---- brand bar ---- */
.topbar {
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.topbar .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.topbar .logo {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--brand);
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.95rem;
  overflow: hidden;
}
.topbar .logo img { width: 100%; height: 100%; object-fit: cover; }
.topbar .name { font-weight: 650; font-size: 1.02rem; }
.topbar .tag { margin-left: auto; font-size: 0.8rem; color: var(--muted); }

/* ---- hero copy ---- */
.hero h1 {
  font-size: clamp(1.8rem, 4.2vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
.hero .accent { color: var(--brand); }
.hero .sub {
  font-size: 1.12rem;
  color: var(--muted);
  margin: 0 0 1.6rem;
  max-width: 34ch;
}
.bullets { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: 0.6rem; }
.bullets li {
  position: relative; padding-left: 1.7rem; font-size: 1rem;
}
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 0.7rem; height: 0.7rem; border-radius: 50%;
  background: var(--brand);
}
.honesty {
  font-size: 0.86rem; color: var(--muted);
  background: #eef1f6; border: 1px solid var(--line);
  padding: 0.7rem 0.9rem; border-radius: 10px; max-width: 42ch;
}

/* ---- phone / chat ---- */
.phone {
  justify-self: center;
  width: 340px; max-width: 100%;
  background: #fff;
  border: 10px solid #111418;
  border-radius: 38px;
  box-shadow: 0 30px 60px -25px rgba(20,24,31,0.45);
  overflow: hidden;
}
.phone .head {
  background: var(--brand);
  color: #fff; padding: 1rem 1.1rem 0.9rem; text-align: center;
}
.phone .head .who { font-weight: 650; }
.phone .head .status { font-size: 0.75rem; opacity: 0.85; }
.thread {
  height: 430px; overflow-y: auto;
  padding: 1rem 0.9rem; display: flex; flex-direction: column; gap: 0.5rem;
  background: #fbfbfd;
}
.msg {
  max-width: 78%; padding: 0.55rem 0.8rem; border-radius: 16px;
  font-size: 0.92rem; line-height: 1.35; white-space: pre-wrap;
  animation: pop 0.18s ease-out;
}
.msg.them {
  align-self: flex-start; background: #e9ebf0; color: var(--ink);
  border-bottom-left-radius: 5px;
}
.msg.us {
  align-self: flex-end; background: var(--brand); color: #fff;
  border-bottom-right-radius: 5px;
}
.typing { align-self: flex-start; color: var(--muted); font-size: 0.85rem; padding: 0.2rem 0.4rem; }
.composer {
  display: flex; gap: 0.5rem; padding: 0.7rem; border-top: 1px solid var(--line);
  background: #fff;
}
.composer input {
  flex: 1; border: 1px solid var(--line); border-radius: 20px;
  padding: 0.55rem 0.9rem; font-size: 0.9rem; outline: none;
}
.composer button {
  border: none; background: var(--brand); color: #fff;
  border-radius: 20px; padding: 0 1rem; font-weight: 600; cursor: pointer;
}
.composer button:disabled { opacity: 0.5; cursor: default; }

@keyframes pop { from { transform: translateY(4px); opacity: 0; } to { transform: none; opacity: 1; } }

.footnote {
  text-align: center; color: var(--muted); font-size: 0.85rem;
  padding: 0 1.5rem 3rem;
}

/* =====================================================================
   NICHE LANDING PAGE (cfg.niche set) — full multi-section page.
   Legacy widget styles above are untouched.
   ===================================================================== */

.lp { display: block; }
.lp-inner { max-width: 760px; margin: 0 auto; padding: 0 1.4rem; }

.lp .topbar .name { font-weight: 700; }
.lp .topbar .tag { margin-left: auto; font-size: 0.78rem; color: var(--muted); }

/* hero */
.lp-hero {
  text-align: center;
  padding: 3.6rem 0 2.8rem;
  background:
    radial-gradient(120% 90% at 50% -10%, color-mix(in srgb, var(--brand) 12%, #fff) 0%, var(--bg) 60%);
  border-bottom: 1px solid var(--line);
}
.lp-eyebrow {
  display: inline-block;
  font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, #fff);
  padding: 0.35rem 0.8rem; border-radius: 999px;
  margin-bottom: 1.1rem;
}
.lp-hero h1 {
  font-size: clamp(2rem, 6vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.02em;
  margin: 0 auto 1rem; max-width: 16ch;
}
.lp-sub {
  font-size: 1.12rem; color: var(--muted);
  margin: 0 auto 1.8rem; max-width: 52ch;
}
.lp-ctas { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  border-radius: 999px; padding: 0.8rem 1.5rem;
  font-size: 1rem; font-weight: 650; border: 1px solid transparent;
  transition: transform 0.06s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost { background: #fff; color: var(--brand); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-light { background: #fff; color: var(--brand); }
.btn-light:hover { filter: brightness(0.97); }

/* generic section rhythm */
.lp-section { padding: 3rem 0; border-bottom: 1px solid var(--line); }
.lp-section h2 {
  font-size: clamp(1.5rem, 4vw, 2rem); line-height: 1.15;
  letter-spacing: -0.01em; margin: 0 0 1.4rem;
}
.lp-lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 1.6rem; max-width: 54ch; }

/* problem */
.painlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.painlist li {
  position: relative; padding-left: 1.9rem;
  font-size: 1.06rem; line-height: 1.45;
}
.painlist li::before {
  content: ""; position: absolute; left: 0; top: 0.5em;
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 35%, #c4302b);
}

/* how it works */
.steps { display: grid; gap: 1.2rem; }
.step {
  position: relative;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.3rem 1.2rem;
}
.step-ic {
  width: 42px; height: 42px; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  border-radius: 11px; display: grid; place-items: center; margin-bottom: 0.8rem;
}
.step-ic svg { width: 22px; height: 22px; }
.step-n {
  position: absolute; top: 1.4rem; right: 1.3rem;
  font-weight: 750; color: var(--line); font-size: 1.5rem; line-height: 1;
}
.step h3 { margin: 0 0 0.35rem; font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); }

/* "we saw your ad" card */
.lp-ad { text-align: center; }
.ad-lead { font-size: 1.3rem; font-weight: 700; margin: 0 0 0.4rem; }
.ad-bridge { color: var(--muted); margin: 0 auto 1.6rem; max-width: 48ch; }
.adcard {
  text-align: left; max-width: 420px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 18px 40px -28px rgba(20,24,31,0.5); overflow: hidden;
}
.adcard-top { display: flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1rem 0.6rem; }
.adcard-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 0.9rem;
  display: grid; place-items: center;
}
.adcard-name { font-weight: 650; font-size: 0.95rem; }
.adcard-spon { font-size: 0.76rem; color: var(--muted); }
.adcard-head { padding: 0 1rem; font-weight: 650; font-size: 1.02rem; }
.adcard-text { padding: 0.5rem 1rem 0.9rem; color: var(--ink); line-height: 1.45; }
.adcard-cta {
  border-top: 1px solid var(--line); background: #f0f2f5;
  padding: 0.7rem 1rem; font-weight: 650; font-size: 0.92rem; color: var(--ink);
}

/* demo */
.lp-demo { text-align: center; }
.lp-demo h2, .lp-demo .lp-lead { margin-left: auto; margin-right: auto; }
.lp-phonewrap { display: flex; justify-content: center; margin-top: 0.4rem; }

/* outcomes */
.ticklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }
.ticklist li {
  position: relative; padding-left: 2rem;
  font-size: 1.06rem; line-height: 1.45;
}
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: 0.18em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--brand);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/0.9rem no-repeat, linear-gradient(#000,#000);
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center/0.9rem no-repeat;
}

/* faq */
.lp-faq details {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 0.2rem 1rem; margin-bottom: 0.7rem; background: var(--card);
}
.lp-faq summary {
  cursor: pointer; list-style: none; padding: 0.9rem 0;
  font-weight: 650; font-size: 1.04rem; position: relative; padding-right: 1.6rem;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
  content: "+"; position: absolute; right: 0; top: 0.8rem;
  font-weight: 400; font-size: 1.4rem; color: var(--brand); line-height: 1;
}
.lp-faq details[open] summary::after { content: "–"; }
.lp-faq details p { margin: 0 0 0.9rem; color: var(--muted); }

/* final CTA band */
.cta-band {
  background: var(--brand); color: #fff; text-align: center;
  padding: 3.4rem 0; border-bottom: none;
}
.cta-band h2 { margin: 0 0 0.8rem; font-size: clamp(1.6rem, 4.5vw, 2.2rem); }
.cta-band p { margin: 0 auto 1.6rem; max-width: 48ch; opacity: 0.92; }

/* footer */
.lp-footer { padding: 2.4rem 0 3rem; text-align: center; color: var(--muted); font-size: 0.88rem; }
.lp-footer .honesty { max-width: 48ch; margin: 0 auto 0.6rem; }

/* the phone is fluid inside the landing demo section */
.lp-phonewrap .phone { width: 360px; }

@media (max-width: 520px) {
  .lp-phonewrap .phone { width: 100%; border-width: 8px; border-radius: 30px; }
  .btn { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .lp-section, .lp-ad .adcard { animation: lp-rise 0.5s ease both; }
}
@keyframes lp-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
