/* FrontDesk Pal: site styles. Light + dark theme via tokens.
   Theme: follows the device setting; the nav toggle overrides it (html[data-theme]). */
:root {
  --bg: #f6f4ef; --surface: #ffffff; --surface-2: #efebe3;
  --ink: #15201c; --ink-2: #3c4945; --muted: #69736f; --line: #e0dbd1;
  --brand: #14684f; --brand-hover: #0f5641; --brand-ink: #ffffff; --brand-soft: #e2eee8;
  --accent: #a85a24;
  --band: #10201b; --band-2: #172b25; --band-line: #26403a; --band-ink: #e7efeb; --band-muted: #9db1a9;
  --ok: #1d7a55; --ok-soft: #e3f2ea;
  --shadow: 0 1px 2px rgba(21,32,28,.05), 0 12px 32px rgba(21,32,28,.08);
  --radius: 14px; --max: 1160px;
  --bg-dark: var(--band); /* used by p/_template.html */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1311; --surface: #141c19; --surface-2: #1a2521;
    --ink: #e7ece9; --ink-2: #bac5c0; --muted: #8b9893; --line: #26322d;
    --brand: #55c39b; --brand-hover: #6fd3ad; --brand-ink: #06201a; --brand-soft: #16302a;
    --accent: #e39a62;
    --band: #09100d; --band-2: #121b17; --band-line: #22312b; --band-ink: #e7efeb; --band-muted: #95a9a1;
    --ok: #55c39b; --ok-soft: #16302a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1311; --surface: #141c19; --surface-2: #1a2521;
  --ink: #e7ece9; --ink-2: #bac5c0; --muted: #8b9893; --line: #26322d;
  --brand: #55c39b; --brand-hover: #6fd3ad; --brand-ink: #06201a; --brand-soft: #16302a;
  --accent: #e39a62;
  --band: #09100d; --band-2: #121b17; --band-line: #22312b; --band-ink: #e7efeb; --band-muted: #95a9a1;
  --ok: #55c39b; --ok-soft: #16302a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 16px 40px rgba(0,0,0,.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
.section { padding: 96px 0; }
.section.soft { background: var(--surface-2); }
@media (max-width: 700px) { .section { padding: 68px 0; } }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 14px; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; font-variation-settings: "opsz" 96; }
h1 { font-size: clamp(40px, 5.6vw, 66px); }
h1 em, h2 em { font-style: italic; color: var(--brand); }
h2 { font-size: clamp(30px, 3.8vw, 44px); }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.005em; }
.lead-text { font-size: 18.5px; color: var(--ink-2); max-width: 620px; }
.center { text-align: center; }
.center .lead-text { margin: 0 auto; }
.sec-head { max-width: 720px; }
.sec-head.center { margin: 0 auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 15.5px; font-family: inherit; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn svg { width: 18px; height: 18px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* Icons (filled in by assets/ui.js) */
.ic svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 20px; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-lockup { height: 38px; width: auto; display: block; overflow: visible; }
.ll-text { font-family: var(--serif); font-weight: 600; font-size: 36px; letter-spacing: -.5px; fill: var(--ink); }
.ll-pal, .ll-g { fill: var(--brand); }
.ll-ding { fill: none; stroke: #e39a62; stroke-width: 2.8; stroke-linecap: round; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--brand); }
.nav .btn { padding: 9px 16px; font-size: 14.5px; }
.theme-toggle { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; display: grid; place-items: center; flex: none; padding: 0; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
.theme-toggle .ic { width: 18px; height: 18px; }
@media (max-width: 960px) { .nav-links { display: none; } .theme-toggle { margin-left: auto; } }
@media (max-width: 420px) { .nav .btn { display: none; } .logo-lockup { height: 34px; } }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 30px 0 26px; }
.trust { display: flex; gap: 22px; flex-wrap: wrap; color: var(--muted); font-size: 14.5px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .ic { width: 16px; height: 16px; color: var(--ok); }
.hero-visual { position: relative; }
.hero-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--surface-2); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 35% center; }
.hero-chat { position: absolute; left: -36px; top: 34px; width: 268px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.hero-chat .time { font-size: 11.5px; color: var(--muted); text-align: center; }
.b { max-width: 88%; padding: 8px 12px; border-radius: 14px; font-size: 13.5px; line-height: 1.4; }
.b.in { background: var(--surface-2); color: var(--ink); align-self: flex-start; border-bottom-left-radius: 4px; }
.b.out { background: var(--brand); color: var(--brand-ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.float-note { position: absolute; right: -20px; bottom: 36px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px 16px 12px 12px; font-size: 13.5px; display: flex; gap: 12px; align-items: center; max-width: 280px; line-height: 1.4; }
.float-note .dot { width: 36px; height: 36px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; flex: none; }
.float-note .dot .ic { width: 18px; height: 18px; }
.float-note span.sub { color: var(--muted); }
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .hero-chat { left: 12px; top: 16px; width: 240px; }
  .float-note { right: 12px; bottom: 16px; }
}
@media (max-width: 480px) { .hero-chat { display: none; } }

/* Industry photo strip */
.industries { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.industry { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; background: var(--surface-2); }
.industry img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.industry:hover img { transform: scale(1.03); }
.industry figcaption { position: absolute; inset: auto 0 0 0; padding: 48px 16px 16px; color: #fff; background: linear-gradient(transparent, rgba(8,14,12,.82)); }
.industry b { display: block; font-size: 16.5px; }
.industry span { font-size: 13.5px; opacity: .85; }
@media (max-width: 900px) { .industries { grid-template-columns: 1fr 1fr; } .industry { aspect-ratio: 4 / 3.6; } }
@media (max-width: 480px) { .industries { grid-template-columns: 1fr; } .industry { aspect-ratio: 16 / 10; } }

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 48px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-align: left; }
.card p { color: var(--ink-2); margin: 0; font-size: 15.5px; }
.icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.icon .ic { width: 21px; height: 21px; }
.step-num { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent); margin-bottom: 14px; font-weight: 500; }

/* Split layout (photo + text) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse .split-photo { order: 2; }
.split-photo { border-radius: 20px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--surface-2); }
.split-photo img { width: 100%; height: 100%; object-fit: cover; }
.feature-list { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 18px; }
.feature-list li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.feature-list .icon { width: 40px; height: 40px; margin: 0; }
.feature-list b { display: block; font-size: 16px; margin-bottom: 2px; }
.feature-list span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse .split-photo { order: 0; } }

/* Demo section */
.demo { background: var(--band); color: var(--band-ink); border-block: 1px solid var(--band-line); }
.demo h2, .demo h3 { color: #fff; }
.demo .eyebrow { color: #e4a978; }
.demo .lead-text { color: var(--band-muted); }
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 34px 0 40px; }
.tab { border: 1px solid var(--band-line); background: var(--band-2); color: var(--band-ink); padding: 9px 16px; border-radius: 10px; font: inherit; font-size: 14.5px; font-weight: 500; cursor: pointer; }
.tab:hover { border-color: #4b6b62; }
.tab[aria-selected="true"] { background: #fff; color: #10201b; border-color: #fff; }
.demo-grid { display: grid; grid-template-columns: 1fr 390px 1fr; gap: 32px; align-items: start; }
@media (max-width: 1000px) { .demo-grid { grid-template-columns: 1fr; max-width: 430px; margin: 0 auto; } .demo-side.left { order: 2; } .demo-side.right { order: 3; } }
.demo-side h3 { font-size: 16px; font-family: var(--sans); }
.demo-side p.small { color: var(--band-muted); font-size: 14px; margin: 0 0 14px; }
.try { display: flex; flex-direction: column; gap: 8px; }
.try button { text-align: left; background: var(--band-2); border: 1px solid var(--band-line); color: var(--band-ink); border-radius: 10px; padding: 11px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.try button:hover { border-color: #4b6b62; }
.phone { background: #050807; border-radius: 38px; padding: 11px; box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 1px solid #22312b; }
.phone .cd { height: 600px; border-radius: 28px; }
@media (max-width: 480px) { .phone { border-radius: 26px; padding: 6px; } .phone .cd { height: 540px; border-radius: 21px; } }
.leads { display: flex; flex-direction: column; gap: 10px; }
.leads .empty { border: 1px dashed var(--band-line); border-radius: 12px; padding: 18px; color: var(--band-muted); font-size: 14px; text-align: center; }
.counter { display: flex; gap: 10px; margin-bottom: 14px; }
.counter div { flex: 1; background: var(--band-2); border: 1px solid var(--band-line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--band-muted); }
.counter b { display: block; font-size: 22px; color: #fff; }

/* Chat component */
.cd { --cd-accent: var(--brand); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); overflow: hidden; }
.cd-head { display: flex; align-items: center; gap: 10px; padding: 16px; background: var(--cd-accent); color: #fff; }
.cd-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.22); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.cd-title { font-weight: 700; font-size: 15px; }
.cd-status { font-size: 12px; opacity: .85; }
.cd-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.cd-msg { max-width: 84%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.45; white-space: pre-line; animation: cd-in .2s ease; }
.cd-bot { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.cd-user { background: var(--cd-accent); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.cd-typing { display: flex; gap: 4px; padding: 12px 14px; }
.cd-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: cd-dot 1s infinite; }
.cd-typing span:nth-child(2) { animation-delay: .15s; } .cd-typing span:nth-child(3) { animation-delay: .3s; }
.cd-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px; background: var(--surface); }
.cd-chips button { border: 1px solid var(--cd-accent); color: var(--ink); background: transparent; border-radius: 999px; padding: 6px 11px; font: inherit; font-size: 12.5px; cursor: pointer; }
.cd-chips button:hover { background: var(--surface-2); }
.cd-form { display: flex; border-top: 1px solid var(--line); background: var(--surface); }
.cd-form input { flex: 1; border: 0; padding: 15px; font: inherit; font-size: 15px; outline: none; min-width: 0; background: transparent; color: var(--ink); }
.cd-form input::placeholder { color: var(--muted); }
.cd-form button { border: 0; background: none; color: var(--ink); padding: 0 16px; cursor: pointer; font: inherit; font-weight: 700; }
@keyframes cd-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes cd-dot { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* Lead card (phone notification style) */
.lead-card { background: #fff; color: #15201c; border-radius: 14px; padding: 14px 16px; box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: cd-in .3s ease; }
.lead-top { display: flex; justify-content: space-between; font-size: 12px; color: #69736f; margin-bottom: 4px; }
.lead-app { font-weight: 700; color: #1d7a55; text-transform: uppercase; letter-spacing: .05em; }
.lead-title { font-weight: 700; margin-bottom: 6px; }
.lead-card dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; margin: 0; font-size: 14px; }
.lead-card dt { color: #69736f; }
.lead-card dd { margin: 0; }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; align-items: stretch; text-align: left; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; } }
.price { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 30px; display: flex; flex-direction: column; position: relative; }
.price.featured { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.badge { position: absolute; top: -12px; left: 28px; background: var(--brand); color: var(--brand-ink); font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.amount { font-family: var(--serif); font-size: 44px; font-weight: 500; letter-spacing: -.02em; line-height: 1.1; margin: 4px 0 2px; }
.amount small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.setup { color: var(--muted); font-size: 14px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.price ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price li { padding-left: 26px; position: relative; color: var(--ink-2); font-size: 15px; }
.price li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 11px; height: 6px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.offer { margin: 36px auto 0; max-width: 760px; background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ink); border-radius: 12px; padding: 16px 20px; text-align: center; font-size: 15.5px; }
.sub-pricing-title { margin-top: 56px; font-size: 22px; font-family: var(--serif); font-weight: 500; }

/* FAQ */
.faq { max-width: 780px; margin: 40px auto 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 22px; line-height: 1; font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-2); margin: 10px 0 0; }

/* CTA + footer */
.cta { background: var(--band); color: var(--band-ink); border: 1px solid var(--band-line); border-radius: 22px; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; text-align: left; }
.cta-body { padding: 56px 48px; }
.cta h2 { color: #fff; }
.cta p { color: var(--band-muted); font-size: 18px; max-width: 520px; margin: 0 0 28px; }
.cta .btn { background: #fff; color: #10201b; }
.cta .btn:hover { background: #e9f1ed; }
.cta-photo { min-height: 320px; }
.cta-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; } .cta-photo { min-height: 220px; max-height: 280px; order: -1; } .cta-body { padding: 40px 24px; } }
footer { padding: 40px 0; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 96px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; }
footer a { color: var(--muted); }
