/* booknookd.com: same true-black look as the app's Dark theme. */
:root {
  --bg: #000000;
  --surface: #121212;
  --surface2: #0b0b0b;
  --text: #f2f2f2;
  --dim: #a8a8a8;
  --muted: #8a8a8a;
  --line: #262626;
  --accent: #ffc94d;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 20px 64px; }
header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 28px; }
.wordmark { font-size: 28px; font-weight: 800; letter-spacing: -0.8px; color: var(--text); text-decoration: none; }
nav a { color: var(--dim); margin-left: 14px; text-decoration: none; font-size: 15px; }
nav a:hover, nav a:focus { color: var(--text); text-decoration: underline; }
h1 { font-size: 30px; line-height: 1.2; margin: 8px 0 6px; letter-spacing: -0.4px; }
h2 { font-size: 20px; margin: 34px 0 8px; }
p, li { color: var(--dim); }
strong { color: var(--text); }
a { color: var(--accent); }
.updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--text); font-weight: 600; }
td { color: var(--dim); }
footer { margin-top: 48px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
footer a { color: var(--muted); }

/* ── Home page (index.html) ─────────────────────────────────────────────── */
.home main { max-width: none; padding: 0; margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 10; }

.home header.site-header { display: block; margin: 0; position: sticky; top: 0; z-index: 5; background: rgba(0, 0, 0, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.bar nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.bar nav a { margin: 0; padding: 10px; }
.wordmark.small { font-size: 20px; }

.btn { display: inline-block; background: var(--accent); color: #111; font-weight: 700; text-decoration: none; padding: 13px 22px; border-radius: 999px; border: 2px solid var(--accent); transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(255, 201, 77, .25); color: #111; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--text); border-color: #3a3a3a; }
.btn-ghost:hover, .btn-ghost:focus-visible { color: var(--text); border-color: var(--text); box-shadow: none; }
.bar nav a.btn-small { padding: 8px 16px; margin-left: 6px; color: #111; font-size: 14px; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.hero { padding: 72px 0 64px; background: radial-gradient(1200px 500px at 75% -10%, rgba(255, 201, 77, .13), transparent 60%), radial-gradient(800px 400px at 0% 100%, rgba(120, 80, 200, .12), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: 13px; margin: 0 0 12px; }
.home h1 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-size: clamp(38px, 6vw, 62px); line-height: 1.05; letter-spacing: -1px; margin: 0 0 18px; font-weight: 700; }
.lede { font-size: clamp(17px, 2.1vw, 20px); line-height: 1.6; color: #cfcfcf; max-width: 560px; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* Phone illustration: pure CSS, made-up titles (no real covers). */
.hero-art { display: flex; justify-content: center; }
.phone { width: 280px; background: #0b0b0b; border: 1px solid #2a2a2a; border-radius: 36px; padding: 14px 18px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 0 8px #141414; transform: rotate(2deg); }
.phone-top { display: flex; justify-content: center; margin-bottom: 14px; }
.pill { width: 70px; height: 6px; background: #222; border-radius: 6px; }
.phone-title { color: var(--text); font-weight: 700; margin: 0 0 12px; font-size: 15px; }
.covers { display: flex; align-items: flex-end; justify-content: center; gap: 10px; height: 170px; }
.cover { width: 70px; height: 105px; border-radius: 6px; display: flex; align-items: flex-end; padding: 8px; color: rgba(255, 255, 255, .92); font: 700 11px/1.15 Georgia, serif; box-shadow: 0 8px 20px rgba(0, 0, 0, .6); }
.cover.big { width: 100px; height: 150px; font-size: 14px; }
.c1 { background: linear-gradient(160deg, #3f5a8a, #1c2742); }
.c2 { background: linear-gradient(160deg, #9a4a68, #43202e); }
.c3 { background: linear-gradient(160deg, #55703f, #243019); }
.c4 { background: linear-gradient(160deg, #8a6a2e, #3b2c12); }
.c5 { background: linear-gradient(160deg, #2d6e73, #123236); }
.c6 { background: linear-gradient(160deg, #6b3a55, #2c1724); }
.stars { text-align: center; color: var(--accent); font-size: 22px; letter-spacing: 3px; margin-top: 14px; }
.stars .half { display: inline-block; width: .55em; overflow: hidden; vertical-align: bottom; }
.phone-sub { text-align: center; font-size: 12px; color: var(--muted); margin: 2px 0 14px; }
.diary { border-top: 1px solid #1f1f1f; padding-top: 10px; }
.diary .row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 12.5px; color: var(--dim); }
.diary b { width: 22px; color: var(--text); font-weight: 300; font-size: 17px; }
.mini { display: inline-block; width: 22px; height: 33px; border-radius: 3px; }

.section { padding: 76px 0; }
.section.alt { background: var(--surface2); border-top: 1px solid #161616; border-bottom: 1px solid #161616; }
.home h2 { font-family: Georgia, "Iowan Old Style", "Palatino Linotype", serif; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.5px; margin: 0 0 12px; }
.center { text-align: center; }
.sub { color: var(--dim); font-size: 18px; margin: 0 auto 40px; max-width: 560px; }

.steps { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 201, 77, .14); color: var(--accent); font-weight: 800; margin-bottom: 12px; }
.home h3 { font-size: 18px; margin: 0 0 8px; color: var(--text); }
.steps p, .feature p { margin: 0; font-size: 15.5px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: border-color .2s ease, transform .2s ease; }
.feature:hover { border-color: #3a3a3a; transform: translateY(-2px); }
.feature svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }

.promises { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 12px; }
.promises li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 16px 50px; position: relative; }
.promises li::before { content: "✓"; position: absolute; left: 18px; top: 15px; color: var(--accent); font-weight: 800; }

details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 10px 0; padding: 0 18px; }
summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; color: var(--text); display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 0 0 16px; }

.cta-band { text-align: center; border-radius: 26px; padding: 56px 24px; background: radial-gradient(600px 260px at 50% 0%, rgba(255, 201, 77, .18), transparent 70%), var(--surface); border: 1px solid #2a2a2a; }
.cta-band p { max-width: 520px; margin: 0 auto 24px; font-size: 17px; }

.home footer.site-footer { margin: 0; padding: 28px 0 40px; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { margin: 0; color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone { transform: none; width: 250px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero { padding: 40px 0 48px; }
  .section { padding: 56px 0; }
  .grid { grid-template-columns: 1fr; }
  .bar nav a:not(.btn-small) { display: none; }
  .cta-row .btn { flex: 1 1 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .feature { transition: none; }
  .btn:hover, .feature:hover { transform: none; }
}
