/*
  The unittuneup.com landing page. Plain CSS, no framework, no JavaScript,
  mobile first. Same type size, tap targets and accent as the app
  (apps/web/src/styles.css, manifest theme colour #0a5c36), since the
  people reading this page are the ones the app is built for: large text,
  nothing under 44px to tap.
*/

:root {
  --accent: #0a5c36;
  --accent-dark: #084a2b;
  --accent-soft: #eaf5ef;
  --ink: #1a1a1a;
  --ink-muted: #555555;
  --hairline: #dddddd;
  --paper: #fafafa;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

a {
  color: var(--accent);
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.site-header,
main,
.site-footer {
  max-width: 640px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

.site-header {
  padding-top: 16px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}

main {
  padding-bottom: 16px;
}

section {
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
}

section.hero {
  padding-top: 16px;
  border-top: 0;
}

h1 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 8px 0 16px;
}

h2 {
  font-size: 24px;
  line-height: 1.25;
  margin: 0 0 12px;
}

h3 {
  font-size: 19px;
  margin: 24px 0 4px;
}

h3 + p {
  margin-top: 0;
}

p {
  margin: 0 0 16px;
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: 20px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin: 24px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  padding: 10px 24px;
  font-size: 18px;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #ffffff;
  text-decoration: none;
}

.button:hover,
.button:active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  counter-increment: step;
  padding-left: 48px;
  margin: 0 0 16px;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 17px;
}

.today ul {
  margin: 0;
  padding-left: 22px;
}

.today li {
  margin-bottom: 10px;
}

.today li:last-child {
  margin-bottom: 0;
}

.notice {
  margin: 28px 0;
  padding: 20px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}

.notice h2 {
  margin-top: 0;
}

.disclaimer {
  font-weight: 600;
}

.site-footer {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--hairline);
  font-size: 15px;
  color: var(--ink-muted);
}

.site-footer a {
  color: inherit;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 640px) {
  body {
    font-size: 19px;
  }

  h1 {
    font-size: 44px;
  }

  .lead {
    font-size: 21px;
  }

  section {
    padding: 36px 0;
  }
}
