:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  /* Quiro identity */
  --quiro-blue: #006bfa;
  --quiro-app-blue: #2f6fec;
  --quiro-blue-hover: #2563dc;
  --quiro-blue-pressed: #1f57c8;
  --quiro-violet: #7953f7;
  --quiro-teal: #2dbfc0;
  --quiro-teal-light: #52d3ce;
  --quiro-navy: #001a52;
  --quiro-navy-deep: #00103e;
  --quiro-gradient: linear-gradient(135deg, #006bfa 0%, #2461f6 52%, #7953f7 100%);
  --quiro-dot-gradient: linear-gradient(180deg, #52d3ce 0%, #2dbfc0 100%);

  /* Marketing page */
  --page-bg: #f7f8fa;
  --page-bg-alt: #eef1f5;
  --page-surface: #ffffff;
  --page-surface-raised: #ffffff;
  --page-surface-muted: #f3f5f8;
  --page-surface-hover: #edf1f7;
  --page-text: #172033;
  --page-text-soft: #48536a;
  --page-text-muted: #68738a;
  --page-text-faint: #929aab;
  --page-border: rgba(21, 30, 50, 0.09);
  --page-border-strong: rgba(21, 30, 50, 0.15);
  --page-header: rgba(247, 248, 250, 0.82);
  --page-grid: rgba(47, 111, 236, 0.055);
  --page-shadow: 0 24px 80px rgba(19, 31, 57, 0.12);
  --page-shadow-soft: 0 12px 40px rgba(19, 31, 57, 0.075);

  /* Exact application light tokens */
  --app-background: #eef1f5;
  --app-canvas: #f7f8fa;
  --app-sidebar: rgba(239, 242, 246, 0.94);
  --app-sidebar-active: rgba(255, 255, 255, 0.82);
  --app-titlebar: rgba(247, 248, 250, 0.92);
  --app-surface: #ffffff;
  --app-surface-raised: #ffffff;
  --app-surface-muted: #f4f6f8;
  --app-surface-hover: #eef1f5;
  --app-preview-stage: #f1f3f6;
  --app-qr-background: #ffffff;
  --app-text: #172033;
  --app-text-secondary: #48536a;
  --app-text-tertiary: #68738a;
  --app-text-quaternary: #929aab;
  --app-border: rgba(21, 30, 50, 0.09);
  --app-border-strong: rgba(21, 30, 50, 0.14);
  --app-success: #168458;
  --app-success-soft: rgba(22, 132, 88, 0.09);
  --app-warning: #a86310;
  --app-danger: #cf3f4e;
  --app-control-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.03);
  --app-card-shadow: 0 1px 1px rgba(15, 23, 42, 0.02), 0 8px 30px rgba(15, 23, 42, 0.045);

  --shell: 1320px;
  --section-space: clamp(5.75rem, 9vw, 9rem);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-window: 20px;
}

:root[data-site-theme="dark"] {
  color-scheme: dark;
  --page-bg: #0e1014;
  --page-bg-alt: #111318;
  --page-surface: #181b21;
  --page-surface-raised: #1c2027;
  --page-surface-muted: #14171c;
  --page-surface-hover: #22262e;
  --page-text: #f2f4f8;
  --page-text-soft: #c1c7d1;
  --page-text-muted: #929aa8;
  --page-text-faint: #686f7c;
  --page-border: rgba(255, 255, 255, 0.075);
  --page-border-strong: rgba(255, 255, 255, 0.13);
  --page-header: rgba(14, 16, 20, 0.82);
  --page-grid: rgba(99, 149, 249, 0.055);
  --page-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
  --page-shadow-soft: 0 14px 44px rgba(0, 0, 0, 0.22);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--page-bg);
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--page-bg);
  color: var(--page-text);
  font-family: var(--font-sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

button {
  color: inherit;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

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

button,
summary {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

::selection {
  background: rgba(47, 111, 236, 0.2);
  color: inherit;
}

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(47, 111, 236, 0.42);
  outline-offset: 3px;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.72rem 1rem;
  border-radius: 10px;
  background: var(--quiro-navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 650;
  transform: translateY(-180%);
  transition: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 3rem), var(--shell));
  margin-inline: auto;
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section-heading {
  max-width: 780px;
  margin-bottom: clamp(2.5rem, 5vw, 4.6rem);
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.split-heading {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 0.54fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
  color: var(--quiro-app-blue);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 1.3rem;
  height: 2px;
  border-radius: 99px;
  background: var(--quiro-gradient);
  content: "";
}

.section-heading h2,
.privacy-copy h2,
.faq-heading h2,
.final-cta h2 {
  font-size: clamp(2.4rem, 5vw, 5.1rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.section-heading p,
.privacy-copy > p,
.faq-heading p {
  margin-top: 1.25rem;
  color: var(--page-text-muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.72;
}

.split-heading > p {
  margin-top: 0;
  padding-bottom: 0.25rem;
}

.button {
  min-height: 43px;
  padding: 0.72rem 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.62rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button svg {
  width: 1rem;
  height: 1rem;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--quiro-app-blue);
  box-shadow: 0 10px 28px rgba(47, 111, 236, 0.22), 0 1px 2px rgba(0, 26, 82, 0.12);
  color: #fff;
}

.button-primary:hover {
  background: var(--quiro-blue-hover);
  box-shadow: 0 14px 32px rgba(47, 111, 236, 0.27), 0 1px 2px rgba(0, 26, 82, 0.14);
}

.button-secondary {
  border-color: var(--page-border-strong);
  background: var(--page-surface-raised);
  box-shadow: var(--page-shadow-soft);
  color: var(--page-text);
}

.button-secondary:hover {
  border-color: rgba(47, 111, 236, 0.3);
  background: var(--page-surface-hover);
}

.button-light {
  background: #fff;
  color: var(--quiro-navy);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.22);
}

.button-small {
  min-height: 38px;
  padding: 0.58rem 0.88rem;
  border-radius: 10px;
  font-size: 0.8rem;
}

.button-large {
  min-height: 52px;
  padding: 0.9rem 1.25rem;
  border-radius: 14px;
  font-size: 0.93rem;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 300;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  background: transparent;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
body.menu-open .site-header {
  border-color: var(--page-border);
  background: var(--page-header);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
}

.header-inner {
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
  gap: 1rem;
  align-items: center;
}

.brand-lockup {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-app-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.brand-wordmarks {
  position: relative;
  width: 86px;
  height: 27px;
  display: block;
}

.brand-wordmark {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-wordmark-light {
  opacity: 0;
}

:root[data-site-theme="dark"] .brand-wordmark-dark {
  opacity: 0;
}

:root[data-site-theme="dark"] .brand-wordmark-light {
  opacity: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.desktop-nav a {
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  color: var(--page-text-muted);
  font-size: 0.82rem;
  font-weight: 570;
  transition: color 150ms ease, background 150ms ease;
}

.desktop-nav a:hover {
  background: var(--page-surface-muted);
  color: var(--page-text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.theme-toggle,
.menu-toggle {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--page-border);
  border-radius: 10px;
  background: var(--page-surface-raised);
  color: var(--page-text-muted);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.theme-toggle:hover,
.menu-toggle:hover {
  color: var(--page-text);
  border-color: var(--page-border-strong);
}

.theme-icon,
.menu-toggle svg {
  width: 17px;
  height: 17px;
}

.theme-icon-moon {
  display: none;
}

:root[data-site-theme="dark"] .theme-icon-sun {
  display: none;
}

:root[data-site-theme="dark"] .theme-icon-moon {
  display: block;
}

.menu-toggle {
  display: none;
}

.menu-close-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-open-icon {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-close-icon {
  display: block;
}

.mobile-nav {
  position: fixed;
  inset: 72px 0 auto;
  max-height: calc(100vh - 72px);
  padding: 1.25rem 1.5rem 2rem;
  overflow-y: auto;
  border-bottom: 1px solid var(--page-border);
  background: var(--page-bg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.14);
}

.mobile-nav a {
  padding: 1rem 0;
  display: block;
  border-bottom: 1px solid var(--page-border);
  font-size: 1.1rem;
  font-weight: 620;
}

.mobile-nav a:last-child {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 0;
  border-radius: 12px;
  background: var(--quiro-app-blue);
  color: #fff;
  text-align: center;
}

/* Hero */
.hero {
  position: relative;
  min-height: 940px;
  padding: clamp(8.4rem, 12vw, 11.5rem) 0 clamp(5rem, 9vw, 8rem);
  overflow: hidden;
  background:
    linear-gradient(var(--page-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--page-grid) 1px, transparent 1px),
    var(--page-bg);
  background-size: 42px 42px;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 260px;
  background: linear-gradient(transparent, var(--page-bg));
  content: "";
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  pointer-events: none;
}

.hero-glow-blue {
  top: -18rem;
  right: 5%;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(0, 107, 250, 0.19), rgba(0, 107, 250, 0));
}

.hero-glow-violet {
  right: 28%;
  bottom: -24rem;
  width: 48rem;
  height: 48rem;
  background: radial-gradient(circle, rgba(121, 83, 247, 0.15), rgba(121, 83, 247, 0));
}

.hero-dot {
  position: absolute;
  top: 13%;
  left: 44%;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(45, 191, 192, 0.11), transparent 68%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(350px, 0.76fr) minmax(650px, 1.36fr);
  gap: clamp(3.25rem, 5vw, 6rem);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.product-label {
  width: max-content;
  max-width: 100%;
  margin-bottom: 1.75rem;
  padding: 0.52rem 0.72rem 0.52rem 0.55rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--page-border);
  border-radius: 13px;
  background: var(--page-surface-raised);
  background: color-mix(in srgb, var(--page-surface-raised) 82%, transparent);
  box-shadow: var(--page-shadow-soft);
  backdrop-filter: blur(16px);
}

.product-label img {
  width: 34px;
  height: 34px;
}

.product-label span,
.product-label strong,
.product-label small {
  min-width: 0;
  display: block;
}

.product-label strong {
  font-size: 0.78rem;
  font-weight: 700;
}

.product-label small {
  margin-top: 0.12rem;
  color: var(--page-text-muted);
  font-size: 0.64rem;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(3.85rem, 6.2vw, 6.8rem);
  font-weight: 650;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.hero h1 span {
  color: transparent;
  background: var(--quiro-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-description {
  max-width: 590px;
  margin-top: 1.7rem;
  color: var(--page-text-soft);
  font-size: clamp(1.02rem, 1.35vw, 1.2rem);
  line-height: 1.7;
}

.hero-buttons {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-proof {
  margin-top: 1.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  color: var(--page-text-muted);
  font-size: 0.76rem;
  font-weight: 570;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-proof svg {
  width: 0.88rem;
  height: 0.88rem;
  color: var(--quiro-teal);
  stroke-width: 2.5;
}

.hero-product {
  position: relative;
  min-width: 0;
}

.app-window {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--app-border-strong);
  border-radius: var(--radius-window);
  background: var(--app-canvas);
  box-shadow: 0 32px 100px rgba(7, 18, 42, 0.18), 0 4px 14px rgba(7, 18, 42, 0.08);
  color: var(--app-text);
  font-family: var(--font-sans);
  font-size: 12px;
  text-align: left;
}

.hero-app-window {
  width: min(100%, 790px);
  margin-left: auto;
  transform: perspective(1400px) rotateY(-1.8deg) rotateX(0.7deg);
  transform-origin: center;
}

.app-titlebar {
  min-height: 48px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--app-border);
  background: var(--app-titlebar);
  backdrop-filter: blur(16px);
}

.traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

.traffic-lights i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.1);
}

.traffic-lights i:nth-child(2) { background: #febc2e; }
.traffic-lights i:nth-child(3) { background: #28c840; }

.titlebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 650;
}

.titlebar-brand img {
  width: 20px;
  height: 20px;
}

.titlebar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.titlebar-actions button,
.tool-titlebar button {
  min-height: 28px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-surface-raised);
  box-shadow: var(--app-control-shadow);
  color: var(--app-text-secondary);
  font-size: 9px;
  font-weight: 600;
}

.titlebar-actions svg {
  width: 12px;
  height: 12px;
}

.titlebar-actions kbd,
.sidebar-item kbd,
.library-filters kbd {
  color: var(--app-text-quaternary);
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 500;
}

.titlebar-actions .app-primary-action,
.app-primary-action {
  border-color: transparent;
  background: var(--quiro-app-blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0, 26, 82, 0.12), 0 7px 18px rgba(47, 111, 236, 0.18);
}

.app-body {
  min-height: 520px;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
}

.app-sidebar {
  position: relative;
  min-width: 0;
  padding: 15px 10px 12px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--app-border);
  background: var(--app-sidebar);
}

.app-sidebar-logo {
  min-height: 42px;
  padding: 3px 7px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-sidebar-logo img:first-child {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.app-sidebar-logo img:last-child {
  width: 66px;
  height: 22px;
  object-fit: contain;
}

.sidebar-group {
  display: grid;
  gap: 2px;
}

.sidebar-group-secondary {
  margin-top: 14px;
}

.sidebar-label {
  padding: 0 8px 5px;
  color: var(--app-text-quaternary);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.sidebar-item {
  width: 100%;
  min-height: 30px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--app-text-tertiary);
  font-size: 9px;
  font-weight: 580;
  text-align: left;
}

.sidebar-item:hover {
  background: var(--app-surface-hover);
  color: var(--app-text);
}

.sidebar-item.is-active {
  background: var(--app-sidebar-active);
  box-shadow: var(--app-control-shadow);
  color: var(--app-text);
}

.sidebar-item svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.sidebar-item span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-item b {
  color: var(--app-text-quaternary);
  font-size: 8px;
  font-weight: 570;
}

.sidebar-settings {
  margin-top: auto;
}

.generate-workspace {
  min-width: 0;
  background: var(--app-canvas);
}

.generate-header {
  min-height: 74px;
  padding: 16px 18px 13px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--app-border);
}

.app-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--app-text-quaternary);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.generate-header h2,
.library-header h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.save-status {
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: var(--app-success-soft);
  color: var(--app-success);
  font-size: 8px;
  font-weight: 650;
}

.save-status i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: currentColor;
}

.generate-columns {
  min-height: 445px;
  display: grid;
  grid-template-columns: minmax(235px, 0.92fr) minmax(270px, 1.08fr);
}

.editor-pane {
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border-right: 1px solid var(--app-border);
  background: var(--app-surface);
}

.app-segmented {
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  border-radius: 9px;
  background: var(--app-surface-muted);
}

.app-segmented button {
  min-width: 0;
  min-height: 27px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--app-text-tertiary);
  font-size: 8px;
  font-weight: 600;
}

.app-segmented button.is-selected {
  background: var(--app-surface-raised);
  box-shadow: var(--app-control-shadow);
  color: var(--app-text);
}

.app-field {
  margin-top: 12px;
  display: block;
}

.app-field > span,
.color-row > span {
  display: block;
  margin-bottom: 5px;
  color: var(--app-text-tertiary);
  font-size: 8px;
  font-weight: 600;
}

.app-field > div {
  min-height: 34px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  border: 1px solid var(--app-border-strong);
  border-radius: 8px;
  background: var(--app-surface-raised);
  box-shadow: var(--app-control-shadow);
}

.app-field svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  color: var(--app-text-quaternary);
}

.app-field b {
  min-width: 0;
  overflow: hidden;
  color: var(--app-text-secondary);
  font-size: 8px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-panel-heading {
  margin-top: 18px;
  padding-top: 13px;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--app-border);
}

.app-panel-heading span {
  font-size: 9px;
  font-weight: 650;
}

.app-panel-heading button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--quiro-app-blue);
  font-size: 8px;
  font-weight: 600;
}

.module-options {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.module-option {
  min-width: 0;
  min-height: 62px;
  padding: 8px 4px 6px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--app-border);
  border-radius: 9px;
  background: var(--app-surface-raised);
  color: var(--app-text-tertiary);
  font-size: 7px;
  font-weight: 600;
}

.module-option.is-selected {
  border-color: rgba(47, 111, 236, 0.34);
  background: rgba(47, 111, 236, 0.08);
  color: var(--quiro-app-blue);
  box-shadow: 0 0 0 1px rgba(47, 111, 236, 0.06);
}

.module-option i {
  width: 24px;
  height: 24px;
  display: block;
  background: currentColor;
}

.module-option .module-square { border-radius: 2px; }
.module-option .module-soft { border-radius: 7px; }
.module-option .module-dot { border-radius: 999px; }

.color-row {
  margin-top: 10px;
}

.color-row b {
  min-height: 32px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-surface-raised);
  color: var(--app-text-secondary);
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 500;
}

.color-row i {
  width: 14px;
  height: 14px;
  border: 1px solid var(--app-border-strong);
  border-radius: 4px;
}

.brand-color-blue { background: var(--quiro-app-blue); }
.brand-color-white { background: #fff; }

.preview-pane {
  min-width: 0;
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr) 55px;
  background: var(--app-preview-stage);
}

.preview-toolbar {
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--app-border);
  color: var(--app-text-tertiary);
  font-size: 8px;
  font-weight: 600;
}

.preview-toolbar > div {
  display: flex;
  gap: 4px;
}

.preview-toolbar button {
  min-height: 24px;
  padding: 0 7px;
  border: 1px solid var(--app-border);
  border-radius: 7px;
  background: var(--app-surface-raised);
  color: var(--app-text-tertiary);
  font-size: 8px;
}

.qr-preview-stage {
  padding: 18px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  overflow: hidden;
}

.qr-preview-card {
  width: min(76%, 225px);
  padding: 15px;
  border: 1px solid var(--app-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--app-card-shadow);
}

.qr-preview-card canvas {
  width: 100%;
  height: auto;
}

.preview-meta {
  text-align: center;
}

.preview-meta strong,
.preview-meta span {
  display: block;
}

.preview-meta strong {
  font-size: 9px;
  font-weight: 650;
}

.preview-meta span {
  margin-top: 2px;
  color: var(--app-text-quaternary);
  font-size: 7px;
}

.export-bar {
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
  align-items: stretch;
  border-top: 1px solid var(--app-border);
  background: var(--app-surface);
}

.export-bar button {
  min-height: 36px;
  padding: 0 9px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-surface-raised);
  color: var(--app-text-secondary);
}

.export-bar span,
.export-bar small {
  display: block;
  font-size: 8px;
}

.export-bar span { font-weight: 650; }
.export-bar small { margin-top: 1px; color: var(--app-text-quaternary); font-size: 7px; }

.export-bar .app-primary-action {
  min-width: 80px;
  flex-direction: row;
  align-items: center;
  gap: 5px;
  color: #fff;
}

.export-bar svg { width: 12px; height: 12px; }

.floating-status {
  position: absolute;
  z-index: 6;
  padding: 0.65rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(0, 26, 82, 0.16);
  color: #172033;
  backdrop-filter: blur(14px);
}

.floating-status-one {
  left: -2.3rem;
  bottom: 3.5rem;
}

.floating-status-two {
  top: 4.4rem;
  right: -2.5rem;
}

.floating-status > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(45, 191, 192, 0.12);
  color: var(--quiro-teal);
}

.floating-status > span svg { width: 17px; height: 17px; }
.floating-status > img { width: 36px; height: 36px; }
.floating-status strong,
.floating-status small { display: block; }
.floating-status strong { font-size: 0.72rem; font-weight: 700; }
.floating-status small { margin-top: 0.12rem; color: #68738a; font-size: 0.58rem; }

/* Product strip */
.product-strip {
  position: relative;
  z-index: 4;
  border-top: 1px solid var(--page-border);
  border-bottom: 1px solid var(--page-border);
  background: var(--page-surface);
}

.product-strip-inner {
  min-height: 116px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-strip-inner > span {
  padding: 1.5rem 2rem;
  display: grid;
  place-content: center;
  border-right: 1px solid var(--page-border);
  text-align: center;
}

.product-strip-inner > span:first-child { border-left: 1px solid var(--page-border); }
.product-strip strong,
.product-strip small { display: block; }
.product-strip strong { font-size: 1.35rem; font-weight: 680; letter-spacing: -0.04em; }
.product-strip small { margin-top: 0.32rem; color: var(--page-text-muted); font-size: 0.72rem; }

/* Create playground */
.create-section {
  background: var(--page-bg);
}

.playground-layout {
  display: grid;
  grid-template-columns: minmax(330px, 0.66fr) minmax(520px, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.75rem);
  align-items: stretch;
}

.playground-controls {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  display: grid;
  gap: 1rem;
  border: 1px solid var(--page-border);
  border-radius: var(--radius-xl);
  background: var(--page-surface);
  box-shadow: var(--page-shadow-soft);
}

.control-section {
  padding: 1.1rem;
  border: 1px solid var(--page-border);
  border-radius: 16px;
  background: var(--page-surface-muted);
}

.control-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.control-heading > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(47, 111, 236, 0.1);
  color: var(--quiro-app-blue);
  font-size: 0.65rem;
  font-weight: 750;
}

.control-heading strong,
.control-heading small {
  display: block;
}

.control-heading strong {
  font-size: 0.94rem;
  font-weight: 680;
}

.control-heading small {
  margin-top: 0.2rem;
  color: var(--page-text-muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.content-type-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.content-type-grid button {
  min-width: 0;
  min-height: 74px;
  padding: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid var(--page-border);
  border-radius: 13px;
  background: var(--page-surface);
  color: var(--page-text-muted);
  text-align: left;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.content-type-grid button:hover,
.content-type-grid button.is-active {
  border-color: rgba(47, 111, 236, 0.34);
  background: rgba(47, 111, 236, 0.08);
  color: var(--quiro-app-blue);
  transform: translateY(-1px);
}

.content-type-grid svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.content-type-grid span,
.content-type-grid b,
.content-type-grid small {
  min-width: 0;
  display: block;
}

.content-type-grid b {
  color: var(--page-text);
  font-size: 0.78rem;
  font-weight: 650;
}

.content-type-grid small {
  margin-top: 0.18rem;
  overflow: hidden;
  color: var(--page-text-muted);
  font-size: 0.62rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-buttons {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.style-buttons button {
  min-width: 0;
  min-height: 82px;
  padding: 0.7rem;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  border: 1px solid var(--page-border);
  border-radius: 13px;
  background: var(--page-surface);
  color: var(--page-text-muted);
  font-size: 0.67rem;
  font-weight: 650;
}

.style-buttons button:hover,
.style-buttons button.is-active {
  border-color: rgba(47, 111, 236, 0.35);
  background: rgba(47, 111, 236, 0.08);
  color: var(--quiro-app-blue);
}

.style-sample {
  width: 31px;
  height: 31px;
  display: block;
  background: currentColor;
}

.style-square { border-radius: 2px; }
.style-soft { border-radius: 9px; }
.style-dots { border-radius: 999px; }

.brand-swatches {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
}

.brand-swatches button {
  position: relative;
  width: 41px;
  height: 41px;
  padding: 0;
  border: 4px solid var(--page-surface);
  border-radius: 12px;
  background: var(--swatch);
  box-shadow: 0 0 0 1px var(--page-border-strong);
}

.brand-swatches button.is-active::after {
  position: absolute;
  inset: -7px;
  border: 2px solid var(--quiro-app-blue);
  border-radius: 15px;
  content: "";
}

.toggle-row {
  position: relative;
  margin-top: 1rem;
  min-height: 62px;
  padding: 0.65rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border: 1px solid var(--page-border);
  border-radius: 13px;
  background: var(--page-surface);
}

.toggle-row > span {
  min-width: 0;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.55rem;
  align-items: center;
}

.toggle-row img {
  width: 32px;
  height: 32px;
  grid-row: 1 / 3;
}

.toggle-row b,
.toggle-row small { display: block; }
.toggle-row b { font-size: 0.74rem; font-weight: 650; }
.toggle-row small { margin-top: 0.15rem; overflow: hidden; color: var(--page-text-muted); font-size: 0.59rem; text-overflow: ellipsis; white-space: nowrap; }

.toggle-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-row > i {
  position: relative;
  width: 42px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #c6ccd6;
  transition: background 150ms ease;
}

.toggle-row > i::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16);
  content: "";
  transition: transform 150ms ease;
}

.toggle-row input:checked + i { background: var(--quiro-app-blue); }
.toggle-row input:checked + i::after { transform: translateX(18px); }
.toggle-row:has(input:focus-visible) { outline: 3px solid rgba(47, 111, 236, 0.34); outline-offset: 3px; }

.live-preview-shell {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--page-border-strong);
  border-radius: var(--radius-xl);
  background: #eef1f5;
  box-shadow: var(--page-shadow);
}

.preview-window-bar {
  min-height: 48px;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(21, 30, 50, 0.09);
  background: rgba(247, 248, 250, 0.94);
  color: #68738a;
  font-size: 0.72rem;
  font-weight: 600;
}

.preview-window-bar > span { text-align: center; }
.preview-window-bar > b { justify-self: end; font-size: 0.65rem; font-weight: 570; }

.live-preview-stage {
  min-height: 590px;
  padding: clamp(2rem, 5vw, 4rem);
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(47, 111, 236, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 111, 236, 0.045) 1px, transparent 1px),
    #f1f3f6;
  background-size: 30px 30px;
}

.live-preview-card {
  width: min(100%, 430px);
  padding: clamp(1.1rem, 2.5vw, 1.65rem);
  border: 1px solid rgba(21, 30, 50, 0.09);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.14);
  color: #172033;
}

.live-qr-surface {
  padding: 1.2rem;
  border: 1px solid rgba(21, 30, 50, 0.07);
  border-radius: 17px;
  background: #fff;
}

.live-qr-surface canvas {
  width: 100%;
  height: auto;
}

.live-preview-info {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.live-preview-info span,
.live-preview-info strong,
.live-preview-info small { display: block; }
.live-preview-info span { color: #2f6fec; font-size: 0.61rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.live-preview-info strong { margin-top: 0.25rem; font-size: 1rem; font-weight: 680; }
.live-preview-info small { margin-top: 0.18rem; color: #68738a; font-size: 0.68rem; }

.favorite-button {
  width: 39px;
  height: 39px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(21, 30, 50, 0.09);
  border-radius: 11px;
  background: #f4f6f8;
  color: #d7a63d;
}

.favorite-button svg { width: 18px; height: 18px; }

.live-export-bar {
  min-height: 76px;
  padding: 0.8rem 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid rgba(21, 30, 50, 0.09);
  background: #fff;
  color: #172033;
}

.live-export-bar > div span,
.live-export-bar > div strong { display: block; }
.live-export-bar > div span { color: #929aab; font-size: 0.58rem; }
.live-export-bar > div strong { margin-top: 0.2rem; font-size: 0.72rem; font-weight: 650; }

.supported-types {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.supported-types span {
  padding: 0.48rem 0.7rem;
  border: 1px solid var(--page-border);
  border-radius: 999px;
  background: var(--page-surface);
  color: var(--page-text-muted);
  font-size: 0.68rem;
  font-weight: 570;
}

/* Library */
.organize-section {
  border-top: 1px solid var(--page-border);
  background: var(--page-bg-alt);
}

.library-window {
  max-width: 1160px;
  margin-inline: auto;
}

.library-app-body {
  min-height: 610px;
  grid-template-columns: 188px minmax(0, 1fr) 224px;
}

.library-content {
  min-width: 0;
  padding: 20px;
  background: var(--app-canvas);
}

.library-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.library-header p {
  margin-top: 4px;
  color: var(--app-text-tertiary);
  font-size: 9px;
}

.library-view-actions {
  padding: 3px;
  display: flex;
  gap: 2px;
  border-radius: 9px;
  background: var(--app-surface-muted);
}

.library-view-actions button {
  width: 28px;
  height: 27px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--app-text-quaternary);
}

.library-view-actions button.is-active {
  background: var(--app-surface-raised);
  box-shadow: var(--app-control-shadow);
  color: var(--app-text);
}

.library-view-actions svg { width: 12px; height: 12px; }

.library-filters {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 7px;
}

.library-filters label,
.library-filters button {
  min-height: 34px;
  padding: 0 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--app-border);
  border-radius: 8px;
  background: var(--app-surface-raised);
  box-shadow: var(--app-control-shadow);
  color: var(--app-text-tertiary);
  font-size: 8px;
  font-weight: 560;
}

.library-filters label span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-filters svg { width: 11px; height: 11px; }

.library-card-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.qr-library-card {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--app-border);
  border-radius: 12px;
  background: var(--app-surface-raised);
  box-shadow: var(--app-card-shadow);
}

.qr-library-card.is-selected {
  border-color: rgba(47, 111, 236, 0.35);
  box-shadow: 0 0 0 1px rgba(47, 111, 236, 0.08), var(--app-card-shadow);
}

.library-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.type-badge {
  padding: 3px 6px;
  border-radius: 999px;
  background: rgba(47, 111, 236, 0.08);
  color: var(--quiro-app-blue);
  font-size: 7px;
  font-weight: 650;
}

.library-card-top button {
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: var(--app-text-quaternary);
  font-size: 10px;
}

.library-qr {
  width: min(62%, 116px);
  margin: 10px auto 8px;
  padding: 7px;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(21, 30, 50, 0.05);
}

.library-qr canvas,
.inspector-preview canvas,
.camera-qr canvas {
  width: 100%;
  height: auto;
}

.library-card-copy strong,
.library-card-copy span,
.library-card-copy small { display: block; }
.library-card-copy strong { overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.library-card-copy > span { margin-top: 2px; overflow: hidden; color: var(--app-text-quaternary); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.library-card-copy small { margin-top: 7px; display: flex; flex-wrap: wrap; gap: 4px; }
.library-card-copy small b { padding: 3px 5px; border-radius: 5px; background: var(--app-surface-muted); color: var(--app-text-tertiary); font-size: 6px; font-weight: 570; }

.library-inspector {
  min-width: 0;
  padding: 15px;
  border-left: 1px solid var(--app-border);
  background: var(--app-surface);
}

.inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--app-text-quaternary);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.inspector-heading button {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 6px;
  background: var(--app-surface-muted);
  color: var(--app-text-tertiary);
}

.inspector-preview {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--app-border);
  border-radius: 13px;
  background: var(--app-preview-stage);
}

.inspector-preview > div {
  padding: 9px;
  border-radius: 10px;
  background: #fff;
}

.library-inspector h4 {
  margin-top: 13px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.library-inspector > p {
  margin-top: 3px;
  color: var(--app-text-quaternary);
  font-size: 7px;
}

.library-inspector dl {
  margin-top: 13px;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--app-border);
}

.library-inspector dl div {
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--app-border);
}

.library-inspector dt,
.library-inspector dd { font-size: 7px; }
.library-inspector dt { color: var(--app-text-quaternary); }
.library-inspector dd { color: var(--app-text-secondary); font-weight: 580; text-align: right; }
.inspector-open { width: 100%; min-height: 32px; margin-top: 14px; border: 0; border-radius: 8px; font-size: 8px; }

/* Workflow */
.workflow-section {
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 15%, rgba(0, 107, 250, 0.18), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(121, 83, 247, 0.18), transparent 31%),
    #0f1421;
  color: #f2f4f8;
}

.workflow-section::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.032) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  pointer-events: none;
}

.workflow-section .shell { position: relative; z-index: 2; }
.light-heading h2 { color: #f2f4f8; }
.light-heading p { color: #aeb7c8; }
.light-heading .section-kicker { color: #7fa6ff; }

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.workflow-card {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: var(--radius-xl);
  background: rgba(24, 27, 33, 0.72);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.workflow-export {
  grid-column: 1 / -1;
}

.workflow-card-heading {
  min-height: 76px;
  padding: 0.15rem 0.2rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.workflow-card-heading > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(99, 149, 249, 0.25);
  border-radius: 13px;
  background: rgba(79, 134, 247, 0.12);
  color: #78a2ff;
}

.workflow-card-heading svg { width: 21px; height: 21px; }
.workflow-card-heading small,
.workflow-card-heading h3 { display: block; }
.workflow-card-heading small { margin-bottom: 0.25rem; color: #7fa6ff; font-size: 0.63rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.workflow-card-heading h3 { font-size: clamp(1.05rem, 1.6vw, 1.35rem); font-weight: 630; letter-spacing: -0.035em; line-height: 1.18; }

.tool-window {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 17px;
  background: #181b21;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.26);
}

.tool-titlebar {
  min-height: 42px;
  padding: 0 11px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: #14171c;
  color: #c1c7d1;
  font-size: 9px;
  font-weight: 600;
}

.tool-titlebar > span { text-align: center; }
.tool-titlebar > button { justify-self: end; border-color: rgba(255, 255, 255, 0.09); background: #22262e; color: #c1c7d1; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }

.scanner-content {
  padding: 14px;
}

.scanner-source-tabs {
  padding: 3px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  border-radius: 9px;
  background: #14171c;
}

.scanner-source-tabs button {
  min-width: 0;
  min-height: 30px;
  padding: 0 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #929aa8;
  font-size: 8px;
  font-weight: 600;
}

.scanner-source-tabs button.is-active {
  background: #22262e;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  color: #f2f4f8;
}

.scanner-source-tabs svg { width: 12px; height: 12px; }

.camera-stage {
  position: relative;
  min-height: 300px;
  margin-top: 12px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  background:
    radial-gradient(circle at center, rgba(79, 134, 247, 0.12), transparent 42%),
    linear-gradient(135deg, #0e1014, #1c2027);
}

.camera-stage::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  content: "";
}

.camera-qr {
  position: relative;
  z-index: 2;
  width: 135px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

.scan-corner {
  position: absolute;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-color: #6395f9;
  border-style: solid;
  pointer-events: none;
}

.scan-corner.c1 { top: 42px; left: 52px; border-width: 2px 0 0 2px; border-radius: 9px 0 0; }
.scan-corner.c2 { top: 42px; right: 52px; border-width: 2px 2px 0 0; border-radius: 0 9px 0 0; }
.scan-corner.c3 { bottom: 42px; left: 52px; border-width: 0 0 2px 2px; border-radius: 0 0 0 9px; }
.scan-corner.c4 { right: 52px; bottom: 42px; border-width: 0 2px 2px 0; border-radius: 0 0 9px; }

.scan-beam {
  position: absolute;
  z-index: 4;
  right: 52px;
  left: 52px;
  top: 50%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #52d3ce, transparent);
  box-shadow: 0 0 16px rgba(82, 211, 206, 0.8);
  animation: scan 3.1s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { transform: translateY(-78px); opacity: 0.3; }
  50% { transform: translateY(78px); opacity: 1; }
}

.scan-result {
  min-height: 54px;
  margin-top: 10px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(84, 197, 150, 0.18);
  border-radius: 11px;
  background: rgba(84, 197, 150, 0.09);
}

.scan-result > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(84, 197, 150, 0.14);
  color: #54c596;
}

.scan-result svg { width: 15px; height: 15px; }
.scan-result div { min-width: 0; flex: 1; }
.scan-result strong,
.scan-result small { display: block; }
.scan-result strong { font-size: 8px; font-weight: 650; }
.scan-result small { margin-top: 2px; overflow: hidden; color: #929aa8; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.scan-result button { min-height: 27px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 7px; background: #22262e; color: #c1c7d1; font-size: 8px; font-weight: 600; }

.batch-content {
  padding: 14px;
}

.batch-stepper {
  display: flex;
  align-items: center;
  color: #686f7c;
  font-size: 8px;
  font-weight: 600;
}

.batch-stepper span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.batch-stepper i {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-style: normal;
  font-size: 7px;
}

.batch-stepper b {
  height: 1px;
  min-width: 14px;
  flex: 1;
  margin: 0 6px;
  background: rgba(255, 255, 255, 0.08);
}

.batch-stepper .is-done,
.batch-stepper .is-active { color: #c1c7d1; }
.batch-stepper .is-done i { border-color: rgba(84, 197, 150, 0.25); background: rgba(84, 197, 150, 0.12); color: #54c596; }
.batch-stepper .is-active i { border-color: rgba(99, 149, 249, 0.35); background: rgba(79, 134, 247, 0.15); color: #6395f9; }

.batch-summary {
  min-height: 58px;
  margin-top: 15px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: #1c2027;
}

.batch-summary > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(79, 134, 247, 0.12);
  color: #6395f9;
}

.batch-summary svg { width: 15px; height: 15px; }
.batch-summary div { min-width: 0; flex: 1; }
.batch-summary strong,
.batch-summary small { display: block; }
.batch-summary strong { font-size: 8px; font-weight: 650; }
.batch-summary small { margin-top: 2px; color: #929aa8; font-size: 7px; }
.batch-summary button { min-height: 27px; padding: 0 8px; border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 7px; background: #22262e; color: #c1c7d1; font-size: 8px; }

.batch-table {
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
}

.batch-table > div {
  min-height: 40px;
  padding: 0 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px 54px;
  gap: 8px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #c1c7d1;
  font-size: 7px;
}

.batch-table > div:last-child { border-bottom: 0; }
.batch-table .batch-table-head { min-height: 31px; background: #14171c; color: #686f7c; font-size: 6px; font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.batch-table span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.batch-table b { width: max-content; padding: 3px 5px; border-radius: 999px; background: rgba(84, 197, 150, 0.1); color: #54c596; font-size: 6px; font-weight: 650; }

.batch-footer {
  min-height: 50px;
  margin-top: 10px;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.batch-footer > span { color: #929aa8; font-size: 7px; }
.batch-footer button { min-height: 31px; padding: 0 10px; border: 0; border-radius: 8px; font-size: 8px; }

.export-format-board {
  padding: clamp(1rem, 2.8vw, 1.7rem);
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(0, 1.35fr) minmax(170px, 0.55fr) auto;
  gap: 1rem;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  background: #181b21;
}

.export-board-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.export-board-brand img { width: 48px; height: 48px; flex: 0 0 auto; }
.export-board-brand span,
.export-board-brand strong,
.export-board-brand small { min-width: 0; display: block; }
.export-board-brand strong { overflow: hidden; font-size: 0.82rem; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.export-board-brand small { margin-top: 0.2rem; color: #929aa8; font-size: 0.62rem; }

.format-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.format-grid button {
  min-width: 0;
  min-height: 84px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #1c2027;
  color: #c1c7d1;
  text-align: left;
}

.format-grid button.is-selected {
  border-color: rgba(99, 149, 249, 0.35);
  background: rgba(79, 134, 247, 0.12);
  box-shadow: 0 0 0 1px rgba(79, 134, 247, 0.05);
}

.format-grid strong { font-size: 0.76rem; font-weight: 680; }
.format-grid small { margin-top: 0.18rem; color: #929aa8; font-size: 0.57rem; }
.format-grid b { margin-top: auto; color: #686f7c; font-size: 0.55rem; font-weight: 570; }

.export-options {
  display: grid;
  gap: 0.65rem;
}

.export-options > span {
  min-width: 0;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.export-options small,
.export-options strong { display: block; }
.export-options small { color: #686f7c; font-size: 0.55rem; }
.export-options strong { margin-top: 0.18rem; overflow: hidden; color: #c1c7d1; font-size: 0.64rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

/* Privacy */
.privacy-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(45, 191, 192, 0.08), transparent 26%),
    var(--page-bg);
}

.privacy-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.64fr) minmax(580px, 1.25fr);
  gap: clamp(3rem, 7vw, 7rem);
  align-items: center;
}

.privacy-copy > p { max-width: 540px; }

.privacy-points {
  margin-top: 2rem;
  display: grid;
  gap: 0.65rem;
}

.privacy-points > span {
  min-height: 72px;
  padding: 0.85rem 1rem;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 0.8rem;
  align-items: center;
  border: 1px solid var(--page-border);
  border-radius: 15px;
  background: var(--page-surface);
  box-shadow: var(--page-shadow-soft);
}

.privacy-points svg {
  width: 38px;
  height: 38px;
  padding: 9px;
  grid-row: 1 / 3;
  border-radius: 11px;
  background: rgba(47, 111, 236, 0.1);
  color: var(--quiro-app-blue);
}

.privacy-points b,
.privacy-points small { display: block; }
.privacy-points b { font-size: 0.82rem; font-weight: 660; }
.privacy-points small { margin-top: 0.15rem; color: var(--page-text-muted); font-size: 0.67rem; }
.privacy-points code { font-family: var(--font-mono); font-size: 0.64rem; }

.app-window.is-dark,
.backup-app {
  --app-background: #0e1014;
  --app-canvas: #111318;
  --app-sidebar: rgba(17, 20, 26, 0.96);
  --app-sidebar-active: rgba(255, 255, 255, 0.075);
  --app-titlebar: rgba(17, 19, 24, 0.96);
  --app-surface: #181b21;
  --app-surface-raised: #1c2027;
  --app-surface-muted: #14171c;
  --app-surface-hover: #22262e;
  --app-preview-stage: #101217;
  --app-text: #f2f4f8;
  --app-text-secondary: #c1c7d1;
  --app-text-tertiary: #929aa8;
  --app-text-quaternary: #686f7c;
  --app-border: rgba(255, 255, 255, 0.075);
  --app-border-strong: rgba(255, 255, 255, 0.13);
  --app-success: #54c596;
  --app-success-soft: rgba(84, 197, 150, 0.1);
  color: var(--app-text);
}

.backup-app {
  max-width: 780px;
  margin-left: auto;
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.32), 0 4px 18px rgba(0, 0, 0, 0.23);
}

.backup-body {
  min-height: 510px;
  display: grid;
  grid-template-columns: 135px minmax(0, 1fr);
  background: var(--app-canvas);
}

.backup-sidebar {
  padding: 15px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-right: 1px solid var(--app-border);
  background: var(--app-sidebar);
}

.backup-sidebar > img {
  width: 36px;
  height: 36px;
  margin: 2px auto 14px;
}

.backup-sidebar button {
  min-height: 31px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--app-text-tertiary);
  font-size: 8px;
  font-weight: 580;
  text-align: left;
}

.backup-sidebar button.is-active {
  background: var(--app-sidebar-active);
  color: var(--app-text);
}

.backup-sidebar svg { width: 12px; height: 12px; }

.backup-content {
  min-width: 0;
  padding: 16px;
}

.backup-hero {
  min-height: 130px;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
  border: 1px solid rgba(99, 149, 249, 0.18);
  border-radius: 15px;
  background:
    radial-gradient(circle at 85% 20%, rgba(121, 83, 247, 0.24), transparent 35%),
    linear-gradient(135deg, rgba(47, 111, 236, 0.2), rgba(45, 191, 192, 0.06));
}

.backup-hero small,
.backup-hero h3,
.backup-hero p { display: block; }
.backup-hero small { color: #7fa6ff; font-size: 7px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.backup-hero h3 { max-width: 360px; margin-top: 5px; font-size: 17px; font-weight: 630; letter-spacing: -0.04em; line-height: 1.12; }
.backup-hero p { max-width: 360px; margin-top: 6px; color: var(--app-text-tertiary); font-size: 8px; line-height: 1.45; }
.backup-hero img { width: 80px; height: 80px; flex: 0 0 auto; filter: drop-shadow(0 14px 25px rgba(0, 0, 0, 0.25)); }

.backup-stat-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.backup-stat-grid > span {
  min-width: 0;
  min-height: 76px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  background: var(--app-surface-raised);
}

.backup-stat-grid small,
.backup-stat-grid strong,
.backup-stat-grid b { display: block; }
.backup-stat-grid small { color: var(--app-text-quaternary); font-size: 6px; }
.backup-stat-grid strong { margin-top: 5px; overflow: hidden; font-size: 9px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.backup-stat-grid b { margin-top: auto; color: var(--app-success); font-size: 6px; font-weight: 650; }

.backup-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.backup-actions button {
  min-width: 0;
  min-height: 64px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  background: var(--app-surface-raised);
  color: var(--app-text-secondary);
  text-align: left;
}

.backup-actions button > svg {
  width: 30px;
  height: 30px;
  padding: 8px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--app-surface-muted);
}

.backup-actions .app-primary-action { border-color: transparent; background: var(--quiro-app-blue); color: #fff; }
.backup-actions .app-primary-action > svg { background: rgba(255, 255, 255, 0.12); }
.backup-actions strong,
.backup-actions small { display: block; }
.backup-actions strong { font-size: 8px; font-weight: 650; }
.backup-actions small { margin-top: 3px; color: var(--app-text-quaternary); font-size: 6px; }
.backup-actions .app-primary-action small { color: rgba(255, 255, 255, 0.66); }

.backup-recent {
  margin-top: 10px;
  border: 1px solid var(--app-border);
  border-radius: 11px;
  background: var(--app-surface-raised);
}

.backup-recent > div {
  min-height: 61px;
  padding: 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.backup-recent > div > span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: rgba(79, 134, 247, 0.12);
  color: #6395f9;
}

.backup-recent svg { width: 15px; height: 15px; }
.backup-recent p { min-width: 0; flex: 1; }
.backup-recent strong,
.backup-recent small { display: block; }
.backup-recent strong { overflow: hidden; font-size: 8px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.backup-recent small { margin-top: 2px; color: var(--app-text-quaternary); font-size: 6px; }
.backup-recent b { padding: 4px 6px; border-radius: 999px; background: var(--app-success-soft); color: var(--app-success); font-size: 6px; font-weight: 650; white-space: nowrap; }

/* Theme / details */
.details-section {
  border-top: 1px solid var(--page-border);
  background: var(--page-bg-alt);
}

.theme-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.theme-card {
  min-width: 0;
  padding: 1rem;
  border: 1px solid var(--page-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--page-shadow-soft);
}

.theme-card-light {
  background: #fff;
  color: #172033;
}

.theme-card-dark {
  border-color: rgba(255, 255, 255, 0.08);
  background: #181b21;
  color: #f2f4f8;
}

.theme-card-top {
  padding: 0.25rem 0.3rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.7rem;
}

.theme-card-top span { display: flex; align-items: center; gap: 0.5rem; font-weight: 650; }
.theme-card-top i { width: 8px; height: 8px; border-radius: 999px; background: #2f6fec; }
.theme-card-dark .theme-card-top i { background: #4f86f7; }
.theme-card-top b { color: #929aab; font-family: var(--font-mono); font-size: 0.61rem; font-weight: 500; }

.theme-mini-app {
  min-height: 290px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(21, 30, 50, 0.09);
  border-radius: 16px;
  background: #f7f8fa;
}

.theme-card-dark .theme-mini-app { border-color: rgba(255, 255, 255, 0.08); background: #111318; }

.theme-mini-app aside {
  padding: 14px 9px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(21, 30, 50, 0.08);
  background: #eff2f6;
}

.theme-card-dark .theme-mini-app aside { border-color: rgba(255, 255, 255, 0.07); background: #11141a; }
.theme-mini-app aside img { width: 32px; height: 32px; margin: 0 auto 5px; }
.theme-mini-app aside i { height: 25px; border-radius: 7px; background: rgba(21, 30, 50, 0.04); }
.theme-card-dark .theme-mini-app aside i { background: rgba(255, 255, 255, 0.04); }
.theme-mini-app aside i.is-active { background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06); }
.theme-card-dark .theme-mini-app aside i.is-active { background: rgba(255, 255, 255, 0.075); }

.theme-mini-main { padding: 14px; }
.mini-toolbar { height: 34px; border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.theme-card-dark .mini-toolbar { background: #1c2027; box-shadow: none; }
.mini-panels { margin-top: 12px; display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 10px; }
.mini-panels span { height: 205px; border-radius: 12px; background: #fff; box-shadow: 0 8px 30px rgba(15, 23, 42, 0.04); }
.theme-card-dark .mini-panels span { background: #181b21; box-shadow: none; }

.theme-card > p {
  padding: 1rem 0.3rem 0.25rem;
}

.theme-card > p strong,
.theme-card > p small { display: block; }
.theme-card > p strong { font-size: 0.92rem; font-weight: 660; }
.theme-card > p small { margin-top: 0.3rem; color: #68738a; font-size: 0.72rem; line-height: 1.5; }
.theme-card-dark > p small { color: #929aa8; }

.detail-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.detail-card {
  min-width: 0;
  min-height: 220px;
  padding: 1.35rem;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  border: 1px solid var(--page-border);
  border-radius: 20px;
  background: var(--page-surface);
  box-shadow: var(--page-shadow-soft);
}

.detail-card > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: rgba(47, 111, 236, 0.1);
  color: var(--quiro-app-blue);
}

.detail-card > span svg { width: 19px; height: 19px; }
.detail-card > div { min-width: 0; flex: 1; }
.detail-card h3 { font-size: 1rem; font-weight: 660; letter-spacing: -0.025em; }
.detail-card p { margin-top: 0.55rem; color: var(--page-text-muted); font-size: 0.76rem; line-height: 1.6; }

.shortcut-row {
  margin-top: 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.shortcut-row kbd {
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: grid;
  place-items: center;
  border: 1px solid var(--page-border-strong);
  border-radius: 7px;
  background: var(--page-surface-muted);
  box-shadow: 0 2px 0 var(--page-border-strong);
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 600;
}

.shortcut-row i { width: 0.5rem; }

.window-size-line {
  margin-top: 1.35rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--page-text-muted);
  font-size: 0.68rem;
}

.window-size-line b {
  width: 80px;
  height: 45px;
  display: block;
  border: 2px solid var(--quiro-app-blue);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(47, 111, 236, 0.09) 30%, transparent 30%);
}

.focus-example {
  min-height: 38px;
  margin-top: 1.3rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(47, 111, 236, 0.35);
  border-radius: 9px;
  background: rgba(47, 111, 236, 0.08);
  box-shadow: 0 0 0 3px rgba(47, 111, 236, 0.16);
  color: var(--quiro-app-blue);
  font-size: 0.7rem;
  font-weight: 650;
}

/* FAQ */
.faq-section {
  background: var(--page-bg);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.58fr) minmax(520px, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.faq-heading {
  position: sticky;
  top: 110px;
}

.faq-list {
  display: grid;
  gap: 0.7rem;
}

.faq-list details {
  border: 1px solid var(--page-border);
  border-radius: 16px;
  background: var(--page-surface);
  box-shadow: var(--page-shadow-soft);
}

.faq-list summary {
  position: relative;
  min-height: 72px;
  padding: 1.1rem 3.4rem 1.1rem 1.2rem;
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  position: absolute;
  right: 1.25rem;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--page-surface-muted);
  color: var(--page-text-muted);
  content: "+";
  font-size: 1rem;
  font-weight: 500;
}

.faq-list details[open] summary::after { content: "−"; }

.faq-list details p {
  padding: 0 1.2rem 1.25rem;
  color: var(--page-text-muted);
  font-size: 0.82rem;
  line-height: 1.7;
}

/* CTA and footer */
.final-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(82, 211, 206, 0.13), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(121, 83, 247, 0.26), transparent 34%),
    linear-gradient(135deg, #00103e, #07183f 55%, #17143e);
  color: #fff;
}

.cta-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.final-cta-inner {
  position: relative;
  z-index: 2;
  min-height: 410px;
  padding-block: 4rem;
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}

.final-cta-inner > img {
  width: 110px;
  height: 110px;
  filter: drop-shadow(0 22px 45px rgba(0, 0, 0, 0.25));
}

.final-cta span {
  display: block;
  margin-bottom: 0.85rem;
  color: #7fa6ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.final-cta h2 {
  max-width: 750px;
  font-size: clamp(2.4rem, 4.6vw, 4.8rem);
}

.final-cta p {
  max-width: 650px;
  margin-top: 1rem;
  color: #b7c0d3;
  font-size: 1rem;
  line-height: 1.65;
}

.site-footer {
  padding-top: 3.2rem;
  background: #070b14;
  color: #f2f4f8;
}

.footer-main {
  padding-bottom: 2.5rem;
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(260px, 1fr) auto;
  gap: 2rem;
  align-items: start;
}

.footer-brand {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.footer-brand img:first-child { width: 40px; height: 40px; }
.footer-brand img:last-child { width: 92px; height: 29px; object-fit: contain; }
.footer-main > p { color: #929aa8; font-size: 0.77rem; line-height: 1.7; }
.footer-main nav { display: grid; grid-template-columns: repeat(5, auto); gap: 1.15rem; }
.footer-main nav a { color: #aeb6c5; font-size: 0.73rem; font-weight: 560; }
.footer-main nav a:hover { color: #fff; }

.footer-bottom {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: #686f7c;
  font-size: 0.66rem;
}

.footer-bottom b { font-weight: inherit; }

.toast {
  position: fixed;
  z-index: 800;
  right: 1.25rem;
  bottom: 1.25rem;
  min-height: 48px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid rgba(84, 197, 150, 0.24);
  border-radius: 13px;
  background: rgba(24, 27, 33, 0.94);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
  color: #f2f4f8;
  font-size: 0.75rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  backdrop-filter: blur(16px);
}

.toast svg {
  width: 17px;
  height: 17px;
  color: #54c596;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Progressive reveal */
.js .reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.js .reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 1240px) {
  .hero-layout {
    grid-template-columns: minmax(320px, 0.7fr) minmax(570px, 1.2fr);
    gap: 2.5rem;
  }

  .floating-status-two { right: -0.75rem; }
  .floating-status-one { left: -0.75rem; }

  .export-format-board {
    grid-template-columns: minmax(170px, 0.55fr) minmax(0, 1.25fr) minmax(155px, 0.5fr);
  }

  .export-format-board > .button { grid-column: 3; }
}

@media (max-width: 1100px) {
  .hero {
    min-height: 0;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 4.5rem;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-product {
    max-width: 860px;
    width: 100%;
    margin-inline: auto;
  }

  .hero-app-window {
    width: 100%;
    margin: 0;
    transform: none;
  }

  .playground-layout,
  .privacy-layout {
    grid-template-columns: 1fr;
  }

  .playground-controls {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }

  .control-section {
    min-width: 0;
  }

  .privacy-copy {
    max-width: 760px;
  }

  .backup-app {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .library-app-body {
    grid-template-columns: 178px minmax(0, 1fr);
  }

  .library-inspector {
    display: none;
  }

  .faq-layout {
    grid-template-columns: 0.7fr 1fr;
    gap: 3.5rem;
  }

  .footer-main {
    grid-template-columns: 0.65fr 1fr;
  }

  .footer-main nav {
    grid-column: 1 / -1;
    justify-content: start;
  }
}

@media (max-width: 960px) {
  .desktop-nav,
  .header-actions > .button-small {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: grid;
  }

  .section-heading.split-heading {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .playground-controls {
    grid-template-columns: 1fr;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
  }

  .workflow-export {
    grid-column: auto;
  }

  .export-format-board {
    grid-template-columns: 1fr;
  }

  .export-format-board > .button {
    grid-column: auto;
    justify-self: stretch;
  }

  .export-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-showcase,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    min-height: 0;
  }

  .faq-layout {
    grid-template-columns: 1fr;
  }

  .faq-heading {
    position: static;
  }

  .final-cta-inner {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .final-cta-inner > img {
    width: 90px;
    height: 90px;
  }

  .final-cta-inner > .button {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 2rem), var(--shell));
  }

  .header-inner {
    min-height: 64px;
  }

  .mobile-nav {
    top: 64px;
  }

  .hero {
    padding-top: 7.4rem;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 16vw, 5.5rem);
  }

  .hero-buttons {
    align-items: stretch;
  }

  .hero-buttons .button {
    flex: 1 1 100%;
  }

  .floating-status {
    display: none;
  }

  .product-strip-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-strip-inner > span,
  .product-strip-inner > span:first-child {
    border: 0;
    border-right: 1px solid var(--page-border);
    border-bottom: 1px solid var(--page-border);
  }

  .product-strip-inner > span:nth-child(even) { border-right: 0; }
  .product-strip-inner > span:nth-child(n + 3) { border-bottom: 0; }

  .app-titlebar {
    grid-template-columns: auto 1fr auto;
  }

  .titlebar-brand {
    justify-content: flex-start;
    margin-left: 12px;
  }

  .titlebar-actions button:not(.app-primary-action),
  .titlebar-actions .app-primary-action span {
    display: none;
  }

  .titlebar-actions .app-primary-action {
    width: 30px;
    padding: 0;
    justify-content: center;
  }

  .hero-app-window .app-body,
  .library-app-body {
    grid-template-columns: 1fr;
  }

  .hero-app-window .app-sidebar,
  .library-sidebar {
    display: none;
  }

  .generate-columns {
    grid-template-columns: 1fr;
  }

  .editor-pane {
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .preview-pane {
    min-height: 465px;
  }

  .library-window .app-body {
    min-height: 0;
  }

  .library-content {
    padding: 15px;
  }

  .library-filters {
    grid-template-columns: 1fr 1fr;
  }

  .library-filters label {
    grid-column: 1 / -1;
  }

  .live-preview-stage {
    min-height: 470px;
    padding: 1.5rem;
  }

  .live-export-bar {
    grid-template-columns: 1fr 1fr;
  }

  .live-export-bar .button {
    grid-column: 1 / -1;
  }

  .backup-body {
    grid-template-columns: 1fr;
  }

  .backup-sidebar {
    padding: 8px;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--app-border);
  }

  .backup-sidebar > img {
    width: 30px;
    height: 30px;
    margin: 0 3px 0 0;
    flex: 0 0 auto;
  }

  .backup-sidebar button {
    white-space: nowrap;
  }

  .format-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .final-cta-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .final-cta-inner > img {
    margin-inline: auto;
  }

  .final-cta-inner > .button {
    grid-column: auto;
    justify-self: center;
  }

  .footer-main {
    grid-template-columns: 1fr;
  }

  .footer-main nav {
    grid-column: auto;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
  }
}

@media (max-width: 560px) {
  :root {
    --section-space: 5.2rem;
  }

  .shell {
    width: min(calc(100% - 1.35rem), var(--shell));
  }

  .brand-app-icon {
    width: 34px;
    height: 34px;
  }

  .brand-wordmarks {
    width: 78px;
    height: 24px;
  }

  .hero {
    padding-top: 6.8rem;
  }

  .product-label {
    margin-bottom: 1.3rem;
  }

  .hero h1 {
    font-size: clamp(3rem, 16vw, 4.4rem);
  }

  .section-heading h2,
  .privacy-copy h2,
  .faq-heading h2,
  .final-cta h2 {
    font-size: clamp(2.35rem, 12vw, 3.7rem);
  }

  .app-titlebar {
    padding: 0 8px;
  }

  .traffic-lights {
    gap: 4px;
  }

  .traffic-lights i {
    width: 8px;
    height: 8px;
  }

  .generate-header {
    padding-inline: 13px;
  }

  .generate-columns {
    min-height: 0;
  }

  .editor-pane {
    padding: 13px;
  }

  .app-segmented {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-options {
    gap: 5px;
  }

  .qr-preview-card {
    width: min(84%, 240px);
  }

  .export-bar {
    grid-template-columns: 1fr 1fr;
  }

  .export-bar .app-primary-action {
    grid-column: 1 / -1;
  }

  .content-type-grid {
    grid-template-columns: 1fr;
  }

  .style-buttons {
    gap: 0.4rem;
  }

  .toggle-row small {
    white-space: normal;
  }

  .library-card-grid {
    grid-template-columns: 1fr;
  }

  .library-filters {
    grid-template-columns: 1fr;
  }

  .library-filters label,
  .library-filters button {
    grid-column: auto;
  }

  .scanner-source-tabs button {
    font-size: 0;
  }

  .scanner-source-tabs svg {
    width: 15px;
    height: 15px;
  }

  .camera-stage {
    min-height: 255px;
  }

  .scan-corner.c1 { top: 30px; left: 30px; }
  .scan-corner.c2 { top: 30px; right: 30px; }
  .scan-corner.c3 { bottom: 30px; left: 30px; }
  .scan-corner.c4 { right: 30px; bottom: 30px; }
  .scan-beam { right: 30px; left: 30px; }

  .batch-stepper span {
    font-size: 0;
  }

  .batch-stepper i {
    font-size: 7px;
  }

  .batch-table > div {
    grid-template-columns: minmax(0, 1fr) 60px 45px;
    padding-inline: 7px;
  }

  .batch-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .backup-content {
    padding: 10px;
  }

  .backup-hero {
    min-height: 150px;
  }

  .backup-hero img {
    width: 58px;
    height: 58px;
  }

  .backup-stat-grid {
    grid-template-columns: 1fr;
  }

  .backup-actions {
    grid-template-columns: 1fr;
  }

  .backup-recent b {
    display: none;
  }

  .theme-mini-app {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .theme-mini-main {
    padding: 10px;
  }

  .mini-panels {
    grid-template-columns: 1fr;
  }

  .mini-panels span {
    height: 88px;
  }

  .detail-card {
    flex-direction: column;
  }

  .faq-list summary {
    padding-right: 3rem;
  }

  .footer-main nav {
    grid-template-columns: repeat(2, auto);
  }

  .footer-bottom {
    padding-block: 1.2rem;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .toast {
    right: 0.7rem;
    bottom: 0.7rem;
    left: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }
}
