/* TrussCalc site: one small stylesheet, system fonts only, light and dark. */
:root {
  --bg: #ffffff;
  --surface: #f4f6f9;
  --text: #1b1f24;
  --muted: #59636e;
  --line: #d8dee4;
  --accent: #0a5cc2;
  --note-bg: #fff6e0;
  --note-line: #e3b341;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111418;
    --surface: #1b2027;
    --text: #e6e9ed;
    --muted: #9aa4af;
    --line: #2f363e;
    --accent: #6cb0ff;
    --note-bg: #2a2412;
    --note-line: #9e7a1f;
  }
}

* { 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, Arial, sans-serif;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  border-bottom: 1px solid var(--line);
}

header.site .page {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 14px;
}

header.site a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
}

header.site img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

main.page { padding-top: 28px; padding-bottom: 40px; }

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 0 0 16px;
}

h2 {
  font-size: 1.25rem;
  margin: 36px 0 10px;
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

p, ul { margin: 0 0 14px; }

ul { padding-left: 1.3em; }

li { margin-bottom: 6px; }

a { color: var(--accent); overflow-wrap: anywhere; }

.lead {
  font-size: 1.1rem;
  color: var(--muted);
}

/* Apple's badge, unchanged: at least 40 px high on screen, clear space of a
   quarter of its height on every side (12 px at 48 px). */
.store {
  margin: 8px 0 24px;
}

.store .badge {
  display: inline-block;
  padding: 12px;
  margin: -12px;
  line-height: 0;
}

.store .badge img {
  display: block;
  width: 144px;
  height: 48px;
}

.store p {
  margin: 20px 0 0;
  font-size: 0.95rem;
}

.note {
  margin: 24px 0;
  padding: 14px 16px;
  border-left: 4px solid var(--note-line);
  border-radius: 6px;
  background: var(--note-bg);
}

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

dl.faq dt {
  font-weight: 600;
  margin-top: 16px;
}

dl.faq dd {
  margin: 4px 0 0;
}

/* The imprint stays plain, full-size, selectable text (§ 5 DDG). */
.imprint {
  margin-top: 44px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.imprint address {
  font-style: normal;
  margin-bottom: 14px;
}

.updated { color: var(--muted); }

footer.site {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

footer.site .page {
  padding-top: 18px;
  padding-bottom: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

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

/* German landing pages (de/): pictures of the app and of sample reports. */
header.site .lang {
  margin-left: auto;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--accent);
}

img { max-width: 100%; height: auto; }

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0 24px;
}

.shots.single { grid-template-columns: minmax(0, 22rem); justify-content: center; }

.shots img, .pages img {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.pages img { border-radius: 4px; background: #ffffff; }

.pages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  gap: 16px;
  margin: 16px 0 24px;
}

figure { margin: 0; }

/* The App Store preview video: portrait, no autoplay, loaded only when played. */
.video {
  max-width: 18rem;
  margin: 20px auto 24px;
}

.video video {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.video figcaption { text-align: center; }

figcaption {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

ol { margin: 0 0 14px; padding-left: 1.5em; }

footer.site nav a { white-space: nowrap; }
