/* Coffee Wizard Labs and BirdRunner. System fonts and plain screenshots, with the app's own colors and birds for character.
   No scripts: motion is CSS only and stops when Reduce Motion is on. Bump ?v= in the pages when this file changes. */
:root {
  --bg: #ffffff;
  --tile: #f5f5f7;
  --raised: #ffffff;
  --ink: #1d1d1f;
  --secondary: #6e6e73;
  --hairline: rgba(0, 0, 0, 0.1);
  --link: #3f6212;
  --nav: rgba(255, 255, 255, 0.78);
  --shot-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.32);
  /* The app's accent colors (Sources/MilelightApp/Design.swift), strong and soft. */
  --lime: #cfef63; --mint: #71d9ae; --sky: #7bc7f2; --lavender: #bca0ef; --rose: #f1a1be; --orange: #f4b16c;
  --lime-soft: #ecf8c4; --mint-soft: #dcf6ea; --sky-soft: #e2f2fc; --lavender-soft: #efe9fd; --rose-soft: #fcebf1; --orange-soft: #fdeedd;
  --forest: #121a10;
  --on-color: #1d1d1f;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --tile: #1c1c1e;
    --raised: #2c2c2e;
    --ink: #f5f5f7;
    --secondary: #a1a1a6;
    --hairline: rgba(255, 255, 255, 0.14);
    --link: #cfef63;
    --nav: rgba(22, 22, 23, 0.78);
    --shot-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.9);
    --lime-soft: #2a3313; --mint-soft: #15302a; --sky-soft: #142a38; --lavender-soft: #261f3a; --rose-soft: #35202a; --orange-soft: #352616;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.47 var(--font); letter-spacing: -0.022em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { width: min(1060px, 100% - 44px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--raised); padding: 8px 12px; border-radius: 10px; z-index: 20; }

/* Navigation bar */
.nav { position: sticky; top: 0; z-index: 10; background: var(--nav); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--hairline); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 600 19px/1 var(--display); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.brand span { white-space: nowrap; }
@media (prefers-color-scheme: dark) { .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16); } }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 13px; letter-spacing: -0.01em; }
.nav nav a { color: var(--ink); opacity: 0.8; }
.nav nav a:hover, .nav nav a[aria-current="page"] { opacity: 1; text-decoration: none; }
.nav nav a[aria-current="page"] { font-weight: 600; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0; padding: 4px 11px; border-radius: 999px; background: var(--lime); color: var(--on-color); white-space: nowrap; }
.badge.dark { background: var(--on-color); color: var(--lime); }
@media (prefers-color-scheme: dark) { .badge.dark { background: var(--lime); color: var(--on-color); } }

/* Type */
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(48px, 9vw, 96px); line-height: 1; letter-spacing: -0.045em; }
h2 { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; }
h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
.kicker { font-size: clamp(17px, 2vw, 21px); font-weight: 600; color: var(--secondary); margin: 0 0 12px; letter-spacing: -0.015em; }
.lede { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.33; letter-spacing: -0.015em; color: var(--secondary); max-width: 680px; margin: 18px auto 0; text-wrap: pretty; }
.center { text-align: center; }
.more { display: inline-block; margin-top: 18px; font-size: 19px; }
.more::after { content: " ›"; }
.note { color: var(--secondary); font-size: 14px; line-height: 1.5; }
.section { padding: 110px 0 0; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head .lede { margin-inline: auto; }
.shot { border-radius: 9.5% / 4.4%; box-shadow: var(--shot-shadow); outline: 1px solid var(--hairline); outline-offset: -1px; background: var(--tile); }

/* BirdRunner hero: a lime stage with a bird running laps along the bottom */
.stage { position: relative; background: var(--lime); color: var(--on-color); overflow: hidden; padding: 64px 0 0; isolation: isolate; }
.stage::before { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.55), transparent); z-index: -1; }
@media (prefers-color-scheme: dark) { .stage { background: linear-gradient(180deg, #2b3a12, #121a10 85%); color: #f5f5f7; } .stage::before { background: radial-gradient(closest-side, rgba(207, 239, 99, 0.18), transparent); } }
.stage .hero-copy { text-align: center; }
.stage .app-line { display: inline-flex; align-items: center; gap: 12px; font: 600 21px/1 var(--display); letter-spacing: -0.02em; margin-bottom: 22px; }
.stage .app-line img { width: 52px; height: 52px; border-radius: 12px; box-shadow: 0 8px 20px -8px rgba(0, 0, 0, 0.35); }
.stage h1 { max-width: 900px; margin-inline: auto; }
.stage .lede { color: inherit; opacity: 0.78; }
.stage .status { margin-top: 26px; font-size: 15px; font-weight: 600; }
.stage .status .badge { margin-right: 8px; }
.fan { position: relative; display: flex; justify-content: center; align-items: flex-end; margin-top: 56px; height: clamp(360px, 52vw, 600px); }
.fan .shot { position: absolute; left: 50%; bottom: -22%; width: clamp(180px, 25vw, 290px); }
.fan .left { transform: translateX(-118%) rotate(-8deg); transform-origin: bottom right; }
.fan .right { transform: translateX(18%) rotate(8deg); transform-origin: bottom left; }
.fan .middle { z-index: 2; width: clamp(200px, 28vw, 320px); bottom: -10%; transform: translateX(-50%); }
.chip { position: absolute; z-index: 3; background: var(--raised); color: var(--ink); border-radius: 18px; padding: 10px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.35); white-space: nowrap; animation: float 6s ease-in-out infinite; }
.chip small { display: block; font-size: 12px; font-weight: 500; color: var(--secondary); }
.chip.one { left: calc(50% - clamp(300px, 40vw, 470px)); top: 18%; }
.chip.two { right: calc(50% - clamp(300px, 40vw, 470px)); top: 34%; animation-delay: -3s; }
.track { position: relative; height: 70px; margin-top: -70px; z-index: 4; pointer-events: none; }
.track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; border-bottom: 3px dashed rgba(29, 29, 31, 0.25); }
@media (prefers-color-scheme: dark) { .track::before { border-color: rgba(255, 255, 255, 0.22); } }
.track img { position: absolute; bottom: 10px; width: 64px; animation: lap 14s linear infinite; }

/* Big numbers */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.numbers div { padding: 8px; }
.numbers strong { display: block; font: 700 clamp(44px, 6vw, 72px)/1 var(--rounded); letter-spacing: -0.04em; }
.numbers span { display: block; margin-top: 10px; color: var(--secondary); font-size: 17px; }
.numbers div:nth-child(1) strong { color: #5f8a1c; } .numbers div:nth-child(2) strong { color: #2f9e74; }
.numbers div:nth-child(3) strong { color: #2f86bd; } .numbers div:nth-child(4) strong { color: #8a63d2; }
@media (prefers-color-scheme: dark) {
  .numbers div:nth-child(1) strong { color: var(--lime); } .numbers div:nth-child(2) strong { color: var(--mint); }
  .numbers div:nth-child(3) strong { color: var(--sky); } .numbers div:nth-child(4) strong { color: var(--lavender); }
}

/* Guided runs: a dark band with a lime timer */
.night { background: var(--forest); color: #f5f5f7; border-radius: 36px; padding: clamp(40px, 7vw, 88px) clamp(28px, 6vw, 72px) 0; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; overflow: hidden; }
.night .copy { padding-bottom: clamp(40px, 7vw, 88px); align-self: center; }
.night .kicker { color: var(--lime); }
.night .timer { font: 700 clamp(64px, 11vw, 132px)/0.9 var(--rounded); letter-spacing: -0.05em; color: var(--lime); font-variant-numeric: tabular-nums; margin: 6px 0 22px; }
.night p { color: #c7cbc2; font-size: 19px; max-width: 460px; }
.night ul { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.night li { border: 1px solid rgba(207, 239, 99, 0.45); color: #eef5d8; border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 600; }
.night .peek { width: min(300px, 100%); margin: 0 auto; border-radius: 34px 34px 0 0; box-shadow: 0 0 80px rgba(207, 239, 99, 0.18); }

/* Colored feature tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { grid-column: span 2; background: var(--tile); border-radius: 30px; padding: 36px 34px; overflow: hidden; position: relative; }
.tile.wide { grid-column: span 3; }
.tile.split { grid-column: span 3; padding-bottom: 0; display: flex; flex-direction: column; }
.tile.split .peek { margin-top: auto; padding-top: 0; }
.tile.split p:last-of-type { margin-bottom: 30px; }
.tile h3 + p { margin: 10px 0 0; color: var(--secondary); }
.tile .eyebrow { font-size: 14px; font-weight: 700; margin: 0 0 10px; letter-spacing: -0.005em; }
.tile .peek { width: min(260px, 90%); margin: 0 auto; border-radius: 30px 30px 0 0; outline: 1px solid var(--hairline); outline-offset: -1px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.3); }
.tile.lime { background: var(--lime-soft); } .tile.lime .eyebrow { color: #4d7a12; }
.tile.mint { background: var(--mint-soft); } .tile.mint .eyebrow { color: #1f7f5a; }
.tile.sky { background: var(--sky-soft); } .tile.sky .eyebrow { color: #1f6f9f; }
.tile.lavender { background: var(--lavender-soft); } .tile.lavender .eyebrow { color: #6b46b8; }
.tile.rose { background: var(--rose-soft); } .tile.rose .eyebrow { color: #b03a6a; }
.tile.orange { background: var(--orange-soft); } .tile.orange .eyebrow { color: #a3561a; }
@media (prefers-color-scheme: dark) {
  .tile.lime .eyebrow { color: var(--lime); } .tile.mint .eyebrow { color: var(--mint); } .tile.sky .eyebrow { color: var(--sky); }
  .tile.lavender .eyebrow { color: var(--lavender); } .tile.rose .eyebrow { color: var(--rose); } .tile.orange .eyebrow { color: var(--orange); }
}
.tile .big { font: 700 44px/1 var(--rounded); letter-spacing: -0.04em; margin: 18px 0 0; }

/* Pick your bird */
.flock { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flock figure { margin: 0; text-align: center; }
.flock .perch { aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; transition: transform 0.25s ease; }
.flock .perch img { width: 74%; animation: bob 2.4s ease-in-out infinite; }
.flock figure:hover .perch { transform: translateY(-6px) rotate(-3deg); }
.flock figcaption { margin-top: 14px; font-weight: 650; font-size: 19px; }
.flock figure:nth-child(1) .perch { background: var(--lime-soft); }
.flock figure:nth-child(2) .perch { background: var(--orange-soft); } .flock figure:nth-child(2) img { animation-delay: -0.5s; }
.flock figure:nth-child(3) .perch { background: var(--lavender-soft); } .flock figure:nth-child(3) img { animation-delay: -1s; }
.flock figure:nth-child(4) .perch { background: var(--sky-soft); } .flock figure:nth-child(4) img { animation-delay: -1.5s; }
.flock figure:nth-child(5) .perch { background: var(--rose-soft); } .flock figure:nth-child(5) img { animation-delay: -2s; }
.swatches { display: flex; justify-content: center; gap: 12px; margin-top: 40px; flex-wrap: wrap; align-items: center; }
.swatches span { width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08); }
.sw-lime { background: var(--lime); } .sw-mint { background: var(--mint); } .sw-sky { background: var(--sky); }
.sw-lavender { background: var(--lavender); } .sw-rose { background: var(--rose); } .sw-orange { background: var(--orange); }

/* iPad */
.ipad { margin: 0 auto; width: min(760px, 100%); border-radius: 3.6% / 2.7%; }

/* Privacy */
.privacy { background: linear-gradient(160deg, var(--lavender-soft), var(--sky-soft)); border-radius: 36px; padding: clamp(36px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.privacy .cheer { width: 110px; margin: 0 auto 10px; }
.privacy .lede { margin-bottom: 36px; }
.checks { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 760px; text-align: left; }
.checks li { background: var(--raised); border-radius: 16px; padding: 16px 20px 16px 52px; position: relative; font-weight: 600; }
.checks li::before { content: "✓"; position: absolute; left: 18px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--lime); color: var(--on-color); font-size: 13px; font-weight: 800; display: grid; place-items: center; }

/* Studio home */
.studio-hero { position: relative; padding: 110px 0 20px; text-align: center; isolation: isolate; }
.studio-hero::before { content: ""; position: absolute; inset: 0 -20vw; z-index: -1; background:
  radial-gradient(38% 50% at 22% 30%, var(--lavender-soft), transparent 70%),
  radial-gradient(34% 46% at 80% 22%, var(--lime-soft), transparent 70%),
  radial-gradient(40% 50% at 60% 85%, var(--sky-soft), transparent 70%); }
.studio-hero .mark { width: 112px; height: 112px; margin: 0 auto 34px; border-radius: 26px; box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.45); }
.studio-hero h1 { max-width: 880px; margin-inline: auto; }
.studio-hero h1 em { font-style: normal; background: linear-gradient(90deg, #6a9a12, #2f9e74 45%, #8a63d2); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (prefers-color-scheme: dark) { .studio-hero h1 em { background-image: linear-gradient(90deg, var(--lime), var(--mint) 45%, var(--lavender)); } }
.product { margin-top: 80px; background: var(--lime); color: var(--on-color); border-radius: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: clamp(36px, 6vw, 64px) clamp(28px, 6vw, 64px) 0; overflow: hidden; position: relative; }
@media (prefers-color-scheme: dark) { .product { background: linear-gradient(160deg, #2b3a12, #121a10); color: #f5f5f7; } .product .lede { color: #c7cbc2 !important; } }
.product .copy { align-self: center; padding-bottom: clamp(36px, 6vw, 64px); }
.product .app-icon { width: 84px; height: 84px; border-radius: 19px; margin-bottom: 22px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.4); }
.product h2 { font-size: clamp(40px, 5vw, 56px); }
.product .lede { margin: 12px 0 0; color: rgba(29, 29, 31, 0.75); font-size: clamp(18px, 2.2vw, 21px); }
.product .status { margin: 24px 0 0; font-size: 15px; font-weight: 600; }
.product .status .badge { margin-right: 8px; }
.product .more { color: inherit; font-weight: 600; }
.product .peek { width: min(300px, 100%); margin: 0 auto; border-radius: 36px 36px 0 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.4); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.values article { border-radius: 30px; padding: 34px 30px; }
.values article:nth-child(1) { background: var(--sky-soft); } .values article:nth-child(2) { background: var(--rose-soft); } .values article:nth-child(3) { background: var(--orange-soft); }
.values .dot { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font: 700 20px/1 var(--rounded); margin-bottom: 20px; color: var(--on-color); }
.values article:nth-child(1) .dot { background: var(--sky); } .values article:nth-child(2) .dot { background: var(--rose); } .values article:nth-child(3) .dot { background: var(--orange); }
.values p { color: var(--secondary); margin: 10px 0 0; }
.contact-line { margin: 0; text-align: center; font-size: clamp(22px, 3vw, 32px); font-weight: 650; letter-spacing: -0.025em; }
.contact-line a { display: inline-block; margin-top: 6px; }

/* Policy and support pages */
.doc { max-width: 720px; padding-top: 64px; }
.doc h1 { font-size: clamp(40px, 6vw, 56px); }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 10px; font-weight: 600; }
.doc .updated { color: var(--secondary); font-size: 15px; margin-top: 12px; }
.doc .lede { margin: 14px 0 0; }
.faq { margin-top: 40px; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; font: 600 19px/1.3 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 26px; line-height: 0.9; color: var(--secondary); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: var(--secondary); max-width: 64ch; }
.contact { margin-top: 48px; background: var(--lime-soft); border-radius: 22px; padding: 28px 30px; }
.doc .contact h2 { margin-top: 0; }
.contact p { margin: 8px 0 0; }

/* Footer */
footer { margin-top: 110px; border-top: 1px solid var(--hairline); padding: 22px 0 40px; color: var(--secondary); font-size: 12px; line-height: 1.5; letter-spacing: -0.01em; }
footer .links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 12px; font-size: 13px; }
footer .links a { color: var(--ink); opacity: 0.85; }
footer p { margin: 6px 0; max-width: 820px; }

/* Motion */
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -5px; } }
@keyframes lap { from { left: -80px; } to { left: 100%; } }
@keyframes rise { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }
.hero-copy > *, .studio-hero > * { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero-copy > :nth-child(2), .studio-hero > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3), .studio-hero > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4), .studio-hero > :nth-child(4) { animation-delay: 0.24s; }
.studio-hero > .mark { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both, float 7s ease-in-out 0.8s infinite; }
@supports (animation-timeline: view()) {
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 900px) {
  .tile, .tile.wide, .tile.split { grid-column: span 3; }
  .night { grid-template-columns: 1fr; }
  .night .copy { padding-bottom: 0; }
  .numbers { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .chip { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding-top: 80px; }
  .stage { padding-top: 44px; }
  .fan { height: 470px; margin-top: 24px; }
  .fan .left, .fan .right { display: none; }
  .fan .middle { width: 250px; bottom: -22%; }
  .tiles { grid-template-columns: 1fr; gap: 14px; }
  .tile, .tile.wide, .tile.split { grid-column: auto; padding: 30px 26px; }
  .tile.split { padding-bottom: 0; }
  .flock { grid-template-columns: repeat(3, 1fr); }
  .checks { grid-template-columns: 1fr; }
  .studio-hero { padding-top: 72px; }
  .product { grid-template-columns: 1fr; text-align: center; }
  .product .copy { padding-bottom: 0; }
  .values { grid-template-columns: 1fr; }
  .nav nav { gap: 16px; }
  .nav .badge { display: none; }
  .brand { font-size: 17px; }
  .night, .privacy, .product { border-radius: 28px; }
}
@media (max-width: 380px) {
  .brand span { display: none; }
}
