/* Bookplate web: warm paper, ink, one oxblood accent. Mirrors the Android app's palette. */
@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f5efe3;
  --surface: #fcf9f2;
  --ink: #1f1b16;
  --ink-2: #5a5245;
  --line: #d9cfbc;
  --outline: #cfc4ae;
  --oxblood: #7e2a24;
  --oxblood-hover: #6a221d;
  --on-oxblood: #fbf7ee;
  --sand: #e9dfcb;
  --sand-deep: #ede3cf;
  --forest: #27443a;
  --error: #9c2b1f;
  --radius: 14px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--oxblood); text-underline-offset: 3px; }
a:hover { color: var(--oxblood-hover); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--forest); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.skip:hover { color: var(--paper); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: 26px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--oxblood); color: var(--on-oxblood); }
.btn-primary:hover { background: var(--oxblood-hover); color: var(--on-oxblood); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--outline); }
.btn-outline:hover { background: var(--sand-deep); color: var(--ink); border-color: var(--ink-2); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Site header */
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 22px; }
.brand:hover { color: var(--ink); }
.brand svg { width: 32px; height: 32px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding: 48px 0 88px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 16px; }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); letter-spacing: -0.02em; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--oxblood); }
.lede { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.fineprint { margin-top: 16px; font-size: 14px; color: var(--ink-2); }

/* Before / after visual */
.stage { position: relative; padding: 28px; background: var(--sand-deep); border-radius: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.stage-col { display: flex; flex-direction: column; gap: 12px; }
.stage-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.cover { aspect-ratio: 3 / 4; border-radius: 6px 10px 10px 6px; padding: 18px 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 12px 24px -12px rgba(31,27,22,.35); }
.cover-before { background: var(--surface); border: 1.5px dashed var(--outline); align-items: center; justify-content: center; color: var(--ink-2); text-align: center; font-size: 13px; gap: 10px; }
.cover-before svg { width: 36px; height: 36px; opacity: .6; }
.cover-after { background: var(--forest); color: #f1e9d6; position: relative; overflow: hidden; }
.cover-after::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(241,233,214,.45); border-radius: 3px; pointer-events: none; }
.cover-after .t { font-family: var(--serif); font-weight: 600; font-size: 22px; line-height: 1.1; margin-top: 18px; padding: 0 6px; }
.cover-after .a { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding: 0 6px 6px; opacity: .85; }
.cover-after .mark { width: 30px; height: 30px; margin: 6px 0 0 6px; opacity: .9; }
.meta { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.4; }
.meta b { display: block; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.meta span { color: var(--ink-2); }
.meta.dim b { color: var(--ink-2); font-weight: 500; }
.stage-arrow { position: absolute; left: 50%; top: 36%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--oxblood); color: var(--on-oxblood); display: grid; place-items: center; box-shadow: 0 0 0 6px var(--sand-deep); }
.stage-arrow svg { width: 22px; height: 22px; }

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); text-wrap: balance; }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; text-wrap: pretty; }

.band { background: var(--sand); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; counter-increment: step; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--oxblood); color: var(--on-oxblood); font-family: var(--serif); font-weight: 600; margin-bottom: 16px; }
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--ink-2); }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; }
.feature { padding: 22px 0; border-top: 1px solid var(--line); }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--ink-2); }

.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.privacy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.privacy li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.privacy li svg { width: 22px; height: 22px; color: var(--forest); margin-top: 2px; }

.platforms { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.platform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.platform h3 { font-size: 24px; }
.platform p { color: var(--ink-2); flex-grow: 1; }

.notes { background: var(--sand-deep); border-radius: var(--radius); padding: 22px 24px; margin-top: 28px; }
.notes h3 { font-size: 19px; margin-bottom: 8px; }
.notes p + p { margin-top: 8px; }
.notes p { color: var(--ink); }

.site-footer { padding: 40px 0 56px; color: var(--ink-2); font-size: 14px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer a { color: var(--ink-2); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 24px 0 56px; }
  .steps, .features, .privacy, .platforms { grid-template-columns: 1fr; }
  .features { gap: 0; }
  .privacy { gap: 28px; }
  section { padding: 52px 0; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 420px) {
  .wrap { width: calc(100% - 32px); }
  .stage { padding: 18px; gap: 12px; }
  .cover-after .t { font-size: 18px; }
  .btn { width: 100%; }
  .nav .btn { width: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
