/* getclappie.com: one stylesheet for every page except the consent page, which keeps its own. Tokens from
   src/theme/colors.ts; contrast pairs follow the app's 4.5:1 rule (src/theme/contrast.test.ts). */
@font-face { font-family: 'DM Sans'; src: url('/oauth/consent/DMSans_400Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/oauth/consent/DMSans_700Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  --paper: #f8f5ef; --ink: #171b1c; --mute: #5c6264; --line: #e4ded4;
  --powder: #dcebf2; --blush: #f4e3de; --recording: #e84f4f; --white: #fff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.55 'DM Sans', system-ui, sans-serif; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--white); padding: 8px 12px; z-index: 10; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.prose { max-width: 720px; }

header.site { padding: 20px 0; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.site ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
nav.site a { text-decoration: none; display: inline-block; padding: 10px 0; }
nav.site a[aria-current='page'] { text-decoration: underline; }

main { padding: 24px 0 72px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; letter-spacing: -0.02em; margin: 16px 0 20px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
h2 { font-size: 26px; line-height: 1.2; margin: 48px 0 12px; }
h3 { font-size: 20px; margin: 28px 0 8px; }
p, ul, ol { margin: 0 0 16px; }
li { margin: 6px 0; }
.lede { font-size: 21px; color: var(--ink); max-width: 640px; }
.mute { color: var(--mute); font-size: 16px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.88em; background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; overflow-wrap: anywhere; }

.button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 14px; background: var(--ink); color: var(--white); font-weight: 700; text-decoration: none; border: 1px solid var(--ink); }
.button.secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 8px; }

.hero { display: grid; gap: 40px; align-items: center; grid-template-columns: 1.2fr 1fr; padding: 32px 0 16px; }
.card { background: linear-gradient(135deg, var(--powder), var(--blush)); border-radius: 24px; padding: 28px; }
.reader { background: var(--ink); color: var(--white); border-radius: 20px; padding: 24px; font-size: 22px; line-height: 1.3; }
.reader .now { font-weight: 700; }
.reader .next { opacity: 0.78; margin-top: 10px; }
.reader .rec { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.reader .rec::before { content: ''; width: 10px; height: 10px; background: var(--recording); border-radius: 2px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; padding: 0; counter-reset: step; }
.steps li { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 24px; margin: 0; counter-increment: step; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.steps h3 { margin-top: 0; }

.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.facts div { border-top: 2px solid var(--ink); padding-top: 12px; }
.facts h3 { margin-top: 0; }

table { border-collapse: collapse; width: 100%; margin: 0 0 20px; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
th { font-weight: 700; }
.table-scroll { overflow-x: auto; }

footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--mute); }
footer.site ul { display: flex; gap: 20px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 12px; }
footer.site a { color: var(--ink); display: inline-block; padding: 6px 0; }

@media (max-width: 760px) {
  body { font-size: 17px; }
  .hero, .steps, .facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
