/* thistimer.app. The colors are the app's (mobile/src/lib/tokens.ts), light and dark.
   System fonts only: the site loads nothing from anywhere else. */
:root {
  color-scheme: light dark;
  --bg: #F5F6F8;
  --surface: #FFFFFF;
  --border: #E0E3E9;
  --text: #11151C;
  --muted: #586173;
  --primary: #0EA05B;
  --primary-text: #0B7A48;
  --primary-soft: #DDF6E8;
  --danger: #D8372B;
  --on-danger: #FFFFFF;
  --shadow: 0 24px 60px rgba(17, 21, 28, 0.10);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C0E12;
    --surface: #15181E;
    --border: #2A303B;
    --text: #EEF1F5;
    --muted: #9AA3B2;
    --primary: #2BD487;
    --primary-text: #3EDB95;
    --primary-soft: #11291D;
    --danger: #F2584B;
    --on-danger: #1F0806;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 var(--sans); }
a { color: var(--primary-text); text-underline-offset: 2px; }
.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

nav.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; letter-spacing: -0.2px; }
.logo img { width: 34px; height: 34px; border-radius: 9px; }
nav.top .links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; margin-left: 20px; }
nav.top .links a:hover { color: var(--text); }

/* Policy pages */
article { max-width: 680px; margin: 24px auto 72px; }
article h1 { font-size: 38px; line-height: 1.15; letter-spacing: -0.8px; margin: 0 0 6px; }
article h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.3px; margin: 44px 0 8px; }
article h3 { font-size: 17px; margin: 26px 0 4px; }
article ul { padding-left: 22px; }
article li { margin: 6px 0; }
.updated { color: var(--muted); font-size: 15px; margin-top: 0; }
.note { background: var(--primary-soft); border-radius: 16px; padding: 4px 22px; margin: 26px 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }

/* Home */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; padding: 56px 0 72px; }
.hero h1 { font-size: 54px; line-height: 1.04; letter-spacing: -1.6px; margin: 0 0 18px; }
.hero h1 span { color: var(--primary-text); }
.lede { font-size: 20px; line-height: 1.5; color: var(--muted); margin: 0 0 28px; }
.soon { display: inline-block; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 15px; }
.small { color: var(--muted); font-size: 15px; margin-top: 14px; }

.timer { background: var(--surface); border: 1px solid var(--border); border-radius: 26px; padding: 30px; box-shadow: var(--shadow); }
.timer .label { font-size: 12px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--primary-text); }
.timer .clock { font: 700 54px/1.1 var(--mono); letter-spacing: -1.5px; font-variant-numeric: tabular-nums; margin: 10px 0 18px; }
.timer .task { font-weight: 700; font-size: 19px; }
.timer .project { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; }
.timer .dot { width: 10px; height: 10px; border-radius: 50%; background: #2A78D6; }
.timer .stop { margin-top: 24px; border-radius: 999px; background: var(--danger); color: var(--on-danger); text-align: center; font-weight: 700; font-size: 17px; padding: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 56px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.feature h2 { font-size: 18px; letter-spacing: -0.2px; margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.closing { max-width: 640px; margin: 0 auto 72px; text-align: center; color: var(--muted); }
.closing strong { color: var(--text); }

footer { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; border-top: 1px solid var(--border); padding: 24px 0 44px; color: var(--muted); font-size: 14px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 24px 0 48px; }
  .hero h1 { font-size: 40px; letter-spacing: -1px; }
  .lede { font-size: 18px; }
  .features { grid-template-columns: 1fr; }
  article h1 { font-size: 31px; }
  .timer .clock { font-size: 46px; }
}
