/* Fjelltoppjakten – site styles */

:root {
    --night: #0d1b2a;
    --night-2: #15283d;
    --ridge-1: #1e3a56;
    --ridge-2: #183049;
    --snow: #f6f7f3;
    --paper: #ffffff;
    --ink: #142233;
    --ink-soft: #4a5a6c;
    --line: #dfe4e8;
    --blue: #2f74f0;
    --green: #1ec08f;
    --dawn: #ffb877;
    --radius: 18px;
    --wrap: 1140px;
    --display: "Fraunces", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--snow);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: 1.1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }

.eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--dawn);
    margin: 0 0 1rem;
}
.eyebrow.dark { color: var(--blue); }

/* Navigation */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(13, 27, 42, .86);
    backdrop-filter: saturate(140%) blur(12px);
    -webkit-backdrop-filter: saturate(140%) blur(12px);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
}
.brand img { border-radius: 9px; }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: rgba(255, 255, 255, .8); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: #fff; }
.nav-links .nav-cta {
    color: var(--night);
    background: #fff;
    padding: 8px 16px;
    border-radius: 999px;
    font-weight: 600;
}
.nav-links .nav-cta:hover { color: var(--night); background: var(--snow); }

/* Hero */

.hero {
    position: relative;
    color: #fff;
    background:
        radial-gradient(ellipse 70% 55% at 75% 105%, rgba(255, 184, 119, .35), transparent 70%),
        linear-gradient(180deg, var(--night) 0%, var(--night-2) 70%, #2a3f57 100%);
    padding: 72px 0 0;
    overflow: hidden;
}
.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 48px;
    align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--dawn); }
.lead { font-size: 1.2rem; color: rgba(255, 255, 255, .82); max-width: 34em; margin: 0 0 2rem; }

.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.store-buttons.center { justify-content: center; }

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 16px;
    border-radius: 14px;
    background: #fff;
    color: var(--night);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.1;
    transition: transform .15s ease, box-shadow .15s ease;
}
.store-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: .72rem; font-weight: 500; opacity: .7; }

.rating { margin: 1.5rem 0 0; font-size: .92rem; color: rgba(255, 255, 255, .7); }
.stars { color: var(--dawn); letter-spacing: 2px; margin-right: 6px; }

.hero-photo { position: relative; margin: 0 0 96px; }
.hero-photo img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 30%;
    border-radius: 28px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}

.checkin-badge {
    position: absolute;
    left: -24px;
    bottom: 32px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 18px 10px 10px;
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    font-size: .92rem;
    line-height: 1.3;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
.checkin-badge strong { display: block; color: var(--ink); }
.checkin-badge .pin { width: 40px; height: 40px; }
.checkin-badge .pin svg { width: 22px; height: 22px; }

.device {
    width: min(320px, 76vw);
    height: auto;
    filter: drop-shadow(0 40px 50px rgba(20, 34, 51, .28));
}

.ridges { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 200px; z-index: 1; }
.ridges .r1 { fill: var(--ridge-1); opacity: .7; }
.ridges .r2 { fill: var(--ridge-2); }
.ridges .r3 { fill: var(--night); }

/* Stats */

.stats { background: var(--night); color: #fff; padding: 8px 0 64px; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: 40px;
}
.stat strong {
    display: block;
    font-family: var(--display);
    font-size: clamp(2rem, 4vw, 2.9rem);
    line-height: 1.1;
}
.stat span { color: rgba(255, 255, 255, .65); font-size: .95rem; }

/* Sections */

.section { padding: 104px 0; }
.section.alt { background: var(--paper); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 0; }

.body-lg { font-size: 1.12rem; color: var(--ink-soft); }

/* Steps */

.steps { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 28px; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; }
.steps h3 { margin: 6px 0 .25em; }
.steps p { margin: 0; color: var(--ink-soft); }

.pin {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.6rem;
    box-shadow: 0 6px 16px rgba(20, 34, 51, .18);
}
.pin svg { width: 28px; height: 28px; }
.pin-blue { background: var(--blue); }
.pin-walk { background: var(--ink); }
.pin-green { background: var(--green); }

.illustration { margin: 0; }

.photo-card {
    margin: 0;
    padding: 12px 12px 16px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 50px rgba(20, 34, 51, .16);
}
.photo-card img { width: 100%; border-radius: 12px; aspect-ratio: 1 / 1; object-fit: cover; }
.photo-card figcaption { margin-top: 12px; font-size: .9rem; color: var(--ink-soft); text-align: center; }
.tilt-left { transform: rotate(-2deg); }
.tilt-right { transform: rotate(2deg); }

.story { margin-bottom: 56px; }
.story .photo-card { max-width: 440px; justify-self: center; }

.clippings { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.clippings img { aspect-ratio: 3 / 4; }

.community .photo-card { max-width: 440px; justify-self: center; }
.community .social { justify-content: flex-start; }
.illustration img {
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(20, 34, 51, .18);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    width: 100%;
}

/* Features */

.feature-phone { display: flex; justify-content: center; }
.feature-phone .device { transform: rotate(-3deg); }

.features { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 14px; }
.features li {
    position: relative;
    padding-left: 34px;
    color: var(--ink-soft);
}
.features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round' d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.features strong { color: var(--ink); }

/* Timeline */

.timeline { list-style: none; padding: 0; margin: 3rem 0 0; position: relative; }
.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 40px;
    width: 2px;
    background: var(--line);
}
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--snow);
    border: 3px solid var(--blue);
}
.timeline li.now::before { background: var(--green); border-color: var(--green); }
.timeline .year { font-weight: 700; color: var(--ink); }
.timeline p { margin: 2px 0 0; color: var(--ink-soft); }

/* Quotes and press */

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 2.5rem; }
.quote {
    margin: 0;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--snow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
}
.quote blockquote { margin: 0; font-family: var(--display); font-size: 1.3rem; line-height: 1.4; font-weight: 600; }
.quote figcaption { font-size: .9rem; color: var(--ink-soft); }
.quote figcaption a { color: inherit; }

.press-title { margin: 72px 0 0; font-size: 1.25rem; text-align: center; }

.press {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.press a {
    display: block;
    height: 100%;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-decoration: none;
    color: var(--ink);
    transition: border-color .15s ease;
}
.press a:hover { border-color: var(--blue); }
.press small { display: block; margin-bottom: 4px; font-size: .8rem; font-weight: 600; color: var(--blue); }
.press strong { display: block; font-weight: 600; line-height: 1.35; }

/* Community */

.social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2rem; }
.social a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--line);
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
}
.social a:hover { border-color: var(--blue); color: var(--blue); }
.social svg { width: 20px; height: 20px; }

/* Download CTA */

.cta {
    color: #fff;
    background:
        radial-gradient(ellipse 60% 70% at 50% 0%, rgba(255, 184, 119, .25), transparent 70%),
        var(--night);
    padding: 104px 0;
}
.cta-icon { margin: 0 auto 28px; border-radius: 22px; box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
.cta .lead { margin-left: auto; margin-right: auto; }

/* Footer */

.footer { background: #08121d; color: rgba(255, 255, 255, .7); padding: 56px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer h3 { color: #fff; font-family: var(--sans); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.footer p { margin: 0 0 .4em; }
.footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand { margin-bottom: 12px; }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }

/* Legal pages */

.legal-hero {
    color: #fff;
    background:
        radial-gradient(ellipse 60% 80% at 80% 0%, rgba(255, 184, 119, .2), transparent 70%),
        var(--night);
    padding: 72px 0 56px;
}
.legal-hero h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: .3em; }
.legal-meta { margin: 0; font-size: .95rem; color: var(--ink-soft); }
.legal-hero .legal-meta { color: rgba(255, 255, 255, .7); }
.legal-hero .legal-meta a { color: #fff; }

.legal { padding: 56px 0 96px; }
.legal h2 { font-size: 1.6rem; margin: 2.2em 0 .6em; scroll-margin-top: 88px; }
.legal h3 { margin: 1.8em 0 .5em; }
.legal p, .legal li { color: var(--ink-soft); }
.legal strong { color: var(--ink); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 72px 0 0; }
.legal .legal-lang { margin-top: 1.6em; }

.legal-toc {
    padding: 24px 28px;
    border-radius: var(--radius);
    background: var(--paper);
    border: 1px solid var(--line);
}
.legal-toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 32px; }
.legal-toc li { margin: 0 0 .35em; break-inside: avoid; }
.legal-toc a { text-decoration: none; }
.legal-toc a:hover { text-decoration: underline; }

/* Responsive */

@media (max-width: 900px) {
    .hero { padding-top: 48px; }
    .hero-inner, .split { grid-template-columns: 1fr; gap: 48px; }
    .hero-text { text-align: center; }
    .hero-photo { max-width: 460px; margin: 0 auto 88px; }
    .checkin-badge { left: 12px; }
    .community .social { justify-content: center; }
    .community > div { text-align: center; }
    .hero .lead { margin-left: auto; margin-right: auto; }
    .hero .store-buttons { justify-content: center; }
    .split.reverse > :first-child { order: 1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
    .quotes { grid-template-columns: 1fr; }
    .press { grid-template-columns: repeat(2, 1fr); }
    .section { padding: 72px 0; }
}

@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 16px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .press { grid-template-columns: 1fr; }
    .clippings { grid-template-columns: 1fr; }
    .legal-toc ol { columns: 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .quote { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .store-btn { transition: none; }
}
