/* TachoMinder website. One stylesheet for every page; light and dark follow the visitor's device. */
:root {
  --navy: #101c30;
  --bg: #f4f6fa;
  --card: #ffffff;
  --text: #101c30;
  --muted: #5a6476;
  --line: #e1e5ee;
  --blue: #0a7cf0;
  --green: #34c759;
  --orange: #ff9500;
  --purple: #bf5af2;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1322;
    --card: #142034;
    --text: #eef1f6;
    --muted: #a3adbd;
    --line: #24324a;
    --blue: #3d9bff;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 36px; height: 36px; }
.site-header nav { display: flex; gap: 18px; }
.site-header nav a { color: #c9d2e0; text-decoration: none; font-size: 0.95rem; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: #fff; }

/* The day's activity bar, as in the app */
.daybar { display: flex; height: 8px; border-radius: 4px; overflow: hidden; max-width: 340px; }
.daybar span:nth-child(1) { flex: 3; background: var(--orange); }
.daybar span:nth-child(2) { flex: 44; background: var(--blue); }
.daybar span:nth-child(3) { flex: 8; background: var(--green); }
.daybar span:nth-child(4) { flex: 29; background: var(--blue); }
.daybar span:nth-child(5) { flex: 10; background: var(--orange); }
.daybar span:nth-child(6) { flex: 6; background: var(--purple); }

/* Hero */
.hero { background: var(--navy); color: #fff; padding: 48px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.hero p.lead { color: #c9d2e0; font-size: 1.15rem; max-width: 34em; }
.hero .daybar { margin: 22px 0 26px; }
.badge { display: inline-block; border: 1px solid #3a4a66; color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: 0.95rem; }
.phone { border-radius: 34px; border: 6px solid #22324d; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); width: 100%; max-width: 300px; margin: 0 auto; background: #fff; }

/* Features */
.features { padding: 56px 0 24px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-bottom: 56px; }
.feature:nth-child(even) .feature-text { order: 2; }
.feature .phone { border-color: var(--line); box-shadow: 0 12px 34px rgba(16, 28, 48, 0.14); }
.feature-text p { color: var(--muted); font-size: 1.08rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 56px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; }
.card .dot { width: 12px; height: 12px; border-radius: 50%; margin-bottom: 12px; }

.need { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 40px; }
.need ul { margin: 0; padding-left: 1.2em; }
.need li { margin: 4px 0; }

.small-print { color: var(--muted); font-size: 0.92rem; border-top: 1px solid var(--line); padding: 24px 0 8px; }

/* Plain pages: privacy and support */
.page { padding: 40px 0 24px; max-width: 760px; }
.page h2 { font-size: 1.35rem; margin-top: 1.6em; }
.page .updated { color: var(--muted); }
.page details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
.page summary { font-weight: 600; cursor: pointer; }
.page details p { margin: 10px 0 0; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer a { color: var(--muted); }
.site-footer .follow a { margin-right: 12px; }

@media (max-width: 760px) {
  .hero { padding: 32px 0 40px; }
  .hero .wrap, .feature { grid-template-columns: 1fr; gap: 28px; }
  .feature:nth-child(even) .feature-text { order: 0; }
  .feature { margin-bottom: 44px; }
  .cards { grid-template-columns: 1fr; }
  .phone { max-width: 260px; }
  .site-header nav { gap: 14px; }
}
