@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&family=Fraunces:opsz,wght@9..144,500;9..144,600&display=swap');
/* Second Hello brand tokens, from lib/core/theme/app_theme.dart: warm paper and coral, light and dark. */
:root {
  --bg: #FBF6EF; --card: #FFFFFF; --ink: #1F1A16; --mute: #75675E; --line: #E9DFD3;
  --coral: #C54226; --coral-ink: #FFFFFF; --tint: #FFE3D8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16120F; --card: #211C18; --ink: #F3ECE4; --mute: #B5A79B; --line: #3D3530;
    --coral: #FF9474; --coral-ink: #3A0F04; --tint: #5A2416;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 18px/1.6 "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}
main { max-width: 720px; margin: 0 auto; padding: 32px 16px 64px; }
header { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
header img { width: 44px; height: 44px; border-radius: 11px; }
header a { color: var(--ink); text-decoration: none; font: 600 21px/1 Fraunces, Georgia, serif; }
h1, h2 { font-family: Fraunces, Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 40px; line-height: 1.1; margin: 0 0 12px; }
h2 { font-size: 22px; margin: 32px 0 8px; }
.muted { color: var(--mute); }
.lede { font-size: 20px; color: var(--mute); margin: 0 0 8px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; margin: 24px 0; }
.card.tint { background: var(--tint); border-color: transparent; }
a { color: var(--coral); }
ul { padding-left: 1.2em; }
li { margin: 6px 0; }
.links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); text-decoration: none; font-weight: 700; }
footer { margin-top: 56px; font-size: 15px; color: var(--mute); }
footer a { color: var(--mute); }

/* Home showcase: the core loop (predict, do it, log, compare) plays through in a phone frame, in sync with the steps. */
main.home { max-width: 980px; }
.hero { display: grid; gap: 36px; align-items: center; }
@media (min-width: 760px) { .hero { grid-template-columns: 1fr 280px; gap: 56px; } }
.steps { list-style: none; padding: 0; margin: 20px 0 0; counter-reset: step; }
.steps li { counter-increment: step; display: flex; gap: 12px; align-items: baseline; margin: 0; padding: 6px 0;
  color: var(--mute); animation: step 12s infinite; }
.steps li::before { content: "0" counter(step); font-size: 14px; }
.phone { margin: 0 auto; width: min(280px, 72vw); padding: 10px; border-radius: 46px; background: #1F1A16;
  box-shadow: 0 0 0 1px var(--line), 0 30px 60px -24px rgba(197, 66, 38, 0.35); }
.screen { position: relative; aspect-ratio: 520 / 1180; border-radius: 36px; overflow: hidden; background: #FBF6EF; }
.screen img { position: absolute; top: 22px; left: 0; width: 100%; height: auto; opacity: 0; animation: frame 12s infinite both; }
.screen img:nth-child(2), .steps li:nth-child(2) { animation-delay: 3s; }
.screen img:nth-child(3), .steps li:nth-child(3) { animation-delay: 6s; }
.screen img:nth-child(4), .steps li:nth-child(4) { animation-delay: 9s; }
@keyframes frame {
  0% { opacity: 0; transform: translateY(8px); }
  4%, 25% { opacity: 1; transform: translateY(0); }
  29%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes step {
  0%, 25% { color: var(--ink); }
  29%, 100% { color: var(--mute); }
}
@media (prefers-reduced-motion: reduce) {
  .screen img, .steps li { animation: none; }
  .screen img:last-child { opacity: 1; }
  .steps li { color: var(--ink); }
}
