/* DaisyTasks website: one stylesheet for every page. Colors follow the app's health palette. */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --surface-2: #efede6;
  --text: #1d1f1e;
  --muted: #5d625f;
  --line: #dedbd2;
  --accent: #23877b;        /* healthy teal */
  --accent-ink: #ffffff;
  --accent-soft: #d9efe9;
  --attention: #e8a530;
  --overdue: #cf3a4a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .06);
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111413;
    --surface: #191d1c;
    --surface-2: #222826;
    --text: #edefee;
    --muted: #a3aaa7;
    --line: #2e3533;
    --accent: #3fb3a3;
    --accent-ink: #06201c;
    --accent-soft: #173a35;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, pre { font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
pre { background: var(--surface-2); padding: 14px 16px; border-radius: 10px; overflow-x: auto; }
:not(pre) > code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* Header and footer */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand svg { width: 28px; height: 28px; }
.site-header nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--text); }
@media (max-width: 560px) { .site-header nav .optional { display: none; } }
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 32px 0 48px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .08s, background .15s; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, black); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn[disabled] { opacity: .55; cursor: default; }

/* Landing */
.hero { padding-block: 64px 40px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.hero > * { min-width: 0; }
.hero-art { justify-self: center; width: min(100%, 460px); }
.hero-art img { width: 100%; height: auto; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; padding-block-start: 32px; } .hero-art { order: -1; width: min(100%, 340px); } }
.section { padding: 56px 0; }
.section > .wrap > p.intro { color: var(--muted); max-width: 40em; margin-bottom: 32px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.shots { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; flex: 0 0 auto; width: min(240px, 70vw); scroll-snap-align: start; }
.shots img { border-radius: 24px; border: 1px solid var(--line); }
.shots figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; text-align: center; }
.steps { counter-reset: step; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps .card { position: relative; padding-top: 48px; }
.steps .card::before { counter-increment: step; content: counter(step); position: absolute; top: 16px; left: 22px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 14px; }

/* Pricing */
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { text-align: center; }
.plan .price { font-size: 2rem; font-weight: 700; margin: 8px 0 2px; }
.plan .per { color: var(--muted); font-size: 15px; }
.plan.free .price { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 15px; text-align: left; }
.plan li { padding: 4px 0 4px 22px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.note { color: var(--muted); font-size: 15px; }

/* Documents (privacy, terms, self-hosting) */
.doc { padding-block: 48px; }
.doc h2 { margin-top: 1.8em; font-size: 1.4rem; }
.doc li { margin-bottom: .4em; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; }
.draft { background: color-mix(in srgb, var(--attention) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--attention) 55%, var(--line)); border-radius: 10px; padding: 12px 16px; font-size: 15px; }

/* Account panel */
.panel { padding-block: 40px; }
.panel .card + .card { margin-top: 16px; }
.status-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.badge.warn { background: color-mix(in srgb, var(--attention) 22%, var(--surface)); color: color-mix(in srgb, var(--attention) 60%, var(--text)); }
.badge.bad { background: color-mix(in srgb, var(--overdue) 15%, var(--surface)); color: var(--overdue); }
.meter { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-top: 8px; }
.meter span { display: block; height: 100%; background: var(--accent); }
.banner { border-radius: 10px; padding: 12px 16px; margin-bottom: 16px; background: var(--accent-soft); }
.banner.error { background: color-mix(in srgb, var(--overdue) 14%, var(--surface)); color: var(--text); }
.muted { color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }
