:root {
  color-scheme: light;
  --ink: #12202f;
  --muted: #64758b;
  --text: #2f3b46;
  --line-soft: #e4ecf5;
  --accent-soft: #e5eaeb;
  --accent-line: #cfd6dc;
  --page: min(1050px, 94vw); /* same width as the tools front page */
  --content: 900px;          /* screenshot and the grid below share this width */
  font-family: "Avenir Next", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
}

a { color: inherit; text-decoration: none; }

/* small "yours" logo, lined up with the page, no line */
.topbar {
  display: flex;
  align-items: center;
  width: var(--page);
  margin: 0 auto;
  padding: 16px 0 10px;
}

.brand { display: inline-flex; align-items: center; }
.brand-logo { display: block; width: 78px; height: auto; }

.tt-page {
  width: var(--page);
  margin: 0 auto;
  padding: 24px 0 80px;
}

/* top: the guarantee as headline, then the screenshot */
.tt-hero {
  text-align: center;
}

.tt-hero h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
}

.tt-lead {
  max-width: 640px;
  margin: 10px auto 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.55;
}

.tt-shot {
  max-width: var(--content);
  margin: 32px auto 0;
}

.tt-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(18, 32, 47, 0.10);
}

/* what it is, right under the picture */
.tt-story {
  max-width: 640px;
  margin: 32px auto 0;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* one grid for everything below: three equal columns, all left-aligned, no dividing lines */
.tt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 32px;
  row-gap: 48px;
  max-width: var(--content);
  margin: 56px auto 0;
}

.tt-grid section,
.tt-grid figure {
  margin: 0;
}

.tt-grid h2 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  font-weight: 700;
}

.tt-grid h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 700;
}

.tt-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.5;
}


.download-button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid var(--accent-line);
  border-radius: 12px;
  background: var(--accent-soft);
  color: #102033;
  font-weight: 600;
  font-size: 0.92rem;
}

.download-button:hover { background: #dde3e5; }
.download-button:focus-visible { outline: 2px solid #9fb3c9; outline-offset: 2px; }

/* download in the centre, first start right under it */
.tt-download {
  max-width: 560px;
  margin: 88px auto 0;
  text-align: center;
}

.tt-small {
  margin: 10px 0 0;
  line-height: 1.5;
  color: var(--muted);
  font-size: 0.82rem;
}

.tt-first {
  margin-top: 56px;
}

.tt-first h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
}

.tt-first p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.tt-licence {
  margin-top: 48px;
}

/* Under the download button: air below the button, the two "tested" lines as a pair,
   the "Not supported" note as its own small block, one step smaller. */
.tt-req {
  margin-top: 20px;
}
.tt-tested {
  margin-top: 16px;
}
.tt-test-own {
  margin-top: 2px;
}
.tt-note {
  margin-top: 16px;
  font-size: 0.74rem;
}

@media (max-width: 760px) {
  .tt-hero h1 { font-size: 1.55rem; }
  .tt-lead { font-size: 1rem; }
  .tt-story { font-size: 1rem; margin-top: 24px; }
  .tt-grid { grid-template-columns: 1fr; row-gap: 28px; margin-top: 40px; }
  .tt-download { margin-top: 64px; }
  .tt-first { margin-top: 40px; }
  .tt-licence { margin-top: 36px; }
}

/* The header with the logo (the way back to the tools) stays at the top while scrolling.
   White behind it across the whole window; a faint line under it once the page is scrolled. */
html, body { overflow-x: clip; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  box-shadow: 0 0 0 100vmax #ffffff;
  clip-path: inset(0 -100vmax);
}
.topbar::after {
  content: "";
  position: absolute;
  left: -100vmax;
  right: -100vmax;
  bottom: 0;
  height: 1px;
  background: var(--line-soft);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.topbar.is-scrolled::after { opacity: 1; }
