:root {
    color-scheme: light;
    --ink: #14213d;
    --muted: #526173;
    --line: #d9e2ec;
    --paper: #ffffff;
    --soft: #f3f7fb;
    --accent: #0f766e;
    --accent-strong: #115e59;
    --sun: #f59e0b;
    --rose: #be123c;
    --shadow: 0 18px 45px rgba(20, 33, 61, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
}

body {
    margin: 0;
    min-width: 320px;
}

a {
    color: inherit;
}

.site-header,
.site-footer {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.nav,
.site-footer nav,
.hero-actions,
.actions,
.chips {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.12rem;
}

.brand-mark {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav,
.site-footer nav {
    gap: 18px;
    color: var(--muted);
    font-weight: 650;
    font-size: 0.94rem;
}

.nav a,
.site-footer a {
    text-decoration: none;
}

.hero {
    width: min(1280px, calc(100% - 40px));
    min-height: calc(100vh - 80px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 60px;
    align-items: center;
    padding: 24px 0;
}

.hero.compact {
    min-height: 300px;
    display: block;
    padding-bottom: 28px;
}

.hero.compact > div {
    max-width: 820px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.2rem, 5.5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.015em;
}

h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.3rem);
    line-height: 1.08;
    letter-spacing: 0;
}

h3 {
    margin: 10px 0 8px;
    font-size: 1.08rem;
    line-height: 1.2;
}

.hero p {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.65;
}

.hero-actions,
.actions {
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.button,
button {
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: white;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary,
button.secondary {
    background: var(--soft);
    color: var(--ink);
    border: 1px solid var(--line);
}

.hero-visual,
.home-generator {
    min-height: auto;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.16), rgba(245, 158, 11, 0.18)),
        var(--soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.home-generator {
    place-items: stretch;
    padding: 24px;
    background: white;
}

.home-generator .qr-form {
    align-content: start;
}

.home-generator-copy {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.home-generator-layout {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 20px;
    align-items: start;
    margin-top: 12px;
}

.home-generator .qr-preview-wrap {
    min-height: 180px;
}

.home-generator .actions {
    margin-top: 0;
}

.compact-customize {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.text-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--accent-strong);
    font-weight: 800;
}

.qr-art {
    width: min(320px, 76vw);
    aspect-ratio: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    padding: 22px;
    background: white;
    border-radius: 8px;
}

.qr-art span {
    border-radius: 6px;
    background: var(--ink);
}

.qr-art span:nth-child(4n),
.qr-art span:nth-child(7),
.qr-art span:nth-child(10) {
    background: var(--accent);
}

.qr-art span:nth-child(5),
.qr-art span:nth-child(14) {
    background: var(--sun);
}

.tool-grid-section,
.content-band,
.tool-shell {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.tool-grid-section {
    padding: 56px 0;
}

.section-head {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-head p,
.copy p,
.copy li,
.faq p,
.tool-card p,
.note,
.qr-payload,
.form-status,
.site-footer p,
.site-footer small {
    color: var(--muted);
    line-height: 1.65;
}

.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.tool-card {
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    background: white;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tool-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: var(--shadow);
}

.tool-card span {
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.tool-shell {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    gap: 32px;
    align-items: start;
    padding-bottom: 56px;
}

.panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    box-shadow: 0 12px 30px rgba(20, 33, 61, 0.07);
}

.tool-panel {
    padding: 24px;
}

.result-panel {
    position: sticky;
    top: 18px;
    padding: 24px;
}

.panel-heading {
    margin-bottom: 22px;
}

.qr-form {
    display: grid;
    gap: 18px;
}

label {
    display: grid;
    gap: 8px;
    color: var(--ink);
    font-weight: 750;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px 13px;
    color: var(--ink);
    background: #fff;
    font: inherit;
}

textarea {
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
    outline: 3px solid rgba(15, 118, 110, 0.18);
    border-color: var(--accent);
}

.grid.two,
.customize {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.customize {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding: 20px;
    background: var(--soft);
    border-radius: 12px;
}

.check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check input {
    width: auto;
}

.qr-preview-wrap {
    display: grid;
    place-items: center;
    min-height: 320px;
    background:
        linear-gradient(45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(-45deg, #f8fafc 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #f8fafc 75%),
        linear-gradient(-45deg, transparent 75%, #f8fafc 75%);
    background-size: 22px 22px;
    background-position: 0 0, 0 11px, 11px -11px, -11px 0;
    border: 1px dashed #c9d5e3;
    border-radius: 8px;
}

.qr-preview {
    display: grid;
    place-items: center;
}

.qr-preview canvas,
.qr-preview img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
}

.qr-preview .bulk-sheet {
    width: 100%;
    max-width: 680px;
    border: 1px solid var(--line);
    background: white;
}

.content-band {
    padding: 56px 0;
    border-top: 1px solid var(--line);
}

.content-band.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
}

.copy {
    max-width: 850px;
}

.copy h2,
.faq h2 {
    margin-top: 28px;
}

.copy h2:first-child,
.faq h2:first-child {
    margin-top: 0;
}

.chips {
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 14px;
}

.chips span {
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--soft);
    font-weight: 700;
}

.guide-list,
.stacked-links {
    display: grid;
    gap: 12px;
}

.guide-row,
.stacked-links a {
    display: block;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    background: white;
}

.guide-row:hover,
.stacked-links a:hover {
    border-color: rgba(15, 118, 110, 0.45);
    box-shadow: 0 10px 24px rgba(20, 33, 61, 0.08);
}

.guide-row span {
    color: var(--accent-strong);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.guide-row strong {
    display: block;
    margin-top: 6px;
    font-size: 1.06rem;
}

.guide-row p {
    margin: 6px 0 0;
}

.article-copy a,
.copy a {
    color: var(--accent-strong);
    font-weight: 800;
}

details {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

summary {
    cursor: pointer;
    font-weight: 800;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    padding: 36px 0;
    border-top: 1px solid var(--line);
}

.site-footer small {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .nav {
        flex-wrap: wrap;
    }

    .hero,
    .tool-shell,
    .content-band.split {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        gap: 28px;
    }

    .hero-visual,
    .home-generator {
        min-height: 320px;
    }

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

    .result-panel {
        position: static;
    }

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

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

@media (max-width: 620px) {
    .tool-grid,
    .grid.two,
    .customize,
    .site-footer {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: clamp(2.15rem, 13vw, 3.2rem);
    }

    .compact-customize {
        grid-template-columns: 1fr;
    }

    .site-footer nav {
        align-items: flex-start;
        flex-direction: column;
    }
}
