:root {
    --ink: #101316;
    --muted: #5f666b;
    --paper: #f4f1eb;
    --snow: #fbfaf7;
    --charcoal: #11181d;
    --line: rgba(255, 255, 255, 0.25);
    --accent: #d9d0c2;
    --max: 1180px;
    --gutter: clamp(24px, 5vw, 72px);
    /* Sisältölaatikko reunuksineen: kun osio käyttää tätä max-widthinä ja
       --gutter-paddingia, sen sisältö osuu samaan linjaan kuin --max-levyinen
       .section-inner. */
    --kehys: calc(var(--max) + 2 * var(--gutter));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px var(--gutter) 32px 0;
    color: white;
}

.nav-wrap {
    max-width: none;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    position: relative;
    margin-left: 20px;
}
.brand img {
    /* Logotiedostot ovat mustia läpinäkyvällä taustalla, ja kaikki
       käyttökohteet ovat tummia pintoja. Leveys tulee --logo-leveys
       -muuttujasta, joka asetetaan body-elementille jokaisella sivulla. */
    width: var(--logo-leveys, 150px);
    filter: brightness(0) invert(1);
}
.brand-mark {
    width: 28px;
    height: 44px;
    border-left: 1px solid currentColor;
    border-right: 1px solid currentColor;
    opacity: 0.82;
    position: relative;
}

.brand-mark::before,
.brand-mark::after {
    content: '';
    position: absolute;
    inset: 5px 8px;
    border-left: 1px solid currentColor;
    transform: skewY(-32deg);
}

.brand small {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    letter-spacing: 0.32em;
    text-align: center;
}

.nav {
    display: flex;
    gap: clamp(18px, 3vw, 42px);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nav a {
    opacity: 0.82;
    padding-bottom: 8px;
    border-bottom: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.75);
}

.hero {
    min-height: 820px;
    color: white;
    position: relative;
    display: grid;
    align-items: center;
    overflow: hidden;
    background: #111;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /*background: linear-gradient(90deg, rgba(7, 10, 12, 0.86) 0%, rgba(7, 10, 12, 0.56) 38%, rgba(7, 10, 12, 0.08) 72%), linear-gradient(0deg, rgba(7, 10, 12, 0.5), rgba(7, 10, 12, 0.12));*/
    z-index: 1;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* filter: saturate(1) contrast(1.05); */
    transform: scaleX(-1);
    opacity: 0.8;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: var(--kehys);
    width: 100%;
    margin: 0 auto;
    padding: 180px var(--gutter) 120px;
}

.eyebrow {
    font-size: 13px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 26px;
}

h1 {
    font-family: 'quiche-text', sans-serif;
    font-weight: 400;
    font-style: normal;
    letter-spacing: 0.18em;
    font-size: clamp(58px, 8vw, 80px);
    line-height: 0.92;
    margin: 0 0 36px;
}

.hero-copy {
    max-width: 460px;
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.88);
    margin: 0 0 48px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 28px 44px;
    align-items: center;
    margin-bottom: 80px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 28px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    border-radius: 3px;
}

.button.dark {
    color: var(--ink);
    border-color: rgba(16, 19, 22, 0.55);
    background: transparent;
}

.hero-badges {
    display: flex;
    gap: 64px;
    color: rgba(255, 255, 255, 0.86);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.12em;
}

.badge-symbol {
    display: block;
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.92);
}

.vertical-note {
    position: absolute;
    z-index: 2;
    right: clamp(18px, 4vw, 22px);
    top: 42%;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.72);
    transform: scale(-1);
}

.section {
    padding: 76px var(--gutter);
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.quote {
    background: var(--paper);
    padding: clamp(72px, 9vw, 132px) var(--gutter);
}

.quote-inner {
    max-width: var(--max);
    margin: 0 auto;
    text-align: center;
}

.quote-inner p {
    /* quiche-textistä on kitissä vain leikkaus 400, joka on nostolauseen
       kokoluokassa raskas. darkmode-on tuo saman kitin kevyimmän leikkauksen. */
    font-family: 'darkmode-on', sans-serif;
    font-weight: 100;
    font-size: clamp(28px, 3.6vw, 46px);
    line-height: 1.3;
    letter-spacing: 0.01em;
    color: var(--ink);
    max-width: 820px;
    margin: 0 auto 34px;
}

.quote-attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
}

.quote-rule {
    display: block;
    width: 48px;
    height: 1px;
    background: rgba(95, 102, 107, 0.5);
}

.intro {
    background: var(--snow);
    padding: 0;
}
.section.intro {
    padding: 50px var(--gutter);
}
.intro .section-inner {
    max-width: var(--max);
    padding: 0;
}

.split {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    background: var(--snow);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 12px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-label::after {
    content: '';
    width: 64px;
    height: 1px;
    background: rgba(16, 19, 22, 0.35);
}

h2 {
    font-size: clamp(34px, 4vw, 52px);
    letter-spacing: -0.04em;
    line-height: 1;
    font-weight: 400;
    margin: 0 0 28px;
}

.body-text {
    color: #30363a;
    line-height: 1.72;
    font-size: 16px;
    max-width: 470px;
}

.checklist {
    margin: 24px 0 34px;
    padding: 0;
    list-style: none;
    color: #24292d;
    line-height: 1.6;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 4px 0;
}

.checklist li::before {
    content: '✓';
    flex-shrink: 0;
    line-height: 1.6;
}

.contact-line {
    margin-top: 18px;
    color: var(--muted);
    font-size: 14px;
}
.product-description {
    width: 50%;
    padding: 48px var(--gutter) 48px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}
.product-image {
    display: block;
    width: 50%;
    max-width: none;
    height: auto;
    object-fit: cover;
    background: #ddd;
    border-radius: 10px;
}

.colorways {
    background: var(--paper);
    text-align: center;
}

.colorways .section-label {
    justify-content: center;
}

.colorways .section-label::after {
    display: none;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(28px, 4vw, 68px);
    text-align: left;
    margin-top: 20px;
}

.card h3 {
    text-align: center;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 0 0 18px;
}

.card img {
    aspect-ratio: 1.28 / 1;
    width: 100%;
    object-fit: cover;
    background: #d8d4cd;
    margin-bottom: 20px;
    border-radius: 5px;
}

.card p {
    margin: 0;
    color: #343a3e;
    line-height: 1.55;
    font-size: 15px;
}

.card-price {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(16, 19, 22, 0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.price-amount {
    font-family: 'quiche-text', serif;
    font-size: 26px;
    letter-spacing: 0.04em;
    color: var(--ink);
    font-weight: 400;
}

.price-note {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.footer {
    color: white;
    background: var(--charcoal);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.5fr;
    min-height: 260px;
}

.footer-block {
    padding: 58px 40px;
    position: relative;
}
.footer-block:first-child {
    padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2));
}
.footer-block.flow {
    padding: 0;
}
.footer-block:last-child {
    border-right: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.12));
}
.footer-block.contact i{
    margin-right: 7px;
}
.footer-block.flow img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.footer-block .text{
        position: relative;
    z-index: 2;
    width: 100%;
    background: linear-gradient(45deg, #0005 40%, #0000 60%);
    padding: 58px var(--gutter);
    height: 100%;
}
.footer-block .text *{
    width: 200px;
}
.footer h4 {
    margin: 0 0 28px;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.86);
}

.footer p {
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.65;
    margin: 0 0 14px;
    font-size: 14px;
}

.footer-brand {
    text-align: center;
    align-self: center;
}

.footer-brand .brand {
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 18px var(--gutter);
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
}

.footer-bottom-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 1024px) {
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .footer-block.flow {
        grid-column: 1 / -1;
        min-height: 280px;
    }
}

@media (max-width: 820px) {
    :root {
        --gutter: clamp(20px, 5vw, 32px);
    }
    .site-header {
        padding: 18px var(--gutter) 18px 0;
    }
    .nav-wrap {
        gap: 16px;
    }
    .brand {
        left: 0;
    }
    .brand img {
        width: calc(var(--logo-leveys, 150px) * 0.78);
    }
    .nav {
        display: none;
    }

    .hero {
        min-height: 560px;
    }
    .hero::before {
        background: linear-gradient(180deg, rgba(7, 10, 12, 0.45) 0%, rgba(7, 10, 12, 0.55) 50%, rgba(7, 10, 12, 0.75) 100%);
    }
    .hero-inner {
        padding: 110px var(--gutter) 56px;
    }
    .hero-bg {
        object-position: 60% center;
    }
    h1 {
        letter-spacing: 0.12em;
        font-size: clamp(48px, 12vw, 64px);
        margin-bottom: 22px;
    }
    .hero-copy {
        font-size: 16px;
        margin-bottom: 28px;
    }
    .hero-actions {
        gap: 18px 24px;
        margin-bottom: 40px;
    }
    .hero-badges {
        gap: 32px;
    }
    .badge-symbol {
        width: 27px;
        height: 27px;
        margin-bottom: 8px;
    }
    .vertical-note {
        display: none;
    }

    .section {
        padding: 56px var(--gutter);
    }

    .section.intro {
        padding: 0;
    }
    .split {
        display: block;
        width: 100%;
        background: var(--snow);
    }
    .product-description {
        position: static;
        width: 100%;
        padding: 56px var(--gutter);
        background: var(--snow);
        text-align: left;
    }
    h2 {
        font-size: clamp(30px, 7vw, 42px);
        margin-bottom: 22px;
    }
    .product-image {
        width: calc(100% - 40px);
        max-width: none;
        max-height: 360px;
        margin: 0 auto;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 32px;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }
    .card img {
        margin-bottom: 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .footer-block {
        padding: 40px var(--gutter);
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .footer-block.flow {
        min-height: 280px;
        padding: 0;
    }
    .footer-block .text {
        padding: 40px var(--gutter);
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.55) 30%, rgba(0, 0, 0, 0.05));
    }
    .footer-block .text * {
        width: 100%;
        max-width: 320px;
    }
    .footer-brand .brand {
        position: static;
    }
    .footer-brand .brand img {
        width: var(--logo-leveys, 150px);
    }

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

@media (max-width: 480px) {
    .brand img {
        width: calc(var(--logo-leveys, 150px) * 0.7);
    }
    .brand {
        top: -4px;
    }
    .hero {
        min-height: 520px;
    }
    .hero-inner {
        padding: 100px 20px 48px;
    }
    .eyebrow {
        font-size: 11px;
        letter-spacing: 0.22em;
        margin-bottom: 14px;
    }
    h1 {
        font-size: 44px;
        margin-bottom: 18px;
    }
    .hero-copy {
        font-size: 15px;
    }
    .hero-actions {
        gap: 14px 20px;
    }
    .button {
        min-height: 42px;
        padding: 0 22px;
        font-size: 11px;
    }
    .hero-badges {
        gap: 24px;
        font-size: 11px;
    }

    .section {
        padding: 48px 20px;
    }
    .product-description {
        padding: 48px 20px;
    }
    .quote {
        padding: 56px 20px;
    }
    .quote-inner p {
        margin-bottom: 26px;
    }
    .price-amount {
        font-size: 24px;
    }
    .price-note {
        font-size: 10px;
        letter-spacing: 0.14em;
    }
}

/* ---------------------------------------------------------------
   Ehtosivut: tietosuoja.php ja ehdot.php
   --------------------------------------------------------------- */

.legal-top {
    position: relative;
    background: var(--charcoal);
}

/* Alasivuilla headeria ei ladota heron päälle, joten se saa olla normaalissa
   virrassa: tumma palkki kasvaa logon korkeuden mukaan eikä sitä tarvitse
   pitää käsin synkassa --logo-leveys-arvon kanssa. */
.legal-top .site-header {
    position: static;
}

.legal {
    background: var(--snow);
    padding: 64px var(--gutter) 88px;
}

.legal-inner {
    max-width: 760px;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 1px solid rgba(95, 102, 107, 0.4);
    padding-bottom: 4px;
}

.back-link:hover {
    color: var(--ink);
    border-color: var(--ink);
}

.legal h1 {
    font-size: clamp(32px, 5vw, 44px);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin: 0 0 10px;
}

.legal-meta {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 44px;
}

.legal h2 {
    font-family: 'quiche-text', sans-serif;
    font-size: 22px;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 44px 0 14px;
}

.legal h3 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin: 26px 0 8px;
}

.legal p,
.legal li {
    color: #2c3237;
    font-size: 15px;
    line-height: 1.75;
}

.legal p {
    margin: 0 0 14px;
}

.legal ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.legal li {
    margin-bottom: 8px;
}

.legal a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-box {
    background: var(--paper);
    border-left: 2px solid var(--accent);
    padding: 24px 28px;
    margin: 0 0 20px;
}

.legal-box p:last-child {
    margin-bottom: 0;
}

.legal-footer {
    background: var(--charcoal);
    color: rgba(255, 255, 255, 0.58);
    font-size: 12px;
    padding: 26px var(--gutter);
}

.legal-footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.legal-footer a:hover {
    color: white;
}

@media (max-width: 820px) {
    .legal {
        padding: 48px 20px 64px;
    }
    .legal h2 {
        font-size: 20px;
        margin-top: 36px;
    }
    .legal-box {
        padding: 20px 22px;
    }
    .legal-footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
}

.footer-bottom a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-bottom a:hover {
    color: white;
}

/* Tulossa oleva kortti: näkyy, mutta ei ole vielä tilattavissa */
.card-tulossa {
    opacity: 0.55;
    pointer-events: none;
}

.card-kuvapaikka {
    aspect-ratio: 1.28 / 1;
    width: 100%;
    margin-bottom: 20px;
    border: 1px dashed rgba(16, 19, 22, 0.28);
    border-radius: 5px;
    display: grid;
    place-items: center;
    color: var(--muted);
}

.card-kuvapaikka svg {
    width: 54px;
    height: 54px;
}

.card-tulossa .price-amount {
    font-family: inherit;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}
