/* codinvisual site. iOS / macOS system colors and type, Liquid Glass sidebar and bars, motion by frequency:
   fast springs and strong ease-out for what people touch often, the slow reel spring only for rare moments.
   sitebuild.py replaces SPRING_* with linear() curves simulated from the effects' STIFF/DAMP model. */

:root {
  --bg: #F5F5F7;
  --surface: #FFFFFF;
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --ink-3: rgba(60, 60, 67, .32);
  --fill: rgba(120, 120, 128, .12);
  --fill-2: rgba(120, 120, 128, .2);
  --sep: rgba(60, 60, 67, .2);
  --stage: #000;
  --code-bg: #111214;
  --code-ink: #D9DDE3;
  --code-dim: #7D8590;
  --accent: #6CEBD9;
  --accent-ink: #032520;
  --tint: #0A8474;                 /* the same teal, deep enough to read as text on light surfaces */
  --btn: #0A8474;                  /* filled button, white label: 4.6:1, like Apple's blue #0071e3 */
  --btn-hover: #0B9383;
  --hover: color-mix(in srgb, #0A8474 20%, transparent);
  --focus: #007AFF;

  --glass: rgba(255, 255, 255, .52);
  --glass-spec: rgba(255, 255, 255, .95);
  --glass-rim: rgba(255, 255, 255, .55);
  --glass-sheen: rgba(255, 255, 255, .35);
  --glass-shadow: 0 10px 30px rgba(20, 30, 40, .12), 0 1px 2px rgba(0, 0, 0, .05);
  --glow-1: rgba(108, 235, 217, .40);
  --glow-2: rgba(120, 140, 255, .22);
  --glow-3: rgba(108, 235, 217, .18);

  --spring-soft: linear(0, 0.03, 0.083, 0.151, 0.228, 0.31, 0.394, 0.476, 0.554, 0.627, 0.694, 0.754, 0.807, 0.853, 0.893, 0.926, 0.954, 0.976, 0.994, 1.008, 1.018, 1.025, 1.03, 1.032, 1.033, 1.033, 1.032, 1.03, 1.028, 1.025, 1.022, 1.02, 1.017, 1.014, 1.012, 1.01, 1.008, 1.006, 1.005, 1);
  --spring-soft-ms: 667ms;
  --spring-ui: linear(0, 0.16, 0.374, 0.582, 0.752, 0.877, 0.959, 1.007, 1.03, 1.036, 1.034, 1.027, 1.019, 1.012, 1.007, 1);
  --spring-ui-ms: 267ms;
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);

  --font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --wide: 1120px;
  --gutter: clamp(16px, 3.6vw, 44px);
  --r-card: 20px;
  --r-group: 18px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000; --surface: #1C1C1E; --ink: #F5F5F7;
    --ink-2: #A1A1A6; --ink-3: rgba(235, 235, 245, .3);
    --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .36); --sep: rgba(84, 84, 88, .55);
    --stage: #0B0B0C; --code-bg: #161618; --focus: #0A84FF; --tint: #6CEBD9;
    --glass: rgba(44, 44, 48, .42); --glass-spec: rgba(255, 255, 255, .26); --glass-rim: rgba(255, 255, 255, .12); --glass-sheen: rgba(255, 255, 255, .08);
    --glass-shadow: 0 12px 34px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
    --hover: color-mix(in srgb, #6CEBD9 22%, transparent); --glow-1: rgba(108, 235, 217, .30); --glow-2: rgba(90, 110, 255, .30); --glow-3: rgba(108, 235, 217, .16);
  }
}
:root[data-theme="dark"] {
  --bg: #000; --surface: #1C1C1E; --ink: #F5F5F7;
  --ink-2: #A1A1A6; --ink-3: rgba(235, 235, 245, .3);
  --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .36); --sep: rgba(84, 84, 88, .55);
  --stage: #0B0B0C; --code-bg: #161618; --focus: #0A84FF; --tint: #6CEBD9;
  --glass: rgba(44, 44, 48, .42); --glass-spec: rgba(255, 255, 255, .26); --glass-rim: rgba(255, 255, 255, .12); --glass-sheen: rgba(255, 255, 255, .08);
  --glass-shadow: 0 12px 34px rgba(0, 0, 0, .5), 0 1px 2px rgba(0, 0, 0, .3);
  --hover: color-mix(in srgb, #6CEBD9 22%, transparent); --glow-1: rgba(108, 235, 217, .30); --glow-2: rgba(90, 110, 255, .30); --glow-3: rgba(108, 235, 217, .16);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1.0625rem/1.47 var(--font); letter-spacing: -.022em; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
img, video { display: block; max-width: 100%; }
svg { flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 8px; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* ——— app shell: Liquid Glass chrome over a quiet glow ——— */

/* the wallpaper under the glass: three soft radial glows, fixed and still (no animation, cheap on weak GPUs) */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(46vmax 34vmax at 14% -6%, var(--glow-1), transparent 70%),
    radial-gradient(40vmax 32vmax at 92% 6%, var(--glow-2), transparent 70%),
    radial-gradient(56vmax 40vmax at 55% 108%, var(--glow-3), transparent 70%);
}

/* Liquid Glass: blur and saturation, a bright specular edge on top, a thin rim, a soft float shadow */
.glass {
  position: relative; background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(190%); backdrop-filter: blur(22px) saturate(190%);
  box-shadow: inset 0 1px 0 var(--glass-spec), inset 0 0 0 1px var(--glass-rim), var(--glass-shadow);
}
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, var(--glass-sheen), transparent 42%); }

/* top capsule, like the floating bars of iOS 26 and the global nav of apple.com */
.topnav { position: sticky; top: 0; z-index: 30; padding: 12px var(--gutter) 0; pointer-events: none; }
.capsule { pointer-events: auto; display: flex; align-items: center; gap: 4px; max-width: var(--wide); margin: 0 auto; height: 56px; padding: 0 8px 0 18px; border-radius: 999px;
  transition: box-shadow .25s ease; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; text-decoration: none; margin-right: 10px; white-space: nowrap; }
.brand svg { width: 22px; height: 22px; }
.brand img { display: block; width: 26px; height: 26px; border-radius: 50%; }
.nav-items { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-link { display: inline-flex; align-items: center; gap: 3px; height: 38px; padding: 0 13px; border: 0; border-radius: 999px; background: none;
  font: 400 .9375rem var(--font); letter-spacing: -.015em; color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease; }
.nav-link .icon { width: 13px; height: 13px; stroke-width: 2.4; color: var(--ink-2); transition: transform .18s var(--ease-out); }
@media (hover: hover) { .nav-link:hover { background: var(--fill); } }
.nav-link[aria-current] { background: var(--fill-2); }
.menu { position: relative; }
.menu.open .nav-link .icon { transform: rotate(180deg); }
.nav-end { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.order-btn { min-height: 38px; padding: 0 16px; font-size: .9375rem; }

/* flyout menus: glass, anchored to their item, 180 ms strong ease-out; instant when opened from the keyboard */
.flyout { position: absolute; top: calc(100% + 12px); left: -8px; min-width: 300px; padding: 8px; border-radius: 22px;
  opacity: 0; transform: scale(.97) translateY(-4px); transform-origin: top left; visibility: hidden; pointer-events: none;
  transition: opacity .15s ease, transform .18s var(--ease-out), visibility 0s .18s; }
.menu.open .flyout { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .15s ease, transform .18s var(--ease-out), visibility 0s; }
.menu.instant .flyout { transition: none; }
.flyout.cols { display: grid; grid-template-columns: 1fr 1fr; min-width: 520px; column-gap: 4px; }
.fly-item { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: .9375rem; letter-spacing: -.015em; }
.fly-item .dot { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--fill); color: var(--tint); flex: none; }
.fly-item .dot .icon { width: 18px; height: 18px; }
.fly-item .count { margin-left: auto; font-size: .8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .fly-item:hover { background: var(--fill); } }
.fly-item:focus-visible { outline-offset: -2px; }
.fly-item.accent .dot { background: var(--btn); color: #fff; }

.round-btn { appearance: none; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 999px; background: var(--fill); color: var(--ink); cursor: pointer;
  transition: transform var(--spring-ui-ms) var(--spring-ui), background-color .15s ease, opacity .15s ease; }
@media (hover: hover) { .round-btn:hover { background: var(--fill-2); } }
.round-btn:active { transform: scale(.9); transition: transform 100ms ease-out; }
.round-btn .icon { width: 19px; height: 19px; }
.theme-btn .icon { grid-area: 1 / 1; transition: transform .32s var(--ease-out), opacity .2s ease; }
.theme-btn .sun { opacity: 0; transform: rotate(-60deg) scale(.6); }
:root[data-theme="dark"] .theme-btn .sun { opacity: 1; transform: none; }
:root[data-theme="dark"] .theme-btn .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { opacity: 1; transform: none; }
  :root:not([data-theme="light"]) .theme-btn .moon { opacity: 0; transform: rotate(60deg) scale(.6); }
}
.langs { display: flex; padding: 2px; border-radius: 999px; background: var(--fill); }
.langs a { min-width: 34px; padding: 6px 8px; border-radius: 999px; text-align: center; text-decoration: none; font-size: .75rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-2);
  transition: background-color .2s ease, color .15s ease; }
.langs a[aria-current="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.backlink { display: inline-flex; align-items: center; gap: 1px; margin-left: -6px; padding: 6px 10px 6px 2px; border-radius: 10px; font-size: 1.0625rem; color: var(--tint); text-decoration: none; }
.backlink .icon { width: 22px; height: 22px; stroke-width: 2.4; }
.backlink:active { opacity: .45; }

/* search: a glass sheet under the capsule */
.searchsheet { position: fixed; z-index: 45; inset: 0; display: flex; justify-content: center; align-items: flex-start; padding: 84px 16px 0;
  background: color-mix(in srgb, var(--bg) 30%, transparent); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s .18s; }
.searchsheet.open { opacity: 1; visibility: visible; transition: opacity .18s ease, visibility 0s; }
.searchsheet.instant { transition: none; }
.sheet { width: min(620px, 100%); padding: 10px; border-radius: 26px; transform: scale(.97) translateY(-6px); transition: transform .2s var(--ease-out); }
.searchsheet.open .sheet { transform: none; }
.sheet .search input { height: 48px; font-size: 1.125rem; border-radius: 17px; padding-left: 40px; }
.sheet .search-field .icon { left: 14px; width: 19px; height: 19px; }
.sheet .search-results { position: static; width: 100%; max-height: min(60vh, 520px); margin-top: 8px; padding: 0; background: none; box-shadow: none; }
.sheet .search-results.closed { display: none; }

/* phones: the capsule keeps the brand and the controls, navigation moves to a floating tab bar below */
.tabdock { display: none; }
@media (max-width: 999px) {
  .nav-items, .capsule .order-btn { display: none; }
  .capsule { height: 52px; padding: 0 6px 0 14px; }
  .tabdock { position: fixed; z-index: 30; left: 0; right: 0; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 10px; pointer-events: none; }
  .tabbar { pointer-events: auto; display: flex; gap: 2px; padding: 6px; border-radius: 999px; }
  .tabbar a { position: relative; display: grid; place-items: center; width: 64px; height: 50px; border-radius: 999px; color: var(--ink); text-decoration: none; }
  .tabbar a .icon { position: relative; z-index: 1; width: 26px; height: 26px; stroke-width: 1.9; }
  .tabbar a[aria-current] { color: var(--tint); }
  .tab-pill { position: absolute; inset: 0; border-radius: inherit; background: var(--fill-2); view-transition-name: tab-pill; }
  .tabbar a:active .icon { transform: scale(.9); transition: transform 100ms ease-out; }
  .tab-new { position: absolute; z-index: 1; top: 11px; right: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 2px var(--glass-spec); }
  .fab { pointer-events: auto; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; color: var(--ink); text-decoration: none; border: 0; cursor: pointer; }
  .fab .icon { position: relative; z-index: 1; width: 26px; height: 26px; }
  .fab.accent { background: var(--btn); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 30px color-mix(in srgb, var(--btn) 45%, transparent); }
  .fab:active { transform: scale(.92); transition: transform 100ms ease-out; }
  body { padding-bottom: 104px; }
}
@media (max-width: 400px) { .tabbar a { width: 56px; } .capsule .langs a { min-width: 30px; padding: 6px 6px; } }

.scrolled .capsule { box-shadow: inset 0 1px 0 var(--glass-spec), inset 0 0 0 1px var(--glass-rim), 0 14px 40px rgba(0, 0, 0, .18); }

/* ——— search ——— */
.search { position: relative; }
.search-field { position: relative; display: flex; align-items: center; }
.search-field .icon { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--ink-2); pointer-events: none; }
.search input {
  width: 100%; height: 36px; padding: 0 12px 0 32px; border: 0; border-radius: 11px; background: var(--fill);
  font: 400 .9375rem var(--font); letter-spacing: -.015em; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: var(--ink-2); }
.search input:focus-visible { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 40%, transparent); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-results { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(420px, calc(100vw - 32px)); max-height: min(60vh, 460px); overflow-y: auto;
  padding: 6px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 .5px var(--sep), 0 18px 50px rgba(0, 0, 0, .2); }
.search-results.closed { display: none; }
.search-results a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; text-decoration: none; }
.search-results a[aria-selected="true"] { background: var(--fill); }
@media (hover: hover) { .search-results a:hover { background: var(--fill); } }
.search-results img { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; background: var(--stage); }
.search-results .grow { flex: 1; min-width: 0; }
.search-results b { display: block; font-size: .9375rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-results .footnote { display: block; }
.search-results p { margin: 12px; }
.search.inline { margin: 18px 0 0; max-width: 520px; }
.search.inline input { height: 40px; font-size: 1.0625rem; }

/* ——— type ——— */
h1, h2, h3 { margin: 0; }
.display { font-size: clamp(2.5rem, 5.2vw, 3.5rem); font-weight: 600; line-height: 1.07; letter-spacing: -.005em; }
/* home: three lines of large type say what the studio does, each line is a door. Sizes follow what Linear, Cuberto
   and Yandex Cloud set in 2026: 64 to 84 px, weight 500 to 600, line height near 1, slightly tight tracking */
.hero-lines { max-width: 980px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) 0 clamp(26px, 4vw, 46px); }
.lines { margin: 0; font-size: clamp(2.125rem, 9vw, 5.25rem); font-weight: 600; line-height: 1.05; letter-spacing: -.028em; }
.lines a { display: flex; align-items: baseline; gap: .16em; width: fit-content; max-width: 100%; color: var(--ink); text-decoration: none;
  transition: color .2s ease, opacity .2s ease; }
.lines .icon { flex: none; align-self: center; width: .4em; height: .4em; margin-left: .06em; stroke-width: 2.6; color: var(--ink-2); opacity: .5;
  transition: transform var(--spring-ui-ms) var(--spring-ui), opacity .2s ease, color .2s ease; }
@media (hover: hover) and (pointer: fine) {
  .lines:hover a { opacity: .3; }
  .lines a:hover { opacity: 1; color: var(--tint); }
  .lines a:hover .icon { transform: translateX(.2em); opacity: 1; color: var(--tint); }
}
.lines a:focus-visible { outline-offset: 6px; border-radius: 14px; }
.hero-lines .lead { margin-top: clamp(18px, 2.4vw, 28px); max-width: 34em; }
.hero-lines .lead a { color: var(--tint); text-decoration: none; }
@media (hover: hover) { .hero-lines .lead a:hover { text-decoration: underline; text-underline-offset: 3px; } }
.large-title { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 600; line-height: 1.1; letter-spacing: -.008em; }
h2 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.2; letter-spacing: -.012em; }
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.3; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3125rem); line-height: 1.4; color: var(--ink-2); letter-spacing: .004em; max-width: 38em; margin: 12px 0 0; }
.footnote { font-size: .8125rem; line-height: 1.38; color: var(--ink-2); letter-spacing: -.005em; }
.kicker { margin: 0 0 6px; font-size: .9375rem; font-weight: 600; color: var(--tint); letter-spacing: -.015em; }
code, pre { font-family: var(--mono); letter-spacing: 0; }

/* ——— buttons and pills ——— */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 21px;
  border: 1px solid var(--tint); border-radius: 980px; background: transparent; color: var(--tint);
  font: 400 1.0625rem/1.18 var(--font); letter-spacing: -.022em; text-decoration: none; cursor: pointer; user-select: none;
  transition: transform var(--spring-ui-ms) var(--spring-ui), background-color .15s ease, color .15s ease;
}
@media (hover: hover) { .btn:hover { background: var(--tint); color: #fff; } }
.btn:active { transform: scale(.97); transition: transform 110ms ease-out; }
.btn.main { background: var(--btn); border-color: var(--btn); color: #fff; }
@media (hover: hover) { .btn.main:hover { background: var(--btn-hover); border-color: var(--btn-hover); } }
.btn .icon { width: 18px; height: 18px; stroke-width: 1.9; }
.btn.small { min-height: 32px; padding: 0 14px; font-size: .875rem; gap: 5px; }
.btn.small .icon { width: 15px; height: 15px; }
.btn.soon { background: var(--fill); border-color: transparent; color: var(--ink-2); cursor: default; }
@media (hover: hover) { .btn.soon:hover { background: var(--fill); color: var(--ink-2); } }
.btn.soon:active { transform: none; }
.copy { background: var(--fill); border-color: transparent; color: var(--ink); }
@media (hover: hover) { .copy:hover { background: var(--fill-2); color: var(--ink); } }

/* the App Store capsule: Get for free code, the price for paid items */
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-width: 62px; height: 28px; padding: 0 13px; border-radius: 999px;
  background: var(--fill); color: var(--tint); font-size: .8125rem; font-weight: 700; letter-spacing: -.005em; white-space: nowrap; flex: none;
}
.pill.paid { background: var(--accent); color: var(--accent-ink); }
.pill.soon { color: var(--ink-2); }

/* ——— Discover ——— */
.intro { padding: clamp(24px, 4.6vw, 60px) 0 clamp(20px, 3vw, 32px); }
.today {
  position: relative; display: block; overflow: hidden; border-radius: 28px; background: var(--stage); color: #fff; text-decoration: none;
  aspect-ratio: 1080 / 712; isolation: isolate; box-shadow: 0 0 0 .5px var(--sep);
  transition: transform var(--spring-ui-ms) var(--spring-ui);
}
.today video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.today::after { content: ""; position: absolute; inset: 38% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .72)); pointer-events: none; }
.today-text { position: absolute; z-index: 2; left: clamp(20px, 3vw, 36px); right: clamp(20px, 3vw, 36px); bottom: clamp(20px, 3vw, 34px);
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.today-text .kicker { color: rgba(255, 255, 255, .72); }

.today-text p { margin: 6px 0 0; max-width: 34em; color: rgba(255, 255, 255, .82); font-size: 1rem; line-height: 1.4; }
.today .pill { background: rgba(255, 255, 255, .24); color: #fff; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); height: 32px; min-width: 74px; }
.today:active { transform: scale(.985); transition: transform 120ms ease-out; }
@media (max-width: 640px) {
  .today { aspect-ratio: 4 / 5; border-radius: 24px; }
  .today-text { flex-direction: column; align-items: flex-start; gap: 12px; }
  .today-text p { display: none; }
}

/* ——— blocks and shelves ——— */
.block { padding: clamp(34px, 5vw, 56px) 0 0; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.block-head .footnote { margin: 3px 0 0; }
.block-head a.more { font-size: 1.0625rem; color: var(--tint); text-decoration: none; display: inline-flex; align-items: center; gap: 1px; white-space: nowrap; }
.block-head a.more .icon { width: 17px; height: 17px; stroke-width: 2.3; }
.head-end { display: flex; align-items: center; gap: 14px; }
.shelf-nav { display: flex; gap: 8px; }
.shelf-nav .round-btn { width: 30px; height: 30px; }
.shelf-nav .round-btn .icon { width: 16px; height: 16px; stroke-width: 2.4; }
.shelf-nav .round-btn:disabled { opacity: .3; cursor: default; }
@media (hover: none) { .shelf-nav { display: none; } }
.shelf {
  --cols: 4; --gap: 20px;
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scroll-padding-inline: var(--gutter);
}
.shelf::-webkit-scrollbar { display: none; }
.shelf > * { scroll-snap-align: start; min-width: 0; }
.shelf.wide { --cols: 2; }
.shelf.lockups { --cols: 3; grid-template-rows: repeat(3, auto); row-gap: 0; }
@media (max-width: 999px) {
  .shelf { --gap: 14px; grid-auto-columns: 44%; }
  .shelf.wide { grid-auto-columns: 84%; }
  .shelf.lockups { grid-auto-columns: 86%; }
}

/* effect cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px 20px; }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.card { display: block; text-decoration: none; color: inherit; -webkit-touch-callout: none; }
.card[hidden] { display: none; }
.media {
  position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-card); overflow: hidden; background: var(--stage); isolation: isolate;
  box-shadow: 0 0 0 .5px var(--sep);
  transition: transform var(--spring-ui-ms) var(--spring-ui), box-shadow .25s ease;
}
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease-out); }
.media video { opacity: 0; transition: opacity .2s ease, transform .35s var(--ease-out); }
.card.playing video { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .media { box-shadow: 0 0 0 .5px var(--sep), 0 16px 36px -18px rgba(0, 0, 0, .4); }
  .card:hover .media img, .card:hover .media video { transform: scale(1.03); }
}
.card:active .media { transform: scale(.97); transition: transform 110ms ease-out; }
.card-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 11px; }
.card-row > div { min-width: 0; }
.card p { margin: 2px 0 0; }

/* App Store list rows: thumbnail, name, section, Get */
.lockup { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 0; text-decoration: none; min-width: 0; }
.lockup::before { content: ""; position: absolute; top: 0; left: 78px; right: 0; border-top: .5px solid var(--sep); }
.lockup:nth-child(3n + 1)::before { display: none; }
.lockup img { width: 64px; height: 64px; border-radius: 15px; object-fit: cover; background: var(--stage); box-shadow: 0 0 0 .5px var(--sep); transition: transform var(--spring-ui-ms) var(--spring-ui); }
.lockup .grow { flex: 1; min-width: 0; }
.lockup h3 { font-size: 1rem; line-height: 1.25; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.lockup .footnote { display: block; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lockup:active img { transform: scale(.95); transition: transform 100ms ease-out; }

/* wide product cards: packs, templates, Pro */
.product { display: block; text-decoration: none; color: inherit; }
.shot { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-card); overflow: hidden; background: var(--stage); box-shadow: 0 0 0 .5px var(--sep); container-type: size;
  transition: transform var(--spring-ui-ms) var(--spring-ui); }
.shot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot.page > img { height: auto; object-fit: initial; transition: transform 4.5s cubic-bezier(.45, 0, .55, 1); }
@media (hover: hover) and (pointer: fine) { .product:hover .shot.page > img { transform: translateY(min(0px, calc(-100% + 100cqh))); } }
.product:active .shot { transform: scale(.98); transition: transform 110ms ease-out; }
.shot .stack { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 6px; }
.shot .stack img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.product .card-row { margin-top: 12px; }
.empty { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--r-group); background: var(--surface); }
.empty p { margin: 0; color: var(--ink-2); }
.empty .btn { margin-left: auto; flex: none; }
@media (max-width: 640px) { .empty { flex-wrap: wrap; } .empty .btn { margin-left: 0; } }

/* segmented section switcher, only where the sidebar is hidden */
.switch-row { position: sticky; top: 78px; z-index: 15; margin: 18px 0 24px; }
.switch {
  position: relative; display: flex; width: max-content; max-width: 100%; padding: 4px; overflow-x: auto;
  border-radius: 999px; scrollbar-width: none; overscroll-behavior-x: contain;
}
.switch::-webkit-scrollbar { display: none; }
.switch button {
  position: relative; z-index: 1; appearance: none; border: 0; background: none; color: var(--ink-2);
  padding: 9px 15px; border-radius: 999px; font: 600 .875rem/1.2 var(--font); letter-spacing: -.015em; white-space: nowrap; cursor: pointer;
  transition: color .15s ease;
}
.switch button[aria-pressed="true"] { color: var(--ink); }
.switch button span { margin-left: 5px; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.switch .thumb {
  position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px;
  background: var(--surface); box-shadow: 0 2px 8px rgba(0, 0, 0, .1), 0 0 0 .5px rgba(0, 0, 0, .05);
  transition: transform var(--spring-ui-ms) var(--spring-ui), width var(--spring-ui-ms) var(--spring-ui);
}

/* inset grouped lists, as in Settings */
.group { margin: 0; padding: 0; list-style: none; background: var(--surface); border-radius: var(--r-group); overflow: hidden; }
.row { position: relative; display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 11px 16px; text-decoration: none; color: inherit; }
.group > li + li > .row::before, .group > .row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: var(--inset, 16px); border-top: .5px solid var(--sep); }
a.row { transition: background-color .15s ease; }
@media (hover: hover) { a.row:hover { background: color-mix(in srgb, var(--surface) 94%, var(--ink)); } }
a.row:active { background: var(--fill-2); transition-duration: 0s; }
.tile { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--fill); color: var(--tint); flex: none; }
.tile .icon { width: 19px; height: 19px; }
.row .grow { flex: 1; min-width: 0; }
.row .grow b { display: block; font-weight: 600; }
.row .value { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.row .chev { width: 16px; height: 16px; color: var(--ink-3); stroke-width: 2.5; margin-right: -4px; }
.with-tiles { --inset: 62px; }

/* ——— effect page ——— */
.effect-head { padding: 14px 0 26px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; font-size: .8125rem; font-weight: 500; }
.facts li { padding: 6px 12px; border-radius: 999px; background: var(--fill); color: var(--ink-2); }
.facts a { text-decoration: none; color: var(--tint); }
.demo { border-radius: 30px; overflow: hidden; background: var(--stage); box-shadow: 0 0 0 .5px var(--sep); }
.demo iframe { display: block; width: 100%; border: 0; }
.try { margin: 12px 6px 0; }
.effect-actions { margin-top: 22px; }

.prose { max-width: 760px; }
.prose > h2 { margin: clamp(48px, 6vw, 70px) 0 8px; }
.prose > .footnote { margin: 0 0 16px 4px; }
.params .row { display: block; padding: 14px 16px; }
.param-top { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.param-top code:first-child { font-size: .9375rem; font-weight: 600; color: var(--ink); }
.param-top code:last-child { min-width: 0; font-size: .875rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.params .footnote { margin: 5px 0 0; font-size: .9375rem; }
.footnote code { font-size: .85em; color: var(--ink); background: var(--fill); padding: 1px 5px; border-radius: 5px; }
.footnote.big { margin: 0; font-size: .9375rem; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps > li { min-width: 0; counter-increment: step; background: var(--surface); border-radius: var(--r-group); padding: 14px; }
.step-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 2px 2px 0 4px; }
.step-head h3::before { content: counter(step) "  "; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.steps .footnote { margin: 4px 4px 12px; }
pre.code {
  margin: 0; max-height: 380px; overflow: auto; padding: 16px 18px; border-radius: 13px;
  background: var(--code-bg); color: var(--code-ink); font-size: .8125rem; line-height: 1.62; tab-size: 2;
}
pre.code .c { color: var(--code-dim); }
.notes .row { font-size: .9375rem; color: var(--ink-2); }
.builders .row { display: block; }
.builders b { display: block; font-weight: 600; margin-bottom: 2px; }
.builders .footnote { margin: 0; font-size: .9375rem; }
.upsell { margin-top: 34px; }

/* ——— product page (paid): media, price, what is inside, how you get it. No live code on it. ——— */
.buy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, 1fr); gap: clamp(22px, 4vw, 44px); align-items: start; padding-top: 6px; }
.buy .shot { border-radius: 26px; }
.buy-panel { position: sticky; top: 74px; padding: 22px; border-radius: 26px; background: var(--surface); }
.buy-panel .large-title { font-size: clamp(1.75rem, 2.6vw, 2.375rem); }
.buy-panel .price { margin: 16px 0 14px; font-size: 1.75rem; font-weight: 700; letter-spacing: -.03em; }
.buy-panel .btns .btn { flex: 1 1 100%; }
.buy-panel > .footnote { margin: 14px 2px 0; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-group); overflow: hidden; font-size: .9375rem; }
.compare th, .compare td { padding: 12px 16px; text-align: left; border-top: .5px solid var(--sep); }
.compare thead th { border-top: 0; font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.howto { margin: 0; padding: 0; list-style: none; counter-reset: howto; display: grid; gap: 12px; max-width: 40em; }
.howto li { counter-increment: howto; display: flex; gap: 14px; align-items: baseline; font-size: 1.0625rem; }
.howto li::before { content: counter(howto); flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 999px;
  background: var(--fill); font-size: .875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.panel { background: var(--surface); border-radius: 28px; padding: clamp(24px, 4vw, 40px); }
.panel .lead { margin-top: 10px; }
.panel .howto { margin-top: 22px; }
.panel .btns { margin-top: 24px; }
.faq .row { display: block; padding: 16px; }
.faq h3 { margin-bottom: 4px; }
.faq p { margin: 0; color: var(--ink-2); font-size: .9375rem; }
@media (max-width: 820px) {
  .buy { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
}

/* ——— Dynamic Island style confirmation ——— */
.island {
  position: fixed; z-index: 50; top: max(10px, env(safe-area-inset-top)); left: 50%;
  display: flex; align-items: center; gap: 9px; padding: 11px 18px 11px 13px; border-radius: 999px;
  background: #000; color: #fff; font-size: .9375rem; font-weight: 600; letter-spacing: -.02em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .28), inset 0 0 0 .5px rgba(255, 255, 255, .12);
  transform: translate(-50%, -130%) scale(.7); opacity: 0; pointer-events: none;
  transition: transform .2s var(--ease-out), opacity .15s ease;
}
.island .icon { width: 20px; height: 20px; stroke-width: 2.6; color: var(--accent); }
.island.on { transform: translate(-50%, 0) scale(1); opacity: 1; transition: transform var(--spring-ui-ms) var(--spring-ui), opacity .1s ease; }

/* Russian version hint */
.langbanner { position: fixed; z-index: 40; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; font-size: .9375rem; font-weight: 500; white-space: nowrap; }
.langbanner .btn.small { background: var(--btn); border-color: var(--btn); color: #fff; }
.langbanner .x { appearance: none; border: 0; background: var(--fill); color: var(--ink-2); width: 30px; height: 30px; border-radius: 999px; font-size: 1.1rem; cursor: pointer; }
@media (max-width: 999px) { .langbanner { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 84px); } }

/* footer */
@media (hover: hover) { .foot a:hover { color: var(--ink); } }

/* ——— the card you open grows into its page; the theme spreads from its switch ——— */
@view-transition { navigation: auto; }
::view-transition-group(effect-media), ::view-transition-group(effect-title) { animation-duration: .46s; animation-timing-function: var(--ease-drawer); }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .2s; animation-timing-function: ease; }
::view-transition-old(effect-media), ::view-transition-new(effect-media) { height: 100%; width: 100%; object-fit: cover; animation-duration: .24s; }
::view-transition-group(topnav), ::view-transition-group(tabdock) { animation: none; }
::view-transition-group(tab-pill) { animation-duration: .25s; animation-timing-function: var(--ease-drawer); }
.topnav { view-transition-name: topnav; }
.tabdock { view-transition-name: tabdock; }
.theme-vt .topnav, .theme-vt .tabdock, .theme-vt .tab-pill, .theme-vt .demo, .theme-vt .effect-head h1 { view-transition-name: none !important; }
.theme-vt::view-transition-old(root), .theme-vt::view-transition-new(root) { animation-duration: .25s; }

@media (max-width: 560px) {
  :root { --r-card: 18px; }
  .grid, .grid.three { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card-row { flex-direction: column; gap: 6px; }
  .card h3 { font-size: .9375rem; }
  .card .pill { height: 26px; min-width: 56px; font-size: .75rem; }
  .demo { border-radius: 24px; margin: 0 calc(var(--gutter) * -1 + 8px); }
  .btn { min-height: 44px; padding: 0 18px; }
  .effect-actions .btn { flex: 1 1 auto; }
  .switch-row { margin-left: calc(var(--gutter) * -1 + 8px); margin-right: calc(var(--gutter) * -1 + 8px); }
  .compare th, .compare td { padding: 10px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .media video, .island, .flyout, .searchsheet { transition: opacity .2s ease !important; }
  .flyout, .sheet { transform: none !important; }
  .island, .island.on { transform: translate(-50%, 0); }
  .card:hover .media img, .card:hover .media video { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-contrast: more) {
  :root { --sep: rgba(60, 60, 67, .6); --ink-2: rgba(60, 60, 67, .86); }
  .glass { background: var(--surface); box-shadow: 0 0 0 1px var(--ink); }
}

/* shop grid of wide product cards */
.grid.products { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 30px 22px; }
.block.first { padding-top: 6px; }
@media (max-width: 560px) { .grid.products { grid-template-columns: 1fr; } }

@media (max-width: 560px) {
  .lockup .pill { min-width: 0; padding: 0 12px; height: 26px; font-size: .75rem; }
  .lockup img { width: 56px; height: 56px; border-radius: 13px; }
  .lockup::before { left: 70px; }
}

/* first screen, the way apple.com opens: centered words, then the product as an object on a quiet stage */
.intro.center { text-align: center; padding: clamp(48px, 8vw, 112px) 0 clamp(20px, 3vw, 36px); }
.intro.center .lead { margin-left: auto; margin-right: auto; max-width: 34em; }
.intro.center .btns { justify-content: center; align-items: center; gap: 14px; margin-top: 28px; }
.text-link { display: inline-flex; align-items: center; gap: 1px; font-size: 1.0625rem; font-weight: 500; color: var(--tint); text-decoration: none; letter-spacing: -.02em; }
.text-link .icon { width: 17px; height: 17px; stroke-width: 2.3; }
@media (hover: hover) { .text-link:hover { text-decoration: underline; text-underline-offset: 3px; } }
.stage { max-width: 980px; margin: 0 auto; }
.stage .media { aspect-ratio: 16 / 10; border-radius: 30px; background: #050507; }
.stage .media img { object-fit: cover; }
.stage .card-row { margin-top: 14px; padding: 0 4px; }
.stage h3 { font-size: 1.1875rem; }
@media (hover: hover) and (pointer: fine) { .stage:hover .media img { transform: scale(1.015); } }
@media (max-width: 640px) {
  .stage .media { aspect-ratio: 4 / 5; border-radius: 24px; }
  .stage .card-row { flex-direction: row; align-items: center; }
}

/* next to the sidebar the content is narrower: fewer, wider cards per shelf until the window is large */
@media (min-width: 1000px) and (max-width: 1320px) {
  .shelf { --cols: 3; }
  .shelf.lockups { --cols: 2; }
  .shelf.wide { --cols: 1.6; }
}

/* ——— Control Center tiles on the home page: thick glass, round buttons, one lit accent ——— */
.cc-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; max-width: 980px; margin: 0 auto; }
.cc { border-radius: 32px; padding: 20px 22px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  transition: transform var(--spring-ui-ms) var(--spring-ui); isolation: isolate; }
.cc:active { transform: scale(.97); transition: transform 110ms ease-out; }
.cc.big { grid-column: span 2; grid-row: span 2; }
.cc.wide { grid-column: span 2; }
.cc h3 { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.02em; }
.cc p { margin: 3px 0 0; font-size: .9375rem; color: var(--ink-2); letter-spacing: -.01em; line-height: 1.35; }
.cc .top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc .knob { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--fill); color: var(--ink); flex: none; }
.cc .knob .icon { width: 25px; height: 25px; }
.cc .knob.lit { background: var(--btn); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--btn) 45%, transparent); }
.cc.accent { background: color-mix(in srgb, var(--btn) 16%, var(--glass)); }
.cc.accent .knob { background: var(--btn); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--btn) 45%, transparent); }
.dots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 10px; justify-items: center; }
.dot-link { display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; width: 100%; text-decoration: none; color: var(--ink); }
.dot-link .dot { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--fill); color: var(--ink);
  transition: transform var(--spring-ui-ms) var(--spring-ui), background-color .15s ease; }
.dot-link .dot .icon { width: 25px; height: 25px; }
.dot-link .lbl { max-width: 100%; font-size: .75rem; font-weight: 500; letter-spacing: -.005em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dot-link.lit .dot { background: var(--btn); color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--btn) 45%, transparent); }
.dot-link.lit .lbl { color: var(--ink); }
@media (hover: hover) { .dot-link:not(.lit):hover .dot { background: var(--fill-2); } .dot-link:hover .lbl { color: var(--ink); } }
.dot-link:active .dot { transform: scale(.92); transition: transform 100ms ease-out; }
.cc-head { text-decoration: none; color: inherit; min-width: 0; }
.cc.big { justify-content: flex-start; gap: 22px; }
.cc.big .dots { margin-top: auto; margin-bottom: auto; }
a.knob { text-decoration: none; transition: transform var(--spring-ui-ms) var(--spring-ui); }
a.knob:active { transform: scale(.92); transition: transform 100ms ease-out; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mini { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 12px; border-radius: 16px; background: var(--fill); color: var(--ink); text-decoration: none;
  font-size: .875rem; letter-spacing: -.01em; transition: background-color .15s ease, transform var(--spring-ui-ms) var(--spring-ui); }
.mini .icon { width: 17px; height: 17px; color: var(--tint); flex: none; }
.mini span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini b { font-weight: 600; font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (hover: hover) { .mini:hover { background: var(--fill-2); } }
.mini:active { transform: scale(.96); transition: transform 100ms ease-out; }
.cc .big-num { font-size: clamp(2.75rem, 5vw, 3.5rem); font-weight: 600; letter-spacing: -.02em; line-height: 1; }
@media (max-width: 760px) {
  .cc-grid { grid-template-columns: 1fr 1fr; gap: 12px; grid-auto-rows: minmax(132px, auto); }
  .cc { border-radius: 28px; padding: 16px 18px; }
  .dots { gap: 12px 6px; }
  .dot-link .dot { width: 52px; height: 52px; }
  .dot-link .dot .icon { width: 22px; height: 22px; }
  .minis { grid-template-columns: 1fr; }
}
@media (max-width: 380px) { .dot-link .dot { width: 46px; height: 46px; } }

/* ——— order page (Russian branch) ——— */
/* a brief like the studios have: tiles and chips write the message, the bubble shows what will be sent */
.order-head { padding: clamp(24px, 4.6vw, 56px) 0 clamp(20px, 3vw, 34px); }
.brief { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: clamp(24px, 4.5vw, 56px); align-items: start; }
.brief-q { display: block; margin: 30px 0 12px; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.brief-form > .brief-q:first-child { margin-top: 0; }
.kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.kind { appearance: none; display: grid; gap: 4px; align-content: start; justify-items: start; min-height: 132px; padding: 16px; border: 0; border-radius: 22px;
  background: var(--surface); color: var(--ink); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 2px transparent;
  transition: transform var(--spring-ui-ms) var(--spring-ui), background-color .15s ease, box-shadow .15s ease; }
.kind .icon { width: 24px; height: 24px; margin-bottom: 10px; color: var(--ink-2); transition: color .15s ease; }
.kind b { font-size: 1rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.25; }
.kind span { font-size: .8125rem; line-height: 1.38; color: var(--ink-2); }
.kind:active, .chip:active { transform: scale(.97); transition: transform 110ms ease-out; }
.kind[aria-pressed="true"] { background: color-mix(in srgb, var(--btn) 11%, var(--surface)); box-shadow: inset 0 0 0 2px var(--tint); }
.kind[aria-pressed="true"] .icon { color: var(--tint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { appearance: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--surface); color: var(--ink);
  font: inherit; font-size: .9375rem; letter-spacing: -.015em; cursor: pointer;
  transition: transform var(--spring-ui-ms) var(--spring-ui), background-color .15s ease, color .15s ease; }
.chip[aria-pressed="true"] { background: var(--btn); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .kind:not([aria-pressed="true"]):hover { box-shadow: inset 0 0 0 2px var(--sep); }
  .chip:not([aria-pressed="true"]):hover { background: var(--fill-2); }
}
.kind:focus-visible { border-radius: 22px; }
.chip:focus-visible { border-radius: 999px; }
.brief textarea { display: block; width: 100%; box-sizing: border-box; min-height: 124px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--sep);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1.0625rem; line-height: 1.4; letter-spacing: -.01em; resize: vertical; }
.brief textarea:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 1px; border-radius: 18px; }
.brief-send { position: sticky; top: 86px; display: grid; gap: 14px; }
.brief-cap { margin: 0 4px -6px; text-align: right; }
.bubble { justify-self: end; max-width: 100%; padding: 14px 18px 15px; border-radius: 22px 22px 6px 22px; background: var(--btn); color: #fff;
  font-size: 1.0625rem; line-height: 1.42; letter-spacing: -.01em; white-space: pre-line; overflow-wrap: anywhere; }
.bubble.empty { background: var(--surface); color: var(--ink-2); }
.brief-send .btns .btn { flex: 1 1 100%; }
.brief-send > .footnote:last-child { margin: 0 4px; }
@media (max-width: 860px) {
  .brief { grid-template-columns: minmax(0, 1fr); }
  .brief-send { position: static; }
  .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kind { min-height: 0; }
}
.intro.center .btns .btn { min-width: 0; }

/* hover lights up in the brand teal: everything you can press answers the pointer the same way.
   Hover is seen tens of times a day, so it is color only, 150 ms, and only for a real pointer. */
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover, .nav-link[aria-current]:hover, .menu.open .nav-link { background: var(--hover); color: var(--tint); }
  .menu.open .nav-link .icon, .nav-link:hover .icon { color: var(--tint); }
  .fly-item:hover { background: var(--hover); }
  .fly-item:hover .dot { background: var(--btn); color: #fff; }
  .round-btn:hover { background: var(--hover); color: var(--tint); }
  .langs a:not([aria-current]):hover { color: var(--tint); }
  .dot-link:not(.lit):hover .dot { background: var(--hover); color: var(--tint); }
  .dot-link:hover .lbl { color: var(--tint); }
  a.knob:not(.lit):hover, .cc:hover > .knob, .cc:hover .top > .knob:not(a) { background: var(--hover); color: var(--tint); }
  a.knob.lit:hover, .cc.accent:hover > .knob, .cc:hover .knob.lit { background: var(--btn-hover); color: #fff; }
  .mini:hover { background: var(--hover); }
  .mini:hover span, .mini:hover b { color: var(--tint); }
  .cc-head:hover h3 { color: var(--tint); }
  a.cc:hover h3 { color: var(--tint); }
  .card:hover .pill:not(.paid):not(.soon), .lockup:hover .pill:not(.paid):not(.soon), .product:hover .pill:not(.paid):not(.soon),
  .today:hover .pill { background: var(--btn); color: #fff; }
  .card:hover h3, .lockup:hover h3, .product:hover h3 { color: var(--tint); }
  a.row:hover { background: var(--hover); }
  a.row:hover .tile { background: var(--btn); color: #fff; }
  .copy:hover { background: var(--hover); color: var(--tint); }
  .switch button:not([aria-pressed="true"]):hover { color: var(--tint); }
  .block-head a.more:hover, .text-link:hover, .backlink:hover { color: var(--btn-hover); }
  .tabbar a:not([aria-current]):hover { color: var(--tint); }
  .foot a:hover { color: var(--tint); }
  .search-results a:hover { background: var(--hover); }
}
.nav-link, .fly-item, .fly-item .dot, .mini, .mini span, .mini b, .dot-link .lbl, .cc h3, .card h3, .lockup h3, .product h3, .pill, a.row .tile, .knob, .copy, .switch button {
  transition-property: background-color, color, transform, box-shadow; transition-duration: .15s; transition-timing-function: ease;
}

/* focus follows the shape of what is focused: a ring around the circle, not a box around the label */
.dot-link:focus-visible { outline: none; }
.dot-link:focus-visible .dot { outline: 2.5px solid var(--focus); outline-offset: 3px; }
a.knob:focus-visible, .round-btn:focus-visible, .fab:focus-visible { outline-offset: 3px; border-radius: 50%; }
.mini:focus-visible, .nav-link:focus-visible, .btn:focus-visible, .pill:focus-visible { border-radius: 999px; }
.cc:focus-visible { border-radius: 32px; }
.card:focus-visible { outline: none; }
.card:focus-visible .media { outline: 2.5px solid var(--focus); outline-offset: 3px; }

/* ——— second pass after the review: patterns taken from Apple Store, Aceternity, Magic UI, Framer, Codrops ——— */

/* shelf titles in Apple's two tones: "New. Fresh effects from the latest reels." */
.block-head h2 .dim { color: var(--ink-2); font-weight: 600; }

/* breadcrumbs above the title, like component pages at Aceternity */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; padding-top: 20px; font-size: .9375rem; }
.crumbs a { color: var(--ink-2); text-decoration: none; padding: 2px 4px; border-radius: 6px; }
.crumbs .sep .icon { width: 13px; height: 13px; stroke-width: 2.4; color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) { .crumbs a:hover { color: var(--tint); } }

/* the release pill above the headline, like Magic UI */
.announce { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; padding: 6px 10px 6px 6px; border-radius: 999px; text-decoration: none; color: var(--ink);
  font-size: .9375rem; letter-spacing: -.015em; transition: transform var(--spring-ui-ms) var(--spring-ui); }
.announce .tag { padding: 3px 10px; border-radius: 999px; background: var(--btn); color: #fff; font-size: .8125rem; font-weight: 600; }
.announce .icon { width: 15px; height: 15px; stroke-width: 2.4; color: var(--ink-2); }
.announce:active { transform: scale(.97); transition: transform 100ms ease-out; }
@media (hover: hover) and (pointer: fine) { .announce:hover { color: var(--tint); } .announce:hover .icon { color: var(--tint); } }

/* segmented control used for Preview / Code and for sorting */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); }
.seg button { appearance: none; border: 0; background: none; padding: 7px 16px; border-radius: 999px; font: 500 .875rem/1.2 var(--font); letter-spacing: -.01em; color: var(--ink-2); cursor: pointer;
  transition: background-color .15s ease, color .15s ease; }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
@media (hover: hover) and (pointer: fine) { .seg button:not([aria-selected="true"]):not([aria-pressed="true"]):hover { color: var(--tint); } }
.switch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.switch-row .switch { flex: 0 1 auto; min-width: 0; }
.sort { margin-left: auto; flex: none; }

/* the viewer: live demo or the whole file, one click apart */
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.codeview { position: relative; }
.codeview pre.code { max-height: none; height: var(--h, 520px); border-radius: 30px; padding: 22px 24px; }
.codeview .copy { position: absolute; z-index: 1; top: 14px; right: 14px; background: rgba(255, 255, 255, .12); color: #fff; }
@media (hover: hover) and (pointer: fine) { .codeview .copy:hover { background: rgba(255, 255, 255, .2); color: #fff; } }
@media (max-width: 560px) { .codeview pre.code { border-radius: 24px; margin: 0 calc(var(--gutter) * -1 + 8px); } }

/* previous and next effect */
.prevnext { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin-top: clamp(48px, 6vw, 70px); }
.pn { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 22px; background: var(--surface); text-decoration: none; color: var(--ink);
  transition: background-color .15s ease, transform var(--spring-ui-ms) var(--spring-ui); }
.pn img { width: 56px; height: 70px; border-radius: 12px; object-fit: cover; background: var(--stage); flex: none; }
.pn > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pn b { max-width: 100%; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn > .icon { width: 18px; height: 18px; color: var(--ink-3); stroke-width: 2.4; }
.pn.prev_effect { flex-direction: row-reverse; text-align: right; }
.pn.prev_effect > span { align-items: flex-end; }
.pn:active { transform: scale(.98); transition: transform 100ms ease-out; }
@media (hover: hover) and (pointer: fine) { .pn:hover { background: var(--hover); } .pn:hover b, .pn:hover > .icon { color: var(--tint); } }
@media (max-width: 560px) { .prevnext { grid-template-columns: minmax(0, 1fr); } .pn.prev_effect { flex-direction: row; text-align: left; } .pn.prev_effect > span { align-items: flex-start; } }

/* footer as a sitemap, the way apple.com closes every page */
.foot { margin-top: clamp(72px, 10vw, 120px); padding: 34px 0 44px; border-top: .5px solid var(--sep); }
.foot .wrap { display: block; }
.sitemap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
.map-col h3 { font-size: .8125rem; font-weight: 600; margin-bottom: 10px; }
.map-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.map-col a { font-size: .8125rem; color: var(--ink-2); text-decoration: none; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 30px; padding-top: 18px; border-top: .5px solid var(--sep); }
.foot-bottom p { margin: 0; }
@media (max-width: 760px) { .sitemap { grid-template-columns: 1fr 1fr; } }

/* free and paid are marked where you choose where to go: the capsule, the home tiles, the shop */
.navtag { display: inline-block; margin-left: 7px; padding: 2px 7px; border-radius: 999px; background: var(--hover); color: var(--tint);
  font-size: .6875rem; font-weight: 600; letter-spacing: .01em; vertical-align: 2px; }
.navtag.paid { background: var(--fill); color: var(--ink-2); }
.navtag.new { background: var(--accent); color: var(--accent-ink); }
.cc h3 .navtag { vertical-align: 3px; }

/* shop toggles: name on top, count or "soon" below, so nothing gets cut at mid widths */
.mini { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; row-gap: 1px; align-items: center; }
.mini .icon { grid-row: 1 / span 2; }
.mini span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini b { grid-column: 2; font-size: .75rem; font-weight: 500; }

/* documents, cookie bar, 404 */
.foot .legal { display: flex; flex-wrap: wrap; gap: 6px 16px; width: 100%; order: 3; font-size: .8125rem; }
.foot .legal a, .linkish { color: var(--ink-2); text-decoration: none; }
.linkish { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.foot .legal a:hover, .linkish:hover { color: var(--tint); }
.prose.legal-doc > h2 { margin: 34px 0 8px; font-size: 1.25rem; line-height: 1.3; }
.legal-doc p { margin: 0 0 12px; }
.legal-doc ul { margin: 0 0 12px; padding-left: 1.25em; }
.legal-doc li { margin: 4px 0; }
.legal-doc a { color: var(--tint); }
/* cookie bar: one slim line that shows up after a few seconds or the first scroll, never over the first screen, never twice in a row */
.cookiebar { position: fixed; z-index: 70; left: 50%; bottom: calc(env(safe-area-inset-bottom, 0px) + 88px); width: max-content; max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 22px;
  opacity: 0; transform: translate(-50%, 14px); transition: opacity .35s ease, transform .5s cubic-bezier(.2, .9, .3, 1.2); }
.cookiebar.on { opacity: 1; transform: translate(-50%, 0); }
.cookiebar p::before { content: ""; display: inline-block; vertical-align: -4px; margin-right: 8px; width: 18px; height: 18px; background: var(--ink-2); opacity: .8;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-4-4 4 4 0 0 1-4-4 2 2 0 0 0-2-2zM8.5 9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm3 6.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm5-2a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-4-4 4 4 0 0 1-4-4 2 2 0 0 0-2-2zM8.5 9a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm3 6.5a1.5 1.5 0 1 1 0 3 1.5 1.5 0 0 1 0-3zm5-2a1.2 1.2 0 1 1 0 2.4 1.2 1.2 0 0 1 0-2.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.cookiebar p { margin: 0; font-size: .8125rem; line-height: 1.3; color: var(--ink-2); }
.cookiebar a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; }
.cookiebar .btn.small { min-height: 30px; padding: 0 12px; font-size: .8125rem; }
@media (max-width: 520px) { .cookiebar a { display: none; } .cookiebar { width: auto; left: 12px; right: 12px; transform: translateY(14px); } .cookiebar.on { transform: none; } .cookiebar p { flex: 1; } }
@media (min-width: 1000px) { .cookiebar { left: 20px; bottom: 20px; transform: translateY(14px); } .cookiebar.on { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cookiebar { transition: opacity .2s linear; } }
.nf { padding-block: clamp(56px, 12vw, 140px); }
.nf-code { margin: 0 0 6px; font: 600 .875rem/1 var(--mono); letter-spacing: .12em; color: var(--tint); }
.nf .btns { margin-top: 18px; }
.nf-ru { margin-top: 48px; padding-top: 24px; border-top: .5px solid var(--sep); }

/* paid product: consent under the pay button */
.agree { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; font-size: .875rem; line-height: 1.4; color: var(--ink-2); cursor: pointer; }
.agree input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--tint); }
.agree.need span { color: var(--ink); }
.agree a { color: var(--tint); }
.pay-mail.bad input { border-color: #E5484D; }
.agree.need input { outline: 2px solid #D4533B; outline-offset: 2px; border-radius: 4px; }
.pay-terms { margin: 12px 0 0; font-size: .8125rem; line-height: 1.4; color: var(--ink-2); }
.pay-terms a { color: var(--tint); }

/* postcard without open source: a still instead of the live file */
.demo.shot img { display: block; width: 100%; max-width: 520px; margin: 0 auto; }

/* cards storefront: its own shell, a live sample on the first screen, name fields */
.cards-shell .search-btn, .cards-shell .tabbar { display: none; }
.cat-chips { margin: 4px 0 20px; }
.cat-chips .chip { flex: none; display: inline-flex; align-items: center; gap: 7px; }
@media (max-width: 760px) {   /* на телефоне разделы листаются в одну строку, как вкладки в магазинах приложений */
  .cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter); }
  .cat-chips::-webkit-scrollbar { display: none; }
}
.chip-soon { font-size: .6875rem; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
.chip[aria-pressed="true"] .chip-soon { color: rgba(255, 255, 255, .8); }
.cat-empty h3 { margin: 0; font-size: 1.1875rem; }
.cat-empty p { margin: 8px 0 0; color: var(--ink-2); max-width: 34em; }
.cat-empty .btns { margin-top: 18px; }
.fresh { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; font-size: .9375rem; color: var(--ink-2); letter-spacing: -.01em; }
.fresh .navtag { margin: 0; padding: 3px 9px; font-size: .75rem; vertical-align: 0; }
.media { position: relative; }
.media-tag { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink);
  font-size: .75rem; font-weight: 600; letter-spacing: .01em; }
.brand-tag { margin: 0 8px 0 -4px; text-decoration: none; padding: 2px 8px; border-radius: 999px; background: var(--hover); color: var(--tint); font-size: .75rem; font-weight: 600; letter-spacing: 0; }
@media (max-width: 370px) { .cards-shell:not(.cards-site) .brand { font-size: 0; gap: 0; margin-right: 10px; } }
.brand-tag { white-space: nowrap; }
/* дочерний сайт: своё имя первым, студия подписывает его тихо и мелко, со своим знаком. На телефоне подпись уходит под имя */
.sub-brand { position: relative; display: inline-flex; align-items: center; gap: 12px; margin-right: 10px; }
.sub-brand .brand { margin-right: 0; }
.endorse { position: relative; display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: color .15s ease; }
.endorse span { font-weight: 400; color: var(--ink-2); }
.endorse svg { width: 13px; height: 13px; }
.endorse .icon { width: 12px; height: 12px; stroke-width: 2.4; color: var(--ink-2); margin-left: -1px; }
.sub-brand .endorse { padding-left: 12px; border-left: 1px solid var(--sep); line-height: 18px; }
@media (hover: hover) { a.endorse:hover { color: var(--tint); } }
@media (max-width: 560px) {
  .sub-brand { flex-direction: column; align-items: flex-start; gap: 1px; padding-left: 33px; }
  .sub-brand .brand { font-size: 1rem; line-height: 1.15; }
  .sub-brand .brand svg { position: absolute; left: 0; top: 50%; width: 25px; height: 25px; margin-top: -12.5px; }
  .sub-brand .endorse { padding-left: 0; border-left: 0; font-size: .6875rem; line-height: 1.2; }
  .sub-brand .endorse svg { width: 11px; height: 11px; }
  .sub-brand a.endorse::after { content: ""; position: absolute; inset: 0 -10px -12px -6px; }      /* палец попадает в подпись */
}
.foot-brand { grid-column: 1 / -1; display: grid; justify-items: start; gap: 6px; }
.foot-brand .brand { margin: 0; font-size: 1.375rem; gap: 10px; }
.foot-brand .brand svg { width: 28px; height: 28px; }
.foot-brand .endorse { font-size: .875rem; gap: 5px; padding: 2px 0; }
.foot-brand .endorse svg { width: 15px; height: 15px; }
.foot-brand .endorse .icon { width: 13px; height: 13px; }
.foot-mail { margin: 12px 0 0; font-size: .9375rem; letter-spacing: -.01em; color: var(--ink-2); }
.foot-mail a, .brief-addr a { color: var(--ink); font-weight: 600; text-decoration: none; }
@media (hover: hover) { .foot-mail a:hover, .brief-addr a:hover { color: var(--tint); } }
.brief-addr { margin: 12px 0 0; font-size: .9375rem; letter-spacing: -.01em; color: var(--ink-2); }
.langs:empty { display: none; }
/* цена открытия: старая цена зачёркнута рядом, на витрине одна строка о скидке */
.buy-panel .price s { margin-left: 8px; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); }
.sale-note { margin: -8px 0 14px; font-size: .875rem; font-weight: 600; color: var(--tint); }
.sale-bar { display: inline-block; margin: 0 0 16px; padding: 8px 14px; border-radius: 999px; background: var(--hover); color: var(--tint); font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; }      /* сайт на одном языке */
.byline { display: inline-flex; align-items: center; gap: 2px; font-size: 1.0625rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.byline .icon { width: 17px; height: 17px; stroke-width: 2.3; }
.cards-hero { display: grid; grid-template-columns: minmax(0, 1fr) min(460px, 44%); gap: clamp(24px, 5vw, 64px); align-items: center; padding: clamp(18px, 4vw, 44px) 0 8px; }
.cards-hero .lead { max-width: 30em; }
.cards-hero .btns { margin-top: 20px; }
.cards-hero .card-opts { max-width: 420px; }
.cards-hero .phone { width: 100%; }
.phone { width: min(460px, 100%); aspect-ratio: 4 / 5; margin: 0 auto; border-radius: 38px; overflow: hidden; background: var(--stage);
  box-shadow: 0 0 0 .5px var(--sep), 0 24px 60px -30px rgba(0, 0, 0, .45); }
.phone iframe { display: block; width: 100%; height: 100%; border: 0; }
.names { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 18px; max-width: 420px; }
.names label { display: grid; gap: 5px; font-size: .8125rem; color: var(--ink-2); }
.names input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--sep);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1.0625rem; letter-spacing: -.01em; }
.names input:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 1px; border-radius: 12px; }
.names-title { margin: 20px 0 0; font-size: 1.0625rem; }
.card-opts { display: grid; gap: 12px; margin-top: 16px; }
.opt { display: grid; gap: 6px; }
.opt-name { font-size: .8125rem; color: var(--ink-2); }
.opt-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.card-opts input { width: 100%; box-sizing: border-box; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--sep);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; letter-spacing: -.01em; }
.card-opts input:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 1px; border-radius: 12px; }
.card-opts textarea { display: block; width: 100%; box-sizing: border-box; min-height: 96px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--sep);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1.0625rem; line-height: 1.35; letter-spacing: -.01em; resize: vertical; }
.card-opts textarea:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 1px; border-radius: 12px; }
.card-opts .chip.small { text-align: left; white-space: normal; line-height: 1.25; padding-block: 8px; }
.chip.small { min-height: 36px; padding: 0 14px; font-size: .875rem; background: var(--fill); }
.chip.small[aria-pressed="true"] { background: var(--btn); color: #fff; }
.buy-panel .card-opts + .btns, .buy-panel .card-opts + .price { margin-top: 18px; }
.buy-panel .names { margin-top: 10px; }
.buy.card-buy { grid-template-columns: minmax(0, 1fr) minmax(290px, 1fr); }
.phone-col { display: grid; gap: 12px; justify-items: center; }
.phone-col .phone { width: min(460px, 100%); }
.sample-note { max-width: 460px; margin: 0; text-align: center; }
.pay-mail { flex: 1 1 100%; display: grid; gap: 6px; }
.pay-mail input, .thanks-link input { width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--sep);
  background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; letter-spacing: -.01em; }
.pay-mail input:focus-visible, .thanks-link input:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 1px; border-radius: 12px; }
.buy-panel button.btn { flex: 1 1 100%; }
.btn[disabled] { opacity: .55; cursor: progress; }
.thanks { max-width: 640px; margin: clamp(24px, 6vw, 72px) auto; }
.thanks-link { display: grid; gap: 14px; margin-top: 22px; }
.thanks-link input { background: var(--fill); border-color: transparent; font-family: var(--mono); font-size: .875rem; }
.get-note { margin-top: 18px; padding-top: 16px; border-top: .5px solid var(--sep); }
.get-note h2 { margin: 0 0 4px; font-size: .9375rem; font-weight: 600; letter-spacing: -.015em; }
.custom-note { margin: 14px 0 0; font-size: .875rem; line-height: 1.42; color: var(--ink-2); }
.custom-note a { color: var(--tint); }
.get-note p { margin: 0; font-size: .875rem; line-height: 1.42; color: var(--ink-2); }
.panel .how-note { margin: 18px 0 0; }
@media (max-width: 760px) {
  .cards-hero { grid-template-columns: minmax(0, 1fr); }
  .buy.card-buy { grid-template-columns: minmax(0, 1fr); }
}
.buy-panel .names + .btns, .buy-panel .names + .price { margin-top: 18px; }

/* thanks page: send to yourself, order number; my cards page */
.thanks-save { display: grid; gap: 8px; }
.thanks-save-title { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.thanks-order { margin-top: -6px; }
.mycards { max-width: 720px; margin: clamp(24px, 6vw, 72px) auto; }
.my-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.my-item { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: var(--fill); }
.my-item img { width: 72px; height: 90px; object-fit: cover; border-radius: 10px; background: var(--fill-2); }
.my-item h2 { margin: 0 0 2px; font-size: 1.0625rem; line-height: 1.25; }
.my-meta { margin: 0 0 8px; font-size: .8125rem; color: var(--ink-2); white-space: pre; }
.my-item .btns { display: flex; gap: 8px; flex-wrap: wrap; }
.my-empty { margin-top: 18px; display: grid; gap: 12px; justify-items: start; }
.my-btn[hidden] { display: none; }
.thanks-order a { color: var(--tint); }

/* cards site tabs: in the capsule on desktop, a second scrollable row inside the capsule on phones */
@media (max-width: 999px) {
  .cards-site .capsule { flex-wrap: wrap; height: auto; padding: 6px 6px 6px 14px; border-radius: 26px; row-gap: 2px; }
  .cards-site .nav-items { display: flex; order: 3; flex: 1 0 100%; overflow-x: auto; scrollbar-width: none; margin: 0 0 0 -8px; }
  .cards-site .nav-items::-webkit-scrollbar { display: none; }
  .cards-site .nav-link { height: 34px; padding: 0 12px; font-size: .9375rem; white-space: nowrap; }
}
.tabpage { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 5vw, 56px); align-items: start; max-width: 980px; margin: clamp(24px, 6vw, 64px) auto; }
.tabpage h2 { font-size: 1.1875rem; margin: 28px 0 8px; }
.tabpage p { max-width: 60ch; }
.tab-price { font-weight: 600; font-size: 1.0625rem; margin: 10px 0 16px; }
.tab-list { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
/* phone mockup, iPhone 18 Pro Max proportions: body 78 x 163.4 mm, 6.9" screen 440 x 956 pt, narrow island */
.tab-demo { display: block; text-decoration: none; }
.iph { --pw: min(290px, 80vw); position: relative; width: var(--pw); padding: calc(var(--pw) * .012); border-radius: calc(var(--pw) * .168);
  background: linear-gradient(135deg, #D9DADD 0%, #8B8D92 18%, #F1F2F4 34%, #6E7075 52%, #C9CACE 70%, #5E6064 86%, #B8BABE 100%);
  box-shadow: 0 34px 60px -28px rgba(0, 0, 0, .5), 0 8px 16px -8px rgba(0, 0, 0, .35); }
.iph-bz { display: block; position: relative; padding: calc(var(--pw) * .024); border-radius: calc(var(--pw) * .156); background: #050506;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.iph img { display: block; width: 100%; height: auto; aspect-ratio: 440 / 956; object-fit: cover; object-position: top; border-radius: calc(var(--pw) * .132); background: #111; }
.iph-isl { position: absolute; left: 50%; top: calc(var(--pw) * .047); width: calc(var(--pw) * .196); height: calc(var(--pw) * .078); transform: translateX(-50%);
  border-radius: 999px; background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .03); }
.iph-isl::after { content: ""; position: absolute; right: 22%; top: 50%; width: 18%; aspect-ratio: 1; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2A3550, #0A0D16 60%); }
.iph-sb { position: absolute; left: calc(var(--pw) * .024); right: calc(var(--pw) * .024); top: calc(var(--pw) * .068); height: calc(var(--pw) * .04);
  display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--pw) * .1) 0 calc(var(--pw) * .115); color: #000; pointer-events: none; }
.iph-sb.light { color: #fff; }
.iph-sb b { font: 600 calc(var(--pw) * .041)/1 system-ui, -apple-system, sans-serif; letter-spacing: -.01em; }
.iph-sb svg { height: calc(var(--pw) * .032); width: auto; fill: currentColor; }
.iph-b { position: absolute; width: calc(var(--pw) * .011); border-radius: 2px; background: linear-gradient(90deg, #6E7075, #D4D5D8 50%, #75777C); }
.iph-b.l { left: calc(var(--pw) * -.009); } .iph-b.r { right: calc(var(--pw) * -.009); }
.iph-b.act { top: 17.5%; height: 4%; } .iph-b.up { top: 25%; height: 7%; } .iph-b.dn { top: 34%; height: 7%; }
.iph-b.pwr { top: 27%; height: 11%; } .iph-b.cam { top: 58.5%; height: 7.5%; right: calc(var(--pw) * -.004); background: linear-gradient(90deg, #4A4C50, #9A9CA0); }
.tab-fan { display: grid; justify-items: center; align-items: center; width: min(480px, 94vw); padding: 10px 0 24px; }
.tab-fan .tab-demo { grid-area: 1 / 1; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.tab-fan .iph { --pw: min(232px, 46vw); }
.tab-fan .tab-demo:nth-child(1) { transform: translateX(-42%) rotate(-7deg) scale(.84); }
.tab-fan .tab-demo:nth-child(2) { z-index: 1; }
.tab-fan .tab-demo:nth-child(3) { transform: translateX(42%) rotate(7deg) scale(.84); }
.tab-fan .tab-demo:nth-child(1):hover { transform: translateX(-46%) rotate(-9deg) scale(.88); z-index: 2; }
.tab-fan .tab-demo:nth-child(3):hover { transform: translateX(46%) rotate(9deg) scale(.88); z-index: 2; }
@media (max-width: 760px) { .tabpage { grid-template-columns: 1fr; } .tab-demo, .tab-fan { order: -1; justify-self: center; } .iph { --pw: min(220px, 58vw); } .tab-fan .iph { --pw: min(168px, 40vw); } }

/* готовые сайты: снимки страниц на странице товара */
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 28px; }
.shots.one { grid-template-columns: 1fr; margin-top: 0; }
.shots img { display: block; width: 100%; height: auto; aspect-ratio: 1440 / 900; background: #0b0d12; border-radius: 14px; border: 1px solid rgba(128, 128, 128, .22); }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; } }

/* online invitations: editor with a live phone preview, host room with guest answers */
.inv-ed, .inv-roompage { max-width: 1180px; margin: clamp(20px, 4vw, 44px) auto 80px; }
.inv-head { max-width: 760px; margin-bottom: 22px; }
.inv-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 26px; }
.inv-kinds button { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 22px; background: var(--surface); border: 2px solid transparent;
  text-align: left; cursor: pointer; transition: border-color .2s ease, transform var(--spring-ui-ms) var(--spring-ui); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.inv-kinds button:active { transform: scale(.98); }
.inv-kinds button[aria-pressed="true"] { border-color: var(--btn); }
.inv-kinds button:disabled { opacity: .45; cursor: default; }
.inv-kinds img { width: 54px; height: auto; aspect-ratio: 440 / 956; object-fit: cover; object-position: top; border-radius: 10px; flex: none; }
.inv-kinds b { display: block; font-size: 1.0625rem; }
.inv-kinds small { display: block; color: var(--ink-2); font-size: .875rem; margin-top: 2px; }
.inv-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 56px); align-items: start; }
.inv-form { display: grid; gap: 12px; }
.inv-group { background: var(--surface); border-radius: 22px; overflow: hidden; }
.inv-group summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 1.0625rem; display: flex; justify-content: space-between; align-items: center; }
.inv-group summary::-webkit-details-marker { display: none; }
.inv-group summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease-out); }
.inv-group[open] summary::after { transform: rotate(225deg) translateY(-2px); }
.inv-group-body { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 0 22px 22px; }
.inv-field, .inv-list { display: grid; gap: 6px; grid-column: 1 / -1; min-width: 0; }
.inv-field.half { grid-column: auto; }
.inv-label { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.inv-hint { font-size: .8125rem; color: var(--ink-2); margin: 0; }
.inv-form input, .inv-form textarea { width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: var(--fill); border: 1.5px solid transparent;
  border-radius: 12px; padding: 11px 13px; transition: border-color .15s ease, background .15s ease; }
.inv-form textarea { min-height: 112px; resize: vertical; line-height: 1.45; }
.inv-form input:focus, .inv-form textarea:focus { outline: none; border-color: var(--btn); background: var(--surface); }
.inv-field.bad input, .inv-field.bad textarea { border-color: #E5484D; }
.inv-rows { display: grid; gap: 8px; }
.inv-row { display: flex; gap: 8px; align-items: center; }
.inv-row input { flex: 1 1 0; }
.inv-row input.w-time { flex: 0 0 96px; }
.inv-row input.w-year { flex: 0 0 82px; }
.inv-row.colors input[type="color"] { flex: 0 0 44px; height: 44px; padding: 3px; border-radius: 12px; cursor: pointer; }
.inv-row-tools { display: flex; gap: 4px; flex: none; }
.inv-icon { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--fill); color: var(--ink-2); font-size: 1.05rem; line-height: 1; cursor: pointer; }
.inv-icon:hover { background: var(--fill-2); color: var(--ink); }
.inv-add { justify-self: start; }
.inv-paybar { position: sticky; bottom: 14px; z-index: 5; display: flex; gap: 10px; padding: 10px; margin-top: 16px; border-radius: 999px; }
.inv-paybar .btn.main { flex: 1; min-height: 52px; font-size: 1.0625rem; }
.inv-paybar .inv-show { display: none; }
.inv-status { min-height: 1.4em; margin: 10px 4px 0; color: var(--ink-2); font-size: .9375rem; }
.inv-after { display: flex; gap: 14px; align-items: center; margin: 4px 4px 0; }
.inv-preview { position: sticky; top: 88px; display: grid; justify-items: center; gap: 12px; }
.inv-preview .footnote { max-width: 300px; text-align: center; }
.inv-phone { --pw: min(340px, 30vw, calc((100svh - 150px) / 2.12)); }
body:has(.inv-ed) .fab, body:has(.inv-roompage) .fab { display: none; }
.inv-screen { display: block; position: relative; aspect-ratio: 440 / 956; overflow: hidden; border-radius: calc(var(--pw) * .132); background: #fff; transition: background .3s ease; }
.inv-screen iframe { position: absolute; left: 0; top: 6.485%; width: 440px; height: 894px; border: 0; transform-origin: 0 0; background: transparent; }
.inv-close { display: none; }
.inv-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.inv-trust div { background: var(--surface); border-radius: 22px; padding: 20px 22px; }
.inv-trust b { font-size: 1.0625rem; }
.inv-trust p { margin: 6px 0 0; color: var(--ink-2); font-size: .9375rem; }
.inv-ed.editing .inv-after [data-inv-reset] { display: none; }
@media (max-width: 900px) {
  .inv-kinds { gap: 8px; }
  .inv-kinds button { flex-direction: column; align-items: stretch; gap: 8px; padding: 6px 6px 10px; border-radius: 18px; text-align: center; }
  .inv-kinds img { width: 100%; height: 92px; aspect-ratio: auto; border-radius: 13px; }
  .inv-kinds b { font-size: .875rem; line-height: 1.2; }
  .inv-kinds small { display: none; }
  .inv-body { grid-template-columns: 1fr; }
  .inv-group-body { padding: 0 16px 18px; }
  .inv-group summary { padding: 16px; }
  .inv-paybar .inv-show { display: inline-flex; }
  .inv-paybar .btn.main .long { display: none; }
  .inv-preview { position: fixed; inset: 0; z-index: 60; top: 0; align-content: center; padding: 16px; background: rgba(0, 0, 0, .55);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s; }
  .inv-preview.open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
  .inv-preview .footnote { color: rgba(255, 255, 255, .75); }
  .inv-phone { --pw: min(78vw, calc((100svh - 150px) / 2.1)); }
  .inv-close { display: inline-flex; justify-self: end; background: #fff; color: #000; border-color: #fff; }
  .inv-trust { grid-template-columns: 1fr; }
}
body.inv-lock { overflow: hidden; }

.inv-roompage { max-width: 760px; display: grid; gap: 16px; }
.inv-room { display: grid; gap: 16px; }
.inv-room[hidden], .inv-mine[hidden], .inv-mine-empty[hidden] { display: none; }
.inv-room h2 { font-size: 1.1875rem; margin: 0 0 12px; }
.inv-room .panel p { color: var(--ink-2); }
.inv-link { display: flex; gap: 8px; margin-bottom: 12px; }
.inv-link input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 0 14px; border-radius: 12px; border: 0; background: var(--fill); color: var(--ink); min-height: 44px; }
.inv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.inv-stats div { background: var(--fill); border-radius: 18px; padding: 14px 16px; }
.inv-stats b { display: block; font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.inv-stats span { color: var(--ink-2); font-size: .875rem; }
.inv-answers { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.inv-answer { border-radius: 16px; padding: 12px 14px; background: var(--fill); border-left: 4px solid var(--btn); }
.inv-answer.no { border-left-color: var(--ink-3); }
.inv-answer-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.inv-answer p { margin: 6px 0 0; color: var(--ink) !important; }
.inv-answer .inv-song { color: var(--tint) !important; }
.inv-pill { font-size: .8125rem; color: var(--ink-2); }
.inv-answer-foot { display: flex; justify-content: space-between; margin-top: 6px; font-size: .8125rem; color: var(--ink-2); }
.inv-mine-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
@media (max-width: 560px) { .inv-stats b { font-size: 1.6rem; } .inv-link { flex-direction: column; } }

/* invitations: buyer's mail, return from the bank, cabinet list, status chips */
:root { --warn: #9A5B00; }
:root[data-theme="dark"] { --warn: #FFB340; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --warn: #FFB340; } }
.inv-home[hidden], .inv-login[hidden], .inv-unpaid[hidden], .inv-empty[hidden], .inv-note[hidden], .inv-banner[hidden], .inv-suggest[hidden], .inv-mail-form[hidden],
.inv-room [data-paid-only][hidden] { display: none; }
.inv-mailbox input[type="email"], .inv-login input, .inv-mail input { width: 100%; min-width: 0; font: inherit; font-size: 1rem; color: var(--ink); background: var(--fill); border: 1.5px solid transparent;
  border-radius: 12px; padding: 11px 13px; min-height: 46px; transition: border-color .15s ease, background .15s ease; }
.inv-mailbox input[type="email"]:focus, .inv-login input:focus, .inv-mail input:focus { outline: none; border-color: var(--btn); background: var(--surface); }
.inv-mailbox { display: grid; gap: 8px; margin-top: 12px; padding: 20px 22px; border-radius: 22px; background: var(--surface); }
.inv-mailbox h2 { margin: 0; font-size: 1.0625rem; }
.inv-mailbox .inv-field.bad input { border-color: #E5484D; }
.inv-suggest { margin: 0; font-size: .9375rem; }
.inv-ed.editing .inv-mailbox, .inv-ed.editing .inv-banner { display: none; }
.inv-agree { margin-top: 6px; }
.inv-mailbox .inv-agree input { width: 18px; min-height: 0; padding: 0; background: none; border: 0; }
.inv-agree a { color: var(--tint); }
.inv-lockhint { margin: 6px 4px 0; color: var(--ink-2); font-size: .9375rem; }
.inv-banner { display: grid; gap: 6px; margin: 0 0 18px; padding: 16px 18px; border-radius: 20px; background: var(--surface); border: 1.5px solid var(--sep); }
.inv-banner b { font-size: 1.0625rem; }
.inv-banner p { margin: 0; color: var(--ink-2); }
.inv-banner .btns { margin-top: 6px; }
.inv-banner.ok { border-color: var(--btn); background: color-mix(in srgb, var(--btn) 8%, var(--surface)); }
.inv-banner.wait { border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.inv-banner.wait b::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--warn); animation: inv-pulse 1.4s ease-in-out infinite; }
@keyframes inv-pulse { 50% { opacity: .3; } }
.inv-confirm { width: min(420px, calc(100vw - 32px)); padding: 26px; border: 0; border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
.inv-confirm::backdrop { background: rgba(0, 0, 0, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.inv-confirm[open] { animation: inv-pop .22s cubic-bezier(.2, .8, .2, 1); }
@keyframes inv-pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.inv-confirm h2 { margin: 0 0 8px; font-size: 1.375rem; }
.inv-confirm p { margin: 0; color: var(--ink-2); }
.inv-confirm-addr { display: block; margin: 6px 0 12px; font-size: 1.1875rem; word-break: break-all; }
.inv-confirm-note { font-size: .9375rem; margin-bottom: 18px !important; }
.inv-confirm .btns { display: grid; gap: 8px; }
.inv-confirm .btn { justify-content: center; min-height: 48px; }
.inv-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.inv-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.inv-chip.ok { color: var(--tint); background: color-mix(in srgb, var(--btn) 14%, transparent); }
.inv-chip.wait { color: var(--warn); background: color-mix(in srgb, var(--warn) 16%, transparent); }
.inv-chip.off { color: var(--ink-2); background: var(--fill); }
.inv-cards { display: grid; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.inv-card { display: grid; gap: 4px; padding: 16px 18px; border-radius: 20px; background: var(--fill); }
.inv-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.inv-kindtag { color: var(--ink-2); font-size: .8125rem; font-weight: 600; }
.inv-card-title { margin: 6px 0 0; font-size: 1.1875rem; }
.inv-card-meta { min-height: 1.3em; margin: 0; color: var(--ink-2); font-size: .9375rem; }
.inv-card .btns { align-items: center; margin-top: 10px; }
.inv-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--btn) 12%, transparent); color: var(--ink) !important; }
.inv-empty p { color: var(--ink-2); }
.inv-room-head { display: grid; gap: 8px; }
.inv-room-top { display: flex; }
.inv-room-meta { margin: 0; color: var(--ink-2); }
.inv-room-head .large-title { margin: 0; }
.inv-room-head .lead:empty { display: none; }
.inv-unpaid { border: 1.5px solid color-mix(in srgb, var(--warn) 45%, transparent); }
.inv-login-form, .inv-mail-form { display: flex; gap: 8px; margin: 12px 0 8px; }
.inv-login-form .btn, .inv-mail-form .btn { flex: none; min-height: 46px; }
.inv-login .inv-status, .inv-mail .inv-status { margin: 4px 0 0; }
.inv-keep-note { margin: 12px 0 0; font-size: .875rem; color: var(--ink-2); }
.inv-have { margin: 14px 0 0; color: var(--ink-2); font-size: .9375rem; }
.btn.inv-btn { min-height: 38px; padding: 0 14px; gap: 6px; font-size: .9375rem; }
.btn.inv-btn .icon { width: 18px; height: 18px; }
.inv-btn[hidden] { display: none; }
@media (max-width: 760px) { .btn.inv-btn { width: 38px; padding: 0; justify-content: center; } .btn.inv-btn span { display: none; } }
@media (max-width: 560px) { .inv-login-form, .inv-mail-form { flex-direction: column; } .inv-mailbox { padding: 18px 16px; } }
@media (prefers-reduced-motion: reduce) { .inv-banner.wait b::before { animation: none; } .inv-confirm[open] { animation: none; } }

/* studio: ready-site purchase and download page */
.st-next { margin: 0; padding-left: 1.25em; display: grid; gap: 6px; color: var(--ink-2); font-size: .9375rem; }
.thanks-text.bad { color: var(--ink); }

/* ready sites on a phone: picture, then title, price and the buy button, then what is inside */
@media (max-width: 820px) {
  .buy:has(.shots.one) > div { display: contents; }
  .buy:has(.shots.one) .shots.one { order: 0; }
  .buy:has(.shots.one) .buy-panel { order: 1; }
  .buy:has(.shots.one) .prose { order: 2; }
}
