/* The One-Agent Enterprise — sales site stylesheet.
   Plain CSS, no dependencies, no external fonts. Works on any static host. */

:root {
  --navy: #0f172a;
  --navy-soft: #1e293b;
  --gold: #b45309;
  --gold-light: #fbbf24;
  --gold-soft: #fef3c7;
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --radius: 12px;
}

* { box-sizing: border-box; }
/* Scroll fix (27 Nov 2026): no overflow rule on <html> — putting overflow-x:
   hidden/clip on html+body makes the wrong element the scroll container in
   phone webviews, which locks vertical scrolling and breaks anchor jumps.
   Only the body clips sideways spill, with `clip` (which creates no scroll
   container and keeps the sticky header and page scroll working). */
html, body { max-width: 100%; }
body { overflow-x: hidden; overflow-x: clip; }
img, svg, video, iframe, table, pre { max-width: 100%; }
/* scroll-padding-top leaves room for the sticky header, so jumping to a
   section lands its heading BELOW the header instead of hidden under it. */
html { scroll-behavior: smooth; scroll-padding-top: 118px; }
@media (max-width: 720px) { html { scroll-padding-top: 158px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
}
a { color: var(--gold); }

/* Language blocks: English visible by default; JS switches the active language. */
.lang-block { display: none; }
.lang-block[data-lang="en"] { display: block; }
html[data-active-lang="en"] .lang-block[data-lang="en"] { display: block; }
html[data-active-lang="es"] .lang-block[data-lang="es"] { display: block; }
html[data-active-lang="fr"] .lang-block[data-lang="fr"] { display: block; }
html[data-active-lang="pt"] .lang-block[data-lang="pt"] { display: block; }
html[data-active-lang="it"] .lang-block[data-lang="it"] { display: block; }
html[data-active-lang="en"] .lang-block:not([data-lang="en"]),
html[data-active-lang="es"] .lang-block:not([data-lang="es"]),
html[data-active-lang="fr"] .lang-block:not([data-lang="fr"]),
html[data-active-lang="pt"] .lang-block:not([data-lang="pt"]),
html[data-active-lang="it"] .lang-block:not([data-lang="it"]) { display: none; }
.lang-inline { display: none; }
html[data-active-lang="en"] .lang-inline[data-lang="en"] { display: inline; }
html[data-active-lang="es"] .lang-inline[data-lang="es"] { display: inline; }
html[data-active-lang="fr"] .lang-inline[data-lang="fr"] { display: inline; }
html[data-active-lang="pt"] .lang-inline[data-lang="pt"] { display: inline; }
html[data-active-lang="it"] .lang-inline[data-lang="it"] { display: inline; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 1080px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand img { width: 40px; height: 40px; display: block; }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; line-height: 1.2; }
.brand-name small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.mainnav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; }
.mainnav a { color: var(--ink); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 999px; transition: background-color .15s ease; }
.mainnav a:hover { background: var(--bg-soft); text-decoration: none; }
.mainnav a.active { background: #cbd5e1; color: var(--navy); font-weight: 700; }
.mainnav a:active { background: #93c5fd; }
.lang-switcher { display: flex; gap: 4px; }
.lang-switcher button { border: 1px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 5px 10px; font-size: 13px; cursor: pointer; }
.lang-switcher button.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Hero */
.hero { background: var(--navy); color: #fff; }
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 44px 20px 40px; }
.hero h1 { font-size: 42px; line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; max-width: 760px; }
.hero h1 span { color: var(--gold-light); }
.hero p.lede { font-size: 19px; color: #cbd5e1; max-width: 720px; margin: 0 0 20px; }
.cta { display: inline-block; background: var(--gold-light); color: var(--navy); font-weight: 700; padding: 13px 26px; border-radius: 999px; text-decoration: none; }
.cta:hover { text-decoration: none; background: #fde68a; }
.hero-note { margin-top: 18px; font-size: 13px; color: #94a3b8; }

/* Layout */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
main { padding-bottom: 8px; }
.page-section { padding: 34px 0 4px; border-top: 1px solid var(--line); }
.page-section:first-of-type { border-top: 0; }
.page-section h2 { font-size: 30px; letter-spacing: -0.01em; margin: 0 0 10px; color: var(--navy); }
.page-section h3 { font-size: 19px; margin: 0 0 10px; color: var(--navy); }
.page-section p { margin: 0 0 12px; max-width: 760px; }
.page-section ul, .page-section ol { margin: 0 0 14px; padding-left: 24px; max-width: 760px; }
.page-section li { margin-bottom: 5px; }
.page-section li::marker { color: var(--gold); }
.inside-list li { margin-bottom: 6px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; max-width: 900px; }
.proof { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 28px; }
.offer-list { list-style: none; padding-left: 0; }
.offer-list li { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px 16px; margin-bottom: 8px; }
.included { float: right; color: var(--gold); font-weight: 700; font-size: 14px; }

/* Buy box */
.buy .buy-box { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 26px; max-width: 640px; }
.buy .buy-box ul { color: #e2e8f0; }
.buy .price { font-size: 40px; font-weight: 800; margin: 0 0 16px; }
.buy .buy-cta { margin: 8px 0 16px; }
.buy .buy-note { font-size: 14px; color: #cbd5e1; margin: 0 0 6px; max-width: none; }
mark.fillin { background: var(--gold-soft); border-bottom: 2px dashed var(--gold); padding: 0 3px; border-radius: 3px; color: #78350f; font-weight: 600; }
.buy mark.fillin { color: #78350f; }

/* FAQ */
.faq dt { font-weight: 700; color: var(--navy); margin: 12px 0 4px; }
.faq dd { margin: 0 0 6px; max-width: 760px; }

/* Contact form */
.contact { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 32px 0 36px; }
.contact h2 { font-size: 26px; color: var(--navy); margin: 0 0 8px; }
.contact p { max-width: 720px; }
.form-note { font-size: 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 12px 16px; max-width: 720px; }
form.guide-form { max-width: 720px; margin-top: 20px; }
form.guide-form label { display: block; font-weight: 600; font-size: 15px; margin: 12px 0 6px; }
form.guide-form input, form.guide-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; font-size: 16px; font-family: inherit; background: #fff; }
form.guide-form textarea { min-height: 110px; resize: vertical; }
form.guide-form button { margin-top: 20px; background: var(--navy); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px; font-size: 16px; font-weight: 700; cursor: pointer; }
form.guide-form button:hover { background: var(--navy-soft); }

/* Final CTA */
.final-cta { background: var(--navy); color: #fff; padding: 36px 0; text-align: center; }
.final-cta h2 { margin: 0 0 20px; font-size: 28px; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 22px 0 28px; color: var(--muted); font-size: 14px; }
footer .container p { margin: 0 0 8px; }

/* Thank-you page */
.thanks { max-width: 720px; margin: 80px auto; padding: 0 20px; }
.thanks img { width: 56px; height: 56px; }
.thanks h1 { color: var(--navy); font-size: 30px; }
.thanks a { font-weight: 700; }

@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .two-col { grid-template-columns: 1fr; }
  .mainnav { order: 3; width: 100%; }
  .page-section h2 { font-size: 24px; }
  .included { float: none; display: block; margin-top: 4px; }
}

/* Walkthrough + builder showcase (redesign, 25 Nov 2026) */
.hero-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 0 0 20px; }
.hero-step { background: var(--navy-soft); border: 1px solid #334155; border-radius: var(--radius); padding: 16px 18px; }
.hero-step strong { color: var(--gold-light); display: block; font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.hero-step p { margin: 0; font-size: 15px; color: #e2e8f0; }
.cta-ghost { background: transparent; color: var(--gold-light); border: 2px solid var(--gold-light); margin-left: 12px; }
.cta-ghost:hover { background: var(--navy-soft); }

/* How it works */
.how-steps li { margin-bottom: 8px; }
.demo-note { font-size: 15px; color: var(--muted); }
.demo-builder { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 760px; margin-top: 16px; }
.demo-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 24px; margin-bottom: 16px; }
.demo-field label { display: block; font-weight: 600; font-size: 15px; margin: 8px 0 6px; }
.demo-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  font-size: 16px;
  font-family: inherit;
  background: #fff;
}

/* Copy-paste blocks (demo sample) */
.copy-wrap { position: relative; margin: 0; }
.copy-block {
  background: var(--navy);
  color: #e2e8f0;
  padding: 18px 20px;
  padding-right: 96px;
  border-radius: 10px;
  overflow-x: auto;
  max-width: 100%;
  font-size: 14.5px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  margin: 0;
}
.copy-block code { font-family: inherit; }
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--gold-light);
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.copy-btn:hover { background: #fde68a; }
.copy-btn.copied { background: #86efac; }

/* Builder-filled tokens: the visitor's own details, highlighted. */
.builder-token {
  background: var(--gold);
  color: #fff;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .hero-steps { grid-template-columns: 1fr; }
  .demo-fields { grid-template-columns: 1fr; }
  .copy-block { padding-right: 20px; padding-top: 52px; }
  .cta-ghost { margin-left: 0; margin-top: 10px; }
}

/* Proven in daily use — process moments (25 Nov 2026) */
.proof-headline { font-size: 24px; font-weight: 800; color: var(--navy); line-height: 1.3; margin: 0 0 16px; max-width: 760px; }
.process-note { font-size: 15px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 12px 16px; max-width: 760px; }
.journey-pills { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0 20px; }
.pill { border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; }
.pill:hover { border-color: var(--gold); }
.pill.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.pill.see-all { border-style: dashed; }
.moment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 1080px; }
.moment-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.moment-card h4 { margin: 0 0 4px; font-size: 17px; color: var(--navy); }
.moment-route { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.moment-caption { font-size: 15px; margin: 0 0 12px; }
.moment-panel { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.mp-row { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 13.5px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.mp-row:last-child { border-bottom: 0; }
.mp-from { font-weight: 700; color: var(--navy); }
.mp-subject { color: var(--ink); }
.mp-tag { margin-left: auto; color: var(--gold); font-weight: 600; white-space: nowrap; }
.moment-label { font-size: 13px; font-style: italic; color: var(--muted); margin: 0 0 8px; }
.moment-more summary { cursor: pointer; font-weight: 700; color: var(--gold); font-size: 14px; }
.moment-more p { font-size: 14.5px; margin: 8px 0 0; }
@media (max-width: 900px) { .moment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .moment-grid { grid-template-columns: 1fr; } .proof-headline { font-size: 20px; } }

.recurring-offer { font-size: 15px; color: var(--muted); max-width: 720px; }
.form-not-live { font-size: 14px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; padding: 12px 16px; max-width: 720px; }
a[aria-disabled="true"] { opacity: .55; cursor: not-allowed; text-decoration: none; }

/* Overflow + nav fix (27 Nov 2026): nothing may push the page sideways, and
   the active nav language block becomes a wrapping flex row so every link —
   Buy, Guarantee, FAQ, Contact included — stays on the page at phone width. */
.mainnav { min-width: 0; }
html[data-active-lang="en"] .mainnav .lang-block[data-lang="en"],
html[data-active-lang="es"] .mainnav .lang-block[data-lang="es"],
html[data-active-lang="fr"] .mainnav .lang-block[data-lang="fr"],
html[data-active-lang="pt"] .mainnav .lang-block[data-lang="pt"],
html[data-active-lang="it"] .mainnav .lang-block[data-lang="it"] { display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.lang-switcher { flex-wrap: wrap; }
.hero-step, .demo-field, .moment-panel { min-width: 0; }

/* Section-scrolling fix (27 Nov 2026): compact sticky header at phone width
   (it was ~256px tall and hid every heading a nav tap jumped to), and #how
   gets the same 1080px column as every other section instead of running
   edge-to-edge outside the container. */
.mainnav a { white-space: nowrap; }
@media (max-width: 720px) {
  .topbar-inner { padding: 8px 14px; gap: 6px 10px; }
  .brand { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 14px; }
  .brand-name small { font-size: 11px; }
  .lang-switcher { gap: 3px; }
  .lang-switcher button { padding: 3px 8px; font-size: 12px; }
  .mainnav { gap: 2px; }
  .mainnav a { font-size: 13px; padding: 5px 8px; }
}
#how { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }

/* Sale timer bar (27 Nov 2026): one slim bar directly under the sticky
   topbar, above the hero, in normal page flow. Gold-soft background, centred.
   The bar's state (live countdown / future window / pre-launch line / hidden)
   is driven by the sale-timer script from GO_LIVE_CONFIG. */
.sale-timer { background: var(--gold-soft); border-bottom: 1px solid #fde68a; color: var(--ink); text-align: center; font-size: 15px; line-height: 1.5; padding: 9px 16px; }
.sale-timer[hidden], .sale-timer .timer-variant[hidden] { display: none; }
.sale-timer .cd-group { display: inline-block; white-space: nowrap; margin-left: 10px; }
.sale-timer .cd-num { font-weight: 700; color: var(--gold); font-size: 17px; font-variant-numeric: tabular-nums; }

/* Cost comparison (27 Nov 2026): what the alternatives charge, right before
   the buy box. Stat cards reuse the moment-grid breakpoints (3 → 2 → 1
   columns). Mirrors the site source files. */
.cost-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1080px; margin: 0 0 24px; }
.cost-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.cost-card p { margin: 0; }
.cost-label { font-size: 15px; color: var(--ink); }
.cost-figure { font-size: 30px; font-weight: 700; color: var(--gold); line-height: 1.2; margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.cost-unit { font-size: 14px; color: var(--muted); }
.cost-sub { font-size: 13px; color: var(--muted); margin-top: 6px; }
.cost-punch { font-size: 19px; font-weight: 700; }
.cost-note { font-size: 13px; color: var(--muted); }
@media (max-width: 900px) { .cost-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .cost-grid { grid-template-columns: 1fr; } }
