:root {
  --snap-blue: #315ef4;
  --snap-blue-dark: #2447bc;
  --snap-bg: #e8eeff;
  --snap-gray: #f3f4f6;
  --snap-surface: #ffffff;
  --snap-ink: #191b23;
  --snap-muted: #5f6678;
  --snap-line: #d8deea;
  --snap-soft-blue: #dfe7ff;
  --snap-danger: #cf5a35;
  --shadow: 0 18px 60px rgba(38, 55, 105, 0.14);
  --shadow-strong: 0 24px 70px rgba(34, 53, 105, 0.2);
  --header-height: 82px;
  --slide-height: calc(100svh - var(--header-height));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  scroll-padding-top: var(--header-height);
  scrollbar-width: none;
  overflow-x: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--snap-ink);
  background: linear-gradient(180deg, var(--snap-bg) 0%, #f8f9fd 42%, #ffffff 100%);
  letter-spacing: 0;
  scrollbar-width: none;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 16%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(255, 255, 255, 0.55), transparent 28%);
}

main {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 64px);
  background: rgba(232, 238, 255, 0.86);
  border-bottom: 1px solid rgba(216, 222, 234, 0.72);
  backdrop-filter: blur(16px);
}

.hero-section,
.section-block,
.workflow-section,
.customize-section,
.form-section,
.download-section {
  height: var(--slide-height);
  min-height: var(--slide-height);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  scroll-margin-top: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-weight: 800;
}

.brand img {
  width: 46px;
  height: 46px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--snap-muted);
  font-weight: 700;
}

.nav-links a {
  padding: 8px 0;
}

.hero-section,
.quick-strip,
.section-block,
.workflow-section,
.customize-section,
.form-section,
.download-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero-section {
  height: var(--slide-height);
  min-height: var(--slide-height);
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(360px, 1.02fr);
  align-items: center;
  gap: clamp(30px, 6vw, 78px);
  padding: clamp(24px, 5vh, 54px) 0;
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--snap-blue);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2.55rem, 6.2vw, 5.05rem);
  line-height: 1;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.lead {
  max-width: 650px;
  color: var(--snap-muted);
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
}

.button-primary {
  color: #ffffff;
  background: var(--snap-blue);
  box-shadow: 0 14px 30px rgba(49, 94, 244, 0.24);
}

.button-primary:hover {
  background: var(--snap-blue-dark);
}

.button-secondary {
  color: var(--snap-blue-dark);
  background: var(--snap-surface);
  border-color: var(--snap-line);
}

.device-note {
  width: fit-content;
  max-width: 620px;
  padding: 12px 14px;
  color: #23335d;
  background: var(--snap-soft-blue);
  border-radius: 8px;
  line-height: 1.45;
}

.hero-visual {
  position: relative;
  width: min(100%, 520px);
  justify-self: center;
  padding: clamp(10px, 2vw, 16px);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(216, 222, 234, 0.92);
  border-radius: 24px;
  box-shadow: var(--shadow-strong);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 18px;
}

.quick-strip {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 clamp(34px, 6vw, 70px);
}

.quick-strip div {
  min-height: 100px;
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--snap-line);
  border-radius: 8px;
}

.quick-strip strong {
  font-size: 1.06rem;
}

.quick-strip span {
  color: var(--snap-muted);
  line-height: 1.45;
}

.section-block,
.workflow-section,
.customize-section,
.form-section,
.download-section {
  min-height: var(--slide-height);
  height: var(--slide-height);
  display: grid;
  align-content: center;
  padding: clamp(34px, 6vh, 64px) 0 clamp(22px, 4vh, 44px);
}

.section-heading {
  max-width: 730px;
  margin-bottom: 18px;
}

#instructions .section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
}

#instructions {
  align-content: center;
  justify-items: center;
  overflow: hidden;
}

#instructions .section-heading {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.instruction-gallery article,
.download-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--snap-line);
  border-radius: 8px;
  box-shadow: 0 12px 35px rgba(38, 55, 105, 0.08);
}

.feature-card {
  min-height: 238px;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 42px rgba(38, 55, 105, 0.12);
}

.feature-card p,
.workflow-copy p,
.form-copy p,
.download-section p,
.instruction-gallery h3 {
  color: var(--snap-muted);
  line-height: 1.58;
}

.feature-icon,
.icon-camera,
.icon-history,
.icon-download {
  display: inline-block;
  position: relative;
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

.feature-icon {
  margin: 0 0 18px;
}

.feature-icon::before,
.feature-icon::after,
.icon-camera::before,
.icon-camera::after,
.icon-history::before,
.icon-history::after,
.icon-download::before,
.icon-download::after {
  content: "";
  position: absolute;
}

.icon-camera::before,
.icon-scan::before {
  inset: 7px 2px 4px;
  border: 3px solid currentColor;
  border-radius: 7px;
}

.icon-camera::after,
.icon-scan::after {
  inset: 12px 10px 8px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon-history::before {
  inset: 5px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.icon-history::after {
  left: 14px;
  top: 8px;
  width: 9px;
  height: 10px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
}

.icon-download::before {
  left: 13px;
  top: 3px;
  width: 4px;
  height: 15px;
  background: currentColor;
}

.icon-download::after {
  left: 8px;
  top: 13px;
  width: 14px;
  height: 14px;
  border-right: 4px solid currentColor;
  border-bottom: 4px solid currentColor;
  transform: rotate(45deg);
}

.icon-form::before,
.icon-review::before,
.icon-report::before {
  inset: 2px 6px;
  border: 3px solid currentColor;
  border-radius: 4px;
}

.icon-form::after,
.icon-review::after,
.icon-report::after {
  left: 11px;
  right: 11px;
  top: 10px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor, 0 14px 0 currentColor;
}

.workflow-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 1.15fr);
  gap: 28px;
  align-items: start;
}

.customize-section {
  align-content: start;
  gap: clamp(12px, 2.2vh, 22px);
  padding-top: clamp(42px, 7vh, 76px);
}

.customize-heading {
  max-width: 820px;
}

.customize-heading h2 {
  font-size: clamp(1.75rem, 3.45vw, 3.05rem);
}

.customize-heading p {
  color: var(--snap-muted);
  line-height: 1.6;
}

.customize-board {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: 0;
  display: grid;
  place-items: center;
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.custom-collage {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: calc(var(--slide-height) - 250px);
  margin: 0 auto;
  object-fit: contain;
}

.workflow-list {
  display: grid;
  gap: 12px;
}

.workflow-item {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--snap-surface);
  border: 1px solid var(--snap-line);
  border-radius: 8px;
}

.workflow-item span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
  background: var(--snap-blue);
  border-radius: 8px;
  font-weight: 900;
}

.workflow-item p {
  margin: 0;
  color: var(--snap-muted);
}

.form-section {
  display: grid;
  grid-template-columns: minmax(250px, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.form-preview {
  padding: 18px;
  background: var(--snap-surface);
  border: 1px solid var(--snap-line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-preview img {
  width: min(100%, 380px);
  margin: 0 auto;
  border: 1px solid var(--snap-line);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--snap-muted);
  line-height: 1.45;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--snap-blue);
  border-bottom: 3px solid var(--snap-blue);
  transform: rotate(-45deg);
}

.instruction-carousel {
  position: relative;
  width: min(620px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.instruction-viewport {
  overflow: hidden;
  padding: 2px;
  touch-action: pan-y;
}

.instruction-gallery {
  display: flex;
  width: 100%;
  gap: 0;
  will-change: transform;
  transition: transform 520ms ease;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
}

.instruction-gallery::-webkit-scrollbar {
  display: none;
}

.instruction-gallery.is-dragging {
  cursor: grabbing;
  transition: none;
}

.instruction-gallery article {
  flex: 0 0 100%;
  min-width: 100%;
  overflow: hidden;
  cursor: zoom-in;
}

.instruction-gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  max-height: min(52vh, 500px);
  background: var(--snap-gray);
  pointer-events: none;
}

.instruction-gallery h3 {
  min-height: 46px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 10px 12px;
  font-size: 0.95rem;
}

.lightbox-close {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  border: 1px solid var(--snap-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(38, 55, 105, 0.16);
  cursor: pointer;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
}

.instruction-lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  place-items: center;
  gap: 16px;
  padding: clamp(18px, 4vw, 48px);
  background: rgba(12, 15, 24, 0.88);
}

.instruction-lightbox[hidden] {
  display: none;
}

.instruction-lightbox img {
  max-width: min(94vw, 980px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
}

.instruction-lightbox p {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
}

.lightbox-close::before,
.lightbox-close::after {
  width: 20px;
  height: 3px;
  background: var(--snap-ink);
  border-radius: 999px;
}

.lightbox-close::before {
  transform: rotate(45deg);
}

.lightbox-close::after {
  transform: rotate(-45deg);
}

.download-section {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(24px, 5vh, 56px) 0;
  color: #ffffff;
  text-align: center;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: clamp(22px, 5vw, 54px);
  align-items: center;
  justify-items: center;
  width: min(860px, 100%);
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(135deg, var(--snap-blue) 0%, #2447bc 100%);
  border-radius: 18px;
}

.download-panel > div:first-child {
  max-width: 650px;
}

.download-section .eyebrow,
.download-section p {
  color: rgba(255, 255, 255, 0.82);
}

.download-card {
  width: min(100%, 320px);
  padding: 24px;
  color: var(--snap-ink);
  text-align: center;
}

.download-card img {
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
}

.download-card p {
  color: var(--snap-muted);
}

.download-card .button {
  width: 100%;
  margin-top: 8px;
}

.download-card small {
  display: block;
  margin-top: 12px;
  color: var(--snap-muted);
}

@media (max-width: 980px) {
  .hero-section,
  .workflow-section,
  .customize-section,
  .form-section,
  .download-section {
    grid-template-columns: 1fr;
  }

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

  .feature-grid,
  .quick-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-section {
    padding: clamp(22px, 5vh, 42px) 0;
  }

  .download-panel {
    grid-template-columns: 1fr;
    padding: 34px 24px;
  }

  .customize-board {
    width: min(720px, 100%);
  }
}

@media (max-width: 1100px), (max-height: 780px) and (pointer: coarse) {
  html {
    scroll-snap-type: none;
  }

  .hero-section,
  .section-block,
  .workflow-section,
  .customize-section,
  .form-section,
  .download-section {
    height: auto;
    min-height: auto;
    overflow: visible;
    scroll-snap-align: none;
    padding-top: clamp(40px, 7vw, 72px);
    padding-bottom: clamp(40px, 7vw, 72px);
  }

  .hero-section {
    min-height: calc(100svh - var(--header-height));
  }

  #instructions {
    overflow: visible;
  }

  .custom-collage {
    max-height: none;
  }

  .instruction-carousel {
    width: min(560px, 100%);
  }

  .instruction-gallery img {
    max-height: min(64vh, 540px);
  }

  .download-section {
    min-height: calc(100svh - var(--header-height));
  }
}

@media (max-width: 820px), (max-height: 720px) and (pointer: coarse) {
  :root {
    --header-height: 118px;
  }

  html {
    scroll-snap-type: none;
    scroll-padding-top: var(--header-height);
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 12px;
  }

  .brand {
    gap: 9px;
    font-size: clamp(1.25rem, 7vw, 1.65rem);
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 4px;
    overflow: hidden;
    padding-bottom: 2px;
    font-size: clamp(0.72rem, 3.1vw, 0.82rem);
    white-space: nowrap;
  }

  .nav-links a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
  }

  .hero-section,
  .quick-strip,
  .section-block,
  .workflow-section,
  .customize-section,
  .form-section,
  .download-section {
    width: min(100% - 24px, 1180px);
  }

  .hero-section,
  .section-block,
  .workflow-section,
  .customize-section,
  .form-section,
  .download-section {
    height: auto;
    min-height: auto;
    overflow: visible;
    scroll-snap-align: none;
    padding: clamp(34px, 10vw, 56px) 0;
  }

  .hero-section {
    min-height: calc(100svh - var(--header-height));
    gap: 24px;
    align-content: center;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  h2 {
    font-size: clamp(1.75rem, 8.6vw, 2.35rem);
    line-height: 1.08;
  }

  .lead {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-actions {
    margin: 18px 0 12px;
  }

  .button {
    width: 100%;
    min-height: 48px;
  }

  .device-note {
    width: 100%;
  }

  .feature-grid,
  .quick-strip {
    grid-template-columns: 1fr;
  }

  .instruction-gallery {
    display: flex;
  }

  .instruction-gallery article {
    flex-basis: 100%;
  }

  .feature-card,
  .instruction-gallery article {
    scroll-snap-align: center;
  }

  .feature-card {
    min-height: 0;
  }

  .section-heading {
    max-width: 100%;
    margin-bottom: 18px;
  }

  #instructions {
    align-content: start;
    overflow: visible;
  }

  #instructions .section-heading h2 {
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .instruction-carousel {
    width: min(100%, 390px);
  }

  .instruction-gallery img {
    max-height: min(58vh, 470px);
  }

  .instruction-gallery h3 {
    min-height: 42px;
    padding: 9px 10px;
  }

  .workflow-section,
  .form-section {
    gap: 22px;
  }

  .workflow-list {
    gap: 10px;
  }

  .workflow-item {
    grid-template-columns: 40px 1fr;
    padding: 14px;
  }

  .workflow-item span {
    width: 38px;
    height: 38px;
  }

  .form-preview {
    padding: 12px;
  }

  .form-preview img {
    width: 100%;
  }

  .customize-section {
    align-content: start;
    padding-top: clamp(34px, 10vw, 56px);
  }

  .customize-heading h2 {
    font-size: clamp(1.72rem, 8.2vw, 2.25rem);
  }

  .custom-collage {
    width: 100%;
    max-height: none;
  }

  .hero-visual {
    width: min(100%, 320px);
  }

  .download-panel {
    gap: 18px;
    padding: 28px 18px;
  }

  .download-card {
    padding: 20px;
  }
}
