/* Taskly website. Same paper and berry as the app; Figtree, self-hosted. */
@font-face {
  font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("/assets/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-display: swap; font-weight: 300 900;
  src: url("/assets/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #fbfaf8; --panel: #f3f0eb; --card: #ffffff; --fg: #27231f; --muted: #6f685f; --faint: #b3ada4; --line: #e5e0d8;
  --accent: #b0336b; --accent-fg: #ffffff; --accent-soft: #f7e2eb; --ok: #3f8f5a;
  --max: 1160px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1d1b19; --panel: #252321; --card: #262422; --fg: #ece8e1; --muted: #a39d93; --faint: #6b665f; --line: #37342f;
    --accent: #e8719f; --accent-fg: #1d1b19; --accent-soft: #3c2530; --ok: #63b583;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 18px/1.6 "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(40px, 6.2vw, 76px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
p { margin: 0; text-wrap: pretty; }
.small { font-size: 15px; color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-weight: 700; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn.small { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* ---------- top bar ---------- */
.nav { max-width: var(--max); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.nav nav { display: flex; align-items: center; gap: 22px; font-size: 16px; }
.nav nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; }
.nav nav a:not(.btn):hover { color: var(--fg); }

main > section { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 9vw, 120px) var(--gutter) 0; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: clamp(24px, 5vw, 64px) !important; }
.lede { font-size: clamp(19px, 1.7vw, 22px); color: var(--muted); margin-top: 22px; max-width: 34em; }
.hero-phone img, .shot.phone img { border-radius: 36px; border: 1px solid var(--line); box-shadow: 0 30px 80px -40px rgba(39, 35, 31, .45); }
.hero-phone { margin: 0; max-width: 360px; justify-self: center; }

.qa-demo { margin-top: 34px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px 14px; max-width: 560px; box-shadow: 0 14px 40px -28px rgba(39, 35, 31, .35); }
.qa-demo label { display: block; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.qa-demo input { width: 100%; border: 0; background: transparent; color: var(--fg); font: 600 clamp(18px, 2vw, 21px)/1.4 "Figtree", system-ui, sans-serif; padding: 4px 0; outline: none; }
.qa-demo:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; min-height: 34px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; color: var(--fg); background: var(--bg); animation: pop .25s ease-out both; }
.chip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chip.date { color: #2f6f45; } .chip.p1 { color: #b8322a; } .chip.p2 { color: #9a5200; } .chip.p3 { color: #1f5bbd; }
@media (prefers-color-scheme: dark) { .chip.date { color: #7cc796; } .chip.p1 { color: #f08a80; } .chip.p2 { color: #f2b25c; } .chip.p3 { color: #86b1f5; } }
.chip.title { border-style: dashed; color: var(--muted); }
@keyframes pop { from { transform: translateY(4px); } }
.qa-hint { font-size: 14px; color: var(--muted); margin-top: 12px; }
.qa-hint em { font-style: normal; font-weight: 700; color: var(--fg); }
.cta { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin-top: 28px; }
.note { font-size: 15px; color: var(--muted); }

/* ---------- features ---------- */
.feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy p { color: var(--muted); margin-top: 18px; max-width: 32em; }
.shot { margin: 0; }
.shot.wide img { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 30px 80px -45px rgba(39, 35, 31, .5); }
.shot.phone { max-width: 330px; justify-self: center; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 16px; height: 9px; border-left: 2.5px solid var(--accent); border-bottom: 2.5px solid var(--accent); transform: rotate(-45deg); }
.moods { list-style: none; padding: 0; margin: 26px 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 88px)); gap: 12px; }
.moods li { display: grid; justify-items: center; gap: 8px; text-align: center; font-size: 14px; color: var(--muted); line-height: 1.3; }
.moods img { width: min(64px, 100%); height: auto; aspect-ratio: 1; border-radius: 50%; background: var(--accent-soft); }

/* ---------- connections ---------- */
.connect-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin: 40px 0 0; }
.connect-list dt { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 21px; letter-spacing: -0.01em; }
.connect-list dt svg { width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.connect-list dd { margin: 8px 0 0 38px; color: var(--muted); }

/* ---------- devices ---------- */
.device-list { list-style: none; padding: 0; margin: 32px 0 0; border-top: 1px solid var(--line); }
.device-list li { display: grid; grid-template-columns: 160px 1fr auto; gap: 8px 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--line); }
.device-list b { font-size: 21px; font-weight: 800; }
.device-list span { color: var(--muted); }
.device-list a { font-weight: 700; }

/* ---------- pricing ---------- */
.pricing { text-align: center; }
.pricing > * { margin-left: auto; margin-right: auto; }
.pricing p { color: var(--muted); max-width: 36em; margin-top: 18px; margin-bottom: 28px; }
.pricing p.small { margin-top: 18px; }

/* ---------- faq ---------- */
.faq { max-width: 820px !important; }
.faq h2 { margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 700; font-size: 19px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 28px; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 32px; }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* ---------- footer ---------- */
.foot { max-width: var(--max); margin: clamp(72px, 10vw, 140px) auto 0; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px 28px; flex-wrap: wrap; font-size: 15px; color: var(--muted); }
.foot .brand { font-size: 17px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot nav a:hover { color: var(--fg); }
.foot p { margin-left: auto; }

/* ---------- legal and support pages ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(32px, 6vw, 72px) var(--gutter) 0; }
.doc h1 { font-size: clamp(36px, 5vw, 56px); }
.doc .updated { color: var(--muted); margin-top: 12px; }
.doc h2 { font-size: 26px; margin-top: 44px; }
.doc h3 { font-size: 19px; margin-top: 26px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--fg); }
.doc p { margin-top: 14px; }
.doc ul { padding-left: 22px; margin: 12px 0 0; }
.doc li { margin-top: 6px; }
.doc table { border-collapse: collapse; width: 100%; margin-top: 16px; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-weight: 700; }
.doc .todo { background: var(--accent-soft); border-radius: 8px; padding: 2px 6px; }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .nav nav a:not(.btn) { display: none; }
  .hero, .feature, .feature.flip { grid-template-columns: 1fr; }
  .feature.flip .feature-copy { order: 0; }
  .hero-phone { max-width: 300px; }
  .shot.phone { max-width: 280px; }
  .connect-list { grid-template-columns: 1fr; gap: 28px; }
  .device-list li { grid-template-columns: 1fr; }
  .foot p { margin-left: 0; width: 100%; }
}
