/* Matches the Expo app's melloPalette in mobile/app/src/ui/theme.ts. */
:root {
  color-scheme: light;
  --paper: #FFFCF2;
  --surface: #FFFFFF;
  --warm: #FFF7DA;
  --yellow: #F2C319;
  --yellow-soft: #FFF1A8;
  --ink: #2D2416;
  --muted: #6D604A;
  --line: #E9DDBB;
  --hero-dark: #352A18;
  --hero-text: #FFF8E7;
  --section: 100px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
[data-density="compact"] { --section: 72px; }
[data-density="airy"] { --section: 128px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
button, input { font: inherit; }
button, summary { cursor: pointer; }
img { display: block; max-width: 100%; }
a, button, input, summary { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; }
.wrap { width: min(1200px, 100%); padding-inline: 40px; margin-inline: auto; }
.section { padding-block: var(--section); }
h2 { font-size: clamp(32px, 3.3vw, 46px); line-height: 1.14; letter-spacing: -.035em; font-weight: 700; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.skip-link { position: absolute; left: 20px; top: -100px; z-index: 100; padding: 12px 20px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.navigation { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 24px; font-weight: 750; letter-spacing: -.04em; }
.brand img { border-radius: 12px; }
.nav-links, .footer-links { display: flex; align-items: center; gap: 30px; }
.nav-links a, .footer-links a { text-decoration: none; font-size: 14px; font-weight: 500; padding-block: 12px; }
.nav-links a:hover, .footer-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 10px 18px; border: 1px solid var(--ink); border-radius: 10px; text-decoration: none; font-size: 14px; font-weight: 650; }
.nav-cta:hover { background: var(--yellow-soft); }
.hero { background: var(--yellow); }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 72px; align-items: center; padding-block: 58px 42px; }
.availability { font-size: 14px; font-weight: 600; margin-bottom: 28px; }
h1 { font-size: clamp(50px, 5.7vw, 76px); line-height: 1.04; letter-spacing: -.05em; font-weight: 750; }
.hero-description { font-size: 20px; line-height: 1.55; max-width: 34ch; margin-top: 28px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; min-height: 54px; padding: 14px 22px; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 12px; font-size: 15px; font-weight: 600; text-decoration: none; transition: background .15s; }
.button:hover:not(:disabled) { background: #493B28; }
.button:disabled { opacity: .72; cursor: default; }
.text-link { font-size: 14px; font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 5px; padding-block: 12px; }
.text-link span { margin-left: 8px; }
.hero-preview { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-preview figcaption { font-size: 13px; }
.phone-size { --phone-scale: .67; width: calc(402px * var(--phone-scale)); height: calc(874px * var(--phone-scale)); position: relative; }
.phone-render { width: 402px; height: 874px; transform: scale(var(--phone-scale)); transform-origin: top left; user-select: none; pointer-events: none; }
.section-heading { margin-bottom: 48px; }
.section-heading p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.steps { padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; list-style: none; }
.step-number { display: inline-grid; place-items: center; height: 36px; width: 36px; font-size: 15px; font-weight: 700; border-radius: 50%; background: var(--yellow-soft); margin-bottom: 20px; }
.steps p { margin-top: 12px; color: var(--muted); max-width: 30ch; }
.library-section { background: var(--warm); }
.library-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 40px; }
.library-description { max-width: 42ch; color: var(--muted); font-size: 18px; }
.library-description p + p { margin-top: 16px; }
.exercise-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.exercise-image { background: #FCF1E5; border-radius: 18px; overflow: hidden; aspect-ratio: 1.2; }
.exercise-image img { width: 100%; height: 100%; object-fit: contain; padding: 0; }
.exercise-gallery figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 2px 0; }
.exercise-gallery figcaption span { color: var(--muted); font-size: 14px; }
.founder { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 80px; }
.founder-art { background: var(--yellow-soft); border-radius: 28px; aspect-ratio: 1.12; display: flex; align-items: center; overflow: hidden; }
.founder-art img { width: 100%; height: auto; }
.founder-copy h2 { margin-bottom: 26px; }
.founder-copy p { margin-top: 16px; max-width: 40ch; color: var(--muted); font-size: 18px; }
.founder-copy .founder-signoff { color: var(--ink); font-weight: 600; margin-top: 24px; }
.faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 72px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px; font-size: 17px; font-weight: 600; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { font-size: 24px; font-weight: 400; flex: none; transition: transform .15s; }
.faq details[open] summary span { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 32px 24px 0; }
.download-section { background: var(--yellow-soft); padding-block: 76px; }
.download-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.download-grid h2 { font-size: clamp(32px, 3.1vw, 42px); }
.download-grid > div > p { margin-top: 20px; color: var(--muted); }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.store-badge { display: inline-flex; }
.store-badges img { display: block; height: 48px; width: auto; }
.store-note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.footer { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-block: 34px; }
.footer p { color: var(--muted); font-size: 13px; }
.footer .brand { font-size: 21px; }

/* Display-only home screen, using the current app colours and layout. */
.app-screen { height: 874px; background: var(--paper); display: flex; flex-direction: column; color: var(--ink); }
.app-content { padding: 80px 20px 16px; }
.app-day { color: var(--muted); font-size: 13px; font-weight: 600; }
.app-title { font-size: 34px; line-height: 1.1; margin: 6px 0 24px; font-weight: 750; }
.app-hero { background: var(--hero-dark); border-radius: 24px; padding: 20px; color: var(--hero-text); }
.app-hero-intro { display: grid; grid-template-columns: 1fr 106px; align-items: center; gap: 10px; }
.app-hero-intro img { object-fit: contain; }
.app-recommendation { font-size: 12px; }
.app-hero h3 { font-size: 28px; line-height: 1.12; margin: 10px 0; font-weight: 750; letter-spacing: -.02em; }
.app-meta { font-size: 14px; }
.app-start { background: var(--yellow); color: var(--ink); padding: 14px; text-align: center; font-size: 15px; font-weight: 700; border-radius: 12px; margin-top: 22px; }
.app-plan { margin-top: 20px; border-top: 1px solid #64563D; }
.app-plan > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #64563D; padding-block: 14px; font-size: 13px; }
.app-plan > div:last-child { border-bottom: none; padding-bottom: 0; }
.app-plan b { font-size: 12px; font-weight: 600; text-align: right; }
.app-plan small { display: block; font-size: 10px; color: #D5C7AA; margin-top: 2px; }
.app-other { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: white; border: 1px solid var(--line); padding: 18px 16px; border-radius: 16px; margin-top: 16px; }
.app-other b { font-size: 16px; }
.app-other p { font-size: 11px; color: var(--muted); margin-top: 4px; }
.app-other > span { font-size: 24px; }
.app-tabs { margin: auto 18px 40px; padding: 6px; display: flex; background: white; border: 1px solid var(--line); border-radius: 30px; }
.app-tabs > div { flex: 1; display: flex; flex-direction: column; gap: 5px; align-items: center; justify-content: center; padding: 10px 0; font-size: 11px; color: var(--muted); border-radius: 24px; }
.app-tabs .active { background: var(--yellow-soft); color: var(--ink); font-weight: 600; }

@media (max-width: 1000px) {
  .hero-grid { gap: 30px; }
  .nav-links { gap: 20px; }
  .library-heading, .founder, .faq-layout, .download-grid { gap: 40px; }
  .hero-actions { gap: 12px 22px; }
  .steps { gap: 28px; }
}
@media (max-width: 760px) {
  :root { --section: 64px; }
  .wrap { padding-inline: 24px; }
  .navigation { min-height: 74px; gap: 12px; }
  .brand { font-size: 22px; }
  .brand img { width: 36px; height: 36px; }
  .nav-links { display: none; }
  .nav-cta { font-size: 13px; padding: 9px 12px; }
  .hero-grid { grid-template-columns: 1fr; padding-block: 44px 32px; gap: 40px; }
  h1 { font-size: clamp(46px, 10vw, 66px); }
  .availability { margin-bottom: 22px; }
  .hero-description { font-size: 18px; margin-top: 22px; max-width: 36ch; }
  .hero-actions { margin-top: 26px; }
  .phone-size { --phone-scale: .64; }
  .hero-preview { gap: 18px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading p, .library-description, .founder-copy p { font-size: 16px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps li { display: grid; grid-template-columns: 36px 1fr; gap: 6px 18px; }
  .step-number { grid-row: 1 / 3; margin-bottom: 0; }
  .steps h3 { padding-top: 3px; }
  .steps p { grid-column: 2; margin: 0; max-width: 44ch; }
  .library-heading, .founder, .faq-layout, .download-grid { grid-template-columns: 1fr; gap: 28px; }
  .library-heading h2 br { display: none; }
  .library-heading h2 { max-width: 14ch; }
  .exercise-gallery { gap: 28px; grid-template-columns: 1fr; }
  .exercise-image { aspect-ratio: 1.5; }
  .exercise-gallery figcaption { padding-top: 12px; }
  .founder-art { max-width: 480px; }
  .founder-copy h2 { margin-bottom: 20px; }
  .faq summary { font-size: 16px; }
  .download-section { padding-block: 56px; }
  .desktop-break { display: none; }
  .footer { gap: 20px; }
  .footer-links { width: 100%; gap: 24px; flex-wrap: wrap; }
  .footer p { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 380px) {
  .navigation { gap: 10px; }
  .nav-cta { white-space: nowrap; padding-inline: 10px; font-size: 12px; }
  .nav-cta span { display: none; }
  h1 { font-size: 38px; }
}
