/* ==========================================================================
   MediaSphere AI Studio: site styles (v2)
   Bright, colourful base. Each of the four apps has its own colour pair.
   App-window recreations use the real app's dark palette (#141414 / #1C1C1C, gold preview frame).
   ========================================================================== */

:root {
  /* page */
  --bg: #F5F6FB;
  --surface: #FFFFFF;
  --soft: #ECEFF7;
  --ink: #0F1222;
  --body: #3A4058;
  --muted: #6B7290;
  --line: #E1E5EF;
  --line-2: #CDD3E2;

  /* the five apps, in the app's own colours (Options screen) */
  --ed: #0891B2;  --ed-2: #2563EB;   /* Video Editor: cyan */
  --st: #D97706;  --st-2: #EA580C;   /* Subtitle Editing Tools: orange */
  --tr: #7C3AED;  --tr-2: #C026D3;   /* Real-Time Translation & Dubbing: purple */
  --rc: #16A34A;  --rc-2: #0D9488;   /* Screen Recorder: green */
  --ss: #DC2626;  --ss-2: #DB2777;   /* Full Suite: red */

  /* current accent pair (set per page or component) */
  --a: var(--ed);
  --b: var(--ed-2);

  --brand-grad: linear-gradient(110deg, #0891B2 0%, #2563EB 22%, #7C3AED 44%, #DB2777 66%, #EA580C 84%, #16A34A 100%);

  /* the real app's colours, for recreations */
  --app-bg: #141414;
  --app-panel: #1C1C1C;
  --app-raise: #262626;
  --app-line: #2E2E2E;
  --app-text: #E8E8E8;
  --app-dim: #9A9A9A;
  --app-gold: #FFD700;

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow: 0 1px 2px rgba(15, 18, 34, .05), 0 8px 24px -8px rgba(15, 18, 34, .10);
  --shadow-lg: 0 2px 6px rgba(15, 18, 34, .06), 0 30px 70px -24px rgba(15, 18, 34, .30);

  --wrap: 1200px;
  --gutter: 24px;
  --head-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--body);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
img, svg, video, canvas, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
table { border-collapse: collapse; }
h1, h2, h3, h4 { color: var(--ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--a) 60%, transparent); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(860px + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(64px, 8vw, 110px); }
.sec-tight { padding-block: clamp(40px, 5vw, 64px); }
.sec-soft { background: var(--surface); border-block: 1px solid var(--line); }
.sec-tint { background: linear-gradient(180deg, color-mix(in srgb, var(--a) 7%, var(--bg)), var(--bg)); }
.sec-color {
  color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(125deg, var(--a), var(--b));
}
.sec-color h1, .sec-color h2, .sec-color h3 { color: #fff; }
.sec-color .lede, .sec-color .muted { color: rgba(255, 255, 255, .86); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .lede { margin-top: 14px; }
.center { text-align: center; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-5-7 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.split-7-5 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.top { align-items: start; }
.split.flip > :first-child { order: 2; }
.stack > * + * { margin-top: 16px; }

/* ---------- type ---------- */
.display {
  font-size: clamp(40px, 6vw, 80px); font-stretch: 122%; font-weight: 820;
  line-height: .98; letter-spacing: -.028em; text-wrap: balance;
}
.h1 { font-size: clamp(36px, 5vw, 62px); font-stretch: 120%; font-weight: 800; line-height: 1.02; letter-spacing: -.024em; text-wrap: balance; }
.h2 { font-size: clamp(30px, 3.8vw, 48px); font-stretch: 116%; font-weight: 780; line-height: 1.06; letter-spacing: -.02em; text-wrap: balance; }
.h3 { font-size: 22px; font-stretch: 108%; font-weight: 700; line-height: 1.25; letter-spacing: -.008em; }
.h4 { font-size: 17.5px; font-weight: 680; line-height: 1.35; }
.lede { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.55; color: var(--muted); max-width: 62ch; text-wrap: pretty; }
.muted { color: var(--muted); }
.small { font-size: 15px; line-height: 1.55; }
.tiny { font-size: 13.5px; line-height: 1.5; }
.mono { font-family: var(--mono); font-size: .88em; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
a.link { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--a) 60%, transparent); text-decoration-thickness: 2px; text-underline-offset: 3px; font-weight: 600; }
a.link:hover { text-decoration-color: var(--a); }

.prose { max-width: 72ch; color: var(--body); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); font-stretch: 110%; font-weight: 740; line-height: 1.2; margin-top: 2.2em; letter-spacing: -.01em; }
.prose h3 { font-size: 19px; font-weight: 700; margin-top: 1.7em; }
.prose h2 + *, .prose h3 + * { margin-top: .6em; }
.prose ul, .prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--muted); }
.prose a { color: var(--ink); text-decoration-color: color-mix(in srgb, var(--a) 60%, transparent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose strong { color: var(--ink); }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--soft); padding: 2px 6px; border-radius: 6px; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar-maker { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.topbar-maker img { height: 22px; width: auto; }
.topbar-maker:hover span { color: #fff; }
.topbar-former a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 246, 251, .97);
  border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s;
}
.site-head.is-stuck { border-bottom-color: var(--line); background: #fff; }
.head-in { display: flex; align-items: center; gap: 24px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; color: var(--ink); }
.brand-logo { width: 36px; height: 36px; object-fit: contain; }
.brand-name { font-stretch: 116%; font-weight: 800; font-size: 18.5px; letter-spacing: -.01em; line-height: 1; }
.brand-name span { font-weight: 500; color: var(--muted); font-stretch: 104%; }

.site-nav { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list a, .nav-menu-btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 10px;
  font-size: 15.5px; font-weight: 600; color: var(--body); text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-list a:hover, .nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"] { color: var(--ink); background: var(--soft); }
.nav-list a[aria-current="page"], .nav-menu-btn[aria-current="page"] { color: var(--ink); background: var(--soft); }
.nav-menu-btn::after {
  content: ""; width: 7px; height: 7px; margin-top: -3px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s var(--ease);
}
.nav-menu-btn[aria-expanded="true"]::after { transform: rotate(225deg); margin-top: 3px; }
.has-menu { position: relative; }
.nav-menu {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  width: 600px; padding: 10px; display: none; grid-template-columns: 1fr 1fr; gap: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.nav-menu.open { display: grid; }
.nav-menu a { display: flex; align-items: flex-start; gap: 14px; padding: 14px; border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--soft); }
.nav-menu a small { display: block; font-weight: 450; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.nav-menu .app-ico { width: 40px; height: 40px; flex: 0 0 auto; font-size: 20px; border-radius: 12px; }
.nav-menu-wide { grid-column: 1 / -1; background: linear-gradient(110deg, color-mix(in srgb, var(--ed) 8%, #fff), color-mix(in srgb, var(--ss) 10%, #fff)); }

.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; position: relative; }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); content: ""; border-radius: 2px; transition: transform .25s var(--ease), background .2s; }
.nav-toggle-bars { top: 22px; }
.nav-toggle-bars::before { left: 0; right: 0; top: -6px; }
.nav-toggle-bars::after { left: 0; right: 0; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- app icons (rounded squares in each app's colours) ---------- */
.app-ico {
  --a: var(--ed); --b: var(--ed-2);
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff;
  background: linear-gradient(135deg, var(--a), var(--b));
  box-shadow: 0 8px 18px -8px color-mix(in srgb, var(--a) 70%, transparent);
}
.app-ico svg { width: 56%; height: 56%; }
.is-ed { --a: var(--ed); --b: var(--ed-2); }
.is-st { --a: var(--st); --b: var(--st-2); }
.is-tr { --a: var(--tr); --b: var(--tr-2); }
.is-rc { --a: var(--rc); --b: var(--rc-2); }
.is-ss { --a: var(--ss); --b: var(--ss-2); }

.app-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  font-size: 14px; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--a) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--a) 28%, transparent);
}
.app-pill::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); }
.sec-color .app-pill { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .35); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 1px solid transparent;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .2s, background-color .15s, border-color .15s, color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { color: #fff; background: linear-gradient(110deg, #2563EB, #7C3AED 50%, #DB2777); box-shadow: 0 10px 24px -10px rgba(124, 58, 237, .7); }
.btn-primary:hover { box-shadow: 0 14px 30px -10px rgba(122, 80, 255, .85); }
.btn-app { color: #fff; background: linear-gradient(110deg, var(--a), var(--b)); box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--a) 80%, transparent); }
.btn-dark { color: #fff; background: var(--ink); }
.btn-dark:hover { background: #22263a; }
.btn-light { color: var(--ink); background: var(--surface); border-color: var(--line-2); }
.btn-light:hover { border-color: var(--ink); }
.btn-white { color: var(--ink); background: #fff; }
.btn-outline-white { color: #fff; border-color: rgba(255, 255, 255, .55); background: transparent; }
.btn-outline-white:hover { background: rgba(255, 255, 255, .12); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.btn-lg { min-height: 58px; padding: 14px 30px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 30px); box-shadow: var(--shadow); }
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 2.4vw, 28px); }
.card h3 + p, .card-flat h3 + p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

.feature { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.feature .f-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; line-height: 1;
  background: color-mix(in srgb, var(--a) 12%, #fff); border: 1px solid color-mix(in srgb, var(--a) 22%, transparent);
}
.feature h3, .feature h4 { font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.feature p { color: var(--muted); font-size: 15px; margin-top: 4px; line-height: 1.5; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.features.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.offline-tag, .online-tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; vertical-align: middle;
}
.offline-tag { color: #087A5E; background: #DDF7EE; }
.offline-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #10B981; }
.online-tag { color: #5B5F75; background: var(--soft); }
.online-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #8A90A8; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chips li, .chip-static { font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }

.check-list { list-style: none; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); }
.check-list li::after { content: ""; position: absolute; left: 6px; top: calc(.2em + 6px); width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg); }
.sec-color .check-list li::before { background: rgba(255, 255, 255, .25); }

/* ---------- notes, tables, accordions, steps ---------- */
.note { border-radius: var(--r); padding: 16px 20px; background: color-mix(in srgb, var(--a) 8%, #fff); border: 1px solid color-mix(in srgb, var(--a) 22%, transparent); font-size: 15.5px; color: var(--body); }
.note strong { color: var(--ink); }
.note.warn { --a: #F2A000; }
.note > * + * { margin-top: .6em; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.table { width: 100%; font-size: 15.5px; min-width: 620px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 14px; font-weight: 700; color: var(--muted); background: var(--soft); }
.table tbody th { font-weight: 700; color: var(--ink); }
.table tbody tr:last-child > * { border-bottom: 0; }

.qa { border-bottom: 1px solid var(--line); }
.qa:first-of-type { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 20px 0; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 500; background: var(--soft); color: var(--ink); transition: transform .2s var(--ease); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa-body { padding: 0 0 22px; color: var(--body); max-width: 74ch; }
.qa-body > * + * { margin-top: .8em; }
.qa-body ul { padding-left: 1.2em; }
.qa-body a { color: var(--ink); text-underline-offset: 3px; font-weight: 600; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 26px 62px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -3px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--a), var(--b)); }
.steps > li::after { content: ""; position: absolute; left: 19px; top: 42px; bottom: 4px; width: 2px; background: var(--line); }
.steps > li:last-child { padding-bottom: 0; }
.steps > li:last-child::after { display: none; }
.steps h3, .steps h4 { font-size: 18px; font-weight: 700; color: var(--ink); }
.steps p { color: var(--muted); margin-top: 4px; font-size: 15.5px; }

/* chips/filters and tabs */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--body); font-size: 15px; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .count { font-size: 12px; opacity: .7; }

.tabs [role="tablist"] { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; margin-bottom: 28px; }
.tabs [role="tablist"]::-webkit-scrollbar { display: none; }
.tabs [role="tab"] { flex: 0 0 auto; padding: 10px 18px; border-radius: 999px; background: none; border: 0; color: var(--body); font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap; }
.tabs [role="tab"]:hover { color: var(--ink); background: var(--soft); }
.tabs [role="tab"][aria-selected="true"] { color: #fff; background: linear-gradient(110deg, var(--a), var(--b)); }
.tabs [role="tabpanel"][hidden] { display: none; }

/* search */
.search { position: relative; }
.search input { width: 100%; min-height: 54px; padding: 12px 18px 12px 48px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); font-size: 16.5px; color: var(--ink); }
.search input:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 18%, transparent); }
.search::before { content: ""; position: absolute; left: 19px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border: 2px solid var(--muted); border-radius: 50%; }
.search::after { content: ""; position: absolute; left: 32px; top: 50%; width: 7px; height: 2px; margin-top: 5px; background: var(--muted); transform: rotate(45deg); }

/* ---------- inner page hero ---------- */
.page-hero { position: relative; overflow: hidden; padding-block: clamp(56px, 8vw, 100px) clamp(40px, 6vw, 72px); }
.page-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--a) 26%, transparent), transparent 70%); pointer-events: none;
}
.page-hero::after {
  content: ""; position: absolute; inset: auto auto -50% -10%; width: 50vw; height: 50vw; max-width: 700px; max-height: 700px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--b) 20%, transparent), transparent 70%); pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero .lede { margin-top: 18px; }
.page-hero .btn-row { margin-top: 28px; }
.crumb { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14.5px; color: var(--muted); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

/* ---------- dark app-window recreation ---------- */
.win {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--app-bg); color: var(--app-text);
  border: 1px solid #000; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  font-size: 12px; line-height: 1.35; user-select: none;
}
.win-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: #202020; border-bottom: 1px solid #000; }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.win-bar i:nth-child(2) { background: #FEBC2E; }
.win-bar i:nth-child(3) { background: #28C840; }
.win-title { flex: 1; text-align: center; font-size: 12.5px; color: #BDBDBD; font-weight: 600; margin-right: 50px; }
.win-body { position: relative; }
.tk-btn { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 4px; background: var(--app-raise); border: 1px solid #333; color: #EDEDED; font-size: 11px; white-space: nowrap; }
.tk-btn.hot { background: #3A3A3A; border-color: #555; }
.tk-row { display: flex; gap: 4px; padding: 5px 8px; background: var(--app-panel); border-bottom: 1px solid #0d0d0d; overflow: hidden; }
.tk-panel { background: var(--app-panel); border: 1px solid #0d0d0d; }
.gold-frame { outline: 2px solid var(--app-gold); outline-offset: -2px; }

/* mock timeline (dark, inside .win) */
.mtl { background: #101010; border-top: 1px solid #000; }
.mtl-ruler { height: 18px; margin-left: 52px; border-bottom: 1px solid #2a2a2a; background: repeating-linear-gradient(90deg, #3a3a3a 0 1px, transparent 1px 10%) bottom/100% 8px no-repeat; }
.mtl-track { display: grid; grid-template-columns: 52px 1fr; height: 26px; border-bottom: 1px solid #1b1b1b; }
.mtl-head { display: grid; place-items: center; font-size: 10.5px; font-weight: 700; color: #cfcfcf; background: #1b1b1b; border-right: 1px solid #000; }
.mtl-lane { position: relative; overflow: hidden; }
.mclip { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; padding: 0 6px; font-size: 10px; line-height: 19px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mclip.v { background: #3F63D8; border: 1px solid #6E8EFF; }
.mclip.a { background: #237A4B; border: 1px solid #3FBF7F; }
.mclip.t { background: #7B3FC4; border: 1px solid #A97BFF; }
.mclip.s { background: #9A6B00; border: 1px solid #FFC23D; }
.mclip.m { background: #B8336A; border: 1px solid #FF6FA8; }
.playhead { position: absolute; top: 0; bottom: 0; width: 2px; background: #FF3B3B; left: 0; z-index: 3; }

/* waveform bars */
.bars { display: flex; align-items: center; gap: 2px; height: 100%; }
.bars i { flex: 1; min-width: 1px; border-radius: 2px; background: currentColor; height: 40%; }

/* fake cursor + ripple */
.mcursor { position: absolute; left: 0; top: 0; width: 18px; height: 22px; z-index: 20; pointer-events: none; transition: transform .9s var(--ease); filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
.mcursor svg { width: 100%; height: 100%; }
.mripple { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid #fff; opacity: 0; pointer-events: none; z-index: 19; }
.mripple.go { animation: ripple .6s ease-out; }
@keyframes ripple { from { transform: scale(.3); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- scene (step-by-step motion graphic) ---------- */
.scene { position: relative; }
.scene-steps { list-style: none; display: grid; gap: 6px; margin-top: 18px; counter-reset: st; }
.scene-steps li {
  counter-increment: st; position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center;
  padding: 10px 14px; border-radius: 12px; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 15.5px; line-height: 1.35; overflow: hidden;
  transition: background-color .2s, color .2s;
}
.scene-steps li::before { content: counter(st); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13.5px; font-weight: 800; background: var(--soft); color: var(--muted); transition: all .2s; }
.scene-steps li:hover { color: var(--ink); }
.scene-steps li.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.scene-steps li.is-on::before, .scene-steps li.is-done::before { background: linear-gradient(135deg, var(--a), var(--b)); color: #fff; }
.scene-steps li .bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--a), var(--b)); }
.scene-steps li.is-on .bar { animation: stepbar var(--dur, 3s) linear forwards; }
.scene.paused .scene-steps li.is-on .bar { animation-play-state: paused; }
@keyframes stepbar { to { width: 100%; } }
.scene-ctrl { position: absolute; right: 12px; top: 46px; z-index: 30; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; display: grid; place-items: center; backdrop-filter: blur(6px); }
.scene-ctrl:hover { background: rgba(255, 255, 255, .26); }
.scene-ctrl svg { width: 14px; height: 14px; fill: currentColor; }
.scene-ctrl .i-play { display: none; }
.scene.paused .scene-ctrl .i-play { display: block; }
.scene.paused .scene-ctrl .i-pause { display: none; }
.scene-cap {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 25; max-width: 90%;
  padding: 7px 14px; border-radius: 999px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  backdrop-filter: blur(6px);
}

/* ---------- screenshots + video ---------- */
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.shots button { padding: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); cursor: zoom-in; box-shadow: var(--shadow); }
.shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .3s var(--ease); }
.shots button:hover img { transform: scale(1.03); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1400px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(10, 12, 24, .85); }
.lightbox img { max-height: 88vh; width: auto; border-radius: 12px; }
.lightbox form { position: absolute; top: 10px; right: 10px; }
.lightbox button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; font-size: 22px; cursor: pointer; }

.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.yt button { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; cursor: pointer; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.yt .play { position: absolute; left: 50%; top: 50%; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); transition: transform .2s; }
.yt button:hover .play { transform: scale(1.08); }
.yt .play::before { content: ""; margin-left: 6px; border-style: solid; border-width: 15px 0 15px 24px; border-color: transparent transparent transparent var(--ink); }
.yt iframe { width: 100%; height: 100%; border: 0; }
.yt .yt-label { position: absolute; left: 16px; bottom: 14px; color: #fff; font-weight: 700; font-size: 15px; text-shadow: 0 2px 8px rgba(0, 0, 0, .8); pointer-events: none; }

/* ---------- developer note ---------- */
.letter { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(26px, 4vw, 48px); box-shadow: var(--shadow); }
.letter h2, .letter .h3 { margin-bottom: 14px; }
.letter p { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 20.5px); line-height: 1.7; font-weight: 400; font-variation-settings: "opsz" 20; color: #2B3047; max-width: 64ch; }
.letter p + p { margin-top: 1em; }
.letter .sign { margin-top: 24px; display: flex; align-items: center; gap: 14px; font-size: 15px; color: var(--muted); }
.letter .sign img { height: 34px; width: auto; }
.letter .sign strong { display: block; color: var(--ink); }
.quote { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.4; color: var(--ink); padding-left: 22px; border-left: 3px solid var(--a); }
.quote cite { display: block; margin-top: 12px; font-family: var(--font); font-style: normal; font-size: 15px; color: var(--muted); }

/* ---------- price / CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); color: #fff;
  padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center;
  background: radial-gradient(120% 140% at 0% 0%, #6A4BFF 0%, transparent 55%), radial-gradient(120% 140% at 100% 100%, #FF4FA0 0%, transparent 55%), linear-gradient(110deg, #3A4BFF, #8B3DFF 60%, #E2368E);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .88); margin-top: 12px; max-width: 54ch; }
.cta-band .btn-row { justify-content: flex-end; }
.price-tag { font-stretch: 120%; font-weight: 850; font-size: clamp(48px, 6vw, 76px); letter-spacing: -.03em; line-height: 1; color: #fff; }
.price-tag small { font-size: .32em; font-weight: 600; letter-spacing: 0; margin-left: 6px; opacity: .9; }

/* ---------- forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.field .hint { font-size: 13.5px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); color: var(--ink); font-size: 16px; }
.field textarea { min-height: 160px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--a); box-shadow: 0 0 0 4px color-mix(in srgb, var(--a) 16%, transparent); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--body); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--a); flex: 0 0 auto; }

/* ---------- footer ---------- */
.site-foot { margin-top: clamp(64px, 8vw, 110px); background: var(--ink); color: rgba(255, 255, 255, .72); padding-top: 60px; }
.site-foot .brand { color: #fff; }
.site-foot .brand-name span { color: rgba(255, 255, 255, .6); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-pitch { font-size: 15px; margin-top: 16px; max-width: 42ch; }
.foot-tagline { margin-top: 10px; font-weight: 700; color: #fff; font-size: 15px; }
.foot-former { font-size: 15px; margin-top: 10px; }
.foot-former a { color: #fff; font-weight: 600; text-underline-offset: 3px; }
.foot-maker { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; text-decoration: none; color: inherit; font-size: 14.5px; }
.foot-maker img { height: 32px; width: auto; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h2 { font-size: 14.5px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.foot-col a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 15px; }
.foot-col a:hover { color: #fff; }
.foot-note { margin-top: 48px; padding-block: 26px 30px; border-top: 1px solid rgba(255, 255, 255, .12); display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; font-size: 14px; }
.foot-note .foot-tm { grid-column: 1 / -1; font-size: 12.5px; color: rgba(255, 255, 255, .5); max-width: 110ch; margin-top: 8px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-list a, .nav-menu-btn { padding: 8px 9px; font-size: 15px; }
  .features.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  :root { --head-h: 64px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: var(--head-h) 0 0 0; z-index: 49; display: none; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 32px; background: var(--bg); overflow-y: auto; border-top: 1px solid var(--line); }
  .site-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-list a, .nav-menu-btn { width: 100%; padding: 16px 4px; font-size: 18px; border-radius: 0; justify-content: space-between; }
  .nav-list a:hover, .nav-list a[aria-current="page"], .nav-menu-btn:hover, .nav-menu-btn[aria-expanded="true"], .nav-menu-btn[aria-current="page"] { background: none; }
  .nav-menu { position: static; transform: none; width: auto; box-shadow: none; border: 0; background: none; padding: 0 0 12px; grid-template-columns: 1fr; }
  .site-nav .btn { width: 100%; min-height: 54px; }
  .split, .split-5-7, .split-7-5 { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-band { grid-template-columns: 1fr; }
  .cta-band .btn-row { justify-content: flex-start; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 16.5px; }
  .topbar-in { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 8px; }
  .topbar-maker span { display: none; }
  .brand-name { font-size: 16.5px; }
  .grid-2, .grid-3, .grid-4, .features, .features.three { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .foot-note { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 auto; }
  .win { font-size: 10.5px; }
  .scene-ctrl { top: 42px; }
}
@media (max-width: 400px) {
  .display, .h1 { font-stretch: 110%; }
  .h2 { font-stretch: 106%; }
}
.display, .h1, .h2, .h3 { overflow-wrap: break-word; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Tandis 24 Design Lab logo: a round badge */
.topbar-maker img { width: 28px; height: 28px; border-radius: 50%; }
.foot-maker img { width: 52px; height: 52px; border-radius: 50%; }
.letter .sign img { width: 48px; height: 48px; border-radius: 50%; }
img[src$="tandis24-logo.png"] { aspect-ratio: 1; object-fit: contain; }


/* ---------- performance ---------- */
/* skip rendering of sections that are far off-screen */
main > section:not(:first-child) { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* freeze every animation in a section that isn't on screen */
.is-off, .is-off * { animation-play-state: paused !important; }

/* ---------- scene: nothing plays until the visitor asks ---------- */
.scene-start {
  position: absolute; inset: 34px 0 0 0; z-index: 40; display: grid; place-items: center; border: 0; cursor: pointer;
  background: radial-gradient(closest-side, rgba(10, 12, 24, .55), rgba(10, 12, 24, .25));
}
.scene-start span {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px 14px 18px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 17px; box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .6);
  transition: transform .2s var(--ease);
}
.scene-start span::before { content: ""; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)) ; -webkit-mask: none; box-shadow: inset 0 0 0 0 #fff; }
.scene-start span::after { content: ""; position: absolute; margin-left: 12px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.scene-start:hover span { transform: scale(1.05); }
.scene.started .scene-start { display: none; }


/* ---------- launch offer ---------- */
.promo-bar { background: linear-gradient(90deg, #6D28D9, #DB2777 50%, #EA580C); color: #fff; font-size: 17px; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .15); }
.promo-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 20px; min-height: 68px; padding-block: 10px; text-align: center; }
.promo-tag { font-weight: 850; font-size: 15px; padding: 6px 14px; border-radius: 999px; background: #fff; color: #6D28D9; letter-spacing: .01em; }
.promo-price { font-weight: 650; }
.promo-price s { opacity: .8; text-decoration-thickness: 2px; margin-right: 2px; }
.promo-price b { font-size: 24px; font-weight: 900; letter-spacing: -.01em; }
.promo-code { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; }
.promo-count { font-weight: 800; font-variant-numeric: tabular-nums; padding: 5px 12px; border-radius: 10px; background: rgba(0, 0, 0, .2); }
.promo-go { font-weight: 800; color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.promo-go:hover { text-decoration-color: rgba(255, 255, 255, .6); }
.code-copy { display: inline-flex; align-items: center; gap: 8px; padding: 4px 5px 4px 12px; border-radius: 10px; border: 2px dashed rgba(255, 255, 255, .9); background: rgba(0, 0, 0, .18); color: #fff; cursor: pointer; font-size: 16px; }
.code-copy b { font-family: var(--mono); font-weight: 700; letter-spacing: .05em; background: none !important; padding: 0 !important; }
.code-copy .cc-hint { font-size: 13px; font-weight: 800; padding: 4px 10px; border-radius: 7px; background: #fff; color: var(--ink); font-family: var(--font); }
.code-copy.copied .cc-hint { background: #DDF7EE; color: #087A5E; }
.code-copy:hover { background: rgba(0, 0, 0, .28); }

/* prices: the crossed-out regular price sits before the launch price, the unit on its own line */
.price-tag, .pc-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; }
.price-tag s, .pc-price s { font-size: .48em; font-weight: 700; opacity: .7; text-decoration-thickness: .08em; }
.price-tag small, .pc-price small { font-size: .34em !important; font-weight: 750; letter-spacing: 0; margin: 0 0 0 -4px !important; opacity: .95; }
.btn s { opacity: .7; font-weight: 600; text-decoration-thickness: 2px; margin-right: 2px; }
.promo-line { margin-top: 12px; font-weight: 700; font-size: 15.5px; }
.cta-band .promo-line { color: #fff; }
.promo-line b { font-family: var(--mono); padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .22); }
@media (max-width: 760px) {
  .promo-bar { font-size: 15.5px; }
  .promo-in { gap: 8px 12px; padding-block: 12px; }
  .promo-price b { font-size: 21px; }
  .promo-go { width: 100%; }
}


/* ---- maintenance pop-up (switched on/off in site.js: MAINTENANCE_ON) ---- */
.maint { border: 0; padding: 0; background: transparent; max-width: min(92vw, 440px); width: 100%; }
.maint::backdrop { background: rgba(15, 18, 34, .55); backdrop-filter: blur(3px); }
.maint-in { background: var(--surface); color: var(--body); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 28px 26px; text-align: center; box-shadow: 0 30px 80px rgba(15, 18, 34, .28); font-family: var(--font); }
.maint-ico { display: block; font-size: 34px; line-height: 1; margin-bottom: 12px; }
.maint h2 { margin: 0 0 10px; color: var(--ink); font-size: 22px; line-height: 1.2; }
.maint p { margin: 0 0 22px; font-size: 16px; line-height: 1.55; }
.maint-ok { font: inherit; font-weight: 600; cursor: pointer; border: 0; border-radius: 999px; padding: 11px 34px; color: #fff; background: var(--ink); }
.maint-ok:hover { opacity: .88; }
.maint-ok:focus-visible { outline: 2px solid var(--ed-2); outline-offset: 3px; }
