/* Pocket website. The page is one day: morning sky, dusk, night for the alarm, dawn, a new morning.
   Colours come from the app's Glacier look. */
:root {
  color-scheme: light;
  --morning-top: #F3F7FC;
  --morning: #DDE7F5;
  --day: #C3D3EC;
  --dusk: #9DB4DC;
  --dawn: #33466F;
  --night-top: #111C33;
  --night-mid: #0B1324;
  --night: #05080F;
  --ink: #1D2B45;
  --ink-2: #3E4E6C;
  --moon: #EEF3FB;
  --moon-2: #A9B6CC;
  --line: #E3EAF5;
  --soft: #EAF0F8;
  --taken: #2E8F6B;
  --taken-soft: #DFF2EA;
  --alarm: #F0A27E;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 20px 44px rgba(60, 90, 140, .22);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--morning-top); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #4F7FC7; outline-offset: 3px; border-radius: 8px; }
h1, h2 { font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
h2 { font-size: clamp(34px, 6vw, 72px); line-height: 1.04; }
.wrap { width: 100%; max-width: 1128px; margin: 0 auto; padding: 0 24px; }
.centre { text-align: center; }
.lede { font-size: 20px; color: var(--ink-2); }
.when { font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 14px; font-variant-numeric: tabular-nums; }

/* ---------- Hero ---------- */
.hero { overflow: hidden; background: linear-gradient(180deg, var(--morning-top), var(--morning)); }
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; text-decoration: none; }
.brand img { border-radius: 9px; box-shadow: 0 2px 8px rgba(60, 90, 140, .2); }
.nav ul { display: flex; gap: 28px; font-size: 15px; }
.nav ul a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.nav ul a:hover { color: var(--ink); }
.hero-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 96px; }
.hero-words { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(34px, 4.8vw, 58px); line-height: 1.06; }
.hero .lede { margin-top: 20px; max-width: 26em; }
.badge { display: inline-block; margin-top: 32px; border-radius: 10px; }
.badge img { height: 56px; width: auto; }
.hero-scene { position: relative; display: grid; justify-items: center; }
.phone { position: relative; z-index: 1; border-radius: 46px; padding: 8px; background: #0E1729; box-shadow: 0 30px 60px rgba(29, 43, 69, .28); }
.phone-shot { width: min(300px, 78vw); border-radius: 50px; padding: 9px; animation: arrive .9s cubic-bezier(.2, .9, .3, 1) .15s both; }
.phone-shot img { width: 100%; height: auto; border-radius: 42px; }
.glow { position: absolute; left: 50%; top: 50%; width: 0; height: 0; z-index: 0; }
.glow::before { content: ""; position: absolute; left: -480px; top: -480px; width: 960px; height: 960px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 255, 255, .98), rgba(255, 255, 255, .55) 38%, rgba(255, 255, 255, 0) 72%); animation: breathe 7s ease-in-out infinite; }
.glow i { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .75); }
.glow i { --d: 420px; left: calc(var(--d) / -2); top: calc(var(--d) / -2); width: var(--d); height: var(--d); }
.glow i:nth-child(2) { --d: 520px; opacity: .65; }
.glow i:nth-child(3) { --d: 620px; opacity: .35; }

/* ---------- Reminders: one phone stays put while the morning passes ---------- */
.reminders { --p: 0; height: 200vh; background: linear-gradient(180deg, var(--morning), var(--day) 60%, var(--dusk)); }
.pin { position: sticky; top: 0; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; display: grid; align-content: center; }
.swap { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.swap > * { grid-area: 1 / 1; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.swap > .b { opacity: 0; transform: translateY(18px); }
.later .swap > .a { opacity: 0; transform: translateY(-18px); }
.later .swap > .b { opacity: 1; transform: none; }
.reminders .lede { margin-top: 16px; }
.scene { position: relative; display: grid; justify-items: center; margin-top: 36px; }
.reminders .scene, .alarm .scene { --ph: clamp(340px, 50vh, 520px); }
.reminders .glow { top: 56%; opacity: calc(.55 + var(--p) * .45); }
.reminders .glow i { --d: calc(var(--ph) * .8); }
.reminders .glow i:nth-child(2) { --d: calc(var(--ph) * 1.02); }
.reminders .glow i:nth-child(3) { --d: calc(var(--ph) * 1.24); }
.reminders .phone, .alarm .phone { height: var(--ph); width: calc(var(--ph) * .508); }
.screen { height: 100%; border-radius: 38px; display: grid; align-content: start; justify-items: center; padding-top: 12%; }
.screen.day { background: radial-gradient(260px 200px at 50% 40%, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0)), linear-gradient(180deg, #F6F9FD, #CCDAEE); }
.clock { font-size: 68px; font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.roll { display: inline-block; height: 1em; overflow: hidden; vertical-align: top; }
.reel { display: block; transition: transform .8s cubic-bezier(.3, 1.2, .4, 1); }
.reel span { display: block; height: 1em; }
.later .reel { transform: translateY(-1em); }
.date { font-size: 14px; margin-top: 6px; opacity: .75; }
.lifted { position: absolute; left: 50%; top: 46%; width: min(420px, 100%); transform: translateX(-50%); z-index: 2; text-align: left; }
.stack { display: grid; }
.notif { grid-area: 1 / 1; align-self: start; background: rgba(255, 255, 255, .94); border-radius: 26px; padding: 18px 20px; font-size: 16px; line-height: 1.4; box-shadow: 0 0 0 1px #fff inset, 0 0 60px rgba(255, 255, 255, .95), 0 28px 56px rgba(60, 90, 140, .3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, 1.2, .4, 1); }
.notif b { display: block; font-weight: 600; }
.notif-head { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.notif-head img { border-radius: 5px; }
.notif-head .time { margin-left: auto; justify-items: end; }
.newer { opacity: 0; transform: translateY(-40px) scale(.94); }
.later .older { transform: translateY(-34px) scale(.92); opacity: .6; }
.later .newer { opacity: 1; transform: translateY(34px); }
.reminders.seen .older { animation: land .75s cubic-bezier(.2, 1.35, .4, 1) both; }
.reminders.seen.later .older { animation: none; }

/* ---------- Dusk: the question that leads into the alarm ---------- */
.dusk { padding: 150px 20px 20px; text-align: center; background: linear-gradient(180deg, var(--dusk), #53699A 45%, var(--night-top)); }
.dusk p { color: var(--alarm); font-size: clamp(22px, 2.6vw, 30px); }

/* ---------- Alarm ---------- */
.alarm { position: relative; overflow: hidden; padding: 8px 0 88px; color: var(--moon); background: linear-gradient(180deg, var(--night-top), var(--night-mid) 45%, var(--night)); }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.alarm .wrap { position: relative; }
.alarm h2 { font-size: clamp(40px, 7vw, 84px); }
.alarm .lede { color: var(--moon-2); max-width: 28em; margin: 20px auto 0; }
.alarm .scene { margin-top: 48px; padding-bottom: 40px; }
.alarm .scene::before { content: ""; position: absolute; left: 50%; top: 56%; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 162, 126, .26), rgba(240, 162, 126, 0) 70%); pointer-events: none; }
.alarm .phone { background: #1B2740; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.screen.night { background: linear-gradient(180deg, #0D1528, var(--night)); color: var(--moon-2); padding-top: 22px; }
.status { display: flex; gap: 8px; font-size: 12px; font-weight: 500; }
.status span { background: rgba(238, 243, 251, .1); border-radius: 999px; padding: 4px 10px; }
.screen.night .clock { margin-top: 26px; color: var(--moon); opacity: .5; }
.rings { position: absolute; left: 50%; top: 56%; width: 0; height: 0; z-index: 1; }
.rings i { position: absolute; left: -210px; top: -210px; width: 420px; height: 420px; border-radius: 50%; border: 1.5px solid var(--alarm); opacity: 0; animation: ring 3.6s ease-out infinite; }
.rings i:nth-child(2) { animation-delay: 1.2s; }
.rings i:nth-child(3) { animation-delay: 2.4s; }
.alarm-card { top: 38%; width: min(400px, 100%); background: rgba(31, 44, 71, .86); border: 1px solid rgba(240, 162, 126, .7); border-radius: 30px; padding: 22px 22px 20px; color: var(--moon); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: warm 3.6s ease-in-out infinite; }
.alarm-card .notif-head { color: var(--moon-2); margin: 0; }
.alarm-time { font-size: 54px; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; margin-top: 8px; color: var(--alarm); font-variant-numeric: tabular-nums; }
.alarm-what { font-size: 18px; font-weight: 600; margin-top: 2px; }
.alarm-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.alarm-btns span { display: grid; place-items: center; height: 52px; border-radius: 999px; font-weight: 600; border: 1.5px solid rgba(238, 243, 251, .5); }
.alarm-btns .fill { background: var(--moon); color: var(--night-top); border-color: transparent; }

/* ---------- Tick ---------- */
.tick { padding: 72px 0 88px; color: var(--moon); background: linear-gradient(180deg, var(--night), #16223F 55%, var(--dawn)); }
.tick .when { color: var(--moon-2); }
.tick h2 { font-size: clamp(32px, 5.2vw, 60px); }
.tickcard { width: min(440px, 100%); margin: 40px auto 0; background: #fff; color: var(--ink); border-radius: 30px; padding: 8px 22px; text-align: left; box-shadow: 0 0 70px rgba(143, 179, 230, .35), 0 30px 60px rgba(0, 0, 0, .45); }
.med { display: flex; align-items: center; gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.med:first-child, .card-head + .med, .status-box + .med { border-top: 0; }
.med svg { width: 38px; height: 38px; flex: none; }
.med > div { flex: 1; min-width: 0; }
.med b { display: block; font-weight: 600; transition: color .3s; }
.med span { display: block; font-size: 15px; color: var(--ink-2); }
.ring { flex: none; display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 0; background: none; padding: 0; cursor: pointer; }
.ring .circle { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #8090AC; animation: invite 2.4s ease-in-out infinite; }
.ring .capsule { display: none; align-items: center; gap: 6px; height: 32px; padding: 0 12px 0 7px; border-radius: 999px; background: var(--taken-soft); color: var(--ink); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.ring .capsule i { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--taken); }
.ring .capsule i::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.med.done b { text-decoration: line-through; color: var(--ink-2); }
.med.done .circle { display: none; }
.med.done .capsule { display: inline-flex; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.kind-word { font-size: clamp(24px, 3.4vw, 36px); font-weight: 300; letter-spacing: -0.01em; margin-top: 36px; opacity: 0; transform: translateY(14px); transition: opacity .7s ease .25s, transform .8s cubic-bezier(.2, .8, .2, 1) .25s; }
.tick.ticked .kind-word { opacity: 1; transform: none; }

/* ---------- Dawn band, then groups on a light sky ---------- */
.dawn { height: 180px; background: linear-gradient(180deg, var(--dawn), #7F97C4 50%, var(--day)); }
.groups { padding: 40px 0 88px; background: linear-gradient(180deg, var(--day), var(--morning) 45%, var(--morning-top)); }
.groups h2 { font-size: clamp(32px, 5.4vw, 62px); line-height: 1.06; }
.groups .lede { margin-top: 18px; }
.kinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; align-items: start; }
.kind h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.kind > p { font-size: 16px; color: var(--ink-2); margin-top: 4px; min-height: 48px; }
.card { margin-top: 18px; background: #fff; border-radius: 30px; padding: 20px 20px 8px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; }
.card-head h4 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.tag { flex: none; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 10px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.tag.on { background: var(--taken-soft); color: #1F6B4A; }
.tag.plain { background: none; padding: 0; }
.tag[hidden] { display: none; }
.status-box { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 8px; padding: 10px 12px 10px 14px; border-radius: 16px; background: var(--soft); font-size: 15px; }
.btn { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--ink); background: none; font-weight: 600; font-size: 15px; cursor: pointer; }
.btn.fill { background: var(--ink); color: #fff; }
.menu { position: absolute; right: 6px; top: calc(100% - 4px); z-index: 3; width: 200px; background: #fff; border-radius: 18px; padding: 6px; box-shadow: 0 20px 50px rgba(29, 43, 69, .3), 0 0 0 1px var(--line); }
.menu[hidden] { display: none; }
.menu p { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 8px 12px 4px; }
.menu button { display: block; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.menu button:hover { background: var(--soft); }

/* ---------- Private by design ---------- */
.private-wrap { padding: 0 24px 72px; }
.private { max-width: 1080px; margin: 0 auto; border-radius: 30px; padding: 64px 56px; color: var(--moon); background: linear-gradient(180deg, var(--night-top), var(--night-mid)); display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; box-shadow: 0 30px 60px rgba(29, 43, 69, .25); }
.private h2 { font-size: clamp(34px, 5vw, 56px); line-height: 1.05; }
.private p { color: var(--moon-2); font-size: 19px; margin-top: 20px; max-width: 26em; }
.private li { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(238, 243, 251, .14); font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.private li:first-child { border-top: 0; }
.private li span { flex: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(238, 243, 251, .08); display: grid; place-items: center; }
.private li svg { width: 24px; height: 24px; fill: none; stroke: var(--moon); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Questions ---------- */
.faq { background: #fff; padding: 88px 0; }
.faq .wrap { max-width: 928px; }
.faq h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; }
.qa { margin-top: 28px; border-bottom: 1px solid var(--line); }
.qa details { border-top: 1px solid var(--line); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; padding: 14px 0; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:focus-visible { outline: 3px solid #4F7FC7; outline-offset: 3px; border-radius: 8px; }
.qa h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.chev { flex: none; width: 11px; height: 11px; margin-right: 6px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .25s ease; }
.qa details[open] .chev { transform: translateY(3px) rotate(225deg); }
.qa p { color: var(--ink-2); font-size: 17px; max-width: 44em; padding: 0 40px 22px 0; }

/* ---------- Closing and footer ---------- */
.closing { padding: 40px 0 64px; background: linear-gradient(180deg, var(--morning-top), var(--morning)); }
.closing .badge { margin-top: 0; }
.closing h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; }
.tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.tags li { border: 1px solid rgba(29, 43, 69, .22); background: rgba(255, 255, 255, .6); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 500; }
.foot { padding: 20px 24px 36px; background: var(--morning); border-top: 1px solid rgba(29, 43, 69, .12); }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; font-size: 14px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Plain pages: Privacy, Terms, Support ---------- */
.plain { background: #fff; }
.plain-head { background: linear-gradient(180deg, var(--morning-top), #fff); }
.doc { max-width: 780px; padding-top: 32px; padding-bottom: 88px; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); line-height: 1.08; font-weight: 600; letter-spacing: -0.025em; }
.doc h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.015em; margin-top: 44px; }
.doc h3 { font-size: 18px; font-weight: 600; margin-top: 28px; }
.doc p, .doc ul, .doc .table { margin-top: 14px; }
.doc p, .doc li { color: var(--ink-2); }
.doc h1 + p { margin-top: 12px; }
.doc ul { padding-left: 22px; list-style: disc; }
.doc li + li { margin-top: 6px; }
.doc strong { color: var(--ink); font-weight: 600; }
.doc a { color: #2C5FB3; text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc .table { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { color: var(--ink); font-weight: 600; }
.doc td { color: var(--ink-2); }


/* ---------- Motion ---------- */
@keyframes arrive { from { transform: translateY(28px); } to { transform: none; } }
@keyframes breathe { 0%, 100% { opacity: .85; transform: scale(1); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes land { from { transform: translateY(-46px) scale(.92); } to { transform: none; } }
@keyframes ring { 0% { transform: scale(.45); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes warm { 0%, 100% { box-shadow: 0 0 0 6px rgba(240, 162, 126, .10), 0 0 60px rgba(240, 162, 126, .42), 0 30px 60px rgba(0, 0, 0, .5); } 50% { box-shadow: 0 0 0 10px rgba(240, 162, 126, .18), 0 0 100px rgba(240, 162, 126, .7), 0 30px 60px rgba(0, 0, 0, .5); } }
@keyframes invite { 0%, 100% { box-shadow: 0 0 0 0 rgba(79, 127, 199, .45); } 50% { box-shadow: 0 0 0 9px rgba(79, 127, 199, 0); } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .kinds { grid-template-columns: 1fr; max-width: 500px; gap: 40px; margin-top: 48px; }
  .kind > p { min-height: 0; }
}
@media (max-width: 820px) {
  .nav ul { display: none; }
  .wrap { padding: 0 20px; }
  .hero-row { grid-template-columns: 1fr; gap: 40px; padding-top: 24px; padding-bottom: 64px; }
  .lifted { width: min(350px, 100%); }
  .dusk { padding-top: 110px; }
  .alarm { padding-bottom: 64px; }
  .tick { padding: 56px 0 72px; }
  .dawn { height: 120px; }
  .groups { padding: 32px 0 64px; }
  .private-wrap { padding: 0 16px 56px; }
  .private { grid-template-columns: 1fr; gap: 32px; padding: 40px 24px; }
  .private li { font-size: 19px; }
  .faq { padding: 64px 0; }
  .closing { padding: 72px 0 56px; }
}

/* ---------- Reduce Motion: nothing pins, nothing moves ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reminders { height: auto; padding: 72px 0; }
  .pin { position: static; height: auto; min-height: 0; overflow: visible; }
  .swap > .a, .swap > .b { grid-area: auto; opacity: 1; transform: none; }
  .when .a, .time .a, .reel span:first-child { display: none; }
  .older { transform: translateY(-34px) scale(.92); opacity: .6; }
  .newer { opacity: 1; transform: translateY(34px); }
  .rings i:first-child { opacity: .35; transform: scale(1); }
  .kind-word { opacity: 1; transform: none; }
}
