/* Chartsure website – one stylesheet, no framework, no external requests.
   Colors mirror apps/mobile/src/theme.ts. Dark only, mobile first. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Inter_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Inter_600SemiBold.ttf") format("truetype");
}

:root {
  --background: #101218;
  --surface: #1a1d26;
  --surface2: #222630;
  --line: #2c313d;
  --text: #eceef2;
  --text2: #a8b0bc;
  --accent: #e0ae3e;
  --on-accent: #101218;
  --up: #34c7a1;
  --down: #f45c5c;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { background: var(--background); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--text);
  background: var(--background);
}

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--text); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: 8px; font-weight: 600;
}
.skip:focus { left: 16px; z-index: 10; }


header.site {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 680px; margin: 0 auto; padding: 16px;
}
header.site .brand { font-weight: 600; font-size: 20px; color: var(--text); text-decoration: none; white-space: nowrap; }
/* One line even on a 375 px screen with "Nutzungsbedingungen Impressum". */
header.site nav { display: flex; gap: 12px; white-space: nowrap; }
header.site nav a { font-size: 13px; color: var(--text2); text-decoration: none; }
header.site nav a:hover { color: var(--text); text-decoration: underline; }
@media (min-width: 420px) {
  header.site nav { gap: 16px; }
  header.site nav a { font-size: 15px; }
}

main { max-width: 680px; margin: 0 auto; padding: 8px 16px 48px; }

h1 { font-size: 30px; line-height: 1.2; margin: 24px 0 8px; font-weight: 600; }
h2 { font-size: 22px; line-height: 1.25; margin: 36px 0 8px; font-weight: 600; }
h3 { font-size: 17px; margin: 24px 0 4px; font-weight: 600; }
p, li { margin: 0 0 12px; }
ul, ol { padding-left: 22px; }
.tagline { font-size: 20px; font-weight: 600; color: var(--accent); margin: 0 0 12px; }
.lead { font-size: 19px; color: var(--text2); }
.meta { color: var(--text2); font-size: 15px; }
.muted { color: var(--text2); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}
.card.notice { border-color: var(--accent); }
.card h2, .card h3 { margin-top: 0; }

.steps { display: grid; gap: 12px; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 52px; position: relative; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 12px;
  width: 26px; height: 26px; border-radius: 13px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-align: center; line-height: 26px;
}

table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--text2); font-weight: 600; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

dl { margin: 0; }
dt { color: var(--text2); font-size: 15px; margin-top: 12px; }
dd { margin: 0 0 4px; }

.button {
  display: inline-block; padding: 12px 20px; border-radius: 12px;
  background: var(--accent); color: var(--on-accent); font-weight: 600; text-decoration: none;
}
.button:hover { color: var(--on-accent); opacity: 0.9; }

footer.site {
  max-width: 680px; margin: 0 auto; padding: 24px 16px 40px;
  border-top: 1px solid var(--line); color: var(--text2); font-size: 15px;
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
footer.site a { color: var(--text2); }
footer.site a:hover { color: var(--text); }

@media (min-width: 600px) {
  body { font-size: 18px; }
  h1 { font-size: 36px; }
}

/* ---- Start page (index.html): editorial rows, screenshots as the picture ---- */
header.site .brand { display: inline-flex; align-items: center; gap: 8px; }
header.site .mark { flex: none; }

main.home { max-width: 1120px; padding-bottom: 72px; }
main.home h1 { font-size: 38px; line-height: 1.1; letter-spacing: -0.01em; margin: 8px 0 16px; max-width: 14ch; }
main.home h2 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; max-width: 24ch; }
main.home h3 { font-size: 22px; line-height: 1.25; margin: 4px 0 10px; }
main.home p { max-width: 60ch; }
main.home .lead { font-size: 19px; color: var(--text); }
main.home .intro { color: var(--text2); margin: 0 0 28px; }

.eyebrow { color: var(--text2); font-size: 14px; letter-spacing: 0.02em; margin: 0; }
.kicker { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 4px; }

.chapter { padding: 56px 0 0; margin-top: 56px; border-top: 1px solid var(--line); }
.chapter.plain > * { max-width: 680px; }
.hero { padding-top: 24px; }

.row { display: grid; gap: 28px; align-items: start; }
.chapter .row + .row { margin-top: 48px; }
.row .copy { min-width: 0; }
.stack { display: grid; gap: 24px; }

/* Phones: narrower screenshots, left-aligned, so the page stays short. */
.shot { margin: 0; max-width: 280px; }
body.home header.site, body.home footer.site { max-width: 1120px; }
.shot img {
  display: block; width: 100%; height: auto;
  border-radius: 24px; border: 1px solid var(--line); background: var(--surface);
}
.shot.card-shot img { border-radius: 16px; }
.shot figcaption { color: var(--text2); font-size: 14px; line-height: 1.4; margin: 10px 4px 0; }

.facts { display: grid; gap: 10px; margin: 12px 0 16px; max-width: 60ch; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--text); font-weight: 600; font-size: 16px; margin: 0; }
.facts dd { margin: 0; color: var(--text2); font-size: 16px; }

ul.bare { list-style: none; padding: 0; margin: 0 0 20px; }
ul.bare li { padding: 10px 0 10px 18px; border-top: 1px solid var(--line); position: relative; }
ul.bare li::before { content: ""; position: absolute; left: 0; top: 19px; width: 8px; height: 8px; border-radius: 4px; background: var(--accent); }
ul.bare li:last-child { border-bottom: 1px solid var(--line); }

@media (min-width: 900px) {
  .row { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
  .row.flip .copy { order: 2; }
  .row.flip .shot, .row.flip .stack { order: 1; }
  .row .shot { justify-self: end; max-width: 360px; }
  .row.flip .shot { justify-self: start; }
  .row.wide .shot { max-width: 400px; }
  .stack .shot { max-width: 360px; }
  .hero { padding-top: 48px; }
  main.home h1 { font-size: 52px; }
  main.home h2 { font-size: 34px; }
  .chapter { padding-top: 72px; margin-top: 72px; }
  .chapter .row + .row { margin-top: 72px; }
  .stack { justify-self: end; max-width: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
