/* WorkHub public site. Hand-written, no build step. */

:root {
  --primary: #137fec;          /* brand accent (matches the app) */
  --primary-strong: #0b6bd0;   /* text/buttons on white: passes WCAG AA */
  --primary-deep: #0a58ab;
  --primary-tint: #e8f2fe;
  --primary-tint-2: #f3f8ff;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #5b6678;            /* 5.9:1 on white */
  --line: #e3e8ef;
  --line-strong: #cfd7e3;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --dark: #0b1017;
  --dark-2: #141a22;
  --dark-line: #252d38;
  --dark-muted: #9aa7b5;
  --success: #0f8a4f;
  --success-tint: #e7f6ee;
  --warn: #9a5b00;
  --warn-tint: #fff5e0;
  --danger: #c02626;
  --danger-tint: #fdecec;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .05), 0 24px 60px rgba(15, 23, 42, .12);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 68px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-strong); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--primary-deep); }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; }
main { display: block; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(19, 127, 236, .55); outline-offset: 2px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 820px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 12px; border: 1px solid transparent;
  font: inherit; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--primary-strong); color: #fff; box-shadow: 0 1px 2px rgba(11, 107, 208, .3), 0 6px 16px rgba(19, 127, 236, .25); }
.btn-primary:hover { background: var(--primary-deep); color: #fff; }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] { background: #8bb7e6; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-light { background: #fff; color: var(--primary-deep); }
.btn-light:hover { background: var(--primary-tint); color: var(--primary-deep); }
.btn-ghost-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 17px; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo-mark { width: 32px; height: 32px; }
.logo-word { font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
.logo-word span { color: var(--primary-strong); }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { list-style: none; display: flex; gap: 28px; }
.main-nav ul a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.main-nav ul a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-signin { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-signin:hover { color: var(--primary-strong); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer;
  }
  .nav-toggle .icon { width: 22px; height: 22px; }
  .nav-toggle-close { display: none; }
  .nav-open .nav-toggle-close { display: inline; }
  .nav-open .nav-toggle-open { display: none; }
  .main-nav {
    display: none; position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .nav-open .main-nav { display: flex; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { display: block; padding: 14px 4px; font-size: 17px; border-bottom: 1px solid var(--line); }
  .main-nav .nav-actions { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 16px; }
  .main-nav .nav-signin { text-align: center; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; }
  .main-nav .btn { min-height: 48px; }
}

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 767px) { .section { padding: 64px 0; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary-strong);
}
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; margin-top: 12px; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.h-section { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; margin-top: 12px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto -10%; height: 900px; z-index: -1;
  background:
    radial-gradient(600px 300px at 20% 30%, rgba(19, 127, 236, .14), transparent 70%),
    radial-gradient(520px 280px at 85% 20%, rgba(99, 102, 241, .10), transparent 70%);
}
.hero-copy { max-width: 820px; margin: 0 auto; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 14px; color: var(--ink-2); font-weight: 500;
}
.hero-badge strong { background: var(--primary-tint); color: var(--primary-deep); padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.hero h1 { margin-top: 24px; font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; }
.hero h1 .accent { color: var(--primary-strong); }
.hero-sub { margin: 22px auto 0; max-width: 640px; font-size: clamp(17px, 2vw, 20px); color: var(--muted); }
.hero-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note .icon { width: 16px; height: 16px; color: var(--success); }
@media (max-width: 480px) { .hero-ctas .btn { width: 100%; } .hero { padding-top: 48px; } }

/* ---------- Product mock ---------- */
.mock-wrap { margin-top: 56px; position: relative; }
.mock-wrap::after {
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -30px; height: 60px; z-index: -1;
  background: radial-gradient(closest-side, rgba(19, 127, 236, .25), transparent); filter: blur(10px);
}
.mock {
  background: var(--dark); color: #e6edf3; border-radius: 16px; border: 1px solid #1d2530;
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: 13px; line-height: 1.4; text-align: left;
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #10161e; border-bottom: 1px solid var(--dark-line); }
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4452; }
.mock-dot:nth-child(1) { background: #ff5f57; } .mock-dot:nth-child(2) { background: #febc2e; } .mock-dot:nth-child(3) { background: #28c840; }
.mock-search { margin-left: 14px; flex: 1; max-width: 360px; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 8px; padding: 5px 10px; color: var(--dark-muted); display: flex; justify-content: space-between; }
.mock-search kbd { font: inherit; font-size: 11px; border: 1px solid var(--dark-line); border-radius: 4px; padding: 0 5px; }
.mock-body { display: grid; grid-template-columns: 190px 1fr 300px; min-height: 420px; }
.mock-side { background: #0e141b; border-right: 1px solid var(--dark-line); padding: 14px 10px; }
.mock-side-h { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: #6b7785; margin: 12px 8px 6px; font-weight: 600; }
.mock-side-item { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; color: #b6c2cf; }
.mock-side-item .icon { width: 15px; height: 15px; }
.mock-side-item.is-active { background: rgba(19, 127, 236, .16); color: #fff; }
.mock-side-item .count { margin-left: auto; font-size: 11px; background: var(--primary); color: #fff; padding: 0 6px; border-radius: 999px; }
.mock-main { padding: 16px 18px; min-width: 0; }
.mock-main-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 10px; }
.mock-main-head h3 { color: #fff; font-size: 15px; letter-spacing: -0.01em; }
.mock-tabs { display: flex; gap: 4px; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 8px; padding: 3px; }
.mock-tabs span { padding: 3px 9px; border-radius: 6px; color: var(--dark-muted); font-size: 12px; }
.mock-tabs span.on { background: #283039; color: #fff; }
.mock-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--dark-line); background: var(--dark-2); border-radius: 10px; margin-bottom: 8px; }
.mock-row.is-active { border-color: rgba(19, 127, 236, .7); box-shadow: 0 0 0 1px rgba(19, 127, 236, .4) inset; }
.mock-row-title { color: #fff; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row-meta { color: #7f8b99; font-size: 11.5px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-pill { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pill-open { background: rgba(19, 127, 236, .18); color: #7cb8f7; }
.pill-pending { background: rgba(245, 158, 11, .16); color: #f8c46b; }
.pill-done { background: rgba(16, 185, 129, .16); color: #6ee7b7; }
.pill-high { background: rgba(239, 68, 68, .16); color: #fca5a5; }
.pill-low { background: rgba(148, 163, 184, .16); color: #cbd5e1; }
.mock-avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 700; color: #fff; flex: none; }
.av-a { background: #6366f1; } .av-b { background: #0ea5e9; } .av-c { background: #10b981; } .av-d { background: #f59e0b; } .av-ai { background: #d97757; }
.mock-chat { border-left: 1px solid var(--dark-line); background: #0e141b; display: flex; flex-direction: column; }
.mock-chat-h { padding: 14px 16px; border-bottom: 1px solid var(--dark-line); color: #fff; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.mock-chat-h small { color: var(--dark-muted); font-weight: 400; }
.mock-msgs { padding: 14px 16px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.mock-msg { display: flex; gap: 10px; }
.mock-msg-name { color: #fff; font-weight: 600; font-size: 12.5px; }
.mock-msg-name time { color: #6b7785; font-weight: 400; margin-left: 6px; font-size: 11px; }
.mock-msg p { color: #c3cdd8; margin-top: 2px; }
.mock-msg .mention { color: #7cb8f7; font-weight: 600; }
.mock-msg-ai p { background: rgba(217, 119, 87, .1); border: 1px solid rgba(217, 119, 87, .3); padding: 8px 10px; border-radius: 8px; }
.mock-compose { margin: 0 16px 16px; padding: 9px 12px; border: 1px solid var(--dark-line); background: var(--dark-2); border-radius: 9px; color: #6b7785; }
@media (max-width: 1023px) { .mock-body { grid-template-columns: 1fr 280px; } .mock-side { display: none; } }
@media (max-width: 719px) {
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-chat { display: none; }
  .mock-search { display: none; }
  .mock-row { grid-template-columns: 1fr auto; }
  .mock-row .mock-avatar { display: none; }
  .mock-row-extra { display: none; }
}

/* ---------- Replaces strip ---------- */
.replaces { padding: 48px 0 24px; }
.replaces p.lead { text-align: center; color: var(--muted); font-weight: 500; font-size: 15px; }
.replaces-list { list-style: none; margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.replaces-list li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; color: var(--ink-2); font-size: 15px; }
.replaces-list .icon { width: 18px; height: 18px; color: var(--primary-strong); }

/* ---------- Problem / comparison ---------- */
.problem-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 959px) { .problem-grid { grid-template-columns: 1fr; gap: 40px; } }
.problem-points { list-style: none; margin-top: 28px; display: grid; gap: 22px; }
.problem-points li { display: flex; gap: 16px; }
.problem-points .icon-tile { flex: none; }
.problem-points h3 { font-size: 18px; letter-spacing: -0.01em; }
.problem-points p { color: var(--muted); margin-top: 4px; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-tint); color: var(--primary-strong); }
.icon-tile .icon { width: 22px; height: 22px; }
.icon-tile.warn { background: var(--warn-tint); color: var(--warn); }

.compare { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.compare-col { padding: 26px 28px; }
.compare-col + .compare-col { border-top: 1px solid var(--line); }
.compare-col h3 { font-size: 15px; font-weight: 700; color: var(--muted); letter-spacing: 0; display: flex; justify-content: space-between; gap: 12px; }
.compare-lines { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.compare-lines li { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--ink-2); }
.compare-lines li span:last-child { color: var(--muted); white-space: nowrap; }
.compare-total { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-strong); display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.compare-total strong { font-size: 30px; letter-spacing: -0.02em; }
.compare-total small { color: var(--muted); font-size: 14px; }
.compare-them strong { color: var(--ink-2); }
.compare-us { background: linear-gradient(180deg, var(--primary-tint-2), #fff); }
.compare-us h3 { color: var(--primary-deep); }
.compare-us strong { color: var(--primary-strong); }
.compare-foot { padding: 14px 28px; font-size: 12.5px; color: var(--muted); background: var(--bg-soft); border-top: 1px solid var(--line); }

/* ---------- Feature spotlight rows ---------- */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.spot + .spot { margin-top: 88px; }
.spot-reverse .spot-copy { order: 2; }
@media (max-width: 959px) { .spot { grid-template-columns: 1fr; gap: 32px; } .spot-reverse .spot-copy { order: 0; } .spot + .spot { margin-top: 64px; } }
.spot-copy h3 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 800; margin-top: 10px; }
.spot-copy > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.checklist .icon { width: 20px; height: 20px; color: var(--primary-strong); margin-top: 3px; }
.spot-visual { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
@media (max-width: 480px) { .spot-visual { padding: 16px; } }

/* mini cards inside spot visuals */
.mini { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); padding: 14px 16px; font-size: 14px; }
.mini + .mini { margin-top: 12px; }
.mini-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mini-title { font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-meta { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tag-blue { background: var(--primary-tint); color: var(--primary-deep); }
.tag-green { background: var(--success-tint); color: var(--success); }
.tag-amber { background: var(--warn-tint); color: var(--warn); }
.tag-gray { background: #eef1f5; color: #475467; }
.tag-red { background: var(--danger-tint); color: var(--danger); }
.flow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.flow-arrow { color: var(--muted); }
.flow-arrow .icon { width: 22px; height: 22px; }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } .flow-arrow { transform: rotate(90deg); justify-self: center; } }
.filtered { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.filtered .icon { width: 16px; height: 16px; }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .board { grid-template-columns: 1fr; } .board-col:nth-child(3) { display: none; } }
.board-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; display: flex; justify-content: space-between; }
.board .mini { padding: 12px; }
.board .mini-title { white-space: normal; font-size: 13.5px; }
.mini-foot { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.subtask-bar { height: 5px; border-radius: 99px; background: #eef1f5; margin-top: 10px; overflow: hidden; }
.subtask-bar span { display: block; height: 100%; background: var(--primary); border-radius: 99px; }

.inv-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.inv-lines th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.inv-lines td { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.inv-lines td:last-child, .inv-lines th:last-child { text-align: right; }
.inv-total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 700; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.timer-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.timer-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, .15); display: inline-block; margin-right: 8px; }

/* ---------- Feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 72px; }
@media (max-width: 959px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; transition: border-color .15s, box-shadow .15s; }
.feature:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.feature h3 { font-size: 18px; margin-top: 16px; letter-spacing: -0.01em; }
.feature p { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* ---------- AI agent (dark band) ---------- */
.ai { background: var(--dark); color: #dbe3ec; position: relative; overflow: hidden; }
.ai::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 85% 10%, rgba(19, 127, 236, .22), transparent 70%), radial-gradient(500px 300px at 0% 100%, rgba(217, 119, 87, .12), transparent 70%); pointer-events: none; }
.ai .container { position: relative; }
.ai h2, .ai h3 { color: #fff; }
.ai .eyebrow { color: #7cb8f7; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 959px) { .ai-grid { grid-template-columns: 1fr; gap: 40px; } }
.ai-copy h2 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 800; margin-top: 12px; }
.ai-copy > p { margin-top: 16px; font-size: 18px; color: var(--dark-muted); }
.ai-points { list-style: none; margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
@media (max-width: 560px) { .ai-points { grid-template-columns: 1fr; } }
.ai-points li { display: flex; gap: 12px; }
.ai-points .icon-tile { width: 38px; height: 38px; border-radius: 10px; background: rgba(19, 127, 236, .16); color: #7cb8f7; }
.ai-points .icon-tile .icon { width: 19px; height: 19px; }
.ai-points h3 { font-size: 15.5px; letter-spacing: 0; }
.ai-points p { font-size: 14.5px; color: var(--dark-muted); margin-top: 2px; }
.ai-log { background: #0e141b; border: 1px solid var(--dark-line); border-radius: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); overflow: hidden; font-size: 13.5px; }
.ai-log-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--dark-line); }
.ai-log-h strong { color: #fff; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.ai-switch { display: inline-flex; align-items: center; gap: 8px; color: var(--dark-muted); font-size: 12.5px; }
.ai-switch i { width: 34px; height: 20px; border-radius: 99px; background: #10b981; position: relative; display: inline-block; }
.ai-switch i::after { content: ""; position: absolute; right: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; }
.ai-steps { list-style: none; padding: 8px 18px 18px; }
.ai-steps li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px dashed #222b36; }
.ai-steps li:last-child { border-bottom: 0; }
.ai-steps .icon { width: 18px; height: 18px; margin-top: 2px; color: #7cb8f7; }
.ai-steps .ok .icon { color: #6ee7b7; }
.ai-steps .hand .icon { color: #f8c46b; }
.ai-steps b { color: #fff; font-weight: 600; }
.ai-steps span { color: var(--dark-muted); display: block; margin-top: 2px; font-size: 12.5px; }
.ai-steps code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; background: #1a222c; border: 1px solid var(--dark-line); border-radius: 5px; padding: 1px 6px; color: #c3cdd8; }
.ai-note { margin-top: 28px; font-size: 14px; color: var(--dark-muted); }

/* ---------- Pricing ---------- */
.pricing-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 959px) { .pricing-wrap { grid-template-columns: 1fr; } }
.price-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 32px; position: relative; }
@media (max-width: 480px) { .price-card { padding: 24px 20px; } }
.price-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.price-card h3 { font-size: 20px; }
.toggle { display: inline-flex; padding: 4px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; gap: 4px; }
.toggle button { font: inherit; font-size: 14px; font-weight: 600; border: 0; background: transparent; color: var(--muted); padding: 8px 14px; border-radius: 9px; cursor: pointer; min-height: 38px; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.toggle .save { color: var(--success); font-weight: 700; margin-left: 4px; }
.price-amount { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-amount strong { font-size: 56px; letter-spacing: -0.04em; line-height: 1; font-weight: 800; }
.price-amount span { color: var(--muted); font-size: 17px; }
.price-sub { margin-top: 8px; color: var(--muted); font-size: 15px; min-height: 24px; }
.price-sub b { color: var(--success); }
.price-card .btn { margin-top: 24px; }
.price-fine { margin-top: 14px; font-size: 13.5px; color: var(--muted); text-align: center; }
.price-includes { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.price-includes h4 { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.price-includes .checklist { grid-template-columns: 1fr 1fr; gap: 10px 18px; margin-top: 14px; font-size: 15px; }
@media (max-width: 520px) { .price-includes .checklist { grid-template-columns: 1fr; } }
.pricing-points { list-style: none; display: grid; gap: 24px; margin-top: 28px; }
.pricing-points li { display: flex; gap: 16px; }
.pricing-points h3 { font-size: 17px; letter-spacing: -0.01em; }
.pricing-points p { color: var(--muted); margin-top: 4px; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font-weight: 600; font-size: 17.5px; color: var(--ink); letter-spacing: -0.01em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s;
}
.faq-list details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-list summary:hover { color: var(--primary-strong); }
.faq-answer { padding: 0 0 22px; color: var(--muted); max-width: 720px; }
.faq-answer p + p { margin-top: 10px; }

/* ---------- Final CTA ---------- */
.cta-band { padding: 0 0 96px; }
.cta-box {
  border-radius: 24px; padding: 64px 32px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #0b6bd0 0%, #137fec 55%, #3b8ff0 100%); position: relative; overflow: hidden;
}
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 200px at 90% 0%, rgba(255, 255, 255, .18), transparent 70%); pointer-events: none; }
.cta-box h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 800; position: relative; }
.cta-box p { margin: 14px auto 0; max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .92); position: relative; }
.cta-box .hero-ctas { position: relative; }
@media (max-width: 480px) { .cta-box { padding: 48px 20px; } .cta-box .btn { width: 100%; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 56px 0 28px; font-size: 15px; }
.footer-inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
@media (max-width: 767px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-brand p { margin-top: 14px; color: var(--muted); max-width: 320px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 520px) { .footer-nav { grid-template-columns: 1fr 1fr; } }
.footer-nav h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); font-weight: 700; }
.footer-nav ul { list-style: none; margin-top: 14px; display: grid; gap: 10px; }
.footer-nav a { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }

/* ---------- Forms (signup / billing) ---------- */
.page-auth { background: var(--bg-soft); }
.auth { padding: 48px 0 88px; }
.auth-grid { display: grid; grid-template-columns: 1fr minmax(0, 560px); gap: 56px; align-items: start; }
@media (max-width: 959px) { .auth-grid { grid-template-columns: 1fr; gap: 32px; } .auth-aside { order: 2; } }
.auth-aside h1 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.03em; }
.auth-aside > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.timeline { list-style: none; margin-top: 32px; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; position: relative; padding-bottom: 22px; }
.timeline li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--line-strong); }
.timeline .dot { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line-strong); color: var(--primary-strong); }
.timeline .dot .icon { width: 17px; height: 17px; }
.timeline h3 { font-size: 16px; letter-spacing: -0.01em; padding-top: 6px; }
.timeline p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.aside-box { margin-top: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.aside-box h2 { font-size: 15px; }
.aside-box .checklist { margin-top: 12px; font-size: 15px; gap: 8px; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 32px;
}
@media (max-width: 480px) { .card { padding: 22px 18px; border-radius: 16px; } }
.card-title { font-size: 22px; font-weight: 800; }
.card-sub { color: var(--muted); margin-top: 6px; font-size: 15px; }
.form-section { border: 0; margin: 0; padding: 0; min-width: 0; }
.form-section + .form-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-section legend { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-2); padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.form-section legend + * { clear: both; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.field { display: block; min-width: 0; }
.field + .field, .form-row + .field, .field + .form-row, .form-row + .form-row { margin-top: 14px; }
.field label, .field .label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"] {
  width: 100%; height: 48px; padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.field input::placeholder { color: #8a94a3; opacity: 1; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19, 127, 236, .18); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(192, 38, 38, .15); }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.field-error { font-size: 13px; color: var(--danger); margin-top: 6px; }
.field-error:empty { display: none; }

/* Pay.js: the gateway renders its fields in an iframe. The visible box is drawn
   here so it matches the inputs, whatever the gateway does inside the frame. */
.payjs-host {
  height: 48px; padding: 0 14px; display: flex; align-items: center; background: #fff;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); transition: border-color .15s, box-shadow .15s;
}
.payjs-host:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19, 127, 236, .18); }
.payjs-host iframe { width: 100% !important; height: 40px !important; border: 0; display: block; }
.payjs-host.is-unavailable { background: var(--bg-soft); color: var(--muted); font-size: 14px; }

.plan-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 400px) { .plan-options { grid-template-columns: 1fr; } }
.plan-option { position: relative; }
.plan-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.plan-option label {
  display: block; height: 100%; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px; cursor: pointer;
  transition: border-color .15s, background-color .15s, box-shadow .15s; margin: 0;
}
.plan-option label:hover { border-color: var(--ink-2); }
.plan-option input:checked + label { border-color: var(--primary); background: var(--primary-tint-2); box-shadow: 0 0 0 1px var(--primary) inset; }
.plan-option input:focus-visible + label { outline: 3px solid rgba(19, 127, 236, .55); outline-offset: 2px; }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--ink); font-size: 15px; }
.plan-price { display: block; margin-top: 6px; font-size: 22px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.plan-price small { font-size: 14px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan-note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; font-weight: 500; }
.plan-summary { margin-top: 14px; padding: 14px 16px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; font-size: 14.5px; color: var(--ink-2); }
.plan-summary-row { display: flex; justify-content: space-between; gap: 12px; }
.plan-summary-row + .plan-summary-row { margin-top: 6px; }
.plan-summary-row strong { color: var(--ink); white-space: nowrap; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--primary-strong); flex: none; cursor: pointer; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 14.5px; border: 1px solid; }
.alert .icon { width: 18px; height: 18px; margin-top: 2px; }
.alert[hidden] { display: none; }
.alert-error { background: var(--danger-tint); border-color: #f5c2c2; color: #8f1c1c; }
.alert-warn { background: var(--warn-tint); border-color: #f3d79b; color: #7a4800; }
.alert-success { background: var(--success-tint); border-color: #b7e4cb; color: #0b6b3d; }
.form-alert { margin-bottom: 20px; }
.form-submit { margin-top: 26px; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted); }
.secure-note .icon { width: 15px; height: 15px; }
.form-foot { margin-top: 18px; text-align: center; font-size: 14.5px; color: var(--muted); }

.status-panel { text-align: center; padding: 40px 28px; }
.status-panel .icon-tile { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto; }
.status-panel .icon-tile .icon { width: 28px; height: 28px; }
.status-panel h1, .status-panel h2 { font-size: 26px; font-weight: 800; margin-top: 18px; }
.status-panel p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.status-panel .btn { margin-top: 24px; }
.icon-tile.success { background: var(--success-tint); color: var(--success); }

.summary-list { margin: 20px 0 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 15px; }
.summary-list div + div { border-top: 1px solid var(--line); }
.summary-list dt { color: var(--muted); }
.summary-list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; overflow-wrap: anywhere; }
.summary-list .due dd { color: var(--danger); }

.narrow-page { padding: 56px 0 96px; }
.narrow-page .card { max-width: 560px; margin: 0 auto; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 96px; }
.legal h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 800; }
.legal .updated { color: var(--muted); margin-top: 10px; }
.legal .lead { margin-top: 20px; font-size: 18px; color: var(--ink-2); }
.legal-toc { margin-top: 32px; padding: 20px 24px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.legal-toc h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .07em; }
.legal-toc ol { margin: 12px 0 0; padding-left: 20px; columns: 2; column-gap: 32px; font-size: 15px; }
.legal-toc li { margin-bottom: 6px; break-inside: avoid; }
@media (max-width: 600px) { .legal-toc ol { columns: 1; } }
.legal-body h2 { font-size: 22px; margin-top: 44px; scroll-margin-top: calc(var(--header-h) + 16px); }
.legal-body h3 { font-size: 17px; margin-top: 24px; }
.legal-body p, .legal-body ul { margin-top: 12px; color: var(--ink-2); }
.legal-body ul { padding-left: 22px; }
.legal-body li + li { margin-top: 6px; }
.legal-body .contact-box { margin-top: 16px; padding: 16px 20px; border-left: 3px solid var(--primary); background: var(--primary-tint-2); border-radius: 0 10px 10px 0; }

/* ---------- 404 ---------- */
.notfound { padding: 96px 0 120px; text-align: center; }
.notfound .code { font-size: 15px; font-weight: 700; color: var(--primary-strong); letter-spacing: .08em; }
.notfound h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; margin-top: 12px; }
.notfound p { color: var(--muted); margin-top: 14px; font-size: 18px; }
.notfound .hero-ctas { margin-top: 28px; }

/* ---------- Overflow guards (keep long nowrap text inside narrow screens) ---------- */
.mock-row > div:first-child, .mini-head > *, .flow > *, .mock-msg > div, .compare-lines li > span:first-child { min-width: 0; }
.mock-main-head { flex-wrap: wrap; }
