/* Agent Trail site. Colors follow the app's Theme and ProfileColor palettes. */

:root {
  --bg: #f4f5f8;
  --bg-raised: #ffffff;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: #ffffff;
  --sunken: rgba(20, 22, 27, 0.045);
  --hairline: rgba(20, 22, 27, 0.09);
  --hairline-strong: rgba(20, 22, 27, 0.16);
  --text: #14161b;
  --text-2: #464e5f;
  --text-3: #646c7e;
  --accent: #4f6bed;
  --accent-text: #3149c9;
  --violet: #a178ff;
  --working: #0ca30c;
  --working-text: #006300;
  --needs: #fab219;
  --needs-text: #8a5300;
  --idle: #8a93a6;
  --p1: #2a78d6;
  --p2: #d4498c;
  --p3: #6250d6;
  --p4: #1b9690;
  --code-bg: #15181f;
  --code-text: #e6e9f0;
  --shadow: 0 1px 2px rgba(20, 22, 27, 0.05), 0 12px 32px -12px rgba(20, 22, 27, 0.18);
  --shadow-lg: 0 2px 6px rgba(20, 22, 27, 0.06), 0 40px 80px -24px rgba(31, 41, 90, 0.32);
  --aurora-1: rgba(79, 107, 237, 0.13);
  --aurora-2: rgba(161, 120, 255, 0.10);
  --radius: 16px;
  --radius-s: 10px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-raised: #171a20;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-strong: #1a1d24;
    --sunken: rgba(255, 255, 255, 0.045);
    --hairline: rgba(255, 255, 255, 0.09);
    --hairline-strong: rgba(255, 255, 255, 0.16);
    --text: #eceef3;
    --text-2: #b7bdca;
    --text-3: #8f97a8;
    --accent: #7c93ff;
    --accent-text: #a5b4ff;
    --working-text: #3ddc6f;
    --needs-text: #fab219;
    --p1: #3987e5;
    --p2: #d55181;
    --p3: #9085e9;
    --p4: #33a397;
    --code-bg: #0a0c10;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 2px 8px rgba(0, 0, 0, 0.4), 0 48px 96px -24px rgba(0, 0, 0, 0.7);
    --aurora-1: rgba(79, 107, 237, 0.20);
    --aurora-2: rgba(161, 120, 255, 0.12);
  }
}

/* Color themes, matching the app's ⋯ › Theme menu. Classic is the base above;
   each mode's overrides sit in that mode's query so they never leak across. */
@media (prefers-color-scheme: light) {
  :root[data-theme="gentle"], :root[data-theme="vivid"], :root[data-theme="aurora"] {
    --bg: #f5f6fb;
    --accent: #4a64ff;
    --accent-text: #2f45d6;
    --needs: #ffb31f;
    --aurora-1: rgba(74, 100, 255, 0.17);
    --aurora-2: rgba(161, 120, 255, 0.13);
  }
  :root[data-theme="vivid"], :root[data-theme="aurora"] {
    --p1: #1d80fc;
    --p2: #f43e98;
    --p3: #5f31e7;
    --p4: #0e8d81;
  }
  :root[data-theme="aurora"] {
    --bg: #f4f5fd;
    --aurora-1: rgba(74, 100, 255, 0.22);
    --aurora-2: rgba(161, 120, 255, 0.18);
    --aurora-3: rgba(244, 62, 152, 0.08);
  }
}

@media (prefers-color-scheme: dark) {
  :root[data-theme="gentle"], :root[data-theme="vivid"], :root[data-theme="aurora"] {
    --bg: #11131a;
    --accent: #8798ff;
    --accent-text: #aebbff;
    --working: #2bc95a;
    --working-text: #4be07d;
    --needs: #ffba2e;
    --needs-text: #ffba2e;
    --aurora-1: rgba(79, 107, 237, 0.26);
    --aurora-2: rgba(161, 120, 255, 0.16);
  }
  :root[data-theme="vivid"], :root[data-theme="aurora"] {
    --p1: #458fdf;
    --p2: #f0359a;
    --p3: #6252f3;
    --p4: #058c81;
  }
  :root[data-theme="aurora"] {
    --bg: #10121c;
    --aurora-1: rgba(91, 115, 255, 0.32);
    --aurora-2: rgba(155, 107, 255, 0.22);
    --aurora-3: rgba(240, 53, 154, 0.12);
  }
}

/* Aurora's primary buttons carry the brand gradient; white text stays above 4.6:1. */
:root[data-theme="aurora"] .btn-primary { background: linear-gradient(135deg, #4a64ff, #7a4cf0); color: #fff; }

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
code { font-family: var(--mono); font-size: 0.86em; background: var(--sunken); border: 1px solid var(--hairline); padding: 0.08em 0.36em; border-radius: 6px; }
strong, b { font-weight: 600; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
ul { margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  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 { position: absolute; left: 16px; top: -48px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--text); color: var(--bg); }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 650; letter-spacing: -0.01em; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: var(--sunken); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-link { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--text-2); }
.icon-link:hover { color: var(--text); background: var(--sunken); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font: 600 16px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--text); color: var(--bg); box-shadow: var(--shadow); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--hairline-strong); }
.btn-ghost:hover { background: var(--surface-strong); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }

/* Hero */
.hero { position: relative; padding: 72px 0 96px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -60px 0 auto; height: 760px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(48% 60% at 78% 30%, var(--aurora-1), transparent 70%),
    radial-gradient(40% 50% at 12% 10%, var(--aurora-2), transparent 70%),
    radial-gradient(40% 40% at 60% 95%, var(--aurora-3, transparent), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.4vw, 4.25rem);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.02;
  margin: 22px 0 22px;
  text-wrap: balance;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 36em; text-wrap: pretty; }
.lead strong { color: var(--text); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; color: var(--text-2); font-size: 13.5px; }
.meta li { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--sunken); white-space: nowrap; }

.pill {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--hairline-strong);
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow);
}
.pill:hover { text-decoration: none; border-color: var(--working); }
.pill > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill svg { flex: none; color: var(--text-3); }
.pill-tag { flex: none; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--working) 16%, transparent); color: var(--working-text); font-weight: 650; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; }

.hero-visual { margin: 0; position: relative; max-width: 520px; justify-self: end; width: 100%; }
.menubar {
  display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 14px;
  border-radius: 12px; margin-bottom: 12px;
  background: color-mix(in srgb, var(--surface-strong) 70%, transparent);
  border: 1px solid var(--hairline);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  color: var(--text); font-size: 13px; font-weight: 500;
  box-shadow: var(--shadow);
}
.mb-apple { width: 12px; height: 14px; border-radius: 50% 50% 45% 45%; background: var(--text); opacity: 0.85; }
.mb-spacer { flex: 1; }
.mb-item { display: inline-flex; align-items: center; }
.mb-bar { width: 18px; height: 10px; border-radius: 3px; background: var(--text); opacity: 0.3; }
.mb-bar.short { width: 12px; }
.mb-trail { position: relative; padding: 3px 6px; border-radius: 6px; }
.mb-trail.is-active { background: var(--sunken); }
.mb-trail.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: -19px; width: 14px; height: 14px;
  transform: translateX(-50%) rotate(45deg);
  background: var(--surface-strong); border-left: 1px solid var(--hairline); border-top: 1px solid var(--hairline);
  z-index: 3;
}
.mb-clock { color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.glyph { display: block; }

.popover {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow-lg);
  background: var(--surface-strong);
}
.popover img { width: 100%; }
.hero-visual figcaption, .media-note { margin-top: 14px; font-size: 13px; color: var(--text-3); text-align: center; }

/* Theme picker under the hero shot. Hidden until main.js runs. */
.theme-picker { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 16px; }
.theme-picker[hidden] { display: none; }
.theme-label { font-size: 13px; color: var(--text-3); margin-right: 4px; }
.theme-picker button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 0 12px 0 8px;
  border-radius: 999px; border: 1px solid var(--hairline-strong); background: var(--surface);
  color: var(--text-2); font: 500 13px/1 var(--font); cursor: pointer;
}
.theme-picker button:hover { color: var(--text); border-color: var(--accent); }
.theme-picker button[aria-pressed="true"] { color: var(--text); background: var(--surface-strong); border-color: var(--accent); box-shadow: var(--shadow); }
.swatch { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
.sw-classic { background: conic-gradient(#2a78d6 0 25%, #d4498c 0 50%, #6250d6 0 75%, #8a93a6 0); }
.sw-gentle { background: conic-gradient(#2a78d6 0 25%, #d4498c 0 50%, #6250d6 0 75%, #7086f3 0); }
.sw-vivid { background: conic-gradient(#1d80fc 0 25%, #f43e98 0 50%, #5f31e7 0 75%, #0e8d81 0); }
.sw-aurora { background: linear-gradient(135deg, #4a64ff, #8b5cf6 55%, #f43e98); }

/* Sections */
.section { padding: 104px 0; position: relative; }
.section-tint { background: linear-gradient(180deg, var(--sunken), transparent 70%); border-top: 1px solid var(--hairline); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3);
  margin-bottom: 14px;
}
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; text-wrap: balance;
}
.section-lead { margin-top: 18px; font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--text-2); text-wrap: pretty; }

.card {
  background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card h3 { font-size: 19px; margin-bottom: 10px; letter-spacing: -0.015em; }
.card p { color: var(--text-2); font-size: 15.5px; }
.card p + p, .card p + ul, .card ul + p, .card blockquote + p { margin-top: 12px; }
.fine { font-size: 14px; color: var(--text-3); margin-top: 16px; }

.t-working { color: var(--working-text); }
.t-needs { color: var(--needs-text); }
.c-needs { color: var(--needs); }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--idle); }
.dot-working { background: var(--working); box-shadow: 0 0 0 3px color-mix(in srgb, var(--working) 22%, transparent); }
.dot-idle { background: transparent; border: 1.6px solid var(--idle); }
.dot-unknown { background: transparent; border: 1.6px dashed var(--idle); }
.dot-p1 { background: var(--p1); }
.dot-p2 { background: var(--p2); }
.dot-p3 { background: var(--p3); }
.dot-p4 { background: var(--p4); }

/* Background work */
.feature-bg { border-top: 1px solid var(--hairline); }
.feature-bg::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 520px; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 70% at 50% 0%, color-mix(in srgb, var(--working) 9%, transparent), transparent 70%);
}
.feature-bg { isolation: isolate; }

.timeline {
  margin: 0 0 28px; padding: 28px 28px 30px;
  background: var(--surface); border: 1px solid var(--hairline); border-radius: 20px; box-shadow: var(--shadow);
}
.tl-grid { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr); row-gap: 14px; column-gap: 20px; }
.tl-marks, .tl-guides { grid-column: 2; position: relative; }
.tl-marks { height: 22px; }
.tl-mark {
  position: absolute; left: var(--at); top: 0; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; color: var(--text-3); white-space: nowrap;
}
.tl-mark:first-child { transform: none; }
/* An absolutely placed grid child is positioned within its column, over every row. */
.tl-guides { position: absolute; inset: 26px 0 0 0; pointer-events: none; }
.tl-guides span { position: absolute; top: 0; bottom: 0; left: var(--at); border-left: 1.5px dashed var(--hairline-strong); }
.tl-row { display: contents; }
.tl-label { align-self: center; font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.25; }
.tl-label small { display: block; font-size: 12px; font-weight: 500; color: var(--text-3); margin-top: 2px; }
.tl-track { position: relative; height: 36px; border-radius: 10px; background: var(--sunken); }
.bar {
  position: absolute; top: 4px; bottom: 4px; left: var(--from); width: calc(var(--to) - var(--from));
  display: flex; align-items: center; padding: 0 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-turn { background: color-mix(in srgb, var(--p1) 20%, transparent); color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--p1) 45%, transparent); }
.bar-cmd {
  background: color-mix(in srgb, var(--violet) 18%, transparent); color: var(--text);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--violet) 45%, transparent);
  font-family: var(--mono); font-weight: 500; font-size: 12px;
}
.s-working { background: color-mix(in srgb, var(--working) 22%, transparent); color: var(--working-text); }
.s-idle { background: transparent; color: var(--text-3); box-shadow: inset 0 0 0 1px var(--hairline-strong); }
.s-background {
  color: var(--working-text);
  background:
    repeating-linear-gradient(-45deg, color-mix(in srgb, var(--working) 13%, transparent) 0 8px, color-mix(in srgb, var(--working) 24%, transparent) 8px 16px);
  background-size: 22.6px 22.6px;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--working) 55%, transparent);
  animation: stripes 1.2s linear infinite;
}
@keyframes stripes { to { background-position: 22.6px 0; } }
.tl-before .tl-label { color: var(--text-3); }
.tl-before .bar { opacity: 0.75; }
.tl-before .s-idle { color: var(--text-2); }
.tl-now .tl-label { color: var(--working-text); }

.bg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tooltip-mock {
  margin: 14px 0 0; padding: 12px 14px; border-radius: 10px;
  background: var(--surface-strong); border: 1px solid var(--hairline-strong);
  box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.45; color: var(--text);
}
.ptree { list-style: none; margin-top: 16px; font-size: 13.5px; }
.ptree li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1px 10px; padding: 8px 0 8px 24px; }
.ptree li:not(.ptree-root)::before { content: ""; position: absolute; left: 6px; top: 0; height: 20px; width: 11px; border-left: 1.5px solid var(--hairline-strong); border-bottom: 1.5px solid var(--hairline-strong); border-bottom-left-radius: 5px; }
.ptree li:not(.ptree-root):not(:last-child)::after { content: ""; position: absolute; left: 6px; top: 18px; bottom: 0; border-left: 1.5px solid var(--hairline-strong); }
.ptree .ptree-root { padding: 0 0 2px; font-weight: 600; color: var(--text); display: block; }
.ptree .pname { font-weight: 600; color: var(--text); }
.ptree .why { grid-column: 1 / -1; color: var(--text-3); font-size: 12.5px; line-height: 1.35; }
.ptree .verdict { grid-column: 2; grid-row: 1; font-size: 12px; font-weight: 650; padding: 1px 8px; border-radius: 999px; }
.ptree .yes .verdict { color: var(--working-text); background: color-mix(in srgb, var(--working) 16%, transparent); }
.ptree .no .verdict { color: var(--text-3); background: var(--sunken); }
.fine-list { list-style: none; margin-top: 14px; display: grid; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.fine-list li { position: relative; padding-left: 18px; }
.fine-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--hairline-strong); }

/* Features */
.feature-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; padding: 40px 0; }
.feature-row + .feature-row { border-top: 1px solid var(--hairline); }
.feature-row.reverse .feature-copy { order: 2; }
.feature-copy h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.025em; margin-bottom: 14px; }
.feature-copy > p { color: var(--text-2); font-size: 16.5px; }
.feature-copy > p + p { margin-top: 14px; }
.feature-copy > .fine { font-size: 14px; color: var(--text-3); margin-top: 16px; }
.checks { list-style: none; margin-top: 18px; display: grid; gap: 10px; color: var(--text-2); font-size: 15.5px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 18px; height: 18px; border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%234f6bed' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.feature-media { min-width: 0; }
.shot { border-radius: 18px; overflow: hidden; border: 1px solid var(--hairline-strong); box-shadow: var(--shadow-lg); max-width: 520px; margin: 0 auto; background: var(--surface-strong); }
.shot img { width: 100%; }
.shot-wide { max-width: none; background: #0b0d12; }

.status-board { display: grid; gap: 10px; }
.status-chip {
  display: grid; grid-template-columns: 18px auto 1fr; align-items: center; gap: 4px 12px;
  padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow);
  font-size: 15px;
}
.status-chip .dot { justify-self: center; }
.status-chip > span:last-child { color: var(--text-3); font-size: 14px; }

.jump-stack { display: grid; gap: 12px; max-width: 480px; margin: 0 auto; }
.jump {
  display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 12px 16px; border-radius: 12px; font-size: 14.5px;
  background: var(--surface); border: 1px solid var(--hairline-strong); box-shadow: var(--shadow);
}
.jump .jp { color: var(--text-3); }
.jump b { font-weight: 650; }
.jump .sep { color: var(--text-3); }
.jump .jt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.jump .ja { color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.jump-needs { border-color: color-mix(in srgb, var(--needs) 70%, transparent); background: color-mix(in srgb, var(--needs) 9%, var(--surface)); }
.jump-needs svg, .jump-needs b { color: var(--needs-text); }
.jump-needs svg { color: var(--needs); flex: none; }
.jump-working b { color: var(--working-text); }
.jump-legend { text-align: center; font-size: 13px; color: var(--text-3); margin-top: 4px; }

.icon-states { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.icon-states li {
  display: grid; gap: 4px; padding: 18px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow);
}
.icon-states b { font-size: 15px; margin-top: 10px; }
.icon-states li > span:last-child { font-size: 14px; color: var(--text-3); line-height: 1.4; }
.mbar {
  display: inline-flex; align-items: center; gap: 6px; justify-self: start;
  height: 34px; padding: 0 12px; border-radius: 9px;
  background: var(--sunken); border: 1px solid var(--hairline); color: var(--text);
}
.mbar-needs { color: var(--needs); }
.mbar .count { font: 600 14px/1 var(--font); font-variant-numeric: tabular-nums; }

.feature-wide { padding: 48px 0 8px; border-top: 1px solid var(--hairline); }
.feature-wide .feature-copy { max-width: 720px; margin-bottom: 28px; }

.assistants { margin-top: 72px; }
.assistants h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.025em; margin-bottom: 20px; }
.assistant-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.assistant { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.assistant h4 { display: flex; align-items: center; gap: 10px; font-size: 17px; margin-bottom: 14px; }
.assistant dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14.5px; }
.assistant dt { color: var(--text-3); font-weight: 600; font-size: 13px; padding-top: 1px; }
.assistant dd { margin: 0; color: var(--text-2); }

/* Privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pv-icon {
  display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 14px; border-radius: 10px;
  color: var(--accent-text); background: color-mix(in srgb, var(--accent) 13%, transparent);
}

/* Install */
.install-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.install-grid > :first-child { grid-row: span 2; }
.install-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.install-card p + p, .install-card .code + p { margin-top: 0; }
.install-card .cta { margin-top: 4px; }
.install-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.install-head h3 { margin: 0; }
.badge { font-size: 12px; font-weight: 650; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent-text); }
.badge-muted { background: var(--sunken); color: var(--text-2); font-family: var(--mono); font-weight: 500; }
.warn {
  font-size: 14.5px; padding: 12px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--needs) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--needs) 35%, transparent);
  color: var(--text-2);
}
.code { position: relative; border-radius: 12px; background: var(--code-bg); border: 1px solid var(--hairline); }
.code pre { margin: 0; padding: 16px 52px 16px 16px; overflow-x: auto; }
.code code { background: none; border: 0; padding: 0; color: var(--code-text); font-size: 13.5px; line-height: 1.7; }
.copy {
  position: absolute; top: 8px; right: 8px; display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.14); background: #252a35;
  color: #c9cfdb; cursor: pointer;
}
.copy:hover { background: #313748; color: #fff; }
.copy.is-done { color: #3ddc6f; }

/* Support */
.support-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.support-link {
  display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--radius); text-decoration: none;
  background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.support-link:hover { transform: translateY(-2px); border-color: var(--accent); text-decoration: none; }
.sl-title { color: var(--text); font-weight: 650; font-size: 17px; }
.sl-title::after { content: " →"; color: var(--text-3); }
.sl-sub { color: var(--text-3); font-size: 14px; }

.crypto { margin-top: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hairline); box-shadow: var(--shadow); }
.crypto summary {
  list-style: none; cursor: pointer; display: grid; gap: 2px; padding: 20px 56px 20px 24px; position: relative;
}
.crypto summary::-webkit-details-marker { display: none; }
.crypto summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform 0.2s ease;
}
.crypto[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.crypto summary > span:first-child { font-weight: 650; font-size: 17px; }
.summary-sub { color: var(--text-3); font-size: 14px; }
.crypto > :not(summary) { margin-left: 24px; margin-right: 24px; }
.crypto > .warn { margin-top: 4px; }
.crypto-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.wallet { display: grid; justify-items: center; gap: 10px; padding: 20px; border-radius: 14px; background: var(--surface-strong); border: 1px solid var(--hairline); text-align: center; min-width: 0; }
.wallet img { width: 156px; border-radius: 8px; background: #fff; padding: 6px; }
.wallet h3 { font-size: 16px; }
.wallet h3 span { display: block; font-size: 13px; font-weight: 500; color: var(--text-3); margin-top: 3px; }
.addr { position: relative; width: 100%; border-radius: 10px; background: var(--code-bg); }
.addr code { display: block; background: none; border: 0; padding: 12px 48px 12px 12px; color: var(--code-text); font-size: 12.5px; line-height: 1.5; word-break: break-all; text-align: left; }
.addr .copy { top: 50%; transform: translateY(-50%); }
.crypto > .fine { margin-bottom: 22px; }

/* Footer */
.footer { border-top: 1px solid var(--hairline); padding: 40px 0 56px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { border-radius: 8px; }
.footer-brand div { display: grid; }
.footer-brand span { color: var(--text-3); font-size: 13.5px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 20px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-note { grid-column: 1 / -1; color: var(--text-3); font-size: 13.5px; }

/* Responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-self: center; }
  .bg-cards { grid-template-columns: minmax(0, 1fr); }
  .feature-row { gap: 40px; }
}

@media (max-width: 820px) {
  .feature-row { grid-template-columns: minmax(0, 1fr); }
  .feature-row.reverse .feature-copy { order: 0; }
  .assistant-grid, .support-links, .crypto-grid, .install-grid { grid-template-columns: minmax(0, 1fr); }
  .install-grid > :first-child { grid-row: auto; }
  .privacy-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-grid { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .tl-marks, .tl-guides { grid-column: 1; }
  .tl-marks { margin-bottom: 4px; }
  .tl-label { margin-top: 10px; }
  .tl-label small { display: inline; margin-left: 6px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 64px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .cta .btn { flex: 1 1 100%; }
  .card, .timeline { padding: 20px; }
  .icon-states { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .icon-states li { grid-template-columns: 72px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 14px 16px; align-items: center; }
  .icon-states .mbar { grid-row: span 2; justify-self: stretch; justify-content: center; padding: 0 8px; }
  .icon-states b { margin-top: 0; }
  .tl-mark { font-size: 11px; }
  .bar { padding: 0 7px; font-size: 11.5px; }
  .mb-clock { display: none; }
  .crypto > :not(summary) { margin-left: 16px; margin-right: 16px; }
  .crypto summary { padding: 18px 48px 18px 16px; }
  .crypto summary::after { right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
