/* === Variables === */
:root {
    /* Editorial Swiss palette — matches the in-app design and the App Store frames */
    --ink: #14140f;            /* near-black headlines / text */
    --ink-soft: #5e5d57;       /* muted body text */
    --bg: #f3f3e7;             /* warm off-white page — same value as the screenshots */
    --bg-alt: #eaeade;         /* slightly deeper section band */
    --dark: #0e0e0c;           /* near-black dark sections */

    --red: #d52b1e;            /* Swiss flag red */
    --red-dark: #b51f15;
    --red-tint: #fbe7e4;
    --gold: #a8842c;           /* bronze accent (used on dark) */
    --gold-tint: #f2ead7;
    --forest: #2f6f4e;         /* alpine green — the "correct" green in the app */
    --forest-tint: #e6efe9;

    --card: #ffffff;
    --text: #14140f;
    --text-muted: #5e5d57;
    --radius: 14px;
    --radius-sm: 10px;
    --line: rgba(20,20,15,0.10);
    --shadow: 0 1px 2px rgba(20,20,15,0.04), 0 6px 20px rgba(20,20,15,0.05);
    --shadow-lg: 0 12px 40px rgba(20,20,15,0.12);
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }

/* === Utilities === */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.text-accent { color: var(--red); }

.eyebrow, .section-tag {
    display: inline-block;
    font-size: 0.78rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.16em;
    color: var(--red); margin-bottom: 18px;
}

/* === Nav === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(243,243,231,0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}
.navbar.scrolled { background: rgba(243,243,231,0.96); border-bottom-color: var(--line); }
.nav-container {
    max-width: 1120px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}
.nav-back {
    display: flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px;
    color: var(--ink-soft); transition: all 0.2s;
    margin-right: 4px;
}
.nav-back:hover { background: rgba(20,20,15,0.06); color: var(--ink); }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.nav-icon { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 2px 8px rgba(20,20,15,0.12); }
.logo-text { color: var(--ink); }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta {
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
    padding: 9px 20px; border-radius: 999px;
    background: var(--red); color: #fff;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); background: var(--red-dark); box-shadow: 0 6px 16px rgba(213,43,30,0.35); }

/* Mobile toggle */
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.mobile-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.3s; }

@media (max-width: 900px) {
    .nav-links, .nav-cta { display: none; }
    .mobile-toggle { display: flex; }
    .nav-links.open {
        display: flex; flex-direction: column; gap: 0;
        position: absolute; top: 64px; left: 0; right: 0;
        background: var(--bg); border-bottom: 1px solid var(--line);
        padding: 16px 24px;
    }
    .nav-links.open a { padding: 12px 0; font-size: 1rem; }
}

/* === Hero === */
.hero {
    position: relative; overflow: hidden;
    padding: 150px 0 120px;
    background: var(--bg);
}
.hero-flag { position: absolute; top: 96px; right: 40px; z-index: 1; line-height: 0; }
.hero-flag svg { border-radius: 6px; box-shadow: 0 6px 18px rgba(213,43,30,0.22); }

.hero-content { display: flex; align-items: center; gap: 56px; position: relative; z-index: 2; }
.hero-text { flex: 1; }
.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.3rem); font-weight: 900;
    line-height: 1.0; letter-spacing: -0.035em; color: var(--ink);
    margin-bottom: 24px;
}
.hero h1 .rule {
    display: block; width: 68px; height: 4px; border-radius: 2px;
    background: var(--red); margin-top: 24px;
}
.hero-subtitle { font-size: 1.12rem; color: var(--ink-soft); max-width: 480px; margin-bottom: 32px; line-height: 1.6; }
.hero-actions { margin-bottom: 44px; }
.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-number { font-size: 1.9rem; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; line-height: 1; }
.stat-label { font-size: 0.74rem; font-weight: 600; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.1em; }

.hero-visual { flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.hero-shot {
    width: 320px; border-radius: 20px;
    border: 1px solid var(--line);
    box-shadow: 0 30px 70px rgba(20,20,15,0.16), 0 8px 24px rgba(20,20,15,0.08);
}

@media (max-width: 900px) {
    .hero { padding: 130px 0 90px; }
    .hero-content { flex-direction: column-reverse; text-align: center; gap: 40px; }
    .hero h1 .rule { margin-left: auto; margin-right: auto; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; flex-wrap: wrap; gap: 28px; }
    .hero-actions { display: flex; justify-content: center; }
    .hero-flag { display: none; }
    .hero-shot { width: 260px; }
}
@media (max-width: 560px) {
    .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 320px; margin: 0 auto; }
    /* The hero frame is a tall 9:19.5 screenshot — keep it from pushing the headline off-screen */
    .hero-shot { width: 200px; }
}

/* === Section Headers === */
.section-header { text-align: center; margin-bottom: 56px; }
.section-header .section-tag { margin-bottom: 14px; }
.section-header h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 900;
    letter-spacing: -0.03em; line-height: 1.04; color: var(--ink);
}
.section-header p.section-lede {
    max-width: 620px; margin: 18px auto 0;
    font-size: 1rem; color: var(--ink-soft); line-height: 1.65;
}
.section-header.light h2 { color: #fff; }
.section-header.light .section-tag { color: var(--gold); }
.section-header.light p.section-lede { color: rgba(255,255,255,0.62); }

/* === Features === */
.features { padding: 104px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card {
    background: var(--card); border-radius: var(--radius); padding: 30px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(20,20,15,0.16); }
.feature-icon {
    width: 50px; height: 50px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 20px;
}
.feature-icon.red { background: var(--red-tint); color: var(--red); }
.feature-icon.gold { background: var(--gold-tint); color: var(--gold); }
.feature-icon.forest { background: var(--forest-tint); color: var(--forest); }
.feature-icon.ink { background: rgba(20,20,15,0.07); color: var(--ink); }
.feature-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.feature-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.55; }

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

/* === Topics === */
.topics { padding: 104px 0; background: var(--bg-alt); }
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.topic-card {
    background: var(--card); border-radius: var(--radius); padding: 28px 24px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    transition: transform 0.3s, box-shadow 0.3s;
}
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.topic-card.pack { border-color: rgba(213,43,30,0.28); background: linear-gradient(180deg, #fff, var(--red-tint)); }
.topic-icon { color: var(--forest); margin-bottom: 14px; }
.topic-icon svg { width: 30px; height: 30px; display: block; }
.topic-card.pack .topic-icon { color: var(--red); }
.topic-card h4 { font-size: 1.02rem; font-weight: 800; margin-bottom: 6px; letter-spacing: -0.01em; }
.topic-card p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.55; }

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

/* === Cantons (dark band) === */
.cantons { padding: 104px 0; background: var(--dark); }
.canton-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 56px; }
.canton-fact {
    background: rgba(255,255,255,0.05); border-radius: var(--radius); padding: 28px;
    border: 1px solid rgba(255,255,255,0.09);
    transition: transform 0.3s, background 0.3s, border-color 0.3s;
}
.canton-fact:hover { transform: translateY(-4px); background: rgba(255,255,255,0.09); border-color: rgba(255,255,255,0.16); }
.canton-fact-icon {
    width: 46px; height: 46px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px; background: var(--red); color: #fff;
}
.canton-fact-icon.gold { background: var(--gold); }
.canton-fact-icon.forest { background: var(--forest); }
.canton-fact-icon.plain { background: #fff; color: var(--ink); }
.canton-fact h3 { color: #fff; font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }
.canton-fact p { color: rgba(255,255,255,0.58); font-size: 0.88rem; line-height: 1.55; }

.canton-list {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    max-width: 820px; margin: 0 auto 22px;
}
.canton-chip {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 8px 14px; border-radius: 999px;
    background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.78);
    border: 1px solid rgba(255,255,255,0.10);
}
.canton-chip.pack { background: var(--red); color: #fff; border-color: var(--red); }
.canton-note {
    text-align: center; font-size: 0.84rem; color: rgba(255,255,255,0.45);
    max-width: 620px; margin: 0 auto; line-height: 1.6;
}

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

/* === Interview === */
.interview { padding: 104px 0; }
.interview-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.interview-cats { display: flex; flex-direction: column; gap: 14px; }
.interview-cat {
    background: var(--card); border-radius: var(--radius); padding: 22px 24px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
    display: flex; align-items: flex-start; gap: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}
.interview-cat:hover { transform: translateX(4px); box-shadow: var(--shadow-lg); }
.interview-cat-count {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 10px;
    background: var(--ink); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 1rem;
}
.interview-cat h4 { font-size: 1rem; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.01em; }
.interview-cat p { font-size: 0.86rem; color: var(--ink-soft); line-height: 1.5; }
.interview-visual { display: flex; justify-content: center; }
.interview-visual img {
    width: 300px; border-radius: 20px; border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(20,20,15,0.16);
}
.interview-quote {
    margin-top: 40px; padding: 28px 32px;
    background: var(--forest-tint); border-left: 4px solid var(--forest);
    border-radius: var(--radius-sm);
    font-size: 1rem; color: var(--ink); line-height: 1.65;
}

@media (max-width: 900px) {
    .interview-layout { grid-template-columns: 1fr; gap: 40px; }
    .interview-visual { order: -1; }
    .interview-visual img { width: 260px; }
}

/* === Screenshots === */
.screenshots { padding: 104px 0; background: var(--bg-alt); }
.screenshots-wrapper {
    display: flex; align-items: center; gap: 16px;
    max-width: 1200px; margin: 0 auto; padding: 0 16px;
}
.screenshots-scroll {
    flex: 1; min-width: 0;
    display: flex; gap: 20px; overflow-x: auto;
    padding: 8px 0 20px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }
.screenshot-item { flex-shrink: 0; width: 260px; scroll-snap-align: start; }
.screenshot-item img {
    width: 100%; border-radius: 18px;
    border: 1px solid var(--line);
    box-shadow: 0 10px 36px rgba(20,20,15,0.12);
    transition: transform 0.3s ease;
}
.screenshot-item img:hover { transform: scale(1.03); }
.screenshot-caption {
    text-align: center; margin-top: 14px;
    font-size: 0.74rem; font-weight: 700; color: var(--ink-soft);
    text-transform: uppercase; letter-spacing: 0.1em;
}
.scroll-btn {
    flex-shrink: 0; width: 48px; height: 48px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line);
    color: var(--ink-soft); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 8px rgba(20,20,15,0.08);
}
.scroll-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 768px) {
    .scroll-btn { width: 36px; height: 36px; }
    .screenshots-wrapper { gap: 8px; padding: 0 8px; }
}
@media (max-width: 560px) { .screenshot-item { width: 180px; } }

/* === Sources === */
.sources { padding: 104px 0; }
.sources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.source-card {
    background: var(--card); border-radius: var(--radius); padding: 30px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
}
.source-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.source-card p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.6; }
.source-card .source-tag {
    display: inline-block; font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--forest); background: var(--forest-tint);
    padding: 5px 10px; border-radius: 999px; margin-bottom: 14px;
}
.source-refs {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin-top: 40px;
}
.source-ref {
    font-size: 0.78rem; font-weight: 600; color: var(--ink-soft);
    padding: 8px 14px; border-radius: 999px;
    background: #fff; border: 1px solid var(--line);
}
@media (max-width: 900px) { .sources-grid { grid-template-columns: 1fr; } }

/* === Pricing === */
.pricing { padding: 104px 0; background: var(--bg-alt); }
.pricing-grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
    max-width: 840px; margin: 0 auto;
}
.price-card {
    background: var(--card); border-radius: var(--radius); padding: 36px 32px;
    box-shadow: var(--shadow); border: 1px solid var(--line);
}
.price-card.full { border-color: rgba(213,43,30,0.3); box-shadow: var(--shadow-lg); }
.price-label {
    display: inline-block; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--ink-soft); margin-bottom: 12px;
}
.price-card.full .price-label { color: var(--red); }
.price-card h3 { font-size: 1.6rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 6px; }
.price-card .price-sub { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 24px; }
.price-list { display: flex; flex-direction: column; gap: 11px; }
.price-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--ink-soft); line-height: 1.5; }
.price-list li svg { flex-shrink: 0; width: 17px; height: 17px; margin-top: 3px; color: var(--forest); }
@media (max-width: 700px) { .pricing-grid { grid-template-columns: 1fr; } }

/* === CTA === */
.cta { padding: 96px 0 112px; }
.cta-card {
    position: relative; overflow: hidden;
    text-align: center; padding: 72px 40px; border-radius: 24px;
    background: var(--dark);
    color: #fff; display: flex; flex-direction: column; align-items: center;
}
.cta-card::before {
    content: ""; position: absolute; top: -40%; left: 50%; transform: translateX(-50%);
    width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(213,43,30,0.25), transparent 60%);
    pointer-events: none;
}
.cta-card > * { position: relative; z-index: 1; }
.cta-icon {
    width: 88px; height: 88px; border-radius: 22px;
    margin: 0 auto 24px; box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}
.cta-card h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; letter-spacing: -0.03em; margin-bottom: 10px; }
.cta-card p { font-size: 1.05rem; opacity: 0.78; margin-bottom: 32px; }

/* === Footer === */
.footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-icon { width: 32px; height: 32px; border-radius: 8px; box-shadow: 0 2px 6px rgba(20,20,15,0.1); }
.footer-copy { font-size: 0.82rem; color: var(--ink-soft); }
.footer-disclaimer {
    max-width: 1120px; margin: 20px auto 0; padding: 0 24px;
    font-size: 0.76rem; color: var(--ink-soft); opacity: 0.8; line-height: 1.6;
}
@media (max-width: 640px) { .footer-inner { flex-direction: column; text-align: center; } }

/* === Animations === */
[data-animate] {
    opacity: 0; transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-animate].visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-animate] { opacity: 1; transform: none; transition: none; }
    * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
