/* Sage Automations — local-business demo microsite.
   Direction: confident, warm, trustworthy. Money-green + safety-amber signal.
   Deliberately brighter/friendlier than the technical agency brand. */
/* Brand fonts (self-hosted, shared with the main site) — the premium family. */
@font-face { font-family:'Plus Jakarta Sans'; font-style:normal; font-weight:200 800; font-display:swap; src:url('../assets/fonts/plus-jakarta-var.woff2') format('woff2'); }
@font-face { font-family:'JetBrains Mono'; font-style:normal; font-weight:100 800; font-display:swap; src:url('../assets/fonts/jetbrains-mono-var.woff2') format('woff2'); }
@font-face { font-family:'Instrument Serif'; font-style:normal; font-weight:400; font-display:swap; src:url('../assets/fonts/instrument-serif.woff2') format('woff2'); }
@font-face { font-family:'Instrument Serif'; font-style:italic; font-weight:400; font-display:swap; src:url('../assets/fonts/instrument-serif-italic.woff2') format('woff2'); }

:root {
  --ink: #14231d;
  --ink-2: #3a463f;
  --dim: #5a6a61;
  --line: #e6e9e3;
  --paper: #FBFAF7;
  --wash: #F3F5EF;
  --wash-2: #edf1ea;
  --green: #0f7a52;
  --green-d: #0a5c3d;
  --green-l: #34d399;
  --green-wash: #e7f6ee;
  --amber: #955208;
  --amber-wash: #fdf2e2;
  --red: #d64545;
  --shadow: 0 24px 60px -28px rgba(10, 40, 28, 0.28);
  --shadow-sm: 0 8px 24px -14px rgba(10, 40, 28, 0.22);
  --radius: 16px;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --font: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --maxw: 1140px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 4vw, 40px); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--green-d); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
b { font-weight: 700; }
.hl { color: var(--green); }
.strike { text-decoration: line-through; text-decoration-color: var(--amber); text-decoration-thickness: 3px; color: var(--dim); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font);
  font-weight: 650; font-size: 16px; padding: 14px 24px; border-radius: 999px;
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s;
  white-space: nowrap;
}
.btn-sm { padding: 10px 18px; font-size: 15px; }
.btn-lg { padding: 18px 34px; font-size: 18px; }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-d); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--green-d); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); background: var(--green-wash); transform: translateY(-2px); }

/* top bar */
.bar { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 9px; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--green-d); color: var(--green-l); font-weight: 800; }
.brand-dim { color: var(--dim); font-weight: 600; }
.bar-cta { font-weight: 650; font-size: 15px; color: var(--green-d); text-decoration: none; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); }
.bar-cta:hover { background: var(--green-wash); border-color: var(--green); }

/* hero */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); background: radial-gradient(120% 90% at 80% -10%, var(--green-wash) 0%, transparent 55%), var(--paper); }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); background: var(--green-wash); padding: 7px 14px; border-radius: 999px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-l); box-shadow: 0 0 0 0 rgba(52,211,153,.6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5);} 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0);} 100%{ box-shadow:0 0 0 0 rgba(52,211,153,0);} }
.h1 { font-family: var(--display); font-weight: 400; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.018em; margin: 22px 0 0; max-width: 18ch; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 60ch; margin: 22px 0 0; }
.lede-2 { margin-top: 16px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 48px; max-width: 720px; }
.hp { border-left: 3px solid var(--green-l); padding-left: 16px; }
.hp b { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 820; letter-spacing: -0.03em; color: var(--green-d); font-family: var(--display); }
.hp span { font-size: 14px; color: var(--dim); line-height: 1.4; display: block; margin-top: 2px; }

/* section shells */
.demo { padding: clamp(52px, 8vw, 96px) 0; }
.demo.alt { background: var(--wash); }
.sec-head { max-width: 640px; margin: 0 auto 40px; }
.sec-head.center { text-align: center; }
.kicker { display: inline-block; font-family: var(--mono); font-weight: 600; font-size: 11.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--amber); margin-bottom: 14px; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.06; letter-spacing: -0.014em; margin: 0; }
.sub { font-size: clamp(1rem, 1.4vw, 1.15rem); color: var(--ink-2); margin: 14px 0 0; }

/* ── phones (missed-call demo) ── */
.stage { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.demo.alt .stage { background: var(--paper); }
.phones { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 4vw, 48px); max-width: 720px; margin: 0 auto; }
.phone { display: flex; flex-direction: column; }
.phone-top { text-align: center; margin-bottom: 12px; }
.phone-label { font-size: 13px; font-weight: 650; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.screen {
  position: relative; aspect-ratio: 9 / 17.5; border-radius: 34px; background: #0b0f0d;
  border: 8px solid #10221b; box-shadow: inset 0 0 0 2px #1c332a, var(--shadow-sm);
  padding: 44px 12px 16px; overflow: hidden; display: flex; flex-direction: column; gap: 8px;
}
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; transform: translateX(-50%); width: 74px; height: 6px; border-radius: 6px; background: #23413594; }
#phone-owner .screen { background: #0b0f0d; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; animation: pop .35s var(--ease); }
.msg.them { background: #223a30; color: #eafff4; align-self: flex-start; border-bottom-left-radius: 5px; }
.msg.you { background: var(--green-l); color: #06231a; align-self: flex-end; border-bottom-right-radius: 5px; font-weight: 550; }
.msg.sys { align-self: center; background: transparent; color: #6f8579; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px; }
.msg.alert { background: #3a2f13; color: #ffe6b0; align-self: stretch; max-width: 100%; border-radius: 12px; }
.callcard { align-self: center; text-align: center; color: #cfe6db; padding: 18px 10px; animation: pop .35s var(--ease); }
.callcard .who { font-size: 17px; font-weight: 700; color: #fff; }
.callcard .state { font-size: 12.5px; margin-top: 4px; letter-spacing: 0.04em; }
.callcard.missed .state { color: #ff9d9d; }
.callcard .ring { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 12px; background: #16302690; display: grid; place-items: center; font-size: 24px; }
.callcard.ringing .ring { animation: shake .5s infinite; }
.typing { align-self: flex-start; background: #223a30; padding: 11px 14px; border-radius: 16px; display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #7fae99; animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay:.2s; } .typing i:nth-child(3){ animation-delay:.4s; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%,60%,100%{ opacity:.3; } 30%{ opacity:1; } }
@keyframes shake { 0%,100%{ transform: rotate(0);} 25%{ transform: rotate(-12deg);} 75%{ transform: rotate(12deg);} }
.stage-controls { text-align: center; margin-top: 28px; }
.stage-note { color: var(--dim); font-size: 15px; margin: 16px auto 0; max-width: 46ch; }
#mc-replay { margin-left: 10px; }

/* ── speed to lead ── */
.stl-stage { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.stl-card { background: var(--wash); border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-width: 360px; }
.stl-card-h { font-weight: 700; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.stl-field { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 14.5px; }
.stl-field span { color: var(--dim); } .stl-field i { font-style: normal; font-weight: 550; text-align: right; }
.stl-card .btn { margin-top: 16px; width: 100%; justify-content: center; }
.stl-race { display: flex; flex-direction: column; gap: 16px; }
.race-row { border-radius: 14px; padding: 18px 20px; border: 1px solid var(--line); }
.race-row.you { background: var(--green-wash); border-color: #b7e3cb; }
.race-row.them { background: var(--wash-2); }
.race-h { font-weight: 700; display: flex; align-items: center; gap: 10px; }
.race-timer { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 820; font-family: var(--display); letter-spacing: -0.02em; margin: 6px 0 2px; }
.you .race-timer { color: var(--green-d); } .them .race-timer { color: var(--dim); }
.race-msg { font-size: 14px; color: var(--ink-2); }
.tag { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; letter-spacing: 0.04em; }
.tag.ok { background: var(--green); color: #fff; } .tag.bad { background: #f0dede; color: #8a2020; }

/* ── reviews ── */
.rev-stage { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.rev-steps { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.rev-step { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--wash); border: 1px solid var(--line); font-size: 15px; opacity: .35; transform: translateX(-6px); transition: all .4s var(--ease); }
.rev-step.on { opacity: 1; transform: none; background: var(--green-wash); border-color: #b7e3cb; }
.rev-step .rs-ic { width: 30px; height: 30px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.rev-score { text-align: center; background: var(--wash); border: 1px solid var(--line); border-radius: 18px; padding: 32px 20px; }
.rev-stars { font-size: 34px; color: var(--amber); letter-spacing: 3px; }
.rev-num { font-size: 40px; font-weight: 820; font-family: var(--display); margin-top: 8px; color: var(--green-d); }
.rev-num small { font-size: 14px; color: var(--dim); font-weight: 600; display: block; }
.rev-count { margin-top: 6px; color: var(--dim); font-size: 14px; }

/* ── ROI ── */
.roi-stage { text-align: center; }
.roi-slider { max-width: 480px; margin: 0 auto 36px; }
.roi-slider label { font-size: 18px; }
.roi-slider input[type=range] { width: 100%; margin-top: 14px; accent-color: var(--green); height: 6px; }
.roi-slider-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); margin-top: 4px; }
.roi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 8px; }
.roi-card { background: var(--wash); border: 1px solid var(--line); border-radius: 16px; padding: 24px 16px; }
.roi-card.hero-card { background: var(--green-d); border-color: var(--green-d); grid-column: span 1; }
.roi-n { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 820; font-family: var(--display); letter-spacing: -0.03em; color: var(--green-d); }
.hero-card .roi-n { color: var(--green-l); }
.roi-money { color: var(--green-l); }
.roi-l { font-size: 13.5px; color: var(--dim); margin-top: 6px; line-height: 1.3; }
.hero-card .roi-l { color: #b7e3cb; }
.roi-foot { color: var(--dim); font-size: 14px; margin-top: 24px; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* trust */
.trust { padding: clamp(52px, 8vw, 96px) 0; }
.trust-in .h2 { max-width: 20ch; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.tcard { background: var(--wash); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.tcard .ti { width: 46px; height: 46px; border-radius: 12px; background: var(--green-wash); color: var(--green); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.tcard h3 { font-size: 19px; margin: 18px 0 8px; letter-spacing: -0.01em; }
.tcard p { font-size: 15px; color: var(--ink-2); margin: 0; }

/* pricing */
.pricing { padding: clamp(52px, 8vw, 96px) 0; background: var(--wash); }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; align-items: start; }
.tier { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 30px 26px; position: relative; }
.tier.featured { border: 2px solid var(--green); box-shadow: var(--shadow); transform: translateY(-8px); }
.tier-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 14px; border-radius: 999px; letter-spacing: 0.04em; }
.tier-name { font-family: var(--mono); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); }
.tier-tag { font-family: var(--display); font-size: 1.75rem; line-height: 1.05; letter-spacing: -0.01em; color: var(--ink); margin: 8px 0 6px; }
.tier-list { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 11px; }
.tier-list li { padding-left: 26px; position: relative; font-size: 15px; }
.tier-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.tier-cta { width: 100%; justify-content: center; }
.pricing-note { text-align: center; color: var(--ink-2); margin-top: 32px; font-weight: 550; }

/* final */
.final { padding: clamp(56px, 9vw, 110px) 0; background: var(--green-d); color: #eafff4; text-align: center; }
.final .h2 { color: #fff; max-width: 22ch; margin: 0 auto; }
.final .sub { color: #b7e3cb; max-width: 58ch; margin-left: auto; margin-right: auto; }
.final .btn-primary { background: var(--green-l); color: #06231a; margin-top: 30px; }
.final .btn-primary:hover { background: #fff; }
.final-fine { color: #c8e5d6; font-size: 14px; margin-top: 18px; }

/* footer */
.foot { padding: 28px 0; border-top: 1px solid #12352a; background: var(--green-d); color: #cfe6da; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.foot-dim { color: #a9cebe; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(6,40,28,0.55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; border-radius: 20px; padding: 34px; max-width: 440px; width: 100%; box-shadow: var(--shadow); position: relative; animation: pop .3s var(--ease); }
.modal-x { position: absolute; top: 16px; right: 18px; background: none; border: none; font-size: 26px; color: var(--dim); cursor: pointer; line-height: 1; }
.modal-card h3 { margin: 0 0 8px; font-size: 24px; font-family: var(--display); font-weight: 800; letter-spacing: -0.02em; }
.modal-card p { font-size: 15px; color: var(--ink-2); margin: 0 0 18px; }
#book-form { display: flex; flex-direction: column; gap: 10px; }
#book-form input { padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; font-size: 15px; font-family: var(--font); }
#book-form input:focus { outline: none; border-color: var(--green); }
#book-form .btn { margin-top: 6px; justify-content: center; }
.modal-status { font-size: 14px; margin: 12px 0 0 !important; min-height: 18px; }
.modal-status.ok { color: var(--green); } .modal-status.err { color: var(--red); }
.modal-alt { font-size: 14px; margin-top: 14px !important; }
.modal-alt a { color: var(--green); font-weight: 600; }

/* explainer video */
.video-sec { padding: clamp(40px, 6vw, 72px) 0; background: var(--wash); }
.video-frame { max-width: 900px; margin: 36px auto 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.video-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }

/* responsive */
@media (max-width: 860px) {
  .hero-proof { grid-template-columns: 1fr; gap: 14px; }
  .stl-stage, .rev-stage { grid-template-columns: 1fr; }
  .roi-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid, .tiers { grid-template-columns: 1fr; }
  .tier.featured { transform: none; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .roi-grid { grid-template-columns: 1fr; }
  .phones { gap: 14px; }
  .bar-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; scroll-behavior: auto; } }

.hp i { font-style: normal; font-size: 0.82em; color: var(--dim); display: block; margin-top: 2px; }

/* proof band — backs the "we prove it" claim + bridges to operator credibility */
.proof-band { margin-top: 28px; border: 1px solid var(--line); border-left: 3px solid var(--green); background: var(--green-wash); border-radius: 0 16px 16px 0; padding: clamp(20px,3vw,28px); }
.proof-band-in { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(18px,3vw,32px); align-items: center; }
@media (max-width: 720px) { .proof-band-in { grid-template-columns: 1fr; } }
.proof-eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-d); font-weight: 600; }
.proof-copy { margin: 10px 0 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.proof-links { display: flex; flex-direction: column; gap: 10px; }
.proof-link { font-family: var(--mono); font-size: 13px; color: var(--green-d); border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 11px 14px; transition: border-color .2s, transform .2s; }
.proof-link:hover { border-color: var(--green); transform: translateY(-1px); }

/* hero live-demo link */
.hero-live { margin: 14px 0 0; font-size: 14px; }
.hero-live a { color: var(--green-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(15,122,82,0.35); }
.hero-live a:hover { text-decoration-color: var(--green); }

/* risk-reversal band */
.reversal { background: var(--wash); }
.rev-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 860px) { .rev-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .rev-grid { grid-template-columns: 1fr; } }
.rev-item { border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 22px; }
.rev-item .rev-i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--green-wash); color: var(--green-d); font-size: 16px; }
.rev-item h3 { font-family: var(--display); font-weight: 400; font-size: 1.3rem; margin: 14px 0 6px; color: var(--ink); }
.rev-item p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--dim); }

/* testimonials */
.quotes { background: var(--paper); }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px,100%),1fr)); gap: 16px; margin-top: 30px; }
.quote-card { margin: 0; border: 1px solid var(--line); background: var(--wash); border-radius: var(--radius); padding: 24px; }
.quote-card blockquote { margin: 0; font-size: 15px; line-height: 1.65; color: var(--ink); }
.quote-card figcaption { margin-top: 14px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); }
