:root {
  --ink: #232323;
  --muted: #5b635b;
  --paper: #fbfaf6;
  --surface: #ffffff;
  --line: #dad7cd;
  --primary: #0091ff;
  --shadow: 0 18px 50px rgba(35, 35, 35, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px clamp(20px, 4vw, 64px);
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid rgba(35, 35, 35, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(35, 35, 35, 0.16);
  flex: 0 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: #303830;
  font-weight: 700;
  font-size: 0.96rem;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav-cta {
  padding: 0 18px;
  border: 1px solid rgba(0, 145, 255, 0.42);
  border-radius: 8px;
  color: var(--primary);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 150px));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(52px, 9vw, 112px) clamp(20px, 5vw, 80px);
  isolation: isolate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__screens {
  position: absolute;
  top: 50%;
  right: clamp(20px, 6vw, 92px);
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: clamp(16px, 2vw, 30px);
  align-items: start;
  justify-content: center;
  perspective: 1200px;
  transform: translateY(-50%);
}

.hero__screen {
  display: block;
  width: auto;
  height: min(70vh, 560px);
  object-fit: contain;
  filter: drop-shadow(0 24px 34px rgba(26, 26, 26, 0.2));
}

.hero__screen--parent {
  transform: rotateX(6deg) rotateY(12deg) rotateZ(-4deg) skewY(-2deg);
  transform-origin: right center;
}

.hero__screen--child {
  border-radius: 8px;
  transform: rotateX(6deg) rotateY(-12deg) rotateZ(4deg) skewY(2deg);
  transform-origin: left center;
}

.hero__overlay {
  z-index: -2;
  background: linear-gradient(
    90deg,
    rgba(251, 250, 246, 0.96) 0%,
    rgba(251, 250, 246, 0.9) 46%,
    rgba(251, 250, 246, 0.34) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(500px, 100%);
  padding: clamp(18px, 3vw, 30px) clamp(24px, 5vw, 54px)
    clamp(18px, 3vw, 30px) 0;
  background: linear-gradient(
    90deg,
    rgba(251, 250, 246, 0.92) 0%,
    rgba(251, 250, 246, 0.7) 62%,
    rgba(251, 250, 246, 0) 100%
  );
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  font-size: 0.78rem;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 14ch;
  font-size: 4.8rem;
}

h2 {
  font-size: 3.4rem;
  max-width: 12ch;
}

h3 {
  font-size: 1.25rem;
}

.hero p:not(.eyebrow),
.section__copy p,
.product-band__copy p,
.download p {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.12rem;
}

.hero__actions,
.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 0 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 145, 255, 0.24);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--primary);
}

.button--secondary {
  background: var(--surface);
  border-color: rgba(35, 35, 35, 0.16);
  color: var(--ink);
}

.section {
  padding: clamp(58px, 9vw, 118px) clamp(20px, 5vw, 80px);
}

.intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding-top: clamp(20px, 4vw, 36px);
  padding-bottom: clamp(20px, 4vw, 36px);
  background: var(--ink);
}

.intro__stat {
  min-height: 128px;
  padding: clamp(22px, 4vw, 34px);
  background: var(--surface);
}

.intro__stat strong,
.intro__stat span {
  display: block;
}

.intro__stat strong {
  margin-bottom: 8px;
  font-size: 2.7rem;
  line-height: 1;
}

.intro__stat span {
  color: var(--muted);
  font-weight: 700;
}

.how-it-works {
  background: var(--paper);
}

.section__copy--center {
  margin: 0 auto 34px;
  text-align: center;
}

.section__copy--center h2,
.section__copy--center p {
  margin-left: auto;
  margin-right: auto;
}

.workflow {
  display: grid;
  gap: 28px;
  margin-top: 42px;
}

.workflow-step {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.workflow-step--child {
  grid-template-columns: minmax(320px, 1.18fr) minmax(280px, 0.82fr);
}

.workflow-step__copy {
  display: grid;
  align-content: center;
  min-height: 260px;
  padding: clamp(24px, 4vw, 42px);
}

.workflow-step--child .workflow-step__copy {
  text-align: right;
  justify-items: end;
}

.workflow-step__copy span {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 900;
}

.workflow-step__copy h3 {
  max-width: 20ch;
  font-size: 2.2rem;
}

.workflow-step__media {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.workflow-step__media--pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
}

.workflow-step__media img {
  width: min(100%, 340px);
  max-height: 560px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.workflow-step--parent .workflow-step__media img {
  border: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 36px rgba(26, 26, 26, 0.18));
}

.workflow-step__media--pair img {
  width: 100%;
  max-height: 500px;
}

.product-band {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  background: #f3f6f8;
}

.product-band__visual {
  border: 1px solid rgba(35, 35, 35, 0.16);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.product-band__visual img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 800;
}

.check-list li {
  position: relative;
  padding-left: 34px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: inset 0 0 0 5px var(--surface);
}

.download {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: center;
  background: var(--primary);
}

.download .eyebrow,
.download h2 {
  color: #ffffff;
}

.download p {
  color: rgba(255, 255, 255, 0.86);
}

.download__actions {
  flex-direction: column;
  align-items: flex-start;
}

.app-store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: #000000;
  color: #ffffff;
  cursor: default;
  font: inherit;
}

.app-store-button svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  flex: 0 0 auto;
}

.app-store-button span {
  display: grid;
  gap: 1px;
  text-align: left;
}

.app-store-button small,
.app-store-button strong {
  display: block;
  line-height: 1;
}

.app-store-button small {
  font-size: 0.78rem;
  font-weight: 700;
}

.app-store-button strong {
  font-size: 1.5rem;
  font-weight: 900;
}

.platform-note {
  margin: 4px 0 0;
  max-width: 42ch;
  font-size: 0.98rem;
}

.contact {
  background: var(--surface);
}

.contact-panel {
  width: min(860px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 44px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.contact-panel__label {
  margin: 0 0 8px;
  color: var(--primary);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.contact-panel__email {
  display: inline-flex;
  margin: 0;
  color: var(--ink);
  font-size: 1.8rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-panel p:last-child {
  max-width: 48ch;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 80px);
  background: var(--ink);
  color: #ffffff;
}

.site-footer p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer__legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer__legal a {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 3px;
}

.site-footer__legal a:hover {
  text-decoration-color: #ffffff;
}

.brand--footer .brand__mark {
  border-color: rgba(255, 255, 255, 0.25);
}

@media (max-width: 880px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 8px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0 12px;
  }

  .hero {
    min-height: 78vh;
  }

  .hero__screens {
    position: relative;
    top: auto;
    right: auto;
    z-index: 1;
    order: 2;
    width: min(100%, 440px);
    margin-top: 32px;
    transform: none;
    justify-self: center;
  }

  .hero__screen {
    height: min(430px, 58vw);
  }

  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.9rem;
  }

  .intro,
  .workflow-step,
  .workflow-step--child,
  .product-band,
  .download {
    grid-template-columns: 1fr;
  }

  .workflow-step--child .workflow-step__media {
    order: 2;
  }

  .workflow-step--child .workflow-step__copy {
    text-align: left;
    justify-items: start;
  }

  .intro {
    gap: 1px;
  }

  .product-band__visual {
    order: 2;
  }

  .site-footer,
  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .brand {
    font-size: 0.98rem;
  }

  .brand__mark {
    width: 40px;
    height: 40px;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: calc(100vh - 136px);
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .hero__screens {
    gap: 12px;
    width: min(100%, 360px);
    margin-top: 28px;
  }

  .hero__screen {
    height: min(360px, 62vw);
  }

  .hero__screen--parent {
    transform: rotateX(4deg) rotateY(8deg) rotateZ(-3deg) skewY(-1deg);
  }

  .hero__screen--child {
    transform: rotateX(4deg) rotateY(-8deg) rotateZ(3deg) skewY(1deg);
  }

  .hero__overlay {
    background: rgba(251, 250, 246, 0.88);
  }

  h1 {
    font-size: 2.6rem;
    max-width: 13ch;
  }

  h2 {
    font-size: 2.6rem;
    max-width: 10ch;
  }

  .hero p:not(.eyebrow),
  .section__copy p,
  .product-band__copy p,
  .download p {
    font-size: 1.02rem;
  }

  .intro__stat strong {
    font-size: 2.1rem;
  }

  .workflow-step__media--pair {
    grid-template-columns: 1fr;
  }

  .workflow-step__media img,
  .workflow-step__media--pair img {
    width: min(100%, 320px);
  }

  .button {
    width: 100%;
  }

  .app-store-button {
    width: 100%;
    justify-content: center;
  }
}
