/* appdigital.kz 2.23 — Fluent. One stylesheet for the home page, the articles and the policy.
   The site is built like a Windows 11 app: a Mica base tinted by a soft wallpaper glow, an acrylic header,
   cards and setting rows on layers above it, Fluent controls (segmented switch, pivot, expanders, info bars).
   Type is Segoe UI Variable where Windows has it, Onest elsewhere; the screenplay itself stays in a Courier-style mono. */

/* ——— Tokens ——— */
:root {
  color-scheme: light;
  --base: #F3F3F7;                 /* Mica base */
  --glow-1: rgba(122, 120, 236, .30); --glow-2: rgba(64, 176, 214, .20); --glow-3: rgba(236, 170, 120, .16);
  --layer: rgba(255, 255, 255, .55);  /* a layer on Mica (sections that group cards) */
  --card: rgba(255, 255, 255, .80);  /* card fill */
  --card-solid: #FFFFFF;
  --card-hover: rgba(255, 255, 255, .95);
  --subtle: rgba(0, 0, 0, .037);     /* subtle fill: hover of a quiet control */
  --subtle-2: rgba(0, 0, 0, .06);
  --stroke: rgba(0, 0, 0, .085);     /* card stroke */
  --stroke-strong: rgba(0, 0, 0, .16);
  --divider: rgba(0, 0, 0, .08);
  --text: #1B1B20;                   /* primary */
  --text-2: #55555F;                 /* secondary */
  --text-3: #6B6B75;                 /* tertiary, still 4.5:1 on the base */
  --accent: #5151CF;                 /* ScriptFly indigo, as the system accent */
  --accent-hover: #4545BE;
  --accent-press: #3C3CAA;
  --on-accent: #FFFFFF;
  --accent-text: #4141B8;            /* links and accent text on light layers */
  --accent-soft: rgba(81, 81, 207, .10);
  --accent-line: rgba(81, 81, 207, .38);
  --good: #0F7B4A; --warn: #9D5D00; --danger: #C42B1C;
  --acrylic: rgba(246, 246, 250, .72);
  --flyout: rgba(250, 250, 252, .92);
  --paper: #FFFFFF; --paper-ink: #111111; --paper-muted: #5D6273; --paper-line: #E2E4EA;
  --desk: #EDEDF2;                   /* the canvas behind a page inside the app window */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .04), 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-8: 0 8px 16px rgba(0, 0, 0, .10), 0 0 2px rgba(0, 0, 0, .06);
  --shadow-16: 0 16px 32px rgba(0, 0, 0, .12), 0 0 2px rgba(0, 0, 0, .08);
  --shadow-win: 0 32px 64px rgba(16, 16, 40, .22), 0 2px 21px rgba(16, 16, 40, .14), 0 0 0 1px rgba(0, 0, 0, .06);
  --btn-edge: inset 0 -1px 0 rgba(0, 0, 0, .14);       /* the darker bottom edge of a Fluent button */
  --btn-edge-quiet: inset 0 -1px 0 rgba(0, 0, 0, .10);
  --sans: "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", "Onest", system-ui, -apple-system, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", "Onest", system-ui, -apple-system, sans-serif;
  --mono: "Cousine", "Liberation Mono", "Courier New", monospace;
  --r-ctl: 6px; --r-card: 8px; --r-layer: 12px; --r-win: 10px;
  --header: 60px;
  --ease: cubic-bezier(0, 0, 0, 1);        /* Fluent «fast out, slow in» */
  --ease-point: cubic-bezier(.55, .55, 0, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --base: #1C1C21;
  --glow-1: rgba(110, 108, 230, .26); --glow-2: rgba(40, 140, 190, .16); --glow-3: rgba(200, 120, 80, .10);
  --layer: rgba(255, 255, 255, .035); --card: rgba(255, 255, 255, .055); --card-solid: #2A2A30; --card-hover: rgba(255, 255, 255, .08);
  --subtle: rgba(255, 255, 255, .06); --subtle-2: rgba(255, 255, 255, .09);
  --stroke: rgba(255, 255, 255, .085); --stroke-strong: rgba(255, 255, 255, .18); --divider: rgba(255, 255, 255, .08);
  --text: #FFFFFF; --text-2: #CFCFD8; --text-3: #A9A9B4;
  --accent: #A8A9FA; --accent-hover: #9A9BF2; --accent-press: #8D8EE6; --on-accent: #12122A;
  --accent-text: #B4B5FF; --accent-soft: rgba(168, 169, 250, .13); --accent-line: rgba(168, 169, 250, .42);
  --good: #6CCB8F; --warn: #FCC56B; --danger: #FF99A4;
  --acrylic: rgba(36, 36, 42, .74); --flyout: rgba(44, 44, 50, .94);
  --desk: #26262C;
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .26); --shadow-8: 0 8px 16px rgba(0, 0, 0, .32), 0 0 2px rgba(0, 0, 0, .3);
  --shadow-16: 0 16px 32px rgba(0, 0, 0, .4), 0 0 2px rgba(0, 0, 0, .35);
  --shadow-win: 0 32px 64px rgba(0, 0, 0, .55), 0 2px 21px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
  --btn-edge: inset 0 -1px 0 rgba(0, 0, 0, .28); --btn-edge-quiet: inset 0 1px 0 rgba(255, 255, 255, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --base: #1C1C21;
    --glow-1: rgba(110, 108, 230, .26); --glow-2: rgba(40, 140, 190, .16); --glow-3: rgba(200, 120, 80, .10);
    --layer: rgba(255, 255, 255, .035); --card: rgba(255, 255, 255, .055); --card-solid: #2A2A30; --card-hover: rgba(255, 255, 255, .08);
    --subtle: rgba(255, 255, 255, .06); --subtle-2: rgba(255, 255, 255, .09);
    --stroke: rgba(255, 255, 255, .085); --stroke-strong: rgba(255, 255, 255, .18); --divider: rgba(255, 255, 255, .08);
    --text: #FFFFFF; --text-2: #CFCFD8; --text-3: #A9A9B4;
    --accent: #A8A9FA; --accent-hover: #9A9BF2; --accent-press: #8D8EE6; --on-accent: #12122A;
    --accent-text: #B4B5FF; --accent-soft: rgba(168, 169, 250, .13); --accent-line: rgba(168, 169, 250, .42);
    --good: #6CCB8F; --warn: #FCC56B; --danger: #FF99A4;
    --acrylic: rgba(36, 36, 42, .74); --flyout: rgba(44, 44, 50, .94);
    --desk: #26262C;
    --shadow-2: 0 2px 4px rgba(0, 0, 0, .26); --shadow-8: 0 8px 16px rgba(0, 0, 0, .32), 0 0 2px rgba(0, 0, 0, .3);
    --shadow-16: 0 16px 32px rgba(0, 0, 0, .4), 0 0 2px rgba(0, 0, 0, .35);
    --shadow-win: 0 32px 64px rgba(0, 0, 0, .55), 0 2px 21px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08);
    --btn-edge: inset 0 -1px 0 rgba(0, 0, 0, .28); --btn-edge-quiet: inset 0 1px 0 rgba(255, 255, 255, .06);
  }
}

/* ——— Base ——— */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 400 16px/1.6 var(--sans);
  background-color: var(--base);
  /* Mica: the base takes a faint colour from the «wallpaper» behind the window and stays still while you scroll. */
  background-image:
    radial-gradient(900px 620px at 8% -6%, var(--glow-1), transparent 70%),
    radial-gradient(760px 560px at 102% 18%, var(--glow-2), transparent 70%),
    radial-gradient(820px 600px at 60% 108%, var(--glow-3), transparent 72%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
svg use { pointer-events: none; }
svg:not([fill]) { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
a { color: var(--accent-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 14px; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -.01em; }
b, strong { font-weight: 600; }
kbd { display: inline-block; font: 500 12.5px/1 var(--sans); color: var(--text); background: var(--card-solid); border: 1px solid var(--stroke); border-bottom-color: var(--stroke-strong); border-radius: 4px; padding: 5px 8px; white-space: nowrap; }
code { font: 400 .92em var(--mono); }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; box-shadow: 0 0 0 4px var(--base); }
.visually-hidden { position: absolute; 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(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: var(--r-ctl); font-weight: 600; text-decoration: none; transition: top .15s var(--ease); }
.skip:focus { top: 12px; }
.wrap { width: min(1200px, 100% - 48px); margin-inline: auto; }
@media (max-width: 560px) { .wrap { width: calc(100% - 32px); } }

/* ——— Buttons (Fluent: 6px corners, a darker bottom edge, accent for the main action) ——— */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 18px;
  font: 600 15px/1.2 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  color: var(--on-accent); background: var(--accent); border: 1px solid transparent; border-radius: var(--r-ctl);
  box-shadow: var(--btn-edge); transition: background-color .12s var(--ease), color .12s var(--ease);
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { background: var(--accent-press); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; stroke-width: 1.8; }
.btn.alt { color: var(--text); background: var(--card); border-color: var(--stroke); box-shadow: var(--btn-edge-quiet); }
.btn.alt:hover { background: var(--card-hover); }
.btn.alt:active { background: var(--subtle); color: var(--text-2); }
.btn.sm { min-height: 32px; padding: 5px 14px; font-size: 14px; }
.link-btn { font: 500 14px/1 var(--sans); color: var(--accent-text); background: none; border: 0; padding: 8px 6px; border-radius: 4px; cursor: pointer; }
.link-btn:hover { background: var(--subtle); }

/* ——— Header: acrylic over the page ——— */
.bar { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid transparent; transition: background-color .2s var(--ease), border-color .2s var(--ease); }
.bar.scrolled, .bar.open, body:not(.home) .bar { background: var(--acrylic); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); border-bottom-color: var(--divider); }
.top { height: var(--header); display: flex; align-items: center; gap: 16px; }
.lockup { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font: 600 15px/1 var(--sans); margin-right: auto; white-space: nowrap; }
.lockup .x { color: var(--text-3); font-weight: 400; }
.lockup .product { font-weight: 600; }
.app-ico { width: 26px; height: 26px; border-radius: 7px; flex: none; position: relative;
  background: linear-gradient(145deg, #7B7BF0, #4747C4 60%, #3B3BA8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(20, 20, 60, .3); }
.app-ico::before { content: ""; position: absolute; left: 7px; top: 5px; width: 12px; height: 16px; border-radius: 2px; background: #fff; }
.app-ico::after { content: ""; position: absolute; left: 9.5px; top: 9px; width: 7px; height: 1.6px; border-radius: 1px; background: #5151CF; box-shadow: 0 3.5px 0 #9A9AE8, 0 7px 0 #9A9AE8; }
.app-ico.sm { width: 16px; height: 16px; border-radius: 4px; }
.app-ico.sm::before { left: 4px; top: 3px; width: 8px; height: 10px; }
.app-ico.sm::after { left: 5.5px; top: 5.5px; width: 5px; height: 1px; box-shadow: 0 2.2px 0 #9A9AE8, 0 4.4px 0 #9A9AE8; }
#nav { display: flex; align-items: center; gap: 2px; }
#nav a { color: var(--text); text-decoration: none; font: 400 14.5px/1 var(--sans); padding: 10px 12px; border-radius: var(--r-ctl); transition: background-color .1s var(--ease); }
#nav a:hover { background: var(--subtle); }
#nav a:active { background: var(--subtle-2); color: var(--text-2); }
#nav a.nav-cta { color: var(--on-accent); background: var(--accent); font-weight: 600; margin-left: 8px; box-shadow: var(--btn-edge); }
#nav a.nav-cta:hover { background: var(--accent-hover); }
.tools { display: flex; align-items: center; gap: 4px; }
.theme-btn, .menu-btn { min-width: 40px; height: 40px; display: inline-grid; place-items: center; color: var(--text); background: transparent; border: 0; border-radius: var(--r-ctl); cursor: pointer; }
.theme-btn:hover, .menu-btn:hover { background: var(--subtle); }
.theme-btn svg { grid-area: 1 / 1; }
.theme-btn .i-light, .theme-btn .i-dark { display: none; }
.theme-btn[data-mode="light"] .i-auto, .theme-btn[data-mode="dark"] .i-auto { display: none; }
.theme-btn[data-mode="light"] .i-light, .theme-btn[data-mode="dark"] .i-dark { display: block; }
.menu-btn { display: none; grid-auto-flow: column; gap: 8px; padding: 0 12px; font: 400 14px/1 var(--sans); }
.menu-btn i { width: 16px; height: 10px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; position: relative; }
.menu-btn i::after { content: ""; position: absolute; left: 0; right: 0; top: 3.5px; border-top: 1.5px solid currentColor; }
@media (max-width: 900px) {
  .menu-btn { display: inline-grid; }
  #nav { position: absolute; top: calc(var(--header) + 4px); right: 12px; left: auto; width: min(300px, calc(100vw - 24px)); flex-direction: column; align-items: stretch; gap: 2px; padding: 6px;
    background: var(--flyout); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
    border: 1px solid var(--stroke); border-radius: var(--r-card); box-shadow: var(--shadow-16);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .15s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
  .bar.open #nav { opacity: 1; visibility: visible; transform: none; transition: opacity .15s var(--ease), transform .25s var(--ease); }
  #nav a { padding: 12px 12px; font-size: 15px; }
  #nav a.nav-cta { margin: 6px 0 0; text-align: center; }
  html:not(.js) #nav { position: static; opacity: 1; visibility: visible; transform: none; flex-direction: row; flex-wrap: wrap; width: auto; background: none; border: 0; box-shadow: none; }
}
@media (max-width: 420px) { .lockup .studio, .lockup .x { display: none; } .menu-btn span { display: none; } }

/* ——— Hero ——— */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px) 0 clamp(40px, 6vw, 72px); }
.hero-by { font: 600 14px/1.2 var(--sans); color: var(--accent-text); margin: 0 0 10px; }
.hero h1 { font: 600 clamp(52px, 8vw, 88px)/1 var(--display); letter-spacing: -.035em; margin: 0; }
.hero-sub { font: 600 clamp(20px, 2.4vw, 26px)/1.25 var(--display); letter-spacing: -.01em; margin: 12px 0 14px; }
.hero-lead { font-size: clamp(16px, 1.6vw, 18px); line-height: 1.6; color: var(--text-2); margin: 0 0 24px; max-width: 46ch; }
.choose { display: grid; gap: 10px; }
.os-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-card); box-shadow: var(--shadow-2); }
.os-card .os-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.os-card .os-ico { color: var(--text); flex: none; }
.os-card h2 { font: 600 16px/1.25 var(--sans); letter-spacing: 0; }
.os-card .ver { margin: 2px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.os-card .btn { grid-column: 2; grid-row: 1; min-height: 36px; padding: 6px 14px; font-size: 14px; }
.os-card .note { grid-column: 1 / -1; margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--text-3); }
.os-card .yours-tag { display: none; position: absolute; top: -9px; right: 12px; font: 600 11px/1 var(--sans); color: var(--on-accent); background: var(--accent); padding: 4px 8px; border-radius: 999px; }
.os-card.yours { border-color: var(--accent-line); box-shadow: var(--shadow-8); }
.os-card.yours .yours-tag { display: block; }
.os-card:not(.yours) .btn { color: var(--text); background: var(--card); border-color: var(--stroke); box-shadow: var(--btn-edge-quiet); }
.os-card:not(.yours) .btn:hover { background: var(--card-hover); }
html:not(.js) .os-card .btn, .choose:not(:has(.yours)) .os-card .btn { color: var(--on-accent); background: var(--accent); border-color: transparent; box-shadow: var(--btn-edge); }
@media (max-width: 1020px) { .hero { grid-template-columns: 1fr; } .hero-text { max-width: 640px; } }
@media (max-width: 480px) { .os-card { grid-template-columns: 1fr; } .os-card .btn { grid-column: 1; grid-row: auto; margin-top: 8px; } }

/* The app window (Windows 11): Mica title bar, NavigationView on the left, a command bar, the page on a desk. */
.win11 { position: relative; border-radius: var(--r-win); overflow: hidden; background: var(--base); box-shadow: var(--shadow-win); isolation: isolate; animation: win-in .9s var(--ease) both .1s; }
.win11::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(120% 80% at 0% 0%, var(--glow-1), transparent 60%), radial-gradient(80% 60% at 100% 0%, var(--glow-2), transparent 70%); opacity: .7; }
@keyframes win-in { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.w-title { height: 40px; display: flex; align-items: center; justify-content: space-between; padding-left: 14px; font: 400 12px/1 var(--sans); color: var(--text-2); }
.w-app { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-ctrls { display: flex; height: 100%; }
.w-ctrls i { width: 46px; height: 100%; position: relative; }
.w-ctrls i::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.w-ctrls .min::before { width: 10px; border-top: 1px solid currentColor; }
.w-ctrls .max::before { width: 9px; height: 9px; border: 1px solid currentColor; border-radius: 2px; }
.w-ctrls .cls::before, .w-ctrls .cls::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; border-top: 1px solid currentColor; }
.w-ctrls .cls::before { transform: translate(-50%, -50%) rotate(45deg); } .w-ctrls .cls::after { transform: translate(-50%, -50%) rotate(-45deg); }
.w-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 520px; }
.w-rail { display: flex; flex-direction: column; gap: 2px; padding: 4px 6px 8px; }
.w-rail span { position: relative; display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 12px; border-radius: var(--r-ctl); font: 400 13px/1 var(--sans); color: var(--text); }
.w-rail span svg { width: 18px; height: 18px; flex: none; }
.w-rail span em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w-rail span.on { background: var(--subtle-2); }
.w-rail span.on::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: var(--accent); }
.w-rail span.end { margin-top: auto; }
.w-main { display: flex; flex-direction: column; min-width: 0; background: var(--layer); border-top-left-radius: var(--r-card); border-top: 1px solid var(--stroke); border-left: 1px solid var(--stroke); }
.w-cmd { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px; border-bottom: 1px solid var(--divider); font: 400 13px/1 var(--sans); color: var(--text); white-space: nowrap; overflow: hidden; }
.w-cmd .w-pick { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 10px; background: var(--card); border: 1px solid var(--stroke); border-radius: 5px; box-shadow: var(--btn-edge-quiet); }
.w-cmd .w-pick svg { width: 12px; height: 12px; }
.w-cmd b, .w-cmd i, .w-cmd u { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 5px; font-family: var(--sans); }
.w-cmd b { background: var(--subtle); }
.w-cmd .w-sep { width: 1px; height: 18px; background: var(--divider); margin: 0 6px; }
.w-cmd .w-meta { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; }
.w-desk { flex: 1; background: var(--desk); padding: 22px clamp(14px, 3vw, 34px) 0; overflow: hidden; }
.w-status { display: flex; gap: 18px; align-items: center; height: 30px; padding: 0 14px; border-top: 1px solid var(--divider); font: 400 12px/1 var(--sans); color: var(--text-2); }
.w-status .ok { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--good); }
.w-status .ok svg { width: 14px; height: 14px; stroke-width: 2; }
@media (max-width: 700px) {
  .w-body { grid-template-columns: 48px minmax(0, 1fr); min-height: 0; }
  .w-rail span { padding: 0; justify-content: center; } .w-rail span em { display: none; }
  .w-cmd .w-meta, .w-cmd .w-sep, .w-cmd u { display: none; }
}

/* ——— The screenplay page (shared by the hero window, the draft and the studio page) ——— */
.page, .sb-page, .cast { position: relative; background: var(--paper); color: var(--paper-ink); font: 400 15px/1.55 var(--mono); }
.page { border-radius: 4px 4px 0 0; padding: 52px 40px 30px 104px; min-height: 100%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .08); }
.page-no { position: absolute; top: 22px; right: 30px; color: #4A4A50; }
.sp { margin: 0; min-height: 1.55em; white-space: pre-wrap; position: relative; }
.sp .r { visibility: hidden; }
.sp.heading { font-weight: 700; margin-bottom: 1.55em; }
.sp.act { margin-bottom: 1.55em; max-width: 40ch; }
.sp.character { margin-left: 36%; }
.sp.paren { margin-left: 24%; max-width: 27ch; }
.sp.dialogue { margin-left: 16%; max-width: 30ch; margin-bottom: 1.55em; }
.sp.transition { text-align: right; margin-bottom: 1.55em; }
.caret { display: inline-block; position: relative; width: 0; height: 1.15em; vertical-align: -.2em; animation: blink 1.05s steps(1) infinite; }
.caret::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: #5151CF; }
@keyframes blink { 50% { opacity: 0; } }
.margin-tag { position: absolute; left: 12px; width: 78px; top: 52px; font: 600 11px/1.25 var(--sans); color: #5A5F70; text-align: right; transition: top .35s var(--ease); pointer-events: none; }
.margin-tag::after { content: ""; position: absolute; right: -9px; top: 1px; width: 3px; height: 12px; border-radius: 2px; background: #5151CF; }
@media (max-width: 760px) {
  .page { padding: 42px 14px 22px 64px; font-size: 12.5px; }
  .page-no { right: 14px; top: 16px; }
  .margin-tag { left: 2px; width: 54px; font-size: 9.5px; top: 42px; }
  .sp.character { margin-left: 30%; } .sp.dialogue { margin-left: 10%; }
}

/* ——— What's new ——— */
.whatsnew { background: var(--layer); border: 1px solid var(--stroke); border-radius: var(--r-layer); padding: clamp(20px, 3vw, 28px); box-shadow: var(--shadow-2); }
.wn-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 16px; }
.wn-head h2 { font: 600 22px/1.25 var(--display); }
.wn-date { font-size: 14px; color: var(--text-2); }
.wn-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.wn-list li { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-card); }
.wn-list svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); margin-top: 1px; }
.wn-list li.soon svg { color: var(--text-2); }
.wn-list b { display: block; font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.wn-list span { display: block; font-size: 14px; line-height: 1.5; color: var(--text-2); }

/* ——— Sections ——— */
.scene { padding-top: clamp(64px, 9vw, 112px); }
.sec-head { max-width: 760px; margin-bottom: 28px; }
.sec-head h2 { font: 600 clamp(28px, 3.6vw, 40px)/1.15 var(--display); letter-spacing: -.025em; }
.sec-head p { margin: 12px 0 0; font-size: clamp(16px, 1.5vw, 18px); color: var(--text-2); max-width: 62ch; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.fine { font-size: 14px; color: var(--text-3); line-height: 1.55; }
.stamp { display: inline-flex; align-items: center; vertical-align: 3px; margin-left: 6px; font: 600 11px/1 var(--sans); letter-spacing: .02em; color: var(--text-2); background: var(--subtle-2); padding: 4px 7px; border-radius: 999px; }
.stamp.new { color: var(--on-accent); background: var(--accent); }

/* ——— Editor and the draft ——— */
.sandbox { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.sandbox-text h3 { font: 600 20px/1.3 var(--display); margin-bottom: 10px; }
.sandbox-text p { color: var(--text-2); }
.sandbox-text p kbd { vertical-align: 1px; }
.sandbox-text .fine { margin-top: 18px; }
.sb-card { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-layer); box-shadow: var(--shadow-8); overflow: hidden; }
.sb-types { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-bottom: 1px solid var(--divider); }
.sb-types button { font: 400 13.5px/1 var(--sans); color: var(--text); background: transparent; border: 1px solid transparent; border-radius: var(--r-ctl); padding: 9px 11px; cursor: pointer; position: relative; }
.sb-types button:hover { background: var(--subtle); }
.sb-types button[aria-pressed="true"] { background: var(--subtle-2); font-weight: 600; }
.sb-types button[aria-pressed="true"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 16px; height: 3px; margin-left: -8px; border-radius: 2px; background: var(--accent); }
.sb-desk { background: var(--desk); padding: 18px 18px 0; }
.sb-page { border-radius: 4px 4px 0 0; padding: 44px 32px 30px 104px; min-height: 340px; max-height: 480px; overflow-y: auto; cursor: text; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .08); }
.sb-page .margin-tag { top: 44px; }
.sb-line { position: relative; display: block; }
.sb-input { display: block; width: 100%; border: 0; outline: 0; background: transparent; color: inherit; font: inherit; padding: 0; caret-color: #5151CF; }
.sb-input::placeholder { color: #80869A; }
.sb-line.heading .sb-input, .sb-line.character .sb-input, .sb-line.transition .sb-input { text-transform: uppercase; }
.sb-line.heading .sb-input { font-weight: 700; }
.sb-line.character { margin-left: 36%; } .sb-line.paren { margin-left: 24%; max-width: 27ch; } .sb-line.dialogue { margin-left: 16%; max-width: 30ch; }
.sb-line.transition .sb-input { text-align: right; }
.sb-page:focus-within { box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .08), inset 0 -2px 0 #5151CF; }
.sb-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; font-size: 13.5px; color: var(--text-2); border-top: 1px solid var(--divider); }
@media (max-width: 900px) { .sandbox { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .sb-desk { padding: 10px 10px 0; } .sb-page { padding: 34px 14px 22px 62px; font-size: 12.5px; } .sb-page .margin-tag { left: 2px; width: 52px; font-size: 9.5px; top: 34px; } .sb-line.character { margin-left: 30%; } .sb-line.dialogue { margin-left: 10%; } }

/* ——— Features: grouped like Windows Settings ——— */
.acts { display: grid; gap: 34px; }
.actgroup { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 14px 28px; align-items: start; }
.act-head { position: sticky; top: calc(var(--header) + 20px); font: 600 20px/1.25 var(--display); }
.act-head b { display: block; font: 600 12.5px/1 var(--sans); letter-spacing: .02em; color: var(--accent-text); margin-bottom: 8px; }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.feature { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-card); transition: background-color .12s var(--ease); }
.feature:hover { background: var(--card-hover); }
.feature .f-ico, .me-card .f-ico { width: 24px; height: 24px; flex: none; color: var(--accent-text); margin-top: 2px; }
.feature h4 { font: 600 16px/1.35 var(--sans); letter-spacing: 0; margin: 0 0 6px; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--text-2); }
.feature .keys { margin-top: 12px; }
.formats { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 12px !important; }
.formats span { font: 600 11.5px/1 var(--mono); color: var(--text); background: var(--subtle); border: 1px solid var(--stroke); border-radius: 4px; padding: 5px 7px; }
@media (max-width: 1020px) { .actgroup { grid-template-columns: 1fr; } .act-head { position: static; display: flex; align-items: baseline; gap: 10px; } .act-head b { margin: 0; } }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } .feature { padding: 16px; } }

/* ——— Info bars ——— */
.infobar { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; margin: 16px 0; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-card); }
.infobar > svg { width: 20px; height: 20px; flex: none; color: var(--accent-text); margin-top: 2px; }
.infobar p { margin: 0; font-size: 15px; line-height: 1.55; }
.infobar.accent { background: var(--accent-soft); border-color: var(--accent-line); }

/* ——— Mac ——— */
.mac { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(22px, 4vw, 40px); background: var(--layer); border: 1px solid var(--stroke); border-radius: var(--r-layer); }
.mac-date { font: 600 13.5px/1.2 var(--sans); color: var(--text-2); margin: 0 0 8px; }
.mac-head { font: 600 clamp(24px, 3vw, 32px)/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 14px; }
.mac-text > p { color: var(--text-2); }
.mac-text > p strong { color: var(--text); }
.ticks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 10px; height: 6px; border-left: 1.8px solid var(--accent-text); border-bottom: 1.8px solid var(--accent-text); transform: rotate(-45deg); }
.mac-text .btn { margin: 4px 0 6px; }
.sign { font-style: italic; color: var(--text-2); margin-top: 16px; }
@media (max-width: 960px) { .mac { grid-template-columns: 1fr; } }
/* the Mac window, in Liquid Glass */
.glass-stage { position: relative; border-radius: 16px; padding: 16px; aspect-ratio: 16 / 11; overflow: hidden; background: radial-gradient(60% 70% at 15% 10%, rgba(116, 114, 242, .55), transparent 70%), radial-gradient(55% 60% at 90% 95%, rgba(20, 184, 166, .42), transparent 70%), linear-gradient(135deg, #DDE0EE, #C9CEE3); box-shadow: var(--shadow-8); }
:root[data-theme="dark"] .glass-stage { background: radial-gradient(60% 70% at 15% 10%, rgba(116, 114, 242, .4), transparent 70%), radial-gradient(55% 60% at 90% 95%, rgba(20, 184, 166, .3), transparent 70%), linear-gradient(135deg, #1A1D2A, #11131B); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .glass-stage { background: radial-gradient(60% 70% at 15% 10%, rgba(116, 114, 242, .4), transparent 70%), radial-gradient(55% 60% at 90% 95%, rgba(20, 184, 166, .3), transparent 70%), linear-gradient(135deg, #1A1D2A, #11131B); } }
.gwin { position: absolute; inset: 16px; display: grid; grid-template-columns: 30% minmax(0, 1fr); grid-template-rows: 30px minmax(0, 1fr) 52px; gap: 8px; }
.glass { background: rgba(255, 255, 255, .42); -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5); border: 1px solid rgba(255, 255, 255, .6); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 8px 24px -14px rgba(20, 22, 50, .45); }
.g-side { grid-row: 1 / 4; border-radius: 16px; padding: 30px 8px 8px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.g-lights { position: absolute; top: 10px; left: 12px; display: flex; gap: 5px; }
.g-lights i { width: 8px; height: 8px; border-radius: 50%; background: #FF5F57; } .g-lights i:nth-child(2) { background: #FEBC2E; } .g-lights i:nth-child(3) { background: #28C840; }
.g-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.g-tiles span { overflow: hidden; min-width: 0; aspect-ratio: 1.15; border-radius: 7px; background: rgba(255, 255, 255, .3); display: grid; place-items: center; font: 600 7.5px/1 var(--sans); color: #30344A; }
.g-tiles span.on { background: rgba(81, 81, 207, .24); outline: 1px solid rgba(81, 81, 207, .5); }
.g-scenes { display: grid; gap: 5px; margin-top: 4px; }
.g-scenes b { height: 6px; border-radius: 3px; background: rgba(48, 52, 74, .28); }
.g-scenes b:nth-child(2) { width: 75%; background: rgba(81, 81, 207, .55); } .g-scenes b:nth-child(3) { width: 85%; } .g-scenes b:nth-child(4) { width: 60%; } .g-scenes b:nth-child(5) { width: 80%; }
.g-bar { border-radius: 15px; display: flex; align-items: center; gap: 6px; padding: 0 8px; }
.g-bar i { width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, .4); }
.g-bar em { flex: 1; text-align: center; font: 600 9px/1 var(--sans); font-style: normal; color: #30344A; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-page { background: #fff; color: #111; border-radius: 10px; padding: 8% 9% 0 14%; font: 400 clamp(6.5px, .8vw, 9px)/1.6 var(--mono); overflow: hidden; box-shadow: 0 6px 18px -10px rgba(20, 22, 50, .5); }
.g-page p { margin: 0 0 1.6em; }
.g-page .h { font-weight: 700; } .g-page .c { margin: 0 0 0 34%; } .g-page .d { margin-left: 16%; max-width: 70%; }
.g-time { border-radius: 14px; display: flex; align-items: center; gap: 3px; padding: 0 10px; }
.g-time b { height: 14px; border-radius: 3px; background: rgba(81, 81, 207, .6); flex: 2; } .g-time b:nth-child(2) { background: rgba(20, 184, 166, .65); flex: 4; } .g-time b:nth-child(3) { background: rgba(20, 184, 166, .45); flex: 3; } .g-time b:nth-child(4) { background: rgba(245, 158, 11, .6); flex: 2; }

/* ——— Expander (FAQ, the Mac beta note) ——— */
.expander { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-card); }
.expander summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 16px; cursor: pointer; font: 600 15.5px/1.4 var(--sans); border-radius: var(--r-card); }
.expander summary::-webkit-details-marker { display: none; }
.expander summary:hover { background: var(--subtle); }
.expander summary svg { width: 16px; height: 16px; flex: none; color: var(--text-2); transition: transform .25s var(--ease); }
.expander[open] summary svg { transform: rotate(180deg); }
.expander[open] summary { border-bottom: 1px solid var(--divider); border-radius: var(--r-card) var(--r-card) 0 0; }
.expander > :not(summary) { margin: 0; padding: 14px 16px 0; color: var(--text-2); }
.expander > :last-child { padding-bottom: 16px; }
.expander > p + p { padding-top: 10px; }
.mac-old { margin-top: 14px; }
.mac-old ol { padding-left: 38px; }
.mac-old li { margin-bottom: 4px; }

/* ——— Download ——— */
.tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 20px; background: var(--subtle); border: 1px solid var(--stroke); border-radius: 8px; }
.tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 16px; font: 400 14.5px/1 var(--sans); color: var(--text-2); background: transparent; border: 1px solid transparent; border-radius: var(--r-ctl); cursor: pointer; position: relative; }
.tabs button:hover { color: var(--text); background: var(--subtle); }
.tabs button[aria-selected="true"] { color: var(--text); background: var(--card-solid); border-color: var(--stroke); box-shadow: var(--shadow-1); font-weight: 600; }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 3px; margin-left: -8px; border-radius: 2px; background: var(--accent); }
.install { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(20px, 3vw, 36px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 4px; }
.steps > li { counter-increment: step; position: relative; padding: 16px 18px 16px 64px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-card); }
.steps > li::before { content: counter(step); position: absolute; left: 18px; top: 15px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font: 600 14px/1 var(--sans); color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.steps h3 { font: 600 16px/1.35 var(--sans); letter-spacing: 0; margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--text-2); font-size: 15px; }
.smartscreen { margin-top: 12px; background: #0B57B8; color: #fff; border-radius: 8px; padding: 16px 18px; font: 400 14px/1.45 "Segoe UI", var(--sans); max-width: 420px; box-shadow: var(--shadow-8); }
.smartscreen b { display: block; font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.smartscreen .ss-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }
.smartscreen .ss-btn { border: 1px solid rgba(255, 255, 255, .75); padding: 5px 12px; border-radius: 4px; font-size: 13px; }
.gatekeeper { margin-top: 12px; background: #ECECEC; color: #1d1d1f; border-radius: 12px; padding: 14px 16px; font: 400 13.5px/1.45 -apple-system, "SF Pro Text", var(--sans); max-width: 420px; border: 1px solid #D6D6D6; }
.gatekeeper b { display: block; font-size: 14px; margin-bottom: 4px; }
.gatekeeper .gk-row { display: flex; justify-content: flex-end; margin-top: 10px; }
.gatekeeper .gk-btn { background: #fff; border: 1px solid #C8C8C8; border-radius: 6px; padding: 3px 12px; font-size: 13px; }
.req-card { position: sticky; top: calc(var(--header) + 20px); padding: 20px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-layer); box-shadow: var(--shadow-8); display: grid; gap: 10px; }
.req-card h3 { font: 600 18px/1.3 var(--display); }
.platform h4 { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font: 600 15px/1.3 var(--sans); letter-spacing: 0; margin: 8px 0 8px; }
.platform h4 .state { font-weight: 400; font-size: 13px; color: var(--good); }
.req { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; margin: 0 0 6px; font-size: 14px; }
.req dt { color: var(--text-2); } .req dd { margin: 0; }
.req-card .btn { width: 100%; }
.checksum { font-size: 12.5px; color: var(--text-2); margin: 4px 0 0; overflow-wrap: anywhere; }
@media (max-width: 960px) { .install { grid-template-columns: 1fr; } .req-card { position: static; } }
@media (max-width: 480px) { .steps > li { padding: 14px 14px 14px 56px; } .steps > li::before { left: 14px; } }

/* ——— Pricing ——— */
.promo { align-items: center; margin: 0 0 18px; }
.promo p { flex: 1; }
.tickets { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; align-items: stretch; }
.ticket { display: flex; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-layer); box-shadow: var(--shadow-2); overflow: hidden; }
.ticket.pro { border-color: var(--accent-line); box-shadow: var(--shadow-8); position: relative; }
.ticket.pro::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--accent); }
.t-body { flex: 1; padding: 26px 28px; display: flex; flex-direction: column; }
.t-kick { font: 600 13px/1 var(--sans); color: var(--accent-text); }
.ticket.free .t-kick { color: var(--text-2); }
.t-name { font: 600 26px/1.2 var(--display); margin: 10px 0 0; }
.t-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 18px 0 4px; }
.t-price b { font: 600 clamp(40px, 5vw, 52px)/1 var(--display); letter-spacing: -.03em; }
.t-price b.tick { display: inline-block; animation: tick .45s var(--ease); }
@keyframes tick { from { opacity: 0; transform: translateY(10px); } }
.t-price span { font-size: 16px; color: var(--text-2); }
.t-price .cur { font: 600 .6em/1 var(--display); font-style: normal; margin-left: .15em; }
.t-note { min-height: 1.5em; font-size: 14.5px; color: var(--text-2); margin: 0; }
.t-note b { color: var(--good); }
.t-list { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 9px; font-size: 15px; line-height: 1.45; }
.t-list li { position: relative; padding-left: 26px; }
.t-list li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 11px; height: 6px; border-left: 1.8px solid var(--accent-text); border-bottom: 1.8px solid var(--accent-text); transform: rotate(-45deg); }
.t-list li.limit { color: var(--text-2); }
.t-list li.limit::before { width: 10px; height: 0; border-left: 0; border-bottom-color: var(--text-3); transform: none; top: 11px; }
.t-body .btn { margin-top: auto; }
.t-after { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--text-2); text-align: center; }
.period { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; margin: 16px 0 0; background: var(--subtle); border: 1px solid var(--stroke); border-radius: 8px; align-self: flex-start; }
.period button { font: 400 14px/1 var(--sans); color: var(--text-2); background: transparent; border: 1px solid transparent; border-radius: var(--r-ctl); padding: 9px 14px; cursor: pointer; position: relative; }
.period button:hover { color: var(--text); background: var(--subtle); }
.period button[aria-checked="true"] { color: var(--text); background: var(--card-solid); border-color: var(--stroke); box-shadow: var(--shadow-1); font-weight: 600; }
.period .save { font: 600 11px/1 var(--sans); color: var(--good); margin-left: 4px; }
.stub { flex: 0 0 168px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; padding: 24px 20px; background: var(--accent-soft); border-left: 1px solid var(--accent-line); }
.stub .l { font: 600 13px/1.35 var(--sans); color: var(--text-2); }
.stub .pct { font: 600 34px/1.1 var(--display); color: var(--accent-text); letter-spacing: -.02em; }
.stub .sp-price { font: 600 19px/1.3 var(--sans); }
.stub .sp-per { font-size: 13px; color: var(--text-2); }
.stub a { margin-top: 10px; font-size: 14px; font-weight: 600; }
.compare { margin-top: 22px; padding: 22px 24px; background: var(--layer); border: 1px solid var(--stroke); border-radius: var(--r-layer); }
.compare h3 { font: 600 18px/1.3 var(--display); margin-bottom: 12px; }
.table-scroll { overflow-x: auto; border-radius: var(--r-card); background: var(--card); border: 1px solid var(--stroke); }
.table-scroll:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
th, td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--divider); vertical-align: top; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { font-weight: 600; font-size: 13px; color: var(--text-2); background: var(--subtle); }
tbody th { font-weight: 400; }
td.yes { color: var(--good); font-weight: 600; }
td.no { color: var(--text-3); }
.compare .fine { margin: 14px 0 0; }
@media (max-width: 900px) { .tickets { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .ticket.pro { flex-direction: column; } .stub { flex-basis: auto; border-left: 0; border-top: 1px solid var(--accent-line); } .t-body { padding: 22px 18px; } .compare { padding: 16px; } }

/* ——— History ——— */
.sweets { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.batch { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-layer); overflow: hidden; }
.batch-name { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--divider); }
.batch-name::before { content: ""; width: 28px; height: 28px; border-radius: 7px; flex: none; background: var(--swatch); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .3); }
.batch-name b { font: 600 18px/1.2 var(--display); }
.batch-name span { margin-left: auto; font-size: 13px; color: var(--text-2); }
.b-amaretti { --swatch: linear-gradient(#E8B47C, #C98A4B); } .b-brownie { --swatch: linear-gradient(#8A5A34 0 30%, #5B3418 30%); }
.versions { list-style: none; margin: 0; padding: 6px; }
.versions li { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; padding: 9px 14px; border-radius: var(--r-ctl); }
.versions li:hover { background: var(--subtle); }
.versions .v { font: 600 13px/1.6 var(--mono); color: var(--text-2); }
.versions p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.versions li.now { background: var(--accent-soft); position: relative; }
.versions li.now::before { content: ""; position: absolute; left: 0; top: 50%; width: 3px; height: 16px; margin-top: -8px; border-radius: 2px; background: var(--accent); }
.versions li.now .v { color: var(--accent-text); }
.sweets-hint { margin: 16px 0 0; font-size: 14px; color: var(--text-3); }
@media (max-width: 860px) { .sweets { grid-template-columns: 1fr; } }

/* ——— Studio ——— */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.cast-card { background: var(--desk); border: 1px solid var(--stroke); border-radius: var(--r-layer); padding: clamp(12px, 2vw, 22px); }
.cast { border-radius: 4px; padding: 40px 36px 30px 104px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 6px 18px rgba(0, 0, 0, .08); }
.cast .margin-tag { top: 40px; }
.cast .monogram { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font: 600 21px/1 var(--sans); background: linear-gradient(145deg, #7B7BF0, #4747C4); color: #fff; margin-bottom: 20px; }
.cast .sp.act { max-width: none; }
.cast .sp.character { margin-left: 34%; margin-bottom: 0; }
.cast .sp.paren { margin-left: 24%; }
.cast .sp.dialogue { margin-left: 14%; max-width: 34ch; }
html:not(.js) .cast .margin-tag { display: none; }
.studio-text > p { color: var(--text-2); font-size: 16.5px; }
.studio-text h3 { font: 600 20px/1.3 var(--display); margin: 22px 0 12px; }
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.principles li { padding: 12px 14px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-card); font-size: 15px; line-height: 1.55; color: var(--text-2); }
.principles b { color: var(--text); }
.me { margin-top: 36px; }
.me-stats { list-style: none; margin: 0 0 34px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: var(--layer); border: 1px solid var(--stroke); border-radius: var(--r-layer); overflow: hidden; }
.me-stats li { padding: 18px 20px; border-left: 1px solid var(--divider); }
.me-stats li:first-child { border-left: 0; }
.me-stats b { display: block; font: 600 clamp(32px, 4vw, 42px)/1 var(--display); letter-spacing: -.02em; color: var(--accent-text); }
.me-stats span { display: block; margin-top: 6px; font-size: 14px; color: var(--text-2); line-height: 1.4; }
.me-h { font: 600 20px/1.3 var(--display); margin: 0 0 12px; }
.me-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 30px; }
.me-card { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 4px 14px; padding: 16px 18px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-card); }
.me-card .f-ico { grid-row: 1 / 3; }
.me-card b { font-size: 15.5px; }
.me-card p { margin: 0; font-size: 14.5px; color: var(--text-2); line-height: 1.5; }
.me-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.me-note { padding: 22px 24px; background: var(--layer); border: 1px solid var(--stroke); border-radius: var(--r-layer); }
.me-note h3 { font: 600 18px/1.3 var(--display); margin-bottom: 10px; }
.me-note p { color: var(--text-2); font-size: 15px; }
.me-next { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 4px; }
.me-next li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 12px; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-ctl); font-size: 14.5px; }
.me-next span { color: var(--text-2); }
.me-cta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
@media (max-width: 960px) { .about, .me-cols { grid-template-columns: 1fr; } .me-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .me-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } .me-stats li:nth-child(4) { border-left: 0; } .me-stats li:nth-child(n+4) { border-top: 1px solid var(--divider); } }
@media (max-width: 600px) {
  .cast { padding: 30px 16px 22px 18px; font-size: 13px; } .cast .sp.character { margin-left: 28%; } .cast .sp.dialogue { margin-left: 8%; } .cast .margin-tag { display: none; }
  .me-grid { grid-template-columns: 1fr; } .me-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .me-stats li { border-left: 0; border-top: 1px solid var(--divider); } .me-stats li:nth-child(even) { border-left: 1px solid var(--divider); } .me-stats li:nth-child(-n+2) { border-top: 0; }
  .me-next li { grid-template-columns: 1fr; gap: 2px; }
}

/* ——— FAQ ——— */
.faq { display: grid; gap: 4px; max-width: 880px; }

/* ——— Contacts ——— */
.mail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 4vw, 48px); align-items: start; }
.letter { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-layer); box-shadow: var(--shadow-8); overflow: hidden; }
.letter .insert { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px 18px; font: 600 14px/1.2 var(--sans); border-bottom: 1px solid var(--divider); background: var(--subtle); }
.letter .insert svg { width: 18px; height: 18px; color: var(--accent-text); }
.letter dl { display: grid; grid-template-columns: 72px minmax(0, 1fr); margin: 0; }
.letter dt, .letter dd { padding: 14px 18px; border-bottom: 1px solid var(--divider); margin: 0; }
.letter dt { color: var(--text-2); font-size: 14px; padding-right: 0; }
.letter dl > :nth-last-child(-n+2) { border-bottom: 0; }
.letter dd { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; min-width: 0; }
.addr { font-weight: 600; overflow-wrap: anywhere; }
.copy { display: inline-flex; align-items: center; gap: 6px; font: 400 13.5px/1 var(--sans); color: var(--text); background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-ctl); padding: 7px 10px; cursor: pointer; box-shadow: var(--btn-edge-quiet); }
.copy:hover { background: var(--card-hover); }
.copy svg { width: 16px; height: 16px; }
.topics { display: flex; flex-wrap: wrap; gap: 6px; }
.topics a { font-size: 14px; color: var(--text); text-decoration: none; background: var(--card); border: 1px solid var(--stroke); border-radius: 999px; padding: 7px 12px; box-shadow: var(--btn-edge-quiet); }
.topics a:hover { background: var(--accent-soft); border-color: var(--accent-line); }
.mail-text p { color: var(--text-2); }
.mail-text p strong { color: var(--text); }
@media (max-width: 860px) { .mail { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .letter dl { grid-template-columns: 1fr; } .letter dt { border-bottom: 0; padding-bottom: 0; } }

/* ——— End, toast, footer ——— */
.end { padding: 56px 0 24px; text-align: center; }
.to-top { display: inline-flex; padding: 8px 14px; border-radius: var(--r-ctl); color: var(--text-2); text-decoration: none; font-size: 14px; }
.to-top:hover { background: var(--subtle); color: var(--text); }
.toast { position: fixed; right: 20px; bottom: 20px; transform: translateY(16px); opacity: 0; pointer-events: none; z-index: 60; background: var(--flyout); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); color: var(--text); font: 400 14.5px/1.45 var(--sans); padding: 14px 16px 14px 20px; border: 1px solid var(--stroke); border-radius: var(--r-card); box-shadow: var(--shadow-16); max-width: min(92vw, 420px); text-align: left; transition: opacity .2s var(--ease), transform .35s var(--ease); }
.toast::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 2px 2px 0; background: var(--accent); }
.toast.on { opacity: 1; transform: none; }
@media (max-width: 560px) { .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; } }
.progress { position: fixed; z-index: 50; left: 0; top: 0; height: 2px; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--accent); pointer-events: none; }
.brownie { position: fixed; top: -60px; z-index: 55; width: var(--s); height: var(--s); border-radius: 6px; pointer-events: none; background: linear-gradient(#8A5A34 0 18%, #5B3418 18% 100%); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18), 0 6px 14px -6px rgba(0, 0, 0, .4); animation: fall var(--d) cubic-bezier(.4, 0, .9, .6) var(--w) forwards; }
.brownie::after { content: ""; position: absolute; inset: 22% 18% auto; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .25); }
@keyframes fall { to { transform: translateY(calc(100vh + 120px)) rotate(var(--r)); } }
footer.site { margin-top: 24px; padding: 22px 0 34px; border-top: 1px solid var(--divider); background: var(--layer); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13.5px; color: var(--text-2); }
footer.site a { color: var(--text-2); }
footer.site a:hover { color: var(--text); }

/* ——— Arrival: once, as a block comes into view (Fluent entrance: short rise, slow settle) ——— */
.js .rv { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 50ms); }
.js .rv.in { opacity: 1; transform: none; }
.hero-text > * { animation: rise .7s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .05s; } .hero-text > :nth-child(3) { animation-delay: .1s; } .hero-text > :nth-child(4) { animation-delay: .15s; } .hero-text > :nth-child(5) { animation-delay: .22s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
  .progress { display: none; }
}

/* ——— Inner pages: articles, schools, policy ——— */
.doc { width: min(880px, 100% - 32px); margin: 0 auto; padding-top: 16px; }
.crumbs { font-size: 14px; color: var(--text-2); margin: 8px 0 14px; }
.crumbs a { color: var(--text-2); }
.sheet { background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r-layer); box-shadow: var(--shadow-8); padding: clamp(24px, 5vw, 56px) clamp(18px, 6vw, 64px); margin: 0 0 32px; }
.sheet h1 { font: 600 clamp(30px, 4.6vw, 42px)/1.15 var(--display); letter-spacing: -.025em; margin: 0 0 14px; overflow-wrap: break-word; }
.sheet .lead { font-size: clamp(17px, 2vw, 19px); line-height: 1.6; color: var(--text-2); margin: 0 0 10px; }
.sheet .meta, .sheet .updated { font-size: 14px; color: var(--text-3); margin: 0 0 28px; }
.sheet h2 { font: 600 23px/1.3 var(--display); margin: 40px 0 10px; scroll-margin-top: calc(var(--header) + 20px); }
.sheet h3 { font: 600 18px/1.35 var(--display); margin: 26px 0 6px; }
.sheet p, .sheet li { max-width: 68ch; overflow-wrap: break-word; }
.sheet ul, .sheet ol { padding-left: 22px; margin: 0 0 18px; }
.sheet li { margin: 0 0 8px; }
.sheet code { background: var(--subtle-2); padding: 1px 5px; border-radius: 4px; overflow-wrap: anywhere; }
.sheet .table-scroll { margin: 6px 0 22px; }
.sheet table { min-width: 420px; font-size: 15px; }
.script { margin: 18px 0 26px; padding: 28px 30px 10px clamp(30px, 9%, 72px); border: 1px solid var(--paper-line); border-radius: 6px; background: var(--paper); font: 400 15px/1.55 var(--mono); color: #111; position: relative; overflow-x: auto; box-shadow: var(--shadow-2); }
.script p { margin: 0 0 1.55em; max-width: none; white-space: pre-wrap; }
.script .h { font-weight: 700; }
.script .a { max-width: 44ch; }
.script .c { margin: 0 0 0 36%; }
.script .p { margin: 0 0 0 26%; }
.script .d { margin: 0 0 1.55em 16%; max-width: 32ch; }
.script .t { text-align: right; }
.script .c + .d, .script .p + .d, .script .c + .p { margin-top: 0; }
.script .note { position: absolute; right: 12px; top: 10px; font: 500 11px/1 var(--sans); color: #5D6273; }
@media (max-width: 560px) { .script { font-size: 12.5px; padding: 22px 14px 6px 16px; } .script .c { margin-left: 30%; } .script .d { margin-left: 8%; } }
.tip { display: flex; gap: 12px; padding: 12px 16px; margin: 0 0 20px; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-card); }
.tip::before { content: "i"; flex: none; width: 20px; height: 20px; margin-top: 2px; display: grid; place-items: center; border-radius: 50%; font: 700 12px/1 var(--display); color: var(--on-accent); background: var(--accent); }
.tip p:last-child { margin: 0; }
.cta-box { margin: 36px 0 0; padding: 22px 24px; border-radius: var(--r-layer); background: var(--accent-soft); border: 1px solid var(--accent-line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 24px; align-items: center; }
.cta-box b { display: block; font: 600 19px/1.3 var(--display); margin-bottom: 4px; }
.cta-box span { color: var(--text-2); font-size: 15px; }
.cta-box a.alt { display: inline-block; margin-top: 10px; font-size: 14px; }
@media (max-width: 640px) { .cta-box { grid-template-columns: 1fr; } }
.more { margin: 0 0 40px; }
.more h2 { font: 600 18px/1.3 var(--display); margin: 0 0 12px; }
.more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.more a { display: block; padding: 16px 18px; border-radius: var(--r-card); border: 1px solid var(--stroke); background: var(--card); text-decoration: none; color: var(--text); font-weight: 600; transition: background-color .12s var(--ease); }
.more a:hover { background: var(--card-hover); }
.more a span { display: block; color: var(--text-2); font-size: 14.5px; font-weight: 400; margin-top: 2px; }
