/* promoprod — Apple-style design system. Tokens first, then components. */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --line: rgba(0, 0, 0, 0.1);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-text: #ffffff;
  --link: #0066cc;
  --ok: #248a3d;
  --warn: #b25000;
  --warn-bg: #fff4e5;
  --danger: #d70015;
  --danger-bg: #fff0f1;
  --nav-bg: rgba(250, 250, 252, 0.72);
  --shadow: 0 2px 6px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);

  /* iOS mockups */
  --ios-bg: #f2f2f7;
  --ios-cell: #ffffff;
  --ios-bar: #e3e3e8;
  --ios-label: #000000;
  --ios-sep: rgba(60, 60, 67, 0.18);
  --ios-blue: #007aff;
  --ios-red: #ff3b30;
  --phone-frame: #1d1d1f;

  --radius-s: 12px;
  --radius-m: 18px;
  --radius-l: 28px;
  --wrap: 1024px;
  --gutter: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #000000;
  --bg-alt: #0b0b0c;
  --surface: #1c1c1e;
  --surface-2: #2c2c2e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --line: rgba(255, 255, 255, 0.14);
  --accent: #0a84ff;
  --accent-hover: #409cff;
  --link: #2997ff;
  --ok: #30d158;
  --warn: #ffb340;
  --warn-bg: rgba(255, 159, 10, 0.14);
  --danger: #ff6961;
  --danger-bg: rgba(255, 69, 58, 0.14);
  --nav-bg: rgba(22, 22, 23, 0.72);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 12px 32px rgba(0, 0, 0, 0.5);

  --ios-bg: #000000;
  --ios-cell: #1c1c1e;
  --ios-bar: #3a3a3c;
  --ios-label: #ffffff;
  --ios-sep: rgba(84, 84, 88, 0.6);
  --ios-blue: #0a84ff;
  --ios-red: #ff453a;
  --phone-frame: #3a3a3c;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 116px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-2); }
.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Global nav ---------- */

.globalnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.globalnav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  height: 52px; display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 24px; height: 24px; background: url("/static/favicon.svg") center / contain no-repeat; }
.globalnav__links { display: flex; gap: 22px; margin-left: auto; font-size: 13px; }
.globalnav__links a { color: var(--text); opacity: 0.8; }
.globalnav__links a:hover { opacity: 1; text-decoration: none; }
.theme-toggle {
  width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--text); margin-right: -8px;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.globalnav__links:empty + .theme-toggle { margin-left: auto; }
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
:root[data-theme="light"] .i-moon, :root[data-theme="dark"] .i-sun { display: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 980px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-text);
  font-size: 17px; font-weight: 400; letter-spacing: -0.022em; white-space: nowrap;
  transition: background-color 0.15s ease, transform 0.1s ease, opacity 0.15s ease;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn--secondary { background: var(--surface-2); color: var(--text); }
.btn--secondary:hover { background: color-mix(in srgb, var(--surface-2) 85%, var(--text)); }
.btn--ghost { background: transparent; color: var(--link); padding: 0 10px; }
.btn--ghost:hover { background: transparent; text-decoration: underline; }
.btn--danger { background: var(--danger-bg); color: var(--danger); }
.btn--danger:hover { background: var(--danger-bg); filter: brightness(0.96); }
.btn--small { min-height: 32px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }

.link-arrow::after { content: " ›"; }

/* ---------- Hero ---------- */

.hero { text-align: center; padding-block: 72px 40px; }
.eyebrow { font-size: 17px; font-weight: 600; color: var(--text-2); letter-spacing: -0.01em; margin-bottom: 10px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 72px); line-height: 1.05; font-weight: 700; letter-spacing: -0.035em;
}
.hero__lead { max-width: 640px; margin: 18px auto 0; font-size: clamp(19px, 2.4vw, 24px); line-height: 1.33; color: var(--text-2); letter-spacing: -0.02em; }
.hero__actions { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__facts { display: flex; justify-content: center; gap: 36px; margin-top: 44px; flex-wrap: wrap; }
.fact { text-align: center; }
.fact b { display: block; font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.fact span { font-size: 14px; color: var(--text-2); }

/* ---------- Callouts ---------- */

.callout {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px 22px; border-radius: var(--radius-m);
  background: var(--warn-bg); color: var(--text);
}
.callout__icon {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--warn); color: #fff; font-weight: 700; font-size: 16px;
}
.callout h2, .callout h3 { font-size: 19px; line-height: 1.3; letter-spacing: -0.02em; margin-bottom: 4px; }
.callout p { color: var(--text-2); font-size: 15px; line-height: 1.45; }
.callout--info { background: var(--surface-2); }
.callout--info .callout__icon { background: var(--accent); }
.callout--danger { background: var(--danger-bg); }
.callout--danger .callout__icon { background: var(--danger); }

/* ---------- Step navigator ---------- */

.stepnav {
  position: sticky; top: 52px; z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.stepnav__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter);
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
}
.stepnav__inner::-webkit-scrollbar { display: none; }
.stepnav a {
  flex: none; min-width: 38px; height: 38px; padding: 0 12px; border-radius: 980px;
  display: grid; place-items: center; font-size: 15px; font-weight: 500; color: var(--text-2);
  font-variant-numeric: tabular-nums; transition: background-color 0.2s ease, color 0.2s ease;
}
.stepnav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.stepnav a.is-current { background: var(--text); color: var(--bg); }
.stepnav a.is-done { color: var(--text); }

/* ---------- Steps ---------- */

.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); }
.steps { display: grid; gap: 28px; padding-block: 40px 72px; }
.step {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center;
  padding: 48px 56px; border-radius: var(--radius-l); background: var(--bg-alt);
  scroll-margin-top: 116px;
}
.step:nth-child(even) { grid-template-columns: 300px 1fr; }
.step:nth-child(even) .step__text { order: 2; }
.step__num {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--accent); letter-spacing: 0; text-transform: uppercase;
}
.step__num::before {
  content: attr(data-n); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px;
}
.step h2 { margin-top: 14px; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; }
.step p { margin-top: 14px; font-size: 19px; line-height: 1.42; color: var(--text-2); letter-spacing: -0.02em; }
.step p strong { color: var(--text); font-weight: 600; }
.step__note {
  margin-top: 20px; padding: 14px 16px; border-radius: var(--radius-s); background: var(--surface);
  font-size: 15px; line-height: 1.45; color: var(--text-2); display: flex; gap: 10px;
}
.step__note::before { content: "i"; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--text-3); color: var(--bg); display: grid; place-items: center; font: 600 13px/1 var(--font); font-style: italic; }
.step__actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }

.done {
  text-align: center; padding: 64px 32px; border-radius: var(--radius-l);
  background: linear-gradient(160deg, color-mix(in srgb, var(--ok) 14%, var(--bg-alt)), var(--bg-alt) 60%);
}
.done__badge {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: var(--ok); color: #fff;
  display: grid; place-items: center;
}
.done__badge svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.done h2 { font-size: clamp(32px, 4.5vw, 48px); letter-spacing: -0.03em; line-height: 1.08; }
.done p { margin: 14px auto 0; max-width: 520px; font-size: 19px; color: var(--text-2); }

/* ---------- Phone + iOS mockups ---------- */

.phone {
  width: 100%; max-width: 280px; margin: 0 auto; aspect-ratio: 9 / 19.2;
  border-radius: 46px; padding: 11px; background: var(--phone-frame);
  box-shadow: var(--shadow), inset 0 0 0 1.5px rgba(255, 255, 255, 0.08);
  position: relative;
}
.phone__screen {
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--ios-bg); color: var(--ios-label);
  font: 13px/1.25 var(--font); letter-spacing: -0.01em;
  display: flex; flex-direction: column;
}
.phone__island { position: absolute; top: 9px; left: 50%; width: 76px; height: 22px; margin-left: -38px; border-radius: 12px; background: #000; z-index: 3; }
.ios-status { flex: none; height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 6px 24px 0 28px; font-weight: 600; font-size: 13px; }
.ios-status__icons { display: flex; gap: 4px; align-items: center; }
.ios-status__icons i { display: block; background: currentColor; border-radius: 1px; }
.ios-status__icons i:nth-child(1) { width: 15px; height: 9px; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.ios-status__icons i:nth-child(2) { width: 20px; height: 9.5px; border-radius: 3px; background: none; border: 1.3px solid currentColor; position: relative; }
.ios-status__icons i:nth-child(2)::after { content: ""; position: absolute; inset: 1.2px 4px 1.2px 1.2px; border-radius: 1px; background: currentColor; }
.ios-body { flex: 1; padding: 0 14px 14px; overflow: hidden; position: relative; }
.ios-back { color: var(--ios-blue); font-size: 13px; padding: 4px 0 2px; }
.ios-back::before { content: "‹ "; font-size: 17px; line-height: 0; }
.ios-large { font-size: 25px; font-weight: 700; letter-spacing: -0.02em; margin: 2px 2px 10px; }
.ios-search { height: 28px; border-radius: 9px; background: var(--ios-bar); margin-bottom: 14px; opacity: 0.7; }
.ios-group { background: var(--ios-cell); border-radius: 11px; margin-bottom: 14px; overflow: hidden; }
.ios-row {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 7px 12px;
}
.ios-row + .ios-row::before { content: ""; position: absolute; top: 0; left: 44px; right: 0; height: 0.5px; background: var(--ios-sep); }
.ios-group--plain .ios-row + .ios-row::before { left: 12px; }
.ios-row::after { content: ""; margin-left: auto; width: 6px; height: 6px; border: solid var(--text-3); border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); opacity: 0.6; flex: none; }
.ios-row--nochev::after { display: none; }
.ios-ico { flex: none; width: 24px; height: 24px; border-radius: 6px; background: var(--ios-bar); }
.ios-ico--gray { background: #8e8e93; }
.ios-ico--blue { background: #007aff; }
.ios-ico--green { background: #34c759; }
.ios-ico--orange { background: #ff9500; }
.ios-ico--red { background: #ff3b30; }
.ios-ico--purple { background: #af52de; }
.ios-ico--store { background: linear-gradient(180deg, #1ac8fc, #1a74e8); }
.ios-bar { height: 8px; border-radius: 4px; background: var(--ios-bar); flex: 0 1 auto; }
.ios-bar--s { width: 38%; } .ios-bar--m { width: 56%; } .ios-bar--l { width: 72%; }
.ios-profile { display: flex; align-items: center; gap: 12px; padding: 12px; min-height: 64px; }
.ios-avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(160deg, #a2a2a7, #6e6e73); }
.ios-lines { display: grid; gap: 6px; flex: 1; }
.ios-center { text-align: center; padding: 6px 0 16px; }
.ios-center .ios-avatar { width: 64px; height: 64px; margin: 0 auto 10px; }
.ios-center .ios-bar { margin: 6px auto 0; }
.ios-label { font-size: 13px; }
.ios-label--blue { color: var(--ios-blue); }
.ios-label--red { color: var(--ios-red); }
.ios-label--center { margin: 0 auto; }

/* The thing to tap */
.is-target { z-index: 1; }
.ios-row.is-target, .ios-sheet__btn.is-target, .ios-alert__btn.is-target, .ios-app.is-target {
  box-shadow: inset 0 0 0 2px var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--ios-cell));
}
.ios-row.is-target { border-radius: 11px; }
.tap {
  position: absolute; width: 26px; height: 26px; border-radius: 50%; pointer-events: none;
  background: color-mix(in srgb, var(--accent) 35%, transparent); border: 2px solid var(--accent);
  right: 22px; top: 50%; margin-top: -13px;
  animation: tap 1.8s cubic-bezier(0.3, 0, 0.2, 1) infinite;
}
@keyframes tap {
  0% { transform: scale(0.6); opacity: 0; }
  20% { transform: scale(1); opacity: 1; }
  60% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* Sheets and alerts */
.ios-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.32); z-index: 2; }
.ios-sheet { position: absolute; left: 8px; right: 8px; bottom: 10px; z-index: 3; display: grid; gap: 8px; }
.ios-sheet__group { border-radius: 13px; overflow: hidden; background: color-mix(in srgb, var(--ios-cell) 94%, transparent); backdrop-filter: blur(12px); }
.ios-sheet__title { padding: 11px 14px; text-align: center; font-size: 11px; color: var(--text-3); }
.ios-sheet__btn { position: relative; display: block; padding: 13px 10px; text-align: center; color: var(--ios-blue); font-size: 16px; border-top: 0.5px solid var(--ios-sep); }
.ios-sheet__btn:first-child { border-top: 0; }
.ios-sheet__btn--red { color: var(--ios-red); }
.ios-sheet__btn--bold { font-weight: 600; }
.ios-sheet__btn .tap { right: 14px; }
.ios-alert { position: absolute; left: 50%; top: 50%; width: 76%; transform: translate(-50%, -50%); z-index: 3; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--ios-cell) 96%, transparent); text-align: center; }
.ios-alert__body { padding: 16px 14px 14px; }
.ios-alert__body b { display: block; font-size: 15px; margin-bottom: 4px; }
.ios-alert__body span { font-size: 12px; color: var(--text-2); }
.ios-alert__actions { display: grid; grid-template-columns: 1fr 1fr; border-top: 0.5px solid var(--ios-sep); }
.ios-alert__btn { position: relative; padding: 11px 6px; color: var(--ios-blue); font-size: 15px; }
.ios-alert__btn + .ios-alert__btn { border-left: 0.5px solid var(--ios-sep); font-weight: 600; }
.ios-alert__btn .tap { right: 50%; margin-right: -13px; }

/* Forms inside the phone */
.ios-field { background: var(--ios-cell); border-radius: 11px; padding: 10px 12px; margin-bottom: 10px; }
.ios-field small { display: block; font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 4px; }
.ios-field span { font-size: 14px; letter-spacing: 0.08em; }
.ios-field.is-target { box-shadow: inset 0 0 0 2px var(--accent); }
.ios-cta { margin-top: 14px; height: 38px; border-radius: 11px; background: var(--ios-blue); color: #fff; display: grid; place-items: center; font-size: 14px; font-weight: 600; }

/* Order page inside the phone */
.ios-web { background: var(--ios-cell); border-radius: 12px; padding: 12px; }
.ios-app { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 11px; }
.ios-app__icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.ios-app__icon--a { background: linear-gradient(145deg, #0a84ff, #5e5ce6); }
.ios-app__icon--b { background: linear-gradient(145deg, #34c759, #0fa37f); }
.ios-app__icon--c { background: linear-gradient(145deg, #ff9f0a, #ff375f); }
.ios-get { margin-left: auto; padding: 5px 13px; border-radius: 980px; background: var(--ios-blue); color: #fff; font-size: 12px; font-weight: 600; }

/* Home screen */
.ios-home { position: absolute; inset: 0; padding: 52px 18px 18px; background: linear-gradient(170deg, #5e5ce6 0%, #0a84ff 45%, #30d158 120%); }
.ios-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 12px; }
.ios-grid i { aspect-ratio: 1; border-radius: 12px; background: rgba(255, 255, 255, 0.28); }
.ios-grid .ios-new { position: relative; background: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.55), 0 6px 16px rgba(0, 0, 0, 0.25); display: grid; place-items: center; }
.ios-grid .ios-new::before { content: ""; width: 56%; height: 56%; border-radius: 30%; background: linear-gradient(145deg, #0a84ff, #5e5ce6); }
.ios-grid .ios-new .tap { right: 50%; margin-right: -13px; }
.ios-progress { position: absolute; left: 18%; right: 18%; bottom: 20%; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.ios-progress::after { content: ""; position: absolute; inset: 0; width: 65%; background: #fff; border-radius: 2px; }

/* ---------- Order page ---------- */

.order-hero { text-align: center; padding-block: 56px 28px; }
.order-hero h1 { font-size: clamp(36px, 6vw, 56px); letter-spacing: -0.035em; line-height: 1.07; }
.order-hero p { margin-top: 12px; font-size: 19px; color: var(--text-2); }
.order { display: grid; gap: 20px; max-width: 720px; margin: 0 auto; padding-bottom: 72px; }
.panel { border-radius: var(--radius-l); background: var(--bg-alt); padding: 28px; }
.panel__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.panel__num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; transform: translateY(-2px); }
.panel h2 { font-size: 24px; letter-spacing: -0.025em; line-height: 1.2; }
.panel__text { color: var(--text-2); font-size: 17px; }
.panel__text + .panel__text { margin-top: 8px; }
.panel .btn { margin-top: 16px; }
.panel .btn--secondary, .step .btn--secondary, .card .btn--secondary { background: var(--surface); }
.panel .btn--secondary:hover { background: color-mix(in srgb, var(--surface) 90%, var(--text)); }

.cred { display: grid; gap: 10px; }
.cred__row { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: var(--radius-m); background: var(--surface); }
.cred__label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-3); }
.cred__value { font-size: 19px; font-weight: 500; letter-spacing: -0.01em; word-break: break-all; font-variant-numeric: tabular-nums; }
.cred__main { flex: 1; min-width: 0; }
.copy-btn { flex: none; min-width: 124px; }
.copy-btn.is-copied { background: var(--ok); color: #fff; }

.apps { display: grid; gap: 10px; }
.app { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: var(--radius-m); background: var(--surface); }
.app__icon { flex: none; width: 60px; height: 60px; border-radius: 13.5px; object-fit: cover; background: var(--surface-2); box-shadow: inset 0 0 0 0.5px var(--line); }
.app__icon--letter { display: grid; place-items: center; font-size: 26px; font-weight: 600; color: #fff; background: linear-gradient(145deg, #0a84ff, #5e5ce6); }
.app__main { flex: 1; min-width: 0; }
.app__name { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.25; overflow-wrap: anywhere; }
.app__meta { font-size: 14px; color: var(--text-2); }
.app .btn { margin-top: 0; flex: none; min-height: 34px; padding: 0 18px; font-size: 15px; font-weight: 600; }

.device-hint { display: none; margin-bottom: 4px; }
.device-hint.is-visible { display: flex; }

.empty { text-align: center; padding-block: 96px 120px; }
.empty__icon { width: 72px; height: 72px; margin: 0 auto 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); font-size: 34px; font-weight: 600; }
.empty h1 { font-size: clamp(32px, 5vw, 48px); letter-spacing: -0.03em; line-height: 1.1; }
.empty p { margin: 14px auto 0; max-width: 520px; font-size: 19px; color: var(--text-2); }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); background: var(--bg-alt); font-size: 12px; color: var(--text-2); }
.footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 24px; display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; }
.footer__muted { color: var(--text-3); }

/* ---------- Admin ---------- */

.admin { padding-block: 36px 80px; }
.admin-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-head h1 { font-size: 40px; letter-spacing: -0.03em; line-height: 1.1; margin-right: auto; }
.admin-tabs { display: inline-flex; padding: 3px; border-radius: 980px; background: var(--surface-2); gap: 2px; }
.admin-tabs a { padding: 6px 16px; border-radius: 980px; color: var(--text); font-size: 14px; }
.admin-tabs a:hover { text-decoration: none; background: color-mix(in srgb, var(--surface-2) 70%, var(--text)); }
.admin-tabs a.is-active { background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.card { border-radius: var(--radius-m); background: var(--bg-alt); padding: 24px; }
.card + .card { margin-top: 20px; }
.card h2 { font-size: 21px; letter-spacing: -0.02em; margin-bottom: 14px; }
.card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card__head h2 { margin: 0 auto 0 0; }

.flash { padding: 14px 18px; border-radius: var(--radius-s); margin-bottom: 20px; font-size: 15px; background: color-mix(in srgb, var(--ok) 14%, var(--bg)); }
.flash--error { background: var(--danger-bg); color: var(--danger); }
.flash--warn { background: var(--warn-bg); }

.table-wrap { overflow-x: auto; margin: 0 -8px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.04em; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { text-align: right; white-space: nowrap; }
.table .actions > * + * { margin-left: 6px; }
.cell-app { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.cell-app .app__icon { width: 40px; height: 40px; border-radius: 9px; font-size: 18px; }
.cell-sub { font-size: 13px; color: var(--text-2); }

.badge { display: inline-block; padding: 2px 10px; border-radius: 980px; font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.badge--ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge--warn { background: var(--warn-bg); color: var(--warn); }
.badge--off { background: var(--danger-bg); color: var(--danger); }

.form { display: grid; gap: 18px; }
.form--inline { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); align-items: end; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field small { font-size: 13px; color: var(--text-3); }
.input, .select {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--bg); font-size: 17px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.segmented { display: inline-flex; padding: 3px; border-radius: var(--radius-s); background: var(--surface-2); gap: 2px; flex-wrap: wrap; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: block; padding: 7px 14px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.segmented input:checked + span { background: var(--bg); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12); }
.segmented input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.check-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-s); background: var(--bg); border: 1px solid var(--line); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.check-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.check-card input { position: absolute; opacity: 0; }
.check-card .app__icon { width: 40px; height: 40px; border-radius: 9px; font-size: 18px; }
.check-card__main { flex: 1; min-width: 0; }
.check-card__main .cell-sub { display: block; }
.check-card__name { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.check-card__tick { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text-3); display: grid; place-items: center; transition: background-color 0.15s ease, border-color 0.15s ease; }
.check-card__tick::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.check-card:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--bg)); }
.check-card:has(input:checked) .check-card__tick { background: var(--accent); border-color: var(--accent); }
.check-card:has(input:checked) .check-card__tick::after { opacity: 1; }
.check-card:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); }
.check-card.is-filtered { display: none; }
.check-count { font-size: 14px; color: var(--text-2); }

.dropzone { display: grid; place-items: center; gap: 8px; padding: 36px 20px; border-radius: var(--radius-m); border: 2px dashed var(--line); background: var(--bg); text-align: center; cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.dropzone.is-over, .dropzone:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
.dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.dropzone b { font-size: 17px; }
.dropzone span { font-size: 14px; color: var(--text-2); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 12px; display: none; }
.progress.is-active { display: block; }
.progress__bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s linear; }

.linkbox { display: flex; gap: 10px; align-items: center; padding: 14px 14px 14px 18px; border-radius: var(--radius-m); background: var(--bg); border: 1px solid var(--line); }
.linkbox code { flex: 1; min-width: 0; font: 500 16px/1.4 ui-monospace, "SF Mono", Menlo, monospace; word-break: break-all; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.login { max-width: 400px; margin: 80px auto 120px; text-align: center; }
.login h1 { font-size: 40px; letter-spacing: -0.03em; margin-bottom: 8px; }
.login .form { margin-top: 28px; text-align: left; }
.pw { display: flex; gap: 8px; align-items: center; }
.pw code { font: 500 15px ui-monospace, "SF Mono", Menlo, monospace; }
.inline-form { display: inline; }

/* ---------- Responsive ---------- */

@media (max-width: 834px) {
  .step, .step:nth-child(even) { grid-template-columns: 1fr; gap: 32px; padding: 36px 28px 40px; text-align: center; }
  .step:nth-child(even) .step__text { order: 0; }
  .step__note { text-align: left; }
  .step__actions { justify-content: center; }
  .phone { max-width: 250px; }
}

@media (max-width: 734px) {
  :root { --gutter: 16px; }
  body { font-size: 17px; }
  .hero { padding-block: 48px 28px; }
  .hero__facts { gap: 22px; }
  .globalnav__links { gap: 14px; }
  .steps { gap: 16px; padding-block: 24px 56px; }
  .step, .step:nth-child(even) { padding: 32px 20px 36px; border-radius: 24px; }
  .step p { font-size: 17px; }
  .panel { padding: 22px 18px; border-radius: 24px; }
  .cred__row { flex-wrap: wrap; }
  .copy-btn { width: 100%; }
  .app { gap: 12px; padding: 12px; }
  .app__icon { width: 52px; height: 52px; border-radius: 12px; }
  .app__name { font-size: 17px; }
  .admin-head h1 { font-size: 32px; }
  .card { padding: 18px 16px; }
  .linkbox { flex-direction: column; align-items: stretch; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .globalnav, .stepnav { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
