:root {
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #07111f;
  --bg-soft: #0a1626;
  --surface: rgba(13, 27, 45, 0.82);
  --surface-solid: #0d1b2d;
  --surface-raised: #12243a;
  --surface-muted: rgba(255,255,255,.045);
  --surface-hover: rgba(255,255,255,.075);
  --text: #f4f8ff;
  --text-soft: #aab9cd;
  --text-muted: #71839a;
  --line: rgba(185, 211, 242, .13);
  --line-strong: rgba(185, 211, 242, .24);
  --brand: #65e6c4;
  --brand-strong: #36cba8;
  --brand-soft: rgba(101, 230, 196, .13);
  --blue: #69a9ff;
  --blue-soft: rgba(105, 169, 255, .14);
  --purple: #a783ff;
  --danger: #ff7b8c;
  --warning: #ffcb72;
  --success: #67e1a1;
  --shadow-sm: 0 8px 24px rgba(0,0,0,.18);
  --shadow-md: 0 24px 60px rgba(0,0,0,.24);
  --shadow-lg: 0 44px 110px rgba(0,0,0,.35);
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --container: 1180px;
  --header-height: 76px;
  --transition: 180ms ease;
}

html[data-theme="light"] {
  --bg: #f5f8ff;
  --bg-soft: #eef4fc;
  --surface: rgba(255,255,255,.84);
  --surface-solid: #ffffff;
  --surface-raised: #f4f8fd;
  --surface-muted: rgba(9, 32, 58, .045);
  --surface-hover: rgba(9, 32, 58, .075);
  --text: #0a182a;
  --text-soft: #52657c;
  --text-muted: #7c8ba0;
  --line: rgba(13, 43, 73, .11);
  --line-strong: rgba(13, 43, 73, .2);
  --brand: #0f9f7d;
  --brand-strong: #0a8065;
  --brand-soft: rgba(15,159,125,.1);
  --blue: #367ee7;
  --blue-soft: rgba(54,126,231,.1);
  --purple: #7d55df;
  --danger: #d84d65;
  --warning: #9a6510;
  --success: #188f5c;
  --shadow-sm: 0 8px 24px rgba(44,76,112,.09);
  --shadow-md: 0 24px 60px rgba(44,76,112,.13);
  --shadow-lg: 0 44px 110px rgba(44,76,112,.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 22px); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
body::selection { background: rgba(101,230,196,.3); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
img, svg, video, canvas { display: block; max-width: 100%; }
svg { width: 1.2em; height: 1.2em; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(101,230,196,.42);
  outline-offset: 3px;
}

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.card { border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px); }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
.skip-link { position: fixed; z-index: 9999; left: 16px; top: -100px; padding: 10px 16px; border-radius: 10px; color: #061411; background: #79f0d1; font-weight: 700; transition: top var(--transition); }
.skip-link:focus { top: 16px; }
.anchor-target { position: absolute; transform: translateY(-110px); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.background-orb { position: fixed; z-index: -3; pointer-events: none; border-radius: 50%; filter: blur(90px); opacity: .22; }
.background-orb-one { width: 430px; height: 430px; left: -170px; top: 110px; background: #38d7aa; }
.background-orb-two { width: 520px; height: 520px; right: -220px; top: 340px; background: #397fe9; opacity: .18; }
.noise { position: fixed; z-index: -2; inset: 0; pointer-events: none; opacity: .03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); }
html[data-theme="light"] .background-orb { opacity: .1; }

.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); border-bottom: 1px solid transparent; background: rgba(7,17,31,.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); transition: border-color var(--transition), background var(--transition); }
html[data-theme="light"] .site-header { background: rgba(245,248,255,.74); }
.site-header.is-scrolled { border-color: var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #061613; background: linear-gradient(145deg, #82f5d7, #3bc49e); box-shadow: 0 10px 28px rgba(47,208,166,.26); }
.brand-mark svg { width: 27px; height: 27px; }
.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-family: var(--font-display); font-size: 15px; letter-spacing: -.02em; }
.brand-copy small { margin-top: 4px; color: var(--text-muted); font-size: 11px; letter-spacing: .025em; }
.desktop-nav { display: flex; align-items: center; gap: 30px; margin-left: auto; }
.desktop-nav a { position: relative; color: var(--text-soft); font-size: 14px; font-weight: 600; transition: color var(--transition); }
.desktop-nav a::after { content: ""; position: absolute; left: 0; bottom: -9px; width: 100%; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: center; transition: transform var(--transition); }
.desktop-nav a:hover { color: var(--text); }
.desktop-nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 12px; color: var(--text-soft); background: var(--surface-muted); cursor: pointer; transition: border-color var(--transition), background var(--transition), color var(--transition), transform var(--transition); }
.icon-button:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-hover); transform: translateY(-1px); }
.theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-sun { display: block; }
html[data-theme="light"] .theme-icon-moon { display: none; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; border: 1px solid transparent; border-radius: 13px; font-weight: 700; font-size: 14px; line-height: 1; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-primary { color: #061512; background: linear-gradient(135deg, #80f0d2, #42c9a6); box-shadow: 0 12px 28px rgba(54,203,168,.22); }
.button-primary:hover { box-shadow: 0 16px 34px rgba(54,203,168,.3); }
.button-secondary { color: var(--text); border-color: var(--line-strong); background: var(--surface-muted); }
.button-secondary:hover { border-color: rgba(101,230,196,.4); background: var(--surface-hover); }
.button-ghost { color: var(--text-soft); border-color: var(--line); background: transparent; }
.button-small { min-height: 40px; padding-inline: 14px; border-radius: 11px; font-size: 13px; }
.button-flex { flex: 1; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 5px; border: 0; color: var(--text-soft); background: transparent; font-weight: 700; font-size: 13px; cursor: pointer; transition: color var(--transition); }
.text-button:hover { color: var(--brand); }
.danger-text { color: var(--danger); }
.danger-text:hover { color: var(--danger); opacity: .8; }

.hero { position: relative; padding: 92px 0 96px; }
.hero::before { content: ""; position: absolute; z-index: -1; top: -80px; left: 50%; width: min(1100px, 100%); height: 620px; transform: translateX(-50%); background: radial-gradient(circle at 62% 34%, rgba(105,169,255,.11), transparent 38%), radial-gradient(circle at 30% 20%, rgba(101,230,196,.09), transparent 32%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(390px, .86fr); align-items: center; gap: 80px; }
.hero-copy { max-width: 680px; }
.eyebrow, .section-label { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 12px; border: 1px solid rgba(101,230,196,.2); border-radius: 999px; background: var(--brand-soft); letter-spacing: .08em; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(101,230,196,.1); }
.hero h1 { margin: 24px 0 22px; font-family: var(--font-display); font-size: clamp(47px, 6vw, 76px); line-height: 1.025; letter-spacing: -.057em; }
.hero h1 span { color: transparent; background: linear-gradient(100deg, #7ef0d2 8%, #70adff 58%, #b095ff); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { max-width: 610px; margin: 0; color: var(--text-soft); font-size: 19px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-actions .button { min-height: 53px; padding-inline: 22px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 21px; margin-top: 28px; color: var(--text-muted); font-size: 12.5px; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { color: var(--brand); }

.hero-visual { position: relative; min-height: 520px; display: grid; place-items: center; }
.visual-glow { position: absolute; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(68,205,168,.18), transparent 64%); filter: blur(12px); }
.phone-shell { position: relative; z-index: 2; width: 326px; padding: 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 42px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.035)); box-shadow: 0 40px 90px rgba(0,0,0,.36), inset 0 1px 1px rgba(255,255,255,.14); transform: rotate(2deg); }
html[data-theme="light"] .phone-shell { border-color: rgba(15,44,73,.16); background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(226,236,248,.8)); }
.phone-bar { position: absolute; z-index: 3; top: 23px; left: 50%; display: flex; align-items: center; gap: 5px; width: 84px; height: 23px; padding: 0 9px; border-radius: 20px; background: #040a12; transform: translateX(-50%); }
.phone-bar span:first-child { width: 38px; height: 5px; border-radius: 4px; background: #182432; }
.phone-bar span:last-child { width: 7px; height: 7px; border-radius: 50%; background: #172a3b; }
.phone-content { min-height: 470px; padding: 52px 18px 20px; border-radius: 33px; overflow: hidden; background: #071321; }
html[data-theme="light"] .phone-content { background: #f4f8fd; }
.mini-heading { display: flex; align-items: center; justify-content: space-between; font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.mini-pill { padding: 5px 8px; border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-family: var(--font-body); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.mini-scanner { position: relative; height: 260px; margin-top: 19px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(150deg, rgba(27,55,83,.62), rgba(7,18,31,.9)); }
html[data-theme="light"] .mini-scanner { background: linear-gradient(150deg, #e9f2fc, #dbe9f8); }
.mini-scanner::before { content: ""; position: absolute; inset: 0; opacity: .23; background: repeating-linear-gradient(0deg, transparent 0 21px, rgba(255,255,255,.06) 22px), repeating-linear-gradient(90deg, transparent 0 21px, rgba(255,255,255,.06) 22px); }
.mini-qr { position: relative; z-index: 2; display: grid; place-items: center; width: 105px; height: 105px; border-radius: 13px; color: #06100f; background: #fff; box-shadow: 0 16px 40px rgba(0,0,0,.25); }
.mini-qr svg { width: 80px; height: 80px; }
.mini-corners { position: absolute; z-index: 3; inset: 44px; border: 0; }
.mini-corners::before, .mini-corners::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--brand); border-radius: 16px; clip-path: polygon(0 0, 30% 0, 30% 3px, 3px 3px, 3px 30%, 0 30%, 0 0, 100% 0, 100% 30%, calc(100% - 3px) 30%, calc(100% - 3px) 3px, 70% 3px, 70% 0, 100% 0, 100% 100%, 70% 100%, 70% calc(100% - 3px), calc(100% - 3px) calc(100% - 3px), calc(100% - 3px) 70%, 100% 70%, 100% 100%, 0 100%, 0 70%, 3px 70%, 3px calc(100% - 3px), 30% calc(100% - 3px), 30% 100%, 0 100%); }
.mini-line { position: absolute; z-index: 4; left: 45px; right: 45px; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent); box-shadow: 0 0 15px var(--brand); animation: mini-scan 2.5s ease-in-out infinite; }
@keyframes mini-scan { 0%,100% { transform: translateY(-70px); opacity: .45; } 50% { transform: translateY(70px); opacity: 1; } }
.mini-result { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; margin-top: 14px; padding: 12px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-muted); }
.mini-success { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--brand); background: var(--brand-soft); }
.mini-result div { display: grid; min-width: 0; }
.mini-result strong { font-size: 11px; }
.mini-result small { color: var(--text-muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-result > svg { color: var(--text-muted); }
.floating-chip { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 13px; color: var(--text-soft); background: var(--surface); box-shadow: var(--shadow-md); backdrop-filter: blur(16px); font-size: 11px; font-weight: 700; }
.floating-chip svg { color: var(--brand); }
.chip-one { left: 0; top: 130px; animation: float-one 5s ease-in-out infinite; }
.chip-two { right: -2px; bottom: 110px; animation: float-two 5.5s ease-in-out infinite; }
@keyframes float-one { 50% { transform: translateY(-9px) rotate(-1deg); } }
@keyframes float-two { 50% { transform: translateY(8px) rotate(1deg); } }

.workspace-section { position: relative; padding: 10px 0 108px; }
.workspace { position: relative; border-radius: var(--radius-xl); overflow: hidden; }
.workspace-tabs { display: flex; gap: 6px; padding: 10px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.08); }
html[data-theme="light"] .workspace-tabs { background: rgba(15,45,75,.025); }
.workspace-tab { display: inline-flex; min-width: 170px; min-height: 48px; align-items: center; justify-content: center; gap: 9px; padding: 0 19px; border: 0; border-radius: 13px; color: var(--text-muted); background: transparent; font-weight: 700; cursor: pointer; transition: color var(--transition), background var(--transition), box-shadow var(--transition); }
.workspace-tab:hover { color: var(--text); background: var(--surface-muted); }
.workspace-tab.is-active { color: var(--text); background: var(--surface-raised); box-shadow: var(--shadow-sm); }
.workspace-tab.is-active svg { color: var(--brand); }
.workspace-panel { position: relative; padding: 38px; }
.workspace-panel[hidden] { display: none; }
.tool-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.tool-heading h2, .section-heading h2 { margin: 6px 0 7px; font-family: var(--font-display); font-size: clamp(27px, 3vw, 38px); line-height: 1.18; letter-spacing: -.035em; }
.tool-heading p, .section-heading p { margin: 0; color: var(--text-soft); }
.privacy-badge { display: inline-flex; flex-shrink: 0; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid rgba(101,230,196,.18); border-radius: 999px; color: var(--brand); background: var(--brand-soft); font-size: 11px; font-weight: 800; }

.scanner-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 24px; }
.scanner-column { min-width: 0; }
.mode-switch { display: inline-flex; gap: 4px; margin-bottom: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); }
.mode-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 112px; min-height: 39px; padding-inline: 14px; border: 0; border-radius: 9px; color: var(--text-muted); background: transparent; font-size: 13px; font-weight: 700; cursor: pointer; transition: color var(--transition), background var(--transition); }
.mode-button.is-active { color: var(--text); background: var(--surface-raised); box-shadow: 0 4px 13px rgba(0,0,0,.13); }
.mode-button.is-active svg { color: var(--brand); }
.scan-mode-panel[hidden] { display: none; }
.camera-stage { position: relative; isolation: isolate; min-height: 440px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #03090f; }
.camera-stage video { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 440px; object-fit: cover; background: #02070c; opacity: 0; visibility: hidden; transition: opacity .22s ease; }
.camera-stage.is-live video { opacity: 1; visibility: visible; }
.camera-placeholder { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(36,89,118,.28), transparent 40%), linear-gradient(145deg, #0a1725, #06101b); }
html[data-theme="light"] .camera-placeholder { background: radial-gradient(circle at 50% 40%, rgba(101,169,255,.18), transparent 42%), linear-gradient(145deg, #e8f1fb, #dceaf8); }
.camera-placeholder::after { content: ""; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(circle, #000, transparent 70%); }
.camera-placeholder > * { position: relative; z-index: 1; }
.camera-placeholder-icon, .drop-zone-icon, .empty-result-icon { display: grid; place-items: center; width: 68px; height: 68px; border: 1px solid rgba(101,230,196,.2); border-radius: 21px; color: var(--brand); background: var(--brand-soft); box-shadow: 0 14px 38px rgba(0,0,0,.16); }
.camera-placeholder-icon svg, .drop-zone-icon svg, .empty-result-icon svg { width: 29px; height: 29px; }
.camera-placeholder h3, .drop-zone h3, .empty-result h3 { margin: 18px 0 6px; font-family: var(--font-display); font-size: 20px; letter-spacing: -.025em; }
.camera-placeholder p, .drop-zone p, .empty-result p { max-width: 370px; margin: 0 0 22px; color: var(--text-muted); font-size: 14px; }
.scanner-overlay { position: absolute; z-index: 3; inset: 14%; pointer-events: none; }
.corner { position: absolute; width: 46px; height: 46px; border-color: var(--brand); border-style: solid; filter: drop-shadow(0 0 8px rgba(101,230,196,.5)); }
.corner-tl { top: 0; left: 0; border-width: 4px 0 0 4px; border-radius: 12px 0 0 0; }
.corner-tr { top: 0; right: 0; border-width: 4px 4px 0 0; border-radius: 0 12px 0 0; }
.corner-bl { bottom: 0; left: 0; border-width: 0 0 4px 4px; border-radius: 0 0 0 12px; }
.corner-br { bottom: 0; right: 0; border-width: 0 4px 4px 0; border-radius: 0 0 12px 0; }
.scan-line { position: absolute; left: 7px; right: 7px; top: 10%; height: 2px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--brand) 18%, var(--brand) 82%, transparent); box-shadow: 0 0 16px var(--brand); animation: scan-line 2.3s ease-in-out infinite; }
@keyframes scan-line { 0%,100% { top: 8%; opacity: .4; } 50% { top: 90%; opacity: 1; } }
.camera-status { position: absolute; z-index: 5; top: 14px; left: 50%; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 999px; color: #eefaf7; background: rgba(2,9,14,.72); backdrop-filter: blur(10px); transform: translateX(-50%); font-size: 11px; font-weight: 700; }
.camera-status span { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(101,230,196,.12); }
.camera-status strong { font: inherit; }
.camera-status.is-complete { color: #f1fff9; background: rgba(8,94,69,.9); }
.scan-complete-overlay { position: absolute; z-index: 7; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; color: #fff; background: rgba(2,15,13,.78); backdrop-filter: blur(8px); }
.scan-complete-overlay > span { display:grid; place-items:center; width:72px; height:72px; border-radius:50%; color:#06241b; background:var(--brand); box-shadow:0 0 0 12px rgba(101,230,196,.12); }
.scan-complete-overlay svg { width:38px; height:38px; }
.scan-complete-overlay strong { margin-top:12px; font-family:var(--font-display); font-size:25px; }
.scan-complete-overlay small { color:rgba(255,255,255,.76); font-size:13px; }
.camera-toolbar { display: flex; gap: 9px; margin-top: 12px; }
.select-field { display: flex; min-width: 0; flex: 1; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); }
.select-field svg { flex-shrink: 0; color: var(--brand); }
.select-field select { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; font-size: 13px; }
.select-field select option { color: #122; }
.icon-text-button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; color: var(--text-soft); background: var(--surface-muted); font-size: 13px; font-weight: 700; cursor: pointer; }
.icon-text-button:hover, .icon-text-button.is-active { color: var(--brand); border-color: rgba(101,230,196,.28); background: var(--brand-soft); }
.drop-zone { min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-muted); text-align: center; cursor: pointer; transition: border-color var(--transition), background var(--transition), transform var(--transition); }
.drop-zone:hover, .drop-zone.is-dragging { border-color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
.drop-zone small { margin-top: 16px; color: var(--text-muted); font-size: 11px; }
.image-preview { position: relative; min-height: 440px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #03090f; }
.image-preview img { max-height: 440px; margin: auto; object-fit: contain; }
.image-preview-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: rgba(1,7,11,.55); backdrop-filter: blur(5px); font-size: 13px; font-weight: 700; }
.scanner-message, .generator-message { min-height: 22px; margin-top: 10px; color: var(--text-muted); font-size: 13px; }
.scanner-message.is-error, .generator-message.is-error { color: var(--danger); }
.scanner-message.is-success, .generator-message.is-success { color: var(--success); }

.result-panel { min-height: 510px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-muted); overflow: hidden; }
.empty-result { min-height: 508px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 35px; text-align: center; }
.empty-result-icon { width: 62px; height: 62px; color: var(--text-muted); border-color: var(--line); background: var(--surface-muted); }
.result-placeholder-lines { width: min(230px, 90%); display: grid; gap: 9px; margin-top: 15px; }
.result-placeholder-lines span { height: 8px; border-radius: 8px; background: var(--surface-hover); }
.result-placeholder-lines span:nth-child(2) { width: 76%; }
.result-placeholder-lines span:nth-child(3) { width: 52%; }
.result-content { min-height: 508px; display: flex; flex-direction: column; padding: 24px; }
.result-header { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; }
.result-type-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: var(--brand); background: var(--brand-soft); }
.result-type-icon svg { width: 22px; height: 22px; }
.result-kicker { color: var(--text-muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.result-header h3 { margin: 2px 0 0; font-family: var(--font-display); font-size: 17px; line-height: 1.2; }
.safety-pill { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; color: var(--warning); background: rgba(255,203,114,.1); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.url-preview { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; margin-top: 24px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-raised); }
.protocol-badge { padding: 5px 6px; border-radius: 7px; color: var(--success); background: rgba(103,225,161,.1); font-size: 9px; font-weight: 900; }
.url-preview div { display: grid; min-width: 0; }
.url-preview strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.url-preview small { overflow: hidden; color: var(--text-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.result-value { flex: 1; max-height: 280px; margin: 14px 0; padding: 15px; border: 1px solid var(--line); border-radius: 14px; overflow: auto; color: var(--text-soft); background: rgba(0,0,0,.08); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.result-warning { margin: 0 0 14px; padding: 10px 12px; border: 1px solid rgba(255,123,140,.2); border-radius: 11px; color: var(--danger); background: rgba(255,123,140,.07); font-size: 11px; }
.result-actions { display: flex; gap: 8px; }
.result-actions .button { min-height: 44px; padding-inline: 13px; }
.result-content > .text-button { margin: 13px auto 0; }

.history-block { margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.history-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.history-heading h3 { margin: 3px 0 0; font-family: var(--font-display); font-size: 20px; }
.history-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.history-item { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-muted); cursor: pointer; transition: border-color var(--transition), background var(--transition); }
.history-item:hover { border-color: var(--line-strong); background: var(--surface-hover); }
.history-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.history-copy { min-width: 0; display: grid; }
.history-copy strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.history-copy small { color: var(--text-muted); font-size: 9px; }
.history-item > svg { color: var(--text-muted); }

.generator-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); gap: 25px; align-items: start; }
.generator-controls { min-width: 0; }
.type-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 24px; }
.type-button { min-height: 70px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; color: var(--text-muted); background: var(--surface-muted); font-size: 11px; font-weight: 700; cursor: pointer; transition: color var(--transition), border-color var(--transition), background var(--transition), transform var(--transition); }
.type-button:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.type-button.is-active { color: var(--brand); border-color: rgba(101,230,196,.32); background: var(--brand-soft); box-shadow: inset 0 0 0 1px rgba(101,230,196,.06); }
.type-button svg { width: 21px; height: 21px; }
.form-panel { display: grid; gap: 15px; }
.form-panel[hidden] { display: none; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.field-grid.three-columns { grid-template-columns: repeat(3, minmax(0,1fr)); }
.field { display: grid; gap: 7px; min-width: 0; color: var(--text-soft); font-size: 12px; font-weight: 700; }
.field > span:first-child { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.field small { color: var(--text-muted); font-weight: 500; }
.field input:not([type="range"]):not([type="color"]), .field textarea, .field select { width: 100%; min-height: 48px; padding: 0 13px; border: 1px solid var(--line); border-radius: 11px; outline: 0; color: var(--text); background: var(--surface-muted); transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); }
.field textarea { min-height: 108px; padding-block: 12px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: var(--text-muted); opacity: .75; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(101,230,196,.5); box-shadow: 0 0 0 4px rgba(101,230,196,.08); background: var(--surface-raised); }
.field select option { color: #122; background: #fff; }
.input-with-action { position: relative; }
.input-with-action input { padding-right: 47px!important; }
.input-with-action button { position: absolute; top: 50%; right: 5px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 9px; color: var(--text-muted); background: transparent; cursor: pointer; transform: translateY(-50%); }
.input-with-action button:hover { color: var(--text); background: var(--surface-hover); }
.check-field { display: flex; align-items: center; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-muted); cursor: pointer; }
.check-field input { width: 18px; height: 18px; accent-color: var(--brand-strong); }
.check-field span { display: grid; }
.check-field strong { font-size: 12px; }
.check-field small { color: var(--text-muted); font-size: 10px; }
.customise-panel { margin-top: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-muted); overflow: hidden; }
.customise-panel summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 13px; font-weight: 800; }
.customise-panel summary::-webkit-details-marker { display: none; }
.customise-panel summary span { display: inline-flex; align-items: center; gap: 8px; }
.customise-panel summary span svg { color: var(--brand); }
.summary-chevron { transition: transform var(--transition); }
.customise-panel[open] .summary-chevron { transform: rotate(180deg); }
.customise-content { display: grid; gap: 16px; padding: 3px 16px 16px; border-top: 1px solid var(--line); }
.customise-content > *:first-child { margin-top: 16px; }
.color-input-wrap { display: grid!important; grid-template-columns: 44px 1fr; gap: 7px; }
.color-input-wrap input[type="color"] { width: 44px; height: 48px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); cursor: pointer; }
.color-input-wrap input[type="color"]::-webkit-color-swatch-wrapper { padding: 2px; }
.color-input-wrap input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.range-field input { width: 100%; accent-color: var(--brand-strong); cursor: pointer; }
.range-field strong { color: var(--brand); font-size: 10px; }
.logo-upload-row { display: flex; align-items: center; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.logo-upload-row > div { display: grid; margin-right: auto; }
.logo-upload-row strong { font-size: 12px; }
.logo-upload-row small { color: var(--text-muted); font-size: 10px; }

.qr-preview-card { position: sticky; top: calc(var(--header-height) + 20px); padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-muted); }
.preview-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.preview-card-heading h3 { margin: 3px 0 0; font-family: var(--font-display); font-size: 20px; }
.preview-status { display: inline-flex; align-items: center; gap: 6px; color: var(--success); font-size: 10px; font-weight: 800; }
.preview-status span { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(103,225,161,.1); }
.qr-canvas-shell { position: relative; width: min(100%, 360px); aspect-ratio: 1; display: grid; place-items: center; margin: 20px auto 15px; padding: 22px; border-radius: 22px; background: #fff; box-shadow: 0 18px 44px rgba(0,0,0,.22); overflow: hidden; }
.qr-canvas-shell::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(0,0,0,.05); border-radius: 17px; pointer-events: none; }
.qr-canvas-shell canvas { width: 100%; height: 100%; object-fit: contain; image-rendering: auto; }
.qr-loading { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.78); }
.spinner { width: 22px; height: 22px; border: 2px solid rgba(101,230,196,.25); border-top-color: var(--brand-strong); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scanability-note { display: flex; align-items: flex-start; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; color: var(--text-muted); background: var(--surface-muted); font-size: 10.5px; line-height: 1.5; }
.scanability-note svg { flex-shrink: 0; margin-top: 1px; color: var(--blue); }
.download-actions { display: flex; gap: 8px; margin-top: 13px; }
.download-actions .button { min-height: 45px; padding-inline: 14px; }
.preview-copy { width: 100%; margin-top: 8px; }

.feature-section, .how-section, .content-section, .faq-section, .cta-section { padding: 100px 0; }
.feature-section { background: linear-gradient(180deg, transparent, rgba(15,34,55,.32), transparent); }
html[data-theme="light"] .feature-section { background: linear-gradient(180deg, transparent, rgba(218,231,246,.35), transparent); }
.section-heading { max-width: 640px; }
.centred-heading { margin: 0 auto 46px; text-align: center; }
.centred-heading p { margin-inline: auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.feature-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-muted); transition: transform var(--transition), border-color var(--transition), background var(--transition); }
.feature-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-hover); }
.feature-icon { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 14px; color: var(--brand); background: var(--brand-soft); }
.feature-icon svg { width: 23px; height: 23px; }
.feature-card:nth-child(2) .feature-icon, .feature-card:nth-child(5) .feature-icon { color: var(--blue); background: var(--blue-soft); }
.feature-card:nth-child(4) .feature-icon, .feature-card:nth-child(6) .feature-icon { color: var(--purple); background: rgba(167,131,255,.12); }
.feature-card h3 { margin: 19px 0 8px; font-family: var(--font-display); font-size: 18px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }

.how-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: start; }
.steps-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.steps-list li { display: grid; grid-template-columns: 62px 1fr; gap: 18px; align-items: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-muted); }
.steps-list > li > span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; color: var(--brand); background: var(--brand-soft); font-family: var(--font-display); font-size: 13px; font-weight: 800; }
.steps-list h3 { margin: 2px 0 5px; font-family: var(--font-display); font-size: 17px; }
.steps-list p { margin: 0; color: var(--text-soft); font-size: 13px; }

.content-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 18px; align-items: stretch; }
.content-card, .safety-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface-muted); }
.content-card h2, .safety-card h2 { margin: 8px 0 16px; font-family: var(--font-display); font-size: clamp(27px,3vw,38px); line-height: 1.2; letter-spacing: -.035em; }
.content-card h3 { margin: 25px 0 8px; font-family: var(--font-display); font-size: 18px; }
.content-card p, .safety-card p { color: var(--text-soft); font-size: 14px; }
.safety-card { background: linear-gradient(145deg, rgba(101,230,196,.12), rgba(105,169,255,.08)); }
.safety-card-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 26px; border-radius: 18px; color: var(--brand); background: rgba(101,230,196,.14); }
.safety-card-icon svg { width: 28px; height: 28px; }
.safety-card ul { display: grid; gap: 12px; margin: 25px 0 0; padding: 0; list-style: none; }
.safety-card li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-soft); font-size: 13px; }
.safety-card li svg { flex-shrink: 0; margin-top: 2px; color: var(--brand); }

.faq-section { background: linear-gradient(180deg, transparent, rgba(15,34,55,.28), transparent); }
html[data-theme="light"] .faq-section { background: linear-gradient(180deg, transparent, rgba(218,231,246,.32), transparent); }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: 80px; align-items: start; }
.faq-heading { position: sticky; top: calc(var(--header-height) + 30px); }
.accordion { display: grid; gap: 9px; }
.accordion details { border: 1px solid var(--line); border-radius: 15px; background: var(--surface-muted); overflow: hidden; }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 20px; list-style: none; cursor: pointer; font-family: var(--font-display); font-size: 14px; font-weight: 700; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary svg { flex-shrink: 0; color: var(--text-muted); transition: transform var(--transition), color var(--transition); }
.accordion details[open] summary svg { color: var(--brand); transform: rotate(45deg); }
.accordion p { margin: 0; padding: 0 20px 19px; color: var(--text-soft); font-size: 13px; }

.cta-section { padding-top: 35px; }
.cta-card { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 44px; border: 1px solid rgba(101,230,196,.2); border-radius: var(--radius-xl); background: linear-gradient(120deg, rgba(101,230,196,.13), rgba(105,169,255,.1)); }
.cta-card::after { content: ""; position: absolute; right: -80px; top: -100px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(101,230,196,.19), transparent 67%); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { margin: 7px 0 7px; font-family: var(--font-display); font-size: clamp(30px,4vw,46px); line-height: 1.15; letter-spacing: -.04em; }
.cta-card p { margin: 0; color: var(--text-soft); }
.cta-actions { display: flex; flex-shrink: 0; gap: 10px; }

.site-footer { padding: 70px 0 25px; border-top: 1px solid var(--line); background: rgba(0,0,0,.08); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .5fr .5fr; gap: 60px; }
.footer-brand p { max-width: 380px; margin: 19px 0 0; color: var(--text-muted); font-size: 13px; }
.footer-links { display: grid; align-content: start; gap: 10px; }
.footer-links strong { margin-bottom: 4px; font-size: 13px; }
.footer-links a { width: max-content; color: var(--text-muted); font-size: 12px; transition: color var(--transition); }
.footer-links a:hover { color: var(--brand); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 45px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 11px; }
.footer-bottom span:last-child { display: inline-flex; align-items: center; gap: 6px; }
.footer-bottom svg { color: var(--brand); }

.toast-region { position: fixed; z-index: 1000; right: 20px; bottom: 20px; display: grid; gap: 9px; width: min(350px, calc(100% - 40px)); }
.toast { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-solid); box-shadow: var(--shadow-md); animation: toast-in .25s ease; }
.toast-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: var(--brand); background: var(--brand-soft); }
.toast strong { display: block; font-size: 12px; }
.toast small { display: block; margin-top: 1px; color: var(--text-muted); font-size: 10px; }
.toast button { display: grid; place-items: center; width: 27px; height: 27px; padding: 0; border: 0; border-radius: 8px; color: var(--text-muted); background: transparent; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 1040px) {
  .desktop-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr .75fr; gap: 30px; }
  .hero h1 { font-size: clamp(44px,7vw,68px); }
  .hero-visual { transform: scale(.88); transform-origin: center right; }
  .scanner-layout, .generator-layout { grid-template-columns: 1fr; }
  .result-panel { min-height: auto; }
  .empty-result, .result-content { min-height: 360px; }
  .qr-preview-card { position: static; }
  .qr-canvas-shell { width: min(100%, 420px); }
  .history-list { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { gap: 45px; }
  .faq-grid { gap: 45px; }
}

@media (max-width: 800px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .desktop-home-link { display: none; }
  .hero { padding: 63px 0 55px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; margin-inline: auto; }
  .hero-copy > p { margin-inline: auto; font-size: 17px; }
  .eyebrow { margin-inline: auto; }
  .hero-actions, .trust-row { justify-content: center; }
  .hero-visual { display: none; }
  .workspace-section { padding-bottom: 75px; }
  .workspace { border-radius: 24px; }
  .workspace-panel { padding: 26px 20px; }
  .tool-heading { display: block; }
  .privacy-badge { margin-top: 13px; }
  .type-grid { grid-template-columns: repeat(5, minmax(62px,1fr)); overflow-x: auto; padding-bottom: 5px; scroll-snap-type: x mandatory; }
  .type-button { min-width: 70px; scroll-snap-align: start; }
  .how-grid, .content-grid, .faq-grid { grid-template-columns: 1fr; gap: 35px; }
  .faq-heading { position: static; }
  .cta-card { display: block; padding: 34px; text-align: center; }
  .cta-actions { justify-content: center; margin-top: 25px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .container { width: min(calc(100% - 20px), var(--container)); }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-mark svg { width: 24px; height: 24px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 9px; }
  .header-actions { gap: 5px; }
  .icon-button { width: 39px; height: 39px; }
  .hero { padding-top: 52px; }
  .hero h1 { margin-top: 20px; font-size: clamp(40px,12vw,58px); letter-spacing: -.06em; }
  .hero-copy > p { font-size: 15.5px; }
  .hero-actions { display: grid; }
  .hero-actions .button { width: 100%; }
  .trust-row { gap: 11px 16px; }
  .workspace-tabs { padding: 7px; }
  .workspace-tab { min-width: 0; flex: 1; min-height: 45px; padding-inline: 9px; font-size: 12px; }
  .workspace-panel { padding: 24px 14px; }
  .tool-heading h2 { font-size: 27px; }
  .tool-heading p { font-size: 13px; }
  .privacy-badge { font-size: 10px; }
  .mode-switch { width: 100%; }
  .mode-button { min-width: 0; flex: 1; }
  .camera-stage, .camera-stage video, .drop-zone, .image-preview { min-height: 340px; }
  .camera-stage video, .image-preview img { max-height: 340px; }
  .camera-placeholder { padding: 22px; }
  .camera-toolbar { flex-wrap: wrap; }
  .select-field { flex-basis: 100%; }
  .result-content { padding: 18px; }
  .result-header { grid-template-columns: 43px 1fr; }
  .safety-pill { grid-column: 2; width: max-content; }
  .result-actions { flex-wrap: wrap; }
  .result-actions .button-flex { flex-basis: 100%; }
  .history-list { grid-template-columns: 1fr; }
  .field-grid, .field-grid.three-columns { grid-template-columns: 1fr; }
  .logo-upload-row { flex-wrap: wrap; }
  .logo-upload-row > div { flex-basis: 100%; }
  .qr-preview-card { padding: 16px; }
  .qr-canvas-shell { padding: 16px; }
  .download-actions { display: grid; grid-template-columns: 1fr auto; }
  .feature-section, .how-section, .content-section, .faq-section, .cta-section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { padding: 22px; }
  .steps-list li { grid-template-columns: 48px 1fr; padding: 17px; gap: 13px; }
  .steps-list > li > span { width: 46px; height: 46px; border-radius: 13px; }
  .content-card, .safety-card { padding: 25px; }
  .cta-section { padding-top: 20px; }
  .cta-card { padding: 28px 20px; border-radius: 24px; }
  .cta-actions { display: grid; }
  .site-footer { padding-top: 55px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 25px; }
  .footer-bottom { display: grid; text-align: center; justify-content: center; }
  .footer-bottom span:last-child { justify-content: center; }
}

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

@media print {
  .site-header, .hero, .workspace-tabs, #scannerPanel, .feature-section, .how-section, .content-section, .faq-section, .cta-section, .site-footer, .toast-region { display: none!important; }
  body { background: #fff; }
  .workspace-section { padding: 0; }
  .workspace, .workspace-panel, .qr-preview-card { border: 0; box-shadow: none; background: #fff; }
  #generatorPanel { display: block!important; }
  .generator-controls, .preview-card-heading, .scanability-note, .download-actions, .preview-copy { display: none!important; }
  .generator-layout { display: block; }
  .qr-canvas-shell { width: 80mm; box-shadow: none; }
}

/* Supporting pages */
.legal-main { min-height: calc(100vh - var(--header-height)); padding: 74px 0 100px; }
.legal-shell { max-width: 820px; margin-inline: auto; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-md); }
.legal-shell h1 { margin: 10px 0 12px; font-family: var(--font-display); font-size: clamp(38px, 6vw, 58px); line-height: 1.08; letter-spacing: -.05em; }
.legal-shell .legal-lead { margin: 0 0 32px; color: var(--text-soft); font-size: 17px; }
.legal-shell h2 { margin: 31px 0 8px; font-family: var(--font-display); font-size: 21px; letter-spacing: -.025em; }
.legal-shell p, .legal-shell li { color: var(--text-soft); font-size: 14px; }
.legal-shell ul { display: grid; gap: 7px; padding-left: 20px; }
.legal-meta { display: inline-flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: 12px; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--line); }
.offline-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.offline-card { max-width: 560px; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow-lg); text-align: center; }
.offline-card .brand-mark { margin: 0 auto 22px; }
.offline-card h1 { margin: 0 0 10px; font-family: var(--font-display); font-size: 35px; letter-spacing: -.04em; }
.offline-card p { margin: 0 0 25px; color: var(--text-soft); }
@media (max-width: 600px) { .legal-main { padding-top: 35px; } .legal-shell, .offline-card { padding: 27px 20px; border-radius: 23px; } }
