:root {
  color-scheme: dark;
  --canvas: #15191f;
  --surface: #20262e;
  --surface-raised: #262f3b;
  --ink: #f2f5fa;
  --muted: #b6c1cf;
  --line: #394454;
  --accent: #a9c9f4;
  --blue: #2864e8;
  --blue-button: #255cdb;
  --blue-hover: #1e50ca;
  --success: #a4dbbe;
  --success-bg: #263c37;
  --scene-shadow: #080c18a6;
  --stage-base: #151e2d;
  --stage-glow: #273f74;
  --stage-grid: #8daaf029;
  --stage-rail: #7192d381;
  --ease: cubic-bezier(.2, .75, .25, 1);
  --page: min(1280px, 100% - 2 * clamp(22px, 5vw, 74px));
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --canvas: #f4f7fb;
  --surface: #fff;
  --surface-raised: #eaf0fa;
  --ink: #182c45;
  --muted: #4d627b;
  --line: #cbd8e9;
  --accent: #2355b6;
  --success: #146344;
  --success-bg: #def1e7;
  --scene-shadow: #13264430;
  --stage-base: #e5edfc;
  --stage-glow: #b4c9f4;
  --stage-grid: #6680bb32;
  --stage-rail: #4b6eb17a;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

a { color: inherit; text-decoration: none; }

button { color: inherit; font: inherit; cursor: pointer; }

button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}

p, h1, h2, h3, dl, dd { margin: 0; }

.wrap { width: var(--page); margin-inline: auto; }

.skip-link {
  position: fixed;
  z-index: 4;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  clip-path: inset(50%);
  background: var(--surface);
}

.skip-link:focus { clip-path: none; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  width: max-content;
  color: var(--ink);
  font-size: 27px;
  font-weight: 850;
  letter-spacing: -.085em;
  line-height: 1;
  flex-shrink: 0;
}

.brand img { display: block; flex: none; }

.site-nav, .header-actions { display: flex; align-items: center; }

.site-nav { gap: clamp(18px, 3.1vw, 44px); }

.site-nav a, .login, .site-footer nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: color 170ms ease;
}

.site-nav a:hover, .login:hover, .site-footer nav a:hover { color: var(--ink); }

.header-actions { gap: 16px; }

.theme-toggle, .playback {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--accent);
  transition: background 160ms, color 160ms;
}

.theme-toggle:hover, .playback:hover { background: var(--surface-raised); }

.theme-icon {
  position: relative;
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.theme-icon::after {
  position: absolute;
  inset: -5px;
  border: 1.5px dotted currentColor;
  border-radius: 50%;
  content: "";
}

[data-theme="light"] .theme-icon {
  border: 0;
  box-shadow: -4px 2px 0 0 currentColor;
  transform: translate(2px, -1px);
}

[data-theme="light"] .theme-icon::after { display: none; }

.hero {
  padding-block: clamp(44px, 3.5vw, 58px) clamp(52px, 5.2vw, 78px);
}

.hero-copy {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.category {
  margin-bottom: 15px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 670;
}

h1 {
  font-size: clamp(48px, 6.3vw, 90px);
  font-weight: 720;
  letter-spacing: -.074em;
  line-height: .99;
  text-wrap: balance;
}

h1 em { color: var(--accent); font-style: normal; }

.hero-summary {
  max-width: 560px;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.57;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 50px;
  padding: 10px 19px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.button-primary {
  color: #fff;
  background-color: var(--blue-button);
  transition: background 180ms, transform 180ms;
}

.button-primary:hover { background-color: var(--blue-hover); transform: translateY(-2px); }

.button-secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background 180ms ease;
}

.button-secondary:hover { background: var(--surface-raised); }

.link-arrow {
  position: relative;
  flex: none;
  width: 12px;
  height: 12px;
  display: inline-block;
}

.link-arrow::before {
  position: absolute;
  inset: 1.5px 1.5px auto auto;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid;
  border-right: 1.5px solid;
  content: "";
}

.link-arrow::after {
  position: absolute;
  top: 5.3px;
  left: 1px;
  width: 10px;
  height: 1.5px;
  transform: rotate(-45deg);
  background: currentColor;
  content: "";
}

.link-arrow-down { transform: rotate(90deg); }

.workflow {
  --phase: 0%;
  min-width: 0;
  margin-top: clamp(25px, 3.05vw, 43px);
  scroll-margin-top: 20px;
}

.workflow[data-stage="1"] { --phase: 50%; }
.workflow[data-stage="2"] { --phase: 100%; }

.scene {
  isolation: isolate;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .62fr) minmax(0, 1.15fr) minmax(0, .62fr);
  align-items: center;
  justify-items: center;
  gap: clamp(12px, 3vw, 48px);
  min-height: 350px;
  padding: 51px clamp(16px, 5vw, 66px) 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--stage-base);
}

.scene-grid {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(ellipse at 50% 75%, var(--stage-glow), transparent 67%);
}

.scene-grid::before {
  position: absolute;
  inset: 39% -22% -75%;
  background-image:
    linear-gradient(to right, var(--stage-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--stage-grid) 1px, transparent 1px);
  background-size: 53px 35px;
  mask-image: linear-gradient(transparent, #000 27%, #000 65%, transparent);
  transform: perspective(340px) rotateX(48deg);
  transform-origin: center top;
  content: "";
}

.scene-grid::after {
  position: absolute;
  top: 56%;
  left: 16%;
  right: 16%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--stage-rail) 20% 80%, transparent);
  content: "";
}

.scene-signal {
  position: absolute;
  z-index: 1;
  top: 56%;
  left: calc(26% + .48 * var(--phase));
  padding: 4px 6px;
  border: 1px solid var(--stage-rail);
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--accent);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  transform: translate(-50%, -50%);
  transition: left 840ms var(--ease), opacity 300ms;
}

.workflow[data-complete="true"] .scene-signal { opacity: 0; }

.scene-side {
  width: min(100%, 198px);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--stage-rail);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: 0 14px 32px var(--scene-shadow);
  transition: transform 550ms var(--ease), border-color 400ms ease;
}

.scene-room { transform: translateY(24px) rotate(-4deg); }
.scene-receipt { transform: translateY(-18px) rotate(4deg); }
.workflow[data-stage="1"] .scene-room { transform: translateY(18px) rotate(-2deg); }
.workflow[data-stage="2"] .scene-receipt { transform: translateY(-27px) rotate(0); }
.workflow[data-complete="true"] .scene-receipt { border-color: var(--success); }

.scene-side-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 10px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  font-size: 12px;
  font-weight: 680;
}

.scene-side-title span:last-child { color: var(--muted); font-size: 10px; white-space: nowrap; }

.scene-room-plan {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 11px;
  background-image: radial-gradient(var(--stage-grid) 1px, transparent 1px);
  background-size: 12px 12px;
}

.scene-room-plan span {
  display: grid;
  place-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
}

.scene-room-plan .scene-table-active { border-color: var(--accent); color: var(--accent); }

.scene-side-foot {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.scene-receipt-body { display: grid; gap: 8px; padding: 12px 11px; }
.scene-receipt-body > span { color: var(--muted); font-size: 11px; }
.scene-receipt-body strong { font-size: 27px; font-weight: 740; letter-spacing: -.045em; }
.scene-receipt-state { display: grid; }

.scene-receipt-state span {
  grid-area: 1 / 1;
  transition: opacity 320ms ease, transform 420ms var(--ease);
}

.scene-receipt-state span:last-child {
  opacity: 0;
  color: var(--success);
  transform: translateY(5px);
}

.workflow[data-complete="true"] .scene-receipt-state span:first-child {
  opacity: 0;
  transform: translateY(-5px);
}

.workflow[data-complete="true"] .scene-receipt-state span:last-child {
  opacity: 1;
  transform: translateY(0);
}

.scene-top {
  position: absolute;
  top: 15px;
  right: 15px;
  left: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.demo-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 31px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.demo-dot {
  display: inline-block;
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #73d7ab;
}

.playback {
  width: 37px;
  height: 37px;
  border-color: var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
}

.playback:hover { background: var(--surface-raised); }

.playback-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-block: 5px solid transparent;
  border-left: 8px solid currentColor;
}

.playback[data-playing="true"] .playback-icon {
  width: 9px;
  height: 11px;
  margin-left: 0;
  border-block: 0;
  border-inline: 2px solid currentColor;
}

.scene-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 424px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 18px 46px var(--scene-shadow);
}

.order-panel {
  grid-area: 1 / 1;
  min-width: 0;
  background: var(--surface);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(16px);
  transition: opacity 260ms ease, transform 510ms var(--ease), visibility 0s linear 510ms;
}

.order-panel[data-state="previous"] { transform: translateX(-16px); }

.order-panel[data-state="active"] {
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition: opacity 400ms ease 55ms, transform 510ms var(--ease), visibility 0s;
}

.panel-bar, .order-head, .order-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.panel-bar {
  min-height: 45px;
  padding: 8px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-raised);
  font-size: 13px;
  font-weight: 700;
}

.table-badge, .status {
  padding: 4px 7px;
  border-radius: 5px;
  color: var(--accent);
  background: var(--surface);
  font-size: 10px;
  font-weight: 660;
  white-space: nowrap;
}

.status-paid { color: var(--success); background: var(--success-bg); }

.panel-body { padding: 14px 15px 12px; }

.order-head h2 {
  min-width: 0;
  font-size: clamp(13px, 1.45vw, 17px);
  font-weight: 730;
  letter-spacing: -.028em;
}

.order-id { color: var(--muted); font-size: 11px; white-space: nowrap; }

.order-items {
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.order-items li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 3px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.2;
}

.order-items b { font-size: 12px; font-weight: 650; }

.quantity {
  width: 20px;
  height: 20px;
  border: 1px solid var(--line);
  border-radius: 5px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 10px;
}

.order-total { padding-top: 10px; font-size: 12px; }
.order-total span { color: var(--muted); }
.order-total strong { font-size: 20px; font-weight: 740; letter-spacing: -.04em; }
.receipt-panel .order-total strong { color: var(--success); }

.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 6px;
  min-height: 68px;
  margin-top: 10px;
  border-bottom: 1px solid var(--line);
}

.payment-methods button {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 4px 2px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.payment-methods button:hover { color: var(--ink); }

.payment-methods button[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--surface-raised);
  color: var(--accent);
  font-weight: 650;
}

.payment-methods button:focus-visible { outline-offset: 2px; }

.order-action {
  grid-area: 2 / 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  width: calc(100% - 30px);
  min-height: 42px;
  margin: 0 15px 14px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--blue-button);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

.order-action:hover { background: var(--blue-hover); }
.order-action:focus-visible { outline-offset: 2px; }
.order-action i { font-style: normal; font-size: 16px; }

.workflow-controls { padding: 17px 3px 0; }

.workflow-track {
  position: relative;
  height: 1px;
  margin: 0 calc(100% / 6);
  background: var(--line);
}

.workflow-track::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--phase);
  background: var(--accent);
  transition: width 650ms var(--ease);
  content: "";
}

.workflow-track span {
  position: absolute;
  top: 50%;
  left: var(--phase);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--canvas);
  transform: translate(-50%, -50%);
  transition: left 650ms var(--ease);
}

.stage-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.stage-buttons button {
  min-height: 44px;
  padding: 8px 3px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: color 180ms;
}

.stage-buttons button:hover, .stage-buttons button[aria-pressed="true"] { color: var(--accent); }

#workflow-caption {
  min-height: 2.9em;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  text-wrap: pretty;
}

.workspace, .venues, .start, .faq {
  padding-top: clamp(33px, 5vw, 64px);
  border-top: 1px solid var(--line);
  scroll-margin-top: 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 25px;
}

.section-heading h2, .closing h2, .faq h2 {
  font-size: clamp(30px, 4vw, 51px);
  letter-spacing: -.06em;
  line-height: 1.08;
  font-weight: 720;
}

.section-heading p, .workspace-copy p, .closing p, .venue p, .start-steps p, .faq-list p {
  color: var(--muted);
  line-height: 1.5;
  text-wrap: pretty;
}

.section-heading p { font-size: 15px; }

.workspace-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.workspace-item {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 17px;
  min-height: 233px;
  padding: clamp(18px, 2.4vw, 31px);
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.workspace-copy h3, .venue h3, .start-steps h3 {
  margin-bottom: 8px;
  font-size: 19px;
  line-height: 1.22;
  letter-spacing: -.03em;
}

.workspace-copy p { max-width: 35ch; font-size: 14px; }

.mini-screen {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--canvas);
}

.mini-title, .mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 11px;
  font-size: 11px;
  line-height: 1.25;
}

.mini-title { background: var(--surface-raised); }
.mini-title span { color: var(--muted); font-size: 10px; }
.mini-row { min-height: 42px; border-top: 1px solid var(--line); }

.mini-state {
  flex-shrink: 0;
  max-width: 46%;
  padding: 4px 6px;
  border-radius: 5px;
  background: var(--surface-raised);
  color: var(--accent);
  font-size: 9px;
  text-align: center;
}

.mini-state.done { background: var(--success-bg); color: var(--success); }

.role-row {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
}

.role-row .mini-state { max-width: none; }
.role-mark { display: grid; place-items: center; height: 21px; border-radius: 5px; background: var(--surface-raised); color: var(--accent); font-size: 10px; font-weight: 720; }

.floor-preview, .shift-preview {
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--canvas);
}

.floor-preview {
  display: flex;
  flex-direction: column;
}

.floor-room {
  display: grid;
  grid-template-columns: .8fr repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  min-height: 104px;
  padding: 12px;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 12px 12px;
}

.floor-counter, .floor-table {
  display: grid;
  place-items: center;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
}

.floor-counter { grid-row: 1 / -1; }
.floor-table-d { border-color: var(--accent); color: var(--accent); background: var(--surface-raised); }

.floor-order {
  display: flex;
  gap: 6px 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.floor-order .demo-dot { width: 6px; height: 6px; }
.floor-order strong { color: var(--ink); }

.shift-preview { padding: 12px; }

.shift-total, .shift-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

.shift-total dt, .shift-row dt { color: var(--muted); font-size: 10px; }
.shift-total dd { font-size: 22px; font-weight: 730; letter-spacing: -.045em; white-space: nowrap; }
.shift-row { margin-top: 6px; }
.shift-row dd { font-size: 12px; font-weight: 650; white-space: nowrap; }

.shift-distribution {
  display: grid;
  grid-template-columns: 2130fr 1350fr;
  gap: 2px;
  height: 7px;
  margin: 8px 0 10px;
  overflow: hidden;
  border-radius: 4px;
}

.shift-distribution span:first-child { background: var(--blue); }
.shift-distribution span:last-child { background: var(--accent); }

.venues, .start, .faq { margin-top: clamp(55px, 7.8vw, 105px); }

.venues-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
}

.venue { padding: clamp(20px, 3.5vw, 43px); }
.venue + .venue { border-left: 1px solid var(--line); }
.venue h3 { font-size: clamp(21px, 2.25vw, 29px); }
.venue p { max-width: 41ch; font-size: 15px; }

.venue ul {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 19px 0 0;
  list-style: none;
}

.venue li {
  display: flex;
  align-items: baseline;
  gap: 9px;
  font-size: 14px;
}

.venue li::before {
  flex: none;
  width: 12px;
  height: 1px;
  background: var(--accent);
  transform: translateY(-4px);
  content: "";
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 650;
}

.text-link:hover { text-decoration: underline; }

.start-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  list-style: none;
}

.start-steps li { padding: clamp(19px, 2.9vw, 36px); }
.start-steps li + li { border-left: 1px solid var(--line); }
.start-steps p { max-width: 37ch; font-size: 14px; }

.step-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.faq {
  display: grid;
  grid-template-columns: minmax(0, .73fr) minmax(0, 1.27fr);
  gap: clamp(24px, 5vw, 72px);
}

.faq-intro .text-link { margin-top: 12px; }

.faq-list {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.faq-list details + details { border-top: 1px solid var(--line); }

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 59px;
  padding: 12px clamp(13px, 2vw, 24px);
  cursor: pointer;
  font-size: 15px;
  font-weight: 680;
  list-style: none;
}

.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  flex: none;
  width: 12px;
  height: 12px;
  background: linear-gradient(var(--accent), var(--accent)) center / 12px 1px no-repeat,
              linear-gradient(var(--accent), var(--accent)) center / 1px 12px no-repeat;
  content: "";
}
.faq-list details[open] summary::after { background-size: 12px 1px, 0 0; }
.faq-list p { padding: 0 clamp(13px, 2vw, 24px) 16px; font-size: 14px; }

.closing { margin-block: 60px 49px; }

.closing-inner {
  display: flex;
  gap: 26px;
  align-items: center;
  justify-content: space-between;
  padding: clamp(23px, 4vw, 50px);
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface-raised);
}

.closing h2 { font-size: clamp(26px, 3.3vw, 42px); }
.closing p { margin-top: 9px; font-size: 14px; }
.closing .button { flex-shrink: 0; }

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  gap: 15px;
  border-top: 1px solid var(--line);
}

.footer-brand { font-size: 22px; }

.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 1050px) {
  .site-nav { gap: 16px; }
  .workspace-item { grid-template-columns: minmax(0, 1fr); align-content: start; gap: 14px; }
  .workspace-copy p { max-width: 40ch; }
}

@media (max-width: 800px) {
  .site-nav a[href="#start"] { display: none; }
  h1 { font-size: clamp(48px, 8.6vw, 74px); }
  .hero-summary { max-width: 480px; }
  .hero-actions { margin-top: 20px; }
  .scene { grid-template-columns: minmax(0, 1fr); min-height: 361px; }
  .scene-side, .scene-signal { display: none; }
  .scene-grid::after { display: none; }
  .section-heading { display: block; }
  .section-heading p { margin-top: 10px; }
  .faq { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .faq-intro .text-link { margin-top: 4px; }
}

@media (max-width: 560px) {
  :root { --page: calc(100% - 36px); }
  .site-header { min-height: 64px; gap: 10px; }
  .site-nav { display: none; }
  .header-actions { gap: 11px; }
  .brand { font-size: 24px; }
  .brand img { width: 31px; height: 31px; }
  .hero { padding-block: 39px 47px; }
  .category { margin-bottom: 13px; font-size: 13px; }
  h1 { font-size: clamp(41px, 10.7vw, 57px); line-height: 1.03; }
  .hero-summary { margin-top: 17px; font-size: 16px; }
  .hero-actions { gap: 7px; }
  .hero-actions .button { min-height: 46px; gap: 8px; padding-inline: 12px; font-size: 12px; }
  .scene { min-height: 328px; padding: 59px 13px 23px; border-radius: 16px; }
  .scene-top { top: 11px; right: 11px; left: 11px; }
  .playback { width: 36px; height: 36px; }
  .scene-content { border-radius: 12px; }
  .workflow-controls { padding-top: 14px; }
  .workspace-grid, .venues-grid, .start-steps { grid-template-columns: minmax(0, 1fr); }
  .workspace-item { min-height: auto; padding: 17px; }
  .venue + .venue, .start-steps li + li { border-top: 1px solid var(--line); border-left: 0; }
  .section-heading { margin-bottom: 19px; }
  .closing { margin-block: 40px 31px; }
  .closing-inner { align-items: start; flex-direction: column; gap: 17px; }
  .site-footer { flex-wrap: wrap; gap: 7px 16px; padding-block: 15px; }
}

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