/* booksathand.com in the app's own look: its colours (app.css :root, light and dark), Arimo, the
   brand mark, the button, and the public pages' footer (the Terms and Privacy pages'). Keep these
   matching app.css when the app's change. */
@font-face { font-family: "Arimo"; font-weight: 400 500; font-display: swap; src: url(/fonts/arimo-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Arimo"; font-weight: 600 700; font-display: swap; src: url(/fonts/arimo-latin-700-normal.woff2) format("woff2"); }
:root {
  color-scheme: light dark;
  --paper: #F7F4EC; --surface: #FFFFFF; --line: #DBD4C5; --ink: #1B201E; --ink-muted: #5B635E;
  --forest: #1E5B4B; --forest-hover: #164536; --on-forest: #FFFFFF; --focus-ring: #1E5B4B;
  --radius-md: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #121212; --surface: #1E1E1E; --line: #383838; --ink: #E3E3E3; --ink-muted: #A0A0A0;
    --forest: #5DB79B; --forest-hover: #74C6AB; --on-forest: #0D1A15; --focus-ring: #74C6AB;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 16px/1.55 Arimo, "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: -0.003em;
       background: var(--paper); color: var(--ink); min-height: 100vh; min-height: 100dvh;
       display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
a { color: var(--forest); }
:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1104px; margin: 0 auto; padding: 0 24px; }

/* Top: the brand mark as the app draws it (.brand) and Sign in */
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
@media (min-width: 720px) { .top .wrap { height: 76px; } }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { display: block; width: 32px; height: 32px; border-radius: 22%; }
.brand span { font-weight: 600; font-size: 22px; letter-spacing: -0.01em; line-height: 1; }
.top-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-decoration: none; font-size: 16px; font-weight: 500; }
.top-link:hover { color: var(--forest); }

main { flex: 1 0 auto; }

/* Type: each level clearly bigger or bolder than the next, on a phone too (owner, Nov 24). */
h1 { margin: 0 0 16px; font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
h2 { margin: 0 0 12px; font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -0.015em; }
h3 { margin: 0 0 6px; font-size: 19px; line-height: 25px; font-weight: 600; }
.sub { margin: 0 0 10px; font-size: 20px; line-height: 28px; font-weight: 500; color: var(--ink); }
.lead { margin: 0 0 28px; font-size: 17px; line-height: 26px; color: var(--ink-muted); }
.small { font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.block p { margin: 0; font-size: 17px; line-height: 26px; color: var(--ink-muted); }

.hero { padding: 48px 0 56px; max-width: 700px; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cta .btn { padding: 0 22px; font-size: 16px; font-weight: 600; }   /* standard size, never full width (the app's rule) */

.block { border-top: 1px solid var(--line); padding: 40px 0; }
.block.last { padding-bottom: 64px; }
.steps-block h2 { font-size: 28px; line-height: 34px; letter-spacing: -0.02em; margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.num { display: block; margin-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--forest); }
.steps p { font-size: 16px; line-height: 25px; }

@media (min-width: 720px) {
  .wrap { padding: 0 32px; }
  h1 { font-size: 60px; line-height: 64px; margin-bottom: 20px; }
  h2 { font-size: 28px; line-height: 34px; }
  h3 { font-size: 20px; line-height: 26px; margin-bottom: 8px; }
  .sub { font-size: 24px; line-height: 32px; margin-bottom: 12px; }
  .lead { font-size: 18px; line-height: 28px; margin-bottom: 32px; }
  .small { font-size: 15px; }
  .hero { padding: 104px 0 96px; }
  .cta { flex-direction: row; align-items: center; gap: 20px; }
  .block { padding: 56px 0; }
  .block.last { padding-bottom: 96px; }
  .block p { font-size: 18px; line-height: 28px; max-width: 560px; }
  .row { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 48px; align-items: start; }
  .row h2 { margin: 0; }
  .row p { margin-top: 4px; }
  .steps-block { padding: 72px 0 80px; }
  .steps-block h2 { font-size: 34px; line-height: 40px; margin-bottom: 40px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
  .num { margin-bottom: 10px; }
}

/* The app's button (standard size) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px;
       border-radius: var(--radius-md); background: var(--forest); color: var(--on-forest); text-decoration: none;
       font-weight: 500; font-size: 15px; white-space: nowrap; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.btn:hover { background: var(--forest-hover); }

/* The footer: the same as the app's public pages (logo, the three flags, ©, Terms and Privacy) */
.site-foot { flex: none; width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px 32px;
             font-size: 12.5px; line-height: 1.6; color: var(--ink-muted); text-align: center; }
.site-foot p { margin: 0; }
.site-foot p + p { margin-top: 4px; }
.site-foot a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.site-foot a:hover { color: var(--ink); }
.foot-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px; color: var(--ink) !important; font-size: 15px; font-weight: 700; text-decoration: none !important; }
.foot-brand img { display: block; border-radius: 22%; }
.foot-reach { display: flex; justify-content: center; }
.foot-flags { display: inline-flex; gap: 6px; }
.foot-flags img { display: block; width: 18px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12); }
.foot-links { display: inline-flex; align-items: baseline; gap: 8px; margin-left: 4px; white-space: nowrap; }
.foot-links::before { content: "·"; }
@media (max-width: 719px) {
  .foot-links { display: flex; justify-content: center; margin: 2px 0 0; }
  .foot-links::before { content: none; }
}
@media (prefers-reduced-motion: no-preference) { .btn { transition: background-color .15s ease; } }
