:root {
  color-scheme: light;
  --ink: #14202b;
  --muted: #485766;
  --navy: #101921;
  --accent: #ff733f;
  --paper: #f5f7fa;
  --line: #dce3ea;
  --annotation: #c91e2b;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .22em; }
a:focus-visible, button:focus-visible { outline: 3px solid #be3016; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 1rem; }
.container { width: min(100% - 2.5rem, 72rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1; top: .75rem; left: .75rem; padding: .75rem; background: white; clip-path: inset(50%); }
.skip-link:focus { clip-path: none; }

.site-header { background: var(--navy); color: white; border-bottom: 1px solid #ffffff24; }
.header-content, .footer-content { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header-content { min-height: 4.2rem; }
.brand { display: inline-flex; align-items: center; gap: .68rem; font-weight: 760; font-size: 1.125rem; text-decoration: none; }
.brand img { border-radius: .55rem; }
nav { display: flex; flex-wrap: wrap; column-gap: 1.25rem; row-gap: .5rem; font-size: .94rem; }
.site-header nav a { color: #e9edf1; }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--accent); }

.hero { overflow: hidden; color: white; background: radial-gradient(ellipse at 78% 70%, #394551, transparent 52%), var(--navy); }
.hero-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, .77fr); gap: 2.5rem; align-items: center; padding-block: 3rem 2.6rem; }
.hero h1 { font-size: clamp(2.85rem, 6.4vw, 5.65rem); line-height: .97; letter-spacing: -.065em; font-weight: 780; }
.hero-text p { max-width: 28rem; margin-block: 1.25rem 1.6rem; color: #d2dce4; font-size: clamp(1rem, 2vw, 1.2rem); line-height: 1.55; }
.hero-actions { display: grid; gap: .65rem; width: min(100%, 16rem); justify-self: center; }
.button-gallery { gap: .55rem; background: #e8f1fa; border-color: #beccda; color: var(--navy); font-family: inherit; font-size: inherit; cursor: pointer; }
.button-gallery:hover { background: #d2e4f5; }
.button-gallery svg { flex: none; }

.button { display: inline-flex; min-height: 2.9rem; align-items: center; justify-content: center; padding: .68rem .98rem; border: 1px solid transparent; border-radius: .65rem; font-weight: 720; line-height: 1.25; text-align: center; text-decoration: none; }
.button-accent { background: var(--accent); color: #1c140f; }
.button-accent:hover { background: #ff946e; }
.button-primary { background: var(--navy); color: white; }
.button-primary:hover { background: #33485b; }
.button-outline { background: white; border-color: #aab7c2; }
.button-outline:hover { background: #f5f7fa; }

.instructions { padding-block: 3.25rem 1.6rem; }
h2 { font-size: clamp(1.85rem, 4vw, 2.65rem); letter-spacing: -.045em; line-height: 1.06; }
.test-note, .account-note { margin-top: .65rem; color: var(--muted); line-height: 1.5; }
.account-note strong { color: var(--ink); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; list-style: none; margin: 1.65rem 0 0; padding: 0; counter-reset: install-trinn; }
.step { counter-increment: install-trinn; display: grid; grid-template-rows: auto auto 1fr auto auto; align-content: start; gap: .7rem; min-width: 0; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.step::before { content: counter(install-trinn); width: 2.15rem; height: 2.15rem; display: grid; place-items: center; border-radius: 50%; background: #ffe4d9; color: #74230e; font-weight: 800; }
.step h3 { font-size: 1.21rem; letter-spacing: -.025em; }
.step p, .help-panel p { color: var(--muted); line-height: 1.52; }
.step strong { color: var(--ink); }
.illustration { grid-row: 5; display: grid; align-items: center; min-height: 9.3rem; padding: .38rem; overflow: hidden; border: 1px solid var(--line); border-radius: .65rem; background: #edf1f5; }
.screenshot-link { position: relative; color: inherit; text-decoration: none; cursor: zoom-in; }
.screenshot-link:hover { border-color: #8495a6; }
.expand-icon { position: absolute; display: grid; place-items: center; inset: auto .65rem .65rem auto; width: 2rem; height: 2rem; border: 1px solid #aab7c2; border-radius: .4rem; background: white; color: var(--ink); box-shadow: 0 1px 4px #10192140; pointer-events: none; }
.screenshot-link:hover .expand-icon { background: #e3edf5; }
.shot { display: block; position: relative; aspect-ratio: var(--ratio); overflow: hidden; border-radius: .4rem; background: white; }
.shot img { position: absolute; inset: var(--crop) 0 auto; width: 100%; height: auto; }
.screenshot-dialog { width: min(calc(100% - 1rem), 47rem); max-height: calc(100% - 1rem); padding: .65rem; border: 1px solid var(--line); border-radius: .85rem; background: var(--paper); color: var(--ink); }
.screenshot-dialog::backdrop { background: #101921d9; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .65rem; padding: .2rem .2rem .65rem; }
.dialog-header h2 { font-size: clamp(1rem, 4vw, 1.25rem); letter-spacing: -.02em; }
.close-dialog { min-height: 2.75rem; padding-inline: .85rem; border: 1px solid #aab7c2; border-radius: .5rem; background: white; color: inherit; font: inherit; cursor: pointer; }
.shot-group { --ratio: 1344 / 340; --crop: -104.41%; --top: 36.8%; --left: 3%; --width: 27.4%; --height: 31%; --arrow-x: 32%; --arrow-y: 53%; }
.shot-tester { --ratio: 575 / 150; --crop: -504%; --top: 37.5%; --left: 6.15%; --width: 35.8%; --height: 43%; --arrow-x: 44%; --arrow-y: 60%; }
.shot-download { --ratio: 575 / 240; --crop: -164.58%; --top: 77%; --left: 20.5%; --width: 44%; --height: 12%; --arrow-x: 67%; --arrow-y: 83%; }
.focus-ring { position: absolute; top: var(--top); left: var(--left); width: var(--width); height: var(--height); border: 2px solid var(--annotation); border-radius: .28rem; }
.pointer { position: absolute; left: var(--arrow-x); top: var(--arrow-y); width: 15%; height: 3px; background: var(--annotation); transform: translateY(-50%); }
.pointer::before { content: ""; position: absolute; left: 0; top: 50%; width: .68rem; height: .68rem; border-left: 3px solid var(--annotation); border-bottom: 3px solid var(--annotation); transform: translateY(-50%) rotate(45deg); }

.shot-full {
  width: min(100%, calc((100dvh - 6rem) * var(--full-ratio)));
  height: auto;
  margin-inline: auto;
  aspect-ratio: auto;
}
.shot-full img { position: static; width: 100%; max-width: 100%; height: auto; }
.shot-full.shot-group { --full-ratio: .4492; --top: 16.05%; --height: 3.52%; --arrow-y: 17.89%; }
.shot-full.shot-tester { --full-ratio: .4492; --top: 63.46%; --height: 5.04%; --arrow-y: 66.09%; }
.shot-full.shot-download { --full-ratio: .4492; --top: 45.3%; --height: 2.25%; --arrow-y: 46.42%; }

.help-section { padding-bottom: 3.1rem; }
.help-panel { display: flex; align-items: center; justify-content: space-between; column-gap: 2rem; row-gap: 1rem; padding: clamp(1rem, 4vw, 1.6rem); border: 1px solid var(--line); border-radius: 1rem; background: #eaf0f5; }
.help-panel h2 { font-size: clamp(1.35rem, 3vw, 1.7rem); }
.help-panel p { margin-top: .45rem; max-width: 44rem; }
.help-panel .button { flex: none; }
.site-footer { padding-block: 1.45rem; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 52rem) {
  .steps { grid-template-columns: 1fr; }
  .step { grid-template-columns: minmax(0, 1fr) minmax(9rem, 43%); grid-template-rows: auto auto auto auto auto; align-items: start; }
  .step > :not(.illustration) { grid-column: 1; justify-self: start; }
  .step::before { grid-column: 1; }
  .illustration { grid-column: 2; grid-row: 1 / span 5; align-self: center; }
}

@media (max-width: 38rem) {
  .container { width: calc(100% - 2rem); }
  .hero-content { display: block; padding-block: 2.3rem 2rem; }
  .hero h1 { font-size: clamp(2.6rem, 10.7vw, 4rem); }
  .hero-text p { margin-block: 1rem 1.2rem; }
  .hero-actions { margin-top: 1.15rem; }
  .instructions { padding-top: 2.2rem; }
  .step { grid-template-columns: 1fr; grid-template-rows: auto auto auto auto; padding: 1rem; gap: .65rem; }
  .illustration { grid-column: 1; grid-row: auto; }
  .step .button { width: 100%; }
  .illustration { width: 100%; min-height: 0; }
  .help-panel, .footer-content { flex-direction: column; align-items: flex-start; }
  .help-section { padding-bottom: 2rem; }
}

.app-gallery { width: min(calc(100% - 1rem), 33rem); }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-slide { min-width: 0; display: grid; justify-items: center; gap: .55rem; scroll-snap-align: start; }
.gallery-slide img { width: auto; height: auto; max-height: calc(100dvh - 11rem); object-fit: contain; border-radius: .4rem; }
.gallery-slide figcaption { text-align: center; font-weight: 650; }
.gallery-controls { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: .45rem; }
.gallery-controls button { min-width: 2.75rem; min-height: 2.75rem; border: 1px solid #aab7c2; border-radius: .5rem; background: white; color: var(--ink); font-size: 1.15rem; cursor: pointer; }
.gallery-controls button:disabled { opacity: .4; cursor: default; }
.gallery-position { min-width: 4rem; text-align: center; font-variant-numeric: tabular-nums; }

.shot-full, .gallery-slide img { cursor: zoom-out; }
