:root {
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-soft: #f7f7f7;

    --text: #111111;
    --muted: #6f6f6f;
    --soft: #9a9a9a;

    --border: #e3e3e3;
    --border-dark: #cfcfcf;

    --black: #111111;
    --red: #e11d2e;
    --red-soft: #fff1f2;

    --radius: 14px;
}


/* RESET */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.5;

    -webkit-font-smoothing: antialiased;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


/* HEADER */

.site-header {
    width: 100%;

    background: #ffffff;

    border-bottom:
        1px solid var(--border);
}


.header-inner {
    max-width: 1180px;

    height: 70px;

    margin: 0 auto;

    padding: 0 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.brand {
    display: flex;

    align-items: center;

    gap: 11px;

    text-decoration: none;

    color: var(--black);

    font-size: 19px;

    font-weight: 800;

    letter-spacing: -.03em;
}


.brand-icon {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--black);

    color: white;

    font-size: 19px;

    transition:
        background .18s ease,
        transform .18s ease;
}


.brand:hover .brand-icon {
    background: var(--red);

    transform: rotate(-3deg);
}


.header-note {
    color: var(--muted);

    font-size: 12px;
}


/* MAIN */

.page {
    max-width: 1180px;

    margin: 0 auto;

    padding:
        50px 24px
        80px;
}


/* PAGE HEADING */

.page-heading {
    margin-bottom: 36px;

    text-align: center;
}


.heading-badge {
    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 13px;

    padding:
        6px 11px;

    border:
        1px solid var(--border);

    border-radius: 999px;

    background: white;

    color: var(--black);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .1em;
}


.page-heading h1 {
    margin: 0;

    color: var(--black);

    font-size:
        clamp(
            34px,
            5vw,
            50px
        );

    line-height: 1.08;

    letter-spacing: -.045em;
}


.page-heading p {
    max-width: 520px;

    margin:
        12px auto 0;

    color: var(--muted);

    font-size: 14px;
}


/* MAIN GENERATOR GRID */

.generator-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        390px;

    gap: 24px;

    align-items: start;
}


/* CARDS */

.editor-card,
.preview-card {
    background: white;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow:
        0 4px 20px
        rgba(0,0,0,.035);
}


.editor-card {
    padding: 28px;
}


.preview-card {
    padding: 24px;

    position: sticky;

    top: 20px;
}


/* CARD HEADERS */

.card-header,
.preview-header,
.section-top,
.preview-top {
    margin-bottom: 22px;
}


.step,
.eyebrow {
    display: block;

    margin-bottom: 6px;

    color: var(--muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .13em;

    text-transform: uppercase;
}


h2 {
    margin: 0;

    color: var(--black);

    font-size: 18px;

    line-height: 1.35;

    letter-spacing: -.02em;
}


/* QR TYPE BUTTONS */

.type-list,
.type-tabs,
.qr-types {
    display: grid;

    grid-template-columns:
        repeat(7, 1fr);

    gap: 8px;

    margin-bottom: 28px;
}


.type {
    min-width: 0;

    border:
        1px solid var(--border);

    background: white;

    color: var(--muted);

    border-radius: 10px;

    padding:
        11px 7px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 5px;

    font-size: 11px;

    font-weight: 700;

    transition:
        color .16s ease,
        background .16s ease,
        border-color .16s ease,
        transform .16s ease;
}


.type span {
    color: var(--soft);

    font-size: 15px;

    transition:
        color .16s ease;
}


.type:hover {
    border-color: var(--red);

    color: var(--red);

    background: var(--red-soft);

    transform:
        translateY(-1px);
}


.type:hover span {
    color: var(--red);
}


.type.active {
    border-color: var(--black);

    background: var(--black);

    color: white;
}


.type.active span {
    color: white;
}


.type.active:hover {
    border-color: var(--red);

    background: var(--red);

    color: white;
}


/* FORM SECTIONS */

.form-section {
    margin-top: 24px;

    padding-top: 24px;

    border-top:
        1px solid var(--border);
}


.form-section h2 {
    margin-bottom: 18px;
}


/* FIELDS */

.field {
    display: flex;

    flex-direction: column;

    gap: 7px;

    margin-bottom: 14px;

    color: var(--black);

    font-size: 12px;

    font-weight: 600;
}


.field-row {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 12px;
}


.field input[type="text"],
.field input[type="url"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field textarea,
.field select {
    width: 100%;

    padding:
        12px 13px;

    border:
        1px solid var(--border-dark);

    border-radius: 9px;

    background: white;

    color: var(--black);

    outline: none;

    transition:
        border-color .16s ease,
        box-shadow .16s ease;
}


.field textarea {
    min-height: 105px;

    resize: vertical;
}


.field input::placeholder,
.field textarea::placeholder {
    color: #a7a7a7;
}


.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--black);

    box-shadow:
        0 0 0 3px
        rgba(0,0,0,.05);
}


.field input:hover,
.field textarea:hover,
.field select:hover {
    border-color: var(--red);
}


/* SETTINGS */

.settings-grid,
.customize-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;
}


.setting,
.setting-group {
    min-width: 0;
}


.setting label,
.setting-label {
    display: block;

    margin-bottom: 6px;

    color: var(--black);

    font-size: 11px;

    font-weight: 600;
}


/* COLOR PICKERS */

.color-field,
.color-control {
    display: grid;

    grid-template-columns:
        45px 1fr;

    gap: 8px;
}


.color-field input[type="color"],
.color-control input[type="color"] {
    width: 45px;

    height: 43px;

    padding: 4px;

    border:
        1px solid var(--border-dark);

    border-radius: 9px;

    background: white;

    cursor: pointer;
}


.color-field input[type="color"]:hover,
.color-control input[type="color"]:hover {
    border-color: var(--red);
}


.color-field input[type="text"],
.color-control input[type="text"],
.setting select,
.setting-group select {
    width: 100%;

    height: 43px;

    padding:
        0 11px;

    border:
        1px solid var(--border-dark);

    border-radius: 9px;

    background: white;

    color: var(--black);

    outline: none;

    transition:
        border-color .16s ease;
}


.color-field input[type="text"]:hover,
.color-control input[type="text"]:hover,
.setting select:hover,
.setting-group select:hover {
    border-color: var(--red);
}


/* GENERATE */

.generate-button,
.primary {
    width: 100%;

    margin-top: 24px;

    padding:
        13px 18px;

    border: 0;

    border-radius: 9px;

    background: var(--black);

    color: white;

    font-size: 13px;

    font-weight: 800;

    transition:
        background .16s ease,
        transform .16s ease,
        box-shadow .16s ease;
}


.generate-button:hover,
.primary:hover {
    background: var(--red);

    transform:
        translateY(-1px);

    box-shadow:
        0 8px 22px
        rgba(225,29,46,.18);
}


/* ERROR */

.error,
.error-message {
    margin:
        12px 0 0;

    padding:
        10px 12px;

    border:
        1px solid #fecaca;

    border-radius: 8px;

    background: #fff5f5;

    color: #b91c1c;

    font-size: 11px;
}


/* PREVIEW */

.qr-preview,
.qr-preview-wrap {
    padding: 14px;

    border:
        1px solid var(--border);

    border-radius: 12px;

    background: var(--surface-soft);
}


.qr-mount {
    min-height: 310px;

    display: grid;

    place-items: center;

    background: white;

    border-radius: 8px;

    overflow: hidden;
}


.qr-mount img,
.qr-mount canvas {
    max-width: 280px !important;

    width: 100% !important;

    height: auto !important;
}


/* EMPTY PREVIEW */

.preview-empty,
.empty-preview {
    max-width: 210px;

    padding: 25px;

    text-align: center;

    color: var(--muted);
}


.placeholder-qr {
    width: 62px;

    height: 62px;

    margin:
        0 auto 15px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    background: #f3f3f3;

    color: var(--black);

    font-size: 29px;
}


.preview-empty strong,
.empty-preview strong {
    display: block;

    margin-bottom: 5px;

    color: var(--black);

    font-size: 12px;
}


.preview-empty p,
.empty-preview p {
    margin: 0;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.5;
}


/* PREVIEW STATUS */

.preview-status,
.preview-information,
.preview-meta {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;

    padding:
        16px 2px;
}


.preview-status > div,
.preview-information > div {
    display: flex;

    flex-direction: column;

    gap: 2px;
}


.preview-status span,
.preview-information span,
.info-label {
    color: var(--soft);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;

    font-weight: 700;
}


.preview-status strong,
.preview-information strong {
    color: #444;

    font-size: 11px;
}


/* DOWNLOAD BUTTONS */

.download-actions,
.download-grid {
    display: grid;

    grid-template-columns:
        1fr 110px;

    gap: 8px;

    margin-top: 5px;
}


.download-button,
.download-primary,
.download-secondary,
.secondary {
    min-height: 44px;

    border:
        1px solid var(--black);

    border-radius: 9px;

    background: white;

    color: var(--black);

    font-size: 12px;

    font-weight: 700;

    transition:
        color .16s ease,
        background .16s ease,
        border-color .16s ease,
        transform .16s ease;
}


.download-button:hover:not(:disabled),
.download-primary:hover:not(:disabled),
.download-secondary:hover:not(:disabled),
.secondary:hover:not(:disabled) {
    border-color: var(--red);

    background: var(--red);

    color: white;

    transform:
        translateY(-1px);
}


/* COPY BUTTON */

.copy-button,
.ghost {
    width: 100%;

    margin-top: 8px;

    padding: 10px;

    border:
        1px solid transparent;

    border-radius: 8px;

    background: transparent;

    color: var(--muted);

    font-size: 11px;

    transition:
        color .16s ease,
        background .16s ease;
}


.copy-button:hover:not(:disabled),
.ghost:hover:not(:disabled) {
    background: var(--red-soft);

    color: var(--red);
}


/* PRIVACY BOX */

.privacy-box,
.privacy-note {
    margin-top: 15px;

    padding: 13px;

    display: flex;

    gap: 10px;

    border:
        1px solid var(--border);

    border-radius: 10px;

    background: #fafafa;
}


.privacy-icon,
.privacy-note-icon {
    width: 26px;

    height: 26px;

    flex:
        0 0 26px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: var(--black);

    color: white;

    font-size: 10px;

    font-weight: 800;

    transition:
        background .16s ease;
}


.privacy-box:hover .privacy-icon,
.privacy-note:hover .privacy-note-icon {
    background: var(--red);
}


.privacy-box strong,
.privacy-note strong {
    display: block;

    color: var(--black);

    font-size: 11px;
}


.privacy-box p,
.privacy-note p {
    margin:
        3px 0 0;

    color: var(--muted);

    font-size: 10px;

    line-height: 1.45;
}


/* FEATURES */

.features {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    border:
        1px solid var(--border);

    border-radius: 12px;

    background: white;

    overflow: hidden;
}


.features > div,
.features article {
    padding: 18px;

    border-right:
        1px solid var(--border);

    text-align: center;

    transition:
        background .16s ease,
        color .16s ease;
}


.features > div:last-child,
.features article:last-child {
    border-right: 0;
}


.features > div:hover,
.features article:hover {
    background: var(--red-soft);
}


.features strong,
.features h3 {
    display: block;

    margin:
        0 0 4px;

    color: var(--black);

    font-size: 12px;
}


.features > div:hover strong,
.features article:hover h3 {
    color: var(--red);
}


.features span,
.features p {
    margin: 0;

    color: var(--muted);

    font-size: 10px;
}


/* FOOTER */

footer {
    background: white;

    border-top:
        1px solid var(--border);
}


.footer-inner {
    max-width: 1180px;

    min-height: 72px;

    margin: 0 auto;

    padding:
        0 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    color: var(--muted);

    font-size: 11px;
}


.footer-inner strong,
.footer-logo {
    color: var(--black);

    font-weight: 800;

    text-decoration: none;
}


.footer-logo:hover {
    color: var(--red);
}


/* DISABLED */

button:disabled {
    opacity: .35;

    cursor: not-allowed;

    transform: none !important;
}


/* TABLET */

@media(max-width: 940px) {

    .generator-layout {
        grid-template-columns: 1fr;
    }


    .preview-card {
        position: static;
    }


    .type-list,
    .type-tabs,
    .qr-types {
        grid-template-columns:
            repeat(4, 1fr);
    }


    .features {
        grid-template-columns:
            1fr 1fr;
    }


    .features > div,
    .features article {
        border-bottom:
            1px solid var(--border);
    }

}


/* MOBILE */

@media(max-width: 580px) {

    .header-inner {
        padding:
            0 14px;
    }


    .header-note {
        display: none;
    }


    .page {
        padding:
            36px 14px
            60px;
    }


    .page-heading {
        margin-bottom: 28px;
    }


    .page-heading h1 {
        font-size: 34px;
    }


    .editor-card,
    .preview-card {
        padding: 18px;

        border-radius: 12px;
    }


    .type-list,
    .type-tabs,
    .qr-types {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .field-row,
    .settings-grid,
    .customize-grid {
        grid-template-columns:
            1fr;
    }


    .qr-mount {
        min-height: 270px;
    }


    .download-actions,
    .download-grid {
        grid-template-columns: 1fr;
    }


    .features {
        grid-template-columns: 1fr;
    }


    .features > div,
    .features article {
        border-right: 0;

        border-bottom:
            1px solid var(--border);
    }


    .features > div:last-child,
    .features article:last-child {
        border-bottom: 0;
    }

}


/* =========================================
   SEO CONTENT SECTIONS
========================================= */

.seo-content {
    margin-top: 90px;
}


.seo-section {
    padding:
        105px 0;

    border-top:
        1px solid var(--border);
}


.seo-alt {
    position: relative;
}


.seo-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, .85fr);

    gap: 80px;

    align-items: center;
}


.seo-grid.visual-first {
    grid-template-columns:
        minmax(320px, .85fr)
        minmax(0, 1.15fr);
}


.seo-label {
    display: block;

    margin-bottom: 13px;

    color: var(--red);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .15em;
}


.seo-copy h2,
.seo-heading-center h2 {
    margin:
        0 0 24px;

    max-width: 720px;

    font-size:
        clamp(
            30px,
            4vw,
            45px
        );

    line-height: 1.08;

    letter-spacing: -.045em;

    color: #111;
}


.seo-copy h3 {
    margin:
        30px 0 8px;

    font-size: 18px;

    letter-spacing: -.02em;
}


.seo-copy p,
.seo-long-copy p {
    margin:
        0 0 18px;

    color: #555;

    font-size: 15px;

    line-height: 1.82;
}


.seo-copy .seo-lead {
    color: #222;

    font-size: 18px;

    line-height: 1.7;
}


.seo-heading-center {
    max-width: 760px;

    margin:
        0 auto 55px;

    text-align: center;
}


.seo-heading-center h2 {
    margin-left: auto;

    margin-right: auto;
}


.seo-heading-center p {
    color: #666;

    font-size: 16px;

    line-height: 1.7;
}


/* VISUAL CONTAINERS */

.seo-visual {
    position: sticky;

    top: 110px;
}


.visual-card,
.steps-visual,
.privacy-visual {
    width: 100%;

    max-width: 430px;

    margin: auto;

    padding: 34px;

    border:
        1px solid #dedede;

    border-radius: 22px;

    background: #fff;

    box-shadow:
        0 24px 70px
        rgba(0,0,0,.07);
}


/* ABOUT VISUAL */

.visual-top {
    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 36px;

    color: #111;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: .12em;
}


.visual-dot {
    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: var(--red);
}


.visual-qr {
    width: 190px;

    height: 190px;

    margin:
        0 auto 38px;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 9px;

    padding: 13px;

    border:
        9px solid #111;

    background: white;
}


.visual-qr span {
    background: #111;
}


.visual-qr span:nth-child(2),
.visual-qr span:nth-child(4),
.visual-qr span:nth-child(8) {
    background: white;

    border:
        5px solid #111;
}


.visual-line {
    height: 9px;

    margin-top: 10px;

    border-radius: 999px;

    background: #e6e6e6;
}


.visual-line.long {
    width: 85%;
}


.visual-line.medium {
    width: 58%;
}


.visual-button {
    margin-top: 28px;

    padding: 13px;

    border-radius: 9px;

    background: #111;

    color: white;

    text-align: center;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .12em;

    transition: .2s;
}


.visual-card:hover .visual-button {
    background: var(--red);
}


/* HOW-TO VISUAL */

.steps-visual {
    padding:
        40px 32px;
}


.visual-step {
    padding:
        18px;

    display: flex;

    align-items: center;

    gap: 15px;

    border:
        1px solid #e4e4e4;

    border-radius: 13px;

    background: #fff;
}


.visual-step.final {
    background: #111;

    color: white;
}


.visual-number {
    width: 38px;

    height: 38px;

    flex:
        0 0 38px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background: #111;

    color: white;

    font-size: 12px;

    font-weight: 900;
}


.visual-step.final .visual-number {
    background: var(--red);
}


.visual-step strong {
    display: block;

    font-size: 13px;
}


.visual-step small {
    display: block;

    margin-top: 2px;

    color: #888;

    font-size: 10px;
}


.visual-step.final small {
    color: #bbb;
}


.visual-arrow {
    padding: 8px;

    text-align: center;

    color: #bbb;

    font-size: 15px;
}


/* FEATURE CARDS */

.feature-visual-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 16px;
}


.feature-detail {
    min-height: 310px;

    padding: 27px;

    border:
        1px solid #e2e2e2;

    border-radius: 16px;

    background: white;

    transition:
        .2s ease;
}


.feature-detail:hover {
    border-color: var(--red);

    transform:
        translateY(-3px);

    box-shadow:
        0 14px 35px
        rgba(225,29,46,.07);
}


.feature-icon {
    width: 43px;

    height: 43px;

    margin-bottom: 21px;

    display: grid;

    place-items: center;

    border-radius: 10px;

    background: #111;

    color: white;

    font-size: 16px;

    font-weight: 800;

    transition: .2s;
}


.feature-detail:hover .feature-icon {
    background: var(--red);
}


.feature-detail h3 {
    margin:
        0 0 12px;

    font-size: 17px;

    letter-spacing: -.02em;
}


.feature-detail p {
    margin: 0;

    color: #666;

    font-size: 13px;

    line-height: 1.75;
}


.seo-long-copy {
    max-width: 850px;

    margin:
        55px auto 0;
}


/* PRIVACY VISUAL */

.privacy-visual {
    padding: 45px;

    text-align: center;
}


.shield {
    width: 78px;

    height: 78px;

    margin:
        0 auto 20px;

    display: grid;

    place-items: center;

    border-radius:
        22px 22px 30px 30px;

    background: #111;

    color: white;

    font-size: 26px;

    font-weight: 900;

    transition: .2s;
}


.privacy-visual:hover .shield {
    background: var(--red);
}


.privacy-visual > strong {
    display: block;

    font-size: 19px;

    letter-spacing: -.025em;
}


.privacy-visual > p {
    color: #888;

    font-size: 12px;
}


.privacy-visual > p span {
    padding:
        0 6px;

    color: var(--red);
}


.privacy-route {
    margin-top: 35px;

    display: flex;

    align-items: center;

    justify-content: center;
}


.route-box {
    padding:
        12px 14px;

    border:
        1px solid #ddd;

    border-radius: 9px;

    background: white;

    color: #111;

    font-size: 10px;

    font-weight: 800;
}


.route-box.black {
    border-color: #111;

    background: #111;

    color: white;
}


.route-line {
    width: 40px;

    height: 1px;

    background: #ccc;
}


.no-server {
    margin-top: 34px;

    padding-top: 18px;

    border-top:
        1px solid #eee;

    color: var(--red);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .12em;
}


/* USE CASES */

.usecase-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 15px;
}


.usecase {
    padding: 27px;

    border-top:
        3px solid #111;

    background: #fafafa;

    transition:
        .2s;
}


.usecase:hover {
    border-color: var(--red);

    background: #fff6f6;

    transform:
        translateY(-2px);
}


.usecase > span {
    display: block;

    margin-bottom: 30px;

    color: #aaa;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .12em;
}


.usecase:hover > span {
    color: var(--red);
}


.usecase h3 {
    margin:
        0 0 11px;

    font-size: 16px;

    letter-spacing: -.02em;
}


.usecase p {
    margin: 0;

    color: #666;

    font-size: 12px;

    line-height: 1.7;
}


/* RESPONSIVE */

@media(max-width: 900px) {

    .seo-grid,
    .seo-grid.visual-first {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .seo-grid.visual-first .seo-visual {
        order: 2;
    }


    .seo-visual {
        position: static;
    }


    .feature-visual-grid,
    .usecase-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media(max-width: 600px) {

    .seo-content {
        margin-top: 55px;
    }


    .seo-section {
        padding:
            70px 0;
    }


    .seo-copy h2,
    .seo-heading-center h2 {
        font-size: 31px;
    }


    .seo-copy .seo-lead {
        font-size: 16px;
    }


    .seo-copy p,
    .seo-long-copy p {
        font-size: 14px;

        line-height: 1.75;
    }


    .feature-visual-grid,
    .usecase-grid {
        grid-template-columns: 1fr;
    }


    .feature-detail {
        min-height: auto;
    }


    .visual-card,
    .steps-visual,
    .privacy-visual {
        padding: 25px;
    }


    .visual-qr {
        width: 150px;

        height: 150px;
    }

}


/* =========================================
   MAIN NAVIGATION
========================================= */

.site-header {
    position: sticky;

    top: 0;

    z-index: 1000;

    background:
        rgba(255,255,255,.96);

    backdrop-filter:
        blur(12px);

    border-bottom:
        1px solid var(--border);
}


.header-inner {
    position: relative;

    max-width: 1180px;

    height: 72px;

    margin: 0 auto;

    padding:
        0 24px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


/* NAV */

.main-nav {
    display: flex;

    align-items: center;

    justify-content: flex-end;

    gap: 5px;

    margin-left: auto;
}


.main-nav a {
    position: relative;

    padding:
        9px 12px;

    color: #555;

    text-decoration: none;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;

    transition:
        color .16s ease,
        background .16s ease;
}


.main-nav a:hover {
    color: var(--red);

    background:
        var(--red-soft);
}


.main-nav a.active {
    color: var(--red);
}


/* RED UNDERLINE */

.main-nav a::after {
    content: "";

    position: absolute;

    left: 12px;

    right: 12px;

    bottom: 4px;

    height: 2px;

    background: var(--red);

    transform:
        scaleX(0);

    transform-origin:
        center;

    transition:
        transform .18s ease;
}


.main-nav a:hover::after,
.main-nav a.active::after {
    transform:
        scaleX(1);
}


/* MOBILE BUTTON */

.menu-toggle {
    display: none;

    width: 40px;

    height: 40px;

    padding: 9px;

    border:
        1px solid var(--border);

    background: white;

    border-radius: 9px;
}


.menu-toggle span {
    display: block;

    width: 100%;

    height: 2px;

    margin: 4px 0;

    background: #111;

    transition:
        transform .2s ease,
        opacity .2s ease,
        background .2s ease;
}


.menu-toggle:hover span {
    background: var(--red);
}


/* MOBILE NAV */

@media(max-width: 850px) {

    .menu-toggle {
        display: block;
    }


    .main-nav {
        position: absolute;

        top: calc(100% + 1px);

        left: 14px;

        right: 14px;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 3px;

        padding: 10px;

        background: white;

        border:
            1px solid var(--border);

        border-radius: 12px;

        box-shadow:
            0 15px 40px
            rgba(0,0,0,.08);
    }


    .main-nav.open {
        display: flex;
    }


    .main-nav a {
        padding:
            12px 14px;

        font-size: 13px;
    }


    .main-nav a::after {
        display: none;
    }

}


/* GIVE ANCHORS ROOM BELOW STICKY HEADER */

#generator,
#about,
#how-to-use,
#features,
#privacy,
#qr-code-uses {
    scroll-margin-top: 95px;
}

