/* Landing page (/ and /uk/). Dark only, styled after muse.ai (see
   docs/superpowers/specs/2026-09-24-muse-style-landing-design.md). Loads after
   style.css, which provides the fonts and the cookie banner. */

/* :root[data-theme] outranks style.css's [data-theme="dark"], so these tokens win. */
:root, :root[data-theme] {
    color-scheme: dark;
    --bg: #181819;
    --panel: #232326;
    --text: #ffffff;
    --muted: rgba(242, 247, 255, 0.53);
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(56, 56, 56, 0.8);
    --radius: 24px;
    --maxw: 1200px;
}

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { line-height: 1.5; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }

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

.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; left: 12px; top: -60px; z-index: 60;
    padding: 10px 14px; border-radius: 10px; background: var(--text); color: var(--bg);
    font-size: 14px; font-weight: 500; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ── Header: transparent over the hero, a blurred bar once the page scrolls ── */
.hero-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 30; color: var(--text);
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}
.hero-bar.is-scrolled {
    background: rgba(24, 24, 25, 0.72); border-bottom-color: var(--border);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
}
.hero-bar__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand {
    display: inline-flex; align-items: center; gap: 10px; color: var(--text);
    font-size: 17px; font-weight: 600; letter-spacing: -0.02em;
}
.brand svg { width: 22px; height: 22px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav__link, .lang-link {
    font-size: 14px; color: rgba(255, 255, 255, 0.74);
    padding: 6px 10px; border-radius: 8px; transition: color 0.15s, background 0.15s;
}
.nav__link:hover, .lang-link:hover { color: #ffffff; background: rgba(255, 255, 255, 0.08); }
.lang-link { font-weight: 500; letter-spacing: 0.02em; }
.nav .pill-btn { margin-left: 8px; }
@media (max-width: 760px) { .nav__link { display: none; } }

/* ── Buttons ── */
.pill-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    height: 36px; padding: 0 16px 0 12px; border-radius: 999px;
    background: rgba(255, 255, 255, 0.12); color: #ffffff;
    font-size: 14px; font-weight: 500; line-height: 20px; white-space: nowrap;
    transition: background 0.15s ease;
}
.pill-btn:hover { background: rgba(255, 255, 255, 0.18); }
.pill-btn svg { flex: none; }
.pill-btn--glass {
    padding: 0 12px 0 16px; background: var(--glass); box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.pill-btn--glass:hover { background: rgba(72, 72, 72, 0.85); }

.store-btn {
    display: inline-flex; align-items: center; gap: 10px;
    background: var(--text); color: var(--bg);
    padding: 10px 22px 10px 18px; border-radius: 999px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.store-btn:hover { opacity: 0.88; transform: translateY(-1px); }
.store-btn svg { width: 22px; height: 22px; flex: none; }
.store-btn__text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-btn__text small { font-size: 10px; opacity: 0.85; letter-spacing: 0.02em; }
.store-btn__text strong { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.store-btn--light { background: #ffffff; color: #000000; }
.store-btn--sm { padding: 8px 14px 8px 12px; gap: 6px; font-size: 14px; font-weight: 500; }
.store-btn--sm svg { width: 15px; height: 15px; }

.meta-line { font-size: 13px; color: var(--muted); }

/* ── Shared type ── */
.section { padding: 104px 0; }
@media (max-width: 760px) { .section { padding: 72px 0; } }
.eyebrow { display: inline-block; margin-bottom: 14px; font-size: 14px; font-weight: 500; color: var(--muted); }
.h2 { font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 760px) { .h2 { font-size: 32px; line-height: 38px; } }
.lead { font-size: 18px; line-height: 26px; color: var(--muted); max-width: 58ch; }
.text-link { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.media { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--panel); }
.media > img, .media > video { width: 100%; height: 100%; object-fit: cover; }

/* ── Hero ── */
.hero { position: relative; display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; }
.hero__content {
    flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
    padding-top: calc(72px + 7vh); padding-bottom: 120px;
}
@media (min-width: 768px) { .hero__content { padding-top: calc(80px + 12vh); } }
@media (min-width: 1024px) { .hero__content { padding-top: calc(88px + 18vh); } }
@media (min-width: 1024px) and (max-height: 850px) { .hero__content { padding-top: calc(88px + 14vh); } }

/* Type scale and spacing follow muse's hero headline. */
.hero__title {
    width: 100%; margin: 0 0 16px;
    font-size: 47px; line-height: 52px; font-weight: 500; letter-spacing: -0.01em;
}
@media (max-height: 699px) { .hero__title { font-size: 34px; line-height: 40px; } }
@media (min-width: 768px) { .hero__title { font-size: 48px; line-height: 56px; } }
@media (min-width: 1024px) { .hero__title { font-size: 62.445px; line-height: 1.1; } }
.hero__line { display: block; overflow-wrap: anywhere; }

/* Phrases stack in one grid cell, as on muse: the outgoing and incoming phrase
   overlap while they swap, and the script adds an invisible copy of every
   phrase so the slot stays as tall as the tallest one. */
.hero__slot { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__phrase, .hero__measure { grid-area: 1 / 1; width: max-content; max-width: 100%; }
.hero__phrase { place-self: start center; }
.hero__measure { justify-self: center; visibility: hidden; }
.hero__measure::before { content: attr(data-text); }
.hero__measure[data-icon]::after { content: attr(data-icon); padding-inline: 0.14em; }
.hero__word { display: inline-block; max-width: 100%; }
.hero__emoji { padding-inline: 0.14em; }

.hero__sub { font-size: 18px; line-height: 26px; color: var(--muted); max-width: 46ch; margin: 0 auto 32px; }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.hero__chips li {
    display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border-radius: 999px; background: rgba(255, 255, 255, 0.06);
    font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.8);
}
.hero__chips svg { width: 14px; height: 14px; color: var(--muted); }
.hero__more { position: absolute; left: 50%; bottom: 32px; transform: translateX(-50%); }

/* ── Budget video right after the hero ── */
.showcase { padding: 24px 0 0; scroll-margin-top: 64px; }
.showcase__media { width: min(100%, 640px); aspect-ratio: 1; margin: 0 auto; border-radius: 32px; }

/* ── What it does: one band per feature, bands and sides alternate ── */
.features { padding-top: 120px; }
.features__head { text-align: center; margin-bottom: 64px; }
.features-list { list-style: none; }
.feature { padding: 96px 0; }
.feature:nth-child(odd) { background: var(--panel); }
.feature__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.feature:nth-child(even) .feature__media { order: -1; }
.feature__title { font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: -0.01em; max-width: 16ch; margin-bottom: 16px; }
.feature p { font-size: 18px; line-height: 26px; color: var(--muted); max-width: 44ch; }
.feature p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.feature__media { justify-self: center; border-radius: 28px; background: var(--bg); }
.feature:nth-child(even) .feature__media { background: var(--panel); }
.feature__media--tall { height: min(560px, 72vh); aspect-ratio: 600 / 1299; }
.feature__media--video { height: min(560px, 72vh); aspect-ratio: 9 / 16; }
.feature__media--square { width: min(100%, 480px); aspect-ratio: 1; }
@media (max-width: 900px) {
    .feature { padding: 64px 0; }
    .feature__inner { grid-template-columns: 1fr; gap: 36px; }
    .feature:nth-child(even) .feature__media { order: 0; }
    .feature__title { font-size: 30px; line-height: 36px; }
    .feature__media--tall, .feature__media--video { height: auto; width: min(100%, 280px); }
    .feature__media--square { width: min(100%, 420px); }
}

/* ── Privacy ── */
.privacy { padding: 120px 0; }
.privacy__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.privacy__title { font-size: 40px; line-height: 46px; font-weight: 500; letter-spacing: -0.01em; max-width: 18ch; margin-bottom: 16px; }
.privacy__lead { font-size: 18px; line-height: 26px; color: var(--muted); max-width: 48ch; }
.privacy__lead a { color: var(--text); }
.privacy__grid { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.privacy__grid li { padding: 24px; border-radius: 20px; background: var(--panel); }
.privacy__grid h3 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 6px; }
.privacy__grid p { font-size: 15px; line-height: 22px; color: var(--muted); }
@media (max-width: 900px) { .privacy__inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) {
    .privacy { padding: 80px 0; }
    .privacy__title { font-size: 32px; line-height: 38px; }
    .privacy__grid { grid-template-columns: 1fr; }
}

/* ── Reviews. Without JS the rows scroll by hand; the script clones cards
   until each row can loop without a gap, then turns the animation on. ── */
.reviews { overflow: hidden; }
.reviews__head { text-align: center; margin-bottom: 52px; }
.reviews__head .lead { margin: 14px auto 0; }
.marquee { display: flex; flex-direction: column; gap: 16px; }
.marquee__row { overflow-x: auto; scrollbar-width: none; }
.marquee__row::-webkit-scrollbar { display: none; }
.marquee__track { --gap: 16px; display: flex; gap: var(--gap); width: max-content; padding: 0 24px; }
.marquee.is-animated {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee.is-animated .marquee__row { overflow: hidden; }
.marquee.is-animated .marquee__track { padding: 0; animation: marquee-scroll var(--duration, 60s) linear infinite; }
.marquee.is-animated .marquee__row--reverse .marquee__track { animation-direction: reverse; }
.marquee.is-animated:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee-scroll { to { transform: translateX(var(--shift, -50%)); } }
.review-card {
    flex: 0 0 auto; width: 340px; min-height: 190px; display: flex; flex-direction: column;
    padding: 24px; border-radius: 20px; background: var(--panel);
}
.review-card__stars { font-size: 13px; letter-spacing: 3px; color: #f5a623; margin-bottom: 14px; }
.review-card__text { font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
.review-card__author { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.review-card__name { font-weight: 500; }
.review-card__meta { font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .review-card { width: 280px; padding: 20px; } }

/* ── FAQ ── */
.faq-section { border-top: 1px solid var(--border); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.faq-wrap .lead { margin-top: 16px; }
.faq-wrap .lead a { color: var(--text); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } }
.faq__item { border-top: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    gap: 24px; padding: 22px 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font: inherit; letter-spacing: inherit; }
.faq__item summary svg { flex: none; color: var(--muted); transition: transform 0.2s ease; }
.faq__item[open] summary svg { transform: rotate(45deg); }
.faq__item p { padding: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 68ch; }
.faq__item p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ── Closing call to action ── */
.final { text-align: center; padding: 136px 0; border-top: 1px solid var(--border); }
.final h2 { font-size: 48px; line-height: 56px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 16px; }
@media (min-width: 1024px) { .final h2 { font-size: 62.445px; line-height: 1.1; } }
@media (max-width: 560px) { .final h2 { font-size: 38px; line-height: 44px; } }
.final h2 span { display: block; color: var(--muted); }
.final p { font-size: 18px; line-height: 26px; color: var(--muted); margin-bottom: 32px; }

/* ── Footer: who makes Expensa, then columns of links. The guides column is
   how the home page links every guide in its language. ── */
.page-footer { border-top: 1px solid var(--border); padding: 64px 0 56px; font-size: 14px; line-height: 20px; color: var(--muted); }
.page-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.page-footer__about { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.page-footer__about .brand { color: var(--text); margin-bottom: 4px; }
.page-footer__about p { max-width: 30ch; text-wrap: balance; }
.page-footer__about p a { color: var(--text); }
.page-footer__badges { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.page-footer__nav { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.page-footer__nav h2 { font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text); margin-bottom: 14px; }
.page-footer__nav ul { list-style: none; display: grid; gap: 10px; }
.page-footer__nav a, .page-footer__nav button { color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-align: left; }
.page-footer__nav a:hover, .page-footer__nav button:hover, .page-footer__about p a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.lang-switch { display: inline-flex; gap: 14px; margin-top: 10px; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--text); }
.lang-switch [aria-current="page"] { color: var(--text); font-weight: 500; }
@media (max-width: 900px) { .page-footer__inner { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) {
    .page-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
    .page-footer__nav > :first-child { grid-column: 1 / -1; }
}

/* ── Sticky download bar on phones, shown once the hero is out of view ── */
.getbar {
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; display: none;
    align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px;
    border-radius: 18px; border: 1px solid var(--border); color: #ffffff;
    background: rgba(35, 35, 38, 0.9); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    transform: translateY(140%); transition: transform 0.3s ease;
}
.getbar.is-visible { transform: none; }
.getbar .store-btn { background: #ffffff; color: #000000; }
.getbar__text { display: flex; flex-direction: column; font-size: 14px; line-height: 1.3; }
.getbar__text span { color: var(--muted); font-size: 12px; }
@media (max-width: 760px) { .getbar { display: flex; } .page-footer { padding-bottom: 96px; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
