:root {
    --bg: #f7f6f2;
    --alt: #e8eddf;
    --primary: #466952;
    --hover: #34543f;
    --heading: #203126;
    --text: #59695e;
    --border: #c9d2c4;
    --white: #fff;
    --heading-font: Georgia, 'Times New Roman', serif;
    --body-font: system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 24px;
    --width: 1200px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 95px
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.65 var(--body-font)
}

a {
    color: inherit
}

img {
    display: block;
    width: 100%;
    height: auto
}

button,
input,
textarea {
    font: inherit
}

button,
a,
input,
textarea,
summary {
    -webkit-tap-highlight-color: transparent
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #72977c;
    outline-offset: 3px
}

.container {
    width: min(var(--width), calc(100% - 64px));
    margin: auto
}

.header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 246, 242, .96);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px)
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font: 26px/1.1 var(--heading-font);
    color: var(--primary);
    text-decoration: none
}

.brand small {
    display: block;
    font: 600 10px/1.5 var(--body-font);
    letter-spacing: .18em;
    margin-top: 6px;
    color: var(--heading)
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--heading);
    color: var(--heading);
    font: bold 20px Georgia;
    position: relative;
    isolation: isolate
}

.brand-mark:before {
    content: '';
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--bg);
    z-index: -1
}

nav {
    display: flex;
    align-items: center;
    gap: 25px
}

nav>a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600
}

nav>a:hover {
    color: var(--heading)
}

.menu-toggle {
    display: none
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border: 0;
    border-radius: 999px;
    padding: 15px 25px;
    min-height: 52px;
    font-weight: 650;
    cursor: pointer;
    transition: background .2s, transform .2s
}

.button:hover {
    background: var(--hover);
    color: white;
    transform: translateY(-1px)
}

.button.small {
    min-height: 42px;
    padding: 9px 20px
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 4px;
    font-weight: 650;
    text-decoration: none;
    color: var(--heading)
}

.text-link:hover {
    color: var(--primary)
}

.hero {
    background: radial-gradient(ellipse at 75% 30%, #dce6d5, transparent 65%), var(--bg);
    padding: 75px 0
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--primary);
    font-size: 11px;
    letter-spacing: .18em;
    text-transform: uppercase;
    font-weight: 750;
    margin: 0 0 18px
}

.eyebrow:before {
    content: '';
    width: 30px;
    height: 1px;
    background: currentColor;
    flex: none
}

h1,
h2,
h3 {
    color: var(--heading);
    margin: 0 0 15px;
    line-height: 1.13;
    font-family: var(--heading-font);
    font-weight: 600
}

h1 {
    font-size: clamp(44px, 5.4vw, 82px);
    letter-spacing: -.045em
}

h2 {
    font-size: clamp(30px, 3.8vw, 52px);
    letter-spacing: -.035em
}

h3 {
    font-size: 25px
}

.lead {
    font-size: clamp(17px, 1.7vw, 21px);
    margin: 20px 0 22px;
    max-width: 60ch
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    margin: 0 0 22px
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0 0 18px
}

.hero-points li {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #ffffff80;
    color: var(--heading);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25
}

.promise {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin: 0
}

.hero-art {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    box-shadow: 0 20px 60px #20312619
}

.hero-art img {
    aspect-ratio: 800/650;
    object-fit: cover
}

.art-label {
    position: absolute;
    bottom: 18px;
    left: 18px;
    background: var(--bg);
    color: var(--heading);
    border-radius: 999px;
    padding: 8px 17px;
    font-size: 12px;
    font-weight: 600
}

.section {
    padding: 76px 0
}

.section.compact {
    padding-top: 0
}

.intro {
    margin: 0 0 28px
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 30px
}

.game {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg)
}

.game-art img {
    aspect-ratio: 5/3;
    object-fit: cover
}

.game-copy {
    padding: 22px
}

.tag {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 10px;
    font-weight: 750;
    display: block;
    margin-bottom: 10px
}

.game p,
.features-grid p,
.steps p {
    margin: 0;
    font-size: 15px
}

.tinted {
    background: var(--alt)
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px
}

.features-grid article {
    background: var(--bg);
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 20px
}

.features-grid h3,
.steps h3 {
    font-family: var(--body-font);
    font-weight: 650;
    font-size: 18px;
    margin: 12px 0 8px
}

.feature-icon {
    display: grid;
    place-items: center;
    border-radius: 12px;
    width: 44px;
    height: 44px;
    background: var(--alt);
    color: var(--primary);
    font-size: 25px;
    font-weight: 600
}

.investment {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: var(--primary);
    border-radius: 32px;
    padding: 48px;
    color: var(--bg);
    align-items: center
}

.investment h2,
.investment .eyebrow {
    color: var(--bg)
}

.investment p:not(.eyebrow) {
    max-width: 560px;
    margin: 20px 0
}

.inverse {
    background: var(--bg);
    color: var(--primary)
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px
}

.stats div {
    border-left: 1px solid #ffffff50;
    padding-left: 20px
}

.stats strong {
    font: 56px/1.2 var(--heading-font);
    display: block
}

.stats span {
    font-size: 14px
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px
}

.steps article {
    border-top: 1px solid var(--border);
    padding-top: 16px
}

.steps span {
    font: 32px var(--heading-font);
    color: var(--primary)
}

.narrow {
    max-width: 850px
}

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

summary {
    cursor: pointer;
    font-weight: 650;
    color: var(--heading);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 15px
}

summary::-webkit-details-marker {
    display: none
}

summary:after {
    content: '+';
    font-size: 23px;
    line-height: 1
}

details[open] summary:after {
    content: '−'
}

details p {
    margin: 10px 0 0
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 64px;
    align-items: start
}

.quote-form {
    background: var(--alt);
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    display: grid;
    gap: 18px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

label,
legend {
    font-size: 13px;
    font-weight: 650;
    color: var(--heading)
}

input:not([type=checkbox]),
textarea {
    display: block;
    width: 100%;
    border: 1px solid #9faea1;
    border-radius: 12px;
    background: var(--bg);
    padding: 12px;
    margin-top: 7px;
    color: var(--heading);
    min-width: 0
}

textarea {
    resize: vertical
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0
}

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px
}

.checks label,
.consent {
    display: flex;
    align-items: start;
    gap: 8px;
    font-weight: 500
}

input[type=checkbox] {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 2px 0 0
}

.trap {
    position: absolute;
    left: -10000px
}

.quote-form .button {
    width: 100%
}

#form-status {
    margin: 0;
    font-size: 14px
}

#form-status:empty {
    display: none
}

footer {
    background: var(--alt);
    border-top: 1px solid var(--border);
    padding: 30px 0
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px
}

.footer-inner p {
    margin: 0
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 4px
}

.footer-brand small {
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--heading);
    font-weight: 700
}

.footer-inner .brand {
    font-size: 23px
}

.mobile-cta {
    display: none
}

.skip {
    position: absolute;
    left: -9999px
}

.skip:focus {
    left: 10px;
    top: 10px;
    z-index: 30;
    background: white;
    padding: 10px
}

.privacy {
    max-width: 800px;
    padding: 60px 0
}

.privacy h2 {
    font-size: 25px;
    margin-top: 25px
}

@media(max-width:1000px) {
    .hero-grid {
        gap: 35px
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .contact-grid {
        gap: 30px
    }

    nav {
        gap: 15px
    }

    .investment {
        padding: 35px
    }
}

@media(max-width:760px) {
    .container {
        width: calc(100% - 36px)
    }

    .nav {
        min-height: 72px
    }

    .brand {
        font-size: 22px
    }

    .brand-mark {
        width: 34px;
        height: 34px
    }

    .brand-mark:before {
        inset: 7px
    }

    .menu-toggle {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        border: 1px solid var(--border);
        border-radius: 50%;
        background: transparent;
        color: var(--heading);
        font-size: 22px;
        cursor: pointer
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        padding: 18px;
        box-shadow: 0 10px 20px #20312612;
        border-bottom: 1px solid var(--border)
    }

    nav.open {
        display: grid;
        gap: 12px
    }

    nav>a:not(.button) {
        padding: 8px 12px
    }

    .hero {
        padding: 38px 0
    }

    .hero-grid,
    .contact-grid,
    .investment {
        grid-template-columns: 1fr;
        gap: 26px
    }

    .hero-art img {
        aspect-ratio: 4/3
    }

    .section {
        padding: 45px 0
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px
    }

    .features-grid article {
        padding: 17px
    }

    .games-grid {
        gap: 12px
    }

    .game-copy {
        padding: 15px
    }

    .game h3 {
        font-size: 23px
    }

    .game p,
    .features-grid p {
        font-size: 14px
    }

    .investment {
        padding: 28px
    }

    .stats strong {
        font-size: 45px
    }

    .steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px
    }

    .quote-form {
        padding: 20px
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center
    }

    .hero-actions {
        align-items: stretch
    }

    .hero-actions .button,
    .hero-actions .text-link {
        width: 100%;
        justify-content: center
    }

    .hero-points li {
        width: 100%;
        text-align: center
    }

    body {
        padding-bottom: 77px
    }

    .mobile-cta {
        display: flex;
        position: fixed;
        bottom: 12px;
        left: 18px;
        right: 18px;
        z-index: 9;
        box-shadow: 0 4px 20px #20312640
    }

    .mobile-cta.hidden {
        display: none
    }

    .art-label {
        font-size: 11px
    }

    .eyebrow {
        font-size: 10px
    }

    html {
        scroll-padding-top: 82px
    }
}

@media(max-width:380px) {
    .form-grid {
        grid-template-columns: 1fr
    }

    .games-grid,
    .features-grid {
        grid-template-columns: 1fr
    }

    .brand {
        font-size: 19px
    }
}

@media(prefers-reduced-motion:reduce) {
    html {
        scroll-behavior: auto
    }

    *,
    *::before,
    *::after {
        transition: none !important
    }
}

/* v0.1.2 — contact fields */
.phone-field {
    grid-column: 1/-1
}

.other-game-field {
    margin-top: 12px
}

.other-game-field[hidden] {
    display: none
}

/* v0.1.3 - photographic assets */
.hero-art img {
    object-position: center;
    aspect-ratio: 1100/850
}

.game-art img {
    object-position: center
}

.game-art img[src$="foosball.webp"] {
    object-position: center
}

.hero-grid>div {
    min-width: 0
}

.hero h1 {
    font-size: clamp(38px, 4.1vw, 64px);
    line-height: 1.13
}

.hero {
    padding: 64px 0
}

@media(max-width:760px) {
    .hero {
        padding: 38px 0
    }

    .hero h1 {
        font-size: clamp(34px, 7vw, 48px)
    }

    .hero-art img {
        aspect-ratio: 4/3
    }
}

/* v0.1.4 — typography and visual refinement */
:root {
    --heading-font: Lora, Georgia, 'Times New Roman', serif;
    --body-font: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif
}

body {
    font-feature-settings: 'locl' on;
    line-height: 1.65
}

.hero h1 {
    font-size: clamp(36px, 3.8vw, 60px);
    letter-spacing: -.035em;
    line-height: 1.15;
    text-wrap: balance
}

h2 {
    line-height: 1.18;
    letter-spacing: -.025em;
    text-wrap: balance
}

.brand {
    letter-spacing: -.035em
}

.brand small {
    letter-spacing: .13em
}

.hero-grid {
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(30px, 4vw, 60px)
}

.hero-points {
    gap: 8px
}

.hero-points li {
    font-size: 12px;
    padding: 8px 12px
}

.hero-actions {
    gap: 12px 18px
}

.text-link {
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 14px
}

.game,
.features-grid article {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease
}

.game-art {
    overflow: hidden
}

.game-art img {
    transition: transform .45s ease
}

.game-copy {
    padding: 22px
}

.game h3 {
    font-size: clamp(21px, 1.8vw, 25px)
}

input:not([type=checkbox]),
textarea {
    font-weight: 500;
    transition: border-color .2s, box-shadow .2s
}

input:not([type=checkbox]):focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px #46695218
}

@media(hover:hover) and (pointer:fine) {

    .game:hover,
    .features-grid article:hover {
        transform: translateY(-4px);
        border-color: #9daf9f;
        box-shadow: 0 12px 28px #20312612
    }

    .game:hover .game-art img {
        transform: scale(1.035)
    }
}

@media(max-width:900px) {
    .hero-grid {
        gap: 28px
    }

    .nav {
        gap: 14px
    }

    nav {
        gap: 12px
    }

    .brand {
        font-size: 23px
    }
}

@media(max-width:760px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 26px
    }

    .hero h1 {
        font-size: clamp(33px, 6.8vw, 46px)
    }

    .hero-actions {
        gap: 5px
    }

    .hero-points li {
        width: auto;
        text-align: left
    }

    .hero-points {
        margin-bottom: 14px
    }

    .game-copy {
        padding: 15px
    }

    .brand {
        font-size: 21px
    }

    .brand small {
        font-size: 9px;
        letter-spacing: .10em
    }

    .menu-toggle,
    .brand-mark {
        flex-shrink: 0
    }

    .hero .lead {
        margin: 16px 0 20px
    }

    .section {
        padding: 48px 0
    }

    .section.compact {
        padding-top: 0
    }
}

@media(max-width:380px) {
    .brand {
        font-size: 18px
    }

    .brand small {
        font-size: 8px
    }

    .hero h1 {
        font-size: 32px
    }
}

/* Reveal only elements entering the viewport; content is never hidden by default. */
@keyframes soft-enter {
    from {
        opacity: .55;
        transform: translateY(12px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

@media(prefers-reduced-motion:no-preference) {
    .soft-enter {
        animation: soft-enter .48s ease-out both
    }
}

@media(prefers-reduced-motion:reduce) {

    .game:hover,
    .features-grid article:hover,
    .game:hover .game-art img,
    .button:hover {
        transform: none
    }

    .soft-enter {
        animation: none
    }
}

/* v0.1.5 — KB Soft corporate identity */
.nav-maker {
    display: flex;
    align-items: center;
    border-left: 1px solid var(--border);
    padding-left: 20px;
    margin-right: auto;
    flex-shrink: 0
}

.nav-maker img {
    width: 124px;
    height: auto
}

.brand-mark {
    flex-shrink: 0
}

.footer-maker {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.footer-maker img {
    width: 112px;
    height: auto
}

.footer-brand {
    gap: 9px
}

@media(max-width:1050px) {
    .nav-maker {
        padding-left: 12px
    }

    .nav-maker img {
        width: 100px
    }
}

@media(max-width:900px) {
    .nav-maker {
        display: none
    }
}

@media(max-width:760px) {
    .footer-maker {
        justify-content: center
    }
}

/* v0.1.6: inline brand artwork */
.nav-maker svg {
    width: 124px;
    height: auto;
    flex-shrink: 0
}

.footer-maker svg {
    width: 112px;
    height: auto;
    flex-shrink: 0
}

@media(max-width:1050px) {
    .nav-maker svg {
        width: 100px
    }
}


/* v0.1.8 — refined hero image alignment */
.hero-art {
    transform: translateY(-24px)
}

@media(max-width:900px) {
    .hero-art {
        transform: translateY(-14px)
    }
}

@media(max-width:760px) {
    .hero-art {
        transform: none
    }
}

/* v0.2.0 — form feedback */
#form-status[data-state="error"] {
    color: #8b352b
}

#form-status[data-state="success"] {
    color: #34543f;
    font-weight: 650
}

.quote-form button:disabled {
    opacity: .65;
    cursor: wait;
    transform: none
}

/* v0.4.0 — legal pages */
.footer-legal {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center
}

.legal-page .eyebrow {
    margin-top: 30px
}

.legal-page h1 {
    font-size: clamp(32px, 5vw, 48px)
}

.legal-page h2 {
    margin-top: 32px
}

.legal-page dt {
    font-weight: 700;
    color: var(--heading)
}

.legal-page dd {
    margin: 0 0 14px
}

.legal-draft {
    padding: 16px;
    background: var(--alt);
    border: 1px solid var(--border);
    border-radius: 12px
}

.legal-back {
    display: inline-block;
    margin-bottom: 12px
}

/* v0.5.0 */
.nav-maker svg,
.footer-maker svg {
    display: block;
    max-width: 100%;
    height: auto
}

/* Analytics consent */
.cookie-banner[hidden] {
    display: none !important
}

.cookie-banner {
    position: fixed;
    z-index: 1000;
    bottom: 20px;
    right: 20px;
    width: min(440px, calc(100% - 40px));
    padding: 24px;
    border: 1px solid #c9d2c4;
    border-radius: 20px;
    background: #f7f6f2;
    color: #203126;
    box-shadow: 0 12px 40px #20312626
}

.cookie-banner h2 {
    font-size: 24px;
    margin: 0 0 10px
}

.cookie-banner p {
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px
}

.cookie-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.cookie-actions .button {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    justify-content: center
}

.cookie-settings {
    font: inherit;
    color: inherit;
    text-decoration: underline;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer
}

.cookie-settings:focus-visible,
.cookie-actions button:focus-visible {
    outline: 2px solid #203126;
    outline-offset: 3px
}

@media(max-width:760px) {
    .cookie-banner {
        bottom: 84px;
        right: 12px;
        width: calc(100% - 24px);
        padding: 16px;
        max-height: calc(100dvh - 100px);
        overflow: auto
    }
}