/* Mirrorscale site styles. Palette from the brand repo's logo/README.md. */
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/assets/fonts/source-sans-3-latin-wght-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}
/* Sized system fallback so the page does not shift while Source Sans 3 loads. */
@font-face {
  font-family: "Source Sans 3 Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 97%;
  ascent-override: 95%;
  descent-override: 28%;
}
:root {
  --plate: #D5DAE0;
  --blue: #4F6B8A;
  --blue-hover: #3F5873;
  --ink: #2F4258;
  --muted: #5B6873;
  --ground: #FFFFFF;
  --ground-alt: #F4F6F8;
  --rule: #E6EBF0;
  --link: #4F6B8A;
  --on-accent: #FFFFFF;
  --todo: #FFF1B8;
  --heading: "Manrope", system-ui, sans-serif;
  --text: "Source Sans 3", "Source Sans 3 Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 44rem;
  --wide: 66rem;
}
/* Mid blue is 3.3:1 on the dark ground, so links and outlines take a lighter tint there.
   The filled button keeps mid blue with white text. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E6EBF0;
    --muted: #9AA6B2;
    --ground: #10161D;
    --ground-alt: #161E27;
    --rule: #22313F;
    --link: #8FA8C4;
    --on-accent: #10161D;
    --todo: #4A3F12;
  }
}
* { box-sizing: border-box; }
html { font-size: 112.5%; }
body {
  margin: 0;
  font-family: var(--text);
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
}
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
main.wrap { padding-top: 2.5rem; padding-bottom: 4rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--blue); color: #fff; padding: .5rem 1rem; }
.skip:focus { left: 1rem; z-index: 10; }

h1, h2, h3 { font-family: var(--heading); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.6rem); max-width: 22ch; }
h2 { font-size: 1.55rem; margin-top: 2.5rem; }
h3 { font-size: 1.05rem; margin-top: 1.75rem; margin-bottom: .35em; }
p, ul, ol { margin: 0 0 1rem; max-width: var(--measure); }
li { margin-bottom: .4rem; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: .15em; transition: color .12s; }
a:hover { color: var(--ink); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--ground-alt); padding: .05em .3em; border-radius: 3px; overflow-wrap: anywhere; }
.lead { font-size: 1.15rem; line-height: 1.5; max-width: 34rem; }
.muted { color: var(--muted); }
mark.todo { background: var(--todo); color: inherit; padding: 0 .2em; border-radius: 2px; }

/* Header and footer */
.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 4.5rem; }
.brand img { display: block; height: 40px; width: auto; }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-nav a { font-family: var(--heading); font-weight: 500; text-decoration: none; color: var(--ink); padding: .25rem 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--blue); }
.site-nav a:hover { color: var(--link); }
.site-header .nav-cta { padding: .5rem .95rem; font-size: .92rem; }
@media (max-width: 44rem) {
  /* Phone: brand and the install button on the first row, the links under them. */
  .site-header .wrap { flex-wrap: wrap; gap: .35rem 1rem; padding-block: .65rem; min-height: 0; }
  .brand img { height: 28px; }
  .site-nav { order: 3; width: 100%; gap: 1.15rem; font-size: .92rem; }
  .site-header .nav-cta { margin-left: auto; padding: .45rem .8rem; font-size: .85rem; }
}
.site-footer { border-top: 1px solid var(--rule); margin-top: 2rem; padding: 2.25rem 0 2.5rem; font-size: .95rem; color: var(--muted); }
.foot-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.25rem; }
.foot-brand img { display: block; height: 26px; width: auto; }
.foot-brand p { margin: 0; }
.site-footer nav { display: flex; gap: .75rem 1.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }
.gpc-line { margin: 0; }

/* Buttons */
.button {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  padding: .7rem 1.2rem;
  border-radius: 6px;
  white-space: nowrap;
  transition: background .12s, color .12s, box-shadow .12s;
}
.button:hover { color: #fff; background: var(--blue-hover); }
.button.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--link); }
.button.secondary:hover { color: var(--on-accent); background: var(--link); }
.button:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.cta { display: flex; align-items: center; gap: .9rem 1.25rem; flex-wrap: wrap; margin: 1.5rem 0 1rem; }
.also { color: var(--muted); font-size: .95rem; }

/* Home: hero */
.hero { display: grid; gap: 2.5rem; align-items: center; padding: 1rem 0 1.5rem; }
@media (min-width: 52rem) { .hero { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; } }
.proof { display: flex; flex-wrap: wrap; gap: .3rem 1.5rem; color: var(--muted); font-size: .95rem; font-variant-numeric: tabular-nums; margin: 0; }
.proof span { white-space: nowrap; }
.proof strong { color: var(--ink); font-weight: 600; }

/* A real capture of the popup, on a quiet plate */
.capture { margin: 0; background: var(--ground-alt); border: 1px solid var(--rule); border-radius: 14px; padding: 1.5rem 1.5rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .75rem; max-width: 100%; }
.capture img { width: min(100%, 370px); height: auto; border-radius: 8px; border: 1px solid var(--rule); background: #fff; }
.capture figcaption { color: var(--muted); font-size: .88rem; text-align: center; max-width: 30rem; }

/* Home: who sees what. Full-bleed band so the page has rhythm between the rules. */
/* Full bleed from inside main.wrap: negative side margins out to the viewport edge. */
.band { background: var(--ground-alt); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 2.75rem 0 2.25rem; margin: 2rem calc(50% - 50vw) 0; }
html { overflow-x: clip; }
.band h2 { margin-top: 0; margin-bottom: 1.5rem; }
.three { display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 48rem) { .three { grid-template-columns: repeat(3, 1fr); } }
.three h3 { margin-top: 0; color: var(--ink); }
.three p { margin: 0; color: var(--muted); }

/* Home: product */
.product { display: grid; gap: 2.5rem; align-items: start; padding: 3.25rem 0; }
@media (min-width: 52rem) { .product { grid-template-columns: 1.15fr 1fr; gap: 3.5rem; } }
.product h2 { margin-top: 0; }
/* The product page opens with this section, so it takes no padding above. */
.product.top { padding-top: 0; }
.facts { list-style: none; padding: 0; margin: 0 0 .5rem; display: grid; gap: .6rem; }
.facts li { padding-left: 1.1rem; position: relative; margin: 0; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--blue); }
.facts strong { font-weight: 600; }
.more { font-family: var(--heading); font-weight: 500; }

/* Home: for companies */
.companies { border-top: 1px solid var(--rule); }
.two { display: grid; gap: 1.5rem 3rem; align-items: center; padding: 2.75rem 0; }
@media (min-width: 48rem) { .two { grid-template-columns: 1.4fr 1fr; } }
.two h2 { margin-top: 0; }
.two p:last-child { margin-bottom: 0; }
.companies-cta { display: flex; flex-direction: column; gap: .6rem; align-items: flex-start; }
.companies-cta p { font-size: .95rem; margin: 0; }

/* Screenshot frame: a placeholder until the real captures are chosen (product page) */
.shot {
  aspect-ratio: 4 / 3;
  border: 1px dashed var(--muted);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center;
  padding: 1rem;
  font-size: .95rem;
  background: var(--ground-alt);
}
.shot img { width: 100%; height: auto; border-radius: 8px; }

/* Guide */
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps > li { counter-increment: step; margin: 0 0 2rem; padding-left: 3rem; position: relative; }
.steps > li::before {
  content: counter(step);
  position: absolute; left: 0; top: .1rem;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--plate); color: #2F4258;
  font-family: var(--heading); font-weight: 700;
  display: grid; place-items: center;
}
.steps h2 { margin-top: 0; font-size: 1.3rem; }
.sticky-cta { position: sticky; bottom: 0; background: var(--ground); border-top: 1px solid var(--rule); padding: .75rem 0; margin-top: 2rem; }
.qa dt { font-weight: 600; margin-top: 1rem; }
.qa dd { margin: .25rem 0 0; max-width: var(--measure); }

/* Prose pages */
.prose { max-width: var(--measure); }
.prose .updated { color: var(--muted); font-size: .95rem; }
