/* Opsmate public pages: the marketing page (body.mkt) and the pitch demo (body.demo).
 * Same tokens as the app (src/app/assets/app.css), system fonts, dark mode via prefers-color-scheme.
 *
 * Shared    .btn(.btn-primary|-secondary|-ghost, .btn-sm|-lg, .btn-block) .link .logo .eyebrow .m-wrap
 * Mockups   .phone (.phone-notch .phone-screen) .wa-head .wa-body .wa-input .mk-bubble.mk-in|mk-out .mk-pill .mk-btn
 *           .mk-av .mock (.mock-bar) and one block per product shot: .ib-* inbox, .q-* quote, .sch-* schedule, .st-* site
 * Marketing .m-header .hero .m-section .steps .feature .m-rules .faq .m-cta .m-footer
 * Demo      .d-top .d-steps .d-stage > .d-col .d-label .d-card .wa-btns
 */

:root {
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;

  --bg: #FFFFFF; --bg-2: #F7F8F7; --surface: #FFFFFF; --surface-2: #F4F6F5; --surface-3: #ECEFEE;
  --border: #E5E9E7; --border-strong: #D0D6D3;
  --text: #0C1513; --text-2: #4A5753; --text-3: #75827D;
  --brand: #0E7C66; --brand-hover: #0B6B58; --brand-soft: #E7F4F0; --brand-ink: #0A6654; --on-brand: #FFFFFF;
  --brand-glow: rgba(14, 124, 102, .16);
  --red-soft: #FDEDEC; --red-ink: #B42318; --amber-soft: #FEF4E2; --amber-ink: #9A5B05;
  --blue-soft: #EBF2FE; --blue-ink: #1D4ED8; --green-soft: #E9F7EE; --green-ink: #157A3C;
  --violet-soft: #F2EEFE; --violet-ink: #6941C6;

  --wa-bg: #EFEAE2; --wa-in: #FFFFFF; --wa-out: #D9FDD3; --wa-head: #F0F2F5; --wa-ink: #111B21; --wa-meta: #667781; --wa-btn: #027EB5;
  --phone: #0F1514; --phone-edge: #2A3330;

  --radius-sm: 8px; --radius: 12px; --radius-lg: 18px; --radius-xl: 24px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(12, 21, 19, .05);
  --shadow: 0 1px 2px rgba(12, 21, 19, .04), 0 8px 24px rgba(12, 21, 19, .07);
  --shadow-lg: 0 30px 60px -12px rgba(12, 21, 19, .22), 0 12px 24px -8px rgba(12, 21, 19, .1);
  --focus-ring: 0 0 0 3px color-mix(in srgb, var(--brand) 32%, transparent);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0E0D; --bg-2: #0E1413; --surface: #121816; --surface-2: #19201E; --surface-3: #212A27;
    --border: #212A27; --border-strong: #34403C;
    --text: #EDF2F0; --text-2: #A9B6B1; --text-3: #7C8A85;
    --brand: #17A286; --brand-hover: #1DB394; --brand-soft: rgba(23, 162, 134, .14); --brand-ink: #55D6B7;
    --brand-glow: rgba(23, 162, 134, .22);
    --red-soft: rgba(217, 45, 32, .18); --red-ink: #FF9A90; --amber-soft: rgba(229, 154, 26, .15); --amber-ink: #F4BE5C;
    --blue-soft: rgba(59, 130, 246, .16); --blue-ink: #93BBFF; --green-soft: rgba(34, 165, 90, .16); --green-ink: #7BE0A3;
    --violet-soft: rgba(127, 86, 217, .2); --violet-ink: #C7B5FF;
    --wa-bg: #0B141A; --wa-in: #202C33; --wa-out: #005C4B; --wa-head: #202C33; --wa-ink: #E9EDEF; --wa-meta: #8696A0; --wa-btn: #53BDEB;
    --phone: #000000; --phone-edge: #2C3532;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 30px 60px -12px rgba(0, 0, 0, .7), 0 12px 24px -8px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
strong { font-weight: 650; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--brand) 22%, transparent); }
[hidden] { display: none !important; }
.icon, .pi { width: 18px; height: 18px; flex-shrink: 0; }
.skip-link { position: absolute; left: 12px; top: 12px; transform: translateY(-200%); z-index: 200; padding: 10px 14px; background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.skip-link:focus { transform: none; }

.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 30px; height: 30px; }
.logo-word { font-weight: 750; font-size: 19px; letter-spacing: -.025em; color: var(--text); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid transparent; font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, box-shadow .15s, transform .15s; background: none; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.btn .icon, .btn .pi { width: 17px; height: 17px; }
.btn-primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 1px 2px rgba(12, 21, 19, .12), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); border-color: var(--border-strong); color: var(--text); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--text-3); }
.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-block { width: 100%; }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-ink); font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; cursor: pointer; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link .icon { width: 15px; height: 15px; }

.m-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--brand-ink); font-weight: 650; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow .pi { width: 16px; height: 16px; }

/* ------------------------------------------------------------------ header */
.m-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.8) blur(14px); -webkit-backdrop-filter: saturate(1.8) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent); }
.m-header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.m-logo { display: inline-flex; }
.m-nav { display: flex; gap: 4px; margin: 0 auto; }
.m-nav a { padding: 8px 14px; border-radius: var(--radius-pill); color: var(--text-2); font-size: 14.5px; font-weight: 550; transition: color .15s, background-color .15s; }
.m-nav a:hover { color: var(--text); background: var(--surface-2); }
.m-header-cta { display: flex; align-items: center; gap: 6px; }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; }
.hero-glow { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(closest-side, var(--brand-glow), transparent) 82% 18% / 900px 640px no-repeat,
    radial-gradient(closest-side, color-mix(in srgb, var(--brand-glow) 55%, transparent), transparent) 0% 0% / 700px 420px no-repeat; }
.hero-glow::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 56px; align-items: center; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--border); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--surface) 80%, transparent); color: var(--text-2); font-size: 13.5px; font-weight: 550; box-shadow: var(--shadow-sm); }
.ep-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.hero-title { margin-top: 22px; font-family: var(--display); font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -.045em; font-weight: 760; text-wrap: balance; }
.hl { color: var(--brand); background: linear-gradient(100deg, var(--brand) 20%, color-mix(in srgb, var(--brand) 55%, #2BB596)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub { margin-top: 22px; max-width: 34em; color: var(--text-2); font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.6; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-promises { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--text-2); font-size: 14.5px; font-weight: 550; }
.hero-promises li { display: inline-flex; align-items: center; gap: 7px; }
.hero-promises .icon { width: 16px; height: 16px; padding: 2px; border-radius: 50%; color: var(--brand-ink); background: var(--brand-soft); stroke-width: 3; }

.hero-art { position: relative; display: flex; justify-content: center; padding: 8px 0 8px 40px; }

/* ------------------------------------------------------------------ phone + WhatsApp mockups */
.phone { position: relative; width: 320px; max-width: 100%; aspect-ratio: 9 / 19.2; padding: 10px; border-radius: 46px; background: var(--phone); box-shadow: var(--shadow-lg), inset 0 0 0 1.5px var(--phone-edge); }
.phone-notch { position: absolute; top: 18px; left: 50%; z-index: 3; width: 92px; height: 26px; transform: translateX(-50%); border-radius: 20px; background: #000; }
.phone-screen, .phone > .wa-head { border-radius: 37px; }
.phone-hero { display: flex; flex-direction: column; overflow: hidden; }
.phone-hero > .wa-head { border-radius: 37px 37px 0 0; }
.phone-hero > .wa-input { border-radius: 0 0 37px 37px; }
.wa-head { display: flex; align-items: center; gap: 10px; padding: 46px 16px 10px; background: var(--wa-head); color: var(--wa-ink); border-bottom: 1px solid color-mix(in srgb, var(--wa-meta) 18%, transparent); }
.wa-head strong { display: block; font-size: 14.5px; line-height: 1.25; }
.wa-head div > span { display: block; font-size: 12px; color: var(--wa-meta); }
.wa-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #C2410C; color: #fff; font-weight: 700; font-size: 13px; }
.wa-avatar-brand { background: none; }
.wa-avatar-brand .logo-mark { width: 34px; height: 34px; }
.wa-body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 14px; overflow: hidden; background-color: var(--wa-bg);
  background-image: radial-gradient(color-mix(in srgb, var(--wa-meta) 14%, transparent) 1px, transparent 1px); background-size: 18px 18px; }
.wa-day { align-self: center; margin: 2px 0 4px; padding: 3px 10px; border-radius: 8px; background: var(--wa-in); color: var(--wa-meta); font-size: 11.5px; font-weight: 600; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa-input { padding: 10px 12px 18px; background: var(--wa-head); }
.wa-input span { display: block; padding: 9px 14px; border-radius: 20px; background: var(--wa-in); color: var(--wa-meta); font-size: 13.5px; }
.mk-bubble { position: relative; max-width: 84%; padding: 6px 9px 18px; border-radius: 10px; background: var(--wa-in); color: var(--wa-ink); font-size: 13px; line-height: 1.4; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.mk-bubble p { white-space: pre-line; overflow-wrap: anywhere; }
.mk-bubble a { color: var(--wa-btn); text-decoration: underline; text-underline-offset: 2px; }
.mk-in { align-self: flex-start; border-top-left-radius: 3px; }
.mk-out { align-self: flex-end; border-top-right-radius: 3px; background: var(--wa-out); }
.mk-time { position: absolute; right: 8px; bottom: 3px; color: var(--wa-meta); font-size: 10.5px; }
.mk-photo { padding: 4px 4px 18px; }
.mk-photo-img { display: block; width: 150px; height: 96px; border-radius: 7px;
  background: linear-gradient(160deg, #8BA4AE 0%, #5D7480 45%, #3E5059 100%); position: relative; overflow: hidden; }
.mk-photo-img::before { content: ""; position: absolute; left: 22px; right: 22px; bottom: 18px; height: 34px; border-radius: 6px; background: linear-gradient(#C9D3D6, #9FB0B6); }
.mk-photo-img::after { content: ""; position: absolute; left: 62px; bottom: 6px; width: 30px; height: 12px; border-radius: 50%; background: rgba(120, 190, 230, .75); }

/* floating request card on the hero */
.float-card { position: absolute; left: -8px; bottom: 54px; z-index: 4; width: 300px; padding: 14px; border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); box-shadow: var(--shadow-lg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); animation: float-in .7s .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes float-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.fc-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fc-label { color: var(--brand-ink); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 11px; }
.fc-time { margin-left: auto; }
.fc-main { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.fc-main > div { min-width: 0; flex: 1; }
.fc-main strong { display: block; font-size: 14.5px; }
.fc-main div > span { display: block; font-size: 12.5px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-meta { display: flex; align-items: center; gap: 6px; margin-top: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); font-size: 12.5px; font-weight: 550; }
.fc-meta .icon { width: 14px; height: 14px; color: var(--text-3); }
.fc-meta .icon:nth-of-type(2) { margin-left: 10px; }
.fc-actions { display: flex; gap: 6px; margin-top: 10px; }
.fc-actions .mk-btn { flex: 1; }

.mk-av { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; font-weight: 700; font-size: 12.5px; }
.av-a { background: var(--violet-soft); color: var(--violet-ink); } .av-b { background: var(--blue-soft); color: var(--blue-ink); } .av-c { background: var(--amber-soft); color: var(--amber-ink); }
.mk-pill { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 650; white-space: nowrap; }
.pill-red { background: var(--red-soft); color: var(--red-ink); } .pill-blue { background: var(--blue-soft); color: var(--blue-ink); } .pill-green { background: var(--green-soft); color: var(--green-ink); } .pill-amber { background: var(--amber-soft); color: var(--amber-ink); }
.mk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--text); }
.mk-btn .icon { width: 14px; height: 14px; }
.mk-btn-primary { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.mk-btn-ghost { border-color: transparent; color: var(--text-2); }

/* ------------------------------------------------------------------ sections */
.m-section { padding: 104px 0; }
.m-head { max-width: 720px; margin: 0 auto 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.m-head-left { margin: 0; text-align: left; align-items: flex-start; }
.m-title { font-family: var(--display); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; letter-spacing: -.035em; font-weight: 740; text-wrap: balance; }
.m-title-sm { font-size: clamp(27px, 3.1vw, 38px); }
.m-lead { color: var(--text-2); font-size: 17.5px; line-height: 1.65; text-wrap: pretty; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.step-n { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.step-n::before { content: "0"; }
.step-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.step-icon .icon { width: 21px; height: 21px; }
.step h3 { font-size: 17px; letter-spacing: -.015em; line-height: 1.3; }
.step p { margin-top: 8px; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 1px; background: var(--border-strong); }

.m-features { padding-top: 24px; background: linear-gradient(var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; padding: 56px 0; }
.feature-flip .feature-copy { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 16px; }
.ticks { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-weight: 550; font-size: 15.5px; }
.ticks .icon { width: 20px; height: 20px; padding: 3px; border-radius: 50%; color: var(--brand-ink); background: var(--brand-soft); stroke-width: 3; }
.feature-art { position: relative; display: flex; justify-content: center; padding: 28px; border-radius: var(--radius-xl); border: 1px solid var(--border);
  background: radial-gradient(420px 260px at 70% 0%, var(--brand-glow), transparent 70%), var(--surface-2); }
.feature-art::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(color-mix(in srgb, var(--text-3) 22%, transparent) 1px, transparent 1px); background-size: 16px 16px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }

.mock { position: relative; width: 100%; max-width: 480px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; }
.mock-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mock-title { font-weight: 700; font-size: 15px; letter-spacing: -.01em; }
.mk-count { padding: 2px 9px; border-radius: var(--radius-pill); background: var(--brand); color: var(--on-brand); font-size: 11.5px; font-weight: 700; }

/* inbox */
.ib-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.ib-row:first-child { background: color-mix(in srgb, var(--brand-soft) 55%, transparent); box-shadow: inset 3px 0 0 var(--brand); }
.ib-main { flex: 1; min-width: 0; }
.ib-main strong { display: block; font-size: 13.5px; }
.ib-main span { display: block; color: var(--text-2); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-end { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ib-when { color: var(--text-3); font-size: 11.5px; }
.ib-detail { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); }
.ib-kv { display: grid; grid-template-columns: 76px 1fr; gap: 8px; font-size: 12.5px; }
.ib-kv span { color: var(--text-3); }
.ib-kv strong { font-weight: 550; }
.ib-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* quote */
.q-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--border); }
.q-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.q-ref { color: var(--text-3); font-size: 11.5px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.q-head strong { font-size: 15px; letter-spacing: -.01em; }
.q-to { color: var(--text-2); font-size: 12.5px; }
.q-lines { padding: 6px 16px; }
.q-line { display: grid; grid-template-columns: auto 1fr auto 64px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); }
.q-line:last-child { border-bottom: 0; }
.q-kind { padding: 2px 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; }
.q-labour { background: var(--blue-soft); color: var(--blue-ink); } .q-materials { background: var(--violet-soft); color: var(--violet-ink); }
.q-desc { font-size: 12.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-qty { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.q-qty::before { content: "×"; margin-right: 2px; }
.q-amt { display: block; justify-self: end; width: 52px; height: 9px; border-radius: 5px; background: var(--surface-3); }
.q-totals { margin: 0 16px; padding: 10px 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--text-2); }
.q-totals > div { display: flex; justify-content: space-between; align-items: center; }
.q-total { color: var(--text); font-weight: 700; font-size: 14px; }
.q-amt-lg { width: 72px; height: 12px; background: color-mix(in srgb, var(--brand) 30%, var(--surface-3)); }
.q-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; background: var(--surface-2); border-top: 1px solid var(--border); }
.q-valid { color: var(--text-3); font-size: 12px; }

/* schedule */
.sch-nav { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-size: 12px; font-weight: 600; }
.sch-nav > span { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 6px; border: 1px solid var(--border); border-radius: 7px; }
.sch-nav .icon { width: 14px; height: 14px; }
.sch-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: 250px; }
.sch-col { display: flex; flex-direction: column; gap: 6px; padding: 10px 6px; border-right: 1px solid var(--border);
  background-image: repeating-linear-gradient(180deg, transparent 0 39px, var(--border) 39px 40px); background-position: 0 52px; }
.sch-col:last-child { border-right: 0; }
.sch-col.is-today { background-color: color-mix(in srgb, var(--brand-soft) 50%, transparent); }
.sch-day { min-width: 0; display: flex; flex-direction: column; align-items: center; padding-bottom: 8px; color: var(--text-3); font-size: 11px; font-weight: 600; }
.sch-day strong { color: var(--text); font-size: 16px; font-variant-numeric: tabular-nums; }
.is-today .sch-day strong { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.sch-job { display: flex; flex-direction: column; padding: 6px 7px; border-radius: 7px; border-left: 3px solid; font-size: 11px; line-height: 1.3; min-width: 0; }
.sch-job strong { font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-job span { color: var(--text-2); }
.b1, .b5 { background: var(--brand-soft); border-color: var(--brand); } .b2 { background: var(--blue-soft); border-color: #3B82F6; margin-top: 30px; }
.b3 { background: var(--violet-soft); border-color: #7F56D9; } .b4 { background: var(--red-soft); border-color: #D92D20; margin-top: 46px; }
.b6 { background: var(--amber-soft); border-color: #E59A1A; margin-top: 18px; } .b1 { margin-top: 10px; }

/* site */
.br-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.br-dots { display: flex; gap: 6px; }
.br-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.br-url { display: inline-flex; align-items: center; gap: 6px; flex: 1; min-width: 0; padding: 5px 10px; border-radius: 7px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; }
.br-url .icon { width: 12px; height: 12px; color: var(--brand-ink); }
.st-body { display: flex; flex-direction: column; gap: 10px; padding: 26px 22px 22px; background: linear-gradient(180deg, #FFF7F2, #FFFFFF 70%); color: #0D1B2A; }
@media (prefers-color-scheme: dark) { .st-body { background: linear-gradient(180deg, #1A1512, #121816 70%); color: #F1EDE9; } }
.st-tag { align-self: flex-start; padding: 3px 9px; border-radius: var(--radius-pill); background: rgba(194, 65, 12, .1); color: #C2410C; font-size: 11px; font-weight: 700; }
.st-h { font-size: 21px; line-height: 1.15; letter-spacing: -.025em; font-weight: 760; }
.st-p { font-size: 12.5px; opacity: .75; }
.st-ctas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.st-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 9px; font-size: 12px; font-weight: 650; }
.st-btn .icon { width: 14px; height: 14px; }
.st-wa { background: #C2410C; color: #fff; }
.st-chat { border: 1px solid currentColor; opacity: .85; }
.st-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; }
.st-services span { padding: 10px 8px; border-radius: 9px; border: 1px solid rgba(13, 27, 42, .1); background: rgba(255, 255, 255, .6); font-size: 11px; font-weight: 600; line-height: 1.3; }
@media (prefers-color-scheme: dark) { .st-services span { border-color: rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .03); } }

/* rules */
.m-rules { background: #08110F; color: #EAF2EF; position: relative; overflow: hidden;
  --text-2: #A3B3AE; --border: rgba(255, 255, 255, .09); --brand-ink: #5CD8B9; --brand-soft: rgba(23, 162, 134, .16); }
.m-rules::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(700px 360px at 50% -10%, rgba(23, 162, 134, .28), transparent 70%); }
.m-rules .m-wrap { position: relative; }
.eyebrow-dark { color: #5CD8B9; }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .015)); }
.rule-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); border: 1px solid rgba(92, 216, 185, .2); }
.rule-icon .icon, .rule-icon .pi { width: 21px; height: 21px; }
.rule h3 { font-size: 18.5px; letter-spacing: -.015em; }
.rule p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* faq */
.m-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 620; font-size: 16.5px; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand-ink); }
.faq-plus { width: 20px; height: 20px; color: var(--text-3); transition: transform .2s; }
.faq-item[open] .faq-plus { transform: rotate(45deg); }
.faq-item p { padding: 0 40px 22px 0; color: var(--text-2); line-height: 1.7; }

/* final CTA + footer */
.m-cta { padding: 0 0 104px; }
.m-cta-in { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 72px 32px; border-radius: var(--radius-xl); text-align: center;
  background: radial-gradient(600px 300px at 50% 0%, var(--brand-glow), transparent 70%), var(--surface-2); border: 1px solid var(--border); max-width: 1132px; }
.m-cta-in .m-lead { max-width: 36em; }
.m-cta-in .hero-ctas { justify-content: center; margin-top: 12px; }
.m-footer { border-top: 1px solid var(--border); padding: 32px 0 40px; }
.m-footer-in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--text-3); font-size: 14px; }
.m-footer-in p { flex: 1; }
.m-footer nav { display: flex; gap: 20px; }
.m-footer nav a:hover { color: var(--text); }

/* ------------------------------------------------------------------ marketing: responsive */
@media (max-width: 1080px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .feature { gap: 40px; }
}
@media (max-width: 900px) {
  .m-nav { display: none; }
  .m-header-cta { margin-left: auto; }
  .hero { padding: 48px 0 72px; }
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .hero-ctas, .hero-promises { justify-content: center; }
  .hero-art { padding: 0; }
  .float-card { left: 50%; bottom: 40px; transform: translateX(-108%); }
  .feature, .feature-flip { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 40px 0; }
  .feature-flip .feature-copy { order: 0; }
  .m-faq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .m-section { padding: 80px 0; }
}
@media (max-width: 640px) {
  .m-wrap { padding: 0 16px; }
  .m-header-in { height: 60px; gap: 8px; }
  .eyebrow-pill { font-size: 12px; padding: 5px 12px 5px 9px; gap: 8px; }
  .m-header-cta .btn-ghost { padding: 0 10px; }
  .hero-title { font-size: clamp(38px, 11.5vw, 52px); }
  .hero-ctas { width: 100%; flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
  .hero-art { flex-direction: column; align-items: center; }
  .phone-hero { width: 290px; }
  .float-card { position: relative; left: auto; bottom: auto; transform: none; width: 100%; max-width: 340px; margin-top: -120px; }
  .steps, .rules { grid-template-columns: 1fr; }
  .step-top { margin-bottom: 14px; }
  .m-head { margin-bottom: 36px; }
  .m-section { padding: 64px 0; }
  .feature-art { padding: 14px; margin: 0 -4px; }
  .rule { padding: 22px; }
  .m-cta-in { padding: 48px 20px; }
  .m-cta { padding-bottom: 64px; }
  .faq-item p { padding-right: 0; }
  .st-services { grid-template-columns: 1fr 1fr; }
  .st-services span:last-child { display: none; }
  .ib-actions .mk-btn-ghost { display: none; }
}

/* ------------------------------------------------------------------ pitch demo */
body.demo { background: var(--bg-2); min-height: 100vh; }
.d-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 14px; padding: 12px 24px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.d-badge { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-ink); font-size: 12.5px; font-weight: 700; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.d-biz { flex: 1; min-width: 0; font-weight: 650; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.d-biz span { color: var(--text-3); font-weight: 500; }
.d-reset { margin: 0; }
.d-flash { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 14px; }
.d-main { max-width: 1320px; margin: 0 auto; padding: 24px 24px 56px; }

.d-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 28px; }
.d-step { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); transition: border-color .2s, box-shadow .2s, opacity .2s; }
.d-step strong { display: block; font-size: 14.5px; letter-spacing: -.01em; line-height: 1.35; }
.d-step div span { display: block; margin-top: 2px; color: var(--text-2); font-size: 13px; line-height: 1.45; }
.d-step-n { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--surface-3); color: var(--text-2); font-weight: 750; font-size: 13.5px; transition: background-color .2s, color .2s; }
.d-step.is-current { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.d-step.is-current .d-step-n { background: var(--brand); color: var(--on-brand); }
.d-step.is-done .d-step-n { background: var(--brand-soft); color: var(--brand-ink); }
.d-step.is-done .d-step-n { font-size: 0; }
.d-step.is-done .d-step-n::before { content: ""; width: 11px; height: 6px; margin-top: -3px; border: solid currentColor; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.d-step.is-done { opacity: .72; }

.d-stage { display: grid; grid-template-columns: auto auto minmax(280px, 1fr); gap: 40px; align-items: start; justify-content: center; }
.d-col { display: flex; flex-direction: column; align-items: center; gap: 14px; min-width: 0; }
.d-col-app { align-items: stretch; max-width: 380px; padding-top: 38px; gap: 16px; }
.d-col-app .d-label { position: absolute; margin-top: -38px; }
.d-col-app { position: relative; }
.d-label { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 650; color: var(--text-2); }
.d-label-n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--text); color: var(--bg); font-size: 11.5px; font-weight: 750; }
.phone-demo { width: 360px; height: clamp(580px, calc(100vh - 290px), 760px); aspect-ratio: auto; }
.phone-demo .phone-screen { display: flex; flex-direction: column; width: 100%; height: 100%; border-radius: 37px; background: var(--surface); overflow: hidden; }
.phone-site { padding-top: 46px; border-bottom: 1px solid var(--border); }
.phone-site iframe { flex: 1; width: 100%; border: 0; border-top: 1px solid var(--border); border-radius: 0 0 37px 37px; background: #fff; }
.wa-screen .wa-head { border-radius: 37px 37px 0 0; }
.wa-screen .wa-input { border-radius: 0 0 37px 37px; }
.wa-screen .wa-body { overflow-y: auto; overscroll-behavior: contain; gap: 8px; }
.wa-msg { display: flex; flex-direction: column; gap: 3px; max-width: 88%; }
.wa-msg .mk-bubble { max-width: none; font-size: 13.5px; }
.wa-msg.is-new { animation: msg-in .45s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } }
.wa-btns { display: flex; flex-direction: column; gap: 3px; }
.wa-btn { display: block; width: 100%; padding: 9px; border: 0; border-radius: 8px; background: var(--wa-in); color: var(--wa-btn); text-align: center; font: inherit; font-size: 13.5px; font-weight: 600; text-decoration: none; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); cursor: default; }
a.wa-btn, button.wa-btn { cursor: pointer; }
a.wa-btn:hover, button.wa-btn:hover { background: color-mix(in srgb, var(--wa-btn) 8%, var(--wa-in)); }
.wa-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
button.wa-btn:disabled { opacity: .6; }
.wa-empty { margin: auto; max-width: 240px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 18px; border-radius: 14px; text-align: center; background: color-mix(in srgb, var(--wa-in) 90%, transparent); color: var(--wa-meta); font-size: 13px; line-height: 1.5; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); }
.wa-empty .icon { width: 28px; height: 28px; color: #25D366; }
.wa-empty p { color: var(--wa-ink); font-weight: 650; font-size: 14.5px; }
.d-under { display: flex; gap: 16px; }
.d-note { color: var(--text-3); font-size: 12.5px; }

.d-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.d-card h3 { font-size: 18px; letter-spacing: -.015em; line-height: 1.3; }
.d-card p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.d-card form { margin: 4px 0 0; }
.d-card-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); }
.d-card-icon .icon { width: 22px; height: 22px; }
.d-card-icon-green { background: var(--green-soft); color: var(--green-ink); }
.d-card-quote { border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); animation: msg-in .45s both; }
.d-tips { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border); }
.d-tips li { display: flex; gap: 10px; color: var(--text-2); font-size: 13.5px; line-height: 1.5; }
.d-tips .icon { width: 17px; height: 17px; margin-top: 1px; color: var(--text-3); }

@media (max-width: 1240px) {
  .d-stage { grid-template-columns: auto auto; }
  .d-col-app { grid-column: 1 / -1; max-width: 760px; width: 100%; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; padding-top: 0; }
  .d-col-app .d-label { position: static; margin: 0; grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .d-steps { grid-template-columns: 1fr 1fr; }
  .d-stage { gap: 24px; }
  .phone-demo { width: 340px; }
}
@media (max-width: 760px) {
  .d-top { padding: 10px 16px; gap: 10px; }
  .d-biz { display: none; }
  .d-reset { margin-left: auto; }
  .d-main { padding: 16px 16px 48px; }
  .d-steps { grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }
  .d-step { padding: 12px 14px; }
  .d-stage { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .d-col-app { grid-template-columns: 1fr; }
  .phone-demo { width: 100%; max-width: 360px; height: 700px; min-height: 0; }
}
