/* Dayla's front page. Tokens from docs/DESIGN.md; the three block colours from the store pictures. */
:root {
  color-scheme: light dark;
  --white: #F7F6F3; --dark: #1B1B1D; --orange: #F25C0F;
  --ink: #1C1F29; --sec: #6B6E79;
  --on-dark: #EDEDF2; --on-dark-sec: #9A9CA8;
  /* The app's own dark surfaces: the screens stay dark in both modes, like the store pictures. */
  --scr: #1B1B1D; --sheet: #242427; --line: rgba(255, 255, 255, .08); --track: rgba(255, 255, 255, .09); --ter: #6B6D78;
  --blue: #5C8CD9; --purple: #9E73D9; --yellow: #E6B840; --green: #6BC273; --break: rgba(154, 156, 168, .35);
  --tint: #2D3A4E;
  --quick: 150ms; --move: 420ms; --settle: 900ms;
  --fly: cubic-bezier(.55, 0, .25, 1);
  --spring: cubic-bezier(.3, 1.25, .5, 1);
}
/* Dark mode: the white block goes to the app's ground and the dark block one step down, so the rhythm stays. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --white: #1B1B1D; --dark: #111113; --ink: #EDEDF2; --sec: #9A9CA8; }
}
:root[data-theme="dark"] { color-scheme: dark; --white: #1B1B1D; --dark: #111113; --ink: #EDEDF2; --sec: #9A9CA8; }
:root[data-theme="light"] { color-scheme: light; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--dark); }
body {
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; background: var(--white); color: var(--ink);
}
.defs { position: absolute; }
i { font-style: normal; display: block; }
img { display: block; max-width: 100%; height: auto; }

/* The blocks */
.block { padding: 64px 0; }
.white { background: var(--white); color: var(--ink); --muted: var(--sec); }
.dark { background: var(--dark); color: var(--on-dark); --muted: var(--on-dark-sec); }
.orange { background: var(--orange); color: #fff; --muted: #1B1B1D; }
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 680px; }
.center { text-align: center; }

h1 { font-size: 44px; line-height: 1.04; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: 26px; line-height: 1.12; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; margin-bottom: 8px; }
h2.big { font-size: 40px; line-height: 1.06; font-weight: 800; letter-spacing: -.03em; margin-bottom: 16px; }
p { color: var(--muted); }
.lead { font-size: 20px; line-height: 1.32; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }
.num { display: block; font-size: 15px; font-weight: 700; color: var(--muted); margin-bottom: 4px; font-variant-numeric: tabular-nums; }

.brand { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.mark { width: 24px; height: 24px; color: inherit; }
.mark { --dot: var(--orange); }
.orange .mark, .green .mark { --dot: currentColor; }
.mark-dot { fill: var(--dot); }

/* The button */
.cta-box { margin-top: 24px; }
.cta {
  display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 32px; border-radius: 28px;
  background: var(--orange); color: #fff; font-size: 19px; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
  transition: transform var(--quick) ease-out;
}
.cta:active { transform: scale(.97); }
.cta:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
.orange .cta { background: #fff; color: var(--dark); }
.note { font-size: 13px; line-height: 1.35; margin-top: 8px; text-align: center; font-weight: 500; }
.orange .note { color: #1B1B1D; }
.narrow-only { display: block; width: 100%; }
.wide-only { display: none; }

/* The promise */
.block.hero { padding: 0; min-height: 100vh; min-height: 100svh; display: flex; }
.hero-grid { width: 100%; display: flex; flex-direction: column; }
.hero-text { padding-top: 16px; }
.hero .brand { margin-bottom: 16px; }
.hero h1 { margin-bottom: 8px; }
.hero .lead { color: #1B1B1D; font-size: 18px; }
.hero .cta-box { margin-top: 16px; }
.hero-stage { position: relative; flex: 1 1 auto; min-height: 236px; margin-top: 16px; overflow: hidden; margin-inline: -20px; padding-inline: 16px; }

/* The screens: drawn at 390 wide, scaled with the box they sit in */
.ui { container-type: inline-size; min-width: 0; width: 100%; }
.scr { --u: calc(100cqw / 390); position: relative; background: var(--scr); color: var(--on-dark); font-size: calc(15 * var(--u)); line-height: 1.25; }
@supports not (width: 1cqw) { .scr { --u: .86px; } }
.phone { position: absolute; inset: 0 16px -40px; width: auto; background: #050506; border-radius: 40px; padding: 7px; box-shadow: 0 0 0 1.5px #3A3A40, 0 18px 40px rgba(60, 20, 0, .28); }
.phone .scr { height: 100%; border-radius: 33px; overflow: hidden; display: flex; flex-direction: column; padding: 0 calc(16 * var(--u)) calc(52 * var(--u)); }
.status { display: flex; align-items: center; justify-content: space-between; height: calc(46 * var(--u)); padding: 0 calc(22 * var(--u)); flex: none; font-weight: 600; }
.clock { font-variant-numeric: tabular-nums; }
.island { width: calc(104 * var(--u)); height: calc(30 * var(--u)); border-radius: 99px; background: #000; }
.glyphs { display: flex; gap: calc(3 * var(--u)); align-items: flex-end; }
.glyphs i { width: calc(5 * var(--u)); height: calc(8 * var(--u)); background: var(--on-dark); border-radius: 1px; }
.glyphs i:nth-child(2) { height: calc(11 * var(--u)); }
.glyphs i:nth-child(3) { width: calc(22 * var(--u)); height: calc(11 * var(--u)); border-radius: calc(3 * var(--u)); margin-left: calc(3 * var(--u)); }
.today { padding: calc(6 * var(--u)) calc(2 * var(--u)) calc(10 * var(--u)); flex: none; }
.today b { display: block; font-size: calc(30 * var(--u)); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.today span { font-size: calc(13 * var(--u)); color: var(--on-dark-sec); }
.sheet { background: var(--sheet); border-radius: calc(20 * var(--u)); flex: none; }
.band { display: flex; align-items: center; gap: calc(16 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); }
.ring-wrap { position: relative; width: calc(84 * var(--u)); height: calc(84 * var(--u)); flex: none; }
.ring { display: block; width: 100%; height: 100%; overflow: visible; fill: none; }
.r-dash { stroke: var(--ter); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 7.6; }
.r-run { stroke: var(--blue); stroke-width: 9; stroke-linecap: butt; }
.r-track { stroke: var(--track); stroke-width: 9; stroke-linecap: round; }
.r-seg { stroke-width: 9; stroke-linecap: butt; }
.r-seg.blue, .d-blue { stroke: var(--blue); }
.r-seg.purple, .d-purple { stroke: var(--purple); }
.d-yellow { stroke: var(--yellow); }
.r-head { fill: var(--blue); opacity: 0; }
.r-pulse { fill: var(--blue); opacity: .45; transform-box: fill-box; transform-origin: center; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { to { transform: scale(2.2); opacity: 0; } }
.ring-in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-in b { font-size: calc(15 * var(--u)); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ring-in small { font-size: calc(11 * var(--u)); font-weight: 500; color: var(--on-dark-sec); }
.ring-in > span { font-size: calc(11 * var(--u)); color: var(--on-dark-sec); }
.doneby { min-width: 0; }
.db { font-size: calc(24 * var(--u)); line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; }
.db > span { color: var(--on-dark-sec); }
.db b { font-weight: 700; font-variant-numeric: tabular-nums; }
.planned { font-size: calc(15 * var(--u)); color: var(--on-dark-sec); margin-top: calc(2 * var(--u)); }
.label { font-size: calc(12 * var(--u)); font-weight: 600; letter-spacing: .04em; color: var(--on-dark-sec); padding: calc(16 * var(--u)) calc(16 * var(--u)) calc(8 * var(--u)); flex: none; }
.label span { color: var(--ter); margin-left: calc(4 * var(--u)); font-weight: 500; }
.list { overflow: hidden; }
.row { position: relative; display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(12 * var(--u)) calc(16 * var(--u)); }
.row + .row::before { content: ""; position: absolute; top: 0; right: 0; left: calc(60 * var(--u)); height: 1px; background: var(--line); }
.dot { position: relative; width: calc(32 * var(--u)); height: calc(32 * var(--u)); border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.dot svg { width: 44%; height: 44%; grid-area: 1 / 1; }
.dot.blue { background: var(--blue); }
.dot.purple { background: var(--purple); }
.t { min-width: 0; flex: 1; display: flex; flex-direction: column; position: relative; }
.t span { font-size: calc(12 * var(--u)); color: var(--on-dark-sec); }
.t b { font-size: calc(15 * var(--u)); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t .c-blue, .c-blue { color: var(--blue); }
.est { color: var(--on-dark-sec); font-size: calc(14 * var(--u)); white-space: nowrap; font-variant-numeric: tabular-nums; position: relative; }
.fill { flex: 1 1 0; min-height: 0; }
.phone .list { flex: 0 1 auto; min-height: 0; }
.phone .label { flex: 0 1 auto; min-height: 0; overflow: hidden; }
.runbar { position: relative; flex: none; display: flex; align-items: center; gap: calc(10 * var(--u)); margin-top: calc(10 * var(--u)); padding: calc(9 * var(--u)) calc(9 * var(--u)) calc(11 * var(--u)) calc(18 * var(--u)); border-radius: calc(26 * var(--u)); background: var(--tint); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.runbar .t { order: 0; }
.runbar .t b { font-size: calc(14 * var(--u)); }
.count { position: relative; white-space: nowrap; font-variant-numeric: tabular-nums; }
.count b { font-size: calc(20 * var(--u)); font-weight: 700; letter-spacing: -.02em; }
.count small { font-size: calc(13 * var(--u)); color: var(--on-dark-sec); }
.count em { font-style: normal; font-size: calc(13 * var(--u)); color: var(--on-dark-sec); }
.stop { width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; background: #fff; color: #111; display: grid; place-items: center; flex: none; }
.stop svg { width: 50%; height: 50%; }
.bar { position: absolute; left: calc(18 * var(--u)); right: calc(18 * var(--u)); bottom: 0; height: calc(3 * var(--u)); background: var(--line); border-radius: 2px; overflow: hidden; }
.bar-in { width: 100%; height: 100%; background: var(--blue); transform-origin: left; transform: scaleX(1); }

/* Rolling digits (the app's numericText): the old one leaves up, the new one comes from below. */
.roll { display: inline-flex; overflow: hidden; vertical-align: bottom; }
.roll > span { position: relative; display: inline-block; white-space: pre; }
.roll .out { position: absolute; left: 0; top: 0; }

/* Steps */
.steps { display: grid; gap: 56px; }
.step { display: grid; gap: 20px; }
.demo .scr { border-radius: calc(26 * var(--u)); padding: calc(12 * var(--u)); display: grid; gap: calc(10 * var(--u)); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); overflow: hidden; }
.demo .row[data-add] { transition: opacity var(--move) ease-out, transform var(--move) var(--spring); }
.demo .row.before { opacity: 0; transform: translateY(calc(14 * var(--u))); }
.tone { position: absolute; inset: 0; background: var(--tint); clip-path: circle(150% at calc(32 * var(--u)) 50%); transition: clip-path var(--move) ease-out; }
.row.run:not(.on) .tone { clip-path: circle(0 at calc(32 * var(--u)) 50%); }
.row.run .count { opacity: 1; transition: opacity var(--quick) ease-out; }
.row.run:not(.on) .count { opacity: .0; }
.row.run .t span { transition: color var(--quick) ease-out; }
.row.run:not(.on) .t span { color: var(--on-dark-sec); }
.press { transition: transform var(--quick) ease-out, background-color var(--quick) ease-out; }
.press.down { transform: scale(.88); }
.row.run.on .press { background: #5C5C63; }
.row.run .g-play { opacity: 0; }
.row.run:not(.on) .g-play { opacity: 1; }
.row.run:not(.on) .g-pause { opacity: 0; }
.drop { position: absolute; left: 0; top: 0; width: calc(10 * var(--u)); height: calc(10 * var(--u)); margin: calc(-5 * var(--u)); border-radius: 50%; background: var(--blue); box-shadow: 0 0 calc(8 * var(--u)) var(--blue); will-change: transform; }

/* FINISH and the week */
.split { display: grid; gap: 24px; }
.daycard, .weekcard { border-radius: calc(26 * var(--u)); overflow: hidden; background: var(--sheet); }
.white .scr { box-shadow: 0 10px 30px rgba(0, 0, 0, .12); }
:root[data-theme="dark"] .daycard, :root[data-theme="dark"] .weekcard { box-shadow: 0 0 0 1px var(--line); }
.card-head { display: flex; align-items: center; gap: calc(12 * var(--u)); padding: calc(14 * var(--u)) calc(18 * var(--u)); color: #fff; transition: transform var(--move) var(--spring), opacity var(--quick) ease-out; }
.card-head b { display: block; font-size: calc(20 * var(--u)); font-weight: 700; letter-spacing: -.01em; }
.card-head span { font-size: calc(13 * var(--u)); opacity: .85; }
.card-head.green { background: #6BC273; }
.card-head.grey { background: #3E3E43; }
.tick { width: calc(36 * var(--u)); height: calc(36 * var(--u)); border-radius: 50%; box-shadow: inset 0 0 0 calc(2 * var(--u)) #fff; display: grid; place-items: center; flex: none; }
.tick svg { width: 60%; height: 60%; }
.card-mark { margin-left: auto; display: inline-flex; align-items: center; gap: calc(6 * var(--u)); font-size: calc(14 * var(--u)) !important; font-weight: 600; opacity: 1 !important; }
.card-mark .mark { width: calc(18 * var(--u)); height: calc(18 * var(--u)); }
.card-body { position: relative; padding: calc(18 * var(--u)) calc(18 * var(--u)) calc(16 * var(--u)); }
.big-ring { width: 72%; height: auto; margin: 0 auto; aspect-ratio: 1; }
.ring-num { position: absolute; left: 0; right: 0; top: 38%; text-align: center; transition: opacity var(--move) ease-out, transform var(--move) var(--spring); }
.ring-num b { display: block; font-size: calc(46 * var(--u)); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ring-num small { font-size: calc(24 * var(--u)); font-weight: 500; color: var(--on-dark-sec); }
.ring-num span { font-size: calc(15 * var(--u)); color: var(--on-dark-sec); }
.ends { display: flex; justify-content: space-between; padding: 0 12%; margin-top: calc(-30 * var(--u)); font-size: calc(13 * var(--u)); color: var(--on-dark-sec); font-variant-numeric: tabular-nums; transition: opacity var(--move) ease-out; }
.ends b { color: var(--on-dark); font-weight: 600; }
.finish-btn { position: absolute; left: 50%; top: 44%; translate: -50% -50%; opacity: 0; pointer-events: none; font: inherit; font-size: calc(17 * var(--u)); font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--orange); border: 0; border-radius: 99px; padding: calc(12 * var(--u)) calc(28 * var(--u)); transition: transform var(--quick) ease-out, opacity var(--quick) ease-out; }
#finish.ready .finish-btn { opacity: 1; }
#finish.ready .finish-btn.down { transform: scale(.94); }
#finish.ready .ring-num, #finish.ready .ends { opacity: 0; }
#finish.ready .ring-num { transform: translateY(calc(8 * var(--u))); }
#finish.ready .card-head { opacity: 0; transform: translateY(-100%); }

.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: calc(6 * var(--u)); }
.day { text-align: center; font-size: calc(11 * var(--u)); color: var(--on-dark-sec); }
.day svg { width: 100%; height: auto; aspect-ratio: 1; display: block; margin-bottom: calc(6 * var(--u)); overflow: visible; fill: none; }
.day .d-track { stroke: var(--track); stroke-width: 11; stroke-linecap: round; }
.day .d-seg { stroke-width: 11; }
.day .d-dash { stroke: var(--ter); stroke-width: 4; stroke-linecap: round; stroke-dasharray: .1 8.6; }
.day .d-empty { stroke: var(--track); stroke-width: 3; }
.day b { display: block; color: var(--on-dark); font-size: calc(11 * var(--u)); font-weight: 600; min-height: 1.3em; white-space: nowrap; transition: opacity var(--quick) ease-out; font-variant-numeric: tabular-nums; }
.week-sum { text-align: center; margin-top: calc(14 * var(--u)); }
.week-sum b { display: block; font-size: calc(40 * var(--u)); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.week-sum small { font-size: calc(20 * var(--u)); font-weight: 500; color: var(--on-dark-sec); }
.week-sum > span { color: var(--on-dark-sec); font-size: calc(14 * var(--u)); }
.asks { padding: 0 calc(18 * var(--u)) calc(6 * var(--u)); border-top: 1px solid var(--line); }
.asks > div { padding: calc(11 * var(--u)) 0; }
.asks > div + div { border-top: 1px solid var(--line); }
.asks dt { font-size: calc(13 * var(--u)); color: var(--on-dark-sec); }
.asks dd { font-size: calc(15 * var(--u)); font-weight: 600; }

/* Mac and iPhone */
.orange .lead { color: #1B1B1D; }
/* On a phone the Mac runs off the right edge, large enough to read; the iPhone stands in front of it. */
.devices { position: relative; margin: 32px -20px -64px 0; padding-bottom: 64px; overflow: hidden; text-align: left; }
.devices .mac { width: 190%; max-width: none; border-radius: 10px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.devices .iphone { position: absolute; right: 20px; bottom: -12%; width: 44%; border-radius: 13% / 6%; box-shadow: 0 0 0 4px #050506, 0 0 0 5px #3A3A40, 0 18px 40px rgba(60, 20, 0, .35); }

/* The price */
.closing { padding-bottom: 24px; }
.days-list { margin: 8px 0 16px; }
.days-list > div { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 20px; line-height: 1.25; letter-spacing: -.01em; }
.days-list > div:last-child { border-bottom: 1px solid var(--line); }
.days-list dt { color: var(--muted); }
.days-list dd { font-weight: 500; }
.foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 16px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.brand.small { font-size: 15px; }
.brand.small .mark { width: 18px; height: 18px; }
.foot nav { display: flex; gap: 20px; font-size: 13px; }
.foot nav a { color: var(--on-dark-sec); text-decoration: none; }

/* The Mac's width */
@media (min-width: 860px) {
  .block { padding: 112px 0; }
  .wrap { padding-inline: 32px; }
  h1 { font-size: 72px; }
  h2 { font-size: 26px; }
  h2.big { font-size: 56px; }
  .lead, .hero .lead { font-size: 20px; }
  .hero-grid { flex-direction: row; align-items: stretch; gap: 64px; }
  .hero-text { flex: 1 1 0; display: flex; flex-direction: column; justify-content: center; padding: 96px 0; position: relative; max-width: 520px; }
  .hero .brand { position: absolute; top: 24px; left: 0; }
  .hero h1 { margin-bottom: 16px; }
  .hero .cta-box { margin-top: 32px; }
  .hero-stage { flex: 0 0 400px; margin: 48px 0 0; padding: 0; }
  .phone { inset: 0 4px -48px; border-radius: 52px; padding: 9px; }
  .phone .scr { border-radius: 44px; }
  .cta-box { max-width: 340px; }
  .center .cta-box, .closing .cta-box { margin-inline: auto; }
  .closing .cta-box { margin-inline: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
  .step { gap: 24px; align-content: start; }
  .step-text { min-height: 150px; }
  .split { grid-template-columns: minmax(0, 1fr) 420px; gap: 80px; align-items: center; }
  .split.flip > .ui { order: -1; }
  .split.flip { grid-template-columns: 420px minmax(0, 1fr); }
  .narrow-only { display: none; }
  .wide-only { display: block; }
  .center .lead { max-width: 640px; margin-inline: auto; }
  .devices { max-width: 860px; margin: 48px auto 0; padding: 0 0 5%; overflow: visible; }
  .devices .mac { width: 100%; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 18px 40px rgba(60, 20, 0, .3); }
  .devices .iphone { right: -2%; bottom: 0; width: 25%; }
}

/* Most phones with a browser's bars: the running task has to stay in sight, under Done by */
@media (max-width: 859px) and (max-height: 760px) {
  .today { display: none; }
  .phone .label { display: none; }
  .phone .list { margin-top: calc(10 * var(--u)); }
}

/* Small phones: the promise has to fit above the fold */
@media (max-width: 859px) and (max-height: 620px) {
  h1 { font-size: 36px; }
  .hero .lead { font-size: 15px; line-height: 1.3; }
  .hero .brand { margin-bottom: 8px; font-size: 15px; }
  .hero .brand .mark { width: 18px; height: 18px; }
  .hero-text { padding-top: 12px; }
  .hero .cta-box { margin-top: 12px; }
  .hero .cta { min-height: 48px; }
  .hero-stage { margin-top: 12px; min-height: 180px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .r-pulse { opacity: 0; }
}
