:root {
  color-scheme: light;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #171a18;
  background: #d8d4cb;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #171a18;
  --ink-soft: #303632;
  --paper: #f4f0e8;
  --paper-raised: #faf7f0;
  --stone: #d8d4cb;
  --stone-dark: #bbb6ad;
  --mineral: #315f57;
  --mineral-dark: #173b35;
  --mineral-light: #77968f;
  --line: rgba(23, 26, 24, .15);
  --line-dark: rgba(244, 240, 232, .16);
  --muted: #666c68;
}
* { box-sizing: border-box; }
html { background: var(--stone); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--stone); color: var(--ink); -webkit-font-smoothing: antialiased; }
button,input,select,textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.utility-bar { min-height: 30px; padding: 0 20px; display: flex; align-items: center; justify-content: center; gap: 12px; background: #0d1210; color: #aeb8b3; font-size: 8px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.utility-bar a { min-height: 30px; display: inline-flex; align-items: center; text-decoration: none; color: #f4f0e8; }
.utility-bar a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shell { width: min(1450px, calc(100% - 28px)); margin: 14px auto; padding: 0 28px 20px; border: 1px solid rgba(23,26,24,.16); border-radius: 24px; background: rgba(244,240,232,.95); box-shadow: 0 26px 70px rgba(42,46,42,.08); }
.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { min-height: 56px; display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.brand-logo { width: 58px; height: auto; max-height: 58px; display: block; object-fit: contain; }
.privacy-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.42); color: #4d5550; font-size: 11px; font-weight: 680; }
.privacy-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--mineral); box-shadow: 0 0 0 4px rgba(49,95,87,.12); }
.hero { padding: 48px 0 42px; display: grid; grid-template-columns: 1.12fr .88fr; gap: 50px; align-items: end; }
.eyebrow { margin: 0 0 15px; color: var(--mineral); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
h1 { margin: 0; font-size: clamp(50px, 6.3vw, 88px); font-weight: 700; line-height: .91; letter-spacing: -.062em; }
h1 span { color: var(--mineral); }
.hero-copy { max-width: 500px; margin: 0 0 3px auto; color: #5d645f; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.55; letter-spacing: -.018em; }
.studio-grid { display: grid; grid-template-columns: minmax(0,.88fr) minmax(510px,1.12fr); gap: 14px; }
.panel { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.controls-panel { padding: 24px; background: rgba(255,255,255,.34); }
.preview-panel { padding: 24px; background: #17221f; color: var(--paper); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.panel-head > div { display: flex; align-items: center; gap: 10px; }
.panel-head.compact { margin: 0 0 17px; }
.step { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; font-weight: 800; opacity: .58; }
h2 { margin: 0; font-size: 16px; font-weight: 720; letter-spacing: -.02em; }
.microcopy { font-size: 10px; text-transform: uppercase; letter-spacing: .12em; opacity: .55; }
.tabs, .segmented { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 4px; border: 1px solid rgba(23,26,24,.06); border-radius: 12px; background: rgba(23,26,24,.06); }
.tabs { margin-bottom: 19px; }
.tab, .segmented button { min-height: 38px; border: 0; border-radius: 9px; padding: 8px 11px; background: transparent; color: #656b67; font-size: 11px; font-weight: 720; }
.tab.active, .segmented button.active { color: var(--ink); background: var(--paper-raised); box-shadow: 0 1px 4px rgba(23,26,24,.08); }
.field-group { display: grid; gap: 8px; margin-top: 16px; }
.field-group > label, .slider-field label, .color-field > span:first-child, .export-bar label > span:first-child { color: #424944; font-size: 11px; font-weight: 760; }
input[type=text], input[type=url], textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 12px 13px; outline: 0; background: rgba(250,247,240,.78); color: var(--ink); transition: border-color .18s ease, box-shadow .18s ease; }
textarea { resize: vertical; min-height: 105px; }
input:focus, textarea:focus, select:focus { border-color: rgba(49,95,87,.66); box-shadow: 0 0 0 4px rgba(49,95,87,.1); }
.field-hint { color: #777d79; font-size: 10px; line-height: 1.45; }
.rule { height: 1px; margin: 27px 0 23px; background: var(--line); }
.swatch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 17px; }
.color-field { padding: 11px; border: 1px solid var(--line); border-radius: 12px; background: rgba(250,247,240,.45); display: grid; gap: 8px; }
.color-control { display: flex; align-items: center; gap: 9px; }
input[type=color] { width: 31px; height: 31px; padding: 0; border: 0; border-radius: 8px; background: transparent; overflow: hidden; }
.color-control code { color: #646b66; font-size: 10px; }
.slider-field { margin-top: 17px; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.label-row output { color: #7a807c; font-size: 10px; }
input[type=range] { width: 100%; margin: 11px 0 0; accent-color: var(--mineral); }
.upload-card { margin-top: 17px; min-height: 68px; padding: 11px; border: 1px dashed rgba(23,26,24,.26); border-radius: 13px; display: flex; align-items: center; gap: 11px; background: rgba(250,247,240,.34); }
.upload-main input { display: none; }
.upload-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--mineral-dark); color: var(--paper); font-size: 19px; font-weight: 300; }
.upload-main { flex: 1; min-width: 0; min-height: 46px; display: flex; align-items: center; gap: 11px; cursor: pointer; }
.upload-main > span:nth-child(3) { display: grid; gap: 3px; min-width: 0; }
.upload-main strong { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-main small { color: #797f7b; font-size: 9px; line-height: 1.35; }
.text-btn { margin-left: auto; border: 0; background: none; color: var(--mineral); font-size: 10px; font-weight: 760; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: end; }
.check-field { min-height: 44px; display: flex; align-items: center; gap: 9px; padding: 0 4px; font-size: 11px; font-weight: 700; }
.check-field input { accent-color: var(--mineral); }
.preview-panel .panel-head { margin-bottom: 17px; }
.preview-stage { min-height: 535px; border: 1px solid rgba(244,240,232,.08); border-radius: 14px; background: linear-gradient(rgba(244,240,232,.026) 1px,transparent 1px), linear-gradient(90deg,rgba(244,240,232,.026) 1px,transparent 1px), #1c2925; background-size: 28px 28px; display: grid; place-items: center; position: relative; overflow: hidden; }
.preview-stage::before { content: ""; position: absolute; width: 450px; height: 450px; border-radius: 50%; background: radial-gradient(circle,rgba(81,128,117,.23),transparent 68%); filter: blur(16px); }
.qr-frame { width: min(66%,410px); aspect-ratio: 1; position: relative; z-index: 1; filter: drop-shadow(0 22px 44px rgba(0,0,0,.28)); transition: transform .22s ease; }
.qr-frame:hover { transform: scale(1.006); }
.qr-frame svg { width: 100%; height: 100%; display: block; border-radius: 12px; }
.empty-state { aspect-ratio: 1; width: min(66%,410px); border: 1px dashed rgba(244,240,232,.22); border-radius: 12px; display: grid; place-items: center; align-content: center; gap: 10px; color: rgba(244,240,232,.5); }
.empty-state span { font-size: 30px; font-weight: 200; }
.empty-state p { margin: 0; font-size: 11px; }
.message { min-height: 18px; padding: 7px 0 0; color: #bdcfc9; font-size: 10px; }
.message.warning { color: #e2c78a; }
.export-bar { margin-top: 11px; display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.export-bar label { display: grid; gap: 6px; min-width: 140px; }
.preview-panel .export-bar label > span:first-child { color: rgba(244,240,232,.64); }
.preview-panel select { background: #21302b; color: var(--paper); border-color: var(--line-dark); }
.export-actions { display: flex; gap: 8px; }
.primary-btn, .secondary-btn { min-height: 43px; padding: 0 16px; border-radius: 11px; font-size: 11px; font-weight: 780; border: 1px solid transparent; }
.primary-btn { color: #14201c; background: var(--paper); }
.secondary-btn { color: var(--paper); background: transparent; border-color: rgba(244,240,232,.23); }
.primary-btn:hover, .secondary-btn:hover { transform: translateY(-1px); }
.trust-strip { margin-top: 17px; padding-top: 15px; border-top: 1px solid rgba(244,240,232,.12); display: flex; gap: 18px; flex-wrap: wrap; color: rgba(244,240,232,.56); font-size: 9px; }
.trust-strip i { color: #98b7af; font-style: normal; }
footer { padding: 20px 2px 2px; display: flex; justify-content: space-between; gap: 20px; color: #787e7a; font-size: 9px; letter-spacing: .04em; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 22px; padding: 42px 0 36px; }
  .hero-copy { margin-left: 0; }
  .studio-grid { grid-template-columns: 1fr; }
  .preview-stage { min-height: 500px; }
}
@media (max-width: 640px) {
  .utility-bar { justify-content: space-between; padding: 0 12px; }
  .utility-bar span { font-size: 7px; }
  .shell { width: calc(100% - 14px); margin: 7px auto; padding: 0 12px 14px; border-radius: 19px; }
  .topbar { min-height: 62px; }
  .brand-logo { width: 52px; max-height: 54px; }
  .privacy-pill { font-size: 9px; }
  .hero { padding: 35px 4px 29px; }
  h1 { font-size: clamp(45px,16vw,68px); }
  .controls-panel, .preview-panel { padding: 15px; }
  .preview-stage { min-height: 390px; }
  .qr-frame { width: 78%; }
  .export-bar { align-items: stretch; flex-direction: column; }
  .export-actions { display: grid; grid-template-columns: 1fr 1.5fr; }
  .swatch-row, .split-fields { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; } }
