/* Dailies' Library. Tokens mirror the app's theme (constants/theme.ts). The app is dark-only, so the site is too. */
:root {
  color-scheme: dark;

  /* Colors */
  --color-bg: #0b0b0f;
  --color-card: #14141a;
  --color-chrome: #18181f;
  --color-tab: #121218;
  --color-border: rgba(255, 255, 255, 0.12);
  --color-text: #ffffff;
  --color-muted: rgba(255, 255, 255, 0.68);
  --color-dim: rgba(255, 255, 255, 0.55);
  --color-brand: #b7a4f5;
  --color-brand-strong: #cabdf8;
  --color-on-brand: #0b0b0f;
  --color-done: #22c55e;
  --color-warn: #e8b931;
  --color-glow: rgba(183, 164, 245, 0.18);

  /* Category accents (illustrative chips) */
  --c-word: #22c55e;
  --c-logic: #b7a4f5;
  --c-trivia: #f0b429;
  --c-geo: #38bdf8;
  --c-sports: #fb923c;
  --c-pop: #f472b6;

  /* Fonts: the app uses the platform system font at heavy weights */
  --font-body: system-ui, -apple-system, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.5rem;
  --space-6: 4rem;
  --space-7: 6rem;

  /* Radii (app uses 12, 16, 20) */
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 10px 32px rgba(183, 164, 245, 0.3);
  --max-width: 70rem; /* 1120px */
  --ease: 0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body {
  min-height: 100vh; line-height: 1.55; color: var(--color-text); background: var(--color-bg);
  font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, picture, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); overflow-wrap: break-word; line-height: 1.1; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }
a { color: var(--color-brand); }
:focus-visible { outline: 3px solid var(--color-brand-strong); outline-offset: 3px; border-radius: 8px; }

.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-3); top: -4rem; z-index: 100; padding: var(--space-2) var(--space-3); background: var(--color-brand); color: var(--color-on-brand); font-weight: 800; border-radius: var(--radius-sm); text-decoration: none; }
.skip-link:focus { top: var(--space-3); }

.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-4); }
.container-narrow { max-width: 46rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 3rem; padding: 0.7rem 1.4rem; border: 1px solid transparent; border-radius: var(--radius-pill);
  font-size: 1rem; font-weight: 800; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--ease), box-shadow var(--ease), background-color var(--ease), border-color var(--ease);
}
.btn-lg { min-height: 3.5rem; padding: 0.85rem 1.8rem; font-size: 1.0625rem; }
.btn-sm { min-height: 2.5rem; padding: 0.45rem 1.1rem; font-size: 0.9375rem; }
.btn-primary { background: var(--color-brand); color: var(--color-on-brand); box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--color-brand-strong); transform: translateY(-2px); box-shadow: 0 14px 38px rgba(183, 164, 245, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-disabled { background: transparent; color: var(--color-dim); border-color: var(--color-border); cursor: not-allowed; }

/* Sticky top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: 3.75rem;
  background: rgba(11, 11, 15, 0.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-border);
  transform: translateY(-100%); visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}
.topbar.show { transform: none; visibility: visible; }
.topbar-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.topbar-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--color-text); font-weight: 800; text-decoration: none; letter-spacing: -0.01em; }
.topbar-logo { width: 2rem; height: 2rem; border-radius: 28%; box-shadow: 0 0 0 1px var(--color-border); }

/* Hero */
.hero { position: relative; overflow: hidden; text-align: center; padding: 3.5rem 0 var(--space-6); isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; will-change: transform; }
.blob-a { width: 34rem; height: 34rem; left: 50%; top: -12rem; margin-left: -17rem; background: radial-gradient(circle, rgba(183,164,245,.55), transparent 65%); animation: drift-a 16s ease-in-out infinite alternate; }
.blob-b { width: 24rem; height: 24rem; left: -8rem; top: 14rem; background: radial-gradient(circle, rgba(37,99,255,.45), transparent 65%); animation: drift-b 20s ease-in-out infinite alternate; }
.blob-c { width: 22rem; height: 22rem; right: -7rem; top: 8rem; background: radial-gradient(circle, rgba(34,197,94,.3), transparent 65%); animation: drift-c 18s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(3rem, 2rem, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(4rem, -3rem, 0) scale(1.15); } }
@keyframes drift-c { to { transform: translate3d(-3rem, 3rem, 0) scale(1.1); } }

.tile {
  position: absolute; display: grid; place-items: center; width: 2.6rem; height: 2.6rem;
  border-radius: 10px; font-weight: 900; font-size: 1.2rem; color: #0b0b0f; opacity: 0.85;
  box-shadow: 0 6px 18px rgba(0,0,0,.35); animation: float 7s ease-in-out infinite;
}
.tile-1 { left: 5%; top: 7%; background: var(--c-word); animation-delay: -1s; }
.tile-2 { right: 6%; top: 10%; background: var(--c-trivia); animation-delay: -3s; }
.tile-3 { left: 4%; top: 52%; display: none; background: var(--c-geo); animation-delay: -5s; }
.tile-4 { right: 5%; top: 56%; display: none; background: var(--c-word); animation-delay: -2s; }
.tile-5 { left: 13%; bottom: 4%; display: none; background: var(--c-logic); animation-delay: -4s; }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-14px) rotate(6deg); } }

.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.dale-hero { position: relative; width: min(66vw, 17rem); margin-bottom: var(--space-3); }
.dale-hero::before { content: ""; position: absolute; inset: -18% -22% -6%; z-index: -1; background: radial-gradient(closest-side, rgba(183,164,245,.5), rgba(183,164,245,.14) 55%, transparent 75%); }
.dale-hero img { width: 100%; height: auto; filter: drop-shadow(0 18px 28px rgba(0,0,0,.45)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }

.eyebrow { color: var(--color-brand); font-weight: 800; font-size: 0.8125rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--space-3); }
.hero h1 { font-size: clamp(2.1rem, 9.2vw, 5.75rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; }
.hero h1 .line { display: block; }
.hero h1 .accent { color: var(--color-brand); }
.subhead { margin: var(--space-4) auto 0; max-width: 38rem; font-size: clamp(1.0625rem, 3.6vw, 1.3125rem); color: var(--color-muted); }
.cta-row { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-3); margin-top: var(--space-5); width: 100%; max-width: 22rem; }
.cta-note { margin-top: var(--space-3); font-size: 0.875rem; color: var(--color-dim); }

/* Sections */
.section { padding: var(--space-6) 0; }
.section-tight { padding-block: var(--space-5); }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto var(--space-5); }
.section-head h2, .meet h2, .closing h2 { font-size: clamp(1.875rem, 6vw, 3rem); font-weight: 900; }
#features { padding-bottom: var(--space-5); }
#features .section-head { margin-bottom: 5.5rem; }
.section-head-sm { margin-bottom: var(--space-4); }
.section-head-sm h2 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
.section-head-sm p { margin-top: var(--space-2); color: var(--color-muted); }

/* Feature cards */
.cards { display: grid; gap: var(--space-3); grid-template-columns: 1fr; list-style: none; padding: 0; }
.card {
  position: relative; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
  padding: var(--space-4); box-shadow: var(--shadow-card);
  transition: transform var(--ease), border-color var(--ease), background-color var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: rgba(183,164,245,.5); background: #17171e; }
.card-icon { width: 3rem; height: 3rem; margin-bottom: var(--space-3); display: grid; place-items: center; background: var(--color-chrome); border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-brand); }
.card-icon svg { width: 1.5rem; height: 1.5rem; }
.card h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: var(--space-2); letter-spacing: -0.015em; text-wrap: pretty; }
.card p { color: var(--color-muted); }
.peek { position: absolute; z-index: -1; right: 1.25rem; bottom: calc(100% - 1.1rem); width: 5.75rem; height: auto; transform: rotate(5deg); transform-origin: bottom center; transition: transform .4s ease; }
.card-peek { z-index: 0; }
.card-peek:hover .peek { transform: rotate(-3deg) translateY(-6px); }

/* Mock-ups */
.mocks { display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
.mock { background: linear-gradient(180deg, var(--color-tab), var(--color-bg)); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow-card); }
.mock-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-dim); margin-bottom: var(--space-3); }
.cover { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
.cover-art { position: relative; height: 8.5rem; display: grid; place-items: center; background: linear-gradient(135deg, #24b25a, #1b6fe0 85%); }
.cover-chip { position: absolute; left: .75rem; top: .75rem; padding: .2rem .65rem; border-radius: var(--radius-pill); background: rgba(0,0,0,.35); font-size: .75rem; font-weight: 800; }
.cover-tiles { display: flex; gap: .35rem; }
.t { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 8px; font-style: normal; font-weight: 900; box-shadow: 0 4px 10px rgba(0,0,0,.3); }
.t.g { background: #22a152; } .t.y { background: #c9a227; } .t.n { background: #3b3b47; }
.cover-meta { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-3); }
.cover-meta strong { display: block; font-weight: 800; }
.cover-meta small, .score small { color: var(--color-dim); font-size: .8125rem; }
.pill-play { padding: .45rem 1rem; border-radius: var(--radius-pill); background: var(--color-brand); color: var(--color-on-brand); font-weight: 800; font-size: .9rem; white-space: nowrap; }

.score { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); }
.score-top { display: flex; align-items: center; gap: .7rem; margin-bottom: var(--space-3); }
.score-top > div { flex: 1; min-width: 0; }
.score-top strong { display: block; font-weight: 800; line-height: 1.2; }
.avatar { width: 2.25rem; height: 2.25rem; flex: none; display: grid; place-items: center; border-radius: 50%; background: #2a2540; color: var(--color-brand); font-weight: 900; }
.score-grid { display: grid; gap: .1rem; justify-items: start; font-size: 1.05rem; letter-spacing: .08em; line-height: 1.35; margin-bottom: var(--space-3); }
.versus { display: flex; align-items: center; gap: .6rem; padding: .6rem .85rem; border-radius: var(--radius-sm); background: rgba(34,197,94,.12); color: #bff0cf; font-weight: 600; font-size: .95rem; }
.versus b { color: #fff; font-weight: 800; }
.done { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; flex: none; border-radius: 50%; background: var(--color-done); color: #052e12; font-size: .75rem; font-weight: 900; }
.crown { font-size: 1.4rem; }
.streak-line { margin-top: .6rem; font-weight: 700; color: var(--color-muted); font-size: .9rem; }

.board { list-style: none; padding: 0; display: grid; gap: .6rem; }
.board li { display: grid; grid-template-columns: 2rem 4.5rem 1fr; align-items: center; gap: .6rem; padding: .7rem .75rem; background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.board li:first-child { border-color: rgba(183,164,245,.5); background: #1a1727; }
.rank { font-weight: 900; text-align: center; color: var(--color-muted); }
.who { font-weight: 700; font-size: .9rem; }
.bar { height: .6rem; border-radius: var(--radius-pill); background: rgba(255,255,255,.08); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-brand), var(--color-brand-strong)); }

/* Chips */
.chips { display: flex; flex-wrap: nowrap; gap: .6rem; list-style: none; padding: .25rem var(--space-4) .75rem; margin: 0 calc(var(--space-4) * -1); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--space-4); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips li { flex: none; scroll-snap-align: start; }
.chip { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem 1.1rem; border-radius: var(--radius-pill); background: var(--color-card); border: 1px solid var(--color-border); font-weight: 800; white-space: nowrap; }
.chip::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--dot, var(--color-brand)); box-shadow: 0 0 10px var(--dot, var(--color-brand)); }
.c-word { --dot: var(--c-word); } .c-logic { --dot: var(--c-logic); } .c-trivia { --dot: var(--c-trivia); }
.c-geo { --dot: var(--c-geo); } .c-sports { --dot: var(--c-sports); } .c-pop { --dot: var(--c-pop); }
.lede { max-width: 40rem; margin: var(--space-4) auto 0; text-align: center; font-size: 1.125rem; color: var(--color-muted); }

/* Steps */
.steps { display: grid; gap: var(--space-4); grid-template-columns: 1fr; list-style: none; padding: 0; position: relative; }
.step { position: relative; padding-left: 4rem; }
.step::before { content: ""; position: absolute; left: 1.4rem; top: 3rem; bottom: -1.5rem; width: 2px; background: linear-gradient(var(--color-brand), transparent); opacity: .5; }
.step:last-child::before { display: none; }
.step-num { position: absolute; left: 0; top: 0; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; border-radius: 50%; background: var(--color-brand); color: var(--color-on-brand); font-weight: 900; font-size: 1.25rem; box-shadow: var(--shadow-glow); }
.step h3 { font-size: 1.3rem; font-weight: 800; margin: .35rem 0 var(--space-2); }
.step p { color: var(--color-muted); }

.composer-wrap { position: relative; z-index: 0; max-width: 26rem; margin: 7rem auto 0; }
.composer { background: var(--color-card); border: 1px solid var(--color-border); border-radius: 28px 28px var(--radius-lg) var(--radius-lg); padding: var(--space-3) var(--space-4) var(--space-4); box-shadow: 0 -10px 50px rgba(183,164,245,.12), var(--shadow-card); }
.composer-grab { width: 2.5rem; height: 4px; border-radius: 4px; background: rgba(255,255,255,.2); margin: 0 auto var(--space-3); }
.composer-title { font-size: 1.35rem; font-weight: 900; letter-spacing: -.02em; margin-bottom: var(--space-3); }
.field { background: var(--color-chrome); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: .7rem .9rem; margin-bottom: .7rem; }
.field small { display: block; color: var(--color-dim); font-size: .75rem; font-weight: 700; margin-bottom: .15rem; }
.field span { font-size: .95rem; letter-spacing: .04em; }
.field .ph { color: var(--color-dim); letter-spacing: 0; }
.composer-row { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-3); }
.tag { padding: .35rem .8rem; border-radius: var(--radius-pill); background: #2a2540; color: var(--color-brand-strong); font-weight: 800; font-size: .85rem; }
.btn-fake { padding: .55rem 1.5rem; border-radius: var(--radius-pill); background: var(--color-brand); color: var(--color-on-brand); font-weight: 800; }
.composer-dale { position: absolute; z-index: -1; width: 5.75rem; height: auto; right: 1.75rem; bottom: calc(100% - 1.1rem); transform: rotate(-5deg); transform-origin: bottom center; }

/* Group chat panel */
.chat-panel {
  display: grid; gap: var(--space-5); padding: var(--space-5) var(--space-4); border-radius: 28px; border: 1px solid var(--color-border);
  background: radial-gradient(ellipse 80% 70% at 100% 0%, rgba(183,164,245,.2), transparent 60%), radial-gradient(ellipse 60% 60% at 0% 100%, rgba(34,197,94,.12), transparent 60%), var(--color-card);
}
.chat-copy h2 { font-size: clamp(1.75rem, 5.6vw, 2.75rem); font-weight: 900; }
.chat-copy p { margin-top: var(--space-3); color: var(--color-muted); font-size: 1.0625rem; }
.chat-copy .small-line { display: flex; gap: .6rem; align-items: flex-start; margin-top: var(--space-4); padding: .85rem 1rem; font-size: .95rem; color: var(--color-text); background: rgba(255,255,255,.05); border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.small-line svg { flex: none; margin-top: .15rem; color: var(--color-brand); }
.chat-visual { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.bubble { width: 100%; max-width: 20rem; padding: .85rem 1rem 1rem; background: #25252e; border-radius: 22px 22px 22px 6px; transform: rotate(-1.5deg); }
.bubble small { display: block; color: var(--color-dim); font-weight: 700; font-size: .75rem; margin-bottom: .3rem; }
.bubble p { font-size: .95rem; line-height: 1.3; letter-spacing: .04em; word-break: break-word; }
.becomes { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--color-brand); color: var(--color-on-brand); box-shadow: var(--shadow-glow); }
.score-clean { width: 100%; max-width: 20rem; box-shadow: var(--shadow-card), 0 0 0 1px rgba(183,164,245,.35); transform: rotate(1deg); }

/* Meet Dale */
.meet { display: grid; align-items: center; gap: var(--space-4); justify-items: center; text-align: center; padding: var(--space-5) var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(183,164,245,.16), transparent 70%), var(--color-card); }
.meet-dale { width: min(62vw, 13rem); height: auto; filter: drop-shadow(0 14px 22px rgba(0,0,0,.45)); transition: transform .4s ease; }
.meet:hover .meet-dale { transform: rotate(-4deg) scale(1.04); }
.meet p { margin-top: var(--space-3); max-width: 30rem; font-size: 1.125rem; color: var(--color-muted); }

/* FAQ */
.faq { display: grid; gap: .75rem; }
.faq details { background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md); transition: border-color var(--ease), background-color var(--ease); }
.faq details:hover { border-color: rgba(183,164,245,.4); }
.faq details[open] { background: #17171e; border-color: rgba(183,164,245,.45); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 1.1rem 1.25rem; font-weight: 800; font-size: 1.0625rem; cursor: pointer; list-style: none; border-radius: var(--radius-md); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--color-chrome); border: 1px solid var(--color-border); color: var(--color-brand); font-size: 1.2rem; line-height: 1; transition: transform var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.25rem 1.25rem; color: var(--color-muted); }

/* Closing CTA */
.closing { position: relative; text-align: center; padding: 7rem var(--space-4) var(--space-6); border: 1px solid var(--color-border); border-radius: 28px; background: radial-gradient(ellipse 90% 80% at 50% 100%, rgba(183,164,245,.22), transparent 70%), var(--color-card); display: flex; flex-direction: column; align-items: center; }
.closing-dale { position: absolute; top: -3.2rem; left: 50%; width: 7.5rem; height: auto; margin-left: -3.75rem; filter: drop-shadow(0 12px 18px rgba(0,0,0,.5)); animation: cheer 2.4s ease-in-out infinite; transform-origin: bottom center; }
@keyframes cheer { 0%,100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-14px) rotate(4deg); } }
.spark { position: absolute; width: .85rem; height: .85rem; border-radius: 3px; animation: twinkle 2.4s ease-in-out infinite; }
.s1 { top: 1.5rem; left: calc(50% - 6rem); background: var(--color-brand); }
.s2 { top: .5rem; left: calc(50% + 5rem); background: var(--color-done); animation-delay: -.8s; }
.s3 { top: 2.8rem; left: calc(50% + 6.5rem); background: var(--color-warn); animation-delay: -1.5s; }
.s4 { top: 3.2rem; left: calc(50% - 8rem); background: var(--c-geo); animation-delay: -.4s; }
.s5 { top: -.4rem; left: calc(50% - 3rem); background: var(--c-pop); animation-delay: -1.9s; border-radius: 50%; }
@keyframes twinkle { 0%,100% { transform: scale(.6) rotate(0); opacity: .4; } 50% { transform: scale(1.2) rotate(45deg); opacity: 1; } }
.closing > p:not(.cta-note) { margin-top: var(--space-3); font-size: 1.1875rem; color: var(--color-muted); }

/* Footer */
.site-footer { margin-top: var(--space-4); padding: var(--space-5) 0 var(--space-6); border-top: 1px solid var(--color-border); text-align: center; color: var(--color-dim); font-size: .9rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2) var(--space-4); list-style: none; padding: 0; margin-bottom: var(--space-3); }
.footer-links a { color: var(--color-muted); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--color-text); text-decoration: underline; }
.fine { margin-top: var(--space-1); }

/* Scroll-in reveals (class added by JS only) */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.cards .reveal:nth-child(3n+2) { transition-delay: .08s; } .cards .reveal:nth-child(3n) { transition-delay: .16s; }
.reveal.card:hover { transform: translateY(-4px); }

/* 404 */
.not-found { position: relative; overflow: hidden; isolation: isolate; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-3); padding: var(--space-5) var(--space-4); text-align: center; }
.not-found .dale-hero { width: min(58vw, 14rem); margin-bottom: 0; }
.not-found .dale-hero img { animation: wander 6s ease-in-out infinite; }
@keyframes wander { 0%,100% { transform: translateX(-10px) rotate(-6deg); } 50% { transform: translateX(10px) rotate(6deg); } }
.lost-marks { display: flex; gap: .5rem; font-size: 1.75rem; font-weight: 900; color: var(--color-brand); }
.lost-marks span:nth-child(2) { animation: float 3s ease-in-out infinite; }
.not-found h1 { font-size: clamp(2rem, 8vw, 3.25rem); font-weight: 900; }
.not-found p { color: var(--color-muted); max-width: 26rem; }
.not-found .btn { margin-top: var(--space-2); }

/* Tablet */
@media (min-width: 40rem) {
  .cta-row { flex-direction: row; justify-content: center; max-width: none; width: auto; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
  .mocks { grid-template-columns: repeat(2, 1fr); }
  .mock { padding: var(--space-4); }
  .mocks .mock:last-child { grid-column: 1 / -1; }
  .section { padding: var(--space-7) 0; }
  .section-tight { padding-block: var(--space-6); }
  .tile { width: 3.25rem; height: 3.25rem; font-size: 1.5rem; }
  .tile-3, .tile-4, .tile-5 { display: grid; }
}
@media (min-width: 48rem) {
  .container { padding-inline: 2rem; }
  .chips { flex-wrap: wrap; justify-content: center; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .chat-panel { grid-template-columns: 1.1fr 1fr; align-items: center; padding: var(--space-6) var(--space-5); gap: var(--space-6); }
  .meet { grid-template-columns: auto 1fr; text-align: left; justify-items: start; gap: var(--space-5); padding: var(--space-5) var(--space-6); }
  .meet-dale { width: 12rem; }
  .meet p { margin-inline: 0; }
  .hero { padding: var(--space-6) 0 var(--space-7); }
  .dale-hero { width: 19rem; }
}
/* Desktop */
@media (min-width: 64rem) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .mocks { grid-template-columns: repeat(3, 1fr); }
  .mocks .mock:last-child { grid-column: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
  .step { padding: 4.5rem 0 0; }
  .step::before { left: 3.4rem; right: -2.5rem; top: 1.4rem; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--color-brand), rgba(183,164,245,.1)); }
  .step-num { left: 0; }
  .dale-hero { width: 21rem; }
  .tile-1 { left: 12%; } .tile-2 { right: 13%; } .tile-3 { left: 8%; } .tile-4 { right: 9%; } .tile-5 { left: 10%; }
  .chat-panel { padding: var(--space-6); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .btn-primary:hover, .card:hover { transform: none; }
}
