/* Detour site. The page follows the system's light or dark theme. */

@font-face { font-family: "Inter"; src: url(fonts/InterVariable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/JetBrainsMono-Regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/JetBrainsMono-SemiBold.woff2) format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ===== tokens: the site (Masterskaya style "Detour") ===== */
:root {
  color-scheme: dark;
  --ds-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --ds-mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", Menlo, Consolas, monospace;
  --r-btn: 10px;
  --r-card: 14px;
  --page: #0c0d10; --surface: #141519; --surface-2: #1a1b20; --inset: #0f1013;
  --line: #23252b; --line-strong: #2f323a;
  --fg: #ececef; --fg-2: #b0b3bb; --fg-3: #8b8e97;
  --accent: #7a8cff; --accent-fill: #7a8cff; --accent-text: #8a9aff; --accent-border: #7a8cff; --accent-strong: #a1b0ff; --accent-soft: #1a1e3a; --on-accent: #0a0c18;
  --success: #4cc38a; --success-soft: #0f2219; --warning: #e5a54b; --warning-soft: #261c0c; --error: #ef6461; --error-soft: #2a1514;
  --grad-1: #6e9bff; --grad-3: #3ecf8e;
  --sh-raised: 0 18px 48px rgba(0, 0, 0, 0.45);

  /* The app itself (Detour's src/styles.css) and its terminal theme (src/lib/themes.ts) */
  --a-bg: #111215; --a-side: #0c0d0f; --a-surface: #17181c; --a-raised: #1d1f24;
  --a-hover: rgba(255, 255, 255, 0.045); --a-press: rgba(255, 255, 255, 0.08);
  --a-line: rgba(255, 255, 255, 0.07); --a-line2: rgba(255, 255, 255, 0.13); --a-input: #0e0f12;
  --a-text: #ececef; --a-text2: #a3a6af; --a-muted: #6c707a;
  --a-accent: #7a8cff; --a-accent-soft: rgba(122, 140, 255, 0.14); --a-on-accent: #0a0c18;
  --a-ok: #4cc38a; --a-warn: #e5a54b; --a-warn-soft: rgba(229, 165, 75, 0.1); --a-err: #ef6461; --a-err-soft: rgba(239, 100, 97, 0.14);
  --a-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.13); --a-knob: #ffffff;
  --t-bg: #0b0c0e; --t-fg: #d9dbe1; --t-cur: #8d9cff;
  --t-red: #ef6461; --t-green: #4cc38a; --t-yellow: #e5a54b; --t-blue: #7a8cff; --t-magenta: #c58af9; --t-cyan: #56c7d8; --t-dim: #5d616c;

  /* The iOS app, as on its App Store screenshots: always dark */
  --i-bg: #000000; --i-card: #1c1c1e; --i-sep: rgba(84, 84, 88, 0.6); --i-text: #ffffff; --i-sub: #8e8e93;
  --i-glass: rgba(118, 118, 128, 0.24); --i-key: #3a3a3c; --i-keybar: #1c1c1e; --i-kbd: #2c2c2e;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --page: #fbfbfc; --surface: #ffffff; --surface-2: #f4f4f6; --inset: #f2f2f4;
    --line: #e4e5ea; --line-strong: #d3d5dc;
    --fg: #17181c; --fg-2: #4f525a; --fg-3: #6b6e77;
    --accent: #4d5ee8; --accent-fill: #4d5ee8; --accent-text: #4757e0; --accent-border: #4d5ee8; --accent-strong: #3f50dd; --accent-soft: #eceefe; --on-accent: #ffffff;
    --success: #0b7d4d; --success-soft: #e3f6ec; --warning: #9a6200; --warning-soft: #fdf1dc; --error: #c43a37; --error-soft: #fdeceb;
    --grad-1: #486de2; --grad-3: #008656;
    --sh-raised: 0 18px 48px rgba(20, 22, 30, 0.12);

    --a-bg: #fbfbfc; --a-side: #f2f2f4; --a-surface: #ffffff; --a-raised: #ffffff;
    --a-hover: rgba(10, 12, 20, 0.04); --a-press: rgba(10, 12, 20, 0.075);
    --a-line: rgba(10, 12, 20, 0.08); --a-line2: rgba(10, 12, 20, 0.14); --a-input: #ffffff;
    --a-text: #17181c; --a-text2: #4f525a; --a-muted: #8a8d96;
    --a-accent: #4d5ee8; --a-accent-soft: rgba(77, 94, 232, 0.1); --a-on-accent: #ffffff;
    --a-ok: #2f9e66; --a-warn: #b7791f; --a-warn-soft: rgba(200, 130, 30, 0.1); --a-err: #d6453f; --a-err-soft: rgba(220, 70, 66, 0.1);
    --a-shadow: 0 16px 40px rgba(20, 22, 30, 0.14), 0 0 0 1px rgba(10, 12, 20, 0.14);
    --t-bg: #fbfbfc; --t-fg: #17181c; --t-cur: #4d5ee8;
    --t-red: #d6453f; --t-green: #2f9e66; --t-yellow: #b7791f; --t-blue: #4d5ee8; --t-magenta: #9a4fd0; --t-cyan: #1d8fa3; --t-dim: #8a8d96;
  }
}

/* ===== base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--fg); font: 16px/1.5 var(--ds-sans); }
h1, h2, h3, h4, h5, p, ul, dl, dd, pre { margin: 0; }
section[id] { scroll-margin-top: 72px; }
table { border-collapse: collapse; }
.ic { display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.d-dlf a { color: var(--fg-2); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.d-dlf a:hover { color: var(--fg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Buttons for the visitor's system only. <html data-os> is set in <head>. */
html[data-os="macos"] [data-when]:not([data-when~="macos"]),
html[data-os="windows"] [data-when]:not([data-when~="windows"]),
html[data-os="linux"] [data-when]:not([data-when~="linux"]),
html[data-os="ios"] [data-when]:not([data-when~="ios"]),
html[data-os="other"] [data-when]:not([data-when~="other"]) { display: none !important; }

/* ===== the page (from the Masterskaya design) ===== */
.d-lp{background:var(--page);color:var(--fg);font-family:var(--ds-sans);-webkit-font-smoothing:antialiased}
.d-lp a{color:inherit;text-decoration:none}
.d-wrap{max-width:1200px;margin:0 auto;padding-left:32px;padding-right:32px}
.d-m{font-family:var(--ds-mono)}

/* site buttons */
.d-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 16px;border-radius:var(--r-btn);font-size:14px;font-weight:600;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,color .15s,transform .1s}
.d-btn:active{transform:translateY(1px)}
.d-btn.lg{height:52px;padding:0 24px;font-size:16px;border-radius:12px}
.d-btn.pri{background:var(--accent-fill);color:var(--on-accent)}
.d-btn.pri:hover{background:var(--accent-strong)}
.d-btn.gho{color:var(--fg-2)}
.d-btn.gho:hover{color:var(--fg);background:var(--surface)}
.d-btn.out{border:1px solid var(--line-strong);color:var(--fg);background:var(--surface)}
.d-btn.out:hover{border-color:var(--fg-3);background:var(--surface-2)}
.d-lp a:focus-visible{outline:2px solid var(--accent-border);outline-offset:2px;border-radius:8px}

/* nav */
.d-nav{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--page) 84%,transparent);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.d-nav-in{display:flex;align-items:center;height:64px;gap:28px}
.d-logo{display:inline-flex;align-items:center;gap:10px;font-weight:650;font-size:17px;letter-spacing:-.01em;height:44px}
.d-mark{width:28px;height:28px;flex:none}
.d-mark .lb{fill:var(--surface-2);stroke:var(--line-strong);stroke-width:8}
.d-mark .l1{stroke:var(--grad-1)}
.d-mark .l2{stroke:var(--grad-3)}
.d-links{display:flex;gap:2px}
.d-links a{display:inline-flex;align-items:center;height:44px;padding:0 12px;border-radius:8px;color:var(--fg-2);font-size:14px;font-weight:500;transition:color .15s,background .15s}
.d-links a:hover{color:var(--fg);background:var(--surface)}
.d-nav-end{margin-left:auto;display:flex;align-items:center;gap:8px}

/* hero */
.d-hero{position:relative;padding:88px 0 0;text-align:center;overflow-x:clip}
.d-hero:before{content:"";position:absolute;left:50%;top:200px;width:1400px;height:900px;transform:translateX(-50%);background:radial-gradient(50% 50% at 50% 50%,color-mix(in srgb,var(--accent) 22%,transparent),transparent 70%);pointer-events:none}
.d-hero > *{position:relative}
.d-pill{display:inline-flex;align-items:center;gap:10px;height:34px;padding:0 14px 0 5px;border:1px solid var(--line-strong);border-radius:999px;font-size:13.5px;color:var(--fg-2);background:var(--surface);transition:border-color .15s,color .15s}
.d-pill:hover{border-color:var(--fg-3);color:var(--fg)}
.d-pill b{background:var(--accent-soft);color:var(--accent-text);border-radius:999px;padding:4px 10px;font-weight:600;font-size:12px}
.d-h1{font-size:70px;line-height:1.03;letter-spacing:-.04em;font-weight:700;margin:26px auto 0;max-width:920px;text-wrap:balance}
.d-h1 em{font-style:normal;background:linear-gradient(92deg,var(--grad-1),var(--grad-3));-webkit-background-clip:text;background-clip:text;color:transparent}
.d-lead{font-size:19px;line-height:1.55;color:var(--fg-2);max-width:640px;margin:24px auto 0;text-wrap:balance}
.d-cta{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:36px}
.d-meta{display:flex;gap:8px 20px;justify-content:center;flex-wrap:wrap;margin-top:20px;font-size:13.5px;color:var(--fg-3)}
.d-meta span{display:inline-flex;align-items:center;gap:6px}
.d-stage{margin-top:64px;padding-bottom:8px}

/* ===== the real Detour UI (colours from the app: --a-*, terminal: --t-*) ===== */
.w{position:relative;border-radius:12px;background:var(--a-bg);border:1px solid var(--a-line2);overflow:hidden;text-align:left;color:var(--a-text);font-family:var(--ds-sans);font-size:13px;line-height:1.45}
.d-stage .w{box-shadow:0 50px 140px -40px color-mix(in srgb,var(--accent) 45%,transparent),var(--a-shadow)}
.w-title{height:36px;display:flex;align-items:center;gap:8px;padding:0 14px;background:var(--a-side);border-bottom:1px solid var(--a-line)}
.w-title i{width:12px;height:12px;border-radius:50%;background:var(--a-line2)}
.w-title span{margin:0 auto;transform:translateX(-26px);font-size:12.5px;color:var(--a-muted);font-weight:550}
.w-body{display:grid;grid-template-columns:228px 1fr;height:600px}
.w-side{background:var(--a-side);border-right:1px solid var(--a-line);padding:10px 8px;display:flex;flex-direction:column;gap:6px;min-height:0}
.w-vault{display:flex;align-items:center;gap:10px;padding:7px 8px 7px 7px;border-radius:8px}
.w-vav{width:28px;height:28px;border-radius:7px;display:grid;place-items:center;font-weight:700;font-size:13px;background:var(--a-err-soft);color:var(--a-err);flex:none}
.w-vn{flex:1;display:flex;flex-direction:column;min-width:0}
.w-vn b{font-weight:600;font-size:13.5px}
.w-vs{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--a-muted)}
.w-vault > .ic{color:var(--a-muted)}
.w-dot{width:6px;height:6px;border-radius:50%;background:var(--a-ok);display:inline-block;flex:none}
.w-quick{display:flex;align-items:center;gap:8px;height:32px;padding:0 8px 0 13px;margin:2px 0 8px;border-radius:8px;background:var(--a-hover);color:var(--a-muted)}
.w-quick > span:first-of-type{flex:1}
.w-term,.ui-term,.d-code,.ph-term,.md-pre,.w-mono,.d-m{font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0}
.w-kbd{flex:none;font-size:10.5px;padding:1px 5px;border-radius:4px;border:1px solid var(--a-line2);line-height:1.4;color:var(--a-muted)}
.w-nav{display:flex;flex-direction:column;gap:1px}
.w-ni{display:flex;align-items:center;gap:10px;height:32px;padding:0 10px 0 12px;border-radius:8px;color:var(--a-text2)}
.w-ni .ic{color:var(--a-muted)}
.w-ni span{flex:1}
.w-ni em{font-style:normal;font-size:11.5px;color:var(--a-muted)}
.w-ni.on{background:var(--a-press);color:var(--a-text);font-weight:550}
.w-ni.on .ic{color:var(--a-accent)}
.w-sb{margin-top:auto}
.w-main{display:flex;flex-direction:column;min-width:0}
.w-tabs{display:flex;align-items:center;gap:2px;height:42px;padding:0 8px;border-bottom:1px solid var(--a-line);background:var(--a-side);flex:none}
.w-tab{display:flex;align-items:center;gap:8px;height:30px;padding:0 8px 0 10px;border-radius:8px;color:var(--a-muted);white-space:nowrap}
.w-tab.on{background:var(--a-press);color:var(--a-text)}
.w-tab .ic{color:var(--a-muted)}
.w-ib{width:30px;height:30px;display:grid;place-items:center;color:var(--a-muted);border-radius:8px;flex:none}
.w-term{flex:1;background:var(--t-bg);color:var(--t-fg);font-family:var(--ds-mono);font-size:12px;line-height:17px;padding:12px 14px;white-space:pre;overflow:hidden}
.t-g{color:var(--t-green)}.t-b{color:var(--t-blue)}.t-y{color:var(--t-yellow)}.t-r{color:var(--t-red)}.t-m{color:var(--t-magenta)}.t-c{color:var(--t-cyan)}.t-d{color:var(--t-dim)}.t-f{opacity:.55}
.t-cur{display:inline-block;width:7.5px;height:15px;background:var(--t-cur);vertical-align:-3px}
.w-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:32px;padding:0 13px;border-radius:8px;font-weight:550;white-space:nowrap;font-size:13px}
.w-btn.sm{height:28px;padding:0 10px;font-size:12.5px}
.w-btn.pri{background:var(--a-accent);color:var(--a-on-accent)}
.w-btn.sec{background:var(--a-surface);border:1px solid var(--a-line2);color:var(--a-text)}
.w-btn.gho{color:var(--a-text2)}
.w-mono{font-family:var(--ds-mono)}
.w-muted{color:var(--a-muted)}
.w-seg{display:inline-flex;padding:3px;gap:2px;border-radius:8px;background:var(--a-input);border:1px solid var(--a-line2)}
.w-seg span{height:26px;display:inline-flex;align-items:center;padding:0 10px;border-radius:6px;color:var(--a-muted);font-weight:550;white-space:nowrap}
.w-seg span.on{background:var(--a-press);color:var(--a-text)}
.w-chk{display:inline-flex;align-items:center;gap:9px;color:var(--a-text2)}
.w-box{width:16px;height:16px;border-radius:4px;border:1px solid var(--a-line2);background:var(--a-input);display:grid;place-items:center;flex:none;color:transparent}
.w-chk.on .w-box{background:var(--a-accent);border-color:var(--a-accent);color:var(--a-on-accent)}
.w-sw{width:34px;height:20px;border-radius:10px;background:var(--a-press);position:relative;flex:none}
.w-sw i{position:absolute;top:2px;left:2px;width:16px;height:16px;border-radius:50%;background:var(--a-knob)}
.w-sw.on{background:var(--a-accent)}
.w-sw.on i{transform:translateX(14px)}
.w-ic{width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--a-hover);border:1px solid var(--a-line);color:var(--a-text2);flex:none}
.w-chip{display:inline-flex;align-items:center;height:19px;padding:0 7px;border-radius:5px;background:var(--a-hover);border:1px solid var(--a-line);color:var(--a-text2);font-size:11px;font-weight:500;white-space:nowrap}

/* framed fragments of the app in feature cards */
.ui{background:var(--a-bg);border:1px solid var(--a-line2);border-radius:10px;overflow:hidden;color:var(--a-text);font-size:13px;line-height:1.45;text-align:left}
.ui-term{background:var(--t-bg);color:var(--t-fg);font-family:var(--ds-mono);font-size:12px;line-height:18px;padding:12px 14px;white-space:pre;overflow:hidden}
.uf{display:grid;grid-template-columns:1fr 1px 1fr}
.uf-div{background:var(--a-line)}
.uf-bar{display:flex;align-items:center;gap:8px;height:40px;padding:0 8px 0 10px;border-bottom:1px solid var(--a-line);font-size:12px;white-space:nowrap;overflow:hidden}
.uf-bar .ic{color:var(--a-muted);flex:none}
.uf-crumb{flex:1;min-width:0;overflow:hidden;color:var(--a-text2)}
.uf-crumb b{color:var(--a-text);font-weight:600}
.uf-h,.uf-r{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;padding:0 12px}
.uf-h{height:28px;font-size:11.5px;color:var(--a-muted);font-weight:550}
.uf-r{height:30px;font-size:12.5px}
.uf-r .n{display:flex;align-items:center;gap:8px;min-width:0;white-space:nowrap}
.uf-r .n .ic{color:var(--a-muted)}
.uf-r .n .fd{display:inline-flex;color:var(--a-accent)}
.uf-bar .w-btn{height:26px;padding:0 8px;font-size:12px;gap:5px;flex:none}
.uf-r .s{font-size:11.5px;color:var(--a-muted)}
.uf-r.sel{background:var(--a-accent-soft)}
.ur{display:flex;align-items:center;gap:14px;min-height:60px;padding:8px 14px}
.ur + .ur{border-top:1px solid var(--a-line)}
.ur-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.ur-main b{font-weight:600;font-size:13.5px;display:flex;align-items:center;gap:8px}
.route{display:flex;align-items:center;flex-wrap:wrap;row-gap:4px;color:var(--a-muted);font-size:12px}
.route .ic{color:var(--a-muted)}
.rn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.rn span{color:var(--a-text2)}
.rn .w-mono{font-size:11.5px}
.ra{margin:0 8px;opacity:.7}
.ur-end{display:flex;align-items:center;gap:12px;color:var(--a-muted);font-size:12px;white-space:nowrap}
.us{padding:14px 16px}
.us-t{font-size:12px;font-weight:600;color:var(--a-muted);margin-bottom:8px}
.us-r{display:flex;align-items:center;justify-content:space-between;min-height:40px}

/* facts */
.d-facts{display:grid;grid-template-columns:repeat(4,1fr);margin-top:72px;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.d-fact{padding:28px 28px 30px;border-left:1px solid var(--line)}
.d-fact:first-child{border-left:0;padding-left:0}
.d-fact h2{display:flex;align-items:center;gap:10px;font-size:15.5px;font-weight:650}
.d-fact h2 .ic{color:var(--accent-text)}
.d-fact p{margin-top:8px;color:var(--fg-2);font-size:14.5px;line-height:1.55}

/* sections */
.d-sec{padding-top:128px}
.d-eb{font-size:13px;font-weight:600;letter-spacing:.09em;text-transform:uppercase;color:var(--accent-text)}
.d-h2{font-size:46px;line-height:1.08;letter-spacing:-.03em;font-weight:700;margin-top:14px;max-width:900px;text-wrap:balance}
.d-sub{font-size:18px;color:var(--fg-2);line-height:1.55;max-width:640px;margin-top:18px;text-wrap:balance}
.d-ctr{text-align:center}
.d-ctr .d-h2,.d-ctr .d-sub{margin-left:auto;margin-right:auto}

/* features */
.d-bento{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-top:52px}
.d-ft{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:28px;display:flex;flex-direction:column;gap:10px;text-align:left;transition:border-color .2s;min-width:0}
.d-ft:hover{border-color:var(--line-strong)}
.d-ft.s2{grid-column:span 2}
.d-ft h3{font-size:19px;font-weight:650;letter-spacing:-.01em;display:flex;gap:10px;align-items:center}
.d-ft h3 .ic{color:var(--accent-text)}
.d-ft p{color:var(--fg-2);font-size:15px;line-height:1.55;max-width:560px}
.d-vis{margin-top:auto;padding-top:20px}
.d-code{background:var(--t-bg);color:var(--t-fg);border:1px solid var(--a-line2);border-radius:10px;padding:14px 16px;font-family:var(--ds-mono);font-size:12.5px;line-height:1.7;white-space:pre;overflow:hidden;text-align:left}
.d-tags{display:flex;flex-wrap:wrap;gap:8px}
.d-tag{display:inline-flex;align-items:center;height:28px;padding:0 11px;border-radius:999px;border:1px solid var(--line-strong);font-size:13px;color:var(--fg-2);white-space:nowrap}

/* iPhone */
.d-split{display:grid;grid-template-columns:5fr 7fr;gap:64px;align-items:center}
.d-split.rev{grid-template-columns:7fr 5fr}
.d-split .d-h2{font-size:42px}
.d-phones{display:flex;justify-content:center;gap:28px;align-items:flex-start}
.ph{width:290px;height:620px;border-radius:52px;padding:10px;background:var(--i-kbd);box-shadow:0 0 0 1px var(--line-strong),var(--sh-raised);flex:none}
.ph:nth-child(2){margin-top:56px}
.ph-s{position:relative;height:100%;border-radius:42px;overflow:hidden;background:var(--i-bg);color:var(--i-text);font-family:var(--ds-sans);display:flex;flex-direction:column}
.ph-sb{height:44px;display:flex;align-items:center;justify-content:space-between;padding:6px 28px 0 34px;font-size:14px;font-weight:600;flex:none}
.ph-sb .ic{display:flex;gap:5px;align-items:center}
.ph-isl{position:absolute;top:10px;left:50%;transform:translateX(-50%);width:92px;height:26px;border-radius:14px;background:var(--i-bg);box-shadow:0 0 0 1px var(--i-kbd)}
.ph-glass{display:inline-flex;align-items:center;gap:18px;height:34px;padding:0 13px;border-radius:17px;background:var(--i-glass)}
.ph-top{display:flex;justify-content:flex-end;padding:4px 14px 0}
.ph-h{font-size:24px;font-weight:700;padding:8px 14px 0}
.ph-g{font-size:11.5px;color:var(--i-sub);padding:12px 26px 5px;font-weight:500;line-height:1.3}
.ph-card{margin:0 12px;border-radius:16px;background:var(--i-card);overflow:hidden}
.ph-row{padding:8px 13px;position:relative}
.ph-row + .ph-row:before{content:"";position:absolute;left:13px;right:13px;top:0;height:1px;background:var(--i-sep)}
.ph-row b{display:block;font-size:12.5px;font-weight:500;line-height:1.35}
.ph-row span{display:block;font-family:var(--ds-mono);font-size:9.5px;line-height:1.4;color:var(--i-sub)}
.ph-search{position:absolute;left:14px;right:14px;bottom:22px;height:34px;border-radius:17px;background:var(--i-glass);display:flex;align-items:center;gap:8px;padding:0 13px;font-size:13px;color:var(--i-sub)}
.ph-tbar{display:flex;align-items:center;justify-content:space-between;padding:4px 12px 0}
.ph-circ{width:34px;height:34px;border-radius:50%;background:var(--i-glass);display:grid;place-items:center}
.ph-tab{margin:10px 12px 6px;display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 8px;border-radius:7px;background:var(--i-glass);font-size:11.5px;align-self:flex-start}
.ph-tab i{width:5px;height:5px;border-radius:50%;background:var(--t-green)}
.ph-term{flex:1;font-family:var(--ds-mono);font-size:8.6px;line-height:12.5px;padding:0 6px;white-space:pre;overflow:hidden;color:var(--t-fg)}
.ph-term .t-g{color:var(--t-green)}
.ph-keys{display:flex;gap:4px;padding:6px 6px;background:var(--i-keybar);flex:none}
.ph-keys span{flex:1;height:22px;border-radius:6px;background:var(--i-kbd);display:grid;place-items:center;font-size:9.5px}
.ph-kb{background:var(--i-keybar);padding:6px 3px 26px;display:flex;flex-direction:column;gap:7px;flex:none}
.ph-kr{display:flex;gap:4px;justify-content:center}
.ph-kr span{width:22px;height:30px;border-radius:5px;background:var(--i-key);display:grid;place-items:center;font-size:12px}
.ph-kr span.w2{width:34px;background:var(--i-kbd)}
.ph-kr span.sp{width:132px}

/* teams */
.d-tg{display:grid;grid-template-columns:1fr 1fr;gap:64px;align-items:end}
.d-steps{display:flex;flex-direction:column}
.d-st{display:grid;grid-template-columns:40px 1fr;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.d-st:last-child{border-bottom:1px solid var(--line)}
.d-st i{font-style:normal;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-text);font-weight:700;font-size:13px;font-family:var(--ds-mono)}
.d-st b{display:block;font-weight:600;font-size:15.5px}
.d-st span{display:block;color:var(--fg-2);font-size:14.5px;line-height:1.5;margin-top:3px}
.d-team-ui{margin-top:48px}
.tv{padding:28px 32px 24px}
.tv-h{display:flex;align-items:center;gap:10px}
.tv-h .tv-t{font-size:20px;font-weight:650;letter-spacing:-.2px;margin:0}
.tv-h .sp{flex:1}
.tv-sub{display:flex;align-items:center;gap:10px;margin:8px 0 20px;font-size:12.5px;color:var(--a-muted)}
.tv-sub .w-mono{color:var(--a-text2);font-size:12px}
.tv-sub .bar{width:1px;height:14px;background:var(--a-line2)}
.mx-wrap{margin-top:18px;border:1px solid var(--a-line);border-radius:8px;overflow:hidden}
.mx{border-collapse:separate;border-spacing:0;font-size:12.5px;width:100%}
.mx th,.mx td{padding:6px 10px;border-bottom:1px solid var(--a-line);text-align:left;font-weight:500;white-space:nowrap}
.mx tr:last-child th,.mx tr:last-child td{border-bottom:0}
.mx thead th{color:var(--a-text2);height:40px}
.mx .mm{display:flex;align-items:center;gap:8px}
.av{width:20px;height:20px;border-radius:50%;display:grid;place-items:center;font-size:8.5px;font-weight:700}
.av.v{background:color-mix(in srgb,var(--t-cyan) 22%,transparent);color:var(--t-cyan)}
.av.ak{background:color-mix(in srgb,var(--t-green) 22%,transparent);color:var(--t-green)}
.av.mp{background:color-mix(in srgb,var(--t-magenta) 22%,transparent);color:var(--t-magenta)}
.av.os{background:color-mix(in srgb,var(--t-blue) 22%,transparent);color:var(--t-blue)}
.mx .sec th,.mx .sec td{background:var(--a-side);color:var(--a-muted);font-size:12px;font-weight:600;padding-top:8px;padding-bottom:8px}
.mx .rec b{display:block;font-weight:500}
.mx .rec th span{display:block;font-family:var(--ds-mono);font-size:11.5px;color:var(--a-muted)}
.lv{display:inline-flex;align-items:center;justify-content:space-between;gap:6px;height:24px;min-width:92px;padding:0 8px;border-radius:6px;font-size:12px;font-weight:550}
.lv .ic{opacity:.8}
.lv.edit{color:var(--a-accent);background:var(--a-accent-soft)}
.lv.view{color:var(--a-text2);background:var(--a-hover)}
.lv.secret{color:var(--a-warn);background:var(--a-warn-soft)}
.lv.none{color:var(--a-muted)}
.d-note{margin-top:20px;display:flex;gap:10px;color:var(--fg-2);font-size:14.5px;line-height:1.5}
.d-note .ic{color:var(--success);flex:none;margin-top:1px}

/* security */
.d-risks{display:grid;grid-template-columns:1fr 1fr;column-gap:64px;margin-top:52px;border-top:1px solid var(--line)}
.d-risk{display:grid;grid-template-columns:40px 1fr;gap:16px;padding:26px 0;border-bottom:1px solid var(--line)}
.d-ric{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);color:var(--accent-text)}
.d-risk b{display:block;font-weight:650;font-size:16px}
.d-risk div > span{display:block;margin-top:6px;color:var(--fg-2);font-size:15px;line-height:1.55}
.d-built{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:32px;font-size:14px;color:var(--fg-3)}
.d-built .d-tag{font-family:var(--ds-mono);font-size:12px}
.d-lp .d-pill{color:var(--fg-2)}
.d-lp .d-pill:hover{color:var(--fg)}
.d-lp .d-lnk{color:var(--accent-text)}
.d-lnk{display:inline-flex;align-items:center;gap:6px;color:var(--accent-text);font-weight:600;font-size:15px;min-height:44px}
.d-lnk:hover{text-decoration:underline;text-underline-offset:3px}
.d-built .d-lnk{margin-left:auto}

/* agent dialogs, as Detour draws them */
.md{background:var(--a-raised);border-radius:14px;box-shadow:var(--a-shadow);color:var(--a-text);font-size:13px;line-height:1.45;text-align:left;max-width:min(500px,100%)}
.d-split > *,.d-tg > *{min-width:0}
.md + .md{margin-top:20px;margin-left:56px}
.md-h{display:flex;align-items:center;gap:10px;padding:16px 14px 4px 20px}
.md-h .md-t{flex:1;margin:0;font-size:15px;font-weight:650}
.md-h .ic{color:var(--a-muted)}
.md-b{padding:12px 20px 4px}
.md-reason{margin-bottom:14px;padding:10px 12px;border-radius:8px;background:var(--a-input);color:var(--a-text2)}
.md-g{display:flex;flex-direction:column;gap:8px;margin-bottom:16px}
.md-g:last-child{margin-bottom:0}
.md-l{font-size:12px;font-weight:600;color:var(--a-muted);margin-bottom:2px}
.md-sc{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px}
.md-pre{margin:8px 0 14px;padding:10px 12px;border-radius:8px;border:1px solid var(--a-line);background:var(--a-input);color:var(--a-text2);font-family:var(--ds-mono);font-size:12px}
.md-f{display:flex;justify-content:flex-end;gap:8px;padding:18px 20px}
.d-chk{margin:28px 0 0;padding:0;display:flex;flex-direction:column;gap:12px}
.d-chk li{display:flex;gap:10px;font-size:15.5px;color:var(--fg-2);line-height:1.5;list-style:none}
.d-chk .ic{color:var(--success);flex:none;margin-top:3px}

/* download */
.d-dl{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:52px;text-align:left}
.d-dt{background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);padding:28px 24px 24px;display:flex;flex-direction:column;align-items:flex-start;gap:6px;transition:border-color .2s,transform .2s}
.d-dt:hover{border-color:var(--line-strong);transform:translateY(-2px)}
.d-dic{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--surface-2);color:var(--fg);margin-bottom:14px}
.d-dt b{font-size:18px;font-weight:650}
.d-dt > span:not(.d-dic):not(.d-fmt):not(.d-btn){color:var(--fg-3);font-size:14px}
.d-dt .d-btn{margin-top:20px;width:100%}
.d-fmt{display:grid;grid-template-columns:1fr 1fr 1.35fr;gap:6px;width:100%;margin-top:20px}
.d-dt .d-fmt .d-btn{margin-top:0;width:auto;padding:0 6px}
.d-dlf{margin-top:24px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:4px 28px;font-size:14.5px;color:var(--fg-3)}
.d-dlf .d-m{color:var(--fg-2);font-size:13.5px}

/* footer */
.d-foot{margin-top:128px;border-top:1px solid var(--line);padding:48px 0 56px}
.d-fi{display:grid;grid-template-columns:2fr 1fr 1fr 1fr;gap:32px}
.d-foot h2{font-size:13px;font-weight:600;color:var(--fg);margin:0 0 8px}
.d-foot ul{display:flex;flex-direction:column;list-style:none;padding:0;margin:0}
.d-foot li a{display:inline-flex;align-items:center;min-height:36px;color:var(--fg-3);font-size:14px;transition:color .15s}
.d-foot li a:hover{color:var(--fg)}
.d-fs{margin-top:10px;color:var(--fg-3);font-size:13.5px;line-height:1.6;max-width:300px}

@media (max-width:980px){
  .d-wrap{padding-left:20px;padding-right:20px}
  .d-links,.d-nav-end .gh{display:none}
  .d-hero{padding-top:56px}
  .d-h1{font-size:44px;letter-spacing:-.035em}
  .d-h1 br{display:none}
  .d-lead{font-size:17px}
  .d-stage{margin-top:44px}
  .w-body{grid-template-columns:1fr;height:420px}
  .w-side{display:none}
  .w-term{font-size:10.5px;line-height:14px}
  .d-facts{grid-template-columns:1fr 1fr;margin-top:48px}
  .d-fact,.d-fact:first-child{padding:22px 0;border-left:0}
  .d-fact:nth-child(odd){padding-right:16px}
  .d-fact:nth-child(n+3){border-top:1px solid var(--line)}
  .d-sec{padding-top:88px}
  .d-h2,.d-split .d-h2{font-size:34px}
  .d-sub{font-size:16.5px}
  .d-bento{grid-template-columns:1fr;gap:12px;margin-top:36px}
  .d-ft.s2{grid-column:auto}
  .d-ft{padding:22px}
  .d-split,.d-split.rev,.d-tg{grid-template-columns:1fr;gap:40px}
  .d-split.rev > :first-child{order:2}
  .tv{padding:20px 16px}
  .mx-wrap{overflow-x:auto}
  .d-risks{grid-template-columns:1fr;margin-top:36px}
  .d-built .d-lnk{margin-left:0}
  .md + .md{margin-left:0}
  .d-dl{grid-template-columns:1fr 1fr;gap:12px;margin-top:36px}
  .d-fi{grid-template-columns:1fr 1fr}
  .d-fi > :first-child{grid-column:1 / -1}
  .d-foot{margin-top:88px}
}
@media (max-width:560px){
  .d-wrap{padding-left:16px;padding-right:16px}
  .d-hero:before{top:160px;width:640px;height:640px}
  .d-stage .w{box-shadow:var(--a-shadow)}
  .rn{white-space:normal;flex-wrap:wrap}
  .ur-end{display:none}
  .d-code,.ui-term{overflow-x:auto}
  .mx th:nth-child(2),.mx td:nth-child(2){display:none}
  .mx thead .mm{font-size:0;gap:0}
  .mx .rec th span{display:none}
  .lv{min-width:0}
  .lv .ic{display:none}
  .md-h{padding:14px 12px 4px 16px}
  .md-b{padding:12px 16px 4px}
  .md-f{padding:14px 16px}
  .md .w-seg{flex-wrap:wrap}
  .d-h1{font-size:38px}
  .d-cta .d-btn{width:100%}
  .w-body{height:360px}
  .w-tabs .w-tab:nth-child(n+3){display:none}
  .d-facts{grid-template-columns:1fr}
  .d-fact:nth-child(odd){padding-right:0}
  .d-fact + .d-fact{border-top:1px solid var(--line)}
  .d-h2,.d-split .d-h2{font-size:30px}
  .d-code,.ui-term{font-size:10.5px}
  .uf{grid-template-columns:1fr}
  .uf-div,.uf > :first-child{display:none}
  .ph:nth-child(2){display:none}
  .tv-h .w-btn.sec,.tv-sub .bar,.tv-sub .w-mono{display:none}
  .md-sc{grid-template-columns:1fr}
  .d-dl{grid-template-columns:1fr}
}
