/* TaskFlow website. Colours and type follow the app's V1 "Paper Minimal" look. */
:root {
  --paper: #FBF9F5;
  --sand: #F4EFE7;
  --raised: #FFFFFF;
  --ink: #1C1917;
  --ink2: #6F6A63;
  --ink3: #A8A29A;
  --line: #EAE5DC;
  --acc: #E8573F;
  --accDeep: #C9432D;
  --accSoft: #FCEBE6;
  --teal: #1F9D8B;
  --blue: #3B7DD8;
  --amber: #D98E1F;
  --plum: #8B5CF6;
  --pink: #D9487D;
  --night: #1C1917;
  --nightRaised: #26221E;
  --onNight: #F3EEE6;
  --onNight2: #B9B2A8;
  --shadow: 0 30px 60px -30px rgba(60, 45, 25, 0.45);
  --radius: 22px;
  --sbTrack: #F4EFE7;
  --sbThumb: #D9D1C5;
  --sbThumbHover: #E8573F;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171513;
    --sand: #1E1B18;
    --raised: #24201C;
    --ink: #F3EEE6;
    --ink2: #B9B2A8;
    --ink3: #8A847B;
    --line: #322D28;
    --acc: #F07A62;
    --accDeep: #F07A62;
    --accSoft: #3A231D;
    --night: #24201C;
    --nightRaised: #2E2924;
    --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    --sbTrack: #171513;
    --sbThumb: #4A433C;
    --sbThumbHover: #F07A62;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--acc); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .sub { margin-left: auto; margin-right: auto; }

/* ---- Header ---- */
header.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 20px; letter-spacing: -0.5px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
nav.links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 600; }
nav.links a { color: var(--ink2); text-decoration: none; }
nav.links a:hover { color: var(--ink); }
nav.links a.pill { color: var(--paper); background: var(--ink); padding: 9px 18px; border-radius: 999px; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; font-size: 16px; transition: transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn .icon { width: 20px; height: 20px; }
.btn.play { padding-left: 20px; }
.btn.play small { display: block; font-size: 11px; font-weight: 600; opacity: .7; line-height: 1; letter-spacing: .2px; }
.btn.play span { display: block; line-height: 1.15; text-align: left; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.light { background: #fff; color: #1C1917; }

/* ---- Hero ---- */
.hero { position: relative; padding: 76px 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: auto -20% -40% 30%; height: 90%;
  background: radial-gradient(closest-side, var(--accSoft), transparent);
  z-index: -1;
}
.hero .wrap { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 40px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accDeep); background: var(--accSoft); padding: 7px 14px; border-radius: 999px; }
.eyebrow .icon { width: 15px; height: 15px; }
.hero h1 { margin-top: 20px; font-size: clamp(42px, 6.4vw, 72px); line-height: 1; font-weight: 800; letter-spacing: -0.045em; }
.hero h1 em, h2 em { font-style: normal; color: var(--acc); }
.hero .lead { margin-top: 22px; font-size: 19px; color: var(--ink2); max-width: 540px; }
.cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14.5px; font-weight: 600; color: var(--ink2); list-style: none; }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust .icon { width: 17px; height: 17px; color: var(--teal); stroke-width: 2.6; }

.stage { position: relative; height: 640px; }
.stage .ph { position: absolute; width: 300px; filter: drop-shadow(0 30px 40px rgba(60, 45, 25, .28)); }
.stage .ph.main { left: 50%; top: 0; transform: translateX(-50%); z-index: 3; }
.stage .ph.back-l { left: 2%; top: 70px; width: 250px; transform: rotate(-7deg); z-index: 1; opacity: .96; }
.stage .ph.back-r { right: 2%; top: 70px; width: 250px; transform: rotate(7deg); z-index: 1; opacity: .96; }
.float { position: absolute; z-index: 5; background: var(--raised); border-radius: 18px; box-shadow: 0 18px 40px -18px rgba(40, 30, 20, .45), 0 0 0 1px var(--line); padding: 14px 16px; font-size: 14px; }
.float.notif { left: -8%; top: 440px; width: 262px; }
.float.notif .app { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink3); font-weight: 600; }
.float.notif .app img { width: 18px; height: 18px; border-radius: 5px; }
.float.notif b { display: block; margin-top: 6px; font-size: 15px; }
.float.notif .meta { color: var(--ink2); font-size: 13px; }
.float.notif .acts { display: flex; gap: 8px; margin-top: 10px; }
.float.notif .acts span { font-size: 12.5px; font-weight: 700; color: var(--accDeep); background: var(--accSoft); padding: 5px 11px; border-radius: 999px; }
.float.total { right: -4%; top: 120px; display: flex; align-items: center; gap: 12px; }
.float.total .badge { width: 38px; height: 38px; border-radius: 12px; background: var(--accSoft); color: var(--acc); display: grid; place-items: center; }
.float.total small { display: block; color: var(--ink3); font-size: 12px; font-weight: 600; }
.float.total strong { font-size: 19px; letter-spacing: -0.3px; }

/* The two hero cards pop in, then drift up and down at different speeds so they never move together. */
.float { animation: floatIn .8s cubic-bezier(.2, .8, .2, 1) both, bob 6s ease-in-out infinite; }
.float.total { animation-delay: .35s, 1.15s; animation-duration: .8s, 5.2s; }
.float.notif { animation-delay: .6s, 1.4s; animation-duration: .8s, 6.6s; --tilt: -1.2deg; }
.float.total { --tilt: 1deg; }
.float.notif .acts span { animation: tap 6.6s ease-in-out 2.4s infinite; }
.float.notif .acts span + span { animation-delay: 2.7s; }
@keyframes floatIn {
  from { opacity: 0; scale: .9; }
  to { opacity: 1; scale: 1; }
}
@keyframes bob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50% { translate: 0 -14px; rotate: var(--tilt, 0deg); }
}
@keyframes tap {
  0%, 88%, 100% { transform: scale(1); }
  92% { transform: scale(1.08); }
}

/* ---- Stats strip ---- */
.stats { padding: 26px 0 64px; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--raised); border-radius: var(--radius); padding: 22px 22px 20px; box-shadow: 0 0 0 1px var(--line); }
.stat strong { display: block; font-size: 34px; font-weight: 800; letter-spacing: -1.2px; line-height: 1.1; }
.stat span { color: var(--ink2); font-size: 14.5px; }

/* ---- Sections ---- */
section { padding: 96px 0; }
section.sand { background: var(--sand); }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--acc); }
h2 { margin-top: 10px; font-size: clamp(32px, 4.4vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; }
.sub { margin-top: 16px; color: var(--ink2); font-size: 18px; max-width: 640px; }

/* Quick-add demo */
.parse { margin: 44px auto 0; max-width: 860px; background: var(--raised); border-radius: 28px; box-shadow: var(--shadow), 0 0 0 1px var(--line); padding: 30px 32px 26px; }
.parse .typed { font-size: clamp(20px, 2.6vw, 28px); font-weight: 600; letter-spacing: -0.4px; line-height: 1.35; }
.parse .typed .c { border-right: 2px solid var(--acc); animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { border-color: transparent; } }
.tok-date { color: #E8573F; } .tok-rep { color: var(--teal); } .tok-tag { color: var(--blue); } .tok-list { color: var(--amber); }
.parse .chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; }
.chip .icon { width: 16px; height: 16px; }
.chip.date { background: #FCEBE6; color: #C9432D; }
.chip.rep { background: #E2F4F1; color: #17786A; }
.chip.tag { background: #E6EEFA; color: #2D62AE; }
.chip.list { background: #FBF0DD; color: #A86A12; }
.parse .hint { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink3); font-size: 14px; display: flex; gap: 8px; align-items: center; }

/* Spotlight rows */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.spot + .spot { margin-top: 110px; }
.spot.flip .copy { order: 2; }
.spot .visual { position: relative; display: grid; place-items: center; padding: 30px 0; }
.spot .visual::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--accSoft); z-index: 0; }
.spot.teal .visual::before { background: color-mix(in srgb, var(--teal) 14%, var(--paper)); }
.spot.blue .visual::before { background: color-mix(in srgb, var(--blue) 13%, var(--paper)); }
.spot.amber .visual::before { background: color-mix(in srgb, var(--amber) 16%, var(--paper)); }
.spot .visual img { position: relative; z-index: 1; width: 320px; filter: drop-shadow(0 28px 36px rgba(60, 45, 25, .26)); }
.spot h3 { margin-top: 10px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.spot p.body { margin-top: 14px; color: var(--ink2); font-size: 17.5px; }
.ticks { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px; }
.ticks .icon { margin-top: 3px; width: 20px; height: 20px; color: var(--acc); stroke-width: 2.4; }
.ticks b { font-weight: 700; }
.tags { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font-size: 13.5px; font-weight: 600; color: var(--ink2); padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); background: var(--raised); }
.views { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.views div { background: var(--raised); border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
.views b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.views b .icon { width: 18px; height: 18px; color: var(--acc); }
.views span { display: block; color: var(--ink2); font-size: 14px; margin-top: 2px; }

/* Templates */
.tgrid { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { background: var(--raised); border-radius: var(--radius); padding: 24px; box-shadow: 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.tcard .head { display: flex; align-items: center; gap: 12px; }
.tcard .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; flex: none; }
.tcard .ic .icon { width: 21px; height: 21px; }
.tcard h4 { font-size: 18px; letter-spacing: -0.3px; }
.tcard p { color: var(--ink2); font-size: 15px; }
.tcard .fields { display: flex; flex-wrap: wrap; gap: 6px; }
.tcard .fields span { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--ink2); }
.tcard .flow { margin-top: auto; font-size: 13px; color: var(--ink3); font-weight: 600; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tcard .flow i { font-style: normal; color: var(--ink3); }

/* Steps */
.steps { margin-top: 48px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 28px 26px; border-radius: var(--radius); background: var(--raised); box-shadow: 0 0 0 1px var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 17px; }
.step h4 { margin-top: 18px; font-size: 19px; letter-spacing: -0.3px; }
.step p { margin-top: 6px; color: var(--ink2); font-size: 15.5px; }

/* Small features */
.fgrid { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px 26px; }
.fitem .icon { width: 24px; height: 24px; color: var(--acc); }
.fitem b { display: block; margin-top: 12px; font-size: 16.5px; }
.fitem span { display: block; margin-top: 4px; color: var(--ink2); font-size: 14.5px; }

/* Privacy (dark band) */
section.night { background: var(--night); color: var(--onNight); }
section.night .sub { color: var(--onNight2); }
section.night .kicker { color: #F07A62; }
.pgrid { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pitem { background: var(--nightRaised); border-radius: var(--radius); padding: 24px; }
.pitem .icon { width: 26px; height: 26px; color: #F07A62; }
.pitem b { display: block; margin-top: 14px; font-size: 17px; }
.pitem span { display: block; margin-top: 6px; color: var(--onNight2); font-size: 14.5px; }
.drive { margin-top: 22px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: center; background: var(--nightRaised); border-radius: 26px; padding: 32px; }
.drive h3 { font-size: 24px; letter-spacing: -0.5px; }
.drive p { margin-top: 8px; color: var(--onNight2); }
.drive ol { list-style: none; counter-reset: d; display: grid; gap: 12px; }
.drive li { display: flex; gap: 12px; align-items: flex-start; color: var(--onNight); font-size: 15.5px; }
.drive li::before { counter-increment: d; content: counter(d); flex: none; width: 26px; height: 26px; border-radius: 50%; background: #F07A62; color: #1C1917; font-weight: 800; font-size: 13px; display: grid; place-items: center; margin-top: 1px; }
section.night a { color: #F07A62; }

/* Gallery */
.gallery { margin-top: 44px; display: flex; gap: 22px; overflow-x: auto; padding: 10px 24px 24px; scroll-snap-type: x mandatory; }
.gallery figure { flex: none; width: 236px; scroll-snap-align: center; text-align: center; }
.gallery img { width: 236px; filter: drop-shadow(0 18px 24px rgba(60, 45, 25, .22)); }
.gallery figcaption { margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--ink2); }

/* FAQ */
.faq { margin-top: 36px; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; color: var(--ink3); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink2); font-size: 16.5px; }

/* Closing call to action */
.closing { padding: 0 0 96px; }
.closing .box { background: linear-gradient(135deg, #E8573F, #D2462F); color: #fff; border-radius: 32px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden; }
.closing .box::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(255,255,255,.08); right: -120px; top: -160px; }
.closing h2 { color: #fff; margin-top: 0; }
.closing p { margin: 14px auto 0; max-width: 560px; font-size: 18px; color: rgba(255,255,255,.88); }
.closing .cta { justify-content: center; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 14.5px; }
footer.site .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
footer.site p { color: var(--ink2); margin-top: 12px; max-width: 320px; }
footer.site h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); }
footer.site ul { list-style: none; margin-top: 12px; display: grid; gap: 8px; }
footer.site ul a { color: var(--ink2); text-decoration: none; }
footer.site ul a:hover { color: var(--ink); }
footer.site .base { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink3); font-size: 13.5px; }

/* ---- Legal pages ---- */
.doc { padding: 64px 0 88px; }
.doc .eyebrow { margin-bottom: 18px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; }
.doc .meta { margin-top: 12px; color: var(--ink3); font-size: 14.5px; }
.doc h2 { margin-top: 44px; font-size: 23px; letter-spacing: -0.4px; }
.doc h3 { margin-top: 22px; font-size: 17px; }
.doc p, .doc li { margin-top: 10px; color: var(--ink2); font-size: 16.5px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc strong { color: var(--ink); }
.doc code { font-size: 14px; background: var(--sand); padding: 2px 6px; border-radius: 6px; }
.doc .summary { margin-top: 28px; padding: 22px 24px; background: var(--accSoft); border-radius: 18px; color: var(--ink); }
.doc .summary p { color: var(--ink); margin-top: 6px; }
.doc table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink2); }
.doc th { color: var(--ink); font-weight: 700; }

/* ---- Responsive ---- */
@media (max-width: 1020px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .stage { height: 600px; max-width: 560px; margin: 10px auto 0; width: 100%; }
  .fgrid { grid-template-columns: repeat(3, 1fr); }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .tgrid { grid-template-columns: repeat(2, 1fr); }
  footer.site .cols { grid-template-columns: 1fr 1fr 1fr; }
  footer.site .cols > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  nav.links a.hide-md { display: none; }
  section { padding: 72px 0; }
  .spot, .drive { grid-template-columns: 1fr; gap: 28px; }
  .spot.flip .copy { order: 0; }
  .spot + .spot { margin-top: 80px; }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  nav.links { gap: 14px; }
  nav.links a.hide-sm { display: none; }
  .hero { padding-top: 44px; }
  .stage { height: 470px; }
  .stage .ph { width: 220px; }
  .stage .ph.back-l, .stage .ph.back-r { width: 170px; top: 60px; }
  .float.notif { width: 220px; top: 270px; left: 0; padding: 12px 13px; }
  .float.total { top: 150px; right: 0; }
  .tgrid, .pgrid, .views { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .parse { padding: 22px 18px; border-radius: 22px; }
  .spot .visual img { width: 250px; }
  .closing .box { padding: 48px 22px; border-radius: 24px; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
  .doc table, .doc thead, .doc tbody, .doc tr, .doc th, .doc td { display: block; }
  .doc thead { display: none; }
  .doc td { border: 0; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
/* Scrollbars, themed for light and dark. Chrome, Edge and Safari draw a slim pill that turns coral
   on hover; Firefox gets the same colours through scrollbar-color. */
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--sbTrack); }
::-webkit-scrollbar-thumb {
  background: var(--sbThumb);
  border-radius: 999px;
  border: 3px solid var(--sbTrack);
  min-height: 48px;
}
::-webkit-scrollbar-thumb:hover { background: var(--sbThumbHover); }
::-webkit-scrollbar-thumb:active { background: var(--accDeep); }
::-webkit-scrollbar-corner { background: var(--sbTrack); }
.gallery::-webkit-scrollbar { height: 10px; }
.gallery::-webkit-scrollbar-track { background: transparent; margin: 0 24px; }
.gallery::-webkit-scrollbar-thumb { border-color: var(--paper); }
@supports not selector(::-webkit-scrollbar) {
  html { scrollbar-color: var(--sbThumb) var(--sbTrack); }
  .gallery { scrollbar-width: thin; scrollbar-color: var(--sbThumb) transparent; }
}
::selection { background: var(--accSoft); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .parse .typed .c { animation: none; }
  .btn { transition: none; }
  .float, .float.notif .acts span { animation: none; }
}
