:root {
  --ink: #171713;
  --paper: #f4f0e7;
  --paper-deep: #e8e2d5;
  --white: #fffcf6;
  --coral: #f05a47;
  --acid: #d9f65a;
  --muted: #6f6b62;
  --rule: rgba(23, 23, 19, 0.2);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", Avenir, "Century Gothic", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(23, 23, 19, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 34px;
  font-family: var(--sans);
  line-height: 1.55;
}

body::selection {
  color: var(--ink);
  background: var(--acid);
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: translateY(0);
}

.apps-bar {
  color: #f8f5ec;
  background: #111318;
  border-bottom: 1px solid #34363c;
  font-family: var(--mono);
}

.apps-bar__inner {
  width: min(1480px, calc(100% - 3rem));
  min-height: 52px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.apps-label,
.app-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
}

.apps-label {
  gap: 0.65rem;
  color: #b8bac2;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.apps-label:hover {
  color: #fff;
  text-decoration: none;
}

.apps-mark {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  color: #111318;
  background: #f8f5ec;
  letter-spacing: 0;
}

.apps-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.app-link {
  min-height: 34px;
  gap: 0.45rem;
  padding: 0.42rem 0.65rem;
  border: 1px solid transparent;
  color: #d4d5da;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  white-space: nowrap;
}

.app-link:hover {
  border-color: #4a4d55;
  color: #fff;
  background: #22242a;
  text-decoration: none;
}

.app-link.is-current {
  color: #111318;
  background: #f8f5ec;
}

.app-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 0 2px rgba(217, 246, 90, 0.2);
}

.app-link--visa .app-dot {
  background: #4f7cff;
}

.app-link--latest .app-dot {
  background: #d8ff36;
}

.app-link--pano .app-dot {
  background: var(--coral);
}

.site-header,
footer {
  width: min(1480px, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header {
  min-height: 94px;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.075em;
  text-decoration: none;
}

.wordmark img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}

.site-header nav,
footer div {
  display: flex;
  gap: clamp(0.9rem, 2.6vw, 2.4rem);
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

main {
  overflow: hidden;
}

.eyebrow,
.section-tag,
.proof-note,
.result-number,
.motion-frame-label,
.policy-date,
.release-heading > p,
.release-heading time,
.field-help,
.feedback-status {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero {
  width: min(1480px, calc(100% - 3rem));
  min-height: calc(100svh - 146px);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 7rem) 0;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
}

.hero h1,
.section-heading h2,
.statement h2,
.privacy-callout h2,
.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.hero h1 {
  max-width: 10ch;
  margin-top: 1rem;
  font-size: clamp(4.2rem, 8.2vw, 8.4rem);
}

.hero h1 em,
.section-heading h2 em,
.page-hero h1 em {
  position: relative;
  z-index: 0;
  font-weight: 400;
}

.hero h1 em::after,
.section-heading h2 em::after,
.page-hero h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -0.06em;
  bottom: 0.01em;
  left: -0.03em;
  height: 0.26em;
  background: var(--acid);
  transform: rotate(-1.4deg);
}

.hero-intro {
  max-width: 37rem;
  margin: 2rem 0 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
  line-height: 1.45;
}

.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
}

.button {
  min-height: 50px;
  padding: 0.85rem 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button--ink {
  color: var(--white);
  background: var(--ink);
  box-shadow: 6px 6px 0 var(--coral);
}

.button--paper {
  background: var(--paper);
}

.text-link {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.privacy-strip {
  margin: 2rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  list-style: none;
}

.privacy-strip li {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--rule);
  color: var(--muted);
  background: rgba(255, 252, 246, 0.56);
  font-size: 0.75rem;
  font-weight: 700;
}

.privacy-strip li::before {
  content: "✓";
  margin-right: 0.45rem;
  color: var(--coral);
}

.hero-stage {
  position: relative;
  min-height: 730px;
  display: grid;
  place-items: center;
}

.photo-ribbon {
  position: absolute;
  right: -9vw;
  left: -8vw;
  top: 25%;
  height: 270px;
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  overflow: hidden;
  border: 2px solid var(--ink);
  background: url("/assets/demo/alpine-panorama.jpg") center / cover no-repeat;
  box-shadow: 16px 16px 0 rgba(23, 23, 19, 0.12);
  transform: rotate(3deg);
}

.photo-ribbon span {
  border-right: 2px solid var(--white);
}

.phone-shot {
  margin: 0;
}

.phone-shot--hero {
  position: relative;
  z-index: 2;
  width: min(320px, 54vw);
  transform: rotate(-3deg);
}

.phone-shot--hero img,
.screen-frame {
  border: 2px solid var(--ink);
  border-radius: 34px;
  box-shadow: 14px 15px 0 var(--ink);
}

.phone-shot--hero img {
  width: 100%;
  border-radius: 34px;
}

.phone-shot--hero figcaption {
  position: absolute;
  right: -2rem;
  bottom: 2rem;
  padding: 0.45rem 0.7rem;
  color: var(--ink);
  background: var(--acid);
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-sticker {
  position: absolute;
  z-index: 3;
  top: 5%;
  right: 6%;
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(9deg);
}

.statement {
  padding: clamp(4rem, 8vw, 8rem) max(1.5rem, calc((100vw - 1480px) / 2));
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 2rem;
  color: var(--white);
  background: var(--ink);
}

.statement h2 {
  font-size: clamp(3.5rem, 7.7vw, 7.6rem);
}

.statement p:not(.section-tag) {
  max-width: 50rem;
  margin: 2rem 0 0 auto;
  color: #d6d3cb;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.3vw, 1.8rem);
}

.section-tag {
  margin: 0;
  font-weight: 700;
}

.results,
.features {
  width: min(1480px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(5rem, 9vw, 9rem) 0;
}

.section-heading {
  max-width: 920px;
  margin-bottom: clamp(4rem, 8vw, 8rem);
}

.section-heading h2 {
  margin-top: 1rem;
  font-size: clamp(3.8rem, 7.6vw, 7.7rem);
}

.result-block {
  padding: clamp(2rem, 5vw, 5rem) 0;
  display: grid;
  align-items: center;
  gap: clamp(3rem, 7vw, 8rem);
  border-top: 1px solid var(--ink);
}

.result-block > * {
  min-width: 0;
}

.result-block--carousel {
  grid-template-columns: minmax(280px, 0.72fr) minmax(420px, 1.28fr);
}

.result-block--video {
  grid-template-columns: minmax(420px, 1.1fr) minmax(280px, 0.9fr);
}

.result-copy {
  position: relative;
}

.result-copy h3 {
  margin: 0.65rem 0 1.2rem;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4.6vw, 4.5rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.result-copy > p:not(.eyebrow, .proof-note) {
  max-width: 42rem;
  font-size: 1.03rem;
}

.result-number {
  position: absolute;
  top: -2rem;
  right: 0;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  background: var(--acid);
  font-size: 1.2rem;
  font-weight: 900;
}

.proof-note {
  margin-top: 1.5rem;
  color: var(--muted);
}

.instagram-shell {
  max-width: 730px;
  margin: 0 auto;
  padding: 1.1rem;
  border: 2px solid var(--ink);
  border-radius: 30px;
  background: var(--white);
  box-shadow: 18px 18px 0 var(--coral);
}

.instagram-topline {
  padding: 0 0.15rem 0.8rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.76rem;
}

.instagram-topline strong,
.instagram-topline span {
  display: block;
}

.instagram-topline span {
  color: var(--muted);
}

.avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--acid);
  background: var(--ink);
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
}

.carousel-track {
  display: flex;
  gap: 3px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.carousel-track img {
  width: 100%;
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.instagram-actions {
  padding: 0.65rem 0 0.25rem;
  display: flex;
  gap: 0.7rem;
  font-size: 1.45rem;
  line-height: 1;
}

.save-mark {
  margin-left: auto;
}

.carousel-dots {
  height: 10px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.carousel-dots i {
  width: 6px;
  height: 6px;
  display: block;
  border-radius: 50%;
  background: var(--paper-deep);
}

.carousel-dots i.is-active {
  background: var(--coral);
}

.instagram-shell > p {
  margin: 0.4rem 0.15rem 0.15rem;
  font-size: 0.79rem;
}

.motion-demo {
  width: 100%;
  min-width: 0;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  border: 2px solid var(--ink);
  border-radius: 48px;
  background: var(--canvas, #e8e2d5);
  box-shadow: 18px 18px 0 var(--acid);
}

.motion-viewport {
  position: relative;
  width: min(390px, 80%);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 28px;
  background: var(--ink);
}

.motion-viewport > img {
  width: auto;
  max-width: none;
  height: 100%;
  animation: pan-scene 12s cubic-bezier(0.65, 0, 0.35, 1) infinite alternate;
}

@keyframes pan-scene {
  0%, 8% { transform: translateX(0); }
  32% { transform: translateX(-18%); }
  50% { transform: translateX(-32%); }
  72% { transform: translateX(-50%); }
  92%, 100% { transform: translateX(calc(-100% + 390px)); }
}

.motion-frame-label {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  left: 0.7rem;
  padding: 0.45rem 0.55rem;
  display: flex;
  justify-content: space-between;
  color: var(--white);
  background: rgba(23, 23, 19, 0.75);
  font-size: 0.6rem;
}

.motion-timeline {
  margin: 1.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.motion-timeline span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--white);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 800;
}

.motion-timeline span:nth-of-type(2),
.motion-timeline span:nth-of-type(4) {
  background: var(--coral);
}

.motion-timeline b {
  width: clamp(12px, 4vw, 44px);
  height: 2px;
  background: var(--ink);
}

.inside {
  padding: clamp(5rem, 9vw, 9rem) max(1.5rem, calc((100vw - 1480px) / 2));
  color: var(--white);
  background: var(--ink);
}

.section-heading--light h2 em::after {
  background: var(--coral);
}

.screen-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 3rem);
}

.screen-gallery figure {
  margin: 0;
}

.screen-gallery figure:nth-child(even) {
  margin-top: 4rem;
}

.screen-frame {
  overflow: hidden;
  border-color: var(--white);
  box-shadow: 10px 10px 0 var(--coral);
}

.screen-frame img {
  width: 100%;
}

.screen-gallery figcaption {
  margin-top: 1.6rem;
  color: #aaa79f;
  font-size: 0.8rem;
}

.screen-gallery figcaption span,
.screen-gallery figcaption strong {
  display: block;
}

.screen-gallery figcaption span {
  margin-bottom: 0.4rem;
  color: var(--acid);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.screen-gallery figcaption strong {
  color: var(--white);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.feature-grid article {
  min-height: 240px;
  padding: clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255, 252, 246, 0.35);
}

.feature-grid article:nth-child(4n + 2),
.feature-grid article:nth-child(4n + 3) {
  background: var(--paper-deep);
}

.feature-grid article > span {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  color: var(--coral);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.feature-grid h3 {
  margin: 0 0 0.8rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.3vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.feature-grid p {
  max-width: 37rem;
  margin: 0;
  color: var(--muted);
}

.privacy-callout {
  padding: clamp(4rem, 8vw, 8rem) max(1.5rem, calc((100vw - 1480px) / 2));
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: clamp(3rem, 7vw, 8rem);
  color: var(--white);
  background: var(--coral);
}

.privacy-callout h2 {
  margin-top: 1rem;
  font-size: clamp(3.5rem, 7vw, 7.2rem);
}

.privacy-callout > div:last-child {
  align-self: end;
}

.privacy-callout > div:last-child p {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.1vw, 1.65rem);
}

footer {
  min-height: 120px;
  gap: 2rem;
  border-top: 1px solid var(--ink);
  font-size: 0.8rem;
}

/* Inner pages */
.page-main {
  width: min(1240px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 8rem) 0;
  overflow: visible;
}

.page-hero {
  max-width: 960px;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.page-hero h1 {
  margin-top: 1rem;
  font-size: clamp(4rem, 8.5vw, 8rem);
}

.page-hero > p:last-child {
  max-width: 48rem;
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.feedback-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.45fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.feedback-aside {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.feedback-aside h2 {
  margin: 1rem 0;
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.feedback-aside p {
  color: var(--muted);
}

.feedback-form {
  padding: clamp(1.5rem, 5vw, 4rem);
  border: 2px solid var(--ink);
  border-radius: 34px;
  background: var(--white);
  box-shadow: 16px 16px 0 var(--acid);
}

.field-group + .field-group {
  margin-top: 1.5rem;
}

.field-group label,
.field-group legend {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.field-group fieldset,
fieldset.field-group {
  margin: 0;
  padding: 0;
  border: 0;
}

.kind-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.kind-options label {
  min-height: 52px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  border-radius: 100px;
  cursor: pointer;
}

.kind-options label:has(input:checked) {
  color: var(--white);
  background: var(--ink);
}

.kind-options input {
  width: 1px;
  height: 1px;
  position: absolute;
  opacity: 0;
}

input[type="email"],
input[type="text"],
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ink);
  border-radius: 14px;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
}

textarea {
  min-height: 220px;
  resize: vertical;
}

.field-help {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.field-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.feedback-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.challenge {
  min-height: 70px;
  margin: 1.5rem 0 1rem;
}

.feedback-submit {
  width: 100%;
  border-radius: 16px;
  cursor: pointer;
}

.feedback-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.feedback-status {
  min-height: 1.4rem;
  margin: 0.9rem 0 0;
  color: var(--muted);
  letter-spacing: 0.03em;
  text-transform: none;
}

.feedback-status[data-state="error"] {
  color: #aa2f21;
}

.feedback-sent {
  padding: clamp(2rem, 6vw, 5rem);
  border: 2px solid var(--ink);
  border-radius: 34px;
  background: var(--acid);
  box-shadow: 16px 16px 0 var(--ink);
}

.feedback-sent h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.policy-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
  gap: clamp(3rem, 8vw, 8rem);
}

.policy-sidebar {
  align-self: start;
  position: sticky;
  top: 2rem;
}

.policy-sidebar h1 {
  margin: 1rem 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5.7rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

.policy-date {
  color: var(--muted);
}

.policy-copy section {
  padding: 0 0 2.5rem;
  border-bottom: 1px solid var(--rule);
}

.policy-copy section + section {
  padding-top: 2.5rem;
}

.policy-copy h2 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.policy-copy p,
.policy-copy li {
  max-width: 54rem;
}

.release-list {
  border-top: 1px solid var(--ink);
}

.release {
  padding: clamp(2rem, 6vw, 5rem) 0;
  display: grid;
  grid-template-columns: minmax(180px, 0.35fr) minmax(0, 1fr);
  gap: clamp(2rem, 7vw, 7rem);
  border-bottom: 1px solid var(--ink);
}

.release-heading h2 {
  margin: 0.4rem 0;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 7vw, 6.5rem);
  letter-spacing: -0.07em;
  line-height: 0.85;
}

.release-heading time {
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: none;
}

.release-notes section + section {
  margin-top: 2.5rem;
}

.release-notes h3 {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.35rem 0.6rem;
  background: var(--acid);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.release-notes li + li {
  margin-top: 0.7rem;
}

.error-page {
  min-height: calc(100svh - 267px);
  display: grid;
  place-items: center;
}

.error-card {
  max-width: 900px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--coral);
  font-family: var(--mono);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.1em;
  line-height: 0.8;
}

.error-card h1 {
  margin: 1rem 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1050px) {
  .site-header {
    align-items: flex-start;
    padding: 1rem 0;
  }

  .site-header nav {
    max-width: 560px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .hero-stage {
    min-height: 630px;
  }

  .result-block--carousel,
  .result-block--video {
    grid-template-columns: 1fr 1fr;
  }

  .screen-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .screen-gallery figure:nth-child(even) {
    margin-top: 3rem;
  }
}

@media (max-width: 760px) {
  .apps-bar__inner,
  .site-header,
  footer,
  .hero,
  .results,
  .features,
  .page-main {
    width: min(100% - 2rem, 1480px);
  }

  .apps-bar__inner {
    min-height: 0;
    padding: 0.65rem 0;
    align-items: flex-start;
  }

  .apps-label span:last-child {
    display: none;
  }

  .apps-nav {
    max-width: calc(100vw - 4.5rem);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .apps-nav::-webkit-scrollbar,
  .site-header nav::-webkit-scrollbar {
    display: none;
  }

  .app-link {
    padding: 0.38rem 0.5rem;
    font-size: 0.59rem;
  }

  .app-link.is-current {
    order: -1;
  }

  .site-header {
    min-height: 0;
    display: block;
    padding: 1rem 0;
  }

  .site-header nav {
    margin-top: 1rem;
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    scrollbar-width: none;
  }

  .hero {
    min-height: 0;
    grid-template-columns: 1fr;
    padding-top: 3.5rem;
  }

  .hero h1 {
    font-size: clamp(4rem, 20vw, 6.3rem);
  }

  .hero-stage {
    min-height: 610px;
  }

  .photo-ribbon {
    right: -25vw;
    left: -25vw;
    height: 220px;
  }

  .phone-shot--hero {
    width: min(280px, 70vw);
  }

  .hero-sticker {
    right: 2%;
    width: 86px;
    height: 86px;
    font-size: 0.82rem;
  }

  .statement,
  .privacy-callout {
    grid-template-columns: 1fr;
  }

  .statement {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .statement h2 {
    font-size: clamp(3.5rem, 17vw, 5.5rem);
  }

  .section-heading h2 {
    font-size: clamp(3.5rem, 16.5vw, 5.8rem);
  }

  .result-block--carousel,
  .result-block--video {
    grid-template-columns: 1fr;
  }

  .result-block--video .motion-demo {
    order: 2;
  }

  .result-block--video .result-copy {
    order: 1;
  }

  .instagram-shell,
  .motion-demo {
    box-shadow: 9px 10px 0 var(--coral);
  }

  .motion-demo {
    box-shadow: 9px 10px 0 var(--acid);
  }

  .motion-viewport {
    width: min(310px, 88%);
  }

  @keyframes pan-scene {
    0%, 8% { transform: translateX(0); }
    32% { transform: translateX(-18%); }
    50% { transform: translateX(-32%); }
    72% { transform: translateX(-50%); }
    92%, 100% { transform: translateX(calc(-100% + 310px)); }
  }

  .inside {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .screen-gallery {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0 0.5rem 1.5rem;
  }

  .screen-gallery figure,
  .screen-gallery figure:nth-child(even) {
    min-width: 72vw;
    margin-top: 0;
    scroll-snap-align: center;
  }

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

  .feature-grid article:nth-child(odd) {
    background: rgba(255, 252, 246, 0.35);
  }

  .feature-grid article:nth-child(even) {
    background: var(--paper-deep);
  }

  .privacy-callout {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  footer {
    min-height: 150px;
    padding: 2rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  footer div {
    flex-wrap: wrap;
  }

  .feedback-layout,
  .policy-layout,
  .release {
    grid-template-columns: 1fr;
  }

  .feedback-aside,
  .policy-sidebar {
    position: static;
  }

  .kind-options {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .app-link--latest,
  .app-link--visa {
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }

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

  .hero-stage {
    min-height: 560px;
  }

  .phone-shot--hero {
    width: 250px;
  }

  .feature-grid article {
    min-height: 0;
  }

  .field-meta {
    display: block;
  }
}

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

  .motion-viewport > img {
    animation: none;
    transform: translateX(-32%);
  }
}
