/* Icon Alive: bright and friendly, in the icon's blue with its coral heart. The showcase is the point of the
   page: each app's still icon on a dull grey stage beside its animation on a bright one. */
:root {
  --bg: #f5f7fc;
  --surface: #ffffff;
  --ink: #131a2b;
  --muted: #56607a;
  --line: #dfe5f0;
  --blue: #1f7bf2;
  --blue-deep: #0a5ed6;
  --blue-soft: #e6f0ff;
  --coral: #ff6b81;
  --coral-deep: #e8465f;
  --still: #e9ecf2;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 18px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-deep); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }

.wrap { max-width: 1120px; margin-inline: auto; padding-inline: 20px; }
@media (max-width: 600px) { .wrap { padding-inline: 16px; } }

/* An animated picture's <picture> (prefers-reduced-motion gets the PNG) stays out of the layout, and so does its
   <source>, or it becomes a flex item of its own (the browser still reads it). */
picture.anim { display: contents; }
picture.anim source { display: none; }

.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 700 0.85rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-deep); }
.sticker { display: inline-block; padding: 5px 11px; border-radius: 999px; background: var(--coral); color: #fff; letter-spacing: 0.08em; transform: rotate(-3deg); box-shadow: 0 6px 16px -6px rgb(232 70 95 / 0.6); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 12px;
  background: var(--blue); color: #fff; font: 700 1rem/1 var(--body); text-decoration: none; border: 2px solid var(--blue);
  transition: transform .15s, background-color .15s, box-shadow .15s; box-shadow: 0 10px 22px -12px rgb(10 94 214 / 0.8); }
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); transform: translateY(-2px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--coral-deep); box-shadow: none; }
.btn.ghost:hover { background: rgba(255, 107, 129, .1); border-color: var(--coral-deep); color: var(--coral-deep); }
.btn.small { padding: 9px 15px; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Microsoft's own "Download from the Microsoft Store" badge (img/ms-store-badge.svg), as they supply it: never redrawn or
   recolored, only scaled to the height of the .btn beside it (16px + 2 x 13px padding + 2 x 2px border). */
.store-badge { display: block; flex: none; align-self: center; transition: transform .15s; }
.store-badge:hover, .store-badge:focus-visible { transform: translateY(-2px); }
.store-badge img { display: block; height: 46px; width: auto; }
@media (prefers-reduced-motion: reduce) { .store-badge { transition: none; } .store-badge:hover { transform: none; } }

/* Made in the USA as on the rest of the company site (/css/site.css): the full flag, the same size and type */
.usa { display: inline-flex; align-items: center; gap: 10px; font: 600 0.85rem/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.usa .flag { width: 38px; height: 20px; border-radius: 2px; filter: none; }
.flag { width: 21px; height: 11px; border-radius: 1px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12); flex: none; }
.made-in { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Top bar ---------- */
.bar { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / 0.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.25rem/1 var(--display); }
.brand img { width: 36px; height: 36px; }
.bar nav { display: flex; gap: 22px; margin-left: auto; }
.bar nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.bar nav a:hover { color: var(--ink); }
@media (max-width: 900px) { .bar nav { display: none; } .bar .btn { margin-left: auto; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: 72px 80px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto 40%; height: 140%; z-index: -1;
  background: radial-gradient(closest-side, rgb(31 123 242 / 0.18), transparent 70%), radial-gradient(closest-side at 70% 70%, rgb(255 107 129 / 0.16), transparent 70%); }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.hero-text { display: grid; gap: 22px; justify-items: start; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
.hero h1 em { font-style: normal; color: var(--blue); background: linear-gradient(90deg, var(--blue), var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.25rem; color: var(--muted); max-width: 34ch; }
.hero-link { margin: 0; font-weight: 600; }
.hero-note { margin: 0; color: var(--muted); font-size: 0.95rem; }
.hero-icon { justify-self: center; position: relative; display: flex; align-items: center; gap: 14px; }
.hero-icon figure { margin: 0; display: grid; justify-items: center; gap: 10px; }
.hero-icon figcaption { font: 700 0.7rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.hero-icon .after figcaption { color: var(--coral-deep); }
.hero-icon .before { padding: 12px 12px 10px; border-radius: 20px; background: var(--still); }
.hero-icon .before img { width: 140px; height: 140px; filter: saturate(0.85); }
.hero-icon .after img { width: 230px; height: 230px; filter: drop-shadow(0 24px 40px rgb(10 94 214 / 0.35)); }
.hx-arrow { font: 800 1.6rem/1 var(--display); color: var(--coral); }
@media (max-width: 760px) {
  .hero { padding-block: 40px 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 28px; }
  .hero-icon { grid-row: 1; justify-self: start; gap: 8px; }
  .hero-icon .before { padding: 8px 8px 8px; border-radius: 14px; }
  .hero-icon .before img { width: 76px; height: 76px; }
  .hero-icon .after img { width: 120px; height: 120px; }
  .hx-arrow { font-size: 1.2rem; }
}

/* ---------- Sections ---------- */
section { padding-block: 72px; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; }

/* ---------- Before & after ---------- */
/* The trailer: the video at full width of the page, framed like the screenshot. */
.trailer { padding-top: 24px; }
.video { margin: 0; display: grid; gap: 12px; }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #0d1430;
  box-shadow: 0 30px 60px -30px rgb(19 26 43 / 0.55); }
.video figcaption { color: var(--muted); font-size: 0.95rem; text-align: center; }
.showcase { background: var(--surface); border-block: 1px solid var(--line); }
.pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pair { display: grid; gap: 14px; align-content: start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.pair h3 { font-size: 1.35rem; }
.pair h3 a { color: inherit; text-decoration: none; }
.pair h3 a:hover { color: var(--blue-deep); }
.pair > p { color: var(--muted); }
.stages { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.stages::before { content: "\2192"; grid-column: 2; grid-row: 1; font: 800 1.6rem/1 var(--display); color: var(--coral); }
.stages figure { margin: 0; position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 14px; padding: 28px 16% 12%; }
.stages .before { grid-column: 1; grid-row: 1; background: var(--still); }
.stages .before img { filter: saturate(0.85); }
.stages .after { grid-column: 3; grid-row: 1; background: radial-gradient(circle at 50% 45%, #ffffff, var(--blue-soft)); box-shadow: inset 0 0 0 2px rgb(31 123 242 / 0.18); }
.stages img { width: 100%; height: auto; }
.stages figcaption { position: absolute; top: 9px; left: 10px; font: 700 0.7rem/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stages .after figcaption { color: var(--coral-deep); }
@media (max-width: 860px) { .pairs { grid-template-columns: 1fr; } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.chips li { padding: 4px 10px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); font-size: 0.85rem; font-weight: 600; }

/* ---------- Features ---------- */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.feature h3 { font-size: 1.3rem; }
.feature p { color: var(--muted); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid { grid-template-columns: 1fr; } }
.effects { margin-top: 36px; display: grid; gap: 14px; }
.effects h3 { font-size: 1.3rem; }
.effect-group { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; }
.effect-group > span { font-weight: 700; color: var(--muted); padding-top: 3px; }
@media (max-width: 600px) { .effect-group { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- How it works ---------- */
.how { background: var(--surface); border-top: 1px solid var(--line); }
.steps { counter-reset: step; list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.steps li { counter-increment: step; position: relative; padding: 22px 22px 22px 70px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.steps li::before { content: counter(step); position: absolute; left: 20px; top: 20px; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--blue); color: #fff; font: 800 1.1rem/1 var(--display); }
.steps strong { color: var(--ink); display: block; font-size: 1.1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.shot { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgb(19 26 43 / 0.45); }

/* ---------- FAQ ---------- */
.qas { display: grid; gap: 10px; max-width: 820px; }
.qa { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.qa summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; position: relative; font: 700 1.15rem/1.3 var(--display); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 20px; top: 50%; translate: 0 -50%; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-deep); font: 800 1.3rem/1 var(--display); }
.qa[open] summary::after { content: "\2212"; background: var(--blue); color: #fff; }
.qa summary:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; border-radius: var(--radius); }
.qa p { padding: 0 22px 20px; color: var(--muted); }
.qa:hover { border-color: #c5d3ea; }

/* ---------- Coming soon ---------- */
.cta { text-align: center; background: linear-gradient(160deg, var(--blue) 0%, var(--blue-deep) 70%); color: #fff; }
.cta .wrap { display: grid; justify-items: center; gap: 18px; }
.cta .btn-row { justify-content: center; }
.cta .anim img { width: 120px; height: 120px; filter: drop-shadow(0 18px 30px rgb(0 0 0 / 0.3)); }
.cta h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.cta p { color: rgb(255 255 255 / 0.85); font-size: 1.1rem; }
.cta .btn { background: #fff; color: var(--blue-deep); border-color: #fff; }
.cta .btn:hover { background: var(--coral); color: #fff; border-color: var(--coral); }
.cta .usa { color: rgb(255 255 255 / 0.85); font-size: 0.85rem; }

footer { padding-block: 26px 36px; color: var(--muted); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer a { color: var(--muted); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* The legal pages (license/, privacy/; make-legal-pages.py): a title band, a sticky "On this page" list, one section per heading. */
.doc-hero { padding-block: 56px 8px; }
.doc-hero .wrap { display: block; }
.doc-hero h1 { margin-block: 14px 16px; }
.doc-hero .lede { max-width: 60ch; font-size: 1.15rem; }
.doc { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 64px; padding-block: 24px 88px; }
.doc-toc { position: sticky; top: 88px; align-self: start; }
.doc-toc p { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 .8em; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.doc-toc a { display: block; padding: .32em 0 .32em 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .93rem; line-height: 1.4; }
.doc-toc a:hover { color: var(--ink); border-left-color: var(--blue); }
.doc-body { max-width: 720px; min-width: 0; }
.doc-body > section { padding-block: 44px 0; scroll-margin-top: 80px; }
.doc-body > section:first-child { padding-top: 0; }
.doc-body > section + section { border-top: 1px solid var(--line); margin-top: 48px; }
.doc-body h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .6em; }
.doc-body p { margin: 0 0 1em; }
.doc-body ul { padding-left: 1.2em; }
.doc-body li { margin-bottom: .4em; }
@media (max-width: 900px) {
  .doc { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
  .doc-toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 28px; }
}

/* The download page (download/): requirements, installing, checking the download (signed, SHA-256) and
   previous versions in a picker. Every Download link on the site goes there; only its own button downloads. */
.bar nav a[aria-current="page"] { color: var(--blue-deep); }
.doc-hero .btn-row { margin-top: 24px; }
.muted { color: var(--muted); }
.fine { font-size: .9rem; color: var(--muted); margin-top: 1em; }
.dl { padding-block: 8px 88px; }
.dl > section { max-width: 820px; padding-block: 36px 0; }
.dl > section + section { border-top: 1px solid var(--line); margin-top: 44px; }
.dl h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 18px; }
.dl > section > p + p { margin-top: 1em; }
.dl .steps { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
.dl .steps strong ~ strong { display: inline; font-size: inherit; }
.dl code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .85rem; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: .1em .5em; word-break: break-all; }
.dl-table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.dl-table th, .dl-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dl-table th { width: 30%; color: var(--blue-deep); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dl-table td { color: var(--muted); }
.dl-hashes { margin-top: 1em; }
.dl-hashes th { width: 22%; }
.dl-how { margin-top: 1em; }
.dl-how summary { cursor: pointer; color: var(--blue-deep); font-weight: 600; margin-bottom: 12px; }
.dl-how ol { padding-left: 22px; color: var(--muted); }
.dl-how li { margin-bottom: .6em; }
.dl-how p { color: var(--muted); }
.dl-how pre { margin: 8px 0 0; white-space: pre-wrap; }
.dl-how pre code { display: block; padding: 10px 12px; }
.dl-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 10px; }
.dl-pick label { color: var(--blue-deep); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.dl-pick select { min-width: 240px; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); font: 500 .95rem var(--body); cursor: pointer; }
.dl-pick select:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }
.dl-pick-hash { color: var(--muted); font-size: .9rem; }
.dl-pick-hash code { margin-left: 6px; }
.dl [hidden] { display: none; }
.dl-close { padding-top: 40px; }
@media (max-width: 640px) {
  .dl-table th, .dl-table td { display: block; width: auto; padding: 6px 0; border-bottom: 0; }
  .dl-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}

/* The help guide (guide/; make-legal-pages.py from guide-content.html): the legal pages' layout with pictures of the
   app, settings tables and an FAQ in its reading column. */
.doc-toc ol ol { border-left: 0; margin: 0 0 .3em 14px; }
.doc-toc ol ol a { font-size: .86rem; padding-block: .2em; }
.guide .doc-body section section { padding-top: 28px; scroll-margin-top: 80px; }
.guide .doc-body h3 { font-size: 1.3rem; margin-bottom: .6em; }
.guide .doc-body ol { padding-left: 1.3em; }
.guide .doc-body ol li { margin-bottom: .6em; }
.guide figure { margin: 8px 0 24px; }
.guide figure img { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 32px -24px rgb(19 26 43 / 0.5); }
.guide figure.narrow img { max-width: 384px; }
.guide figcaption { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.guide code { font-family: Consolas, "Cascadia Mono", monospace; font-size: .85rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: 6px; padding: .1em .45em; word-break: break-word; }
.guide kbd { font-family: var(--body); font-size: .82rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line);
  border-bottom-width: 2px; border-radius: 6px; padding: .05em .45em; white-space: nowrap; }
.set-table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.set-table th, .set-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.set-table thead th { color: var(--blue-deep); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.set-table tbody th { font-weight: 600; width: 28%; }
.set-table td { color: var(--muted); }
.set-table b { color: var(--ink); }
.set-table tr.group th { padding-top: 22px; color: var(--blue-deep); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.faq details { margin: 0 0 10px; padding: 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; }
.faq details[open] summary { color: var(--blue-deep); }
.faq details > p, .faq details > ul { color: var(--muted); margin-bottom: 16px; }
.cta .cta-guide { margin-top: 18px; font-size: .95rem; }
.cta .cta-guide a { color: #fff; }
@media (max-width: 640px) {
  .set-table thead { display: none; }
  .set-table th, .set-table td { display: block; width: auto; padding: 4px 0; border-bottom: 0; }
  .set-table tr { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); }
}
