/* OWNIT Systems · shared light design system for the five product demos (voice, booking, CRM, chatbot, automation).
   Each demo sets --accent / --accent-2 (its signature gradient) and adds its own styles.css on top. */

:root {
  --ink: #15131f;
  --ink-2: #4b4862;
  --ink-3: #6f6c86;
  --line: #e9e7f1;
  --line-2: #dad7e7;
  --bg: #ffffff;
  --bg-2: #f7f6fb;
  --bg-3: #efedf8;
  --brand: #6d4aff;
  --accent: #6d4aff;
  --accent-2: #3ba7ff;
  --accent-ink: #ffffff;
  --good: #15a46b;
  --warn: #e8890c;
  --bad: #e5484d;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --pill: 999px;
  --font: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  --font-d: 'Bricolage Grotesque', 'Hanken Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-sm: 0 1px 2px rgba(21, 19, 31, .06), 0 6px 16px -8px rgba(21, 19, 31, .1);
  --shadow: 0 40px 80px -40px rgba(45, 30, 110, .28), 0 14px 30px -18px rgba(45, 30, 110, .16);
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 40px);
  --top: 64px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-d); font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; }
::selection { background: color-mix(in oklab, var(--accent) 22%, transparent); }
.ic { width: 1.2em; height: 1.2em; flex: none; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.mono { font-family: var(--mono); }

/* ---------------------------------------------------------------- top bar with the product switcher */
.sx-top { position: sticky; top: 0; z-index: 40; height: var(--top); background: color-mix(in oklab, #fff 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.sx-top-in { height: 100%; display: flex; align-items: center; gap: 20px; }
.sx-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-d); font-weight: 800; font-size: 1.12rem; letter-spacing: -.02em; text-decoration: none; flex: none; }
.sx-dot { width: 22px; height: 22px; border-radius: 7px; background: conic-gradient(from 210deg, var(--brand), #3ba7ff, #ff7ab6, var(--brand)); box-shadow: inset 0 0 0 5px #fff; outline: 1.5px solid var(--line-2); }
.sx-switch { display: flex; gap: 2px; padding: 4px; margin-inline: auto; border-radius: var(--pill); background: var(--bg-2); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.sx-switch::-webkit-scrollbar { display: none; }
.sx-switch a { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: var(--pill); font-size: .86rem; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; transition: color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.sx-switch a:hover { color: var(--ink); }
.sx-switch a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.sx-switch a i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--brand)); }
.sx-cta { flex: none; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 48px; padding: 0 20px; border-radius: var(--pill); font-weight: 700; font-size: .95rem; white-space: nowrap; text-decoration: none; transition: transform 160ms var(--ease), box-shadow .25s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:active { transform: scale(.97); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .88rem; }
.btn-lg { height: 54px; padding: 0 24px; font-size: 1rem; }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(21, 19, 31, .6); }
.btn-ink:hover { box-shadow: 0 16px 30px -12px rgba(21, 19, 31, .55); }
.btn-accent { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); box-shadow: 0 14px 30px -14px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-accent:hover { box-shadow: 0 18px 36px -12px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn-line { border: 1.5px solid var(--line-2); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--ink-3); }
.btn .ic { width: 1.1em; height: 1.1em; }

/* ---------------------------------------------------------------- section rhythm */
.sx-sec { padding: clamp(80px, 10vw, 128px) 0; }
.sx-sec.tint { background: var(--bg-2); }
.sx-hd { display: grid; gap: 14px; max-width: 46rem; }
.sx-hd.center { margin-inline: auto; text-align: center; justify-items: center; }
.sx-hd h2 { font-size: clamp(2rem, 1.25rem + 2.4vw, 3.15rem); line-height: 1.06; }
.sx-hd > p { color: var(--ink-2); font-size: 1.08rem; max-width: 38rem; }
.sx-tag { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border-radius: var(--pill); background: color-mix(in oklab, var(--accent) 9%, #fff); border: 1px solid color-mix(in oklab, var(--accent) 22%, #fff); color: color-mix(in oklab, var(--accent) 80%, #000); font-size: .8rem; font-weight: 700; justify-self: start; }
.sx-hd.center .sx-tag { justify-self: center; }
.sx-tag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in oklab, currentColor 18%, transparent); }
.grad-text { background: linear-gradient(100deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* grainy gradient surface (hero cards) */
.grain-card { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); }
.grain-card::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .35; mix-blend-mode: soft-light; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>"); }

/* fail-open scroll reveal: only hidden once the script is running */
html.sx-js .sx-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
html.sx-js .sx-reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- closing band + footer */
.sx-end { padding: clamp(70px, 9vw, 110px) 0; }
.sx-end-card { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) auto; align-items: center; gap: 24px 40px; padding: clamp(28px, 4vw, 52px); border-radius: var(--r-xl); background: radial-gradient(80% 120% at 0% 0%, color-mix(in oklab, var(--accent) 16%, #fff), transparent 60%), radial-gradient(80% 120% at 100% 100%, color-mix(in oklab, var(--accent-2) 18%, #fff), transparent 60%), #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.sx-end-card h2 { font-size: clamp(1.9rem, 1.2rem + 2vw, 2.8rem); line-height: 1.08; }
.sx-end-card p { margin-top: 10px; color: var(--ink-2); max-width: 34rem; }
.sx-end-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sx-foot { border-top: 1px solid var(--line); padding: 26px 0 34px; color: var(--ink-3); font-size: .86rem; }
.sx-foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.sx-foot a { color: var(--ink-2); text-decoration: none; }
.sx-foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.sx-foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------------------------------------------------------------- shared components: deck, sliders, app window, faq, pills */
.deck { position: relative; padding: clamp(18px, 2.4vw, 28px); border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); outline-offset: 6px; }
.deck-bars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 22px; }
.deck-bars i { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; position: relative; }
.deck-bars i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; transform: scaleX(0); }
.deck-bars i.done::after { transform: scaleX(1); }
.deck-bars i.now::after { animation: fillbar var(--dur, 6.5s) linear forwards; }
.deck.paused .deck-bars i.now::after { animation-play-state: paused; }
@keyframes fillbar { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.deck-track { display: grid; }
.slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(20px, 4vw, 50px); align-items: center; opacity: 0; visibility: hidden; transform: translateX(18px); transition: opacity .45s ease, transform .6s var(--ease), visibility 0s .5s; min-height: 360px; }
.slide.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .05s, transform .7s var(--ease), visibility 0s; }
.sl-copy { display: grid; gap: 12px; }
.sl-k { font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.sl-copy h3 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.08; }
.sl-copy p { color: var(--ink-2); font-size: 1.04rem; }
.deck-ctl { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.deck-n { min-width: 3.6em; text-align: center; color: var(--ink-3); font-size: .86rem; }
.rnd { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); background: #fff; transition: transform 160ms var(--ease), border-color .2s ease; }
.rnd:hover { border-color: var(--ink-3); }
.rnd:active { transform: scale(.94); }
.rnd[data-deck-pause] { margin-left: auto; }
.rnd .i-play, .rnd[aria-pressed="true"] .i-pause { display: none; }
.rnd[aria-pressed="true"] .i-play { display: block; }
.sl { display: grid; gap: 8px; }
.sl > span { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; }
.sl b { font-family: var(--mono); font-weight: 600; color: var(--accent); }
.sl input { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--line-2) var(--p, 50%)); outline-offset: 6px; }
.sl input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); box-shadow: 0 4px 10px color-mix(in oklab, var(--accent) 40%, transparent); cursor: grab; }
.sl input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent); cursor: grab; }
.app { border-radius: var(--r-xl); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.dots { display: flex; gap: 6px; }
.dots i { width: 11px; height: 11px; border-radius: 50%; background: #ff6159; }
.dots i:nth-child(2) { background: #ffbd2e; } .dots i:nth-child(3) { background: #28c941; }
.app-title { font-size: .8rem; color: var(--ink-3); }
.faq-in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); padding: 0 20px; transition: box-shadow .3s ease; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; font-weight: 700; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--accent); transition: transform .3s var(--ease); }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); }
.pill { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--pill); background: var(--bg-2); color: var(--ink-3); border: 1px solid var(--line); }
.pill.live { background: #e9f9ef; color: #128a46; border-color: #bfe8cf; }
.pill.done { background: color-mix(in oklab, var(--accent) 9%, #fff); color: color-mix(in oklab, var(--accent) 85%, #000); border-color: color-mix(in oklab, var(--accent) 24%, #fff); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22, 163, 74, .6); animation: livep 1.6s ease-out infinite; display: inline-block; }
@keyframes livep { to { box-shadow: 0 0 0 9px transparent; } }

@media (max-width: 900px) {
  .faq-in { grid-template-columns: minmax(0, 1fr); }
  .slide { grid-template-columns: minmax(0, 1fr); align-content: start; }
  .sx-top { height: auto; }
  .sx-top-in { flex-wrap: wrap; height: auto; padding: 10px 0; gap: 10px; }
  .sx-switch { order: 3; width: 100%; margin: 0; }
  .sx-cta { margin-left: auto; }
  .sx-end-card { grid-template-columns: minmax(0, 1fr); }
  html { scroll-padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.sx-js .sx-reveal { opacity: 1; transform: none; }
}
