/* capybai.com: the app's dark palette and type (docs/design-system.md). */
@font-face { font-family: "Bricolage Grotesque"; font-weight: 800; font-display: swap; src: url("/assets/BricolageGrotesque-ExtraBold.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url("/assets/DMSans-Regular.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 600; font-display: swap; src: url("/assets/DMSans-SemiBold.ttf") format("truetype"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url("/assets/DMSans-Bold.ttf") format("truetype"); }

:root {
  --background: #333333; --surface: #3D3D3D; --border: #4B4B4B; --secondary: #A3A3A3; --text: #FFFFFF;
  --sky: #4FC3FF; --sky-deep: #1E9BE0; --coin: #FFC83D;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--background); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--background); color: var(--text);
  font: 400 17px/1.55 "DM Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: var(--sky-deep); }
.top, main, footer { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 20px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font: 800 26px/1 "Bricolage Grotesque", system-ui, sans-serif; color: var(--sky); text-decoration: none; letter-spacing: -0.02em; }
main { flex: 1; padding-top: 24px; padding-bottom: 48px; }
h1, h2, h3 { font-family: "Bricolage Grotesque", system-ui, sans-serif; font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.lead { color: var(--secondary); font-size: 19px; margin: 0 0 28px; max-width: 30em; }
.badge { display: inline-block; border: 2px solid var(--text); border-radius: 14px; padding: 12px 20px; color: var(--text); font-weight: 700; background: #000; }
.fine { color: var(--secondary); font-size: 13px; }

/* Buttons: flat rounded Sky pills with a Charcoal label (brand rules). */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--sky); color: var(--background); font-weight: 700; font-size: 17px; text-decoration: none; transition: transform .15s ease; }
.btn:hover { color: var(--background); transform: scale(1.04); }
.btn:active { transform: scale(0.96); }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn.ghost:hover { color: var(--text); border-color: var(--secondary); }
.btn.small { height: 44px; padding: 0 20px; font-size: 15px; }

/* Landing: full-width bands, Duolingo-style big art and big type. */
body.home .top { max-width: 1120px; }
body.home main { max-width: none; padding: 0; }
body.home footer { max-width: 1120px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.hero { padding: 40px 0 72px; }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; }
.hero-art { width: 100%; max-width: 480px; height: auto; justify-self: center; }
.hero h1 { font-size: clamp(44px, 6vw, 72px); margin: 0 0 18px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.kicker { margin: 0 0 10px; color: var(--sky); font-weight: 700; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; }
.rows { padding: 24px 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding: 56px 20px; }
.row.flip .row-copy { order: 2; }
.row h2 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 16px; }
.row-copy p { color: #E6E6E6; font-size: 18px; max-width: 30em; }
.phone { margin: 0; justify-self: center; width: min(300px, 78vw); border: 10px solid #1A1A1A; border-radius: 48px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,.45); background: var(--background); }
.phone img, .shot img { display: block; width: 100%; height: auto; }
.shot { margin: 0; justify-self: center; width: min(360px, 86vw); border-radius: 28px; overflow: hidden; box-shadow: 0 24px 48px rgba(0,0,0,.4); }
.stack { position: relative; justify-self: center; padding-bottom: 40px; }
.stack .float { position: absolute; width: min(250px, 60vw); right: -70px; bottom: 0; transform: rotate(4deg); }
.art { width: 100%; max-width: 320px; height: auto; justify-self: center; }
.center { text-align: center; }
.sub { color: var(--secondary); font-size: 18px; margin: -6px 0 36px; }
.modes { background: var(--surface); padding: 80px 0; }
.modes h2 { font-size: clamp(36px, 5vw, 56px); margin: 0 0 14px; }
.mode-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mode { border-radius: 28px; padding: 22px 20px 24px; color: var(--background); display: flex; flex-direction: column; gap: 6px; }
.mode img { width: 78%; height: auto; align-self: center; margin-bottom: 6px; }
.mode h3 { font-size: 26px; margin: 0; }
.mode p { margin: 0 0 10px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.mode .bubble { margin-top: auto; background: var(--background); color: var(--text); border-radius: 18px 18px 18px 6px; padding: 10px 12px; font-size: 14px; font-weight: 600; }
.mode.bestie { background: #FFB1A8; } .mode.coach { background: var(--sky); } .mode.menace { background: #FF5B4F; } .mode.nerd { background: #B57BFF; }
.notifs { display: grid; gap: 10px; margin-top: 22px; max-width: 420px; }
.notif { display: flex; gap: 12px; align-items: center; margin: 0; padding: 12px 14px; border-radius: 22px; background: #FFF7D8; color: var(--background); font-size: 15px; font-weight: 600; line-height: 1.35; }
.row-copy .notif { color: var(--background); font-size: 15px; }
.row-copy .notif:nth-child(2) { background: var(--background); color: var(--text); border: 1px solid var(--border); }
.notif img { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; }
.notif b { display: block; font-size: 12px; color: var(--secondary); }
.ticks { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding: 16px 18px 16px 56px; border-radius: 20px; background: var(--surface); color: #E6E6E6; font-size: 16px; }
.ticks li::before { content: "✓"; position: absolute; left: 16px; top: 15px; width: 26px; height: 26px; border-radius: 50%; background: #58CC02; color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; }
.ticks b { color: var(--text); }
.cta { background: var(--sky); color: var(--background); padding: 64px 0; margin-top: 40px; }
.cta-in { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center; }
.cta img { width: 100%; height: auto; }
.cta h2 { font-size: clamp(36px, 5vw, 60px); margin: 0 0 12px; }
.cta p { font-size: 18px; font-weight: 600; }
.cta .fine { color: #1F1F1F; }
body.home footer { margin-top: 0; }

@media (max-width: 860px) {
  .hero-in, .row, .cta-in { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding-top: 16px; text-align: center; }
  .hero-art { max-width: 300px; }
  .lead { margin-left: auto; margin-right: auto; }
  .ctas { justify-content: center; }
  .row { padding: 40px 20px; text-align: center; }
  .row.flip .row-copy { order: 0; }
  .row-copy p { margin-left: auto; margin-right: auto; }
  .notifs, .ticks { text-align: left; margin-left: auto; margin-right: auto; }
  .stack .float { position: relative; right: auto; transform: none; margin: -60px auto 0; display: block; }
  .mode-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-in { text-align: center; }
  .cta img { max-width: 220px; justify-self: center; }
}
@media (max-width: 520px) {
  .mode-grid { grid-template-columns: 1fr; }
  .top .btn.small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }
.prose h1 { font-size: 36px; margin-top: 8px; }
.prose h2 { font-size: 22px; margin-top: 32px; }
.prose h3 { font-size: 18px; }
.prose p, .prose li { color: #EDEDED; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }
.prose code { background: var(--surface); border-radius: 6px; padding: 1px 6px; }
footer { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 32px; color: var(--secondary); font-size: 14px; }
footer p { margin: 4px 0; }
