: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; }

/* Aspect ratio: the online version first (any computer), right under the headline */
.tt-online {
  margin: 32px auto 0;
  text-align: center;
}
.tt-online + #concept-video { margin-top: 96px; }
@media (max-width: 760px) {
  .tt-online { margin-top: 24px; }
  .tt-online + #concept-video { margin-top: 64px; }
}
/* Both ways in at the top: online and the Mac app, side by side */
.tt-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* The explainer in the Yours video player: same rules as the guides on yours.ncne.cc
   (their inline guide styles), full page width, the video's own shape (1920×1116). */
#concept-video.guide-stage{width:100%;max-width:none;margin:128px auto 0;padding:0;text-align:left;--concept-video-height:auto}
#concept-video.guide-stage .product-stage{margin:0;width:100%}
#concept-video.guide-stage .custom-video-player{aspect-ratio:1920/1116;width:100%;height:auto}
#concept-video.guide-stage .custom-video-player::after{display:none!important}
#concept-video.guide-stage video::cue{color:transparent;background:transparent}
#concept-video.guide-stage .concept-navigation{padding-inline:0}
#concept-video.guide-stage .subtitle-selector select{text-align:right;text-align-last:right;field-sizing:content;padding-right:0;padding-left:0}
#concept-video.guide-stage .guide-subtitle{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:3;max-width:88%;width:max-content;box-sizing:border-box;padding:.06em 10px;border-radius:.3em;background:rgba(20,20,22,.72);color:#fff;font-size:clamp(14px,2vw,22px);line-height:1.35;text-align:center;white-space:pre-line;pointer-events:none;}
#concept-video.guide-stage .custom-video-player[data-controls-hidden="false"] .guide-subtitle{bottom:84px}
#concept-video.guide-stage .guide-subtitle{opacity:0;transition:bottom .25s ease,opacity .6s ease}
#concept-video.guide-stage .guide-subtitle.is-on{opacity:1}

/* Aspect ratio exception (2026-11-20): the explainer is wider than the text, up to 1400 px or
   92% of the window, centred on the page. */
#concept-video.guide-stage{width:min(1400px,92vw);margin-left:calc((100% - min(1400px,92vw)) / 2);margin-right:0}
/* A frame, so the white app doesn't melt into the white page. */
#concept-video.guide-stage .product-stage{border:1px solid #d9dee4;border-radius:14px;box-shadow:0 18px 48px rgba(18,32,47,.12);overflow:hidden}
/* The language choice centred under the video. */
#concept-video.guide-stage .concept-navigation{justify-content:center}

/* Subtitles on their own line under the video, in the page's text style; the line keeps its
   height when there is no subtitle, so nothing jumps. In fullscreen they go back into the
   player as the usual bubble (index.html moves the element). */
#concept-video.guide-stage .aspect-subtitle-line{min-height:2.4em;margin:20px auto 0;max-width:1000px;text-align:center;font-size:clamp(14px,1.6vw,22px);line-height:1.35}
#concept-video.guide-stage .aspect-subtitle-line .guide-subtitle{position:static;transform:none;display:inline-block;max-width:100%;width:auto;box-sizing:border-box;padding:.06em 10px;border-radius:.3em;background:rgba(20,20,22,.72);color:#fff;font-size:clamp(14px,1.6vw,22px);line-height:1.35;white-space:pre-line}
#concept-video.guide-stage .concept-navigation{padding-top:4px}

/* More air between the parts of the page (2026-11-20). */
.tt-page { padding: 56px 0 120px; }
.tt-lead { margin-top: 24px; }
.tt-online { margin-top: 56px; }
#concept-video.guide-stage + .tt-grid, .tt-hero + .tt-grid { margin-top: 160px; }
.tt-download { margin-top: 160px; }
@media (max-width: 760px) {
  .tt-page { padding: 36px 0 80px; }
  .tt-lead { margin-top: 16px; }
  .tt-online { margin-top: 36px; }
  #concept-video.guide-stage { margin-top: 84px; }
  #concept-video.guide-stage .aspect-subtitle-line{margin-top:12px;min-height:4.2em}
  .tt-hero + .tt-grid { margin-top: 104px; }
  .tt-download { margin-top: 104px; }
}
