/* Styling for littlestracker.com. The neutral palette and system-font rules
   below still govern /privacy and /support. The front page (body.landing,
   rules at the end of this file) is the real landing page, built 2026-09-24
   from the approved canvas design: it uses the app's palette and Inter Tight,
   self-hosted from /assets/fonts (never a font service; see README.md). */

:root {
  --bg: #ffffff;
  --ink: #1a1a1a;
  --ink-muted: #5c5c5c;
  --rule: #e3e3e3;
  --link: #2456b3;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --ink: #f2f2f2;
    --ink-muted: #b0b0b0;
    --rule: #2e2e2e;
    --link: #8ab4f8;
  }
}

html {
  color-scheme: light dark;
}

body {
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-text-size-adjust: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

h1 {
  font-size: 2rem;
  font-weight: 600;
}

h2 {
  font-size: 1.375rem;
  font-weight: 600;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 600;
}

p,
li {
  color: var(--ink);
}

li {
  margin-bottom: 0.35rem;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 2px;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

.meta {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.card {
  background: var(--bg);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 1.25rem;
}

/* Tables scroll, the page does not. Plan 15.2-06 must put every <table>
   inside a <div class="table-scroll"> so a wide table never forces the
   whole page sideways on a phone. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem;
}

th,
td {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

th {
  color: var(--ink-muted);
  font-weight: 600;
}

/* Reduced motion: there is no animation on this site, so there is nothing
   to disable. No prefers-reduced-motion media query is needed. */

/* ── Landing page (front page only; body.landing) ─────────────────────────
   Built from the approved canvas design, 2026-09-24. Palette and type come
   from the app's design system (lib/core/theme/): bg #F6F4F0, ink #13151A,
   primary #4F5AB8, dark band #13151A, Inter Tight (variable, self-hosted). */

@font-face {
  font-family: "Inter Tight";
  src: url("/assets/fonts/InterTight-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

body.landing {
  background: #f6f4f0;
  color: #13151a;
  color-scheme: light;
  font-family: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  margin: 0;
}

body.landing a {
  text-decoration: none;
  color: #4f5ab8;
}

body.landing a:hover {
  color: #3d468f;
}

body.landing .badge img {
  display: block;
  height: 60px;
  width: auto;
}

body.landing .badge-nav img {
  height: 40px;
}

body.landing .nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px clamp(20px, 5vw, 64px);
}

body.landing .wordmark {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: #13151a;
}

body.landing .hero {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(20px, 5vw, 64px) clamp(48px, 7vw, 88px);
}

body.landing .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  flex: 1;
}

body.landing h1 {
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0;
  text-wrap: pretty;
}

body.landing .hero-sub {
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.4;
  color: rgba(19, 21, 26, 0.62);
  max-width: 500px;
  margin: 0;
  text-wrap: pretty;
}

body.landing .hero-note {
  font-size: 15px;
  color: rgba(19, 21, 26, 0.6);
  margin: 0;
}

body.landing .phone {
  width: clamp(240px, 24vw, 300px);
  height: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 16px 36px rgba(19, 21, 26, 0.18));
}

body.landing h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
  text-align: center;
  text-wrap: pretty;
}

body.landing .section-sub {
  font-size: clamp(18px, 2vw, 22px);
  color: rgba(19, 21, 26, 0.62);
  margin: 0;
  text-align: center;
}

body.landing .features {
  background: #ffffff;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

body.landing .features-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

body.landing .cards {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  width: 100%;
  margin: 48px 0 0;
  padding: 0;
}

body.landing .card {
  background: #f6f4f0;
  /* The legal pages' dark-mode `li` rule would otherwise turn the card
     headings light on this always-light landing page. */
  color: #13151a;
  border: 0;
  border-radius: 20px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 0;
}

body.landing .card img {
  width: min(180px, 72%);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(19, 21, 26, 0.14));
}

body.landing .card h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  text-align: center;
}

body.landing .card p {
  font-size: 16px;
  line-height: 1.45;
  color: rgba(19, 21, 26, 0.62);
  text-align: center;
  margin: 0;
  max-width: 240px;
}

body.landing .lockscreen {
  background: #13151a;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
}

body.landing .lockscreen-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

body.landing .lockscreen .phone {
  filter: none;
}

body.landing .lockscreen h2 {
  color: #ffffff;
  text-align: left;
}

body.landing .lockscreen-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

body.landing .lockscreen p {
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.66);
  max-width: 440px;
  margin: 0;
  text-wrap: pretty;
}

body.landing .download {
  padding: clamp(64px, 9vw, 112px) 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

body.landing .download img {
  height: 60px;
  width: auto;
}

body.landing .landing-footer {
  border-top: 1px solid rgba(19, 21, 26, 0.06);
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px clamp(20px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

body.landing .landing-footer .meta {
  /* 0.6 keeps this at ~4.6:1 on the page background (WCAG AA); 0.47 measured
     only ~3.1:1. */
  color: rgba(19, 21, 26, 0.6);
  font-size: 14px;
  margin: 0;
}

body.landing .footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

body.landing .footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 1020px) {
  body.landing .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  body.landing .hero {
    flex-direction: column;
    align-items: flex-start;
  }

  body.landing .hero .phone {
    align-self: center;
  }

  body.landing .lockscreen-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
  }

  body.landing .lockscreen .phone {
    align-self: center;
  }
}

@media (max-width: 560px) {
  body.landing .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  body.landing .card img {
    width: min(200px, 72%);
  }

  body.landing .badge-nav img {
    height: 36px;
  }
}
