/* tdmedia-apps.com. Colours are the From Zero app's (app/lib/theme.dart); fonts are self-hosted.
   No external requests, no JavaScript, no inline styles: the CSP allows only this file. */
@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f1eade;
  --card: #fffdf9;
  --ink: #2b2521;
  --muted: #6f665d;
  --rule: #e2d9ca;
  --gold: #c08a2e;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #17140f;
    --card: #211c16;
    --ink: #ede5d6;
    --muted: #a79c8c;
    --rule: #39322a;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
}
img { display: block; max-width: 100%; height: auto; }
a {
  color: inherit;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus {
  left: 16px; top: 16px; z-index: 10; padding: 8px 14px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
}

.site-header, main, .site-footer { width: min(100% - 32px, 760px); margin-inline: auto; }
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; border-bottom: 1px solid var(--rule);
}
.wordmark { font: 600 1.3rem/1 var(--serif); text-decoration: none; }
.lang { color: var(--muted); font-size: 0.9375rem; }
main { padding: 44px 0 72px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 7vw, 3.3rem); margin: 0 0 16px; }
h2 { font-size: 1.7rem; margin: 56px 0 16px; }
h3 { font-size: 1.25rem; margin: 0 0 6px; }
p { margin: 0 0 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.meta { color: var(--muted); font-size: 0.9375rem; }

/* Home: one card per app */
.app-card {
  display: flex; gap: 20px; align-items: flex-start; padding: 20px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 18px;
  text-decoration: none;
}
.app-card:hover { border-color: var(--gold); }
.app-card img { flex: none; width: 72px; height: 72px; border-radius: 16px; }
.app-name { display: block; margin-bottom: 4px; font: 500 1.4rem/1.2 var(--serif); }
.app-line { display: block; margin-bottom: 10px; color: var(--muted); }
.more { font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* App page */
.app-hero { display: grid; gap: 20px; }
.app-hero .icon { width: 96px; height: 96px; border-radius: 22px; }
.soon {
  display: inline-block; margin: 8px 0 12px; padding: 12px 20px;
  background: var(--card); border: 1px solid var(--rule); border-radius: 999px;
  font-weight: 600;
}
.facts-line { color: var(--muted); font-size: 0.9375rem; }
.shots {
  display: flex; gap: 16px; margin: 40px 0 0; padding: 4px 0 16px;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory;
}
.shots li { flex: none; scroll-snap-align: start; }
.shots img { width: 240px; border: 1px solid var(--rule); border-radius: 14px; }
.steps {
  display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: 0; padding: 0; list-style: none; counter-reset: step;
}
.steps li, .plan { padding: 20px; background: var(--card); border: 1px solid var(--rule); border-radius: 16px; }
.steps li { border-top: 3px solid var(--gold); }
.steps li::before {
  counter-increment: step; content: counter(step);
  display: block; margin-bottom: 8px; font: 600 1.6rem/1 var(--serif);
}
.steps p, .features p { margin: 0; color: var(--muted); }
.features { display: grid; gap: 28px 32px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plan ul { margin: 8px 0 12px; padding-left: 1.2em; }
.plan li { margin-bottom: 6px; }
.plan.premium { border-color: var(--gold); }
.cta { margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--rule); }

/* Legal pages */
.legal h2 { font-size: 1.4rem; margin-top: 40px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 10px; }
.imprint p { margin-bottom: 18px; }

.site-footer { padding: 24px 0 48px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9375rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-bottom: 10px; }
.site-footer p { margin: 0; }
