/* Upbird site.
   Layout: promise → how it works → missions → your bird (growth, streaks, badges, dress-up)
   → friends → call to action. The app's own birds (rendered from src/components/mascot.tsx)
   carry the personality; type is the app's rounded face; palette is the app's sunrise colours. */
:root {
  --bg: #FFFBF3;
  --cream: #FFF3DF;
  --cream-2: #FBE9C8;
  --card: #FFFFFF;
  --line: #F0E2C8;
  --ink: #2B1D14;
  --ink-2: #7A6656;
  --marigold: #F2A23A;
  --marigold-deep: #B8700F;
  --cta: #111111;
  --on-cta: #FFFFFF;
  --sun-1: #FFD27A;
  --sun-2: #FFE7B8;
  --glow: rgba(242, 162, 58, 0.25);
  --shadow-card: 0 1px 0 rgba(43, 29, 20, 0.04), 0 14px 34px -18px rgba(43, 29, 20, 0.22);
  --phone-shadow: 0 40px 70px -24px rgba(43, 29, 20, 0.35), 0 10px 20px -12px rgba(43, 29, 20, 0.2);

  /* The app's own palette, inside phone screens */
  --app-bg: #FFF8EC; --app-panel: #FFFFFF; --app-border: #F1E2C6; --app-ink: #2B1D14; --app-ink-2: #8A7461;
  --app-muted: #C4B09A; --app-cta: #111111; --app-on-cta: #FFFFFF; --app-accent: #F2A23A; --app-accent-soft: #FDEFD6; --app-on-accent: #FFFFFF;

  --rose: #D0553E; --rose-bg: #FCE4DC;
  --clay: #9C7A12; --clay-bg: #F7ECC8;
  --peach: #C77A12; --peach-bg: #FDEFD6;
  --gold: #B08410; --gold-bg: #FAEDC4;
  --lilac: #8C82C6; --lilac-bg: #ECE9F8;
  --sage: #5DA27F; --sage-bg: #E2F2E9;

  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-app: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, sans-serif;
  --wrap: 1140px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17110C; --cream: #221912; --cream-2: #2D2118; --card: #261C15; --line: #3D2E22;
    --ink: #F5EADA; --ink-2: #BBA68F; --marigold: #F5B556; --marigold-deep: #F8C878;
    --cta: #F5EADA; --on-cta: #17110C; --sun-1: #6E4A1C; --sun-2: #3A2915; --glow: rgba(245, 181, 86, 0.14);
    --shadow-card: 0 0 0 1px #3D2E22; --phone-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.75);
    --app-bg: #1C140F; --app-panel: #30241B; --app-border: #4D3A2B; --app-ink: #F3E7D3; --app-ink-2: #B39C83;
    --app-muted: #957F69; --app-cta: #F3E7D3; --app-on-cta: #1C140F; --app-accent: #F5B556; --app-accent-soft: #3A2A15; --app-on-accent: #1C140F;
    --rose: #F08A74; --rose-bg: #3D2019; --clay: #D9B54A; --clay-bg: #352B12; --peach: #F5B556; --peach-bg: #3A2A15;
    --gold: #E3BD45; --gold-bg: #36290F; --lilac: #ADA4E3; --lilac-bg: #2A2638; --sage: #7CC79E; --sage-bg: #1E3028;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17110C; --cream: #221912; --cream-2: #2D2118; --card: #261C15; --line: #3D2E22;
  --ink: #F5EADA; --ink-2: #BBA68F; --marigold: #F5B556; --marigold-deep: #F8C878;
  --cta: #F5EADA; --on-cta: #17110C; --sun-1: #6E4A1C; --sun-2: #3A2915; --glow: rgba(245, 181, 86, 0.14);
  --shadow-card: 0 0 0 1px #3D2E22; --phone-shadow: 0 40px 70px -24px rgba(0, 0, 0, 0.75);
  --app-bg: #1C140F; --app-panel: #30241B; --app-border: #4D3A2B; --app-ink: #F3E7D3; --app-ink-2: #B39C83;
  --app-muted: #957F69; --app-cta: #F3E7D3; --app-on-cta: #1C140F; --app-accent: #F5B556; --app-accent-soft: #3A2A15; --app-on-accent: #1C140F;
  --rose: #F08A74; --rose-bg: #3D2019; --clay: #D9B54A; --clay-bg: #352B12; --peach: #F5B556; --peach-bg: #3A2A15;
  --gold: #E3BD45; --gold-bg: #36290F; --lilac: #ADA4E3; --lilac-bg: #2A2638; --sage: #7CC79E; --sage-bg: #1E3028;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--marigold); outline-offset: 3px; border-radius: 10px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 900; letter-spacing: -0.025em; line-height: 1.02; text-wrap: balance; }
h1 { font-size: clamp(3rem, 1.9rem + 5vw, 5.75rem); }
h2 { font-size: clamp(2.125rem, 1.5rem + 2.7vw, 3.5rem); }
h3 { font-size: 1.375rem; letter-spacing: -0.015em; line-height: 1.2; font-weight: 800; }
p { margin: 0; }
.kicker { font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--marigold-deep); letter-spacing: 0.01em; }
.lead { font-size: 1.25rem; line-height: 1.55; color: var(--ink-2); max-width: 32rem; text-wrap: pretty; }

/* App Store badge */
.badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #A6A6A6; border-radius: 13px; padding: 9px 20px 9px 15px; line-height: 1; }
.badge svg { width: 27px; height: 27px; fill: currentColor; flex: none; }
.badge small { display: block; font-size: 0.6875rem; font-weight: 500; margin-bottom: 3px; }
.badge b { display: block; font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; }
.badge.sm { padding: 6px 14px 6px 10px; border-radius: 10px; }
.badge.sm svg { width: 20px; height: 20px; }
.badge.sm small { font-size: 0.5625rem; margin-bottom: 2px; }
.badge.sm b { font-size: 1rem; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores.sm { gap: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); }
.site-header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.5rem; letter-spacing: -0.03em; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.site-nav { display: flex; gap: 28px; }
.site-nav a { text-decoration: none; font-size: 0.9375rem; font-weight: 600; color: var(--ink-2); }
.site-nav a:hover { color: var(--ink); }
.site-header .stores { justify-self: end; flex-wrap: nowrap; }

/* ---------- Hero: the promise ---------- */
.hero { position: relative; padding-block: 48px 40px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 26px; min-width: 0; position: relative; z-index: 2; }
.hero h1 .early { position: relative; color: var(--marigold-deep); white-space: nowrap; }
.hero h1 .early svg { position: absolute; left: -2%; bottom: -0.16em; width: 104%; height: 0.32em; color: var(--marigold); }
.hero-meta { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: var(--ink-2); }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--marigold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--marigold) 25%, transparent); }

.scene { position: relative; height: 640px; min-width: 0; }
.sun { position: absolute; left: 50%; top: 44%; width: 560px; height: 560px; max-width: 120%; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle at 50% 50%, var(--sun-1) 0 38%, var(--sun-2) 39% 58%, transparent 59%); }
.sun::after { content: ""; position: absolute; inset: -60px; border-radius: 50%; background: repeating-conic-gradient(from 0deg, var(--glow) 0 5deg, transparent 5deg 15deg); -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%, transparent 70%); mask: radial-gradient(circle, transparent 46%, #000 47%, transparent 70%); }
.scene .phone { position: absolute; width: 290px; left: 50%; top: 40px; translate: -50% 0; rotate: 3deg; z-index: 1; }
.perch { position: absolute; z-index: 3; width: 190px; left: calc(50% + 52px); top: -64px; }
.bubble-say { position: absolute; z-index: 4; left: calc(50% + 196px); top: -34px; background: var(--card); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; padding: 10px 16px; border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow-card); white-space: nowrap; rotate: 4deg; }
.peek { position: absolute; z-index: 3; width: 140px; left: calc(50% - 290px); bottom: 70px; }

/* Bird motion: a gentle bob, staggered so the cast doesn't move in sync. */
@media (prefers-reduced-motion: no-preference) {
  .bob { animation: bob 3.2s ease-in-out infinite; transform-origin: 50% 100%; }
  .bob.d1 { animation-delay: -0.8s; } .bob.d2 { animation-delay: -1.6s; } .bob.d3 { animation-delay: -2.4s; }
  .crow { animation: crow 2.6s ease-in-out infinite; transform-origin: 50% 95%; }
  .snooze { animation: snooze 4s ease-in-out infinite; transform-origin: 50% 100%; }
  .sun { animation: rise 1.4s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-5px) rotate(-1.5deg); } }
@keyframes crow { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-5deg); } 80% { transform: rotate(2deg); } 90% { transform: rotate(-3deg); } }
@keyframes snooze { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, 0.97); } }
@keyframes rise { from { translate: -50% -38%; } to { translate: -50% -50%; } }

/* ---------- Section frame ---------- */
.section { padding-block: 112px; }
.head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 720px; margin: 0 auto 60px; }
.head p { color: var(--ink-2); font-size: 1.1875rem; max-width: 36rem; }

/* ---------- How it works ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.stage { position: relative; height: 440px; border-radius: 34px; background: var(--cream); display: flex; justify-content: center; align-items: flex-end; overflow: hidden; }
.stage::before { content: ""; position: absolute; left: 50%; top: 64px; width: 300px; height: 300px; translate: -50% 0; border-radius: 50%; background: var(--cream-2); }
.stage .phone { position: relative; width: 220px; margin-bottom: -150px; z-index: 1; box-shadow: 0 24px 40px -20px rgba(43, 29, 20, 0.35); }
.stage .cast { position: absolute; z-index: 2; width: 108px; left: 8px; bottom: 4px; }
.step-title { display: flex; align-items: baseline; gap: 12px; margin-top: 16px; }
.step-title .n { font-family: var(--font-display); font-weight: 900; font-size: 1.375rem; color: var(--marigold-deep); font-variant-numeric: tabular-nums; }
.step p { color: var(--ink-2); padding-left: 26px; }

/* ---------- Missions ---------- */
.missions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mission { background: var(--card); border-radius: 28px; padding: 28px; display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; box-shadow: var(--shadow-card); min-width: 0; }
.mission .bub { grid-row: span 3; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; }
.mission .bub svg { width: 30px; height: 30px; }
.mission h3 { align-self: center; }
.mission .meta { font-size: 0.875rem; font-weight: 700; color: var(--marigold-deep); }
.mission p { color: var(--ink-2); font-size: 0.98rem; }
.t-rose { background: var(--rose-bg); color: var(--rose); }
.t-clay { background: var(--clay-bg); color: var(--clay); }
.t-peach { background: var(--peach-bg); color: var(--peach); }
.t-gold { background: var(--gold-bg); color: var(--gold); }
.t-lilac { background: var(--lilac-bg); color: var(--lilac); }
.t-sage { background: var(--sage-bg); color: var(--sage); }

/* ---------- Your bird ---------- */
.bird-sec { background: var(--cream); border-radius: 48px; margin-inline: max(12px, env(safe-area-inset-left, 0px)); }
.growth { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); align-items: end; gap: 8px; padding: 0 8px; }
.growth::after { content: ""; position: absolute; left: 0; right: 0; bottom: 74px; height: 14px; border-radius: 99px; background: var(--cream-2); z-index: 0; }
.g { display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; z-index: 1; min-width: 0; }
.g img { width: 100%; }
.g:nth-child(1) img { max-width: 92px; } .g:nth-child(2) img { max-width: 108px; } .g:nth-child(3) img { max-width: 124px; }
.g:nth-child(4) img { max-width: 140px; } .g:nth-child(5) img { max-width: 158px; } .g:nth-child(6) img { max-width: 178px; }
.g .lbl { text-align: center; line-height: 1.25; }
.g .lbl b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.0625rem; }
.g .lbl span { font-size: 0.875rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.trio { display: grid; grid-template-columns: 1fr 1.25fr; gap: 24px; margin-top: 72px; align-items: stretch; }
.panel { background: var(--card); border-radius: 32px; padding: 32px; box-shadow: var(--shadow-card); display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative; overflow: hidden; }
.panel p { color: var(--ink-2); }

.streak-num { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.streak-num svg { width: 46px; height: 46px; color: var(--marigold); }
.streak-num b { font-family: var(--font-display); font-weight: 900; font-size: 3.5rem; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.streak-num span { font-family: var(--font-display); font-weight: 800; color: var(--ink-2); font-size: 1.125rem; line-height: 1.15; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 360px; margin-block: 14px 18px; }
.week div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.week i { width: 36px; max-width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--marigold); display: grid; place-items: center; color: var(--app-on-accent); }
.week i svg { width: 16px; height: 16px; }
.week i.today { background: var(--cream); box-shadow: inset 0 0 0 2.5px var(--marigold); }
.reset { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 20px; border-top: 1px dashed var(--line); }
.reset img { width: 64px; flex: none; }
.reset p { font-size: 0.95rem; }

.medals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 12px; margin-top: 6px; }
.medal { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; min-width: 0; }
.medal svg { width: 76px; height: 76px; }
.medal b { font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; line-height: 1.2; }
.medal span { font-size: 0.8rem; color: var(--ink-2); line-height: 1.3; }
.medal.locked svg { opacity: 0.5; filter: grayscale(1); }

/* Dress up */
.wardrobe { margin-top: 24px; background: var(--card); border-radius: 32px; padding: 36px 32px 28px; box-shadow: var(--shadow-card); }
.wardrobe-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.wardrobe-head p { color: var(--ink-2); max-width: 30rem; margin-top: 10px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { background: var(--cream); border-radius: 99px; padding: 6px 14px; font-weight: 700; font-size: 0.875rem; color: var(--ink-2); }
.closet { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: start; }
.fit { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 0; }
.fit .pod { width: 100%; aspect-ratio: 1 / 1.1; border-radius: 24px; background: var(--cream); display: flex; align-items: flex-end; justify-content: center; padding: 8px; }
.fit img { width: 92%; }
.fit span { font-size: 0.8125rem; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.3; }

/* ---------- Friends ---------- */
.friends { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.friends-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; min-width: 0; }
.friends-copy p { color: var(--ink-2); font-size: 1.1875rem; }
.code { display: inline-flex; align-items: center; gap: 12px; background: var(--cream); border-radius: 16px; padding: 12px 18px; font-weight: 600; color: var(--ink-2); font-size: 0.9375rem; }
.code b { font-family: var(--font-display); font-weight: 900; font-size: 1.375rem; letter-spacing: 0.16em; color: var(--ink); }
.group { background: var(--card); border-radius: 34px; padding: 28px; box-shadow: var(--shadow-card); min-width: 0; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.group-head h3 { font-size: 1.25rem; }
.group-head span { font-size: 0.875rem; color: var(--ink-2); font-weight: 600; }
.roost { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; align-items: end; padding: 18px 6px 0; border-bottom: 10px solid var(--cream-2); border-radius: 0 0 6px 6px; }
.roost img { width: 100%; justify-self: center; }
.roost img:nth-child(1) { max-width: 150px; } .roost img:nth-child(2) { max-width: 128px; }
.roost img:nth-child(3) { max-width: 108px; } .roost img:nth-child(4) { max-width: 140px; }
.names { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; text-align: center; }
.names b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1rem; }
.names span { font-size: 0.8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* ---------- Closing CTA ---------- */
.closing { position: relative; overflow: hidden; border-radius: 48px; background: radial-gradient(120% 90% at 50% 100%, var(--sun-1) 0 30%, var(--sun-2) 31% 55%, var(--cream) 56%); margin-inline: max(12px, env(safe-area-inset-left, 0px)); }
.closing .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-block: 88px 0; }
.closing .stores { justify-content: center; }
.closing p { color: var(--ink-2); font-size: 1.1875rem; max-width: 30rem; }
.closing .waver { width: 220px; margin-top: 8px; margin-bottom: -18px; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 64px 40px; font-size: 0.9375rem; color: var(--ink-2); }
.site-footer .top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer .brandcol { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.site-footer h4 { margin: 0 0 12px; font-size: 0.9375rem; color: var(--ink); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }
.site-footer .bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; font-size: 0.875rem; }

/* ---------- Phone (deep purple titanium, matches the supplied mockup). Sizes in cqw of the phone. ---------- */
.phone { position: relative; isolation: isolate; container-type: inline-size; aspect-ratio: 262 / 537; max-width: 100%; border-radius: 15.3% / 7.4%;
  background: linear-gradient(120deg, #A08C98 0%, #6C5C66 18%, #4F444C 45%, #463B43 70%, #94808C 100%); box-shadow: var(--phone-shadow); }
.phone::before { content: ""; position: absolute; inset: 1.9cqw; border-radius: 13.5cqw; background: #1C1D1D; box-shadow: inset 0 0 0 0.45cqw #050505; z-index: 0; }
.phone::after { content: ""; position: absolute; top: 0; bottom: 0; left: -0.9cqw; right: -0.9cqw; z-index: -1;
  background:
    linear-gradient(90deg, #4A3F47, #8F7B88) left 0 top 32.4cqw / 1.6cqw 8.4cqw no-repeat,
    linear-gradient(90deg, #4A3F47, #8F7B88) left 0 top 47.7cqw / 1.6cqw 14.5cqw no-repeat,
    linear-gradient(90deg, #4A3F47, #8F7B88) left 0 top 67.6cqw / 1.6cqw 14.5cqw no-repeat,
    linear-gradient(270deg, #4A3F47, #8F7B88) right 0 top 52.3cqw / 1.6cqw 24.8cqw no-repeat; }
.screen { position: absolute; inset: 5cqw; z-index: 1; overflow: hidden; border-radius: 10.8cqw; background: var(--app-bg); color: var(--app-ink); font-family: var(--font-app); }
.screen::before { content: ""; position: absolute; top: 3cqw; left: 50%; translate: -50% 0; width: 22.5cqw; height: 6.2cqw; border-radius: 99px; background: #050505; z-index: 3; }
.status { display: flex; justify-content: space-between; padding: 4.6cqw 8cqw 0 9cqw; font: 600 4.4cqw/1 var(--font); color: var(--app-ink); }
.status i { display: inline-block; width: 7cqw; height: 3.4cqw; border-radius: 1cqw; border: 0.5cqw solid currentColor; }

.s-home { display: flex; flex-direction: column; }
.s-home .body { flex: 1; padding: 6cqw 5cqw 0; display: flex; flex-direction: column; gap: 4cqw; }
.s-home h4 { margin: 0; font: 800 7.6cqw/1.1 var(--font-app); letter-spacing: -0.02em; }
.hcard { background: var(--app-panel); border-radius: 7cqw; padding: 5cqw 5cqw 3.5cqw; display: grid; grid-template-columns: 1fr auto; gap: 1cqw 2cqw; box-shadow: 0 2cqw 6cqw rgba(43, 29, 20, 0.06); }
.hcard .lbl { font-size: 3.6cqw; font-weight: 700; color: var(--app-ink-2); }
.hcard .time { font: 800 15cqw/1 var(--font-app); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.hcard .sub { font-size: 3.9cqw; font-weight: 700; }
.hcard .mis { font-size: 3.4cqw; color: var(--app-ink-2); line-height: 1.3; }
.hcard .bird { grid-row: 1 / span 4; grid-column: 2; align-self: center; text-align: center; font-size: 3cqw; color: var(--app-ink-2); line-height: 1.25; width: 24cqw; }
.hcard .bird img { width: 22cqw; height: 22cqw; margin: 0 auto 1cqw; }
.hcard .bird b { display: block; color: var(--app-ink); font-size: 3.2cqw; }

.s-wake { display: flex; flex-direction: column; align-items: center; padding: 0 6cqw 7cqw; text-align: center; }
.s-wake .clock { margin-top: 13cqw; font-size: 4.6cqw; font-weight: 700; color: var(--app-ink-2); }
.s-wake .bird { width: 52cqw; height: 52cqw; margin-top: 8cqw; }
.s-wake h4 { margin: 4cqw 0 0; font: 800 8.4cqw/1.1 var(--font-app); letter-spacing: -0.02em; }
.task { margin-top: 5cqw; width: 100%; display: flex; gap: 3cqw; align-items: center; text-align: left; background: var(--app-panel); border-radius: 5.5cqw; padding: 3.5cqw 4cqw; }
.task .ic { flex: none; width: 10cqw; height: 10cqw; border-radius: 50%; background: var(--peach-bg); color: var(--peach); display: grid; place-items: center; }
.task .ic svg { width: 5.6cqw; height: 5.6cqw; }
.task small { display: block; font-size: 2.9cqw; color: var(--app-ink-2); }
.task b { display: block; font-size: 4.2cqw; line-height: 1.2; }
.task span { display: block; font-size: 3cqw; color: var(--app-ink-2); }
.cta { margin-top: auto; width: 100%; background: var(--app-cta); color: var(--app-on-cta); border-radius: 99px; padding: 4.2cqw; font: 800 4.4cqw/1 var(--font-app); }

.s-cam { background: linear-gradient(180deg, #3B302A, #1D1714); color: #fff; display: flex; flex-direction: column; align-items: center; padding: 0 6cqw 8cqw; text-align: center; }
.s-cam .status { color: #fff; }
.s-cam .figure { margin-top: 18cqw; width: 46cqw; color: rgba(255, 255, 255, 0.92); }
.s-cam .count { margin-top: 8cqw; font: 800 22cqw/1 var(--font-app); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.s-cam .count small { font-size: 9cqw; color: rgba(255, 255, 255, 0.6); }
.s-cam .hint { margin-top: 2cqw; font: 700 4.2cqw/1.3 var(--font-app); color: rgba(255, 255, 255, 0.85); }

.s-off { display: flex; flex-direction: column; align-items: center; gap: 3.5cqw; text-align: center; padding-top: 30cqw; }
.s-off .check { width: 30cqw; height: 30cqw; border-radius: 50%; background: var(--app-accent); color: var(--app-on-accent); display: grid; place-items: center; margin-bottom: 3cqw; }
.s-off .check svg { width: 15cqw; height: 15cqw; }
.s-off h4 { margin: 0; font: 800 9.5cqw/1 var(--font-app); letter-spacing: -0.03em; }
.s-off p { font-size: 4.4cqw; color: var(--app-ink-2); line-height: 1.3; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .site-header .stores .badge:last-child { display: none; }
}
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .scene { height: 600px; max-width: 560px; width: 100%; margin: 0 auto; }
  .friends { grid-template-columns: 1fr; gap: 36px; }
  .trio { grid-template-columns: 1fr; }
  .missions { grid-template-columns: repeat(2, 1fr); }
  .closet { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
}
@media (max-width: 760px) {
  .site-header .wrap { grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .section { padding-block: 80px; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .growth { grid-template-columns: repeat(3, 1fr); row-gap: 32px; }
  .growth::after { display: none; }
  .site-footer .top { grid-template-columns: 1fr 1fr; }
  .site-footer .brandcol { grid-column: 1 / -1; }
  .bird-sec, .closing { border-radius: 32px; }
}
@media (max-width: 560px) {
  .hero { padding-block: 24px; }
  .scene { height: 520px; margin-top: 36px; }
  .sun { width: 420px; height: 420px; }
  .scene .phone { width: 230px; top: 46px; }
  .perch { width: 140px; left: calc(50% + 34px); top: -32px; }
  .bubble-say { left: auto; right: 0; top: -40px; font-size: 0.95rem; }
  .peek { width: 104px; left: calc(50% - 190px); bottom: 40px; }
  .missions { grid-template-columns: 1fr; }
  .mission { padding: 24px; }
  .medals { grid-template-columns: repeat(2, 1fr); }
  .closet { grid-template-columns: repeat(2, 1fr); }
  .roost, .names { gap: 4px; }
  .panel, .wardrobe, .group { padding: 24px 20px; }
  .badge.sm small { display: none; }
}

/* ---------- Legal pages (privacy, terms) ---------- */
.doc { padding-block: 40px 96px; }
.doc .wrap { max-width: 820px; }
.doc-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.doc-head h1 { font-size: clamp(2.5rem, 1.8rem + 3vw, 3.75rem); }
.doc-head .updated { margin-top: 12px; color: var(--ink-2); font-size: 0.9375rem; }
.doc-head img { width: 132px; }
.toc { margin: 0 0 48px; padding: 0; list-style: none; columns: 2; column-gap: 32px; font-size: 0.9375rem; }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.625rem; margin: 52px 0 14px; scroll-margin-top: 90px; }
.prose h3 { font-size: 1.125rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink); line-height: 1.7; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; margin: 10px 0; display: grid; gap: 6px; }
.prose a { color: var(--marigold-deep); text-underline-offset: 3px; }
.prose strong { font-weight: 700; }
.tbl { overflow-x: auto; margin: 14px 0 6px; border: 1px solid var(--line); border-radius: 18px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 560px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); line-height: 1.5; }
.tbl th { background: var(--cream); font-weight: 700; }
.tbl tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  .doc-head { grid-template-columns: 1fr; }
  .doc-head img { width: 96px; order: -1; }
  .toc { columns: 1; }
}
