@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600;1,700&display=swap');

:root { --ink: #171a31; --muted: #70758d; --line: #e6e5ed; --paper: #fffdf9; --peach: #f2e9df; --lilac: #e8e4ff; --primary: #6254dc; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f7f5f0; font-family: Manrope, Arial, sans-serif; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid rgba(98, 84, 220, .3); outline-offset: 2px; }
.page-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 26px 0 42px; position: relative; }
.orb { position: fixed; border-radius: 999px; filter: blur(1px); pointer-events: none; z-index: -1; opacity: .45; }
.orb-one { width: 360px; height: 360px; background: #e1dbff; top: -170px; right: -100px; }
.orb-two { width: 270px; height: 270px; background: #f9ded0; bottom: -90px; left: -120px; }
.topbar { display: flex; align-items: center; justify-content: space-between; }
.brand { text-decoration: none; color: var(--ink); font-weight: 800; font-size: 22px; letter-spacing: -.9px; display: flex; gap: 8px; align-items: center; }
.brand-mark { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 9px; background: var(--ink); color: white; font-size: 20px; line-height: 1; }
.header-note { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.header-note i, .live-dot i { width: 7px; height: 7px; border-radius: 50%; background: #50b980; display: inline-block; }
.hero { min-height: 245px; display: flex; align-items: center; justify-content: space-between; padding: 56px 5.5% 30px; }
.eyebrow { color: var(--primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .15em; margin: 0 0 12px; }
h1 { font-size: clamp(40px, 5.1vw, 65px); line-height: 1.02; letter-spacing: -3.8px; margin: 0; font-weight: 800; }
h1 em { font-family: 'Playfair Display', Georgia, serif; color: #7467dc; font-weight: 600; letter-spacing: -3px; }
.hero-copy { max-width: 520px; line-height: 1.7; color: var(--muted); font-size: 14px; margin: 19px 0 0; }
.hero-doodle { width: 185px; height: 125px; position: relative; color: #8579e5; font-family: 'Playfair Display'; font-size: 62px; transform: rotate(-8deg); }
.hero-doodle span { position: absolute; }.hero-doodle span:nth-child(1) { font-size: 44px; top: 4px; left: 20px; }.hero-doodle span:nth-child(2) { right: 25px; top: 20px; }.hero-doodle span:nth-child(3) { font-size: 38px; bottom: 3px; left: 80px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(330px, .75fr); gap: 20px; align-items: stretch; }
.editor-card, .preview-card { background: rgba(255,255,255,.78); border: 1px solid rgba(215, 212, 224, .9); border-radius: 24px; box-shadow: 0 15px 45px rgba(50, 47, 79, .05); }
.editor-card { padding: 28px; }.preview-card { padding: 24px; display: flex; flex-direction: column; }
.section-label { display: flex; align-items: center; gap: 10px; font-size: 13px; }.section-label span { color: #a19bb3; font: 500 11px 'DM Mono', monospace; }.section-label b { font-size: 13px; }.settings-title { padding-top: 25px; margin-top: 23px; border-top: 1px solid var(--line); }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-top: 16px; }
.type-button { border: 1px solid var(--line); border-radius: 13px; background: #fff; padding: 12px 8px; color: #656a80; font-size: 12px; font-weight: 700; transition: .18s ease; }
.type-button span { display: block; color: #81869c; font-size: 18px; height: 23px; }.type-button:hover { border-color: #c9c3ed; transform: translateY(-1px); }.type-button.active { color: var(--primary); border-color: #a69bf3; background: #f3f0ff; box-shadow: inset 0 0 0 1px #cbc4ff; }.type-button.active span { color: var(--primary); }
.fields { margin-top: 19px; }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; align-items: start; }.field-row.one { grid-template-columns: 1fr; }.field-row > .field-wrap:last-child:nth-child(odd) { grid-column: 1 / -1; }.field-wrap { display: block; min-width: 0; }.wide-field { grid-column: 1 / -1; }
.input-label { display: block; color: #63687d; font-size: 11px; font-weight: 700; margin-bottom: 6px; }.text-input { appearance: none; width: 100%; outline: none; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 11px 12px; color: var(--ink); font-size: 13px; transition: border .2s, box-shadow .2s; }.text-input:focus { border-color: #8e82e6; box-shadow: 0 0 0 3px #e9e6ff; }.text-input::placeholder { color: #b0b2bf; }.text-input.invalid { border-color: #d56875; background: #fffafb; }.text-input.invalid:focus { box-shadow: 0 0 0 3px rgba(213, 104, 117, .13); }.expanding-textarea { display: block; min-height: 86px; max-height: 320px; resize: none; line-height: 1.55; overflow: hidden; }.field-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; min-height: 12px; }.field-error { color: #c15362; font-size: 9px; line-height: 1.35; }.field-counter { margin-left: auto; color: #a1a3b1; font: 9px 'DM Mono', monospace; white-space: nowrap; }
.form-message, .appearance-message { display: none; margin-top: 10px; border-radius: 9px; padding: 9px 11px; font-size: 10px; line-height: 1.45; }.form-message.visible, .appearance-message.visible { display: block; }.form-message, .appearance-message.error { color: #a74150; background: #fff1f3; border: 1px solid #f3cbd1; }.appearance-message.warning { color: #8b651d; background: #fff8e8; border: 1px solid #f0dfb8; }
.payload-row { margin-top: 13px; padding: 9px 11px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 9px; align-items: center; border-radius: 9px; background: #f5f4f8; color: #8a8d9d; font-size: 10px; }.payload-row code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: 'DM Mono'; color: #65687b; }.payload-row button { border: 0; background: transparent; color: #6f67c8; font-size: 18px; padding: 0 2px; }
.settings-grid { margin-top: 17px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }.control-label, .toggle-label { color: #73778b; font-size: 11px; font-weight: 700; }.control-label > span { float: right; font: 10px 'DM Mono'; color: #9a9dae; }.control-label input[type=color] { display: block; margin-top: 7px; width: 100%; height: 34px; padding: 3px; background: #fff; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }.control-label.disabled-control { opacity: .5; }.control-label.disabled-control input { cursor: not-allowed; }.size-control { grid-column: span 2; }.size-control input[type=range] { width: 100%; display: block; margin: 12px 0 0; accent-color: #7769df; }.toggle-label { display: flex; align-items: center; gap: 9px; cursor: pointer; }.toggle-label input { position: absolute; opacity: 0; }.switch { width: 31px; height: 18px; border-radius: 20px; background: #d9d9e2; position: relative; transition: .2s; }.switch::after { content: ''; position: absolute; width: 12px; height: 12px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #999; transition: .2s; }.toggle-label input:checked + .switch { background: #7568da; }.toggle-label input:checked + .switch::after { transform: translateX(13px); }.toggle-label input:focus-visible + .switch { outline: 3px solid rgba(98, 84, 220, .3); outline-offset: 2px; }
.preview-head { display: flex; justify-content: space-between; align-items: center; color: #73778b; font-size: 11px; font-weight: 800; }.live-dot { display: flex; align-items: center; gap: 5px; font-size: 10px; color: #59a779; font-weight: 700; }.live-dot.waiting { color: #9699a9; }.live-dot.waiting i { background: #b7b9c5; }.live-dot.warning { color: #9b741f; }.live-dot.warning i { background: #d8a83f; }.live-dot.error { color: #bd5361; }.live-dot.error i { background: #d86675; }.qr-stage { flex: 1; min-height: 306px; display: grid; place-items: center; padding: 25px 0 18px; background-image: radial-gradient(#e0dee7 .75px, transparent .75px); background-size: 8px 8px; margin: 17px -3px 0; border-radius: 16px; }.qr-paper { border-radius: 16px; background: white; padding: 15px; box-shadow: 0 18px 25px rgba(57, 54, 85, .16); display: grid; place-items: center; max-width: 100%; }.qr-paper.transparent { background-image: conic-gradient(#eee 25%, #fff 0 50%, #eee 0 75%, #fff 0); background-size: 14px 14px; }.qr-paper canvas { display: block; max-width: 100%; height: auto; image-rendering: pixelated; }.qr-empty-state { width: min(260px, 85%); text-align: center; color: #9699aa; }.qr-empty-state p { margin: 0; font-size: 11px; line-height: 1.55; }.scan-note { min-height: 15px; text-align: center; color: #9496a5; font-size: 10px; margin: 0 0 17px; }.download-row { display: grid; grid-template-columns: 1fr .52fr; gap: 9px; }.download-button { border: 1px solid #d6d3e6; border-radius: 11px; background: #fff; color: #575b70; font-weight: 800; font-size: 12px; padding: 12px 6px; transition: .2s; }.download-button:hover { transform: translateY(-1px); border-color: #9e93e7; }.download-button.primary { color: white; background: var(--ink); border-color: var(--ink); }.download-button span { margin-right: 5px; font-size: 16px; }.download-button.unavailable { opacity: .48; filter: saturate(.55); }.download-button.unavailable:hover { transform: none; }.payload-row button.unavailable { opacity: .42; }
.site-credit { display: flex; justify-content: flex-end; align-items: center; gap: 7px; margin-top: 18px; padding: 0 4px; color: #999cab; font-size: 11px; }.site-credit a { color: #6558cc; text-decoration: none; font-weight: 800; }.site-credit a:hover { text-decoration: underline; }.site-credit a span { font-size: 13px; }
#toast { position: fixed; z-index: 3; bottom: 25px; left: 50%; transform: translate(-50%, 80px); padding: 11px 16px; border-radius: 10px; background: #1d2037; color: white; font-size: 12px; font-weight: 700; opacity: 0; transition: .25s ease; box-shadow: 0 12px 28px rgba(0,0,0,.2); }#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 800px) { .hero { padding: 45px 2% 25px; }.hero-doodle { display: none; }.workspace { grid-template-columns: 1fr; }.preview-card { min-height: 510px; } }
@media (max-width: 500px) { .page-shell { width: min(100% - 24px, 1180px); padding-top: 17px; }.header-note { display: none; }.hero { padding: 44px 4px 25px; }.editor-card, .preview-card { border-radius: 18px; padding: 19px; }.type-grid { gap: 6px; }.type-button { padding: 10px 4px; font-size: 10px; }.type-button span { font-size: 16px; }.field-row { grid-template-columns: 1fr; }.settings-grid { gap: 13px; }.qr-stage { min-height: 270px; } h1 { letter-spacing: -2.5px; } }
