/* tidy.littlesunday.app — one stylesheet for the landing and legal pages, light and dark. */
:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e7e4dd;
  --accent: #2f7d5b;
  --accent-soft: #e6f2ec;
  --radius: 18px;
  --gutter: 20px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121314;
    --surface: #1c1d1f;
    --ink: #f2f2f2;
    --muted: #a1a1a6;
    --line: #2c2d30;
    --accent: #5fc596;
    --accent-soft: #1b2b24;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: calc(70ch + 2 * var(--gutter)); }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 650; font-size: 18px; }
.brand img { width: 32px; height: 32px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }

/* Hero */
.hero { text-align: center; padding-top: 56px; padding-bottom: 64px; }
.hero img { width: 128px; height: 128px; filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .14)); }
.hero h1 { margin-top: 20px; font-size: clamp(38px, 7vw, 60px); line-height: 1.05; letter-spacing: -0.03em; font-weight: 750; }
.hero .sub { margin-top: 6px; font-size: clamp(18px, 2.6vw, 22px); color: var(--muted); font-weight: 500; }
.hero .lead { max-width: 34em; margin: 22px auto 0; font-size: clamp(18px, 2.4vw, 21px); }
.badge {
  display: inline-block; margin-top: 30px; padding: 12px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: 16px; text-decoration: none;
}
.note { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-bottom: 64px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .icon { font-size: 26px; line-height: 1; }
.card h3 { margin-top: 14px; font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
.card p { margin-top: 6px; color: var(--muted); font-size: 16px; }

/* Free and Pro */
.plans { padding-bottom: 72px; }
.plans h2, .section-title { font-size: clamp(26px, 4vw, 34px); letter-spacing: -0.02em; line-height: 1.15; text-align: center; }
.plans .grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.plans .card.pro { background: var(--accent-soft); border-color: transparent; }
.plans ul { margin-top: 12px; padding-left: 20px; }
.plans li { margin-top: 6px; }
.plans .fine { margin-top: 18px; text-align: center; color: var(--muted); font-size: 15px; }

/* Legal pages */
.legal { padding-top: 40px; padding-bottom: 80px; }
.legal h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.1; letter-spacing: -0.025em; hyphens: auto; overflow-wrap: break-word; }
.legal .date { margin-top: 8px; color: var(--muted); font-size: 15px; }
.legal .summary { margin-top: 24px; padding: 18px 20px; border-radius: 14px; background: var(--accent-soft); }
.legal h2 { margin-top: 36px; font-size: 21px; letter-spacing: -0.01em; }
.legal p, .legal ul { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-top: 6px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; font-size: 14px; color: var(--muted); }
.foot .row { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot a { color: var(--muted); }

@media (max-width: 520px) {
  .top nav { gap: 14px; }
  /* Only the language switch fits next to the logo; the other links are in the footer. */
  .top nav a:not([lang]) { display: none; }
  .hero { padding-top: 32px; }
}
