/* ==========================================================================
   Impact by XenGolf - home page (fi / en / sv)
   Design tokens follow the Impact brand already used in /versiohistoria/.
   Legacy pages (privacy, accessibility, tasoituslaskuri) still use index.css.
   ========================================================================== */

:root {
    --bg:            #FAFAFA;
    --bg-white:      #FFFFFF;
    --bg-dark:       #1C1C1C;
    --bg-darker:     #141414;
    --bg-card-dark:  #252525;
    --bg-input:      #414141;
    --bg-chip:       #F0F2F5;

    --gold:          #D7C7A3;
    --teal:          #0C514E;
    --green:         #198754;
    --ink:           #1C1C1C;
    --ink-strong:    #212529;
    --ink-muted:     #495057;
    --ink-faint:     #6C757D;

    --on-dark:       #FAFAFA;
    --on-dark-muted: #C9C9C9;
    --on-dark-faint: #7A7A7A;

    --line:          #DEE2E6;
    --line-dark:     #3A3A3A;
    --pill-dark:     #343A40;

    --maxw:          1240px;
    --pad-x:         40px;
    --radius:        16px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink-strong);
    font-family: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--green); }

h1, h2, h3, h4 { margin: 0; font-weight: 700; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }

button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--gold); }

/* --------------------------------------------------------------- helpers */

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

.skip-link {
    position: absolute;
    top: -60px; left: 16px;
    z-index: 100;
    padding: 12px 20px;
    background: var(--bg-dark);
    color: var(--on-dark);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    transition: top 160ms ease;
}
.skip-link:focus { top: 16px; color: var(--on-dark); }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
}

.section { padding: 88px var(--pad-x); }

.eyebrow {
    font-size: 12px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 700;
}
.eyebrow--gold {
    color: var(--gold);
    font-size: 11px;
    letter-spacing: .18em;
}

.section-title {
    font-size: 40px;
    line-height: 1.15;
    font-weight: 700;
    color: var(--ink-strong);
}
.section-title--dark { color: var(--on-dark); }

.lead {
    font-size: 17px;
    line-height: 1.65;
    color: var(--ink-muted);
}

/* ------------------------------------------------------------------- nav */

.nav-scrim {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 132px;
    z-index: 14;
    pointer-events: none;
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0,0,0,.55) 68%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 38%, rgba(0,0,0,.55) 68%, rgba(0,0,0,0) 100%);
}

.nav-wrap {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 16px var(--pad-x) 0;
    display: flex;
    justify-content: center;
}

.nav-rail {
    width: 100%;
    max-width: var(--maxw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 9px 14px 9px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,.6);
    backdrop-filter: blur(18px) saturate(170%);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid rgba(255,255,255,.6);
    box-shadow: 0 10px 30px rgba(28,28,28,.14);
}

.nav-logo {
    display: flex;
    align-items: center;
    flex: none;
}
.nav-logo img { height: 36px; width: auto; display: block; }

.nav-pills {
    position: relative;
    display: flex;
    gap: 4px;
}

.nav-ind {
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 0;
    border-radius: 999px;
    background: var(--pill-dark);
    transition: transform 200ms cubic-bezier(.2,0,0,1), width 200ms cubic-bezier(.2,0,0,1);
    pointer-events: none;
}

.nav-pill {
    position: relative;
    border: 0;
    background: none;
    border-radius: 999px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    cursor: pointer;
    color: #2A2A2A;
    transition: color 240ms ease;
}
.nav-pill.is-active { color: var(--on-dark); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.lang-inline { display: flex; gap: 2px; }
.lang-inline a {
    font-size: 12.5px;
    font-weight: 500;
    color: #3A3A3A;
    padding: 5px 10px;
    border-radius: 999px;
}
.lang-inline a[aria-current="true"] {
    font-weight: 700;
    color: var(--ink);
    background: var(--gold);
}

.nav-login {
    font-size: 14px;
    font-weight: 500;
    color: #2A2A2A;
    padding: 9px 4px;
    white-space: nowrap;
}
.nav-login:hover { color: var(--teal); }

.nav-cta {
    background: var(--pill-dark);
    color: var(--on-dark);
    border-radius: 999px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}
.nav-cta:hover { background: var(--ink); color: var(--on-dark); }

/* compact language menu - mobile only */
.lang-menu-wrap { position: relative; display: none; }
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 7px 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(28,28,28,.07);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
}
.lang-toggle::after {
    content: "";
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid #5A5A5A;
}
.lang-menu {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 96px;
    padding: 5px;
    border-radius: 14px;
    background: var(--bg-white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(28,28,28,.20);
    z-index: 6;
}
.lang-menu[hidden] { display: none; }
.lang-menu a {
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 13px;
    color: var(--ink);
}
.lang-menu a[aria-current="true"] { font-weight: 700; background: var(--bg-chip); }

/* ----------------------------------------------------------------- hero */

.hero {
    margin-top: -88px;
    padding: 88px var(--pad-x) 64px;
    min-height: 760px;
    background-image:
        linear-gradient(180deg, rgba(8,24,22,.80) 0%, rgba(12,81,78,.66) 42%, rgba(8,18,16,.94) 100%),
        url("hero-image.jpg");
    background-size: cover;
    background-position: center 72%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 32px;
}

.hero-splash {
    width: 340px;
    max-width: 56%;
    height: auto;
    overflow: visible;
}

.hero-tagline {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 500;
    color: #FFFFFF;
    text-align: center;
    max-width: 20ch;
}

.hero-webapp {
    font-size: 14.5px;
    color: var(--on-dark-muted);
    border-bottom: 1px solid rgba(250,250,250,.4);
    padding-bottom: 2px;
}
.hero-webapp:hover { color: var(--gold); border-bottom-color: var(--gold); }

/* splash animation */
@keyframes lineIn   { 0%, 26% { opacity: 0; filter: blur(10px); } 100% { opacity: 1; filter: blur(0); } }
@keyframes barGrow  { from { transform: scaleY(0); }         to { transform: scaleY(1); } }
@keyframes impSlide { from { transform: translateX(318px); }  to { transform: none; } }
@keyframes powSlide { from { transform: translateX(-168px); } to { transform: none; } }

.splash-bar { animation: barGrow 460ms cubic-bezier(.2,.9,.3,1) both; transform-origin: 327px 92px; transform-box: view-box; }
.splash-imp { animation: impSlide 950ms cubic-bezier(.18,.86,.24,1) 430ms both; }
.splash-pow { animation: powSlide 900ms cubic-bezier(.18,.86,.24,1) 620ms both; }
.hero-tagline { animation: lineIn 3400ms cubic-bezier(.33,0,.2,1) 1350ms both; }

/* ---------------------------------------------------------- store badges */

.store-badges {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}
.store-badges a { display: block; border-radius: 8px; }
.store-badges img { height: 56px; width: auto; display: block; }
.store-badges--sm { justify-content: flex-start; gap: 14px; }
.store-badges--sm img { height: 52px; }

/* ---------------------------------------------------------------- intro */

.intro-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.05fr);
    gap: 64px;
    align-items: start;
}

.intro-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.intro-copy .lead { max-width: 46ch; }

.intro-credibility {
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ink-faint);
    max-width: 46ch;
    padding-left: 16px;
    border-left: 3px solid var(--gold);
}

.benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.benefit {
    display: flex;
    gap: 20px;
    align-items: center;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 22px 24px;
    box-shadow: 0 0 8px rgba(0,0,0,.10);
    transition: box-shadow 200ms ease;
}
.benefit:hover { box-shadow: 0 4px 18px rgba(0,0,0,.13); }
.benefit-icon {
    width: 52px; height: 52px;
    border-radius: 14px;
    background: var(--bg-chip);
    color: var(--teal);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
}
.benefit h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.benefit p  { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }

/* ------------------------------------------------------ dark media bands */

.band-dark { background: var(--bg-dark); }

.media-band {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.media-band .section-title--dark {
    font-size: 38px;
    line-height: 1.15;
    font-weight: 600;
    text-align: center;
}

.ls-stage {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: -10px auto 0;
    padding: 0 110px;
    overflow: hidden;
}
.ls-screen {
    width: 80%;
    height: auto;
    display: block;
    margin-left: auto;
    will-change: transform;
}
.ls-phone {
    position: absolute;
    left: 110px;
    bottom: 8%;
    width: 44%;
    height: auto;
    display: block;
    will-change: transform;
}

.app-stage {
    position: relative;
    width: 100%;
    max-width: 940px;
    margin: 12px auto 0;
    padding: 0 150px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.app-shot { height: 472px; width: auto; display: block; will-change: transform; }
.app-shot--tall { height: 520px; }

/*
 * Graceful fallback: until the real screenshots land in assets/, the <img>
 * elements carry .shot-pending, which paints a correctly-sized placeholder
 * instead of a broken-image icon. Removing the class is all that is needed.
 */
.shot-pending {
    background: linear-gradient(135deg, #2E2E2E 0%, #232323 100%);
    border: 1px dashed #4A4A4A;
    border-radius: 12px;
}
.ls-screen.shot-pending  { width: 80%; aspect-ratio: 16 / 10; }
.ls-phone.shot-pending   { width: 44%; aspect-ratio: 1 / 2; }
.app-shot.shot-pending   { width: 218px; height: 472px; }
.app-shot--tall.shot-pending { width: 240px; height: 520px; }

/* ------------------------------------------------------------- features */

.features-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.features-head-copy { display: flex; flex-direction: column; gap: 16px; }

.link-underline {
    font-size: 15px;
    font-weight: 500;
    color: var(--teal);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    white-space: nowrap;
}

.feat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 32px;
    align-items: start;
}
.feat-group { display: flex; flex-direction: column; }
.feat-group h3 {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 700;
    padding-bottom: 12px;
}

.feat-item { border-top: 1px solid var(--line); }

.feat-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 0;
    background: none;
    border: 0;
    text-align: left;
    cursor: pointer;
    min-height: 48px;
}
.feat-head > span {
    font-size: 17px;
    font-weight: 500;
    color: var(--ink);
}
.feat-knob {
    width: 30px; height: 30px;
    border-radius: 50%;
    background: var(--bg-chip);
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    line-height: 1;
    flex: none;
    transition: background 180ms ease;
}
.feat-head[aria-expanded="true"] .feat-knob { background: var(--gold); }
.feat-knob::before { content: "+"; }
.feat-head[aria-expanded="true"] .feat-knob::before { content: "\2212"; }

.feat-panel { padding: 0 0 22px; display: flex; flex-direction: column; gap: 13px; }
.feat-panel[hidden] { display: none; }
.feat-panel p { font-size: 15px; line-height: 1.6; color: var(--ink-muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
    font-size: 13.5px;
    color: var(--ink);
    background: var(--bg-chip);
    border-radius: 999px;
    padding: 7px 13px;
}

.feat-more {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--teal);
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
    align-self: flex-start;
}

/* ---------------------------------------------------------------- video */

.video-band { padding: 0 var(--pad-x) 0; background: var(--bg-dark); }
.video-wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: var(--radius);
    overflow: hidden;
}
.video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ----------------------------------------------------- XenGolf / expert */

.xg-band { background: var(--bg-darker); padding: 64px var(--pad-x); }
.xg-grid {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,1fr);
    gap: 56px;
    align-items: center;
    max-width: var(--maxw);
    margin: 0 auto;
}
.xg-grid p { color: var(--on-dark-muted); font-size: 16px; line-height: 1.65; }
.xg-grid h2 { font-size: 28px; line-height: 1.2; color: var(--on-dark); margin: 12px 0 14px; }
.xg-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--line-dark);
    border-radius: 18px;
    padding: 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.xg-card h3 { font-size: 19px; color: var(--on-dark); }
.link-gold {
    align-self: flex-start;
    color: var(--gold);
    font-weight: 500;
    font-size: 15px;
    border-bottom: 1px solid currentColor;
    padding-bottom: 2px;
}
.link-gold:hover { color: #E2D5B8; }

/* ----------------------------------------------------------------- blog */

.blog-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.blog-head-copy { display: flex; flex-direction: column; gap: 16px; }

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 28px;
}
.blog-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0,0,0,.05);
    transition: box-shadow 200ms ease, transform 200ms ease;
    color: inherit;
}
.blog-card:hover { box-shadow: 0 8px 26px rgba(0,0,0,.10); transform: translateY(-2px); color: inherit; }
.blog-thumb {
    height: 210px;
    background-image: linear-gradient(180deg, rgba(28,28,28,.08), rgba(28,28,28,.26)), url("hero-image.jpg");
    background-size: cover;
}
.blog-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; }
.blog-meta { font-size: 13px; color: var(--ink-faint); }
.blog-body h3 { font-size: 20px; line-height: 1.3; color: var(--ink); }
.blog-body p { font-size: 15px; line-height: 1.55; color: var(--ink-muted); }

/* mobile-only compact blog rows */
.blog-list { display: none; flex-direction: column; }
.blog-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    min-height: 48px;
    color: inherit;
}
.blog-row:hover { color: inherit; }
.blog-row-title { font-size: 15.5px; line-height: 1.35; font-weight: 500; color: var(--ink); }
.blog-row-chev { font-size: 17px; color: var(--ink-faint); flex: none; }

/* -------------------------------------------------------------- contact */

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 56px;
    align-items: start;
}
.contact-copy { display: flex; flex-direction: column; gap: 26px; }
.contact-copy .lead { color: var(--on-dark-muted); max-width: 44ch; }
.contact-intro { display: flex; flex-direction: column; gap: 16px; }

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    min-height: 56px;
    padding: 0 34px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    border: 0;
    text-align: center;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E2D5B8; color: var(--ink); }
.btn-outline {
    border: 1px solid #828282;
    background: none;
    color: var(--on-dark);
    min-height: 52px;
    font-size: 15.5px;
    font-weight: 500;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn[disabled] { opacity: .6; cursor: default; }

.contact-cards { display: flex; flex-direction: column; gap: 10px; }
.contact-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--line-dark);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: inherit;
}
.contact-card:hover { border-color: var(--gold); color: inherit; }
.contact-card strong { font-size: 15.5px; color: var(--on-dark); font-weight: 700; }
.contact-card span { font-size: 14.5px; line-height: 1.55; color: var(--on-dark-muted); }
.contact-card a { color: var(--gold); }
.contact-card a:hover { color: #E2D5B8; }

.form-card {
    background: var(--bg-card-dark);
    border: 1px solid var(--line-dark);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.form-card h3 { font-size: 20px; color: var(--on-dark); }
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card textarea {
    min-width: 0;
    width: 100%;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 15px 20px;
    font-size: 15px;
    font-family: inherit;
    color: var(--on-dark);
    outline: none;
    min-height: 48px;
}
.form-card textarea {
    border-radius: 20px;
    min-height: 140px;
    resize: vertical;
}
.form-card input::placeholder,
.form-card textarea::placeholder { color: #A8A8A8; }
.form-card input:focus-visible,
.form-card textarea:focus-visible { border-color: var(--gold); outline: none; }
.form-card input.is-invalid,
.form-card textarea.is-invalid { border-color: #E06B6B; }

.form-status {
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--gold);
}
.form-status[hidden] { display: none; }

.honeypot,
.form-card input.honeypot,
.newsletter-form input.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    min-width: 0;
    height: 1px;
    min-height: 0;
    padding: 0;
    opacity: 0;
    flex: none;
}

/* ----------------------------------------------------------- newsletter */

.newsletter-band {
    background: var(--bg-darker);
    border-top: 1px solid var(--line-dark);
    padding: 40px var(--pad-x);
}
.newsletter-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px 32px;
    flex-wrap: wrap;
}
.newsletter-copy h2 { font-size: 20px; color: var(--on-dark); margin-bottom: 6px; }
.newsletter-copy p { font-size: 14.5px; color: var(--on-dark-muted); }
.newsletter-right { display: flex; flex-direction: column; gap: 8px; flex: 1 1 380px; min-width: 0; max-width: 520px; }
.newsletter-form { display: flex; gap: 10px; min-width: 0; }
.newsletter-form input {
    flex: 1;
    min-width: 0;
    background: var(--bg-input);
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 14px 20px;
    font-size: 15px;
    font-family: inherit;
    color: var(--on-dark);
    outline: none;
    min-height: 48px;
}
.newsletter-form input::placeholder { color: #A8A8A8; }
.newsletter-form input:focus-visible { border-color: var(--gold); outline: none; }
.newsletter-form input.is-invalid { border-color: #E06B6B; }
.newsletter-form .btn { min-height: 48px; padding: 0 26px; font-size: 15px; flex: none; }
.newsletter-note { font-size: 12.5px; color: var(--on-dark-faint); }

/* --------------------------------------------------------------- footer */

.footer {
    background: var(--bg-darker);
    padding: 40px var(--pad-x) 48px;
}
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}
.footer-logo { height: 24px; width: auto; opacity: .9; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { font-size: 14.5px; color: var(--on-dark-muted); }
.footer-nav a:hover { color: var(--gold); }

.footer-legal {
    display: flex;
    align-items: center;
    gap: 10px 18px;
    flex-wrap: wrap;
    padding-top: 22px;
    border-top: 1px solid var(--line-dark);
}
.footer-legal a,
.footer-legal button,
.footer-legal .footer-company {
    font-size: 13.5px;
    color: var(--on-dark-faint);
    background: none;
    border: 0;
    padding: 0;
    font-family: inherit;
}
.footer-legal button { cursor: pointer; }
.footer-legal a:hover,
.footer-legal button:hover { color: var(--gold); }
.footer-copyright { font-size: 13px; color: var(--on-dark-faint); }

/* ----------------------------------------------------------- responsive */

@media (max-width: 1080px) {
    :root { --pad-x: 28px; }
    .intro-grid { gap: 40px; }
    .feat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px; }
    .ls-stage { padding: 0 70px; }
    .ls-phone { left: 70px; }
    .app-stage { padding: 0 90px; }
    .contact-grid { gap: 36px; }
    .xg-grid { gap: 36px; }
}

/* Between the mobile rail and the roomy desktop rail the full nav still has
   to fit on one line - tighten it rather than letting the page scroll. */
@media (min-width: 901px) and (max-width: 1180px) {
    .nav-rail { gap: 12px; padding: 8px 10px 8px 14px; }
    .nav-logo img { height: 28px; }
    .nav-pill { padding: 8px 12px; font-size: 13px; }
    .nav-right { gap: 8px; }
    .lang-inline a { padding: 5px 7px; font-size: 12px; }
    .nav-login { font-size: 13px; padding: 8px 2px; }
    .nav-cta { padding: 10px 16px; font-size: 13px; }
}

@media (max-width: 900px) {
    :root { --pad-x: 22px; }

    .nav-scrim { height: 96px; }
    .nav-wrap { padding: 10px var(--pad-x) 0; }
    .nav-rail {
        gap: 8px;
        padding: 5px 6px;
        background: rgba(255,255,255,.44);
        backdrop-filter: blur(22px) saturate(150%);
        -webkit-backdrop-filter: blur(22px) saturate(150%);
        box-shadow: 0 8px 22px rgba(28,28,28,.14);
    }
    /* The wordmark must never be squeezed: pin its box and let the pill row
       take the slack, scrolling horizontally on the narrowest phones. */
    .nav-logo { flex: none; padding-left: 4px; }
    .nav-logo img { height: 20px; width: 74px; }
    .nav-pills {
        flex: 1 1 auto;
        min-width: 0;
        gap: 2px;
        justify-content: flex-end;
        overflow-x: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .nav-pills::-webkit-scrollbar { display: none; }
    .nav-pill { padding: 8px 10px; font-size: 11.5px; }
    /* the rail is too narrow for four pills next to the wordmark; the hero
       is reachable by tapping the logo, so drop its pill here */
    .nav-pill[data-section="impact"] { display: none; }
    .nav-right { flex: none; }
    .lang-inline, .nav-login, .nav-cta { display: none; }
    .lang-menu-wrap { display: block; }

    .hero {
        margin-top: -102px;
        padding: 102px var(--pad-x) 34px;
        min-height: 600px;
        justify-content: center;
        gap: 22px;
        background-position: center 92%;
    }
    .hero-splash { width: 60%; max-width: 236px; }
    .hero-tagline { font-size: 19px; line-height: 1.35; }
    .store-badges { gap: 12px; }
    .store-badges img { height: 48px; }
    .store-badges--sm img { height: 44px; }

    .section { padding: 38px var(--pad-x); }
    .section-title { font-size: 26px; line-height: 1.22; }
    .media-band .section-title--dark { font-size: 22px; line-height: 1.2; }
    .lead { font-size: 15.5px; line-height: 1.6; }
    .eyebrow { font-size: 11px; }

    .intro-grid { grid-template-columns: minmax(0,1fr); gap: 26px; }
    .intro-copy .lead, .intro-credibility { max-width: none; }
    .benefit { gap: 14px; padding: 16px; }
    .benefit-icon { width: 44px; height: 44px; border-radius: 12px; font-size: 19px; }
    .benefit h3 { font-size: 15px; }
    .benefit p { font-size: 13.5px; }

    /* The screenshots are square canvases with transparent padding baked in,
       so the stage needs far less side padding here than the artboard implied
       - otherwise the devices shrink to an illegible smudge on a phone. */
    .ls-stage { max-width: none; padding: 0 20px; margin-top: 0; }
    .ls-screen { width: 94%; }
    .ls-phone { left: 20px; bottom: 2%; width: 58%; }

    .app-stage { max-width: none; padding: 0 10px; }
    .app-shot { height: 240px; }
    .app-shot--tall { height: 265px; }
    .app-shot.shot-pending { width: 122px; height: 240px; }
    .app-shot--tall.shot-pending { width: 159px; height: 265px; }

    .feat-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
    .feat-head > span { font-size: 16px; }
    .features-head { align-items: flex-start; gap: 16px; }

    .video-wrap { border-radius: 14px; }

    .xg-band { padding: 38px var(--pad-x); }
    .xg-grid { grid-template-columns: minmax(0,1fr); gap: 24px; }
    .xg-grid h2 { font-size: 22px; }
    .xg-card { padding: 20px; }

    .blog-grid { display: none; }
    .blog-list { display: flex; }
    .blog-thumb { height: 180px; }
    .blog-body h3 { font-size: 18px; }

    .contact-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
    .form-card { padding: 20px; border-radius: 16px; }
    .form-grid { grid-template-columns: minmax(0,1fr); }
    .form-card input, .form-card textarea { padding: 14px 18px; }
    .form-card textarea { min-height: 110px; }
    .btn { min-height: 48px; font-size: 15px; }

    .newsletter-band { padding: 32px var(--pad-x); }
    .newsletter-right { flex: 1 1 100%; max-width: none; }

    .footer { padding: 28px var(--pad-x) 34px; }
    .footer-top { flex-direction: column; align-items: flex-start; gap: 18px; }
    .footer-nav { gap: 14px 22px; }
}

@media (max-width: 430px) {
    .nav-rail { gap: 6px; }
    .nav-pill { padding: 8px 8px; font-size: 11px; }
    .lang-toggle { padding: 7px 8px; }
}

/* the 3-up blog grid is desktop-only; the lead card takes over on mobile */
@media (min-width: 901px) {
    .blog-lead-card { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .ls-screen, .ls-phone, .app-shot { transform: none !important; }
}

/* ==========================================================================
   Cookie consent - XenGolf theme (ported from index.css)
   ========================================================================== */

#cc-main {
    --cc-font-family: Roboto, system-ui, sans-serif;
    --cc-bg: #FFFFFF;
    --cc-primary-color: var(--ink-strong);
    --cc-secondary-color: var(--ink-muted);
    --cc-btn-primary-bg: var(--teal);
    --cc-btn-primary-color: #FFFFFF;
    --cc-btn-primary-border-color: var(--teal);
    --cc-btn-primary-hover-bg: var(--green);
    --cc-btn-primary-hover-color: #FFFFFF;
    --cc-btn-primary-hover-border-color: var(--green);
    --cc-btn-secondary-bg: var(--bg-chip);
    --cc-btn-secondary-color: var(--ink-strong);
    --cc-btn-secondary-border-color: var(--bg-chip);
    --cc-btn-secondary-hover-bg: #E2E5EA;
    --cc-btn-secondary-hover-color: var(--ink-strong);
    --cc-btn-secondary-hover-border-color: #E2E5EA;
    --cc-separator-border-color: var(--line);
    --cc-toggle-on-bg: var(--teal);
    --cc-toggle-off-bg: #B4B4B4;
    --cc-toggle-on-knob-bg: #FFFFFF;
    --cc-toggle-off-knob-bg: #FFFFFF;
    --cc-toggle-readonly-bg: #D5D9DE;
    --cc-toggle-readonly-knob-bg: #FFFFFF;
    --cc-cookie-category-block-bg: var(--bg);
    --cc-cookie-category-block-border: var(--line);
    --cc-cookie-category-block-hover-bg: var(--bg-chip);
    --cc-cookie-category-block-hover-border: var(--line);
    --cc-overlay-bg: rgba(28, 28, 28, .65);
    --cc-footer-bg: var(--bg);
    --cc-footer-color: var(--ink-muted);
    --cc-footer-border-color: var(--line);
}
#cc-main .cm { box-shadow: 0 12px 40px rgba(28, 28, 28, .18); border-radius: 16px; }
#cc-main .cm__title { font-weight: 700; }
#cc-main .cm__btn { transition: all .2s ease; border-radius: 999px; }
#cc-main .pm { border-radius: 16px; }
#cc-main .pm__title { font-weight: 700; }
#cc-main .pm__section-title { font-weight: 500; }

/* ==========================================================================
   Features detail page (/ominaisuudet/, /en/features/, /sv/funktioner/)
   ========================================================================== */

.page-header {
    background: var(--bg-dark);
    padding: 132px var(--pad-x) 64px;
    margin-top: -88px;
}
.page-header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.page-header h1 {
    font-size: 44px;
    line-height: 1.12;
    color: var(--on-dark);
}
.page-header .lead { color: var(--on-dark-muted); max-width: 62ch; }

.toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.toc a {
    font-size: 13.5px;
    color: var(--on-dark-muted);
    background: rgba(250,250,250,.07);
    border: 1px solid var(--line-dark);
    border-radius: 999px;
    padding: 7px 14px;
}
.toc a:hover { color: var(--ink); background: var(--gold); border-color: var(--gold); }

.spec {
    border-top: 1px solid var(--line);
    padding: 44px 0;
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
    scroll-margin-top: 120px;
}
.spec-head { display: flex; flex-direction: column; gap: 10px; }
.spec-head .eyebrow { color: var(--ink-faint); font-size: 11px; }
.spec-head h2 { font-size: 26px; line-height: 1.2; color: var(--ink-strong); }
.spec-head p { font-size: 15.5px; line-height: 1.6; color: var(--ink-muted); }

.spec-body { display: flex; flex-direction: column; gap: 22px; }

.spec-list { display: flex; flex-direction: column; gap: 2px; }
.spec-list > li {
    position: relative;
    padding: 11px 0 11px 24px;
    border-bottom: 1px solid var(--line);
    font-size: 15.5px;
    line-height: 1.5;
    color: var(--ink);
}
.spec-list > li::before {
    content: "";
    position: absolute;
    left: 4px; top: 19px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--gold);
}
.spec-list > li:last-child { border-bottom: 0; }

.spec-group h3 {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-weight: 700;
    padding-bottom: 8px;
}

.spec-note {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ink-faint);
    padding-left: 16px;
    border-left: 3px solid var(--gold);
}

.page-cta {
    background: var(--bg-dark);
    padding: 64px var(--pad-x);
    text-align: center;
}
.page-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}
.page-cta h2 { font-size: 30px; line-height: 1.2; color: var(--on-dark); }
.page-cta p { font-size: 16px; line-height: 1.6; color: var(--on-dark-muted); }
.page-cta .btn { align-self: center; }

@media (max-width: 900px) {
    .page-header { padding: 124px var(--pad-x) 38px; margin-top: -102px; }
    .page-header h1 { font-size: 28px; }
    .spec { grid-template-columns: minmax(0,1fr); gap: 20px; padding: 32px 0; scroll-margin-top: 96px; }
    .spec-head h2 { font-size: 22px; }
    .spec-list > li { font-size: 15px; }
    .page-cta { padding: 38px var(--pad-x); }
    .page-cta h2 { font-size: 22px; }
}
