/* Cima Books public site: the app's visual language (ui/app/app.css) — cream paper, navy ink, pine accent, Newsreader
   for the voice, Source Sans 3 for the interface. Fonts are the app's own self-hosted files under /fonts. No inline
   styles anywhere (the CSP is style-src 'self'). Dark mode is its own set of steps, matched to the app's. */
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/newsreader-italic.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("/fonts/source-sans-3.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f6f2ea; --card: #fffdf9; --surface: #f8f4ec; --line: #e9e3d7; --line-strong: #d9d1c2;
  --ink: #12223a; --ink-2: #4c586a; --ink-3: #6b717b;
  --accent: #0e5e52; --accent-hover: #0b4f45; --accent-ink: #0b5246; --accent-soft: #e3efe9;
  --gold: #9a7120; --warn-ink: #7a5200; --warn-soft: #faefd5; --good-ink: #1b6a30;
  --hero-a: #12223a; --hero-b: #0f3a3a; --hero-ink: #f6f2ea; --hero-ink-2: rgba(246, 242, 234, .78);
  --shadow: 0 1px 1px rgba(18, 34, 58, .04), 0 2px 10px rgba(18, 34, 58, .05);
  --shadow-lift: 0 10px 30px rgba(18, 34, 58, .18);
  --radius: 18px;
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --ui: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: var(--ui); font-size: 17px; line-height: 1.55; color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; font-feature-settings: "kern", "liga";
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #14181d; --card: #1b2026; --surface: #20262d; --line: #2a3139; --line-strong: #39424c;
    --ink: #f1ede4; --ink-2: #b8b3a7; --ink-3: #9a9ea4;
    --accent: #3aae99; --accent-hover: #48c0aa; --accent-ink: #84d6c4; --accent-soft: #16302b;
    --gold: #d8b468; --warn-ink: #f0c362; --warn-soft: #2d2410; --good-ink: #7fd38f;
    --hero-a: #1d2c40; --hero-b: #133a37;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35); --shadow-lift: 0 10px 30px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { min-height: 100vh; background: var(--paper); }
a { color: var(--accent-ink); text-underline-offset: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- header / footer ---------- */
.site-head { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; gap: 4px 18px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.site-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent-ink); }
.site-nav .nav-sign-in { color: var(--accent-ink); }
@media (max-width: 720px) {
  .site-head { position: static; }
  .site-head .wrap { padding-top: 10px; padding-bottom: 10px; }
  .site-nav { margin-left: 0; width: 100%; gap: 2px 16px; }
}
.site-foot { margin-top: 72px; border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--ink-2); font-size: 15px; }
.site-foot .wrap { display: grid; gap: 14px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-foot a { color: var(--ink-2); }

/* ---------- type & building blocks ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(38px, 7vw, 64px); }
h2 { font-size: clamp(28px, 4.4vw, 40px); }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(18px, 2.3vw, 21px); color: var(--ink-2); max-width: 46em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0 0 10px; }
.muted { color: var(--ink-2); }
.small { font-size: 15px; }
section.band { padding: 56px 0; }
section.band + section.band { border-top: 1px solid var(--line); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1px solid var(--accent); background: var(--accent); color: #fffdf9; box-shadow: var(--shadow); }
.btn:hover { background: var(--accent-hover); }
.btn.ghost { background: var(--card); color: var(--accent-ink); border-color: var(--line-strong); }
.btn.ghost:hover { background: var(--surface); }
@media (prefers-color-scheme: dark) { .btn { color: #0f1a17; } .btn.ghost { color: var(--accent-ink); } }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid.two { grid-template-columns: repeat(2, 1fr); } .grid.three { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .grid.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 720px) and (max-width: 979px) { .grid.four { grid-template-columns: repeat(2, 1fr); } }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 26px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 10px; height: 6px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.notice { display: block; border-radius: 14px; padding: 14px 18px; background: var(--warn-soft); color: var(--warn-ink); border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent); font-weight: 600; margin: 0 0 24px; }
.notice strong { color: inherit; }

/* ---------- landing ---------- */
.hero { padding: 56px 0 40px; display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.2fr .8fr; padding-top: 80px; } }
.hero h1 em { font-style: italic; color: var(--accent-ink); }
.phone { border-radius: 32px; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lift); overflow: hidden; background: var(--card); max-width: 340px; margin: 0 auto; }
.shots { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .shots { grid-template-columns: repeat(3, 1fr); } }
.shots figure { margin: 0; }
.shots figcaption { margin-top: 12px; color: var(--ink-2); font-size: 15px; text-align: center; }
.shot-note { margin-top: 16px; color: var(--ink-3); font-size: 14px; text-align: center; }
.feature-group h3 { margin-bottom: 10px; }
.feature-group ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.feature-group li { margin: 3px 0; }
.dark-band { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: var(--hero-ink); border-radius: 26px; padding: 36px 26px; }
.dark-band .eyebrow { color: #9fe0cf; }
.dark-band p, .dark-band li { color: var(--hero-ink-2); }
.dark-band .btn { background: #f6f2ea; color: #12223a; border-color: #f6f2ea; }
.big-num { font-family: var(--display); font-size: clamp(40px, 6vw, 56px); line-height: 1; margin: 6px 0 12px; font-variant-numeric: tabular-nums lining-nums; }

/* ---------- pricing ---------- */
.plans { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 720px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 12px; }
.plan.lead { border: 2px solid var(--accent); }
.plan .tag { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 10px; border-radius: 999px; }
.price { font-family: var(--display); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.price small { font-family: var(--ui); font-size: 16px; color: var(--ink-2); white-space: nowrap; }
.plan .checks { font-size: 15.5px; }

/* ---------- long-form pages (security, privacy, terms, switch) ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--ink-2); font-weight: 700; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 48px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; }
