/* getbookfirst.com — Bookside. Colours and type follow the App Store screenshots:
   cream paper, terracotta, Poppins headlines. */
@font-face { font-family: "Poppins"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-semibold.woff") format("woff"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-style: normal; font-display: swap; src: url("/assets/fonts/poppins-bold.woff") format("woff"); }

:root {
    --paper: #FBF7EF;
    --cream: #F6EFDF;
    --sand: #EFE5D2;
    --clay: #C37A5D;
    --clay-deep: #A85E43;
    --clay-wash: #F4E4DA;
    --ink: #2D2A26;
    --ink-2: #5E574F;
    --ink-3: #8A8278;
    --line: #E6DCCB;
    --night: #1F1E1D;
    --night-2: #2B2926;
    --display: "Poppins", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1120px;
    --gutter: 24px;
    --section: clamp(80px, 10vw, 136px);
    --card-radius: 28px;
    color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 17px/1.6 var(--body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--clay-deep); }
a:hover { color: var(--clay); }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 6px; }

/* One language at a time: <html data-lang> is set before the page paints. */
html:not([data-lang="fr"]) [data-l="fr"],
html[data-lang="fr"] [data-l="en"] { display: none !important; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font: 600 13px/1 var(--display); letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--clay-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 640px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { max-width: 780px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.08; font-weight: 700; margin-top: 16px; }
.section-head p { margin-top: 16px; font-size: 19px; color: var(--ink-2); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(246, 239, 223, 0.86);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, background-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(251, 247, 239, 0.9); }
.site-header .container { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font: 600 19px/1 var(--display); letter-spacing: -0.01em; }
.brand:hover { color: var(--ink); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 1px 2px rgba(45, 42, 38, .18); }
.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(45, 42, 38, 0.06); }
.lang-switch button {
    border: 0; background: none; cursor: pointer; padding: 5px 10px; border-radius: 999px;
    font: 600 12px/1 var(--display); letter-spacing: 0.04em; color: var(--ink-3);
}
.lang-switch button.current { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(45, 42, 38, .14); }
.btn-dark {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none; white-space: nowrap;
    background: var(--ink); color: #fff; font: 600 14px/1 var(--display); padding: 11px 18px; border-radius: 999px;
}
.btn-dark:hover { color: #fff; background: #000; }

/* ---------- App Store badge ---------- */
.store-badge {
    display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
    background: #000; color: #fff; border-radius: 13px; padding: 9px 20px 9px 15px;
    font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
    transition: transform .15s ease, box-shadow .15s ease;
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .55);
}
.store-badge:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .6); }
.store-badge svg { width: 26px; height: 26px; fill: currentColor; flex: none; margin-top: -2px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.05; }
.store-badge small { font-size: 11px; letter-spacing: 0.02em; opacity: .92; }
.store-badge strong { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); overflow: hidden; }
.hero .container {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: end;
    min-height: min(calc(100svh - 68px), 820px);
}
.hero-copy { align-self: center; padding-block: 56px 72px; }
.pill {
    display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px;
    background: #fff; color: var(--ink);
    font: 600 14px/1 var(--display); letter-spacing: -0.005em;
    box-shadow: 0 1px 2px rgba(45, 42, 38, 0.06), 0 10px 24px -14px rgba(45, 42, 38, 0.35);
}
.pill-icon {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--clay); color: #fff;
}
.pill-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.hero h1 { font-size: clamp(46px, 5.8vw, 80px); line-height: 1; font-weight: 700; margin-top: 26px; letter-spacing: -0.035em; }
.hero h1 .accent { white-space: nowrap; }
.hero h1 .accent { color: var(--clay); }
.hero .lede { margin-top: 26px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); max-width: 30em; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 36px; }
.cta-note { font-size: 15px; color: var(--ink-3); }
.hero-visual { height: clamp(440px, 74svh, 700px); overflow: hidden; align-self: end; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
    position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 30px 28px 32px;
    counter-increment: step;
}
.step::before {
    content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px;
    background: var(--clay-wash); color: var(--clay-deep); font: 700 19px/1 var(--display);
}
.step h3 { font-size: 21px; line-height: 1.25; font-weight: 600; margin-top: 22px; }
.step p { margin-top: 10px; color: var(--ink-2); font-size: 16px; }

/* ---------- Features ---------- */
.features { background: var(--paper); }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 9vw, 120px); }
.feature.flip .shot-card { order: 2; }
.feature h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; font-weight: 700; margin-top: 16px; }
.feature p { margin-top: 18px; font-size: 18px; color: var(--ink-2); max-width: 30em; }
.ticks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink); font-size: 16px; }
.ticks li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; border-radius: 50%;
    background: var(--clay-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A85E43' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.shot-card {
    border-radius: var(--card-radius); overflow: hidden; aspect-ratio: 1 / 1.02;
    background: var(--cream); border: 1px solid rgba(45, 42, 38, 0.05);
}
.shot-card.clay { background: var(--clay); }
.shot-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.feature .shot-card { aspect-ratio: 4 / 5; }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: clamp(72px, 9vw, 120px); }
.trio .shot-card { aspect-ratio: 1 / 1.08; }
.trio h3 { font-size: 22px; line-height: 1.25; font-weight: 600; margin-top: 22px; }
.trio p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* ---------- Classics ---------- */
.classics { background: var(--night); color: #F3EEE6; overflow: hidden; }
.classics .section-head h2 { color: #fff; }
.classics .section-head p { color: #BDB5AA; }
.classics .eyebrow { color: #E39B7C; }
.shelf { position: relative; }
.shelf::before, .shelf::after {
    content: ""; position: absolute; top: 0; bottom: 0; width: min(12vw, 140px); z-index: 2; pointer-events: none;
}
.shelf::before { left: 0; background: linear-gradient(90deg, var(--night), transparent); }
.shelf::after { right: 0; background: linear-gradient(-90deg, var(--night), transparent); }
.shelf-track { display: flex; gap: 22px; width: max-content; animation: drift 70s linear infinite; padding-block: 8px 28px; }
.shelf:hover .shelf-track { animation-play-state: paused; }
.shelf-track img {
    width: clamp(118px, 13vw, 158px); aspect-ratio: 2 / 3; object-fit: cover; border-radius: 6px;
    box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
}
@keyframes drift { to { transform: translateX(-50%); } }
.classics-note { margin-top: 28px; text-align: center; color: #9F978C; font-size: 15px; }

/* ---------- Promise ---------- */
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.promise div { padding: 28px; border-radius: 24px; background: var(--cream); }
.promise svg { width: 30px; height: 30px; stroke: var(--clay-deep); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.promise h3 { font-size: 19px; font-weight: 600; margin-top: 18px; line-height: 1.3; }
.promise p { margin-top: 8px; font-size: 16px; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-layout .section-head { position: sticky; top: 108px; margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 22px 2px; font: 600 18px/1.35 var(--display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--cream)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D2A26' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
    transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 2px 24px; color: var(--ink-2); font-size: 17px; max-width: 38em; }

/* ---------- Final call ---------- */
.final { padding-bottom: var(--section); }
.final-card {
    position: relative; overflow: hidden; border-radius: 36px; background: var(--clay); color: #fff;
    padding: clamp(48px, 7vw, 88px) clamp(28px, 6vw, 80px); text-align: center;
}
.final-card::before, .final-card::after {
    content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.08);
}
.final-card::before { width: 420px; height: 420px; right: -120px; top: -180px; }
.final-card::after { width: 300px; height: 300px; left: -110px; bottom: -150px; }
.final-card > * { position: relative; }
.final-card img.app-icon { width: 84px; height: 84px; border-radius: 20px; margin: 0 auto; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .5); }
.final-card h2 { color: #fff; font-size: clamp(32px, 4.6vw, 56px); line-height: 1.06; font-weight: 700; margin-top: 26px; }
.final-card p { margin: 16px auto 0; max-width: 34em; font-size: 19px; color: rgba(255, 255, 255, 0.88); }
.final-card .cta-row { justify-content: center; }
.final-card .cta-note { color: rgba(255, 255, 255, 0.8); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 40px 48px; font-size: 15px; color: var(--ink-3); }
.site-footer .container { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.site-footer .brand { font-size: 17px; }
.site-footer .brand img { width: 28px; height: 28px; border-radius: 7px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink-2); text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.footer-end { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* ---------- Legal and help pages ---------- */
.page-head { background: var(--cream); padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); }
.page-head h1 { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; font-weight: 700; margin-top: 16px; }
.page-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }
.prose { max-width: 740px; margin-inline: auto; padding: clamp(40px, 6vw, 72px) var(--gutter) var(--section); }
.prose h2 { font-size: 30px; font-weight: 700; margin: 0 0 18px; }
.prose h3 { font-size: 20px; font-weight: 600; margin: 40px 0 10px; line-height: 1.3; letter-spacing: -0.01em; }
.prose p, .prose li { color: var(--ink-2); font-size: 17px; line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 6px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .legal-section > h2:first-child { display: none; }
.legal-card { margin-top: 22px; padding: 26px 28px; border-radius: 22px; background: var(--cream); }
.legal-card dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 22px; }
.legal-card dt { font-weight: 600; color: var(--ink); }
.legal-card dd { margin: 0; color: var(--ink-2); }

/* ---------- Small screens ---------- */
@media (max-width: 960px) {
    .nav { display: none; }
    .hero .container { grid-template-columns: 1fr; gap: 0; min-height: 0; }
    .hero-copy { padding-block: 48px 36px; text-align: center; }
    .hero .lede { margin-inline: auto; }
    .hero .cta-row { justify-content: center; }
    .hero-visual { height: clamp(380px, 62svh, 560px); max-width: 460px; width: 100%; margin-inline: auto; }
    .feature, .feature.flip { grid-template-columns: 1fr; }
    .feature.flip .shot-card { order: 0; }
    .shot-card { max-width: 520px; width: 100%; }
    .trio { grid-template-columns: 1fr; max-width: 520px; }
    .steps, .promise { grid-template-columns: 1fr; }
    .faq-layout { grid-template-columns: 1fr; }
    .faq-layout .section-head { position: static; }
}
@media (max-width: 560px) {
    :root { --gutter: 18px; }
    body { font-size: 16px; }
    .site-header .container { gap: 12px; }
    .header-end .btn-dark { display: none; }
    .site-footer .container { flex-direction: column; align-items: flex-start; }
    .footer-end { margin-left: 0; }
    .legal-card dl { grid-template-columns: 1fr; gap: 2px; }
    .legal-card dd { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .shelf-track { animation: none; overflow-x: auto; width: auto; }
    .shelf { overflow-x: auto; }
    .store-badge { transition: none; }
}
