:root {
  color-scheme: light dark;
  --brand: #0e7c86;
  --brand-2: #3b5bdb;
  --brand-ink: #0b5e66;
  --ink: #14202b;
  --ink-2: #4a5a6a;
  --line: #e2e8ee;
  --bg: #ffffff;
  --bg-2: #f4f7fa;
  --card: #ffffff;
  --ok: #2f9e44;
  --warn: #e8590c;
  --hold: #ae3ec9;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 32, 43, .08);
  --max: 1120px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #3cc4cf;
    --brand-2: #748ffc;
    --brand-ink: #7fdbe2;
    --ink: #e8eef3;
    --ink-2: #a3b1bf;
    --line: #26323d;
    --bg: #0f161d;
    --bg-2: #141e27;
    --card: #182430;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --brand: #3cc4cf;
  --brand-2: #748ffc;
  --brand-ink: #7fdbe2;
  --ink: #e8eef3;
  --ink-2: #a3b1bf;
  --line: #26323d;
  --bg: #0f161d;
  --bg-2: #141e27;
  --card: #182430;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.alt { background: var(--bg-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--brand); margin: 0 0 10px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.15rem; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--ink-2); }

/* buttons */
.btn { display: inline-block; padding: 13px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; transition: transform .1s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px rgba(14, 124, 134, .3); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--card); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.fine { font-size: .88rem; color: var(--ink-2); margin-top: 12px; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo-mark { width: 32px; height: 32px; display: block; flex: none; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; padding: 9px 16px; }
@media (max-width: 820px) { .nav-links .hide-sm { display: none; } }

/* hero */
.hero { padding: 72px 0 88px; background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--brand-2) 16%, transparent), transparent), radial-gradient(900px 400px at 0% 0%, color-mix(in srgb, var(--brand) 14%, transparent), transparent); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }

/* mock scheduler */
.mock { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: .78rem; }
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-2); align-items: center; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.mock-bar span { margin-left: 10px; color: var(--ink-2); font-weight: 600; }
.sched { display: grid; grid-template-columns: 92px repeat(5, 1fr); }
.sched > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; min-height: 52px; }
.sched .hd { min-height: 0; font-weight: 700; color: var(--ink-2); background: var(--bg-2); text-align: center; }
.sched .tech { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.job { border-radius: 6px; padding: 3px 6px; margin-bottom: 4px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .7rem; }
.j1 { background: #0e7c86; } .j2 { background: #3b5bdb; } .j3 { background: #e8590c; } .j4 { background: #ae3ec9; } .j5 { background: #2f9e44; }
.queue { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.queue b { color: var(--ink-2); margin-right: 4px; }
.chip { border: 1px dashed var(--ink-2); border-radius: 6px; padding: 2px 8px; color: var(--ink-2); }
.chip.alert { border-color: var(--warn); color: var(--warn); }
@media (max-width: 560px) { .sched { grid-template-columns: 70px repeat(3, 1fr); } .sched .d4, .sched .d5 { display: none; } }

/* strip */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px 34px; justify-content: center; color: var(--ink-2); font-weight: 600; font-size: .95rem; }
.strip li::before { content: "✓ "; color: var(--brand); }

/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 44px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card p { margin: 0; color: var(--ink-2); }
.icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; background: color-mix(in srgb, var(--brand) 14%, transparent); }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); }
.card li { margin: 4px 0; }
.role-tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; margin-bottom: 10px; background: color-mix(in srgb, var(--brand-2) 15%, transparent); color: var(--brand-2); }

/* lifecycle */
.flow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; margin-top: 44px; justify-content: center; }
.step { position: relative; flex: 1 1 150px; max-width: 200px; padding: 18px 14px 16px; text-align: center; }
.step::after { content: "→"; position: absolute; right: -9px; top: 26px; color: var(--ink-2); font-weight: 700; }
.step:last-child::after { display: none; }
.pill { display: inline-block; padding: 6px 12px; border-radius: 99px; font-weight: 700; font-size: .85rem; color: #fff; }
.step small { display: block; margin-top: 8px; color: var(--ink-2); font-size: .82rem; line-height: 1.4; }
.who { display: block; margin-top: 6px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
@media (max-width: 760px) { .step { max-width: none; flex-basis: 100%; } .step::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -12px; } }
.side { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
@media (max-width: 760px) { .side { grid-template-columns: 1fr; } }
.side .card { padding: 18px; }

/* phone mock */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.phone { width: 280px; max-width: 100%; margin: 0 auto; border: 10px solid #1c2630; border-radius: 36px; background: var(--card); box-shadow: var(--shadow); overflow: hidden; font-size: .82rem; }
.phone-top { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 18px 16px 14px; }
.phone-top b { display: block; font-size: 1rem; }
.phone-body { padding: 14px; }
.ph-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.ph-row .k { font-size: .7rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.ph-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ph-btns span { text-align: center; padding: 9px; border-radius: 8px; font-weight: 700; color: #fff; }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.photos i { aspect-ratio: 1; border-radius: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 35%, var(--bg-2)), color-mix(in srgb, var(--brand-2) 35%, var(--bg-2))); }
.checks { list-style: none; padding: 0; margin: 20px 0 0; }
.checks li { padding: 8px 0 8px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 16%, transparent); color: var(--brand); font-size: .75rem; font-weight: 800; display: grid; place-items: center; }

/* pricing */
.price-card { max-width: 520px; margin: 44px auto 0; text-align: center; padding: 40px 32px; border: 2px solid var(--brand); }
.price { font-size: 3.4rem; font-weight: 800; letter-spacing: -.03em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-2); }
.price-card ul { text-align: left; display: inline-block; }

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

/* cta */
.cta { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 22px; padding: 56px 32px; text-align: center; }
.cta .lead { color: rgba(255, 255, 255, .88); margin: 0 auto; }
.cta .btn-primary { background: #fff; color: #0b5e66; box-shadow: none; }
.cta .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta .btn-row { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 48px 0 36px; font-size: .92rem; color: var(--ink-2); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } }
footer h4 { color: var(--ink); margin: 0 0 10px; font-size: .9rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }
.copy { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .85rem; }

/* simple content pages */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.doc li { margin: 6px 0; }
.box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }

/* two pricing plans */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 900px; margin: 44px auto 0; align-items: stretch; }
.price-grid .price-card { max-width: none; margin: 0; display: flex; flex-direction: column; align-items: center; }
.price-grid .price-card .btn-row { margin-top: auto; padding-top: 20px; }
.price-grid .alt-plan { border: 1px solid var(--line); }
.price-sm { font-size: 2.2rem; line-height: 1.55; }
@media (max-width: 760px) { .price-grid { grid-template-columns: 1fr; } }

/* theme toggle */
.theme-toggle { background: none; border: 1px solid var(--line); border-radius: 10px; width: 38px; height: 38px; font-size: 1.05rem; line-height: 1; cursor: pointer; color: var(--ink); }
.theme-toggle:hover { background: var(--bg-2); }
