/* AviLab — independent software studio
   Dark, quiet, typographic. Accent used sparingly. */

:root {
  --bg: #0c0d0f;
  --bg-soft: #121316;
  --bg-card: #16181c;
  --bg-header: rgba(12, 13, 15, 0.72);
  --text: #f1f1eb;
  --text-muted: #9b9c96;
  --text-faint: #6e6f6a;
  --line: rgba(241, 241, 235, 0.1);
  --line-strong: rgba(241, 241, 235, 0.16);
  --accent: #c9e86a;
  --accent-hover: #d7f184;
  --accent-ink: #14160f;
  --accent-soft: rgba(201, 232, 106, 0.12);
  --brass: #c4a574;
  --sea: #1a2420;
  --blue: #4aa3ff;
  --danger: #e15d4f;
  --radius: 14px;
  --radius-sm: 10px;
  --wrap: 1120px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-apple: cubic-bezier(0.25, 0.1, 0.25, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
}

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

html {
  color-scheme: dark;
  overflow-x: hidden;
  overflow-anchor: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html.is-booting {
  overflow: hidden;
}

html.is-scroll-ready {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-anchor: none;
  max-width: 100%;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
  max-width: 100%;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Header
   -------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--bg-header);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(140%) blur(20px);
  -webkit-backdrop-filter: saturate(140%) blur(20px);
  transition: background 320ms var(--ease-apple), border-color 320ms var(--ease-apple);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(12, 13, 15, 0.88);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  font-weight: 620;
  letter-spacing: 0;
  font-size: 17px;
  flex-shrink: 0;
}

.wordmark:hover {
  color: var(--text);
}

.wordmark-text {
  letter-spacing: -0.03em;
  white-space: nowrap;
  word-spacing: 0;
}

.wordmark-lab {
  color: var(--accent);
  margin: 0;
  padding: 0;
}

.wordmark img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  margin-inline-end: 10px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  transition: color 200ms var(--ease-apple), background 200ms var(--ease-apple);
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-links a[aria-current="location"] {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.lang-switch a {
  color: var(--text-faint);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 6px 8px;
  border-radius: 8px;
}

.lang-switch a:hover,
.lang-switch a[aria-current="true"] {
  color: var(--accent);
}

/* Hero
   -------------------------------------------------- */

.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 48px;
  align-items: end;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 6.2vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 620;
  max-width: 12ch;
  overflow-wrap: break-word;
  animation: av-rise 900ms var(--ease) both;
}

.hero-lead {
  margin: 22px 0 0;
  max-width: 38ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  animation: av-rise 900ms var(--ease) 90ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  animation: av-rise 900ms var(--ease) 160ms both;
}

.hero-note {
  margin: 28px 0 0;
  color: var(--text-faint);
  font-size: 13px;
}

/* Studio pipeline: shipped → reviewing → building */

.pipeline {
  padding: 8px 0 24px;
}

.pipeline-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr);
  align-items: stretch;
  gap: 0 12px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--bg-soft);
}

.pipeline-step {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  display: block;
  border-radius: 10px;
  transition: transform 280ms var(--ease-apple);
}

.pipeline-step:hover {
  color: inherit;
  transform: translateY(-1px);
}

.pipeline-step:hover .pipeline-name {
  color: var(--accent);
}

.pipeline-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.pipeline-status {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.pipeline-name {
  margin: 6px 0 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.pipeline-step.is-live .pipeline-status { color: var(--accent); }
.pipeline-step.is-review .pipeline-status { color: var(--brass); }
.pipeline-step.is-build .pipeline-status { color: var(--text-muted); }

.pipeline-rule {
  align-self: center;
  height: 1px;
  background: var(--line-strong);
}

.hero-stack {
  position: relative;
  height: 360px;
  max-width: 100%;
  overflow: hidden;
  animation: av-rise 1100ms var(--ease) 140ms both;
}

.hero-stack .card-icon {
  position: absolute;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: av-float 9s var(--ease-apple) infinite;
}

.hero-stack .card-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-stack .card-icon:nth-child(1) {
  left: 18%;
  top: 18px;
  transform: rotate(-8deg);
  animation-duration: 8.5s;
}

.hero-stack .card-icon:nth-child(2) {
  left: 48%;
  top: 88px;
  transform: rotate(7deg);
  animation-duration: 10s;
  animation-delay: 0.6s;
}

.hero-stack .card-icon:nth-child(3) {
  left: 28%;
  top: 186px;
  transform: rotate(2deg);
  animation-duration: 9s;
  animation-delay: 1.1s;
}

.hero-stack .card-icon:nth-child(4) {
  left: 58%;
  top: 200px;
  width: 96px;
  height: 96px;
  transform: rotate(-6deg);
  animation-duration: 9.5s;
  animation-delay: 0.3s;
}

/* Buttons
   -------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
}

.btn:hover {
  color: inherit;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: rgba(241, 241, 235, 0.32);
}

.btn:active {
  transform: translateY(1px);
}

.store-badge {
  display: inline-flex;
  line-height: 0;
  border-radius: 8px;
}

.store-badge img {
  height: 44px;
  width: auto;
}

.store-badge.is-pending {
  opacity: 0.55;
  pointer-events: none;
}

/* Apps
   -------------------------------------------------- */

.section {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.04em;
  font-weight: 600;
}

.app-featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 28px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 22px;
  align-items: start;
  overflow: visible;
  transition: border-color 280ms var(--ease-apple);
}

.app-featured:hover {
  border-color: var(--line-strong);
}

.app-featured + .app-featured {
  margin-top: 20px;
}

.app-featured.has-wide-shots {
  grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
}

.app-featured.is-review {
  border-color: rgba(196, 165, 116, 0.28);
}

.app-copy {
  min-width: 0;
}

.app-copy h3 {
  margin: 10px 0 6px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.app-title-link {
  color: inherit;
  text-decoration: none;
}

.app-title-link:hover {
  color: inherit;
}

.app-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 4px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.chip-live {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: transparent;
  font-weight: 650;
}

.chip-soon {
  color: var(--brass);
  border-color: rgba(196, 165, 116, 0.35);
}

.chip-build {
  color: var(--text-muted);
}

.app-copy p {
  margin: 0 0 12px;
  color: var(--text-muted);
  max-width: 44ch;
}

.app-copy p.app-lede {
  margin: 8px 0 12px;
  color: var(--text);
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  line-height: 1.35;
  max-width: 28ch;
}

.app-points {
  margin: 4px 0 16px;
  padding: 0;
  list-style: none;
  max-width: 44ch;
}

.app-points li {
  position: relative;
  margin: 0;
  padding: 5px 0 5px 14px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.4;
}

.app-points li + li {
  border-top: 1px solid var(--line);
}

.app-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: var(--accent);
}

.app-copy p.app-price {
  margin: 0 0 18px;
  max-width: 44ch;
  color: var(--text-faint);
  font-size: 13.5px;
  line-height: 1.45;
}

.app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.app-art {
  border-radius: 18px;
  overflow: hidden;
  background: #10130e;
  border: 1px solid var(--line);
}

.device-stage,
.shot-carousel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-width: 0;
  width: 100%;
}

.shot-frame {
  width: min(280px, 100%);
  touch-action: pan-y;
  user-select: none;
  cursor: zoom-in;
}

.shot-frame.is-wide {
  width: min(440px, 100%);
}

.shot-slides {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.shot-slide {
  grid-area: 1 / 1;
  margin: 0;
  width: 100%;
}

.device-iphone.shot-slide:not(.is-active) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
  transform: scale(0.985);
}

.device-iphone.shot-slide.is-active {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 1;
  transform: none;
}

.shot-carousel.is-ready .device-iphone.shot-slide {
  transition: opacity 480ms var(--ease-apple), visibility 480ms var(--ease-apple), transform 480ms var(--ease-apple);
}

.device-iphone {
  width: 100%;
  margin: 0;
  padding: 5px;
  background: #070807;
  border: 1px solid rgba(241, 241, 235, 0.14);
  border-radius: 34px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.38);
}

.device-iphone img {
  width: 100%;
  height: auto;
  border-radius: 29px;
  background: #000;
  -webkit-user-drag: none;
}

.device-iphone.is-landscape {
  border-radius: 22px;
  padding: 4px;
}

.device-iphone.is-landscape img {
  border-radius: 18px;
}

.shot-ui {
  display: none;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}

.shot-carousel.is-ready .shot-ui {
  display: flex;
}

.shot-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  transition: border-color 200ms var(--ease-apple), color 200ms var(--ease-apple), transform 200ms var(--ease-apple);
}

.shot-btn:active {
  transform: scale(0.94);
}

.shot-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.shot-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  align-items: center;
  max-width: 140px;
}

.shot-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(241, 241, 235, 0.28);
  cursor: pointer;
  transition: width 280ms var(--ease-apple), background 280ms var(--ease-apple);
}

.shot-dot[aria-selected="true"] {
  background: var(--accent);
  width: 18px;
}

.app-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease);
}

.app-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.app-card .app-art {
  border: 0;
  border-radius: 0;
  min-height: 220px;
}

.app-card .app-art img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: top center;
}

.app-card-body {
  padding: 22px 22px 24px;
}

.app-card-body h3 {
  margin: 8px 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.app-card-body p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.icon-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* About / philosophy / support
   -------------------------------------------------- */

.about {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}

.about p {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 46ch;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.principle {
  padding: 8px 8px 0 0;
}

.principle .num {
  display: block;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}

.principle h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.principle p {
  margin: 0;
  color: var(--text-muted);
}

.support-box {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-soft);
}

.support-box h2 {
  margin: 0 0 10px;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.support-box p {
  margin: 0;
  color: var(--text-muted);
}

.mail {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--accent);
  overflow-wrap: anywhere;
  min-width: 0;
}

.mail:hover {
  color: var(--accent);
}

/* Footer
   -------------------------------------------------- */

.site-footer {
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 28px;
}

.footer-brand strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-end;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.copyright {
  margin: 28px 0 0;
  color: var(--text-faint);
  font-size: 13px;
}

/* Legal
   -------------------------------------------------- */

.legal-hero {
  padding: 56px 0 12px;
}

.legal-hero h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.045em;
}

.legal-body {
  padding: 24px 0 80px;
  max-width: 68ch;
}

.legal-meta {
  margin: 10px 0 0;
  color: var(--text-faint);
  font-size: 14px;
}

.legal-toc {
  margin: 28px 0 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-soft);
}

.legal-toc p {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc ol {
  margin: 0;
  padding-left: 1.2em;
}

.legal-toc li + li {
  margin-top: 6px;
}

.legal-toc a {
  color: var(--text-muted);
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--accent);
}

.legal-body h2,
.legal-body h3 {
  scroll-margin-top: calc(var(--header-h) + 18px);
}

.legal-body h2 {
  margin: 36px 0 10px;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.legal-body h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-body p,
.legal-body li {
  color: var(--text-muted);
}

.legal-body strong {
  color: var(--text);
  font-weight: 600;
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.2em;
}

.legal-body li + li {
  margin-top: 6px;
}

.legal-status {
  display: inline-flex;
  align-items: center;
  margin: 0 0 8px;
  padding: 0 10px;
  min-height: 24px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.legal-note {
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 14px;
}

.legal-foot {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--text-faint);
}

.error-page {
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 20px;
}

.error-page h1 {
  margin: 0 0 12px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.05em;
}

.error-page .btn {
  margin-top: 8px;
}

/* Reveal
   -------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px) scale(0.985);
  animation: none;
}

[data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}

@keyframes av-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes av-float {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}

html.is-sheet-open,
body.is-sheet-open {
  overflow: hidden;
}

.shot-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  background: rgba(6, 7, 8, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  visibility: hidden;
  touch-action: none;
  transition: opacity 420ms var(--ease-apple), visibility 420ms var(--ease-apple), background 420ms var(--ease-apple), backdrop-filter 420ms var(--ease-apple);
}

.shot-sheet.is-open {
  opacity: 1;
  visibility: visible;
  background: rgba(6, 7, 8, 0.72);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}

.shot-sheet-close {
  position: absolute;
  top: max(14px, env(safe-area-inset-top));
  right: 16px;
  z-index: 21;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(241, 241, 235, 0.12);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.shot-sheet-close:hover {
  background: rgba(241, 241, 235, 0.2);
}

.shot-sheet-phone {
  margin: 0;
  width: min(380px, calc(100vw - 108px));
  max-height: min(86dvh, 920px);
  padding: 6px;
  background: #070807;
  border: 1px solid rgba(241, 241, 235, 0.16);
  border-radius: 40px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
  transform-origin: center center;
  touch-action: none;
  z-index: 1;
  position: relative;
}

.shot-sheet-phone img {
  width: 100%;
  height: auto;
  max-height: calc(min(86dvh, 920px) - 12px);
  object-fit: contain;
  border-radius: 34px;
  background: #000;
  -webkit-user-drag: none;
  user-select: none;
}

.shot-sheet-phone.is-wide {
  width: min(920px, calc(100vw - 72px));
  border-radius: 24px;
}

.shot-sheet-phone.is-wide img {
  border-radius: 18px;
  max-height: calc(min(82dvh, 720px) - 12px);
}

.shot-sheet-nav {
  position: absolute;
  top: 50%;
  z-index: 20;
  width: 52px;
  height: 52px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(241, 241, 235, 0.16);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  pointer-events: auto;
}

.shot-sheet-nav.is-prev {
  left: max(12px, env(safe-area-inset-left));
}

.shot-sheet-nav.is-next {
  right: max(12px, env(safe-area-inset-right));
}

.shot-sheet-nav:hover {
  background: rgba(241, 241, 235, 0.2);
}

.shot-sheet-nav:active {
  transform: translateY(-50%) scale(0.94);
}

.shot-sheet-count {
  position: absolute;
  left: 50%;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 2;
  margin: 0;
  transform: translateX(-50%);
  color: rgba(241, 241, 235, 0.72);
  font-size: 13px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

#apps,
#about,
#support,
/* Product landing (Car Wallet)
   -------------------------------------------------- */

.product-hero {
  padding: 48px 0 24px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 36px;
  align-items: start;
}

.product-hero h1 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  letter-spacing: -0.045em;
  font-weight: 600;
  line-height: 1.12;
  max-width: 18ch;
}

.product-hero .app-lede {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.35;
  max-width: 28ch;
}

.product-seo-lead {
  margin: 0 0 22px;
  color: var(--text-muted);
  max-width: 44ch;
}

.app-icon-lg {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.product-body {
  padding: 12px 0 88px;
  max-width: 68ch;
}

.product-block {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}

.product-block h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.product-block p {
  margin: 0 0 12px;
  color: var(--text-muted);
}

.product-block p:last-child {
  margin-bottom: 0;
}

.faq-list {
  margin-top: 8px;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: var(--text-faint);
  font-weight: 500;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  margin: 0 0 16px;
  padding-right: 28px;
  color: var(--text-muted);
}

#car-wallet,
#sea-battle,
#tank-84,
#supka,
#philosophy,
#faq,
#pricing {
  scroll-margin-top: calc(var(--header-h) + 14px);
}

/* Responsive
   -------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid,
  .app-featured,
  .app-featured.has-wide-shots,
  .product-hero-grid,
  .about-grid,
  .app-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    height: auto;
  }

  .header-inner {
    min-height: var(--header-h);
    flex-wrap: wrap;
    padding: 8px 0;
    gap: 8px 12px;
  }

  .header-tools {
    margin-left: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .hero-stack {
    height: 240px;
    max-width: min(420px, 100%);
  }

  .hero-stack .card-icon:nth-child(2) {
    top: 64px;
  }

  .hero-stack .card-icon:nth-child(3) {
    top: 132px;
  }

  .hero-stack .card-icon:nth-child(4) {
    top: 148px;
    left: 56%;
  }

  .shot-frame {
    width: min(250px, 100%);
  }

  .shot-frame.is-wide {
    width: min(100%, 440px);
  }

  .support-box {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 48px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--wrap), calc(100% - 28px));
  }

  .pipeline-track {
    grid-template-columns: 1fr;
  }

  .pipeline-rule {
    width: 1px;
    height: 16px;
    justify-self: start;
    margin-left: 2px;
  }

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

  .nav-links a {
    padding: 8px 8px;
    font-size: 13px;
  }

  .lang-switch {
    margin-left: 0;
    padding-left: 8px;
  }

  .shot-frame {
    width: min(220px, 100%);
  }

  .shot-frame.is-wide {
    width: 100%;
  }

  .app-featured,
  .support-box {
    padding: 20px;
  }

  .hero-stack .card-icon {
    width: 84px;
    height: 84px;
    border-radius: 22px;
  }

  body {
    font-size: 16px;
  }
}

@media (min-width: 1400px) {
  :root {
    --wrap: 1240px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .hero h1,
  .hero-lead,
  .hero-actions,
  .hero-stack,
  .hero-stack .card-icon {
    animation: none;
  }

  .shot-sheet,
  .shot-sheet-phone {
    transition: none;
  }

  .app-card:hover,
  .btn:active {
    transform: none;
  }

  .shot-slide {
    transition: none;
  }
}
