:root {
  color-scheme: light;
  --bg: #f7f6fc;
  --bg-alt: #efedfa;
  --surface: #ffffff;
  --surface-2: #f3f1fd;
  --text: #17142b;
  --muted: #625d7d;
  --border: #e3e0f2;
  --primary: #5b3df5;
  --primary-2: #7c5cff;
  --primary-ink: #ffffff;
  --accent: #10b5a3;
  --good: #0f9d6b;
  --bad: #e0435b;
  --warn: #c98200;
  --shadow: 0 1px 2px rgba(23, 20, 43, .06), 0 12px 32px -12px rgba(46, 26, 140, .18);
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0e0c1b;
    --bg-alt: #141127;
    --surface: #1a1730;
    --surface-2: #221e3d;
    --text: #eceaf8;
    --muted: #a39fbf;
    --border: #2d2950;
    --primary: #8b74ff;
    --primary-2: #a593ff;
    --primary-ink: #120e2a;
    --accent: #2dd4bf;
    --good: #34d399;
    --bad: #fb7185;
    --warn: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font: .86em/1.4 var(--mono);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: .1em .4em;
  overflow-wrap: anywhere;
}
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.4em;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: var(--primary-ink);
  font-weight: 650;
  border: 1px solid transparent;
  box-shadow: 0 8px 20px -8px rgba(91, 61, 245, .55);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 24px -10px rgba(91, 61, 245, .7); }
.btn svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); box-shadow: none; }
.btn-ghost:hover { box-shadow: var(--shadow); }
.btn-light { background: #fff; color: #2b1a8f; box-shadow: none; }
.btn-small { padding: .5em 1em; font-size: .9rem; border-radius: 10px; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-muted { font-weight: 500; font-size: .9rem; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-right: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
.topbar-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lang-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); }
.lang-switch a { padding: .35em .7em; font-size: .8rem; font-weight: 700; color: var(--muted); }
.lang-switch a.active { background: var(--primary); color: var(--primary-ink); }
.lang-switch a:hover { text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 56px; position: relative; isolation: isolate; overflow: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(600px 360px at 78% 30%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 70%),
    radial-gradient(500px 320px at 10% 10%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent);
  padding: .35em .8em; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -.035em; }
.hero h1 span {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.hero-note { font-size: .9rem; color: var(--muted); }
.hero-stats { display: flex; gap: 32px; margin: 28px 0 0; }
.hero-stats div { margin: 0; }
.hero-stats dt { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats dd { margin: 0; color: var(--muted); font-size: .85rem; }
.hero-visual { position: relative; }
.hero-image, .art-hero { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow); }
.chat-card {
  position: absolute; left: -28px; bottom: -28px; width: min(360px, 90%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px;
  box-shadow: var(--shadow); font-size: .82rem; display: grid; gap: 8px;
}
.chat-line { background: var(--surface-2); padding: 8px 12px; border-radius: 12px 12px 12px 4px; }
.chat-line.me {
  justify-self: end; background: var(--primary); color: var(--primary-ink);
  border-radius: 12px 12px 4px 12px; font-family: var(--mono); font-size: .76rem; overflow-wrap: anywhere;
}

/* Fallback artwork when the generated images are not there yet */
.art { position: relative; overflow: hidden; background: linear-gradient(135deg, #2a1b86, #5b3df5 55%, #12b5a3); }
.art::before, .art::after { content: ""; position: absolute; border-radius: 50%; }
.art::before {
  inset: 18% 22%; border: 2px dashed rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 40px rgba(255, 255, 255, .06), 0 0 0 90px rgba(255, 255, 255, .04);
}
.art::after {
  width: 64px; height: 64px; left: 58%; top: 26%;
  background: radial-gradient(circle at 35% 35%, #fff, #c9bfff 60%, transparent 62%);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .3));
}
.art-feature-queue, .art-feature-overview { aspect-ratio: 16 / 10; border-radius: var(--radius); }
.art-feature-overview { background: linear-gradient(135deg, #0f766e, #10b5a3 45%, #5b3df5); }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 46em; margin-bottom: 40px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.step-number {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 16px;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; font-weight: 800;
}
.step p { color: var(--muted); margin: 0; }

.feature-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.showcase-image { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: transform .15s, box-shadow .15s;
}
.feature:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; }
.feature-icon {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; margin-bottom: 14px;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary);
}
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 6px;
  background: color-mix(in srgb, var(--good) 18%, transparent);
}
.checklist li::after {
  content: ""; position: absolute; left: 6px; top: calc(.3em + 3px); width: 5px; height: 9px;
  border: solid var(--good); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Dashboard mock on the landing page */
.mock { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar span { margin-left: 8px; }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 16px; }
.mock-cards div { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.mock-cards b { display: block; font-size: 1.4rem; }
.mock-cards span { font-size: .75rem; color: var(--muted); }
.mock-chart { margin: 0 16px; color: var(--primary); background: var(--surface-2); border-radius: 12px; padding: 12px 12px 8px; }
.mock-chart svg { width: 100%; height: 90px; }
.mock-chart span { font-size: .75rem; color: var(--muted); }
.mock-rows { padding: 16px; display: grid; gap: 10px; font-size: .85rem; }
.mock-rows div { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 12px; }

.bar { display: block; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--accent)); }

/* Commands */
.command-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.command-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.command-group dl { margin: 0; display: grid; gap: 4px; }
.command-group dt { margin-top: 10px; }
.command-group dt:first-child { margin-top: 0; }
.command-group dd { margin: 0; color: var(--muted); font-size: .92rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.plan {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 32px; display: flex; flex-direction: column;
}
.plan .btn { justify-content: center; margin-top: auto; }
.plan-featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan-badge {
  position: absolute; top: -13px; right: 24px; background: var(--primary); color: var(--primary-ink);
  font-size: .75rem; font-weight: 700; padding: .3em .8em; border-radius: 999px;
}
.plan-price { margin: 8px 0; }
.plan-price b { font-size: 2.8rem; letter-spacing: -.03em; }
.plan-price span { color: var(--muted); }
.plan-desc { color: var(--muted); }
.plan-example { text-align: center; color: var(--muted); margin-top: 24px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 650; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--primary); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; }

.cta { padding: 64px 0; }
.cta-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: linear-gradient(120deg, #2a1b86, #5b3df5 55%, #0f9d8f); color: #fff;
  border-radius: 24px; padding: 48px;
}
.cta-inner p { color: rgba(255, 255, 255, .85); margin: 0; }
.cta-inner code { background: rgba(255, 255, 255, .15); border-color: rgba(255, 255, 255, .25); color: #fff; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Dashboard */
.dashboard { padding-top: 32px; padding-bottom: 64px; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.dash-head h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.notice { background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 40%, transparent); padding: 12px 16px; border-radius: 12px; }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -.02em; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; min-width: 0; }
.panel h2 { font-size: 1.2rem; }
.plan-panel { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.plan-panel p { margin: 0; }
.block-title { font-size: 1.3rem; margin: 28px 0 12px; }
.sites { display: grid; gap: 16px; }
.site-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.site-head h3 { font-size: 1.25rem; margin: 0; overflow-wrap: anywhere; }
.site-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-width: 0; }
.site-refresh { padding: .3em .8em; font-size: .8rem; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { font-size: .78rem; padding: .25em .7em; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.badge.on { color: var(--good); border-color: color-mix(in srgb, var(--good) 40%, transparent); background: color-mix(in srgb, var(--good) 10%, transparent); }
/* Phones: the colour says connected or not; the words stay for screen readers. */
@media (max-width: 600px) {
  .badge-state { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* One chart for the site trends: seven hues far apart (blue, orange, green, violet,
   amber, slate, magenta), so no two lines read as the same colour in either theme. */
.trend-chart { --s1: #2a78d6; --s2: #e8541e; --s3: #1baf7a; --s4: #8a5cf5; --s5: #e3a600; --s6: #5b6573; --s7: #d6409f;
  margin: 12px 0 18px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
@media (prefers-color-scheme: dark) {
  .trend-chart { --s1: #3987e5; --s2: #ef6a3a; --s3: #22b884; --s4: #a684ff; --s5: #d9a400; --s6: #b3bcc8; --s7: #e86bb6; }
}
.chart-legend { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.chart-legend li { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); }
.chart-legend b { color: var(--text); font-size: .95rem; }
/* Phones: two compact columns instead of one long line per series. */
@media (max-width: 600px) {
  .chart-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
  .chart-legend li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0 6px; font-size: .74rem; line-height: 1.25; }
  .chart-legend b { grid-column: 2; font-size: .9rem; white-space: nowrap; }
}
.swatch { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.swatch.s1 { background: var(--s1); } .swatch.s2 { background: var(--s2); }
.swatch.s3 { background: var(--s3); } .swatch.s4 { background: var(--s4); }
.swatch.s5 { background: var(--s5); } .swatch.s6 { background: var(--s6); }
.swatch.s7 { background: var(--s7); }
.chart-plot { position: relative; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.chart { width: 100%; height: 150px; display: block; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.chart .line.s1 { stroke: var(--s1); } .chart .line.s2 { stroke: var(--s2); }
.chart .line.s3 { stroke: var(--s3); } .chart .line.s4 { stroke: var(--s4); }
.chart .line.s5 { stroke: var(--s5); } .chart .line.s6 { stroke: var(--s6); }
.chart .line.s7 { stroke: var(--s7); }
.chart .grid { stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-days { display: flex; justify-content: space-between; font-size: .74rem; color: var(--muted); margin-top: 4px; }
.chart .cursor { stroke: var(--muted); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; }
.chart-plot.hover .cursor { opacity: .7; }
.chart-tip { position: absolute; top: 4px; pointer-events: none; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; font-size: .78rem; box-shadow: var(--shadow); white-space: nowrap; z-index: 2; }
.chart-tip b { display: block; margin-bottom: 4px; }
.chart-tip span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.chart-tip em { font-style: normal; color: var(--text); margin-left: auto; padding-left: 12px; }
.trend-chart figcaption { font-size: .74rem; color: var(--muted); margin-top: 4px; }
.site-queue { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); }
.site-queue h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; }
.site-queue-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px 28px; align-items: start; }
.site-queue-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center; }
.site-queue-row dl { grid-column: 1 / -1; margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: .92rem; }
.site-queue-row dt { color: var(--muted); }
.site-queue-row dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-queue-row .bar { width: 80px; margin-left: auto; }
.metric-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; align-items: start; }
.metric-column { display: grid; gap: 12px; align-content: start; min-width: 0; }
.metric-group h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 8px 0; }
.metric-group dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; font-size: .92rem; }
.metric-group dt { color: var(--muted); overflow-wrap: anywhere; hyphens: auto; }
.metric-group dt.wide { grid-column: 1 / -1; }
.metric-group dd.wide { grid-column: 1 / -1; text-align: left; white-space: normal; margin-top: -4px; }
.metric-group dd { margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-group dd.today { display: grid; justify-items: end; gap: 2px; }
.metric-group dd.today .forecast { font-size: .8rem; font-weight: 500; color: var(--muted); }
.delta { font-size: .78rem; font-weight: 600; margin-left: 4px; padding: .05em .4em; border-radius: 6px; }
.delta.good { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.delta.bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.delta.same { color: var(--muted); }
.table-scroll { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .bar { width: 80px; margin-left: auto; }
.rejected-row td { padding-top: 0; }
.rejected { margin: 8px 0 0; padding-left: 18px; font-size: .85rem; color: var(--muted); max-height: 260px; overflow: auto; }
.state { font-size: .78rem; font-weight: 600; padding: .2em .6em; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.state-active, .state-running { color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); }
.state-exhausted, .state-failed { color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); }
.state-done { color: var(--good); background: color-mix(in srgb, var(--good) 12%, transparent); }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
/* minmax(0, 1fr): a long unbroken title (a sitemap URL) must wrap, not widen the page. */
.tasks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.task { border-bottom: 1px solid var(--border); padding-bottom: 12px; }
.task:last-child { border-bottom: 0; }
.task-head { display: flex; gap: 8px; align-items: baseline; }
.task-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.task p { margin: 6px 0 0; overflow-wrap: anywhere; }
.keys { margin: 0; display: grid; gap: 4px; }
.keys dt { font-weight: 650; margin-top: 10px; }
.keys dt:first-child { margin-top: 0; }
.keys dd { margin: 0; display: grid; gap: 4px; justify-items: start; }
.empty-state { padding: 96px 16px; text-align: center; }

@media (max-width: 960px) {
  .nav { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .chat-card { position: static; width: 100%; margin-top: 16px; }
  .steps, .features { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .steps, .features, .feature-showcase, .command-groups, .plans { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .topbar-actions .btn { display: none; }
  .cta-inner { padding: 32px 24px; }
  .mock-rows div { grid-template-columns: 1fr; gap: 4px; }
}
.plan-panel .bad, .panel p.bad { color: var(--bad); font-weight: 600; }

/* Account: tabs between /account/ and /sites/ (the top nav is hidden on phones) */
.account-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.account-tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.account-tabs a:hover { color: var(--text); text-decoration: none; }
.account-tabs a.active { color: var(--text); border-bottom-color: var(--primary); }
a.stat { color: inherit; }
a.stat:hover { text-decoration: none; border-color: var(--primary); }
.account-logout { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.account-sites { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.account-sites li { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; }
.account-sites a b { overflow-wrap: anywhere; }
.site { scroll-margin-top: 80px; }
