/* to-do-morrow landing.
   White page in morning light, a peach sunrise at the horizon, film grain on top.
   Apple's own faces only: SF Pro for text and headlines, SF Rounded for the wordmark. */
:root {
  --paper: #ffffff;
  --night: #ffffff;          /* page background (kept name for the footer ground) */
  --ink: #141414;
  --muted: #5c5c61;          /* 6.6:1 on white */
  --ember: #c2541a;          /* accent text, 4.8:1 on white */
  --red: #e0392f;
  --raise: #ffffff;          /* the one surface: things you can tap or move */
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 72px);
  --space: clamp(110px, 15vw, 200px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--night); -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; color: var(--ink); font: 400 18px/1.55 var(--ui); overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--paper); }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.center { text-align: center; }
.nb { white-space: nowrap; }

/* film grain: keeps the gradients from banding and makes the dark feel photographic */
.grain { position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .2 0 0 0 0 .2 0 0 0 0 .2 0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain .9s steps(5) infinite; }
@keyframes grain { 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } }

/* type */
h1, h2 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(34px, 5vw, 68px); line-height: 1.04; max-width: 15em; text-wrap: balance; }
h1 em, h2 em, .lead em { font-style: normal; color: inherit; }
h3 { margin: 0; font: 600 clamp(22px, 2vw, 28px)/1.2 var(--ui); letter-spacing: -0.015em; }
.lead { margin: 22px 0 0; max-width: 34em; color: var(--muted); font-size: clamp(17px, 1.45vw, 20px); text-wrap: pretty; }
.lead a { color: var(--ink); text-underline-offset: 4px; }

/* actions */
.act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 34px; }
.act.center { justify-content: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 13px;
  background: var(--ink); color: var(--paper); font: 600 17px/1 var(--ui); text-decoration: none; transition: transform .14s ease, background .14s ease; }
.btn:hover { background: #000; }
.btn:active { transform: scale(.96); }
.btn-small { min-height: 40px; padding: 0 16px; border-radius: 11px; font-size: 15px; }
.link { padding: 12px 0 4px; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(20,20,20,.3); text-underline-offset: 6px; transition: text-decoration-color .15s; }
.link:hover { text-decoration-color: var(--ink); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter); transition: background .2s ease; }
.nav.scrolled { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.mark { display: flex; align-items: center; gap: 10px; font: 600 16px/1 var(--ui); text-decoration: none; }
.mark img { border-radius: 7px; }
.links { display: flex; gap: 30px; margin-left: auto; }
.links a { color: var(--muted); text-decoration: none; font-size: 15px; transition: color .15s; }
.links a:hover { color: var(--ink); }
@media (max-width: 760px) { .links { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 4vw;
  max-width: 1440px; margin: 0 auto; padding: 104px var(--gutter) 72px; overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero-stage { position: relative; display: flex; justify-content: center; perspective: 1200px; }
.phone-hero { width: min(330px, 76vw, calc((100svh - 170px) * .49)); transform: rotate(-4deg); filter: drop-shadow(0 50px 60px rgba(0,0,0,.2)); will-change: transform; }
.float { position: absolute; display: flex; align-items: center; gap: 8px; padding: 11px 15px; border-radius: 14px; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 .5px rgba(0,0,0,.06), 0 18px 40px -14px rgba(0,0,0,.25); font: 600 15px/1 var(--ui); white-space: nowrap; }
.float .ico { font-size: 19px; }
.f1 { top: 22%; left: -6%; } .f1 .ico { color: #5b4bdb; }
.f2 { top: 40%; right: -4%; } .f2 .ico { color: #8e5bd9; }
.f3 { bottom: 26%; left: -2%; } .f3 .ico { color: #f08a3c; }
.f4 { bottom: 9%; right: 2%; } .f4 .ico { color: #e2683a; }
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; flex: none; }
.glow { position: absolute; inset: 0; z-index: -1;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  background:
    radial-gradient(46% 30% at 50% 88%, rgba(255,214,160,.75), rgba(255,178,120,.35) 42%, transparent 78%),
    radial-gradient(90% 46% at 50% 98%, rgba(255,150,110,.35), rgba(255,170,140,.14) 55%, transparent 80%),
    radial-gradient(120% 60% at 50% -10%, rgba(196,186,236,.35), transparent 65%); }
.icon { position: relative; width: clamp(72px, 7vw, 104px); aspect-ratio: 1; border-radius: 22.5%; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 40px 60px -26px rgba(20,10,40,.45), 0 24px 100px -14px rgba(255,140,70,.3); }
.icon svg { display: block; width: 100%; height: 100%; }
.icon::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, rgba(255,255,255,.16), transparent 36%); }

/* the wordmark: toy letters with a little depth */
.word { margin: clamp(20px, 2.4vw, 30px) 0 0 -0.03em; display: flex; justify-content: flex-start; white-space: nowrap; cursor: pointer; user-select: none;
  font: 800 clamp(44px, 6.4vw, 104px)/1 var(--round); letter-spacing: -0.035em; color: #262626;
  text-shadow: 0 .01em 0 #1a1a1a, 0 .02em 0 #161616, 0 .03em 0 #121212, 0 .04em 0 #0f0f0f, 0 .05em 0 #0c0c0c, 0 .06em 0 #090909, 0 .14em .16em rgba(0,0,0,.14); }
.mid { display: inline-flex; }
.do { display: inline-block; color: #ff9b47;
  text-shadow: 0 .01em 0 #ef8637, 0 .02em 0 #e47a30, 0 .03em 0 #d96e2a, 0 .04em 0 #cd6224, 0 .05em 0 #c1571f, 0 .06em 0 #b34c1a, 0 .14em .16em rgba(160,70,20,.18); }
.dash { display: inline-block; color: #c7c7cc; text-shadow: none; }
.hero h1 { margin-top: 24px; font-size: clamp(28px, 3.6vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -0.03em; }
.hero .lead { max-width: 30em; }

/* the product doing its thing: a task walks to tomorrow */
.live { margin-top: 48px; width: min(480px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; text-align: left; }
.col p, .shift-label { margin: 0 0 10px; font: 500 14px/1 var(--ui); color: var(--muted); }
.col.tm p, .shift-col.tm .shift-label { color: var(--ember); }
.slot { position: relative; height: 56px; border-radius: 14px; background: rgba(0,0,0,.04); }
.card, .task { display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 14px; background: var(--raise);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 .5px rgba(0,0,0,.06), 0 14px 28px -14px rgba(0,0,0,.22); font: 500 16px/1.2 var(--ui); white-space: nowrap; }
.card { position: absolute; inset: 0; overflow: hidden; }
.card i, .task i { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--red); transition: border-color .4s ease; }
.card.ok i, .task.ok i { border-color: #f08a3c; }

section { position: relative; }
.type, .day, .later, .lock, .rest, .privacy, .get { padding-top: var(--space); }

/* ---------- type it ---------- */
.split2 { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.play { padding-top: 8px; }
.field { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 0 10px 0 22px; border-radius: 18px; background: var(--raise);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 .5px rgba(0,0,0,.08), 0 14px 28px -16px rgba(0,0,0,.2); font: 400 clamp(18px, 1.8vw, 22px)/1.2 var(--ui); cursor: text; }
.field:focus-within { box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 0 0 2px rgba(196,86,28,.55); }
.composer-input { flex: 1; min-width: 0; width: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; caret-color: var(--ember); }
.composer-input::placeholder { color: #8e8e93; }
.add { flex: none; min-height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); font: 600 16px/1 var(--ui); cursor: pointer; transition: transform .14s ease; }
.add:active { transform: scale(.96); }
.parsed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; min-height: 30px; margin: 16px 4px 0; font-size: 17px; }
.p-title { color: var(--ink); font-weight: 600; }
.p { color: var(--ember); }
.p[hidden] { display: none; }
.list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 4px; }
.row { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 0 16px; border: 0; border-radius: 14px; background: transparent;
  color: var(--ink); font: 400 18px/1.25 var(--ui); text-align: left; cursor: pointer; transition: background .14s ease; }
.row:hover { background: rgba(0,0,0,.035); }
.row:active { transform: scale(.99); }
.ring { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2px solid #c7c7cc; position: relative; transition: background .2s ease, border-color .2s ease; }
.row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.row .m { flex: none; color: var(--muted); font-size: 15px; }
.row.done .ring { background: #f08a3c; border-color: #f08a3c; }
.row.done .ring::after { content: ""; position: absolute; left: 6px; top: 2px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.4px 2.4px 0; transform: rotate(45deg); }
.row.done .t { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(20,20,20,.3); }
.hint { margin: 18px 4px 0; color: var(--muted); font-size: 15px; }
kbd { padding: 2px 7px; border-radius: 6px; background: var(--raise); box-shadow: 0 0 0 1px rgba(0,0,0,.1); color: var(--ink); font: 500 14px/1.4 var(--ui); }

/* ---------- one day ---------- */
.day-grid { width: min(1180px, 100%); margin: 0 auto; padding: 0 var(--gutter); display: grid; grid-template-columns: 1fr 1fr; gap: 6vw; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; max-width: 28em; opacity: .3; transition: opacity .35s ease; }
.step.on { opacity: 1; }
.step h3 { font: 700 clamp(26px, 2.6vw, 36px)/1.12 var(--display); letter-spacing: -0.03em; }
.step time { color: var(--muted); font-weight: 500; letter-spacing: -0.01em; margin-right: .3em; }
.step p { margin: 16px 0 0; color: var(--muted); }
.step-img { display: none; }
.stage { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; justify-content: center; }
.phone { position: relative; width: min(340px, 30vw); aspect-ratio: 820 / 1673; filter: drop-shadow(0 40px 50px rgba(0,0,0,.18)); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .45s ease; }
.phone img.on { opacity: 1; }
@media (max-width: 900px) {
  .day-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .step { min-height: auto; opacity: 1; margin-top: 72px; }
  .step-img { display: block; width: min(300px, 76vw); margin-top: 28px; filter: drop-shadow(0 30px 36px rgba(0,0,0,.18)); }
}

/* ---------- the name ---------- */
.shift { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 4vw, 64px); margin-top: 64px; max-width: 820px; }
.shift-col { position: relative; }
.shift-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task, .slot2 { min-height: 60px; }
.task { position: relative; z-index: 1; will-change: transform; }
.slot2 { border-radius: 14px; background: rgba(240,138,60,.1); }
.shift-empty { position: absolute; left: 0; top: 36px; margin: 0; padding: 18px 0; color: var(--muted); opacity: 0; }

/* ---------- lock screen ---------- */
.track { display: flex; gap: 26px; margin-top: 60px; padding: 0 var(--gutter) 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.track::-webkit-scrollbar { display: none; }
.track figure { flex: 0 0 clamp(210px, 22vw, 300px); margin: 0; scroll-snap-align: center; }
.track img { filter: drop-shadow(0 26px 32px rgba(0,0,0,.2)); }
.track figcaption { margin-top: 14px; color: var(--muted); font-size: 15px; }
.lock.pinned { height: 100svh; padding-top: 14vh; overflow: hidden; }
.lock.pinned .track { overflow: visible; scroll-snap-type: none; margin-top: 5vh; }
.lock.pinned .track figure { flex-basis: min(290px, calc(54svh * .49)); }

/* ---------- the rest ---------- */
.facts { margin: 0; display: grid; gap: 30px; }
.facts dt { font: 600 19px/1.3 var(--ui); }
.facts dd { margin: 6px 0 0; color: var(--muted); }

/* ---------- privacy, final ---------- */
.privacy h2 { max-width: 16em; }
.get { overflow: hidden; }
.get h2 { margin: 0 auto; }
.get .lead { margin-left: auto; margin-right: auto; }
.horizon { position: relative; height: clamp(160px, 24vw, 320px); margin-top: clamp(64px, 8vw, 120px); clip-path: inset(-600px 0 0 0); }
.horizon::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 100% at 50% 100%, rgba(255,170,100,.5), rgba(255,140,100,.2) 45%, transparent 78%); }
.sun { position: absolute; left: 50%; top: 100%; width: min(84vw, 660px); aspect-ratio: 1; border-radius: 50%; translate: -50% 0; transform: translateY(-58%);
  background: radial-gradient(circle at 50% 22%, #fff6dc 0%, #ffd896 22%, #ffb062 46%, #f58a45 70%, #e2683a 100%);
  box-shadow: 0 0 60px 10px rgba(255,190,120,.45), 0 0 220px 70px rgba(255,150,80,.3); }
.footer { position: relative; z-index: 1; background: #f5f5f7; padding: 40px 0 52px; color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 24px; }
.foot p { margin: 0; }
.foot nav { display: flex; gap: 24px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
  .split2 { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .hero { padding-top: 96px; }
  .live { margin-top: 44px; }
  .shift { grid-template-columns: 1fr; gap: 30px; }
  .field { padding-left: 16px; min-height: 62px; }
  .act .btn { flex: 1 1 auto; }
}
@media (max-width: 340px) {
  :root { --gutter: 12px; }
  .nav .btn-small { display: none; }
  .word { font-size: 40px; }
  .live { grid-template-columns: 1fr; }
}
@media (max-height: 520px) and (orientation: landscape) {
  .hero { min-height: auto; padding-top: 84px; }
  .icon { width: 96px; }
  .live { display: none; }
}

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

/* ---------- hero on smaller screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 96px; gap: 56px; }
  .phone-hero { width: min(290px, 68vw); }
  .f1 { left: 0; } .f2 { right: 0; } .f3 { left: 2%; } .f4 { right: 0; }
}
@media (max-width: 420px) { .float { padding: 9px 12px; font-size: 13px; } .f4 { display: none; } }

/* ---------- the try-it card: progress, XP, streaks ---------- */
.today { margin-top: 26px; padding: 22px; border-radius: 26px; background: var(--raise);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 0 0 .5px rgba(0,0,0,.07), 0 30px 60px -30px rgba(0,0,0,.25); position: relative; }
.today .list { margin-top: 16px; }
.today-head { display: flex; align-items: center; gap: 14px; }
.pring { position: relative; width: 60px; height: 60px; flex: none; }
.pring svg { width: 60px; height: 60px; transform: rotate(-90deg); }
.pring circle { fill: none; stroke-width: 6; }
.pr-bg { stroke: #ececf0; }
.pr-fg { stroke: #5b4bdb; stroke-linecap: round; stroke-dasharray: 169.6; stroke-dashoffset: 169.6; transition: stroke-dashoffset .6s cubic-bezier(.2,.8,.2,1), stroke .3s ease; }
.pct { position: absolute; inset: 0; display: grid; place-items: center; font: 700 14px/1 var(--ui); }
.today-title { margin: 0; font: 700 22px/1 var(--display); letter-spacing: -0.02em; }
.today-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.xp { margin: 0 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 12px; background: #fff4d6; color: #8a5a00; font: 700 15px/1 var(--ui); }
.xp .ico { color: #f5a400; }
.habits-label { margin: 18px 0 10px; color: var(--muted); font-size: 14px; font-weight: 600; }
.habits { display: flex; flex-wrap: wrap; gap: 8px; }
.habit { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 13px; background: #f3f3f6;
  color: var(--ink); font: 600 15px/1 var(--ui); cursor: pointer; transition: background .15s ease, transform .12s ease; }
.habit > .ico { font-size: 18px; color: #8e8e93; transition: color .15s ease; }
.habit em { display: inline-flex; align-items: center; gap: 2px; font-style: normal; color: #8e8e93; }
.habit em .ico { font-size: 14px; }
.habit.on { background: #fff0e0; }
.habit.on > .ico, .habit.on em { color: #e2702a; }
.habit:active { transform: scale(.96); }
.cleared { margin: 16px 0 0; text-align: center; font: 700 17px/1.3 var(--ui); color: #2f9e55; }
.float-xp { position: absolute; z-index: 3; pointer-events: none; font: 800 18px/1 var(--ui); color: #f5a400; }
.confetti { position: fixed; z-index: 60; width: 9px; height: 14px; border-radius: 3px; pointer-events: none; }
.row.is-new { background: rgba(91,75,219,.08); }
@media (max-width: 420px) { .today { padding: 16px; } .xp { padding: 8px 10px; font-size: 14px; } }
h2 .w { display: inline-block; }
