:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6e6e73;
  --rule: #e8e8ed;
  --surface: #f7f7f8;
  --logo-accent: #fb7e14;
  --max-shell: 73rem;
  --max-article: 41rem;
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 20rem;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-system);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

p,
h1,
h2,
figure {
  margin: 0;
}

main {
  display: block;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 10;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
}

.skip-link:focus {
  top: 1rem;
}

.shell {
  width: min(calc(100% - 2rem), var(--max-shell));
  margin: 0 auto;
}

.article {
  width: min(calc(100% - 2rem), var(--max-article));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.8) blur(18px);
}

.header-inner {
  min-height: 4.5rem;
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
}

.hero {
  padding: 7.9rem 0 8.6rem;
}

.hero-shell {
  display: grid;
  gap: clamp(5.2rem, 8.5vw, 7.4rem);
  max-width: 58rem;
}

.hero-copy {
  max-width: 50rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.eyebrow,
.detail-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-block;
}

.hero-title,
.page-title {
  width: fit-content;
  margin-top: 0.7rem;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: -0.065em;
}

.hero-title {
  margin-top: 0;
  max-width: 12.8ch;
  font-size: clamp(2.35rem, 5.4vw, 3.95rem);
  line-height: 0.99;
}

.page-title {
  max-width: 12ch;
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  line-height: 0.95;
}

.intro,
.detail-copy,
.meta-copy,
.section-copy,
.text-section p,
.footer-copy,
.shot-copy p {
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.intro {
  width: 100%;
  margin-top: 3.8rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.58;
}

.intro--secondary {
  margin-top: 1rem;
}

.hero-meta {
  display: grid;
  gap: 1.75rem;
  max-width: 50rem;
  margin: 0 auto;
}

.meta-block {
  padding-top: 1.35rem;
  border-top: 1px solid var(--rule);
}

.preset-story-section {
  padding: 0 0 7.5rem;
}

.preset-story {
  display: grid;
  gap: 2rem;
}

.preset-story__intro {
  max-width: 22rem;
}

.preset-story__intro h2 {
  margin-top: 0.8rem;
  max-width: 10ch;
}

.preset-story__intro .section-copy {
  margin-top: 1rem;
  max-width: 20rem;
}

.preset-story__steps {
  display: grid;
  width: min(100%, 33rem);
}

.preset-story__step {
  min-height: 9.75rem;
  padding: 1.35rem 0 1.7rem;
  border-top: 1px solid var(--rule);
  opacity: 0.32;
  transform: translateY(0.35rem);
  transition: opacity 180ms ease, transform 180ms ease;
}

.preset-story__step.is-active {
  opacity: 1;
  transform: translateY(0);
}

.preset-story__step h3 {
  margin-top: 0;
  font-size: clamp(2rem, 4vw, 2.95rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.preset-story__step .detail-copy {
  margin-top: 0.55rem;
  max-width: 27rem;
}

.showcase {
  padding: 0 0 7.5rem;
}

.showcase--builder {
  padding-top: 1rem;
  padding-bottom: 11rem;
}

.shot-surface {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.shot-surface img {
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.showcase-copy {
  max-width: 31rem;
  margin-bottom: 2.6rem;
}

.showcase-copy--secondary {
  max-width: 28rem;
}

.showcase-copy h2 {
  margin-top: 0;
}

.shot-card,
.workflow-step {
  display: grid;
  gap: 1.2rem;
}

.messages-story {
  display: none;
}

.messages-story__stage {
  display: flex;
  justify-content: center;
}

.shot-surface--story,
.shot-surface--mobile {
  position: relative;
  aspect-ratio: 1206 / 2622;
  border-radius: 2.9rem;
  background: #ffffff;
  border: 0;
  box-shadow:
    0 0 0 0.35rem #ffffff,
    0 0 0 1px rgba(17, 17, 17, 0.08),
    0 18px 46px rgba(17, 17, 17, 0.09);
  overflow: hidden;
}

.shot-surface--story {
  width: clamp(13.75rem, 16vw, 15.25rem);
  max-width: 100%;
}

.shot-surface--mobile {
  width: min(100%, 13.75rem);
}

.shot-surface--story::after,
.shot-surface--mobile::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.58);
  pointer-events: none;
  z-index: 3;
}

.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #ffffff;
  overflow: hidden;
}

.phone-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  box-shadow: none;
}

.phone-screen--messages img,
.phone-screen--app img {
  transform: none;
}

.shot-surface--story .messages-story__image {
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease;
}

.shot-surface--story .messages-story__image.is-active {
  opacity: 1;
  visibility: visible;
}

.messages-story__steps {
  max-width: 34rem;
  display: grid;
  gap: 2rem;
}

.messages-story__step {
  min-height: 19rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.2rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  opacity: 0.28;
  transform: none;
  transition: opacity 180ms ease;
}

.messages-story__step.is-active {
  opacity: 1;
}

.messages-story__step h3,
.messages-carousel__helper h3 {
  max-width: 15ch;
}

.messages-carousel {
  display: grid;
  gap: 1rem;
}

.messages-carousel__viewport {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  gap: 0.3rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.messages-carousel__viewport::-webkit-scrollbar {
  display: none;
}

.messages-carousel__slide {
  display: grid;
  place-items: center;
  scroll-snap-align: center;
}

.messages-carousel__helper {
  max-width: 18rem;
  margin: 0 auto;
}

.messages-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.messages-carousel__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.messages-carousel__dot {
  width: 0.65rem;
  height: 0.65rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #d3d4da;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.messages-carousel__dot.is-active {
  background: var(--text);
  transform: scale(1.1);
}

.testflight-cta {
  padding: 0 0 6.5rem;
}

.testflight-cta__shell {
  display: grid;
  gap: 1.4rem;
  padding: 2.1rem 0 0;
  border-top: 1px solid var(--rule);
}

.testflight-cta__copy {
  max-width: 34rem;
}

.testflight-cta__actions {
  display: grid;
  gap: 0.8rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  width: fit-content;
}

.cta-button[aria-disabled="true"] {
  opacity: 0.92;
}

.testflight-cta__note {
  color: var(--muted);
  font-size: 0.94rem;
}

.page {
  padding: 4.5rem 0 7rem;
}

.workflow {
  padding: 0 0 8rem;
}

.workflow-header {
  max-width: 32rem;
}

.workflow-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.workflow-step {
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}

.text-section {
  padding-top: 1.6rem;
  margin-top: 1.6rem;
  border-top: 1px solid var(--rule);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  font-size: clamp(1.18rem, 2.4vw, 1.55rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0;
}

.step-index {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.text-section p {
  margin-top: 0.8rem;
}

.text-section ul,
.text-section ol {
  margin: 0.9rem 0 0;
  padding-left: 1.35rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
}

.text-section li + li {
  margin-top: 0.45rem;
}

.contact-disclosure {
  margin-top: 0.9rem;
}

.contact-disclosure summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.98rem;
  list-style: none;
}

.contact-disclosure summary::-webkit-details-marker {
  display: none;
}

.contact-disclosure summary::after {
  content: " +";
}

.contact-disclosure[open] summary::after {
  content: " -";
}

.contact-disclosure__body {
  margin-top: 0.9rem;
}

.contact-disclosure__body p + p {
  margin-top: 0.45rem;
}

.text-link {
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 0.08em;
}

.site-footer {
  border-top: 1px solid var(--rule);
}

.footer-mark {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 0 2rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--muted);
}

.footer-nav a:hover,
.footer-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible {
  color: var(--text);
}

:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

@media (min-width: 64rem) {
  .hero {
    padding: 0;
  }

  .hero-shell {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 66rem;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem;
    width: 100%;
    max-width: 54rem;
    margin: 0 auto 3.5rem;
  }

  .hero-copy {
    min-height: calc(100svh - 4.5rem);
    width: 100%;
    max-width: 58rem;
    margin: 0 auto;
    display: grid;
    justify-items: center;
    align-content: center;
  }

  .hero-title {
    max-width: 10.8ch;
  }

  .intro {
    margin-top: 4.35rem;
    max-width: 46rem;
  }

  .showcase > .shell {
    width: min(calc(100% - 2rem), 80rem);
  }

  .preset-story {
    grid-template-columns: minmax(16rem, 22rem) minmax(0, 33rem);
    column-gap: clamp(4.5rem, 8vw, 9rem);
    justify-content: center;
    align-items: start;
  }

  .preset-story__intro {
    position: sticky;
    top: 4.25rem;
    align-self: start;
  }

  .messages-story {
    display: grid;
    grid-template-columns:
      minmax(0, 1fr)
      minmax(17rem, 20rem)
      clamp(5rem, 7vw, 8rem)
      minmax(26rem, 32rem)
      minmax(0, 1fr);
    column-gap: 0;
    align-items: start;
  }

  .messages-story__stage {
    grid-column: 2;
    position: sticky;
    top: 4.25rem;
    align-self: start;
    justify-content: center;
    justify-self: center;
  }

  .messages-story--reverse {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(26rem, 32rem)
      clamp(5rem, 7vw, 8rem)
      minmax(17rem, 20rem)
      minmax(0, 1fr);
  }

  .messages-story--reverse .messages-story__stage {
    grid-column: 4;
    order: 0;
    justify-content: center;
    justify-self: center;
  }

  .messages-story--reverse .messages-story__steps {
    grid-column: 2;
    order: 0;
    justify-self: stretch;
  }

  .messages-story__steps {
    grid-column: 4;
    width: min(100%, 32rem);
    justify-self: stretch;
  }

  .messages-carousel {
    display: none;
  }

  .workflow-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .testflight-cta__shell {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 2rem;
  }
}

@media (max-width: 63.99rem) {
  .preset-story__step {
    min-height: auto;
    padding: 1.15rem 0 1.45rem;
    opacity: 1;
    transform: none;
  }

  .preset-story__intro {
    max-width: 28rem;
  }

  .preset-story__intro h2 {
    max-width: 12ch;
  }

  .preset-story__intro .section-copy {
    max-width: 28rem;
  }

  .preset-story__steps {
    width: 100%;
  }

  .preset-story__step h3 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
  }
}

@media (max-width: 47.99rem) {
  .hero {
    padding: 4.75rem 0 6rem;
  }

  .hero-shell {
    gap: 4.2rem;
  }

  .hero-title {
    max-width: 8.5ch;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
    line-height: 1;
  }

  .page {
    padding-top: 3rem;
  }

  .intro {
    margin-top: 2.75rem;
    max-width: 23rem;
  }

  .hero-meta {
    gap: 1.5rem;
  }

  .showcase {
    padding-bottom: 5.5rem;
  }

  .preset-story-section {
    padding-bottom: 5.5rem;
  }

  .preset-story {
    gap: 1.4rem;
  }

  .preset-story__steps {
    grid-auto-flow: column;
    grid-auto-columns: minmax(15.5rem, 82%);
    gap: 0.85rem;
    overflow-x: auto;
    padding: 0 0 0.35rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior-x: contain;
  }

  .preset-story__steps::-webkit-scrollbar {
    display: none;
  }

  .preset-story__step {
    padding: 1.15rem 1rem 1.2rem;
    border-top: 0;
    border-radius: 1.35rem;
    background: #fcfcfd;
    scroll-snap-align: start;
  }

  .preset-story__step h3 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
    line-height: 1.02;
  }

  .preset-story__step .detail-copy {
    margin-top: 0.7rem;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .showcase-copy {
    margin-bottom: 1.5rem;
  }

  .shot-surface--mobile {
    width: min(100%, 10.8rem);
  }

  .workflow {
    padding-bottom: 6rem;
  }

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

  .testflight-cta {
    padding-bottom: 5.5rem;
  }
}
