/* bookuma.app. Colours are the app's own tokens (src/theme/tokens.ts), light and the warm dark; headings use the
   app's serif (Georgia on iPhone, Noto Serif on Android). No web fonts and no scripts (CSP in netlify.toml). */
:root {
  color-scheme: light dark;
  --bg: #f6efe4;
  --surface: #fffaf2;
  --surface-alt: #efe4d3;
  --ink: #2b2118;
  --ink-soft: #6b5b4b;
  --border: #e2d4bf;
  --gold: #e8b547;
  --gold-ink: #3a2a0c;
  --accent: #875a0f;
  --shelf: #8a5a32;
  --phone: #1c1510;
  --serif: Georgia, "Noto Serif", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17110c;
    --surface: #231a13;
    --surface-alt: #30251b;
    --ink: #f4e7d2;
    --ink-soft: #c7b49a;
    --border: #45372a;
    --gold: #f2c35b;
    --gold-ink: #2a1d06;
    --accent: #f2c35b;
    --shelf: #5a3b22;
    --phone: #000;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px/1 var(--serif); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav a { text-decoration: none; font-weight: 600; color: var(--ink-soft); padding: 10px 4px; }
.top nav a:hover, .top nav a:focus-visible { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; padding-top: 16px; padding-bottom: 48px; }
.hero h1 { font: 700 clamp(34px, 8.5vw, 52px)/1.08 var(--serif); margin: 0 0 16px; letter-spacing: -0.01em; }
.hero h1 span { display: inline; }
.hero h1 span + span::before { content: " "; }
.lead { font-size: clamp(18px, 2.4vw, 20px); color: var(--ink-soft); margin: 0 0 24px; max-width: 34em; }
.stores { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.stores li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
/* Same visible height for both badges: Google's art carries its own clear space (250 px tall art, 646 wide). */
.badge-ios { height: 48px; width: auto; }
.badge-play { height: 70px; width: auto; margin: -11px -10px; }
.soon { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.stores .off { opacity: 0.92; }

/* Phone frames around real screenshots */
.phone { margin: 0 auto; width: min(300px, 78vw); padding: 10px; border-radius: 42px; background: var(--phone);
  box-shadow: 0 24px 48px rgba(40, 24, 8, 0.28), 0 2px 0 rgba(255, 255, 255, 0.06) inset; }
.phone img { border-radius: 32px; width: 100%; aspect-ratio: 9 / 20; object-fit: cover; object-position: top; }
.phone.small { width: min(250px, 66vw); border-radius: 36px; padding: 8px; }
.phone.small img { border-radius: 28px; }

/* Features: headline beside its screen, alternating sides on wide screens */
.features { padding-top: 24px; padding-bottom: 24px; }
.feature { display: grid; grid-template-columns: 1fr; gap: 24px; align-items: center; padding: 32px 0; border-top: 1px solid var(--border); }
.feature h2 { font: 700 clamp(26px, 5.5vw, 40px)/1.15 var(--serif); margin: 0; text-align: center; }
.feature h2 span { display: block; }

/* Privacy and price strip, like the app's cards */
.promise { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px 24px; margin: 24px 0 48px; text-align: center; }
.promise p { margin: 0 auto; max-width: 36em; }
.promise .big { font: 700 clamp(22px, 4vw, 30px)/1.3 var(--serif); margin-bottom: 12px; }
.promise .small { color: var(--ink-soft); }

/* Closing call to action */
.cta { text-align: center; padding-bottom: 56px; }
.cta h2 { font: 700 clamp(26px, 5vw, 38px)/1.15 var(--serif); margin: 0 0 20px; }
.cta .stores { justify-content: center; }

/* Support page */
.page { max-width: 760px; }
.page h1 { font: 700 clamp(32px, 7vw, 46px)/1.1 var(--serif); margin: 16px 0 12px; }
.page h2 { font: 700 26px/1.2 var(--serif); margin: 40px 0 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; margin: 0 0 12px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 650; position: relative; min-height: 48px; }
[dir="rtl"] .faq summary { padding: 16px 20px 16px 52px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset-inline-end: 20px; top: 12px; font: 400 26px/1 var(--sans); color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 16px; }
.faq .a { padding: 0 20px 16px; color: var(--ink-soft); }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin-bottom: 0; }
.guides { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.guides a { color: var(--accent); font-weight: 600; }
.contact { background: var(--surface-alt); border-radius: 20px; padding: 24px; margin: 32px 0 56px; }
.contact h2 { margin-top: 0; }
.contact a { color: var(--accent); font-weight: 700; word-break: break-all; }

/* 404 */
.lost { text-align: center; padding: 48px 0 64px; }
.lost h1 { font: 700 clamp(30px, 6vw, 44px)/1.15 var(--serif); margin: 0 0 12px; }
.button { display: inline-block; background: var(--gold); color: var(--gold-ink); text-decoration: none; font-weight: 700;
  padding: 14px 28px; border-radius: 999px; margin-top: 16px; }

/* Footer */
.foot { border-top: 1px solid var(--border); padding-top: 24px; padding-bottom: 40px; color: var(--ink-soft); font-size: 15px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 16px; padding: 0; list-style: none; }
.foot .links a { display: inline-block; padding: 6px 0; font-weight: 600; }
.foot .langs { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0 0 16px; padding: 0; list-style: none; }
.foot .langs a, .foot .langs b { display: inline-block; padding: 6px 0; }
.foot .langs b { color: var(--ink); }
.foot small { display: block; }

@media (min-width: 900px) {
  /* Desktop reads from further away: 18 px body, a 22 px hero line (coordinator review, 20 Nov). */
  body { font-size: 18px; }
  .lead { font-size: 22px; }
  .foot { font-size: 16px; }
  .hero { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; padding-top: 40px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(34px, 4.2vw, 52px); }
  .hero h1 span { display: block; }
  .hero h1 span + span::before { content: none; }
  .feature { grid-template-columns: 1fr 1fr; padding: 48px 0; }
  /* Each headline leans toward its screen. */
  .feature h2 { text-align: end; }
  .feature:nth-child(even) h2 { text-align: start; }
  .feature:nth-child(even) .phone { order: -1; }
}
@media (prefers-reduced-motion: no-preference) {
  .top nav a, .foot a { transition: color 0.15s; }
}
