/* The Odin demo: a working copy of the Odin app, with invented data, that a
   visitor can click through before signing up. It copies the app's own look
   from src/app/globals.css (same colours, glass panels, grid backdrop, Space
   Grotesk headings, sidebar, tiles, page view), so what people try here is
   what they get. It opens in the dark theme, Odin's default, and the sun
   and moon button switches it to light, like the button in Odin. Every class is prefixed od- so nothing leaks into the page
   around it. */

@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
}

.try { border-top: 1px solid var(--line); padding: 64px 0; }
.try h2 { font: 500 clamp(28px, 4vw, 40px)/1.12 var(--serif); letter-spacing: -.01em; margin: 0 0 12px; }
.try > p { color: var(--text-80); margin: 0 0 24px; max-width: 40em; }

/* Colours: exactly the app's light and dark themes. --od-brand is the
   company colour from Settings (Brinvik ivory until one is picked), and the
   demo lets a visitor change it. As in the app (src/lib/brand.ts), fills use
   the colour as picked, text on it is white or ink (--od-on-brand), and text,
   icons and lines drawn in it use an ink version that reads on each theme. */
.od {
  --od-brand: #f4efe6; --od-on-brand: #0b0e18;
  --od-brand-ink-light: #79756d; --od-brand-ink-dark: #f4efe6;
  --od-accent: var(--od-brand);
  --od-accent-ink: var(--od-brand-ink-light);
  --od-accent-2: #0891b2;
  --od-bg: #f5f6fb; --od-bg-2: #eceef6;
  --od-panel: rgba(255, 255, 255, .72); --od-panel-2: rgba(255, 255, 255, .92);
  --od-line: rgba(12, 16, 40, .09); --od-line-2: rgba(12, 16, 40, .18);
  --od-text: #0b0e18; --od-muted: #5b6275;
  --od-ok: #0f9f6e; --od-warn: #b76e00; --od-danger: #d92d52;
  --od-ease: cubic-bezier(.2, .8, .2, 1);
  --od-glow: 0 0 0 1px color-mix(in oklab, var(--od-accent) 45%, transparent), 0 10px 40px -10px color-mix(in oklab, var(--od-accent) 55%, transparent);
  --od-display: 'Space Grotesk', var(--sans);
  color-scheme: light;
  position: relative; isolation: isolate;
  font: 14px/1.55 var(--sans); color: var(--od-text); background: var(--od-bg);
  border-radius: 10px; border: 1px solid rgba(20, 17, 13, .24); overflow: hidden; overflow: clip; /* clip, not hidden, so the tour bar can stick to the bottom of the screen */
  box-shadow: 0 30px 80px -30px rgba(20, 17, 13, .45);
  -webkit-font-smoothing: antialiased;
}
.od[data-theme=dark] {
  --od-accent-ink: var(--od-brand-ink-dark);
  --od-accent-2: #22d3ee;
  --od-bg: #06070b; --od-bg-2: #0b0d14;
  --od-panel: rgba(255, 255, 255, .035); --od-panel-2: rgba(255, 255, 255, .06);
  --od-line: rgba(255, 255, 255, .08); --od-line-2: rgba(255, 255, 255, .16);
  --od-text: #eef0f7; --od-muted: #8b91a4;
  --od-ok: #3ddc97; --od-warn: #ffb547; --od-danger: #ff5c7a;
  color-scheme: dark;
}
.od, .od-side, .od-bar, .od-hints, .od-panel { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.od *, .od *::before, .od *::after { box-sizing: border-box; }
:where(.od) button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; margin: 0; text-align: inherit; }
:where(.od) h1, :where(.od) h2, :where(.od) h3, :where(.od) p, :where(.od) dl, :where(.od) dd, :where(.od) ul, :where(.od) ol { margin: 0; }
.od :focus-visible { outline: 2px solid var(--od-accent-ink); outline-offset: 2px; border-radius: 6px; }
.od label { font: inherit; color: inherit; }

/* Window bar and hints: the only parts that are not the app. */
.od-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--od-bg-2); border-bottom: 1px solid var(--od-line); }
.od-dots { display: flex; gap: 6px; }
.od-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--od-line-2); }
.od-url { flex: 1; font: 12px/1 ui-monospace, 'Cascadia Code', Menlo, monospace; color: var(--od-muted); text-align: center; }
.od-sample { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--od-warn); border: 1px solid color-mix(in srgb, var(--od-warn) 40%, transparent); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.od-hints { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--od-line); background: var(--od-bg-2); font-size: 13px; color: var(--od-muted); }
.od-hint { border: 1px solid color-mix(in srgb, var(--od-accent-ink) 45%, transparent); background: color-mix(in srgb, var(--od-accent) 14%, transparent); color: var(--od-text); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.od-hint:hover { background: color-mix(in srgb, var(--od-accent) 26%, transparent); border-color: var(--od-accent-ink); }

/* Shell: sidebar and content, over the app's aurora and faint grid. */
.od-body { position: relative; display: grid; grid-template-columns: 232px minmax(0, 1fr); height: 680px; isolation: isolate; }
.od-body::before, .od-body::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.od-body::before {
  background:
    radial-gradient(420px 420px at 18% -12%, color-mix(in oklab, var(--od-accent) 24%, transparent), transparent 70%),
    radial-gradient(380px 380px at 100% 110%, color-mix(in oklab, var(--od-accent-2) 14%, transparent), transparent 70%);
}
.od-body::after {
  background-image: linear-gradient(var(--od-line) 1px, transparent 1px), linear-gradient(90deg, var(--od-line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .55;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(80% 60% at 50% 0%, #000 20%, transparent 75%);
}

.od-side {
  display: flex; flex-direction: column; gap: 16px; min-height: 0; overflow-y: auto; scrollbar-width: none;
  padding: 16px 12px; border-right: 1px solid var(--od-line);
  background: color-mix(in oklab, var(--od-bg) 70%, transparent);
}
.od-brand { display: flex; align-items: center; gap: 11px; padding: 4px 6px; }
.od-mark { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--od-on-brand); font: 600 17px var(--od-display); background: conic-gradient(from 210deg, var(--od-accent), var(--od-accent-2), var(--od-accent)); border: 1px solid var(--od-line-2); }
.od-brand strong { display: block; font: 600 15px/1.25 var(--od-display); }
.od-brand small { display: flex; align-items: center; gap: 6px; color: var(--od-muted); font-size: 12px; }
.od-live { width: 7px; height: 7px; border-radius: 50%; background: var(--od-ok); animation: od-pulse 2.4s ease-out infinite; }
@keyframes od-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--od-ok) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 7px transparent; } }

.od .od-search { position: relative; display: flex; align-items: center; color: var(--od-muted); }
.od-search svg { position: absolute; left: 11px; pointer-events: none; }
.od .od-search input { width: 100%; margin: 0; min-height: 0; font: 13.5px var(--sans); color: var(--od-text); padding: 8px 10px 8px 34px; border-radius: 10px; border: 1px solid var(--od-line-2); background: color-mix(in oklab, var(--od-bg) 60%, transparent); }
.od-search input::placeholder { color: var(--od-muted); }
.od .od-search input:focus { outline: none; border-color: var(--od-accent-ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--od-accent-ink) 22%, transparent); }

.od-nav { display: grid; gap: 1px; }
.od-nav button {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border-radius: 10px;
  color: var(--od-muted); font-weight: 500; font-size: 13.5px;
  transition: color .2s var(--od-ease), background .2s var(--od-ease), transform .2s var(--od-ease);
}
.od-nav button:hover { color: var(--od-text); background: var(--od-panel); transform: translateX(2px); }
.od-nav button[aria-current=page] { color: var(--od-text); background: linear-gradient(90deg, color-mix(in oklab, var(--od-accent) 22%, transparent), transparent); }
.od-nav button[aria-current=page]::before { content: ''; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0; background: var(--od-accent-ink); box-shadow: 0 0 14px var(--od-accent-ink); }
.od-nav svg { flex: none; }
.od-count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; text-align: center; background: var(--od-accent); color: var(--od-on-brand); }

/* Menu groups that fold open and closed, as in the app (Fold.tsx). */
.od-nav { gap: 10px; }
.od-nav-group, .od-nav-items { display: grid; gap: 1px; }
.od-nav-items[hidden] { display: none; }
.od .od-nav .od-nav-label {
  display: flex; align-items: center; justify-content: space-between; width: 100%; margin: 0 0 2px; padding: 4px 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--od-muted); opacity: .8;
}
.od .od-nav .od-nav-label:hover { opacity: 1; color: var(--od-text); background: none; transform: none; }
.od-nav-label svg { transition: transform .2s var(--od-ease); }
.od-nav-group:not(.open) .od-nav-label svg { transform: rotate(-90deg); }

/* The person at the bottom, with the account menu behind the name. */
.od-me { margin-top: auto; padding: 10px 0 0; border-top: 1px solid var(--od-line); }
.od-account { position: relative; width: 100%; }
.od-me-button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 12px; border: 1px solid transparent; transition: background .2s var(--od-ease), border-color .2s var(--od-ease); }
.od-me-button:hover, .od-me-button[aria-expanded=true], .od-me-button.active { background: var(--od-panel); border-color: var(--od-line); }
.od-me-button > svg { color: var(--od-muted); flex: none; }
.od-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; background: color-mix(in oklab, var(--od-accent) 30%, var(--od-panel-2)); border: 1px solid var(--od-line-2); }
.od-me-text { display: grid; line-height: 1.25; min-width: 0; flex: 1; }
.od-me-text strong { font-size: 13.5px; }
.od-me-text small { color: var(--od-muted); font-size: 12px; }
.od-account-menu {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); z-index: 4; display: grid; gap: 2px; padding: 8px;
  border-radius: 14px; border: 1px solid var(--od-line-2); background: linear-gradient(var(--od-panel-2), var(--od-panel-2)), var(--od-bg);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .55); animation: od-rise .18s var(--od-ease) both;
}
.od-account-menu[hidden] { display: none; }
.od-account-who { margin: 2px 8px 6px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.od-menu-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; border-radius: 10px; color: var(--od-muted); font-weight: 500; font-size: 13.5px; }
.od-menu-item:hover, .od-menu-item[aria-current=page] { color: var(--od-text); background: var(--od-panel); }
.od-account-row { display: flex; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--od-line); }
.od-account-row .od-btn { flex: 1; }
.od-small-btn { padding: 6px 8px; font-size: 12.5px; gap: 6px; white-space: nowrap; }
.od-account-note:empty { display: none; }
.od-account-note { margin: 6px 8px 0 !important; }

.od-main { min-height: 0; overflow-y: auto; padding: 30px clamp(16px, 3.4vw, 40px) 44px; }

/* Type and headings, as in the app. */
.od-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.od-heading-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.od-eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; font-weight: 600; color: var(--od-accent-ink); margin-bottom: 6px !important; }
.od h1.od-title { font: 600 clamp(22px, 2.6vw, 28px)/1.15 var(--od-display); letter-spacing: -.02em; margin-bottom: 6px; }
.od-lead { color: var(--od-muted); max-width: 60ch; }
.od-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.od h2.od-h2 { font: 600 16px var(--od-display); letter-spacing: -.01em; }
.od h3.od-h3 { font: 600 14px var(--od-display); letter-spacing: -.01em; }
.od-muted { color: var(--od-muted); }
.od-small { font-size: 12.5px; }
.od-link { color: var(--od-text); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; font-weight: 500; }

/* Surfaces */
.od-panel { position: relative; background: var(--od-panel); border: 1px solid var(--od-line); border-radius: 14px; -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%); }
.od-pad { padding: 16px 18px; }
.od-stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.od-stat { padding: 16px 18px; }
.od-stat b { display: block; font: 600 26px/1.1 var(--od-display); letter-spacing: -.03em; }
.od-stat span { color: var(--od-muted); font-size: 12.5px; }

.od-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.od-tile {
  display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 16px 18px; overflow: hidden;
  transition: transform .25s var(--od-ease), border-color .25s var(--od-ease), box-shadow .25s var(--od-ease), background .25s var(--od-ease);
}
.od-tile:hover { transform: translateY(-3px); border-color: var(--od-line-2); box-shadow: var(--od-glow); background: var(--od-panel-2); }
.od-tile-top { display: flex; align-items: center; gap: 10px; }
.od-tile-icon { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--od-accent-ink); background: color-mix(in oklab, var(--od-accent-ink) 12%, transparent); border: 1px solid color-mix(in oklab, var(--od-accent-ink) 30%, transparent); }
.od-tile.agent .od-tile-icon { color: var(--od-accent-2); background: color-mix(in oklab, var(--od-accent-2) 12%, transparent); border-color: color-mix(in oklab, var(--od-accent-2) 30%, transparent); }
.od-tile-foot { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--od-muted); font-size: 12.5px; }
.od-dot-sep { opacity: .7; }

.od-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.od-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; padding: 13px 16px; transition: border-color .2s var(--od-ease), background .2s var(--od-ease); }
button.od-row:hover { border-color: var(--od-line-2); background: var(--od-panel-2); }
.od-row > span:first-child { display: grid; gap: 2px; min-width: 0; }
.od-row strong { font-weight: 600; }
.od-row small { color: var(--od-muted); font-size: 12.5px; }

/* Badges */
.od-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 999px; white-space: nowrap; color: var(--od-muted); background: var(--od-panel-2); border: 1px solid var(--od-line); }
.od-badge.accent { color: var(--od-accent-ink); border-color: color-mix(in oklab, var(--od-accent-ink) 40%, transparent); background: color-mix(in oklab, var(--od-accent-ink) 10%, transparent); }
.od-badge.agent { color: var(--od-accent-2); border-color: color-mix(in oklab, var(--od-accent-2) 40%, transparent); background: color-mix(in oklab, var(--od-accent-2) 10%, transparent); }
.od-badge.ok { color: var(--od-ok); border-color: color-mix(in oklab, var(--od-ok) 40%, transparent); }
.od-badge.warn { color: var(--od-warn); border-color: color-mix(in oklab, var(--od-warn) 40%, transparent); }
.od-badge.danger { color: var(--od-danger); border-color: color-mix(in oklab, var(--od-danger) 60%, transparent); background: color-mix(in oklab, var(--od-danger) 8%, transparent); }
.od-badge.busy { color: var(--od-text); background: linear-gradient(100deg, var(--od-panel-2) 30%, color-mix(in oklab, var(--od-accent) 35%, transparent) 50%, var(--od-panel-2) 70%); background-size: 250% 100%; animation: od-shimmer 1.8s linear infinite; }
@keyframes od-shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

/* Buttons */
.od-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 15px; border-radius: 10px;
  font-weight: 600; font-size: 13.5px; color: var(--od-on-brand);
  border: 1px solid color-mix(in oklab, var(--od-accent-ink) 80%, transparent);
  background: linear-gradient(135deg, var(--od-accent), color-mix(in oklab, var(--od-accent) 60%, var(--od-accent-2)));
  background-size: 160% 160%; background-position: 0% 50%;
  box-shadow: 0 8px 24px -12px var(--od-accent), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .15s var(--od-ease), box-shadow .25s var(--od-ease), background-position .5s var(--od-ease);
}
.od-btn:hover { background-position: 100% 50%; box-shadow: 0 12px 32px -10px var(--od-accent), inset 0 1px 0 rgba(255, 255, 255, .3); }
.od-btn:active { transform: translateY(1px) scale(.99); }
.od-btn.ghost { color: var(--od-text); background: var(--od-panel-2); border-color: var(--od-line-2); box-shadow: none; }
.od-btn.ghost:hover { border-color: color-mix(in oklab, var(--od-accent-ink) 60%, transparent); box-shadow: var(--od-glow); }
.od-btn:disabled { opacity: .55; cursor: default; }
.od-note { margin-top: 8px !important; }
.od-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
mark.od-hit { background: color-mix(in oklab, var(--od-accent-ink) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; }

/* Notices */
.od-notice { padding: 11px 15px; border-radius: 12px; border: 1px solid var(--od-line-2); background: var(--od-panel-2); margin: 0 0 16px; font-size: 13.5px; }
.od-notice.warn { border-color: color-mix(in oklab, var(--od-warn) 50%, transparent); background: color-mix(in oklab, var(--od-warn) 8%, transparent); }
.od-notice.ok { border-color: color-mix(in oklab, var(--od-ok) 50%, transparent); background: color-mix(in oklab, var(--od-ok) 8%, transparent); }
.od-notice .od-btn { margin-left: 8px; padding: 5px 11px; font-size: 12.5px; }

/* A page: facts grid, sections with Must know, change log. */
.od-meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px 16px; padding: 16px 18px; margin: 0 0 22px; }
.od-meta dt { font-size: 10.5px; color: var(--od-muted); text-transform: uppercase; letter-spacing: .1em; }
.od-meta dd { margin: 2px 0 0; font-weight: 500; }
.od-doc { display: grid; gap: 10px; max-width: 720px; }
.od-sec { padding: 16px 20px; }
.od-sec.must { border-color: color-mix(in oklab, var(--od-accent-ink) 45%, transparent); box-shadow: inset 3px 0 0 var(--od-accent-ink); }
.od-sec.new { border-color: color-mix(in oklab, var(--od-ok) 55%, transparent); box-shadow: inset 3px 0 0 var(--od-ok); }
.od-sec h2 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font: 600 15px var(--od-display); letter-spacing: -.01em; margin-bottom: 6px; }
.od-sec p { white-space: pre-wrap; }
.od-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 1px solid var(--od-line-2); display: grid; gap: 12px; }
.od-timeline li { position: relative; font-size: 13.5px; }
.od-timeline li::before { content: ''; position: absolute; left: -23px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--od-accent-ink); box-shadow: 0 0 10px var(--od-accent-ink); }
.od-timeline .od-when { display: block; font: 12px ui-monospace, 'Cascadia Code', Menlo, monospace; color: var(--od-muted); }

/* Ask Odin */
.od-chat { display: grid; gap: 12px; max-width: 720px; }
.od-bubble { padding: 12px 16px; border-radius: 16px; max-width: 92%; font-size: 14px; }
.od-bubble.me { justify-self: end; background: color-mix(in oklab, var(--od-accent) 18%, var(--od-panel)); border: 1px solid color-mix(in oklab, var(--od-accent-ink) 35%, transparent); }
.od-bubble.odin { justify-self: start; background: var(--od-panel); border: 1px solid var(--od-line-2); }
.od-bubble p + * { margin-top: 8px; }
.od-sources { display: flex; gap: 6px; flex-wrap: wrap; }
.od-sources button { font-size: 12px; border: 1px solid var(--od-line-2); background: var(--od-panel-2); border-radius: 999px; padding: 3px 10px; }
.od-sources button:hover { border-color: var(--od-accent-ink); }
.od-typing { display: inline-flex; gap: 4px; }
.od-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--od-muted); animation: od-blink 1.2s infinite both; }
.od-typing span:nth-child(2) { animation-delay: .2s; }
.od-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes od-blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.od-examples { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.od-examples button { font-size: 12.5px; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--od-line-2); background: var(--od-panel-2); }
.od-examples button:hover { border-color: color-mix(in oklab, var(--od-accent-ink) 60%, transparent); box-shadow: var(--od-glow); }
.od-chat-form { display: flex; gap: 10px; align-items: stretch; max-width: 720px; margin-top: 14px; }
.od-new-chat { margin-top: 12px !important; }
.od-ask-intro { max-width: 720px; margin-bottom: 14px; }
.od-ask-intro p + p { margin-top: 6px; }
.od-ask-intro .od-examples { margin: 14px 0 0; }
/* .od prefix: the page's own input styles (site.css) must not reach in here. */
.od .od-field { flex: 1; min-width: 0; font: 14px var(--sans); color: var(--od-text); padding: 10px 13px; border-radius: 10px; border: 1px solid var(--od-line-2); background: color-mix(in oklab, var(--od-bg) 60%, transparent); }
.od .od-field:focus, .od .od-field:focus-visible { outline: none; background: color-mix(in oklab, var(--od-bg) 60%, transparent); border-color: var(--od-accent-ink); box-shadow: 0 0 0 4px color-mix(in oklab, var(--od-accent-ink) 22%, transparent); }

/* Upload */
.od-drop { display: grid; place-items: center; gap: 8px; text-align: center; padding: 28px 18px; border-radius: 12px; border: 1.5px dashed var(--od-line-2); background: color-mix(in oklab, var(--od-bg) 60%, transparent); }
.od-drop strong { font-size: 14.5px; }
.od-files { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 6px; }
.od-progress { height: 6px; border-radius: 99px; background: var(--od-panel-2); overflow: hidden; margin: 12px 0; }
.od-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--od-accent), var(--od-accent-2)); transition: width 1.4s var(--od-ease); }
.od-progress.go span { width: 100%; }
.od-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 13.5px; margin: 4px 0 12px; }
.od-kv dt { color: var(--od-muted); }
.od-diff { white-space: pre-wrap; overflow-wrap: anywhere; padding: 14px 16px; border-radius: 10px; background: var(--od-panel); border: 1px solid var(--od-line); font-size: 14px; }
.od-diff ins { text-decoration: none; color: var(--od-ok); background: color-mix(in oklab, var(--od-ok) 14%, transparent); border-radius: 3px; }
.od-diff del { color: var(--od-danger); background: color-mix(in oklab, var(--od-danger) 12%, transparent); border-radius: 3px; }
.od-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--od-muted); margin: 8px 0 0; }
.od-legend ins { text-decoration: none; color: var(--od-ok); }
.od-legend del { color: var(--od-danger); }
.od-legend + p { margin-top: 10px; }
/* A transformed ancestor (the reveal animation) would trap the fixed layer inside it */
html.od-locked .reveal { transform: none !important; opacity: 1 !important; transition: none !important; }

/* Home: What to write first, as in the app's setup list. */
.od-row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.od-setup { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.od-setup li { border-radius: 10px; border: 1px solid var(--od-line); background: var(--od-panel); }
.od-setup-link { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; font-size: 14px; transition: background .2s var(--od-ease); }
.od-setup-link:hover { background: color-mix(in oklab, var(--od-accent) 10%, var(--od-panel)); }
.od-setup-text { flex: 1; min-width: 0; }
.od-tick { width: 16px; height: 16px; flex: none; border-radius: 5px; border: 1.5px solid var(--od-line-2); }
.od-go { flex: none; color: var(--od-muted); white-space: nowrap; opacity: .7; transition: opacity .2s var(--od-ease), color .2s var(--od-ease); }
.od-setup-link:hover .od-go { opacity: 1; color: var(--od-accent-ink); }
.od-arrow { display: inline-block; transition: transform .2s var(--od-ease); }
.od-setup-link:hover .od-arrow { transform: translateX(3px); }
.od-setup-help { margin-top: 10px !important; }

/* An area: its guide, then its pages grouped by kind. */
.od-guide { margin-bottom: 20px; }
.od-guide p { margin-top: 8px; }
.od-group { margin-bottom: 8px; }
.od-group .od-section-title { margin-top: 18px; }
.od-map-page { gap: 6px; text-align: left; }

/* What to write first: the two ways in, and the interview. */
.od-choices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); max-width: 820px; }
.od-choice { display: grid; gap: 8px; align-content: start; transition: border-color .2s var(--od-ease), transform .2s var(--od-ease); }
.od-choice svg { color: var(--od-accent-ink); }
.od-choice strong { font-size: 16px; }
.od-choice:hover { border-color: color-mix(in oklab, var(--od-accent-ink) 50%, var(--od-line)); transform: translateY(-2px); }
.od-iv-lead { max-width: 720px; margin-bottom: 14px !important; }
.od-iv-chips { margin: 14px 0 0; }
.od-iv-draft { max-width: 720px; margin-top: 14px; }

/* Connect your AI */
.od-address { margin-bottom: 16px; }
.od-address p { margin: 4px 0 10px; }
.od-copy-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.od-code { flex: 1; min-width: 0; overflow-wrap: anywhere; font: 12.5px ui-monospace, 'Cascadia Code', Menlo, monospace; padding: 8px 10px; border-radius: 8px; background: color-mix(in oklab, var(--od-bg) 60%, transparent); border: 1px solid var(--od-line); }
.od-connect-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.od-tool p { margin-top: 6px; }
.od-badge .od-live { width: 6px; height: 6px; }
.od-ai-text { font-size: 13.5px; margin-top: 10px; }

/* Your profile */
.od-narrow { max-width: 560px; margin-bottom: 16px; }
.od-narrow > .od-h2 { margin-bottom: 8px; }
.od-picture { display: flex; align-items: center; gap: 14px; }
.od-avatar-big { width: 56px; height: 56px; font-size: 20px; }
.od-form { display: grid; gap: 10px; }
.od-form label { display: grid; gap: 6px; }
.od-label { font-size: 13px; font-weight: 600; }
.od-form .od-notice { margin: 0; }
.od-form .od-notice[hidden] { display: none; }
.od-levels { display: grid; gap: 8px; margin-top: 10px; }
.od-levels div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }
.od-levels dt { font-weight: 600; }
.od-levels dd { margin: 0; color: var(--od-muted); }

/* Start screen: the demo waits, blurred, behind one card with one button. */
.od-waiting .od-hints, .od-waiting .od-body { filter: blur(3px) saturate(.9); opacity: .55; pointer-events: none; user-select: none; }
.od-hints, .od-body { transition: filter .45s var(--od-ease), opacity .45s var(--od-ease); }
.od-intro { position: absolute; inset: 44px 0 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: color-mix(in oklab, var(--od-bg) 35%, transparent); transition: opacity .4s var(--od-ease); }
.od-intro.od-gone { opacity: 0; pointer-events: none; }
.od-intro-card { max-width: 440px; text-align: center; padding: 30px 30px 28px; border-radius: 18px; background: var(--od-panel-2); border: 1px solid var(--od-line-2); box-shadow: 0 30px 80px -30px rgba(12, 16, 40, .45); animation: od-rise .6s var(--od-ease) both; }
.od[data-theme=dark] .od-intro-card { background: #16171d; }
.od-intro-mark { margin: 0 auto 14px; }
.od h2.od-intro-title { font: 600 clamp(22px, 3vw, 28px)/1.15 var(--od-display); letter-spacing: -.02em; margin: 0 0 10px; }
.od-intro .od-lead { margin: 0 auto 20px; }
.od-intro-cta { padding: 12px 24px; font-size: 15px; }
.od-intro-cta:focus-visible { outline-offset: 3px; }

/* Guided tour: a bar under the demo, never on top of it, and a soft ring
   around the part it explains. The ring is drawn inside the element's own
   box, so it is never cut off by the edge of the scrolling content. */
.od .od-spot { position: relative; z-index: 2; border-radius: 10px; outline: 3px solid color-mix(in oklab, var(--od-accent-ink) 85%, transparent); outline-offset: 5px; animation: od-ring 2.4s var(--od-ease) infinite; }
@keyframes od-ring { 0%, 100% { outline-offset: 5px; outline-color: color-mix(in oklab, var(--od-accent-ink) 85%, transparent); } 50% { outline-offset: 8px; outline-color: color-mix(in oklab, var(--od-accent-ink) 50%, transparent); } }
.od-tip {
  display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 14px 18px;
  border-top: 1px solid color-mix(in oklab, var(--od-accent-ink) 40%, var(--od-line-2)); background: var(--od-bg-2); color: var(--od-text);
  position: sticky; bottom: 0; z-index: 5;
  animation: od-rise .3s var(--od-ease) both;
}
.od-tip-body { flex: 1 1 360px; min-width: 0; }
.od-tip-count { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--od-accent-ink); margin-bottom: 4px !important; }
.od h2.od-tip-title { font: 600 15.5px/1.25 var(--od-display); letter-spacing: -.01em; margin-bottom: 3px; }
.od-tip-text { font-size: 13.5px; color: var(--od-text); max-width: 72ch; }
.od-tip-dots { display: inline-flex; gap: 5px; }
.od-tip-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--od-line-2); transition: width .3s var(--od-ease), background .3s var(--od-ease); }
.od-tip-dots span.on { width: 18px; border-radius: 3px; background: var(--od-accent-ink); }
.od-tip-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.od-tip-actions .od-btn { padding: 7px 13px; font-size: 13px; }
.od-tip-grow { width: 6px; }

/* Full screen: the browser's own, or a layer over the page where there is
   none. The demo fills it and its content gets the room. */
.od-full-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12px; font-weight: 600; color: var(--od-muted); padding: 3px 9px; border-radius: 999px; border: 1px solid var(--od-line-2); transition: color .2s var(--od-ease), border-color .2s var(--od-ease); }
.od-full-btn:hover { color: var(--od-text); border-color: var(--od-accent-ink); }
.od.od-full { position: fixed; inset: 0; z-index: 1000; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; display: flex; flex-direction: column; }
.od.od-full .od-body { flex: 1 1 auto; height: auto; min-height: 0; }
html.od-locked, html.od-locked body { overflow: hidden; }
.od-tip-skip { font-size: 13px; color: var(--od-muted); text-decoration: underline; text-underline-offset: 3px; }
.od-tip-skip:hover { color: var(--od-text); }

.od-fade { animation: od-rise .45s var(--od-ease) both; }
.od-fade > * { animation: od-rise .5s var(--od-ease) both; }
.od-fade > *:nth-child(2) { animation-delay: 40ms; }
.od-fade > *:nth-child(3) { animation-delay: 80ms; }
.od-fade > *:nth-child(n+4) { animation-delay: 120ms; }
@keyframes od-rise { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  .od *, .od *::before, .od *::after { animation: none !important; transition: none !important; }
}

/* Phone and small screens: the sidebar becomes a bar on top, as in the app. */
@media (max-width: 820px) {
  .od-body { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: 720px; }
  .od-side { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--od-line); overflow: visible; }
  .od-brand { padding: 0; }
  .od-brand small { display: none; }
  .od .od-search { order: 2; width: 100%; }
  .od-nav { order: 3; width: 100%; min-width: 0; display: flex; overflow-x: auto; scrollbar-width: none; gap: 2px; }
  .od-nav-group, .od-nav-items, .od-nav-items[hidden] { display: contents; }
  .od .od-nav .od-nav-label { display: none; }
  .od-nav button { flex: none; width: auto; padding: 7px 10px; white-space: nowrap; }
  .od-nav button:hover { transform: none; }
  .od-nav button[aria-current=page]::before { left: 10px; right: 10px; top: auto; bottom: 0; width: auto; height: 2px; border-radius: 2px; }
  .od-me { margin: 0 0 0 auto; padding: 0; border: 0; }
  .od-account { width: auto; }
  .od-me-button { padding: 2px; }
  .od-me-button > svg { display: none; }
  .od-me-text { display: none; }
  .od-account-menu { left: auto; right: 0; bottom: auto; top: calc(100% + 8px); width: min(280px, calc(100vw - 48px)); }
  .od-levels div { grid-template-columns: 110px 1fr; }
  .od-main { padding: 20px 16px 36px; }
  .od-url { display: none; }
  .od-bubble { max-width: 100%; }
  .od-intro { inset: 38px 0 0; }
  .od-intro-card { padding: 24px 20px; }
  .od-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
