/* Loyalvault — portada */

:root {
    --paper: #FFFFFF;
    --mist: #EEF2F9;
    --ink: #0F1A33;
    --muted: #55607A;
    --blue: #1661DD;
    --blue-deep: #0B3A8F;
    --laser: #F0353B;
    --line: #D9E0EC;
    --wrap: 1140px;
    --font: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    font-size: 1.125rem;
    line-height: 1.55;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }

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

.skip {
    position: absolute; left: 16px; top: -60px; z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

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

h1, h2 { font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 20px; }

.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.45; color: var(--ink); max-width: 34em; }
p + p { margin-top: 14px; }
.split-copy p:not(.lead) { color: var(--muted); max-width: 36em; }

/* --- Nav --- */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
    font: 600 .9rem var(--font); color: var(--muted); background: none;
    border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; cursor: pointer;
}
.lang:hover { color: var(--ink); border-color: var(--ink); }
.nav-cta {
    font-weight: 700; font-size: .95rem; text-decoration: none;
    background: var(--ink); color: #fff; padding: 9px 18px; border-radius: 999px;
}
.nav-cta:hover { background: var(--blue); }

/* --- Hero --- */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { color: var(--muted); }

/* The barcode: the moment at the till, scanned once on arrival */
.barcode { position: relative; width: min(100%, 390px); margin: 36px 0 34px; }
.barcode svg { display: block; width: 100%; height: auto; fill: var(--ink); }
.barcode .digits text { font: 600 8.4px var(--font); letter-spacing: 1.6px; font-variant-numeric: tabular-nums; }
.laser {
    position: absolute; left: -4%; right: -4%; top: 38%; height: 3px; border-radius: 3px;
    background: var(--laser);
    box-shadow: 0 0 10px 2px rgba(240, 53, 59, .55), 0 0 28px 6px rgba(240, 53, 59, .25);
    opacity: 0; transform: scaleX(0);
}
@media (prefers-reduced-motion: no-preference) {
    .laser { animation: scan 1.6s cubic-bezier(.2, .7, .2, 1) .5s 1 both; }
    .barcode svg { animation: read .3s ease-out 1.25s 1 both; }
}
@keyframes scan {
    0%   { opacity: 0; transform: scaleX(0); }
    25%  { opacity: 1; transform: scaleX(1); }
    45%  { opacity: .55; }
    55%  { opacity: 1; }
    80%  { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(1); }
}
@keyframes read {
    0%   { fill: var(--ink); }
    40%  { fill: var(--blue); }
    100% { fill: var(--ink); }
}

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
    display: inline-flex; align-items: center; gap: 12px;
    min-width: 196px; padding: 11px 22px 11px 18px;
    background: var(--ink); color: #fff; border-radius: 14px; text-decoration: none;
    font-weight: 700; font-size: 1.2rem; line-height: 1.1; letter-spacing: -0.01em;
    transition: background .15s, transform .15s;
}
.store svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.store small { display: block; font-weight: 500; font-size: .72rem; letter-spacing: 0; opacity: .8; margin-bottom: 2px; }
.store:hover { background: var(--blue); }
.store:active { transform: translateY(1px); }
.hero-note { margin-top: 16px; font-size: 1rem; color: var(--muted); }

/* --- Devices --- */
.device {
    position: relative; overflow: hidden; background: #fff;
    border: 9px solid var(--ink); border-radius: 46px;
    box-shadow: 0 30px 60px -24px rgba(15, 26, 51, .35), 0 10px 20px -12px rgba(15, 26, 51, .2);
}
.device-android { border-radius: 34px; }
.device img { width: 100%; }

.hero-shots { position: relative; display: flex; justify-content: center; padding: 0 0 0 12%; }
.hero-shots .device-iphone { width: min(300px, 70%); position: relative; z-index: 2; }
.hero-shots .device-android {
    width: min(270px, 62%); position: absolute; z-index: 1;
    left: 2%; top: 9%; transform: rotate(-7deg);
}

/* --- Bands --- */
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-mist { background: var(--mist); }
.split { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(36px, 7vw, 96px); align-items: center; }
.split-flip .split-shot { order: 2; }
.split-shot { display: flex; justify-content: center; }
.split-shot > .device { width: min(300px, 78%); }

.ticks { margin-top: 28px; display: grid; gap: 16px; max-width: 36em; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
    background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.aside {
    margin-top: 22px !important; padding: 14px 18px; border-left: 3px solid var(--blue);
    background: var(--paper); border-radius: 0 10px 10px 0; color: var(--ink) !important;
}

/* --- Watches --- */
.watches { gap: clamp(20px, 4vw, 40px); align-items: flex-end; }
.watches figure { text-align: center; }
.watches figcaption { margin-top: 14px; font-size: .95rem; font-weight: 600; color: var(--muted); }
.watch { overflow: hidden; background: #000; border: 8px solid #1d2230; box-shadow: 0 24px 48px -20px rgba(15, 26, 51, .45); }
.watch-apple { width: clamp(140px, 17vw, 196px); border-radius: 40px; border-width: 9px; }
.watch-wear { width: clamp(140px, 17vw, 196px); border-radius: 50%; }
.watch-wear img { transform: scale(1.04); }

/* --- Privacy facts --- */
.narrow { max-width: 16em; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 28px; }
.facts > div { padding: 24px 0; border-top: 1px solid var(--line); }
.facts dt { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.facts dd { color: var(--muted); max-width: 30em; }
.more { margin-top: 28px; }
.more a { font-weight: 700; color: var(--blue); text-underline-offset: 4px; }

/* --- Download --- */
.download { background: var(--blue); color: #fff; padding: clamp(72px, 10vw, 128px) 0; position: relative; overflow: hidden; }
.download::after {
    /* Faint bars echoing the hero barcode */
    content: ""; position: absolute; inset: auto -10% -30% auto; width: 520px; height: 420px;
    background: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 6px, transparent 6px 14px, rgba(255,255,255,.07) 14px 16px, transparent 16px 26px);
    transform: rotate(-12deg); pointer-events: none;
}
.download-inner { position: relative; z-index: 1; text-align: center; }
.download h2 { margin-bottom: 14px; }
.download .lead { color: rgba(255, 255, 255, .88); margin: 0 auto; }
.stores-big { justify-content: center; gap: 28px; margin-top: 40px; }
.stores-big > div { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stores-big p { font-size: .98rem; color: rgba(255, 255, 255, .85); }
.store-light { background: #fff; color: var(--ink); min-width: 220px; }
.store-light:hover { background: var(--ink); color: #fff; }

/* --- Footer --- */
.footer { padding: 32px 0 40px; font-size: .95rem; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* --- Responsive --- */
@media (max-width: 880px) {
    .hero-grid, .split { grid-template-columns: minmax(0, 1fr); }
    .hero-shots { padding: 12px 0 0 18%; max-width: 440px; margin: 0 auto; width: 100%; }
    .split-flip .split-shot { order: 0; }
    .split-shot > .device { width: min(260px, 70%); }
    .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
    body { font-size: 1.05rem; }
    .wrap { padding: 0 16px; }
    .nav-cta { display: none; }
    .stores { flex-direction: column; align-items: stretch; }
    .store { min-width: 0; }
    .stores-big > div { width: 100%; }
    .stores-big .store { width: 100%; justify-content: center; }
    .device { border-width: 7px; border-radius: 36px; }
    .device-android { border-radius: 28px; }
    .barcode { width: min(100%, 300px); margin: 28px 0 28px; }
    .hero-shots { padding: 8px 0 0; }
    .hero-shots .device-android { display: none; }
    .hero-shots .device-iphone { width: min(260px, 72%); }
}
