/* ════════════════════════════════════════════════════════════════
   OrivenAI workspace design layer (ow-*): one set of tokens and the shared
   components for the surfaces redesigned in the 2026-11 workspace pass —
   landing workspace section, pricing cards, assistant profiles, Marketing
   Plan roadmap and section videos. Loaded by index.html (public pages and
   their prerendered copies) and app.html.

   The brand palette is unchanged: the accent is the surface's own green
   (public site: --volt #EAFD13, app: --green #B7FF2A). Everything else is
   derived from the existing dark surfaces.
   docs/design/2026-11-ad-workspace-research.md explains the choices.
   ════════════════════════════════════════════════════════════════ */
:root {
  /* Spacing: one 4px-based scale */
  --ow-s1: 4px; --ow-s2: 8px; --ow-s3: 12px; --ow-s4: 16px; --ow-s5: 24px; --ow-s6: 32px; --ow-s7: 48px; --ow-s8: 64px;
  /* Type scale (px) */
  --ow-t-xs: 12px; --ow-t-sm: 13px; --ow-t-md: 15px; --ow-t-lg: 18px; --ow-t-xl: 22px; --ow-t-2xl: 28px; --ow-t-3xl: clamp(30px, 3.4vw, 44px);
  /* Three radii */
  --ow-r-sm: 8px; --ow-r-md: 12px; --ow-r-lg: 18px;
  /* Surfaces (dark; the product's own) */
  --ow-bg: #0B0C0A; --ow-surface: #141612; --ow-raised: #1C1F1A; --ow-line: #262A23; --ow-line-strong: #3A3F35;
  --ow-text: #ECEEE6; --ow-soft: rgba(236, 238, 230, .78); --ow-muted: rgba(236, 238, 230, .58);
  --ow-accent: var(--volt, var(--green, #EAFD13)); --ow-on-accent: #0B0C0A;
  /* Status / honesty colours (semantic, never the accent) */
  --ow-done: #57D38C; --ow-prep: #A8C0FF; --ow-plat: #F2C14E; --ow-soon: #8A8F84;
  --ow-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px rgba(0, 0, 0, .28);
  --ow-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── Section head ─────────────────────────────────────────────── */
.ow-section-head { display: grid; gap: var(--ow-s3); max-width: 760px; margin: 0 0 var(--ow-s6); }
.ow-section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.ow-eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 600 var(--ow-t-xs)/1 var(--mono, ui-monospace, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--ow-muted); }
.ow-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ow-accent); }
.ow-h2 { margin: 0; font-size: var(--ow-t-3xl); line-height: 1.08; letter-spacing: -.03em; font-weight: 650; color: var(--ow-text); text-wrap: balance; }
.ow-lead { margin: 0; font-size: var(--ow-t-lg); line-height: 1.55; color: var(--ow-soft); max-width: 62ch; text-wrap: pretty; }

/* ── Cards and grids ──────────────────────────────────────────── */
.ow-grid { display: grid; gap: var(--ow-s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); align-items: stretch; }
.ow-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ow-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ow-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ow-grid--start { align-items: start; } /* content-driven heights where equal heights would leave holes */
@media (max-width: 1100px) { .ow-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ow-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ow-grid--2, .ow-grid--3, .ow-grid--4 { grid-template-columns: 1fr; } }
.ow-card {
  display: flex; flex-direction: column; gap: var(--ow-s3); min-width: 0; padding: var(--ow-s5);
  background: var(--ow-surface); border: 1px solid var(--ow-line); border-radius: var(--ow-r-lg); box-shadow: var(--ow-shadow);
  color: var(--ow-text);
}
.ow-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--ow-s2); align-items: center; }
.ow-card--interactive { text-decoration: none; transition: border-color .18s var(--ow-ease), transform .18s var(--ow-ease), background .18s var(--ow-ease); }
.ow-card--interactive:hover { border-color: var(--ow-line-strong); background: var(--ow-raised); transform: translateY(-2px); }
.ow-card--interactive:focus-visible { outline: 2px solid var(--ow-accent); outline-offset: 3px; }
.ow-card--feature { border-color: color-mix(in srgb, var(--ow-accent) 45%, var(--ow-line)); }
.ow-card h3 { margin: 0; font-size: var(--ow-t-lg); line-height: 1.3; letter-spacing: -.01em; font-weight: 650; }
.ow-card p { margin: 0; font-size: var(--ow-t-md); line-height: 1.55; color: var(--ow-soft); }

/* ── Tags: what kind of action this is ────────────────────────── */
.ow-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font: 600 11.5px/1.2 var(--font, system-ui); letter-spacing: .01em; white-space: nowrap; border: 1px solid currentColor; }
.ow-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ow-tag--done { color: var(--ow-done); }
.ow-tag--prepared { color: var(--ow-prep); }
.ow-tag--platform { color: var(--ow-plat); }
.ow-tag--soon { color: var(--ow-soon); }
.ow-tag > span { color: var(--ow-text); font-weight: 500; }

/* ── Buttons (public and app) ─────────────────────────────────── */
.ow-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; font: 600 var(--ow-t-sm)/1 var(--font, system-ui); text-decoration: none; cursor: pointer; border: 1px solid var(--ow-line-strong); background: transparent; color: var(--ow-text); transition: background .15s, border-color .15s, color .15s; }
.ow-btn:hover { border-color: var(--ow-text); }
.ow-btn:focus-visible { outline: 2px solid var(--ow-accent); outline-offset: 3px; }
.ow-btn--primary { background: var(--ow-accent); border-color: var(--ow-accent); color: var(--ow-on-accent); }
.ow-btn--primary:hover { filter: brightness(1.06); border-color: var(--ow-accent); }
.ow-btn svg { width: 15px; height: 15px; }

/* ── Drawer (side panel; full screen on phones) ───────────────── */
.ow-drawer { position: fixed; inset: 0; z-index: 9400; display: none; }
.ow-drawer.is-open { display: block; }
.ow-drawer__scrim { position: absolute; inset: 0; background: rgba(5, 6, 4, .62); backdrop-filter: blur(2px); animation: owFade .2s var(--ow-ease); }
.ow-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); overflow-y: auto; overscroll-behavior: contain;
  background: var(--ow-surface); border-left: 1px solid var(--ow-line); color: var(--ow-text);
  padding: var(--ow-s6) var(--ow-s6) var(--ow-s7); box-shadow: -24px 0 60px rgba(0, 0, 0, .45); animation: owSlide .28s var(--ow-ease);
}
.ow-drawer__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--ow-line); background: var(--ow-raised); color: var(--ow-text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.ow-drawer__close:focus-visible { outline: 2px solid var(--ow-accent); outline-offset: 2px; }
@media (max-width: 640px) { .ow-drawer__panel { width: 100%; border-left: 0; padding: var(--ow-s5) var(--ow-s4) var(--ow-s7); } }
@keyframes owFade { from { opacity: 0; } }
@keyframes owSlide { from { transform: translateX(24px); opacity: 0; } }

/* ── Video: poster button → modal player ──────────────────────── */
.ow-video-btn { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--ow-line); border-radius: var(--ow-r-lg); overflow: hidden; background: #000; cursor: pointer; aspect-ratio: 16 / 9; }
.ow-video-btn img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ow-ease), opacity .2s; }
.ow-video-btn:hover img { transform: scale(1.015); opacity: .92; }
.ow-video-btn:focus-visible { outline: 2px solid var(--ow-accent); outline-offset: 3px; }
.ow-video-btn__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px; background: rgba(11, 12, 10, .82); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font: 600 14px/1 var(--font, system-ui); backdrop-filter: blur(6px); }
.ow-video-btn__play svg { width: 14px; height: 14px; color: var(--ow-accent); }
.ow-video-btn__len { position: absolute; right: 12px; bottom: 12px; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font: 600 12px/1 var(--mono, monospace); }
.ow-watch { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ow-line-strong); background: transparent; color: var(--ow-text); font: 600 13px/1 var(--font, system-ui); cursor: pointer; }
.ow-watch:hover { border-color: var(--ow-accent); }
.ow-watch:focus-visible { outline: 2px solid var(--ow-accent); outline-offset: 2px; }
.ow-watch svg { width: 12px; height: 12px; color: var(--ow-accent); }
.ow-player { position: fixed; inset: 0; z-index: 99995; /* above the cookie banner (consent.js, 99990) while a video the visitor chose is open */  display: none; align-items: center; justify-content: center; padding: clamp(12px, 4vw, 48px); background: rgba(5, 6, 4, .86); }
.ow-player.is-open { display: flex; }
.ow-player__box { position: relative; width: min(1180px, 100%); max-height: 100%; display: grid; gap: 12px; }
.ow-player__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ow-text); }
.ow-player__title { margin: 0; font: 650 16px/1.3 var(--font, system-ui); }
/* The close button sits in the title bar (it reuses the drawer close style, which is absolutely positioned). */
.ow-player__close { position: static; flex: none; }
.ow-player video { width: 100%; max-height: calc(100vh - 140px); border-radius: var(--ow-r-md); background: #000; display: block; }
.ow-player__note { margin: 0; font-size: 12.5px; color: var(--ow-muted); }
/* Loading and error states over the video (ow-ui.js); the controls stay usable below. */
.ow-player__stage { position: relative; }
.ow-player__status { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 999px; background: rgba(11, 12, 10, .86); border: 1px solid rgba(255, 255, 255, .12); color: var(--ow-text); font-size: 13.5px; pointer-events: none; }
.ow-player__status[hidden] { display: none; }
.ow-player__status.is-error { border-radius: var(--ow-r-md); pointer-events: auto; text-align: center; }
.ow-player__status.is-error .ow-player__spin { display: none; }
.ow-player__spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .22); border-top-color: var(--ow-lime, #B6FF3B); animation: owSpin .8s linear infinite; }
@keyframes owSpin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .ow-card--interactive, .ow-video-btn img, .ow-btn { transition: none; }
  .ow-card--interactive:hover, .ow-video-btn:hover img { transform: none; }
  .ow-drawer__scrim, .ow-drawer__panel, .ow-player__spin { animation: none; }
}

/* ── Pricing cards (js/plans.js renderLPPricingCards, .ov-pc--ws) ───
   Same subgrid rhythm as before (name · price · facts · included · button)
   so rows line up across the five cards; the last row of a wrapped grid is
   centred instead of hanging on the left. */
.ov-pc--ws .ov-pc-head { min-height: 0; gap: 6px; justify-content: flex-start; }
.ov-pc--ws .ov-pc-tier { font-size: 13px; letter-spacing: .08em; }
.ov-pc-for { margin: 2px 0 0; font-size: 13.5px; line-height: 1.45; color: rgba(255, 255, 255, .72); text-transform: none; letter-spacing: 0; }
.ov-pc-badge--quiet { background: transparent !important; border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .78) !important; }
.ov-pc--ws .ov-pc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ov-pc-period { font-size: 14px; font-weight: 500; letter-spacing: 0; color: rgba(255, 255, 255, .55); }
.ov-pc--ws .ov-pc-duration { font-size: 15px; }
.ov-pc-save { font-size: 13px; font-weight: 600; color: var(--green, #B7FF2A); min-height: 1.45em; }
.ov-pc-pay { margin-top: 6px !important; font-size: 13px; color: rgba(255, 255, 255, .78); }
.ov-pc--ws .ov-pc-vat { margin-top: 0 !important; }
@media (max-width: 1180px) and (min-width: 861px) {
  .ov-pricing-grid-4.ov-pc-five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ov-pricing-grid-4.ov-pc-five > .ov-pc--ws { grid-column: span 2; }
  .ov-pricing-grid-4.ov-pc-five > .ov-pc--ws:nth-child(4) { grid-column: 2 / span 2; }
}
@media (max-width: 860px) and (min-width: 701px) {
  .ov-pricing-grid-4.ov-pc-five { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ov-pricing-grid-4.ov-pc-five > .ov-pc--ws { grid-column: span 2; }
  .ov-pricing-grid-4.ov-pc-five > .ov-pc--ws:nth-child(5) { grid-column: 2 / span 2; }
}
.ov-pc.ov-pc--ws .ov-pc-period { font-size: 14px; font-weight: 500; letter-spacing: 0; margin-left: 0; color: rgba(255, 255, 255, .55); }
.ov-pc.ov-pc--ws .ov-pc-head .ov-pc-for { font-size: 13.5px; font-weight: 400; line-height: 1.45; }
.ov-pc.ov-pc--ws .ov-pc-facts .ov-pc-pay { font-size: 13px; font-weight: 500; line-height: 1.45; }
.ov-pc.ov-pc--ws .ov-pc-facts .ov-pc-save { font-size: 13px; }
.ov-pc.ov-pc--ws .ov-pc-facts .ov-pc-duration { font-size: 15px; }
.ov-pc.ov-pc--ws .ov-pc-badge-slot { min-height: 24px; display: flex; align-items: center; margin-bottom: 4px; }
.ov-pc.ov-pc--ws .ov-pc-badge-slot .ov-pc-badge { margin: 0; }
.ov-pc.ov-pc--ws .ov-pc-benefits li { flex-wrap: nowrap; align-items: flex-start; gap: 8px; line-height: 1.45; }
.ov-pc.ov-pc--ws .ov-pc-benefits li::before { margin-top: 1px; }

/* "Watch the overview" buttons in the public section heroes (.ov-watch). */
.ov-watch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font: inherit; }
.ov-watch svg { color: var(--ow-accent); }
