:root {
  --brand: #1677c9;
  --brand-strong: #0f5c9e;
  --brand-soft: #e2f1fc;
  --text: #16181d;
  --muted: #5d6470;
  --bg: #ffffff;
  --tint: #f4f6fa;
  --line: #e2e6ee;
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(20, 30, 60, .16);
  --radius: 14px;
  --wrap: 1120px;
  --gutter: 24px;
  --topbar: 60px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--topbar); }
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 22px; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.shot { border-radius: var(--radius); box-shadow: var(--shadow); }
section { padding: 72px 0; }
.tint { background: var(--tint); }
.intro { max-width: 860px; margin: 0 auto 40px; text-align: center; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--brand); color: #fff;
  font-weight: 600; text-decoration: none; font-size: 16px; transition: background .2s;
}
.btn:hover { background: var(--brand-strong); }
.btn-tonal { background: var(--brand-soft); color: var(--brand-strong); }
.btn-tonal:hover { background: #cfe6f8; }
.btn-text { background: none; color: var(--brand); }
.btn-text:hover { background: var(--tint); }
.btn-small { padding: 7px 16px; font-size: 15px; }

.topbar {
  position: fixed; inset: 0 0 auto; z-index: 10; height: var(--topbar); padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(255, 255, 255, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 32px; height: 32px; }
.topbar nav { display: flex; align-items: center; gap: 22px; }
.topbar nav a:not(.btn) { color: var(--text); text-decoration: none; font-size: 15px; }
.topbar nav a:not(.btn):hover { color: var(--brand); }

.hero { padding: calc(var(--topbar) + 56px) 0 72px; text-align: center; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 680px; margin: 0 auto 24px; }
.hero .shot { margin: 40px auto 0; }

/* The steps: a numbered line, text on the left and image on the right */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; counter-reset: step; }
.step {
  position: relative; display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start;
  padding: 0 0 48px 64px; counter-increment: step;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--brand); color: #fff; font-weight: 700; font-size: 18px;
}
.step:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 52px; bottom: 8px; width: 2px; background: var(--line); }
.step h3 { font-size: 20px; margin-top: 8px; }
.step p { margin: 0; }
.step .shot { width: 100%; height: 210px; object-fit: cover; object-position: top; border-radius: 10px; }
.shot-button { display: block; width: 100%; padding: 0; border: 0; background: none; border-radius: var(--radius); cursor: zoom-in; }
.shot-button:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px 72px; border: 0;
  background: rgba(8, 12, 20, .94); color: #fff; overflow: hidden;
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(8, 12, 20, .94); }
.lightbox figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; height: 100%; min-width: 0; }
.lightbox img { flex: 1 1 auto; min-height: 0; width: auto; max-width: 100%; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { flex: none; max-width: 640px; text-align: center; }
.lightbox figcaption h3 { margin: 0 0 4px; font-size: 20px; }
.lightbox figcaption p { margin: 0 0 4px; color: #c9d0dc; font-size: 16px; }
.lightbox figcaption a { color: #7cc4f5; }
.lightbox figcaption span { color: #8d96a6; }
.lightbox button { border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; border-radius: 999px; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 30px; line-height: 1; }
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 40px; height: 40px; font-size: 16px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h3 { font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.video { text-decoration: none; color: var(--text); font-weight: 600; font-size: 16px; line-height: 1.3; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; margin-bottom: 10px; }
.video:hover { color: var(--brand); }
.thumb { position: relative; display: block; }
/* A red play button in the middle of the thumbnail */
.thumb::after {
  content: ""; position: absolute; left: 50%; top: calc(50% - 5px); width: 68px; height: 48px; transform: translate(-50%, -50%);
  border-radius: 12px; background: #e02020 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 48'%3E%3Cpath fill='%23fff' d='M27 15l18 9-18 9z'/%3E%3C/svg%3E") center / contain no-repeat;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .4); transition: transform .15s;
}
.video:hover .thumb::after { transform: translate(-50%, -50%) scale(1.1); }


.os { width: 1em; height: 1em; fill: currentColor; }
.download-lead { font-size: 19px; color: var(--muted); max-width: 720px; }
.downloads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 20px; }
.dl {
  display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: var(--radius);
  background: var(--card); border: 2px solid var(--line); color: var(--text); text-decoration: none; transition: border-color .2s, transform .2s;
}
.dl .os { width: 28px; height: 28px; margin-bottom: 6px; color: var(--text); }
.dl span { color: var(--muted); font-size: 14px; }
.dl:hover { border-color: var(--brand); transform: translateY(-2px); }
.dl.mine { border-color: var(--brand); background: var(--brand-soft); }
@media (max-width: 760px) { .downloads { grid-template-columns: 1fr; } }
.feedback-lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.feedback-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.promo {
  display: flex; align-items: center; gap: 24px; max-width: 820px; margin: 0 auto; padding: 24px 28px;
  background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.promo:hover { border-color: var(--brand); transform: translateY(-2px); }
.promo img { width: 88px; height: 88px; flex: none; border-radius: 20px; }
.promo b { display: block; font-size: 20px; margin-bottom: 4px; }
.promo span span { color: var(--muted); font-size: 16px; }
.promo-arrow { margin-left: auto; font-size: 28px; color: var(--brand); flex: none; }
@media (max-width: 600px) { .promo { flex-direction: column; text-align: center; } .promo-arrow { display: none; } }

button.link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-size: 15px; text-decoration: underline; cursor: pointer; }

/* First-start help */
.help { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 28px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.help::backdrop { background: rgba(15, 20, 35, .55); }
.help-title { font-size: 24px; padding-right: 32px; }
.help-close { position: absolute; top: 14px; right: 14px; margin: 0; }
.help-close button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--tint); cursor: pointer; font-size: 16px; color: var(--text); }
.tabs { display: flex; gap: 6px; background: var(--tint); padding: 4px; border-radius: 999px; margin: 16px 0; }
.tabs button { flex: 1; padding: 8px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .12); }
.tab ol { padding-left: 22px; margin: 0 0 12px; }
.tab li { margin-bottom: 8px; }
.help .small { margin-bottom: 8px; }

footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 32px; flex-wrap: wrap; }
.footer-row > a { white-space: nowrap; }
footer p { margin: 0 0 6px; }

@media (max-width: 800px) {
  section { padding: 52px 0; }
  .step { grid-template-columns: 1fr; gap: 16px; padding-left: 60px; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .grid { grid-template-columns: 1fr; }
  .brand span, .hide-small { display: none; }
  .topbar nav { gap: 14px; }
  .lightbox { padding: 60px 8px 76px; }
  .lightbox-nav { top: auto; bottom: 14px; transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}
