:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #5b6b7c;
  --accent: #0b6e8f;
  --accent-2: #16324f;
  --chip: #e8eef3;
  --line: #dce5ed;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 10px 28px rgba(15, 35, 64, 0.08);
  --shadow-icon: 0 1px 2px rgba(15, 23, 42, 0.08), 0 6px 16px rgba(15, 35, 64, 0.1);
  --max: 1120px;
  --page-pad: clamp(16px, 4vw, 32px);
  --header-h: 56px;
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100dvh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-2);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(var(--max), calc(100% - 2 * var(--page-pad)));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 20%;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.brand span {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 12px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-header {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 8px 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.88rem;
  box-shadow: 0 1px 2px rgba(11, 110, 143, 0.2);
}

.btn-header:hover,
.btn-primary:hover {
  background: #095a75;
  color: #fff;
}

.btn-header:focus-visible,
.btn-primary:focus-visible {
  outline-color: var(--accent-2);
}

.btn-primary {
  padding: 14px 22px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 1px 2px rgba(11, 110, 143, 0.22), 0 8px 18px rgba(11, 110, 143, 0.18);
}

.btn-secondary {
  padding: 13px 20px;
  background: var(--card);
  color: var(--accent-2);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: var(--chip);
  color: var(--accent-2);
  border-color: #c9d6e0;
}

.hero {
  padding: 28px 0 8px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 28px 28px;
  align-items: start;
}

.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 20%;
  box-shadow: var(--shadow-icon);
  background: #fff;
}

.app-icon-sm {
  width: 96px;
  height: 96px;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-weight: 750;
}

.hero-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-dev {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  font-size: 0.95rem;
}

.hero-dev a {
  font-weight: 650;
  text-decoration: none;
}

.hero-dev a:hover {
  text-decoration: underline;
}

.sep {
  color: #9aa8b6;
}

.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
}

.chips li {
  background: var(--chip);
  color: var(--accent-2);
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 7px 10px;
  border-radius: 8px;
  max-width: 100%;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.disclaimer {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.shots {
  padding: 12px 0 8px;
  min-width: 0;
  max-width: 100%;
}

.shots-head {
  margin-bottom: 12px;
}

.shots-head h2,
.about h2,
.download-copy h2,
.install h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.shots-frame {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.shots-track {
  display: flex;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  padding: 6px 4px 28px;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
}

.shots-track::-webkit-scrollbar {
  display: none;
}

.shot-card {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.shot-card img {
  display: block;
  width: auto;
  max-width: none;
  height: min(560px, 72vh);
  object-fit: contain;
  background: #eef3f7;
}

.shots-nav {
  display: none;
  position: absolute;
  top: calc(50% - 14px);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--accent-2);
  box-shadow: 0 2px 10px rgba(15, 35, 64, 0.16);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.shots-nav:hover {
  background: #f3f8fb;
}

.shots-nav:disabled {
  opacity: 0.35;
  cursor: default;
}

.shots-prev {
  left: 8px;
}

.shots-next {
  right: 8px;
}

.about {
  padding: 28px 0 8px;
}

.lead {
  margin: 12px 0 0;
  font-size: 1.05rem;
  color: var(--accent-2);
}

.prose {
  margin-top: 16px;
}

.prose p {
  margin: 0 0 14px;
  color: #334155;
}

.prose p:last-child {
  margin-bottom: 0;
}

.download,
.install {
  padding: 28px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.download-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 20px 22px;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px;
}

.download-name {
  margin: 4px 0 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.download-copy .btn {
  margin-top: 14px;
}

.verify {
  margin-top: 22px;
  padding: 20px 22px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.verify h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.verify p {
  margin: 0 0 10px;
  color: #334155;
}

.verify-badge {
  display: inline-block;
  margin: 4px 0 8px;
  padding: 6px 10px;
  background: var(--chip);
  color: var(--accent-2);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 650;
}

.verify-date {
  color: var(--muted);
  font-size: 0.9rem;
}

.verify-hash-label {
  margin: 12px 0 4px;
  font-size: 0.82rem;
  color: var(--muted);
}

.verify-hash-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.verify-hash {
  display: block;
  flex: 1 1 16rem;
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", Consolas, monospace;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink);
}

.btn-copy {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--accent-2);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}

.btn-copy:hover {
  background: var(--chip);
}

.btn-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.verify-stores {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.verify-stores a {
  font-weight: 500;
}

.steps {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.steps li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: var(--card);
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.steps p {
  margin: 0;
  font-size: 0.95rem;
  color: #334155;
}

.step-n {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--chip);
  color: var(--accent-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.note {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  background: #eef3f7;
}

.footer-inner {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.footer-inner p {
  margin: 0;
}

.footer-inner a {
  font-weight: 650;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

.footer-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}

@media (hover: hover) and (min-width: 900px) {
  .shots-nav {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .hero {
    padding-top: 36px;
  }

  .shot-card img {
    height: 460px;
  }

  .shots-head h2,
  .about h2,
  .download-copy h2,
  .install h2 {
    font-size: 1.25rem;
  }
}

@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .app-icon {
    width: 96px;
    height: 96px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .download-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .download-copy .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .btn-extra {
    display: none;
  }

  .brand span {
    font-size: 0.95rem;
  }
}

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

  .btn {
    transition: none;
  }
}
