/* Shared layout constraints, followed by tablet and phone layouts. */
html,
body {
  max-width: 100%;
  overscroll-behavior-x: none;
  overflow-x: clip;
}
.section-pad > *,
.section-head > *,
.preview-layout > *,
.merchant-preview > *,
.contact-section > *,
.commercial-section > *,
.form-row > * {
  min-width: 0;
}
fieldset {
  min-inline-size: 0;
}
input,
select,
textarea {
  max-width: 100%;
}
button,
a {
  touch-action: manipulation;
}
.skip:not(:focus) {
  width: 1px;
  height: 1px;
  padding: 0;
  clip-path: inset(50%);
  overflow: hidden;
}
.photo-story {
  touch-action: pan-y;
}
.discovery-item:nth-child(n) {
  display: block;
  background: transparent;
}
.discovery-item > div {
  padding: 22px 0 0;
}
.discovery-item img {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.intro,
.how-section,
.contact-section {
  position: relative;
  isolation: isolate;
}
.intro {
  background: linear-gradient(125deg, #c9eee1, #e1f2fc);
}
.how-section {
  background: linear-gradient(125deg, #d0e5fa, #e1f1ed);
}
.contact-section {
  background: linear-gradient(120deg, #d5edb9, #bee8df);
}
.local-names {
  background: linear-gradient(110deg, #f9d8c6, #f9e9d7, #f4d9df);
}
.launch-film {
  background: linear-gradient(145deg, #bce6de, #d2e7f9);
}
.workspace-showcase {
  background: linear-gradient(120deg, #cbdff5, #dbece7);
}
.photo-story {
  background: linear-gradient(135deg, #d4e5fa, #e9def1);
}
.intro::after,
.how-section::after,
.contact-section::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  width: 100px;
  height: 100px;
  background: url("assets/icon.png") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
  z-index: -1;
}
.photo-story {
  height: auto;
  min-height: 580px;
}
.photo-story > div {
  padding: 52px 28px;
}
.photo-story h2 {
  min-height: 0;
  overflow-wrap: break-word;
}
.photo-story > img {
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: cover;
}
.photo-slider-controls {
  flex-wrap: wrap;
}
.photo-slider-controls button,
#marquee-toggle {
  min-width: 44px;
  min-height: 44px;
}
.workspace-tabs button {
  min-height: 48px;
}
.names-disclosure {
  line-height: 1.65;
}

@media (max-width: 1100px) {
  .section-pad {
    padding: 60px 32px;
  }
  .section-head {
    gap: 28px;
  }
  .section-head h2 {
    font-size: 38px;
  }
  .discovery-grid {
    gap: 22px;
  }
  .discovery-item:nth-child(n) {
    margin-top: 0;
  }
  .discovery-item h3 {
    font-size: 25px;
  }
  .preview-layout {
    display: flex;
    flex-direction: column-reverse;
    gap: 36px;
  }
  .phone-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 260px));
    gap: 24px;
    height: auto;
    padding: 24px 0;
    overflow: visible;
  }
  .phone-gallery .phone-frame {
    width: 100%;
    margin: 0;
    transform: none;
  }
  .preview-stamp {
    display: none;
  }
  .feature-list {
    width: 100%;
  }
  .feature-row {
    padding: 24px 0;
  }
  .film-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    height: auto;
    padding: 24px 0;
    margin: 0;
  }
  .film-word {
    position: relative;
    inset: auto;
    font-size: 66px;
  }
  .film-phone {
    position: relative;
    inset: auto;
    justify-self: center;
    width: min(260px, 68%);
    height: auto;
    aspect-ratio: 390 / 844;
  }
  .film-caption {
    position: relative;
    inset: auto;
    justify-self: center;
    max-width: 100%;
    width: 100%;
    text-align: center;
    padding: 8px 16px 0;
  }
  .film-caption h3 {
    font-size: 26px;
  }
  .film-photo {
    width: 22%;
    height: 200px;
    top: 190px;
  }
  .film-photo-left {
    left: 0;
  }
  .film-photo-right {
    right: 0;
    top: 270px;
  }
  .film-controls {
    flex-wrap: wrap;
  }
  .film-controls button {
    min-height: 44px;
  }
  .merchant-preview {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .merchant-benefits {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
  .commercial-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .contact-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .faq-section {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .photo-story {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
    min-height: 0;
  }
  .photo-story > div {
    grid-column: 1 / -1;
    grid-row: 1;
    padding: 48px 32px;
  }
  .photo-story > img {
    height: auto;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 340px;
  }
  .photo-story h2 {
    font-size: 38px;
    min-height: 150px;
  }
  .workspace-tabs {
    gap: 20px;
  }
  .workspace-tabs button {
    white-space: normal;
    text-align: left;
  }
}
@media (min-width: 601px) and (max-width: 1100px) {
  .mobile-preview-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
  .mobile-preview-strip figure:last-child {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 300px;
    justify-self: center;
  }
  .hero h1 {
    font-size: 52px;
  }
  .hero h1 > span {
    font-size: 26px;
  }
  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }
  .section-head {
    display: block;
  }
  .section-head > p {
    margin-top: 20px;
    max-width: 560px;
  }
  .discovery-item a {
    font-size: 12px;
    min-height: 44px;
  }
  .trust-grid {
    gap: 24px;
  }
}
@media (max-width: 760px) {
  .site-header nav {
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
  }
  .menu-toggle {
    min-width: 44px;
    min-height: 44px;
  }
  .section-head {
    display: block;
  }
  .section-head > p {
    margin-top: 18px;
  }
  .hero-photo {
    left: 0;
    width: 100%;
  }
  .hero-side {
    display: none;
  }
  .model-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .model-tabs button {
    min-height: 44px;
    padding-inline: 0;
    font-size: 12px;
  }
  .workspace-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace-tabs button {
    font-size: 13px;
  }
  .dialog-header h2 {
    overflow-wrap: anywhere;
  }
  .dialog-header > div {
    min-width: 0;
  }
  .dialog-header button,
  .dialog-footer button {
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
  }
  .dialog-header {
    gap: 12px;
  }
  .dialog-image {
    overflow: auto;
  }
  .footer-bottom {
    flex-wrap: wrap;
    gap: 16px;
  }
}
@media (max-width: 600px) {
  .section-pad {
    padding: 44px 20px;
  }
  .intro {
    padding-top: 28px;
  }
  .section-head h2,
  h2 {
    font-size: 34px;
  }
  .section-head > p {
    line-height: 1.65;
  }
  .discovery-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .discovery-item:nth-child(n) {
    display: block;
  }
  .discovery-item > div {
    padding: 20px 0 0;
  }
  .discovery-item h3 {
    font-size: 28px;
    margin: 12px 0;
  }
  .discovery-item a {
    font-size: 14px;
    min-height: 44px;
  }
  .discovery-item span {
    font-size: 12px;
  }
  .phone-gallery {
    display: flex;
    justify-content: flex-start;
    gap: 18px;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    padding: 18px 0 24px;
    scrollbar-width: thin;
  }
  .phone-gallery .phone-frame {
    width: min(82%, 260px);
    flex: 0 0 min(82%, 260px);
    scroll-snap-align: start;
  }
  .film-word {
    font-size: 40px;
  }
  .film-stage {
    gap: 20px;
  }
  .film-caption {
    padding-inline: 0;
  }
  .film-caption h3 {
    font-size: 24px;
  }
  .film-photo {
    width: 19%;
    height: 150px;
    top: 170px;
  }
  .film-photo-right {
    top: 240px;
  }
  .film-controls {
    display: grid;
    grid-template-columns: 44px repeat(3, minmax(0, 1fr));
    gap: 4px;
    align-items: stretch;
  }
  .film-controls button {
    padding: 8px 4px;
    font-size: 11px;
  }
  .film-controls #film-play {
    margin: 0;
    width: 44px;
    height: 44px;
  }
  .film-controls button span {
    display: block;
  }
  .mobile-preview-strip {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
  .merchant-benefits {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .merchant-benefits p,
  .feature-row p,
  .steps p {
    font-size: 14px;
  }
  .screen-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .screen-tabs button {
    min-height: 44px;
    justify-content: space-between;
    white-space: normal;
    font-size: 12px;
  }
  .photo-story {
    height: auto;
    grid-template-rows: auto auto;
  }
  .photo-story > div {
    padding: 40px 20px;
  }
  .photo-story h2 {
    font-size: 32px;
    min-height: 140px;
  }
  .photo-story > img {
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: none;
  }
  .photo-slider-controls {
    gap: 0;
  }
  .photo-slider-controls button {
    width: 44px;
    min-width: 44px;
  }
  .intro::after,
  .how-section::after,
  .contact-section::after {
    width: 68px;
    height: 68px;
    top: 14px;
    right: 14px;
    opacity: 0.1;
  }
  .contact-section input,
  .contact-section select,
  .contact-section textarea {
    font-size: 16px;
  }
}
@media (max-height: 520px) and (min-width: 601px) {
  .hero {
    min-height: 0;
    height: 260px;
    max-height: none;
  }
  .hero-content {
    padding: 12px 20px 45px;
  }
  .hero h1 {
    font-size: 36px;
  }
  .hero h1 > span {
    font-size: 20px;
    margin-top: 8px;
  }
  .hero-description {
    display: none;
  }
  .hero-eyebrow {
    margin-bottom: 8px;
  }
  .hero-actions {
    margin-top: 10px;
  }
  .hero .launch-note {
    margin-top: 6px;
  }
  .hero-footer {
    bottom: 4px;
    padding: 4px 0;
  }
}
