/* ==========================================================================
   Muistonkipina.info — The Platinum Hotel & Spa, Las Vegas
   Tyylitiedosto / main stylesheet
   ========================================================================== */

/* 1. Muuttujat -------------------------------------------------------------- */

:root {
    /* Brändivärit */
    --grass: #3f681c;
    --sunflower: #ffbb00;
    --sunset: #fb6542;
    --sky: #375e97;

    /* Johdetut sävyt */
    --grass-dark: #2c4a12;
    --grass-light: #eef3e6;
    --sky-dark: #26406a;
    --sky-light: #eaeff7;
    --sunset-light: #fff0ec;
    --sunflower-light: #fff6de;

    /* Neutraalit */
    --ink: #22251f;
    --ink-soft: #4d5449;
    --muted: #767c72;
    --line: #e3e1da;
    --line-strong: #cdcac0;
    --paper: #ffffff;
    --sand: #faf7f1;
    --sand-deep: #f2ece1;

    /* Typografia */
    --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;

    /* Mitat */
    --container: 1220px;
    --container-narrow: 820px;
    --radius-sm: 6px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;

    /* Varjot */
    --shadow-xs: 0 1px 2px rgba(34, 37, 31, 0.06);
    --shadow-sm: 0 2px 8px rgba(34, 37, 31, 0.07);
    --shadow-md: 0 10px 26px rgba(34, 37, 31, 0.10);
    --shadow-lg: 0 22px 48px rgba(34, 37, 31, 0.14);
    --shadow-xl: 0 40px 90px rgba(20, 24, 16, 0.30);

    /* Liikkeet */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --t-fast: 0.18s var(--ease);
    --t: 0.32s var(--ease);
    --t-slow: 0.6s var(--ease);
}

/* 2. Perusasetukset --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--sand);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--grass);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--t-fast);
}

a:hover {
    color: var(--sunset);
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.015em;
    color: var(--ink);
    margin: 0 0 0.5em;
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.3rem, 5.4vw, 4rem);
}

h2 {
    font-size: clamp(1.85rem, 3.4vw, 2.75rem);
}

h3 {
    font-size: clamp(1.2rem, 1.8vw, 1.5rem);
}

h4 {
    font-size: 1.0625rem;
    font-family: var(--font-body);
    font-weight: 700;
    letter-spacing: 0;
}

p {
    margin: 0 0 1.1em;
}

p:last-child {
    margin-bottom: 0;
}

ul,
ol {
    margin: 0 0 1.1em;
    padding-left: 1.25em;
}

li {
    margin-bottom: 0.4em;
}

strong {
    font-weight: 650;
    color: var(--ink);
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 3rem 0;
}

:focus-visible {
    outline: 3px solid var(--sky);
    outline-offset: 3px;
    border-radius: 3px;
}

::selection {
    background: var(--sunflower);
    color: var(--ink);
}

/* 3. Apuluokat -------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding-block: clamp(3.5rem, 7vw, 6.5rem);
}

.section--tight {
    padding-block: clamp(2.5rem, 4.5vw, 4rem);
}

.section--paper {
    background-color: var(--paper);
}

.section--sand {
    background-color: var(--sand-deep);
}

.section--ink {
    background-color: var(--ink);
    color: #ded9cf;
}

.section--ink h2,
.section--ink h3,
.section--ink h4 {
    color: #fff;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 999;
    background: var(--grass);
    color: #fff;
    padding: 12px 20px;
    border-radius: 0 0 var(--radius) 0;
    font-weight: 600;
}

.skip-link:focus {
    left: 0;
    color: #fff;
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--grass);
    margin: 0 0 1rem;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--sunflower);
    flex: none;
}

.eyebrow--sky {
    color: var(--sky);
}

.eyebrow--sunset {
    color: var(--sunset);
}

.eyebrow--light {
    color: var(--sunflower);
}

.eyebrow--light::before {
    background: var(--sunset);
}

.lead {
    font-size: clamp(1.075rem, 1.5vw, 1.25rem);
    line-height: 1.65;
    color: var(--ink-soft);
}

.text-muted {
    color: var(--muted);
}

.section-head {
    max-width: 720px;
    margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.section-head--center {
    margin-inline: auto;
    text-align: center;
}

.section-head--center .eyebrow {
    justify-content: center;
}

.mt-sm {
    margin-top: 1.25rem;
}

.mt-md {
    margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.mt-lg {
    margin-top: clamp(2.25rem, 4.5vw, 3.5rem);
}

.items-start {
    align-items: start;
}

.divider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding-block: 8px;
}

.divider-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
}

.divider-dots span:nth-child(1) {
    background: var(--grass);
}

.divider-dots span:nth-child(2) {
    background: var(--sunflower);
}

.divider-dots span:nth-child(3) {
    background: var(--sunset);
}

/* 4. Ikonit ----------------------------------------------------------------- */

.icon {
    width: 24px;
    height: 24px;
    flex: none;
    display: inline-block;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--sm {
    width: 18px;
    height: 18px;
}

.icon--lg {
    width: 30px;
    height: 30px;
}

.icon--solid {
    fill: currentColor;
    stroke: none;
}

/* 5. Painikkeet ------------------------------------------------------------- */

.btn {
    --btn-bg: var(--grass);
    --btn-fg: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 26px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t), box-shadow var(--t), background-color var(--t), color var(--t), border-color var(--t);
}

.btn:hover {
    color: var(--btn-fg);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(-1px);
}

.btn .icon {
    transition: transform var(--t);
}

.btn:hover .icon {
    transform: translateX(4px);
}

.btn--accent {
    --btn-bg: var(--sunflower);
    --btn-fg: var(--ink);
}

.btn--sunset {
    --btn-bg: var(--sunset);
    --btn-fg: #fff;
}

.btn--sky {
    --btn-bg: var(--sky);
    --btn-fg: #fff;
}

.btn--outline {
    background: transparent;
    color: var(--grass);
    border-color: var(--line-strong);
    box-shadow: none;
}

.btn--outline:hover {
    color: var(--grass-dark);
    border-color: var(--grass);
    background: var(--grass-light);
}

.btn--light {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: none;
    backdrop-filter: blur(6px);
}

.btn--light:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}

.btn--sm {
    padding: 10px 18px;
    font-size: 0.875rem;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 650;
    text-decoration: none;
    color: var(--grass);
}

.text-link .icon {
    transition: transform var(--t);
}

.text-link:hover .icon {
    transform: translateX(5px);
}

/* 6. Merkinnät ja rakenneosat ----------------------------------------------- */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border-radius: 999px;
    background: var(--sunflower);
    color: var(--ink);
    font-size: 0.775rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.badge--outline {
    background: transparent;
    border: 1.5px solid currentColor;
    color: var(--grass);
}

.badge--sky {
    background: var(--sky);
    color: #fff;
}

.badge--sunset {
    background: var(--sunset);
    color: #fff;
}

.badge--glass {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    backdrop-filter: blur(8px);
}

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

.tag {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    font-size: 0.85rem;
    color: var(--ink-soft);
    margin: 0;
}

/* 7. Header ----------------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow var(--t), background-color var(--t);
}

.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.98);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--ink);
    flex: none;
}

.brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--grass);
    color: var(--sunflower);
    display: grid;
    place-items: center;
    flex: none;
    transition: transform var(--t), background-color var(--t);
}

.brand:hover .brand__mark {
    transform: rotate(-8deg);
    background: var(--grass-dark);
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand__name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.brand__tagline {
    font-size: 0.68rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav__list li {
    margin: 0;
}

.nav__link {
    position: relative;
    display: block;
    padding: 10px 13px;
    font-size: 0.925rem;
    font-weight: 550;
    color: var(--ink-soft);
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: color var(--t-fast);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 13px;
    right: 13px;
    bottom: 4px;
    height: 2px;
    background: var(--sunflower);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--t);
}

.nav__link:hover {
    color: var(--grass);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
    transform: scaleX(1);
}

.nav__link.is-active {
    color: var(--grass);
    font-weight: 650;
}

.nav__link.is-active::after {
    transform: scaleX(1);
    background: var(--grass);
}

.header-cta {
    flex: none;
    margin-left: 14px;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 9px 14px 9px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 650;
    cursor: pointer;
    transition: border-color var(--t-fast), background-color var(--t-fast);
}

.nav-toggle:hover {
    border-color: var(--grass);
    background: var(--grass-light);
}

.nav-toggle__bars {
    position: relative;
    width: 20px;
    height: 14px;
    flex: none;
}

.nav-toggle__bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform var(--t), opacity var(--t-fast);
}

.nav-toggle__bars span:nth-child(1) {
    top: 0;
}

.nav-toggle__bars span:nth-child(2) {
    top: 6px;
}

.nav-toggle__bars span:nth-child(3) {
    top: 12px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* 8. Hero-variantit --------------------------------------------------------- */

.hero {
    position: relative;
    overflow: hidden;
}

/* 8a. Kuvahero overlay-tekstillä (etusivu) */
.hero--cover {
    min-height: min(88vh, 780px);
    display: flex;
    align-items: flex-end;
    background: var(--ink);
}

.hero__media {
    position: absolute;
    inset: 0;
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__scrim {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgba(18, 21, 15, 0.92) 0%, rgba(18, 21, 15, 0.55) 42%, rgba(18, 21, 15, 0.22) 100%),
        linear-gradient(to right, rgba(18, 21, 15, 0.6), transparent 70%);
}

.hero--cover .container {
    position: relative;
    z-index: 2;
    padding-block: clamp(3rem, 7vw, 5.5rem);
}

.hero__inner {
    max-width: 720px;
    color: #fff;
}

.hero__inner h1 {
    color: #fff;
    margin-bottom: 0.4em;
}

.hero__text {
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 60ch;
    margin-bottom: 2rem;
}

.hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 2.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.hero__meta-item {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.hero__meta-item strong {
    display: block;
    color: #fff;
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

/* 8b. Jaettu hero: teksti + kuva vierekkäin */
.hero--split {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.hero--split .hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
    padding-block: clamp(3rem, 6vw, 5.5rem);
}

.hero--split h1 {
    margin-bottom: 0.35em;
}

.hero--split .hero__figure {
    position: relative;
}

.hero--split .hero__figure img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: var(--radius-xl) var(--radius-xl) var(--radius-xl) 60px;
    box-shadow: var(--shadow-lg);
}

.hero__figure-note {
    position: absolute;
    left: -18px;
    bottom: 30px;
    max-width: 230px;
    padding: 16px 20px;
    background: var(--paper);
    border-left: 4px solid var(--sunset);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink-soft);
}

/* 8c. Kompakti hero (nauhamainen, sisäsivut) */
.hero--band {
    background: var(--grass);
    color: #fff;
    position: relative;
}

.hero--band::after {
    content: "";
    position: absolute;
    right: -80px;
    top: -60px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 187, 0, 0.16);
}

.hero--band .container {
    position: relative;
    z-index: 2;
    padding-block: clamp(3rem, 6vw, 5rem);
}

.hero--band h1 {
    color: #fff;
}

.hero--band .lead {
    color: rgba(255, 255, 255, 0.85);
    max-width: 62ch;
}

.hero--band .eyebrow {
    color: var(--sunflower);
}

.hero--band .eyebrow::before {
    background: var(--sunflower);
}

/* 8d. Hero kuvakaistaleella alla */
.hero--band .hero__strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 2.5rem;
}

.hero__strip img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

/* 8e. Yksinkertainen sivuotsikko (legal-sivut) */
.page-head {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2.5rem, 5vw, 4rem);
}

.page-head h1 {
    margin-bottom: 0.3em;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.breadcrumb li {
    margin: 0;
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: 8px;
    color: var(--line-strong);
}

/* 9. Ruudukot --------------------------------------------------------------- */

.grid {
    display: grid;
    gap: clamp(1.25rem, 2.2vw, 2rem);
}

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

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

.grid--4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Kaksi palstaa: teksti + kuva */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.split--wide-text {
    grid-template-columns: 1.15fr 0.85fr;
}

.split--wide-media {
    grid-template-columns: 0.85fr 1.15fr;
}

.split__media img {
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.split--reverse .split__media {
    order: -1;
}

/* Epäsymmetrinen kuvasommitelma */
.mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 90px;
    gap: 16px;
}

.mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.mosaic__a {
    grid-column: span 4;
    grid-row: span 3;
}

.mosaic__b {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic__c {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic__d {
    grid-column: span 3;
    grid-row: span 2;
}

.mosaic__e {
    grid-column: span 3;
    grid-row: span 2;
}

/* Kuvakehys ja zoom */
.media-frame {
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.media-frame img {
    width: 100%;
    transition: transform var(--t-slow);
}

.media-frame:hover img {
    transform: scale(1.05);
}

figure {
    margin: 0;
}

figcaption {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* 10. Kortit ---------------------------------------------------------------- */

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 2.4vw, 2rem);
    box-shadow: var(--shadow-xs);
    transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: var(--line-strong);
}

.card h3 {
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--ink-soft);
    font-size: 0.975rem;
}

/* Ikonikortti */
.icon-card__icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    background: var(--grass-light);
    color: var(--grass);
    margin-bottom: 1.15rem;
    transition: transform var(--t), background-color var(--t), color var(--t);
}

.icon-card:hover .icon-card__icon {
    transform: translateY(-3px) rotate(-6deg);
    background: var(--grass);
    color: var(--sunflower);
}

.icon-card__icon--sky {
    background: var(--sky-light);
    color: var(--sky);
}

.icon-card:hover .icon-card__icon--sky {
    background: var(--sky);
    color: #fff;
}

.icon-card__icon--sunset {
    background: var(--sunset-light);
    color: var(--sunset);
}

.icon-card:hover .icon-card__icon--sunset {
    background: var(--sunset);
    color: #fff;
}

.icon-card__icon--sun {
    background: var(--sunflower-light);
    color: #a97800;
}

.icon-card:hover .icon-card__icon--sun {
    background: var(--sunflower);
    color: var(--ink);
}

/* Kuvakortti */
.photo-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-xs);
    transition: transform var(--t), box-shadow var(--t);
}

.photo-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow-lg);
}

.photo-card__media {
    overflow: hidden;
    position: relative;
}

.photo-card__media img {
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    transition: transform var(--t-slow);
}

.photo-card:hover .photo-card__media img {
    transform: scale(1.06);
}

.photo-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
}

.photo-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.photo-card__body h3 {
    margin: 0;
}

.photo-card__body p {
    color: var(--ink-soft);
    font-size: 0.975rem;
    margin: 0;
}

.photo-card__foot {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

/* Numeroitu kortti */
.step-card {
    position: relative;
    background: var(--paper);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem 1.75rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
    transition: transform var(--t), box-shadow var(--t);
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-card__num {
    position: absolute;
    top: -18px;
    left: 1.75rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--sunflower);
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: var(--shadow-sm);
}

/* Mini-kortti */
.mini-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: border-color var(--t), transform var(--t);
}

.mini-card:hover {
    border-color: var(--grass);
    transform: translateX(4px);
}

.mini-card .icon {
    color: var(--grass);
    margin-top: 3px;
}

.mini-card strong {
    display: block;
    margin-bottom: 2px;
}

.mini-card span {
    font-size: 0.9rem;
    color: var(--muted);
}

/* 11. Tietolaatikot, listat, faktat ----------------------------------------- */

.infobox {
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    border-left: 5px solid var(--sky);
    background: var(--sky-light);
    box-shadow: var(--shadow-xs);
}

.infobox h3 {
    margin-bottom: 0.5rem;
}

.infobox--sun {
    background: var(--sunflower-light);
    border-left-color: var(--sunflower);
}

.infobox--sunset {
    background: var(--sunset-light);
    border-left-color: var(--sunset);
}

.infobox--grass {
    background: var(--grass-light);
    border-left-color: var(--grass);
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.checklist li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    color: var(--ink-soft);
}

.checklist .icon {
    color: var(--grass);
    margin-top: 4px;
    width: 20px;
    height: 20px;
}

.checklist--sunset .icon {
    color: var(--sunset);
}

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

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--line);
}

.feature-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    transition: padding-left var(--t), background-color var(--t);
}

.feature-list li:hover {
    padding-left: 10px;
}

.feature-list dt,
.feature-list__label {
    font-weight: 650;
    color: var(--ink);
}

.feature-list__value {
    color: var(--ink-soft);
    text-align: right;
    font-size: 0.95rem;
}

/* Tilastot */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.stat {
    background: var(--paper);
    padding: clamp(1.5rem, 2.6vw, 2.25rem);
    transition: background-color var(--t);
}

.stat:hover {
    background: var(--sand);
}

.stat__value {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 2.8vw, 2.25rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--grass);
    margin-bottom: 6px;
}

.stat:nth-child(2) .stat__value {
    color: var(--sky);
}

.stat:nth-child(3) .stat__value {
    color: var(--sunset);
}

.stat:nth-child(4) .stat__value {
    color: #a97800;
}

.stat__label {
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 650;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}

.stat p {
    font-size: 0.925rem;
    color: var(--ink-soft);
    margin: 0;
}

/* Korostettu fakta */
.fact-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1rem, 2vw, 1.75rem);
}

.fact {
    padding: 1.5rem 1.5rem 1.5rem 1.75rem;
    border-left: 3px solid var(--sunflower);
    background: var(--paper);
    border-radius: 0 var(--radius) var(--radius) 0;
    box-shadow: var(--shadow-xs);
}

.fact:nth-child(2) {
    border-left-color: var(--sunset);
}

.fact:nth-child(3) {
    border-left-color: var(--sky);
}

.fact strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.fact p {
    font-size: 0.925rem;
    color: var(--ink-soft);
    margin: 0;
}

/* 12. Sitaatti -------------------------------------------------------------- */

.quote-block {
    position: relative;
    background: var(--grass);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: clamp(2.25rem, 5vw, 4rem);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.quote-block::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -50px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 187, 0, 0.18);
}

.quote-block__mark {
    position: relative;
    color: var(--sunflower);
    margin-bottom: 1.25rem;
}

.quote-block blockquote {
    position: relative;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 2.8vw, 2.1rem);
    line-height: 1.35;
    font-weight: 500;
    letter-spacing: -0.01em;
    max-width: 26ch;
    text-wrap: balance;
}

.quote-block--wide blockquote {
    max-width: 34ch;
}

.quote-block cite {
    display: block;
    position: relative;
    margin-top: 1.5rem;
    font-style: normal;
    font-size: 0.85rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.quote-block--sky {
    background: var(--sky);
}

.quote-block--sunset {
    background: var(--sunset);
}

.quote-block--sunset .quote-block__mark {
    color: #fff;
}

.quote-block--ink {
    background: var(--ink);
}

/* Pieni sitaattikortti */
.quote-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: var(--shadow-xs);
    transition: transform var(--t), box-shadow var(--t);
}

.quote-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.quote-card__mark {
    color: var(--sunflower);
}

.quote-card blockquote {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.6;
    color: var(--ink);
}

.quote-card__meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Arvioasteikko (ei numeerisia väitteitä) */
.gauge-list {
    display: grid;
    gap: 1.5rem;
}

.gauge__top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.gauge__label {
    font-weight: 650;
}

.gauge__note {
    font-size: 0.85rem;
    color: var(--muted);
}

.gauge__track {
    height: 8px;
    border-radius: 999px;
    background: var(--sand-deep);
    overflow: hidden;
}

.gauge__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--grass);
    width: 0;
    transition: width 1.1s var(--ease);
}

.gauge:nth-child(2) .gauge__fill {
    background: var(--sky);
}

.gauge:nth-child(3) .gauge__fill {
    background: var(--sunset);
}

.gauge:nth-child(4) .gauge__fill {
    background: var(--sunflower);
}

/* 13. Aikajana -------------------------------------------------------------- */

.timeline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 34px;
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, var(--sunflower), var(--sunset), var(--sky));
}

.timeline li {
    position: relative;
    margin: 0 0 2rem;
}

.timeline li:last-child {
    margin-bottom: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -34px;
    top: 7px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--paper);
    border: 3px solid var(--grass);
    box-shadow: var(--shadow-xs);
}

.timeline__time {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sunset);
    margin-bottom: 4px;
}

.timeline h3 {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
}

.timeline p {
    color: var(--ink-soft);
    font-size: 0.975rem;
    margin: 0;
}

/* 14. Vertailu -------------------------------------------------------------- */

.compare {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
}

.compare__col {
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-xs);
}

.compare__col--accent {
    background: var(--grass);
    color: rgba(255, 255, 255, 0.88);
    border-color: var(--grass);
    box-shadow: var(--shadow-md);
}

.compare__col--accent h3 {
    color: #fff;
}

.compare__col--accent .checklist li {
    color: rgba(255, 255, 255, 0.88);
}

.compare__col--accent .checklist .icon {
    color: var(--sunflower);
}

.compare__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
}

.compare__col--accent .compare__head {
    border-bottom-color: rgba(255, 255, 255, 0.25);
}

/* Taulukko */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

caption {
    text-align: left;
    padding: 1rem 1.25rem 0;
    font-size: 0.875rem;
    color: var(--muted);
}

th,
td {
    text-align: left;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

thead th {
    background: var(--sand-deep);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

tbody tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover td {
    background: var(--sand);
}

/* 15. FAQ ------------------------------------------------------------------- */

.faq {
    display: grid;
    gap: 12px;
}

.faq__item {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0 20px;
    transition: border-color var(--t), box-shadow var(--t);
}

.faq__item[open] {
    border-color: var(--grass);
    box-shadow: var(--shadow-sm);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 650;
    list-style: none;
    color: var(--ink);
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary::after {
    content: "";
    width: 12px;
    height: 12px;
    flex: none;
    border-right: 2px solid var(--grass);
    border-bottom: 2px solid var(--grass);
    transform: rotate(45deg) translateY(-3px);
    transition: transform var(--t);
}

.faq__item[open] summary::after {
    transform: rotate(-135deg) translateY(-3px);
}

.faq__answer {
    padding: 0 0 20px;
    color: var(--ink-soft);
    font-size: 0.975rem;
    max-width: 72ch;
}

/* 16. CTA ------------------------------------------------------------------- */

.cta-panel {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
    padding: clamp(2.25rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    box-shadow: var(--shadow-lg);
}

.cta-panel::after {
    content: "";
    position: absolute;
    left: -60px;
    bottom: -110px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(63, 104, 28, 0.45);
}

.cta-panel > * {
    position: relative;
    z-index: 2;
}

.cta-panel h2 {
    color: #fff;
    margin-bottom: 0.4em;
}

.cta-panel__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}

.cta-panel__actions .btn {
    width: 100%;
}

.cta-panel--sky {
    background: var(--sky);
}

.cta-panel--sky::after {
    background: rgba(255, 187, 0, 0.28);
}

/* 17. Lomakkeet ------------------------------------------------------------- */

.form-shell {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
}

.form-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    box-shadow: var(--shadow-md);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.15rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field--full {
    grid-column: 1 / -1;
}

.field label {
    font-size: 0.875rem;
    font-weight: 650;
    color: var(--ink);
}

.field .req {
    color: var(--sunset);
    margin-left: 2px;
}

.field input,
.field textarea {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
    background: var(--sand);
    border: 1.5px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 13px 15px;
    transition: border-color var(--t-fast), box-shadow var(--t-fast), background-color var(--t-fast);
}

.field textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9aa094;
}

.field input:hover,
.field textarea:hover {
    border-color: var(--muted);
}

.field input:focus,
.field textarea:focus {
    outline: none;
    background: var(--paper);
    border-color: var(--grass);
    box-shadow: 0 0 0 4px rgba(63, 104, 28, 0.14);
}

.field__hint {
    font-size: 0.8rem;
    color: var(--muted);
}

.field__error {
    display: none;
    align-items: center;
    gap: 6px;
    font-size: 0.825rem;
    font-weight: 600;
    color: #c53a1c;
}

.field.has-error .field__error {
    display: flex;
}

.field.has-error input,
.field.has-error textarea {
    border-color: var(--sunset);
    background: var(--sunset-light);
}

.field.has-error input:focus,
.field.has-error textarea:focus {
    box-shadow: 0 0 0 4px rgba(251, 101, 66, 0.18);
}

.form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}

.form-foot p {
    font-size: 0.825rem;
    color: var(--muted);
    max-width: 40ch;
    margin: 0;
}

.form-aside {
    display: grid;
    gap: 1rem;
}

/* Yhteystietolista */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 18px;
}

.contact-list li {
    display: flex;
    gap: 14px;
    margin: 0;
}

.contact-list .icon {
    color: var(--sky);
    margin-top: 4px;
}

.contact-list__label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--muted);
    margin-bottom: 2px;
}

.contact-list__value {
    color: var(--ink);
    font-weight: 550;
    font-style: normal;
    line-height: 1.5;
}

/* 18. Modaali --------------------------------------------------------------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.is-open {
    display: flex;
}

.modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 21, 15, 0.62);
    backdrop-filter: blur(3px);
    animation: fade-in 0.25s var(--ease);
}

.modal__dialog {
    position: relative;
    z-index: 2;
    width: min(520px, 100%);
    background: var(--paper);
    border-radius: var(--radius-xl);
    padding: clamp(1.75rem, 4vw, 2.75rem);
    box-shadow: var(--shadow-xl);
    text-align: center;
    animation: modal-in 0.32s var(--ease);
}

.modal__icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--grass-light);
    color: var(--grass);
}

.modal__dialog h2 {
    font-size: clamp(1.5rem, 3vw, 1.95rem);
    margin-bottom: 0.5rem;
}

.modal__dialog p {
    color: var(--ink-soft);
    margin-bottom: 1.75rem;
}

.modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink-soft);
    cursor: pointer;
    transition: background-color var(--t-fast), color var(--t-fast), transform var(--t-fast);
}

.modal__close:hover {
    background: var(--sunset);
    border-color: var(--sunset);
    color: #fff;
    transform: rotate(90deg);
}

body.is-locked {
    overflow: hidden;
}

@keyframes fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* 19. Ilmestymisanimaatio --------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* 20. Footer ---------------------------------------------------------------- */

.site-footer {
    background: var(--ink);
    color: #b9b6ac;
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr 1.1fr;
    gap: clamp(1.75rem, 4vw, 3rem);
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand {
    color: #fff;
    margin-bottom: 1.15rem;
}

.footer-brand .brand__tagline {
    color: #8d897e;
}

.footer-brand p {
    max-width: 40ch;
    font-size: 0.925rem;
    line-height: 1.65;
}

.footer-col h3 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1.15rem;
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    position: relative;
    color: #b9b6ac;
    text-decoration: none;
    font-size: 0.925rem;
    transition: color var(--t-fast), padding-left var(--t);
}

.footer-links a:hover {
    color: var(--sunflower);
    padding-left: 6px;
}

.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 14px;
    font-style: normal;
}

.footer-contact li {
    display: flex;
    gap: 12px;
    margin: 0;
    line-height: 1.55;
    font-size: 0.925rem;
}

.footer-contact .icon {
    color: var(--sunflower);
    margin-top: 3px;
    width: 18px;
    height: 18px;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}

.socials a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #d6d3ca;
    transition: transform var(--t), background-color var(--t), color var(--t), border-color var(--t);
}

.socials a:hover {
    transform: translateY(-4px);
    background: var(--sunflower);
    border-color: var(--sunflower);
    color: var(--ink);
}

.footer-legal {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: clamp(1.25rem, 3vw, 2.5rem);
    padding-block: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal h3 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.footer-legal p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #8d897e;
}

.company-facts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    color: #8d897e;
}

.company-facts li {
    margin: 0;
}

.company-facts strong {
    color: #d6d3ca;
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.75rem;
    font-size: 0.82rem;
    color: #7e7a70;
}

/* Vastuullinen pelaaminen / 18+ ------------------------------------------- */

.footer-responsible {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-responsible__badge {
    flex: none;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--sunflower);
    color: var(--ink);
    box-shadow: var(--shadow-sm);
}

.footer-responsible__badge .age-mark {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1;
}

.footer-responsible__body {
    flex: 1 1 auto;
    min-width: 0;
}

.footer-responsible__body h3 {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 0.65rem;
}

.footer-responsible__body p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: #8d897e;
    margin: 0;
    max-width: 72ch;
}

.footer-responsible__body a {
    color: #d6d3ca;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.footer-responsible__body a:hover {
    color: var(--sunflower);
}

@media (max-width: 560px) {
    .footer-responsible {
        gap: 14px;
    }

    .footer-responsible__badge {
        width: 46px;
        height: 46px;
    }

    .footer-responsible__badge .age-mark {
        font-size: 1.05rem;
    }
}

/* 21. Responsiivisuus ------------------------------------------------------- */

@media (max-width: 1200px) {
    .nav__link {
        padding: 10px 10px;
        font-size: 0.9rem;
    }

    .nav__link::after {
        left: 10px;
        right: 10px;
    }
}

@media (max-width: 1023px) {
    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        position: fixed;
        inset: 76px 0 auto;
        display: block;
        margin: 0;
        padding: 12px 24px 28px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 76px);
        overflow-y: auto;
        transform: translateY(-14px);
        opacity: 0;
        visibility: hidden;
        transition: transform var(--t), opacity var(--t), visibility var(--t);
    }

    .nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        display: grid;
        gap: 2px;
    }

    .nav__link {
        padding: 14px 8px;
        font-size: 1.05rem;
        border-bottom: 1px solid var(--line);
    }

    .nav__link::after {
        display: none;
    }

    .nav__link.is-active {
        color: var(--grass);
    }

    .nav__cta {
        margin-top: 18px;
    }

    .nav__cta .btn {
        width: 100%;
    }

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

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

    .form-shell {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .cta-panel {
        grid-template-columns: 1fr;
    }

    .hero--split .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero--split .hero__figure img {
        aspect-ratio: 16 / 10;
    }

    .hero__figure-note {
        left: 16px;
        bottom: 16px;
    }
}

@media (min-width: 1024px) {
    .nav {
        visibility: visible !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .nav__cta {
        display: none;
    }
}

@media (max-width: 900px) {
    .grid--3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .fact-strip {
        grid-template-columns: 1fr;
    }

    .split,
    .split--wide-text,
    .split--wide-media {
        grid-template-columns: 1fr;
    }

    .split--reverse .split__media {
        order: 0;
    }

    .compare {
        grid-template-columns: 1fr;
    }

    .mosaic {
        grid-auto-rows: 70px;
    }

    .footer-legal {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 1rem;
    }

    .container {
        padding-inline: 18px;
    }

    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .checklist--two {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero--cover {
        min-height: 0;
        padding-top: 2rem;
    }

    .hero--band .hero__strip {
        grid-template-columns: 1fr;
    }

    .hero__strip img {
        height: 200px;
    }

    .hero__meta {
        gap: 18px 28px;
    }

    .mosaic {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 110px;
    }

    .mosaic__a {
        grid-column: span 2;
        grid-row: span 2;
    }

    .mosaic__b,
    .mosaic__c,
    .mosaic__d,
    .mosaic__e {
        grid-column: span 1;
        grid-row: span 1;
    }

    .feature-list li {
        flex-direction: column;
        gap: 4px;
    }

    .feature-list__value {
        text-align: left;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .form-foot {
        flex-direction: column;
        align-items: stretch;
    }

    .form-foot .btn {
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .btn-row .btn {
        width: 100%;
    }

    .hero__figure-note {
        position: static;
        max-width: none;
        margin-top: 14px;
    }
}

/* 22. Liikkeen vähentäminen ------------------------------------------------- */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* 23. Proosa (lakiasiat-sivut) --------------------------------------------- */

.prose h2 {
    margin-top: 2.5rem;
    margin-bottom: 0.6rem;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.4rem;
    font-size: 1.1rem;
}

.prose p,
.prose ul,
.prose ol {
    color: var(--ink-soft);
    max-width: 70ch;
}

.prose ul,
.prose ol {
    padding-left: 1.25em;
}

.prose li {
    margin-bottom: 0.5em;
}

.prose a {
    color: var(--grass);
    text-decoration: underline;
}

.fine-print {
    font-size: 0.875rem;
}

.fine-print--center {
    text-align: center;
}

/* 23b. Evästeilmoitus / cookie banner --------------------------------------- */

.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 900;
    background: var(--paper);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    transform: translateY(100%);
    transition: transform var(--t-slow);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 22px 24px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "intro actions"
        "settings settings";
    gap: 16px 28px;
    align-items: center;
}

.cookie-banner__intro {
    grid-area: intro;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.cookie-banner__icon {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--grass-light);
    color: var(--grass);
}

.cookie-banner__icon .icon {
    width: 22px;
    height: 22px;
}

.cookie-banner__title {
    font-size: 1.05rem;
    margin: 0 0 4px;
}

.cookie-banner__text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 68ch;
}

.cookie-banner__text a {
    color: var(--grass);
    text-decoration: underline;
}

.cookie-banner__actions {
    grid-area: actions;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-banner__settings {
    grid-area: settings;
    display: flex;
    flex-wrap: wrap;
    gap: 14px 32px;
    padding: 16px 20px;
    background: var(--sand);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.cookie-banner__settings[hidden] {
    display: none;
}

/* Kytkin / toggle switch */
.cookie-switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.cookie-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-switch__track {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: var(--line-strong);
    transition: background-color var(--t-fast);
    flex: none;
}

.cookie-switch__track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: var(--shadow-xs);
    transition: transform var(--t-fast);
}

.cookie-switch input:checked + .cookie-switch__track {
    background: var(--grass);
}

.cookie-switch input:checked + .cookie-switch__track::after {
    transform: translateX(18px);
}

.cookie-switch input:focus-visible + .cookie-switch__track {
    outline: 2px solid var(--sky);
    outline-offset: 2px;
}

.cookie-switch input:disabled + .cookie-switch__track {
    background: var(--grass);
    opacity: 0.6;
}

.cookie-switch__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.cookie-switch__hint {
    font-weight: 400;
    color: var(--muted);
}

@media (max-width: 860px) {
    .cookie-banner__inner {
        grid-template-areas:
            "intro"
            "actions"
            "settings";
        grid-template-columns: 1fr;
    }

    .cookie-banner__actions {
        justify-content: stretch;
    }

    .cookie-banner__actions .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 560px) {
    .cookie-banner__actions .btn {
        width: 100%;
    }
}

/* 24. Tulostus -------------------------------------------------------------- */

@media print {
    .site-header,
    .site-footer,
    .cta-panel,
    .modal,
    .cookie-banner {
        display: none !important;
    }

    body {
        background: #fff;
    }
}
