/* TruePace website — Calm Precision style
   Accent drawn from app icon: blue ring #3B7FE8, teal accent #2EC4A0
   System font stack, 8pt grid, mobile-first, prefers-color-scheme dark support
*/

:root {
  --accent:       #3B7FE8;
  --accent-teal:  #2EC4A0;
  --text:         #1a1a1a;
  --text-2:       #5a5a5a;
  --text-3:       #8a8a8a;
  --bg:           #ffffff;
  --bg-2:         #f7f7f7;
  --border:       #e5e5e5;
  --max-w-landing: 960px;
  --max-w-prose:   680px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent:      #5B9AF0;
    --accent-teal: #3DD6B4;
    --text:        #f0f0f0;
    --text-2:      #a0a0a0;
    --text-3:      #666666;
    --bg:          #111111;
    --bg-2:        #1a1a1a;
    --border:      #2a2a2a;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ───────────────────────────────────────────── */

.site-nav {
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.site-nav__inner {
  max-width: var(--max-w-landing);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__brand {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.site-nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.site-nav__links a {
  font-size: 14px;
  color: var(--text-2);
  text-decoration: none;
  padding-bottom: 2px;
}

.site-nav__links a:hover {
  color: var(--text);
}

.site-nav__links a[aria-current="page"] {
  color: var(--text);
  font-weight: 500;
  border-bottom: 2px solid var(--text);
}

/* ── Layout ───────────────────────────────────────────────── */

main {
  flex: 1;
}

.container {
  max-width: var(--max-w-landing);
  margin: 0 auto;
  padding: 0 24px;
}

.container--prose {
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Landing hero ─────────────────────────────────────────── */

.hero {
  padding: 80px 24px 64px;
  max-width: var(--max-w-landing);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 640px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    padding: 96px 24px 80px;
    gap: 64px;
  }
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero__app-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  flex-shrink: 0;
}

.hero__app-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero__tagline {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero__subtitle {
  font-size: clamp(14px, 2.5vw, 17px);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 440px;
}

.hero__cta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  padding: 10px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
}

.coming-soon__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-teal);
  flex-shrink: 0;
}

.hero__cta-sub {
  font-size: 12px;
  color: var(--text-3);
}

.hero__image-wrap {
  display: flex;
  justify-content: center;
}

.hero__screenshot {
  width: auto;
  max-height: 560px;
  max-width: 100%;
  border-radius: 32px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.12);
}

@media (prefers-color-scheme: dark) {
  .hero__screenshot {
    box-shadow: 0 24px 64px rgba(0,0,0,0.48);
  }
}

/* ── Features ─────────────────────────────────────────────── */

.features {
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 640px) {
  .features__grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px 64px;
  }
}

@media (min-width: 900px) {
  .features__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.feature__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.feature__body {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Privacy callout ──────────────────────────────────────── */

.privacy-strip {
  padding: 48px 0;
  border-top: 1px solid var(--border);
}

.privacy-strip__inner {
  max-width: var(--max-w-landing);
  margin: 0 auto;
  padding: 0 24px;
}

.privacy-strip__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 640px) {
  .privacy-strip__row {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .privacy-strip__row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.privacy-item__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.privacy-item__desc {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ── Section heading ──────────────────────────────────────── */

.section-head {
  margin-bottom: 40px;
}

.section-head__eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-head__title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.25;
}

/* ── Prose pages (privacy, support) ──────────────────────── */

.prose-page {
  padding: 56px 0 80px;
}

.prose-page__header {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.prose-page__eyebrow {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
}

.prose-page__title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.2;
}

.prose-page__meta {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 8px;
}

/* Prose content typography */
.prose h2 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-top: 40px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.prose h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-top: 32px;
  margin-bottom: 8px;
}

.prose p {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 16px;
}

.prose ul {
  margin: 0 0 16px 0;
  padding-left: 24px;
}

.prose li {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 6px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

/* Support contact block */
.contact-block {
  padding: 24px;
  background: var(--bg-2);
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 40px;
}

.contact-block__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 12px;
}

.contact-block__row {
  font-size: 15px;
  color: var(--text);
  margin-bottom: 4px;
}

.contact-block__row a {
  color: var(--accent);
  text-decoration: none;
}

.contact-block__row a:hover {
  text-decoration: underline;
}

.contact-block__note {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 10px;
}

/* ── 404 ──────────────────────────────────────────────────── */

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px 24px;
  flex: 1;
}

.error-page__code {
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.error-page__title {
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.error-page__body {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 32px;
}

.btn-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  display: inline-block;
}

.btn-link:hover {
  background: var(--accent);
  color: #fff;
}

/* ── Footer ───────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.site-footer__inner {
  max-width: var(--max-w-landing);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .site-footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__copy {
  font-size: 13px;
  color: var(--text-3);
}

.site-footer__nav {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-footer__nav a {
  font-size: 13px;
  color: var(--text-3);
  text-decoration: none;
}

.site-footer__nav a:hover {
  color: var(--text-2);
}
