/* Mellowdo front page (welcome.html). Loaded after site.css, which holds the tokens, fonts, buttons and text-page styles. */
:root{--stage:#F1ECFF;--stage-ink:#1F1D2B;--tint-lav:#EEE9FF;--tint-peach:#FFEEE3;--tint-mint:#E4F4EC;--tint-sky:#E5F0FB;--tint-rose:#FBE8F0;--night:#0D0B18;--night-ink:#F3F1FA;--night-soft:#B9B4D0;--bezel:#0B0B10;--pill:#1F1D2B;--pill-ink:#fff;--soft:#4F4C62}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--stage:#0D0B18;--stage-ink:#F3F1FA;--tint-lav:#1E1B33;--tint-peach:#2A1F22;--tint-mint:#172622;--tint-sky:#17212E;--tint-rose:#2A1B25;--bezel:#262433;--pill:#F3F1FA;--pill-ink:#14121F;--soft:#C4C0D8}}
:root[data-theme=dark]{--stage:#0D0B18;--stage-ink:#F3F1FA;--tint-lav:#1E1B33;--tint-peach:#2A1F22;--tint-mint:#172622;--tint-sky:#17212E;--tint-rose:#2A1B25;--bezel:#262433;--pill:#F3F1FA;--pill-ink:#14121F;--soft:#C4C0D8}
html{scroll-behavior:smooth;scroll-padding-top:84px}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
h1,h2{text-wrap:balance}
.lede{text-wrap:pretty}
.center{text-align:center}
.center .lede{margin-left:auto;margin-right:auto}
section{padding:96px 0}
@media (max-width:640px){section{padding:64px 0}.why .card{padding:20px 22px;border-radius:22px}.why .card img.emo{width:36px;height:36px;margin-bottom:10px}.why .card h3{font-size:21px}.why .grid3{gap:10px;margin-top:24px}}

/* Header: a floating pill, like the app's own tab bar */
.top{background:none;border:0;backdrop-filter:none;-webkit-backdrop-filter:none;padding:12px 16px 0;pointer-events:none}
.top .wrap{pointer-events:auto;max-width:1120px;height:60px;padding:0 10px 0 18px;border-radius:999px;background:color-mix(in srgb,var(--card) 72%,transparent);backdrop-filter:saturate(1.6) blur(18px);-webkit-backdrop-filter:saturate(1.6) blur(18px);border:1px solid color-mix(in srgb,var(--line) 70%,transparent);transition:box-shadow .25s,background .25s}
.top.scrolled .wrap{box-shadow:0 14px 40px -22px rgba(52,38,140,.45);background:color-mix(in srgb,var(--card) 88%,transparent)}
.top nav{gap:2px}
.top nav a.link{padding:8px 12px;border-radius:999px}
.top nav a.link:hover{background:color-mix(in srgb,var(--accent) 9%,transparent)}
.btn{border-radius:999px}
.btn.small{border-radius:999px}
.btn.primary{background:linear-gradient(135deg,color-mix(in srgb,var(--accent2) 60%,var(--accent)),var(--accent));box-shadow:0 6px 14px -8px var(--accent)}
.btn.primary:hover{box-shadow:0 8px 18px -8px var(--accent)}
.btn.pill{background:var(--pill);color:var(--pill-ink);box-shadow:none}
.btn.pill:hover{transform:translateY(-1px)}
.btn.primary:hover,.btn.ghost:hover{transform:translateY(-1px)}
.btn.ghost{background:color-mix(in srgb,var(--card) 80%,transparent)}
.btn.big{min-height:56px;padding:0 28px;font-size:17px}
@media (max-width:860px){.top nav a.link{display:none}.top nav a.link.keep{display:inline-flex}}
@media (max-width:420px){.top nav a.link.keep{display:none}.brand{font-size:20px}}

/* Hero: a rounded stage with Astra's lava painting along the bottom and a fan of phones rising out of it */
.hero{margin:-72px 12px 0;padding:150px 0 0;border-radius:36px;text-align:center;color:var(--stage-ink);background:var(--stage) url(art-day.jpg) center bottom/cover no-repeat;overflow:hidden;isolation:isolate}
.hero::before{display:none}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]) .hero{background-image:url(art-night.jpg)}}
:root[data-theme=dark] .hero{background-image:url(art-night.jpg)}
.hero .wrap{display:block}
.badge{display:inline-flex;align-items:center;gap:8px;padding:7px 14px 7px 8px;border-radius:999px;background:color-mix(in srgb,var(--card) 70%,transparent);border:1px solid color-mix(in srgb,var(--line) 80%,transparent);font-size:14px;font-weight:600;color:var(--stage-ink);margin-bottom:22px;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.badge i{font-style:normal;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;padding:3px 9px;border-radius:999px;background:linear-gradient(135deg,var(--accent2),var(--accent));color:var(--on-accent,#fff)}
.hero h1{font-size:clamp(44px,8.4vw,96px);line-height:1;margin:0 auto 22px;letter-spacing:-.02em}
.hero .lede{margin:0 auto;max-width:31em;color:color-mix(in srgb,var(--stage-ink) 72%,transparent)}
.hero .ctas{justify-content:center;margin:30px 0 16px}
.hero small{display:block;color:color-mix(in srgb,var(--stage-ink) 62%,transparent)}
.devices{display:flex;justify-content:center;gap:18px;margin:18px 0 0;padding:0;list-style:none;font-size:14px;font-weight:600;color:color-mix(in srgb,var(--stage-ink) 70%,transparent)}
.devices{flex-wrap:wrap;row-gap:8px}
.devices li{display:flex;align-items:center;gap:7px}
.devices a{display:flex;align-items:center;gap:7px;color:inherit;text-decoration:none;border-bottom:1px dashed currentColor}
.devices a:hover{color:var(--stage-ink)}
.devices svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.fan{display:flex;justify-content:center;align-items:flex-start;height:470px;margin-top:56px;padding-top:40px}
.ph{flex:none;width:286px;padding:9px;border-radius:46px;background:var(--bezel);box-shadow:0 40px 80px -30px rgba(40,26,110,.55),0 0 0 1px rgba(255,255,255,.08) inset;position:relative}
.ph img{width:100%;height:auto;aspect-ratio:390/844;object-fit:cover;object-position:top;border-radius:37px;background:#111}
.ph picture{display:block}
.fan .ph:nth-child(3){z-index:3;margin:-40px -26px 0}
.fan .ph:nth-child(2),.fan .ph:nth-child(4){z-index:2;width:262px;margin-top:10px}
.fan .ph:nth-child(1),.fan .ph:nth-child(5){z-index:1;width:238px;margin-top:64px}
.fan .ph:nth-child(1){margin-right:-26px}
.fan .ph:nth-child(5){margin-left:-26px}
@media (max-width:1100px){.fan .ph:nth-child(1),.fan .ph:nth-child(5){display:none}}
@media (max-width:640px){.hero{margin:-72px 8px 0;padding-top:122px;border-radius:28px;background-size:230% auto}.fan{height:340px;margin-top:40px;padding-top:30px}.ph{width:206px;padding:7px;border-radius:36px}.ph img{border-radius:29px}.fan .ph:nth-child(3){margin:-30px -34px 0}.fan .ph:nth-child(2),.fan .ph:nth-child(4){width:184px}.hero .ctas .btn{width:100%;max-width:340px}.devices{gap:14px;font-size:13px}}
@media (prefers-reduced-motion:no-preference){
  .js .fan .ph{animation:rise .9s cubic-bezier(.2,.8,.2,1) both}
  .js .fan .ph:nth-child(3){animation-delay:.05s}.js .fan .ph:nth-child(2),.js .fan .ph:nth-child(4){animation-delay:.16s}.js .fan .ph:nth-child(1),.js .fan .ph:nth-child(5){animation-delay:.27s}
  @keyframes rise{from{opacity:0;transform:translateY(70px)}}
  .js .rv{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
  .js .rv.in{opacity:1;transform:none}
  .js .rv.d1{transition-delay:.08s}.js .rv.d2{transition-delay:.16s}.js .rv.d3{transition-delay:.24s}
}

/* Why: three plain promises */
.why .grid3{gap:14px}
.why .card{border:0;border-radius:28px;padding:28px}
.why .card:nth-child(1){background:var(--tint-lav)}
.why .card:nth-child(2){background:var(--tint-peach)}
.why .card:nth-child(3){background:var(--tint-mint)}
.why .card img.emo{width:52px;height:52px;margin-bottom:16px}
.why .card h3{font:400 24px/1.2 'Young Serif',Georgia,serif}

/* Bento: what's inside */
.bento{display:grid;grid-template-columns:repeat(12,1fr);gap:14px;margin-top:40px}
.tile{position:relative;overflow:hidden;border-radius:28px;padding:30px 30px 0;height:540px;display:flex;flex-direction:column;background:var(--tint-lav);color:var(--ink)}
.tile h3{font:400 clamp(24px,2.6vw,30px)/1.15 'Young Serif',Georgia,serif;margin:0 0 8px}
.tile p{color:var(--soft);margin:0;max-width:26em}
.tile .tag{font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);margin-bottom:10px}
.tile .peek{margin:26px auto 0;width:min(300px,86%);flex:1;min-height:0;overflow:hidden;border-radius:34px 34px 0 0;padding:8px 8px 0;background:var(--bezel);box-shadow:0 30px 60px -30px rgba(40,26,110,.5)}
.tile .peek picture{display:block;height:100%}.tile .peek img{width:100%;height:100%;object-fit:cover;object-position:top;border-radius:27px 27px 0 0}
.t-focus{grid-column:span 7;background:var(--night);color:var(--night-ink);flex-direction:row;align-items:stretch;gap:20px;padding-bottom:0}
.t-focus > div:first-child{flex:1;padding-bottom:30px;display:flex;flex-direction:column}
.t-focus p{color:var(--night-soft)}
.t-focus .tag{color:#A99BFF}
.t-focus .peek{flex:none;width:236px;margin:0;align-self:flex-end;height:430px;box-shadow:0 0 90px -10px rgba(124,107,240,.5)}
.t-focus .chips{margin-top:auto;padding-top:22px}
.t-today{grid-column:span 5;background:var(--tint-lav)}
.t-thoughts{grid-column:span 4;background:var(--tint-peach)}
.t-routines{grid-column:span 4;background:var(--tint-mint)}
.t-lists{grid-column:span 4;background:var(--tint-sky)}
.chips{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0}
.chips li{padding:6px 12px;border-radius:999px;font-size:13px;font-weight:600;background:rgba(255,255,255,.09);color:var(--night-ink);border:1px solid rgba(255,255,255,.1)}
@media (max-width:980px){.t-focus,.t-today{grid-column:span 12}.t-thoughts,.t-routines,.t-lists{grid-column:span 12}.tile{height:auto}.tile .peek{height:320px;flex:none}}
@media (min-width:641px) and (max-width:980px){.t-thoughts,.t-routines{grid-column:span 6}}
@media (max-width:640px){.tile{padding:24px 22px 0;border-radius:24px}.t-focus{flex-direction:column}.t-focus > div:first-child{padding-bottom:0}.t-focus .peek{align-self:center;width:min(300px,86%);height:300px;margin-top:26px}.t-focus .chips{padding-top:18px}}

/* Web app: a browser window you can flick through */
.web{background:var(--bg2)}
.tabs{display:inline-flex;gap:4px;padding:5px;border-radius:999px;background:color-mix(in srgb,var(--ink) 7%,transparent);margin:26px 0 0}
.tabs button{appearance:none;border:0;background:none;font:600 15px Jakarta,system-ui,sans-serif;color:var(--soft);padding:9px 18px;border-radius:999px;cursor:pointer;transition:background .2s,color .2s}
.tabs button[aria-selected=true]{background:var(--card);color:var(--ink);box-shadow:0 2px 8px -2px rgba(31,29,43,.25)}
.tabs button:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.browser{max-width:1040px;margin:34px auto 0;border-radius:18px;background:var(--card);border:1px solid var(--line);box-shadow:0 60px 120px -50px rgba(52,38,140,.55),0 20px 40px -30px rgba(31,29,43,.4);overflow:hidden}
.browser .bar{display:flex;align-items:center;gap:7px;height:40px;padding:0 14px;border-bottom:1px solid var(--line);background:color-mix(in srgb,var(--bg2) 60%,var(--card))}
.browser .bar i{width:11px;height:11px;border-radius:50%;background:#FF5F57}
.browser .bar i:nth-child(2){background:#FEBC2E}
.browser .bar i:nth-child(3){background:#28C840}
.browser .bar span{margin:0 auto;transform:translateX(-27px);font-size:13px;font-weight:600;color:var(--soft);padding:4px 46px;border-radius:8px;background:color-mix(in srgb,var(--ink) 6%,transparent)}
.browser .screens{display:grid;aspect-ratio:1440/900;background:var(--bg2)}
.browser .screens picture,.browser .screens > img{grid-area:1/1;opacity:0;transition:opacity .35s}
.browser .screens .on{opacity:1}
.browser img{width:100%;height:100%;object-fit:cover;object-position:top left}
.points{display:grid;grid-template-columns:repeat(4,1fr);gap:28px;margin:48px auto 0;max-width:1040px;text-align:left}
.points h3{font-size:17px;margin:0 0 4px}
.points p{color:var(--soft);font-size:15.5px;margin:0}
.web .go{margin-top:40px}
@media (max-width:860px){.points{grid-template-columns:repeat(2,1fr);gap:22px}.browser{border-radius:12px}.browser .bar{height:30px}.browser .bar i{width:8px;height:8px}.browser .bar span{font-size:11px;padding:2px 22px;transform:translateX(-18px)}}
@media (max-width:480px){.points{grid-template-columns:1fr}.tabs button{padding:8px 13px;font-size:14px}}

/* Scenes: a night band with the paintings drifting past */
.night{background:var(--night);color:var(--night-ink);margin:12px 12px 0;border-radius:36px;overflow:hidden}
.night .kicker{color:#A99BFF}
.night .lede{color:var(--night-soft)}
.reel{display:flex;gap:16px;margin-top:44px;padding:0 20px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.reel::-webkit-scrollbar{display:none}
.reel .track{display:flex;gap:16px;flex:none}
.reel figure{flex:none;width:340px;aspect-ratio:16/10;margin:0;border-radius:22px;overflow:hidden;position:relative;background:#1D1C2A}
.reel img{width:100%;height:100%;object-fit:cover}
.reel figcaption{position:absolute;left:14px;bottom:12px;padding:5px 12px;border-radius:999px;font-size:13px;font-weight:600;color:#fff;background:rgba(10,8,20,.5);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
@media (prefers-reduced-motion:no-preference){.js .reel{overflow:hidden;padding:0}.js .reel .track{animation:drift 70s linear infinite}.js .reel:hover .track{animation-play-state:paused}@keyframes drift{to{transform:translateX(calc(-100% - 16px))}}}
.night .chips{justify-content:center;margin-top:36px}
@media (max-width:640px){.night{margin:8px 8px 0;border-radius:28px}.reel figure{width:250px}}

/* Mellow: the chat */
.mellow .split{align-items:center}
.chat{max-width:440px;margin:0 auto;width:100%;padding:26px 22px;border-radius:32px;background:var(--tint-lav);display:flex;flex-direction:column;gap:12px}
.chat .me{align-self:flex-end;max-width:84%;padding:13px 17px;border-radius:22px 22px 6px 22px;background:linear-gradient(135deg,var(--accent2),var(--accent));color:var(--on-accent,#fff);font-weight:500}
.chat .mel{align-self:flex-start;max-width:92%;padding:13px 17px;border-radius:22px 22px 22px 6px;background:var(--card);color:var(--ink);box-shadow:0 10px 30px -18px rgba(52,38,140,.4)}
.chat .who{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:700;color:var(--accent);margin-bottom:2px}
.chat .who img{width:22px;height:22px;border-radius:6px}
.chat ul{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:6px}
.chat li{display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:14px;background:var(--bg2);font-size:15px;font-weight:600}
.chat li img{width:22px;height:22px}
.chat li span{margin-left:auto;font-size:13px;font-weight:600;color:var(--soft)}
.chat .undo{align-self:flex-start;font-size:13px;font-weight:700;color:var(--accent);padding:6px 14px;border-radius:999px;background:var(--card);border:1px solid var(--line)}
@media (prefers-reduced-motion:no-preference){.js .chat > *{opacity:0;transform:translateY(12px);transition:opacity .5s,transform .5s}.js .chat.in > *{opacity:1;transform:none}.js .chat.in > :nth-child(2){transition-delay:.5s}.js .chat.in > :nth-child(3){transition-delay:1s}}

/* Share: two phones, one list */
.share .duo{position:relative;height:520px;max-width:440px;margin:0 auto;width:100%}
.share .duo .ph{position:absolute;width:230px;padding:7px;border-radius:38px}
.share .duo .ph img{border-radius:31px}
.share .duo .ph:first-child{left:0;top:0;transform:rotate(-4deg)}
.share .duo .ph:last-child{right:0;top:60px;transform:rotate(4deg)}
@media (max-width:480px){.share .duo{height:430px}.share .duo .ph{width:190px}}

/* What's not here */
.nots{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;list-style:none;padding:0;margin:30px auto 0;max-width:820px}
.nots li{display:flex;align-items:center;gap:9px;padding:11px 18px;border-radius:999px;background:var(--card);border:1px solid var(--line);font-weight:600}
.nots li::before{content:'';width:18px;height:18px;border-radius:50%;background:color-mix(in srgb,var(--accent) 16%,transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237C6BF0' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat}

/* Free timer card */
.timer-card{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center;padding:34px 38px;border-radius:32px;background:var(--tint-peach)}
.timer-card h2{font-size:clamp(26px,3.4vw,36px);margin-bottom:8px}
.timer-card p{color:var(--soft);margin:0;max-width:34em}
@media (max-width:720px){.timer-card{grid-template-columns:1fr;padding:28px 24px;border-radius:26px}}

.band.quoteband{background:none;padding:40px 0 96px}
.quote{font-size:clamp(28px,4.4vw,48px);line-height:1.2;max-width:19em}

/* Closing call: the night painting */
.band.cta{margin:0 12px 12px;border-radius:36px;padding:110px 0 190px;background:var(--night) url(art-night.jpg) center bottom/cover no-repeat;color:var(--night-ink)}
.band.cta h2{font-size:clamp(36px,6vw,64px)}
.band.cta .lede{color:var(--night-soft)}
.band.cta .btn.pill{background:#fff;color:#14121F}
.band.cta .btn.ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.22)}
@media (max-width:640px){.band.cta{margin:0 8px 8px;border-radius:28px;padding:80px 0 150px}}
footer{border-top:0}

/* Stay in it: app blocking and your own YouTube mixes */
.duo-tiles{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:36px}
.duo-tiles .tile{height:auto;padding-bottom:30px}
.t-block{background:var(--tint-rose)}
.t-mix{background:var(--tint-sky)}
.mock{margin-top:26px;padding:14px;border-radius:22px;background:var(--card);box-shadow:0 20px 40px -28px rgba(52,38,140,.45);display:grid;gap:8px}
.mock-row{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:var(--bg2);font-size:15.5px}
.mock-row img{width:24px;height:24px}
.mock-row span{margin-left:auto;font-size:13px;font-weight:600;color:var(--soft)}
.mock-row.dim{background:none;padding:6px 14px}
.mock-row .play{width:24px;height:24px;border-radius:50%;background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 7l9 5-9 5z'/%3E%3C/svg%3E") center/16px no-repeat}
.locked{display:flex;flex-wrap:wrap;gap:8px;list-style:none;margin:4px 0 2px;padding:0 4px}
.locked li{display:flex;align-items:center;gap:7px;padding:8px 13px;border-radius:999px;border:1px dashed var(--line);font-size:14px;font-weight:600;color:var(--soft)}
.locked li::before{content:'';width:14px;height:14px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='9' rx='2.5'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E") center/contain no-repeat}
@media (max-width:860px){.duo-tiles{grid-template-columns:1fr}}
