
:root{--emerald:#00674F;--forest:#0B3D2E;--green:#1F6E52;--ink:#172c24;--muted:#64736a;--line:#dce5de;--pale:#eef5f0}
*{box-sizing:border-box}body{margin:0;background:#fff;color:var(--ink);font-family:Inter,system-ui,Arial,sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}
header{background:var(--forest);color:white;padding:15px 5%;display:flex;justify-content:space-between;align-items:center}.brand{font-weight:850;font-size:1.2rem}.brand b{background:white;color:var(--emerald);padding:7px 10px;border-radius:9px;margin-right:8px}nav a{color:white;text-decoration:none;margin-left:20px;font-size:.9rem}
.hero{text-align:center;padding:48px 20px 25px}.eyebrow{color:var(--emerald);text-transform:uppercase;letter-spacing:.13em;font-size:.75rem;font-weight:800}h1{font-size:clamp(2.2rem,5vw,3.8rem);line-height:1.05;letter-spacing:-.05em;color:var(--forest);margin:14px 0}.hero p{max-width:650px;margin:auto;color:var(--muted);line-height:1.7}
main{max-width:1160px;margin:auto;padding:0 20px}.workspace{display:grid;grid-template-columns:1.1fr .9fr;gap:20px;margin:20px 0 55px;align-items:start}.panel{border:1px solid var(--line);border-radius:18px;overflow:hidden;box-shadow:0 10px 28px #0b3d2e0c;background:white}.head{padding:21px 23px;border-bottom:1px solid #edf1ed}.head h2{margin:0 0 6px;color:var(--forest);font-size:1.15rem}.head p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.5}.body{padding:22px 23px}
.tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:20px}.tab{border:1px solid var(--line);border-radius:30px;background:white;color:#52665b;padding:9px 12px;font-size:.84rem;font-weight:700}.tab.active{background:var(--emerald);color:white;border-color:var(--emerald)}
.field{margin-bottom:17px}label{display:block;font-weight:750;font-size:.87rem;margin-bottom:8px}input[type=text],input[type=password],input[type=url],input[type=email],textarea,select{width:100%;border:1px solid #ccd8d0;border-radius:10px;padding:12px;color:var(--ink);background:#fff}textarea{min-height:90px}.hint{font-size:.8rem;color:var(--muted);margin-top:7px;line-height:1.5}.cols{display:grid;grid-template-columns:1fr 1fr;gap:13px}.color{display:flex;align-items:center;gap:8px;border:1px solid #ccd8d0;border-radius:10px;padding:5px 8px}.color input{width:32px;height:30px;border:0;padding:0;background:none}.btn{border:0;border-radius:10px;padding:12px 15px;font-weight:800}.primary{background:var(--emerald);color:white}.primary:hover{background:var(--forest)}.secondary{background:var(--pale);color:var(--forest)}.actions{display:flex;gap:9px;flex-wrap:wrap}.hidden{display:none!important}
.preview{position:sticky;top:16px}.preview-inner{padding:24px;text-align:center;display:flex;align-items:center;flex-direction:column}.qr-stage{width:min(100%,330px);min-height:320px;border:1px solid #e2e8e3;border-radius:15px;display:grid;place-items:center;padding:18px;background:white}#qr{max-width:100%;overflow:hidden}#qr canvas,#qr svg{max-width:100%;height:auto}.format{display:flex;gap:8px;width:100%;max-width:330px}.format select{flex:1}.status{color:var(--emerald);font-size:.85rem;min-height:20px;margin-top:10px}.logo-preview{max-width:100px;max-height:60px;object-fit:contain;margin-top:8px}
.features{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:0 0 60px}.feature{padding:20px;background:#f5f8f6;border:1px solid #e4ece6;border-radius:15px}.feature h2{font-size:1.17em;color:var(--forest);margin:0 0 7px}.feature p{color:var(--muted);font-size:.88rem;line-height:1.6;margin:0}footer{text-align:center;background:var(--forest);color:white;padding:24px;font-size:.85rem}
@media(max-width:800px){.workspace{grid-template-columns:minmax(0,1fr)}.workspace,.preview{position:static}.features{grid-template-columns:1fr}}@media(max-width:520px){header{padding:13px 16px}main{padding:0 12px}.body,.head{padding-left:16px;padding-right:16px}.qr-stage{min-height:280px}}


/* Shared content pages */
.site-nav{display:flex;align-items:center;gap:18px}.site-nav a{margin-left:0}.content-page{max-width:900px;margin:0 auto;padding:48px 20px 70px}.content-page h1{font-size:clamp(2rem,5vw,3.2rem);margin-bottom:14px}.content-page h2{color:var(--forest);margin-top:34px;font-size:1.35rem}.content-page p,.content-page li{color:var(--muted);line-height:1.75}.content-page a{color:var(--emerald)}.content-page .intro{font-size:1.05rem;max-width:760px}.notice{background:#f5f8f6;border:1px solid #e4ece6;border-radius:14px;padding:18px;margin:24px 0}.faq-item{border-bottom:1px solid var(--line);padding:18px 0}.faq-item h2{margin:0 0 8px;font-size:1.08rem}.footer-links{margin-top:10px}.footer-links a{color:white;text-decoration:none;margin:0 7px}.footer-links a:hover{text-decoration:underline}

/* Keep controls and previews within their existing panels on small screens. */
.workspace > *, .cols > *, .format > *, .qr-stage, #qr{min-width:0}
input,textarea,select{max-width:100%}
input[type=file]{width:100%;min-width:0}
.color{min-width:0;flex-wrap:wrap}
.color span,.status,.hint,.content-page{overflow-wrap:anywhere}
.format select{width:auto;min-width:0}
#qr.outdated{opacity:.35}
#preview-validity:empty{display:none}
.btn:disabled{opacity:.6;cursor:not-allowed}
.tab:focus-visible,.btn:focus-visible{outline:2px solid var(--emerald);outline-offset:3px}
@media(max-width:520px){.preview-inner{padding:16px}.format{flex-wrap:wrap}.site-nav{flex-wrap:wrap}header{gap:12px;flex-wrap:wrap}.cols{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}

/* Beginner guidance uses the same typography and colors as the content pages. */
.qr-guide{max-width:900px;margin:0 auto;padding-bottom:60px;overflow-wrap:anywhere}
.qr-guide section{margin:0 0 30px}
.qr-guide h2{color:var(--forest);font-size:1.35rem;margin:0 0 12px}
.qr-guide p,.qr-guide li,.qr-guide dd{color:var(--muted);line-height:1.75}
.qr-guide a{color:var(--emerald)}
.qr-guide li{margin-bottom:6px}
.qr-guide dt{font-weight:750;margin-top:14px}
.qr-guide dd{margin:6px 0 0}
.site-nav a:focus-visible,.footer-links a:focus-visible{outline:2px solid white;outline-offset:4px}
.site-nav a[aria-current=page]{text-decoration:underline;text-underline-offset:4px}
.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:10px 14px}
.footer-links a{margin:0}
@media(max-width:520px){.site-nav{gap:12px}.site-nav a{font-size:.85rem}.qr-guide h2{font-size:1.2rem}}