/* crmSeries site, design pass 2.
   Palette from the yard: plate white, concrete, steel, signal red, hour-meter yellow, gauge gray.
   Type: one family (Archivo) at two widths; condensed heavy display like a machine decal, normal-width body.
   Layout: left-aligned, 1180px column; bold moments are the headline type and the quote animation only. */
:root {
  --red: #E3120B;
  --red-dark: #B30E08;
  --ink: #1E252B;
  --steel: #2B343C;
  --paper: #ECEEEF;
  --line: #D5D9DD;
  --muted: #5C6670;
  --yellow: #F2B300;
  --white: #FFFFFF;
  --font-display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --font-body: "Archivo", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --radius: 4px;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: .005em; }
h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.muted { color: var(--muted); font-weight: 400; }
.fine { font-size: .85rem; color: var(--muted); }
.fine.light { color: #A9AFB6; }

.eyebrow { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: var(--red); margin-bottom: 14px; }
.eyebrow-light { color: #FF6B63; }
.eyebrow-yellow { color: var(--yellow); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; letter-spacing: .03em; padding: 12px 22px; border-radius: 6px; border: 2px solid transparent; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-red:disabled { background: #C9C4BC; cursor: not-allowed; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn-ghost-dark { border-color: var(--line); background: var(--white); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; }
.btn-sm { padding: 8px 16px; font-size: 1rem; }
.btn-block { width: 100%; }

/* Header */
.preview-ribbon { background: var(--yellow); color: var(--ink); text-align: center; font-size: .85rem; font-weight: 600; padding: 6px 16px; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 66px; flex-wrap: wrap; }
.brand img { height: 38px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.main-nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .98rem; color: var(--steel); }
.main-nav a:not(.btn):hover { color: var(--red); }
.nav-login { padding-left: 18px; border-left: 1px solid var(--line); }
@media (max-width: 860px) {
  .main-nav a:not(.btn):not(.nav-login) { display: none; }
  .nav-login { border: 0; padding: 0; }
}

/* Hero */
.hero { background: var(--ink); color: var(--white); padding: 64px 0 72px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: repeating-linear-gradient(-45deg, var(--yellow) 0 14px, var(--ink) 14px 28px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero-copy { display: grid; gap: 22px; }
.hero-solo { grid-template-columns: 1fr; }
.hero-solo .hero-copy { max-width: 900px; }
.hero-solo h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); }
.hero-solo .lede { max-width: 40em; }
.hero-solo .hero-stats { gap: 56px; }
.hero-solo .hero-stats dt { font-size: 2.4rem; }
.hero .eyebrow { color: #FF6B63; margin: 0; }
.lede { font-size: 1.2rem; color: #C9CDD2; max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; margin: 10px 0 0; padding-top: 22px; border-top: 1px solid #33383E; flex-wrap: wrap; }
.hero-stats dt { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--white); }
.hero-stats dd { margin: 0; color: #9BA1A8; font-size: .92rem; }
.hero-photo { margin: 0; position: relative; }
.hero-photo img { border-radius: var(--radius); aspect-ratio: 4/3; object-fit: cover; object-position: 60% center; width: 100%; }
.hero-photo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; background: rgba(21,23,26,.88); color: var(--white); font-size: .92rem; padding: 10px 14px; border-radius: 8px; display: flex; gap: 10px; align-items: center; max-width: 380px; }
.chip { display: inline-block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; }
.chip-live { background: #1E7F45; color: var(--white); white-space: nowrap; }

/* Sections */
.section { padding: 88px 0; }
.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: 44px; }
.section-head.split { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-lede { font-size: 1.12rem; color: var(--muted); max-width: 38em; }
.section-lede.light { color: #B9BEC4; }
.section-steel { background: var(--steel); color: var(--white); }
.section-ink { background: var(--ink); color: var(--white); }

/* Integrations */
.integ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.integ-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 8px; align-content: start; border-top: 4px solid var(--red); }
.card p { color: var(--muted); font-size: .98rem; }
.code-panel { background: #0F1113; color: #D7DBDF; border-radius: var(--radius); overflow: hidden; }
.code-tabs { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: #1B1E22; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: #3A3F45; }
.code-title { margin-left: 10px; font-size: .85rem; color: #9BA1A8; }
.code-panel pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--font-mono); font-size: .86rem; line-height: 1.7; }
.c-m { color: #FF6B63; font-weight: 500; } .c-k { color: #8FA3B8; } .c-s { color: #F2C14E; } .c-v { color: #9BD49B; } .c-n { color: #7FC8F8; }
.code-note { padding: 0 20px 16px; font-size: .8rem; color: #7D838A; }

.api-strip { margin-top: 28px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.api-auth { display: grid; gap: 16px; align-content: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 7px; width: 12px; height: 7px; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg); }
.api-auth .btn { justify-self: start; }
.api-groups-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.bars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 28px; }
.bars li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: .92rem; }
.bars .bar { grid-column: 1 / -1; height: 5px; background: #ECE9E4; border-radius: 3px; overflow: hidden; }
.bars .bar span { display: block; height: 100%; background: var(--red); }
.bars .n { font-variant-numeric: tabular-nums; font-weight: 600; }

/* Pro app */
.app-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.app-copy { display: grid; gap: 22px; }
.app-copy .eyebrow { margin: 0; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li { padding-left: 18px; border-left: 3px solid var(--red); color: #C9CDD2; }
.feature-list strong { color: var(--white); font-weight: 600; }
.store-badges { display: flex; gap: 12px; flex-wrap: wrap; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #A6A6A6; border-radius: 9px; padding: 8px 18px 8px 14px; text-decoration: none; min-width: 172px; }
.store-badge span { display: grid; line-height: 1.1; font-size: 1.28rem; font-weight: 600; letter-spacing: -.01em; }
.store-badge small { font-size: .7rem; font-weight: 400; letter-spacing: .02em; }
.store-badge:hover { border-color: #fff; }

.phone { justify-self: center; margin: 0; width: 300px; background: #0B0C0E; border-radius: 44px; padding: 10px; box-shadow: 0 30px 60px rgba(0,0,0,.35), inset 0 0 0 2px #3A3F45; }
.phone img { width: 100%; border-radius: 34px; }
.ph-top { display: flex; justify-content: space-between; font-weight: 600; font-size: .78rem; padding: 2px 6px 6px; }
.ph-top span:last-child { color: var(--red); font-family: var(--font-display); font-size: .95rem; }
.ph-card { background: var(--white); border-radius: 14px; padding: 12px; border: 1px solid var(--line); display: grid; gap: 6px; }
.ph-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ph-title { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.ph-uc { display: grid; gap: 5px; margin-top: 4px; }
.ph-meter { height: 7px; background: #ECE9E4; border-radius: 4px; overflow: hidden; }
.ph-meter span { display: block; height: 100%; background: #1E7F45; }
.ph-meter.amber span { background: var(--yellow); }
.ph-row { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); }
.ph-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-actions span { background: var(--ink); color: var(--white); border-radius: 10px; padding: 10px 8px; text-align: center; font-weight: 600; font-size: .76rem; }
.ph-actions span:first-child { background: var(--red); }

/* Vision */
.vision-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.vision-copy { display: grid; gap: 22px; }
.vision-copy .eyebrow { margin: 0; }
.vision-uses { display: grid; gap: 18px; margin-top: 6px; }
.vision-uses > div { display: grid; gap: 4px; padding-left: 18px; border-left: 3px solid var(--yellow); }
.vision-uses h3 { color: var(--white); font-size: 1.25rem; }
.vision-uses p { color: #B9BEC4; }
.chat { background: #1E2125; border: 1px solid #33383E; border-radius: 14px; padding: 18px; display: grid; gap: 12px; }
.chat-head { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; padding-bottom: 10px; border-bottom: 1px solid #33383E; }
.chat-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(242,183,5,.18); }
.msg { padding: 12px 14px; border-radius: 12px; font-size: .95rem; max-width: 90%; display: grid; gap: 6px; }
.msg ul { margin: 0; padding-left: 18px; }
.msg-user { background: var(--red); color: var(--white); justify-self: end; border-bottom-right-radius: 4px; }
.msg-ai { background: #2B2F34; color: #E4E7EA; border-bottom-left-radius: 4px; }
.chat-note { font-size: .78rem; color: #7D838A; text-align: center; }

/* OEM */
.oem { background: var(--white); border-block: 1px solid var(--line); padding: 34px 0; }
.oem-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.oem-list { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--steel); line-height: 1.5; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.testi { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; align-content: start; }
.testi blockquote { margin: 0; font-size: 1.05rem; }
.testi .who { font-weight: 600; }
.testi .who span { display: block; font-weight: 400; color: var(--muted); font-size: .92rem; }
.testi .rating { color: var(--yellow); letter-spacing: 2px; font-size: 1.05rem; }
.testi.is-example { border-style: dashed; }
.testi .ex-tag { justify-self: start; background: #ECE9E4; color: var(--muted); }
.testi-empty { grid-column: 1 / -1; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); padding: 36px; text-align: center; display: grid; gap: 10px; justify-items: center; }

/* Demo */
.section-demo { background: linear-gradient(180deg, var(--paper) 0%, #EAE6DF 100%); }
.demo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.demo-copy { display: grid; gap: 18px; position: sticky; top: 100px; }
.demo-copy .eyebrow { margin: 0; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; }
.steps li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.steps span { width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.demo-card { background: var(--white); border-radius: 14px; padding: 30px; box-shadow: 0 20px 50px rgba(21,23,26,.12); border: 1px solid var(--line); }
.progress { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.progress li { font-size: .82rem; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 4px solid #ECE9E4; text-transform: uppercase; letter-spacing: .08em; }
.progress li.is-active, .progress li.is-done { color: var(--ink); border-color: var(--red); }

form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label, legend, .label-like { font-weight: 600; font-size: .92rem; padding: 0; }
legend { margin-bottom: 8px; }
input, textarea { font: inherit; font-size: 1rem; padding: 11px 12px; border: 1.5px solid #CFCAC2; border-radius: 6px; background: var(--white); color: var(--ink); width: 100%; }
input:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242,183,5,.45); }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid #E2DED7; border-radius: 6px; cursor: pointer; font-weight: 500; font-size: .95rem; }
.check input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.check:has(input:checked) { border-color: var(--red); background: #FFF4F3; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red-dark); background: #FFF0EF; border-radius: 6px; padding: 10px 12px; font-size: .92rem; }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.week-label { font-family: var(--font-display); font-weight: 600; font-size: 1.25rem; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.day { border: 1.5px solid var(--line); background: var(--white); border-radius: 8px; padding: 10px 4px; text-align: center; cursor: pointer; font: inherit; display: grid; gap: 2px; }
.day b { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; }
.day small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.day[aria-selected="true"] small { color: #C9CDD2; }
.day:disabled { opacity: .4; cursor: not-allowed; }
.tz-note { font-size: .82rem; color: var(--muted); margin: 14px 0 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; min-height: 100px; align-content: start; }
.slot { border: 1.5px solid var(--line); background: var(--white); border-radius: 6px; padding: 10px 6px; font: inherit; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--ink); }
.slot[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: var(--white); }
.slots-msg { grid-column: 1 / -1; color: var(--muted); padding: 18px 0; }
.step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; }
.step-3 { display: grid; gap: 14px; justify-items: start; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: #1E7F45; color: var(--white); display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(21,23,26,.6); }
.modal-box { position: relative; background: var(--white); border-radius: 14px; padding: 28px; width: min(560px, 100%); max-height: calc(100% - 32px); overflow-y: auto; display: grid; gap: 18px; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; background: transparent; font-size: 1.6rem; cursor: pointer; border-radius: 50%; }
.modal-x:hover { background: #F0EDE8; }
.stars { display: flex; gap: 4px; }
.star { background: none; border: 0; font-size: 1.9rem; line-height: 1; color: #D6D1C9; cursor: pointer; padding: 0 2px; }
.star.on { color: var(--yellow); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .9rem; }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--red); flex: none; }

/* Footer */
.site-footer { background: var(--ink); color: #A9AFB6; padding: 40px 0; font-size: .92rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.footer-row nav { display: flex; gap: 20px; flex-wrap: wrap; flex: 1; }
.footer-row a { text-decoration: none; color: #D7DBDF; }
.footer-row a:hover { color: var(--white); }
.copyright { width: 100%; font-size: .82rem; color: #7D838A; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .integ-grid, .app-grid, .vision-grid, .demo-grid, .api-strip { grid-template-columns: 1fr; }
  .demo-copy { position: static; }
  .phone { order: 2; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .integ-cards, .field-row, .checks, .bars { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .demo-card { padding: 20px; }
  .api-strip { padding: 20px; }
  .hero-stats { gap: 22px; }
}

/* WordPress pages (privacy policy, etc.) */
.page-wrap { max-width: 760px; }
.entry { display: grid; gap: 18px; }
.entry + .entry { margin-top: 48px; }
.entry-content { display: grid; gap: 1em; }
.entry-content a { color: var(--red-dark); }
.entry-content img { border-radius: var(--radius); }
.footer-contact a { color: #D7DBDF; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Light variant: add class="theme-light" to <body> ---------- */
.theme-light .hero { background: var(--white); color: var(--ink); border-bottom: 1px solid var(--line); }
.theme-light .hero::after { display: none; }
.theme-light .hero .eyebrow { color: var(--red); }
.theme-light .lede { color: var(--muted); }
.theme-light .hero-stats { border-top-color: var(--line); }
.theme-light .hero-stats dt { color: var(--ink); }
.theme-light .hero-stats dd { color: var(--muted); }
.theme-light .btn-ghost { border-color: var(--ink); color: var(--ink); }
.theme-light .btn-ghost:hover { background: var(--ink); color: var(--white); }

.theme-light .section-steel, .theme-light .section-ink { background: var(--white); color: var(--ink); border-block: 1px solid var(--line); }
.theme-light .section-lede.light { color: var(--muted); }
.theme-light .eyebrow-light { color: var(--red); }
.theme-light .eyebrow-yellow { color: #B07F00; }
.theme-light .fine.light { color: var(--muted); }
.theme-light .feature-list li { color: var(--muted); }
.theme-light .feature-list strong { color: var(--ink); }
.theme-light .phone { box-shadow: 0 24px 50px rgba(21,23,26,.22), inset 0 0 0 2px #3A3F45; }
.theme-light .vision-uses h3 { color: var(--ink); }
.theme-light .vision-uses p { color: var(--muted); }
.theme-light .chat { background: var(--paper); border-color: var(--line); }
.theme-light .chat-head { border-bottom-color: var(--line); }
.theme-light .msg-ai { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.theme-light .chat-note { color: var(--muted); }

.theme-light .site-footer { background: var(--white); color: var(--muted); border-top: 1px solid var(--line); }
.theme-light .footer-row a, .theme-light .footer-contact a { color: var(--steel); }
.theme-light .footer-row a:hover { color: var(--red); }
.theme-light .copyright { color: var(--muted); }

/* Hero with animated crmSeries Pro demo: list → tap → quote detail, 10s loop */
.hero-app { grid-template-columns: 1.15fr .85fr; }
.hero-device { margin: 0; display: grid; justify-items: center; gap: 16px; }
.device { width: 290px; background: #0B0C0E; border-radius: 44px; padding: 10px; box-shadow: 0 30px 60px rgba(21,23,26,.25), inset 0 0 0 2px #3A3F45; }
.device-screen { position: relative; border-radius: 34px; overflow: hidden; aspect-ratio: 600 / 1304; background: #F7F8FA; }
.scr { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scr-list { animation: scrList var(--loop, 10s) infinite; }
.scr-detail { transform: translateX(100%); animation: scrDetail var(--loop, 10s) infinite; box-shadow: -12px 0 24px rgba(0,0,0,.12); }
.tap { position: absolute; left: 34%; top: 32%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(227,18,11,.35); border: 2px solid rgba(227,18,11,.85); opacity: 0; animation: tap var(--loop, 10s) infinite; }
.device-caption { position: relative; height: 1.5em; width: 100%; text-align: center; font-weight: 600; font-size: .95rem; color: var(--muted); }
.cap { position: absolute; inset: 0; }
.cap-list { animation: capList var(--loop, 10s) infinite; }
.cap-detail { opacity: 0; animation: capDetail var(--loop, 10s) infinite; }
@keyframes tap {
  0%, 18% { opacity: 0; transform: scale(.6); }
  22% { opacity: 1; transform: scale(1); }
  27% { opacity: 1; transform: scale(.8); }
  32%, 100% { opacity: 0; transform: scale(1.6); }
}
@keyframes scrDetail {
  0%, 28% { transform: translateX(100%); }
  36%, 82% { transform: translateX(0); }
  90%, 100% { transform: translateX(100%); }
}
@keyframes scrList {
  0%, 28% { transform: translateX(0); filter: none; }
  36%, 82% { transform: translateX(-25%); filter: brightness(.85); }
  90%, 100% { transform: translateX(0); filter: none; }
}
@keyframes capList { 0%, 28% { opacity: 1; } 33%, 85% { opacity: 0; } 90%, 100% { opacity: 1; } }
@keyframes capDetail { 0%, 28% { opacity: 0; } 33%, 85% { opacity: 1; } 90%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .scr-list, .scr-detail, .tap, .cap-list, .cap-detail { animation: none !important; }
  .scr-detail { display: none; } .cap-detail { display: none; }
}
@media (max-width: 960px) { .hero-app { grid-template-columns: 1fr; } .device { width: 260px; } }

/* Animation paused by the Customizer: show the list only */
.anim-off .scr-list, .anim-off .scr-detail, .anim-off .tap, .anim-off .cap-list, .anim-off .cap-detail { animation: none !important; }
.anim-off .scr-detail, .anim-off .tap, .anim-off .cap-detail { display: none; }

/* Header: keep it on one line on mid-size screens */
@media (max-width: 1180px) { .main-nav { gap: 16px; } .main-nav a:not(.btn) { font-size: .92rem; } }
@media (max-width: 1040px) { .main-nav .nav-optional { display: none; } }

/* Training band */
.training { padding: 56px 0; background: var(--white); border-block: 1px solid var(--line); }
.training-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.training-row > div { display: grid; gap: 8px; max-width: 640px; }
.training-row .eyebrow { margin: 0; }
.btn-youtube { background: #FF0033; color: #fff; }
.btn-youtube:hover { background: #CC0029; }
.btn-youtube svg { flex: none; }
.theme-dark .training { background: var(--paper); }

/* Footer columns */
.footer-cols { display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); gap: 28px; width: 100%; }
.footer-cols h2 { font-family: var(--font-display); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 10px; color: inherit; opacity: .8; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { display: grid; gap: 12px; align-content: start; }
@media (max-width: 760px) { .footer-cols { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* Inner pages */
.page-hero { background: var(--white); border-bottom: 1px solid var(--line); padding: 48px 0 36px; }
.theme-dark .page-hero { background: var(--ink); color: var(--white); border-bottom: 0; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.page-hero .eyebrow { margin-bottom: 10px; }
.page-body { padding: 40px 0 80px; }
.page-body .wrap { max-width: 820px; }
.page-body.is-wide .wrap { max-width: 1180px; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2 { font-size: 1.8rem; margin-top: 1.4em; }
.entry-content ul { padding-left: 1.2em; }
.footer-cols nav { display: block; flex: none; }
.footer-cols a { text-decoration: none; }
.hero-centered .hero-copy { margin-inline: auto; justify-items: center; text-align: center; }
.hero-centered .lede { margin-inline: auto; }
.hero-centered .hero-ctas, .hero-centered .hero-stats { justify-content: center; }
.hero-centered .hero-stats { width: 100%; max-width: 640px; }
.entry-content .btn { text-decoration: none; }
.entry-content .btn-red, .entry-content .btn-dark, .entry-content .btn-youtube { color: var(--white); }
.entry-content .btn-ghost-dark { color: var(--ink); }
.social { display: flex; gap: 18px; flex-wrap: wrap; margin: 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--steel); }
.social a:hover { color: var(--red); }
.theme-dark .social a { color: #D7DBDF; --social-ink: var(--ink); }
.theme-dark .social a:hover { color: var(--white); }


/* ================= Design pass 2 ================= */
body { font-stretch: 100%; font-size: 17px; line-height: 1.6; }
h1, h2, h3 { font-family: var(--font-display); font-stretch: 62%; font-weight: 800; letter-spacing: -.005em; line-height: .98; }
h1 { font-size: clamp(3rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
h3 { font-stretch: 75%; font-weight: 700; font-size: 1.4rem; line-height: 1.15; }
.section-lede { font-size: 1.12rem; max-width: 36em; }

/* Labels: sentence case, no tracking */
.eyebrow { font-family: var(--font-body); font-stretch: 100%; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 1rem; color: var(--red); margin-bottom: 12px; }
.progress li, .oem-title, .api-groups-title, .ph-label, .chip, .plan-badge, .footer-cols h2, .crms-dash th { text-transform: none; letter-spacing: 0; }

/* Buttons: squared like equipment controls */
.btn { font-family: var(--font-body); font-stretch: 87.5%; font-weight: 700; letter-spacing: 0; border-radius: var(--radius); font-size: 1.05rem; padding: 13px 22px; }
.btn-sm { padding: 8px 14px; font-size: .98rem; }
.btn-dark:hover { background: #10151A; }

/* Hero */
.theme-light .hero { background: var(--white); }
.hero { padding: 72px 0 80px; }
.hero h1 { max-width: 11ch; }
.hero-app .hero-copy { gap: 24px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-badges p { width: 100%; color: var(--muted); font-size: .95rem; }
.theme-dark .hero-badges { border-top-color: #3A444D; }
.theme-dark .hero-badges p { color: #A9B1B8; }
.tap { background: rgba(242,179,0,.35); border-color: var(--yellow); }
.device { border-radius: 40px; }

/* Integrations as a spec sheet */
.spec { margin: 0; border-top: 2px solid var(--ink); }
.spec > div { display: grid; grid-template-columns: 11rem 1fr; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; font-stretch: 87.5%; }
.spec dd { margin: 0; color: var(--muted); }
.spec dd strong { color: var(--ink); font-weight: 600; }
.code-panel { border-radius: var(--radius); background: var(--ink); }
.code-tabs { background: #263038; }
.api-strip { border-radius: var(--radius); border-color: var(--line); }
.bars .bar span { background: var(--ink); }
.bars li:first-child .bar span { background: var(--red); }
@media (max-width: 600px) { .spec > div { grid-template-columns: 1fr; gap: 4px; } }

/* Quiet surfaces: one radius, no decorative shadows */
.card, .testi, .api-strip, .chat, .ph-card, .slot, .day, .check, input, textarea, .crms-form-card select, .plan, .icon-btn { border-radius: var(--radius); }
.testi { border-color: var(--line); }
.testi .rating { color: var(--red); }
.phone { box-shadow: none; }
.theme-light .phone { box-shadow: none; }
.demo-card { border-radius: 6px; box-shadow: 0 24px 60px rgba(30,37,43,.16); border: 1px solid var(--line); }
.crms-form-card { border-radius: 6px; box-shadow: 0 18px 44px rgba(30,37,43,.10); }

/* Section rhythm: white and concrete alternate */
#integrations { background: var(--paper); }
.theme-light .section-steel { background: var(--white); border-block: 0; }
.theme-light .section-ink { background: var(--paper); border-block: 0; }
.theme-light .chat { background: var(--white); }
.theme-light .msg-ai { background: var(--paper); border: 0; }
.msg { border-radius: 6px; }
.msg-user { border-bottom-right-radius: 2px; }
.msg-ai { border-bottom-left-radius: 2px; }
.feature-list li { border-left-color: var(--ink); }
.vision-uses > div { border-left-color: var(--yellow); }

/* OEM lines: a plain wrapping list */
.oem { background: var(--white); border-block: 1px solid var(--line); }
.oem-title { font-family: var(--font-body); font-stretch: 100%; font-size: 1rem; font-weight: 600; color: var(--muted); }
.oem-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 28px; font-family: var(--font-display); font-stretch: 75%; font-weight: 700; font-size: 1.35rem; color: var(--steel); }

#testimonials { background: var(--white); }
.training { background: var(--paper); border-block: 0; }
.section-demo { background: var(--paper); }
.steps span { border-radius: var(--radius); background: var(--ink); font-family: var(--font-body); font-stretch: 87.5%; }
.progress li { font-size: .9rem; }

/* Store badges keep Apple/Google's own black style */
.store-badge { border-radius: 8px; }

/* Critique pass: word spacing for condensed display; red reserved for the primary action */
h1, h2 { word-spacing: .08em; letter-spacing: .003em; }
h3 { word-spacing: .04em; }
.msg-user { background: var(--ink); }
.bars li:first-child .bar span { background: var(--ink); }
.chat-dot { background: var(--yellow); box-shadow: none; }
.page-body .wrap { max-width: none; width: min(1180px, 100% - 40px); }
.page-body .entry { max-width: 820px; }
.page-body.is-wide .entry { max-width: none; }
.theme-dark .msg-user { background: #46525C; }

/* Vision Assistant video */
.vision-video { margin: 0; display: grid; justify-items: center; gap: 16px; }
.vision-video .device { width: 290px; }
.vision-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #F7F8FA; }
.video-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; border: 0; padding: 0; cursor: pointer; background: rgba(30,37,43,.28); color: var(--white); font: inherit; font-weight: 700; font-stretch: 87.5%; font-size: 1.05rem; }
.video-overlay:hover { background: rgba(30,37,43,.4); }
.video-overlay-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--white); position: relative; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.video-overlay-icon::after { content: ""; position: absolute; left: 26px; top: 20px; border-left: 18px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.vision-video figcaption { display: grid; justify-items: center; gap: 10px; text-align: center; max-width: 320px; }
.video-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; font-stretch: 87.5%; font-size: .98rem; padding: 8px 16px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--white); color: var(--ink); cursor: pointer; }
.video-btn:hover { border-color: var(--ink); }
.video-note { font-size: .9rem; color: var(--muted); }
.theme-dark .video-btn { background: transparent; color: var(--white); border-color: #46525C; }
.theme-dark .video-note { color: #A9B1B8; }
@media (max-width: 960px) { .vision-video { order: 2; } }
.demo-video:not([data-state="ended"]) .video-btn svg { display: none; }
.demo-video[data-state="ended"] .video-btn { border-color: var(--ink); }

/* Web app section */
.webapp { background: var(--white); }
.webapp .section-head { margin-bottom: 36px; }
.webapp-video { margin: 0; display: grid; gap: 16px; }
.browser { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--white); box-shadow: 0 28px 70px rgba(30,37,43,.14); }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
.browser-url { flex: 1; max-width: 420px; margin-inline: auto; text-align: center; font-size: .82rem; color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 3px 10px; }
.browser-screen { position: relative; aspect-ratio: 1600 / 794; background: #F4F6F8; }
.browser-screen video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.webapp-video figcaption { display: flex; align-items: flex-start; gap: 16px 20px; flex-wrap: wrap; }
.webapp-video .video-note { flex: 1; min-width: 260px; max-width: 70ch; text-align: left; font-size: .95rem; }
.webapp-video .video-note strong { color: var(--ink); font-weight: 600; }
.webapp-features { margin-top: 56px; display: grid; gap: 20px; }
.webapp-features h3 { font-size: 1.6rem; }
.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
.feature-grid li { display: grid; gap: 6px; align-content: start; padding: 18px 0 24px; border-top: 2px solid var(--ink); }
.feature-grid li:nth-child(n+5) { border-top-width: 1px; border-top-color: var(--line); }
.feature-grid strong { font-weight: 700; font-stretch: 87.5%; font-size: 1.08rem; }
.feature-grid span { color: var(--muted); font-size: .95rem; }
.feature-grid li:last-child strong { color: var(--muted); }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feature-grid li:nth-child(n+3) { border-top-width: 1px; border-top-color: var(--line); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } .feature-grid li:nth-child(n+2) { border-top-width: 1px; border-top-color: var(--line); } .browser-bar { height: 30px; } .browser-url { font-size: .72rem; } }
.theme-dark .webapp { background: var(--paper); }
