/* Colorwake landing page styles (uses assets/tokens.css and assets/fonts.css). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 400 16px/24px var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px); }
:focus-visible { outline: 2px solid transparent; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--focus); border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface-raised); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
header { background: var(--surface-raised); border-bottom: 1px solid var(--line); }
header .wrap { height: 64px; display: flex; align-items: center; }
.wordmark { font: 800 24px/1 var(--font-display); letter-spacing: -.03em; color: var(--ink); text-decoration: none; }
.wordmark span { color: var(--accent); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 5vw, 56px); text-align: center; }
.hero .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }
h1 { margin: 0; max-width: 820px; font: 750 clamp(38px, 6vw, 64px)/1.05 var(--font-display); letter-spacing: -.02em; }
.lead { margin: 0; max-width: 600px; font-size: clamp(17px, 2vw, 19px); line-height: 1.55; color: var(--ink-muted); }

.pop { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px 0 8px; border-radius: var(--radius-pill);
  background: var(--pop); color: var(--on-pop); font: 700 13px/18px var(--font-body); white-space: nowrap; }
.pop svg { width: 16px; height: 16px; flex: none; }

/* Books */
.books { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--space-6); max-width: 920px; margin: 0 auto; }
.book { background: var(--surface-raised); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; }
.book-art { background: var(--surface-sunken); padding: var(--space-8) var(--space-8) 0; display: flex; justify-content: center; align-items: flex-end; height: clamp(300px, 38vw, 380px); position: relative; }
.book-art img { height: 100%; width: auto; object-fit: contain; object-position: bottom; border-radius: 4px 4px 0 0; box-shadow: var(--shadow-pop); }
.book-art .pop { position: absolute; top: var(--space-4); left: var(--space-4); }
.book-body { padding: var(--space-6) var(--space-8) var(--space-8); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.coll { font: 600 12px/16px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.book h2 { margin: 0; font: 400 34px/1.1 var(--cw-display); text-transform: var(--cw-display-case); }
.book p { margin: 0 0 var(--space-4); color: var(--ink-muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-8);
  border-radius: var(--radius-md); background: var(--accent); color: var(--on-accent); font: 700 16px/20px var(--font-body);
  text-decoration: none; margin-top: auto; transition: transform .15s ease-out; }
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; }

/* How it works */
.how { margin-top: clamp(48px, 7vw, 80px); }
.how h2 { margin: 0 0 var(--space-6); text-align: center; font: 700 28px/34px var(--font-display); letter-spacing: -.01em; }
.steps { list-style: none; margin: 0; padding: var(--space-8); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: var(--space-6);
  background: var(--accent-soft); border-radius: var(--radius-lg); }
.step { display: flex; flex-direction: column; gap: var(--space-2); }
.step-n { width: 40px; height: 40px; border-radius: var(--radius-pill); display: grid; place-items: center; background: var(--surface-raised); font: 800 18px/1 var(--font-display); }
.step-n.is-pop { background: var(--pop); color: var(--on-pop); }
.step h3 { margin: var(--space-2) 0 0; font: 700 20px/28px var(--font-body); }
.step p { margin: 0; font-size: 15px; line-height: 22px; color: var(--ink-muted); }

footer { margin-top: var(--space-16); background: var(--surface-sunken); }
footer .wrap { padding-top: var(--space-8); padding-bottom: var(--space-8); display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: space-between; font-size: 14px; line-height: 20px; color: var(--ink-muted); }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
