/* Shamel Customer Service — landing
   Palette drawn from the app icon teal, on warm paper. */

:root {
  --teal: #00a894;
  --teal-bright: #1ec9b5;
  --teal-deep: #04685c;
  --teal-ink: #072924;
  --teal-mist: #d4f3ee;
  --cream: #f3eee4;
  --cream-2: #e7dfd0;
  --paper: #fbf8f1;
  --ink: #12211f;
  --ink-soft: #3d4f4c;
  --gold: #c4a35a;
  --gold-dim: rgba(196, 163, 90, 0.45);
  --white: #ffffff;
  --device: #141414;
  --shadow: 0 28px 60px -24px rgba(7, 41, 36, 0.45);
  /* Active: Thmanyah. Revert: add data-fonts="google" on <html> and uncomment Google Fonts in index.html */
  --font-display: "Thmanyah Display", "El Messiri", serif;
  --font-body: "Thmanyah Sans", "Cairo", sans-serif;
  --header-h: 76px;
  --wrap: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

html[data-fonts="google"] {
  --font-display: "El Messiri", "Cairo", serif;
  --font-body: "Cairo", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

::selection {
  background: var(--teal);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

body::before {
  content: "";
  position: fixed;
  inset-block: 0;
  inset-inline-start: clamp(18px, 4vw, 52px);
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold), transparent);
  opacity: 0.35;
  pointer-events: none;
  z-index: 40;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

p {
  margin: 0;
}

.wrap {
  width: min(var(--wrap), calc(100% - clamp(32px, 6vw, 48px)));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -40px;
  z-index: 100;
  background: var(--teal-ink);
  color: var(--paper);
  padding: 8px 14px;
}

.skip-link:focus {
  top: 12px;
}

/* Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid color-mix(in srgb, var(--teal-ink) 8%, transparent);
}

.nav-backdrop {
  display: none;
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 16px -10px var(--teal-deep);
  flex-shrink: 0;
}

.brand span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: max-content;
}

.brand strong,
.brand small {
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
  white-space: nowrap;
}

.brand strong {
  font-family: var(--font-display);
  font-weight: 1000;
}

.brand small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.70rem;
  color: var(--ink-soft);
}

.nav {
  display: flex;
  gap: 22px;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -6px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1.4rem;
  transition: transform 0.2s var(--ease), background 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-solid {
  background: var(--teal-deep);
  color: var(--paper);
  box-shadow: 0 10px 24px -12px var(--teal-deep);
}

.btn-solid:hover {
  background: var(--teal-ink);
}

.header-cta {
  padding-block: 0.65rem;
  font-size: 0.92rem;
}

.site-header .company-logo {
  margin-inline-start: auto;
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.nav-toggle span {
  position: absolute;
  inset-inline: 12px;
  height: 2px;
  background: var(--ink);
  transition: 0.2s var(--ease);
}

.nav-toggle span:first-child {
  top: 17px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  top: 21px;
  transform: rotate(-45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  top: 21px;
  transform: rotate(45deg);
}

/* Hero
   ------------------------------------------------------------------ */
.hero-block {
  display: flex;
  flex-direction: column;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 80px;
  background: var(--cream);
}

@media (min-width: 961px) and (min-height: 720px) {
  .hero-block {
    min-height: calc(100svh - var(--header-h));
  }

  .hero {
    flex: 1;
    min-height: 0;
    display: grid;
    align-items: center;
    padding: 32px 0 40px;
  }
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--teal-deep);
  margin-bottom: 14px;
}

.eyebrow.light {
  color: var(--teal-bright);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 0 rgba(0, 168, 148, 0.6);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 10px transparent;
  }
}

.hero h1 {
  font-size: clamp(2.1rem, 4.6vw, 4.1rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: normal;
  background-image: linear-gradient(
    transparent 64%,
    color-mix(in srgb, var(--gold) 70%, transparent) 64%
  );
}

.hero h1 span {
  display: block;
  font-size: clamp(1rem, 2.2vw, 1.7rem);
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 8px;
  line-height: 1.45;
}

.lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 42ch;
}

.cta-note {
  margin-top: 16px;
  font-weight: 600;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero-desktop-cta p {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.store-link img {
  height: auto;
  width: auto;
  max-height: 52px;
  max-width: min(100%, 200px);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.18));
  transition: transform 0.2s var(--ease);
}

.store-link:hover img {
  transform: translateY(-2px);
}

.store-link.lg img {
  max-height: 64px;
}

/* Device + orbit
   ------------------------------------------------------------------ */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(560px, 70vw);
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
}

.hero-glow {
  position: absolute;
  width: min(420px, 90%);
  aspect-ratio: 1;
  height: auto;
  background: radial-gradient(circle, rgba(30, 201, 181, 0.42), rgba(0, 168, 148, 0.18) 42%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.orbit {
  position: absolute;
  width: min(520px, 100%);
  height: auto;
  animation: spin 28s linear infinite;
}

.orbit text {
  fill: var(--teal-deep);
  font-family: var(--font-body);
  font-size: 7.2px;
  letter-spacing: 1.4px;
}

@keyframes spin {
  to {
    transform: rotate(-360deg);
  }
}

.rings {
  position: absolute;
  width: min(340px, 72%);
  aspect-ratio: 1;
  height: auto;
}

.rings span {
  position: absolute;
  inset: 0;
  border: 1px solid color-mix(in srgb, var(--teal) 35%, transparent);
  border-radius: 50%;
  animation: ring 3.6s var(--ease) infinite;
}

.rings span:nth-child(2) {
  animation-delay: 1.2s;
}

.rings span:nth-child(3) {
  animation-delay: 2.4s;
}

@keyframes ring {
  from {
    transform: scale(0.72);
    opacity: 0.7;
  }
  to {
    transform: scale(1.25);
    opacity: 0;
  }
}

.device {
  position: relative;
  width: 250px;
  aspect-ratio: 9 / 19.4;
  padding: 9px;
  border-radius: 38px;
  background: linear-gradient(160deg, #2a2a2a, #0d0d0d);
  box-shadow:
    var(--shadow),
    inset 0 0 0 1px #3a3a3a,
    0 0 0 1px #111;
  z-index: 1;
}

.device img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px;
  background: #f5f5f5;
}

.device-hero {
  width: min(270px, 58%);
  animation: float 5.5s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* Ribbon
   ------------------------------------------------------------------ */
.ribbon {
  background: var(--teal-ink);
  color: var(--cream);
  overflow: hidden;
  padding: 16px 0;
  border-block: 1px solid color-mix(in srgb, var(--gold) 35%, transparent);
}

.ribbon-track {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  font-weight: 600;
  font-size: 0.95rem;
}

.ribbon .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}

/* Features
   ------------------------------------------------------------------ */
.features {
  padding: 96px 0;
  background: var(--paper);
}

.section-head {
  max-width: 38rem;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  margin: 6px 0 12px;
}

.section-head p:last-child {
  color: var(--ink-soft);
}

.section-head.invert {
  color: var(--paper);
}

.section-head.invert p:last-child {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.feature {
  background: var(--cream);
  border: 1px solid color-mix(in srgb, var(--teal-ink) 8%, transparent);
  border-radius: 28px;
  padding: 28px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 18px;
  align-items: start;
  transition: border-color 0.2s, transform 0.2s var(--ease);
}

.feature:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}

.feature-wide {
  grid-column: 1 / -1;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--teal-mist) 70%, var(--paper)), var(--paper) 55%);
}

.feature .num {
  font-family: var(--font-display);
  color: var(--gold);
  font-weight: 700;
  font-size: 1.1rem;
}

.feature h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.feature p {
  color: var(--ink-soft);
  max-width: 52ch;
}

.feat-icon {
  width: 48px;
  height: 48px;
  color: var(--teal-deep);
}

/* Install / video
   ------------------------------------------------------------------ */
.install {
  position: relative;
  padding: 100px 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(30, 201, 181, 0.16), transparent 50%),
    var(--teal-ink);
  color: var(--paper);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}

.install h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  margin: 8px 0 14px;
}

.install-copy > p {
  color: color-mix(in srgb, var(--paper) 76%, transparent);
}

.steps {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-weight: 600;
}

.steps span {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gold);
  color: var(--teal-ink);
  font-size: 0.9rem;
}

.video-frame {
  position: relative;
}

.video-frame::before,
.video-frame::after {
  content: "";
  position: absolute;
  width: 70px;
  height: 70px;
  border: 1px solid var(--gold-dim);
  pointer-events: none;
}

.video-frame::before {
  top: -12px;
  inset-inline-start: -12px;
  border-left: 0;
  border-bottom: 0;
}

.video-frame::after {
  bottom: -12px;
  inset-inline-end: -12px;
  border-right: 0;
  border-top: 0;
}

.video-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  border: 1px solid color-mix(in srgb, var(--gold) 28%, transparent);
}

.video-facade,
.video-shell iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-facade {
  padding: 0;
  cursor: pointer;
  background: #041c19;
  display: block;
  color: inherit;
  text-decoration: none;
  border: 0;
}

.video-facade img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.85);
}

.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 168, 148, 0.45);
  transition: transform 0.2s var(--ease);
}

.play svg {
  width: 28px;
  height: 28px;
  fill: var(--teal-ink);
  margin-inline-start: 3px;
}

.video-facade:hover .play {
  transform: scale(1.06);
}

.play-label {
  position: absolute;
  bottom: 18px;
  inset-inline: 0;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Preview / phones
   ------------------------------------------------------------------ */
.preview {
  padding: 100px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(0, 168, 148, 0.12), transparent 50%),
    var(--cream);
}

.phone-fan {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 18px;
  padding: 24px 0 40px;
  perspective: 1200px;
}

.phone-fan .device {
  width: min(230px, 28vw);
}

.tilt-right {
  transform: rotate(-11deg) translateY(36px);
}

.tilt-left {
  transform: rotate(11deg) translateY(36px);
}

.tilt-none {
  transform: translateY(-8px);
  z-index: 2;
  width: min(250px, 32vw) !important;
}

/* Download
   ------------------------------------------------------------------ */
.download {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 48px 0 56px;
  background:
    linear-gradient(165deg, #0c4740 0%, var(--teal-ink) 48%, #041c19 100%);
  color: var(--paper);
}

.download-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.download-bg .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.download-bg .blob-teal {
  width: min(460px, 54vw);
  height: min(460px, 54vw);
  background: rgba(30, 201, 181, 0.2);
  inset-block-start: -18%;
  inset-inline-end: -10%;
}

.download-bg .blob-gold {
  width: min(360px, 44vw);
  height: min(360px, 44vw);
  background: rgba(196, 163, 90, 0.14);
  inset-block-end: -22%;
  inset-inline-start: -8%;
}

.download-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px 48px;
  align-items: center;
}

.download-intro {
  max-width: 34rem;
}

.download-intro .eyebrow {
  margin-bottom: 10px;
  justify-content: flex-start;
}

.download-intro h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  margin: 0 0 12px;
}

.download-intro > p:not(.download-avail) {
  color: color-mix(in srgb, var(--paper) 76%, transparent);
  font-size: 1.05rem;
  max-width: 36ch;
}

.download-intro .download-avail {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--gold) 38%, transparent);
  background: color-mix(in srgb, var(--gold) 8%, transparent);
  font-size: 0.88rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--paper) 90%, transparent);
}

.download-stage {
  min-width: 0;
}

.download-mobile {
  width: 100%;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 14px;
  padding: 32px 24px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--paper) 8%, transparent),
    color-mix(in srgb, var(--paper) 4%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
}

.download-mobile p {
  color: color-mix(in srgb, var(--paper) 70%, transparent);
}

.qr-board {
  width: 100%;
  padding: 22px;
  border-radius: 28px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--paper) 9%, transparent),
    color-mix(in srgb, var(--paper) 4%, transparent)
  );
  border: 1px solid color-mix(in srgb, var(--gold) 24%, transparent);
  box-shadow: 0 24px 48px -28px rgba(0, 0, 0, 0.5);
}

.qr-lead {
  text-align: start;
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.95rem;
  color: color-mix(in srgb, var(--paper) 84%, transparent);
}

.qr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 16px;
}

.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  height: 100%;
  min-height: 100%;
  padding: 20px 16px 18px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--teal-ink) 55%, #08332e);
  border: 1px solid color-mix(in srgb, var(--paper) 10%, transparent);
  box-shadow: 0 12px 28px -20px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.25s var(--ease),
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.qr-card:hover,
.qr-card:focus-within {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--teal-bright) 70%, var(--gold));
  box-shadow:
    0 18px 36px -18px rgba(30, 201, 181, 0.45),
    0 0 0 1px color-mix(in srgb, var(--teal-bright) 35%, transparent);
}

.qr-card-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.qr-platform-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--teal-bright) 16%, transparent);
  color: var(--teal-bright);
  flex-shrink: 0;
}

.qr-platform-icon svg {
  width: 18px;
  height: 18px;
}

.qr-device {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--paper);
}

.qr-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  background: var(--white);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px -16px rgba(0, 0, 0, 0.4);
}

.qr-card .qr {
  display: block;
  width: 172px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
  object-fit: contain;
}

.qr-card .store-link {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}

.qr-card .store-link img {
  max-height: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  .download[data-reveal] .download-intro,
  .download[data-reveal] .download-stage {
    opacity: 0;
    transform: translateY(18px);
  }

  .download.is-inview .download-intro,
  .download.is-inview .download-stage {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.7s var(--ease),
      transform 0.7s var(--ease);
  }

  .download.is-inview .download-stage {
    transition-delay: 0.12s;
  }
}

/* Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: #041c19;
  color: var(--cream);
  padding: 36px 0 28px;
  border-top: 1px solid color-mix(in srgb, var(--gold) 25%, transparent);
}

.footer-inner {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
}

.site-footer .brand {
  margin: 0;
  color: var(--cream);
}

.site-footer .brand small {
  color: color-mix(in srgb, var(--cream) 65%, transparent);
}

.site-footer .company-logo {
  height: auto;
  max-height: 72px;
  width: auto;
  max-width: min(100%, 420px);
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.legal {
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
}

/* Platform visibility
   ------------------------------------------------------------------ */
html[data-platform="android"] .only-ios,
html[data-platform="android"] .only-desktop,
html[data-platform="ios"] .only-android,
html[data-platform="ios"] .only-desktop,
html[data-platform="desktop"] .only-android,
html[data-platform="desktop"] .only-ios {
  display: none !important;
}

html:not([data-platform]) .only-android,
html:not([data-platform]) .only-ios {
  display: none !important;
}

/* Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero-grid,
  .install-grid {
    gap: 32px;
  }

  .download-layout {
    gap: 28px 32px;
  }

  .header-inner {
    gap: 18px;
  }

  .nav {
    gap: 16px;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 68px;
  }

  .hero-grid,
  .install-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: min(420px, 78vw);
    order: -1;
  }

  .ribbon {
    order: -1;
  }

  .hero-copy {
    text-align: center;
  }

  .eyebrow {
    justify-content: center;
  }

  .lead,
  .cta-note {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .video-frame {
    order: -1;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .feature-wide {
    grid-column: auto;
  }

  body::before {
    display: none;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .features,
  .install,
  .preview {
    padding-block: 72px;
  }

  .download {
    padding-block: 44px 52px;
  }

  .download-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
  }

  .download-intro {
    max-width: none;
    text-align: start;
  }

  .download-intro .eyebrow {
    justify-content: flex-start;
  }

  .download-intro > p:not(.download-avail) {
    max-width: 42ch;
  }

  .hero {
    padding: 28px 0 56px;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    z-index: 60;
    background: var(--paper);
    flex-direction: column;
    padding: 8px 20px 20px;
    gap: 4px;
    border-bottom: 1px solid var(--cream-2);
    box-shadow: var(--shadow);
  }

  .nav.is-open a {
    padding: 12px 8px;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
  }

  .nav-toggle {
    display: block;
  }

  .header-cta {
    padding-block: 0.5rem;
    padding-inline: 0.95rem;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .site-header .company-logo {
    height: 36px;
    max-width: 150px;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgba(7, 41, 36, 0.38);
    z-index: 45;
  }

  .nav-backdrop[hidden] {
    display: none;
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  body {
    font-size: 1rem;
  }

  .brand img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .brand strong,
  .brand small {
    font-size: 0.82rem;
  }

  .hero-visual {
    min-height: min(360px, 88vw);
  }

  .device-hero {
    width: min(210px, 56%);
  }

  .orbit {
    width: min(360px, 96%);
  }

  .feature {
    grid-template-columns: auto 1fr;
    padding: 20px;
    border-radius: 20px;
    gap: 10px 12px;
  }

  .feat-icon {
    width: 36px;
    height: 36px;
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .feature .num {
    grid-row: 1;
  }

  .feature div {
    grid-column: 1 / -1;
  }

  .phone-fan {
    gap: 14px;
    padding: 8px 16px 24px;
    margin-inline: -4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .phone-fan::-webkit-scrollbar {
    display: none;
  }

  .phone-fan .device,
  .tilt-none {
    flex: 0 0 min(210px, 68vw);
    width: min(210px, 68vw) !important;
    scroll-snap-align: center;
    transform: none;
  }

  .qr-board {
    padding: 18px;
    border-radius: 24px;
  }

  .qr-card {
    padding: 18px 14px 16px;
    border-radius: 20px;
  }

  .qr-card .qr {
    width: min(160px, 36vw);
  }

  .ribbon-track {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 16px;
    font-size: 0.82rem;
    scrollbar-width: none;
    padding-inline: 4px;
  }

  .ribbon-track::-webkit-scrollbar {
    display: none;
  }

  .video-frame::before,
  .video-frame::after {
    width: 36px;
    height: 36px;
  }

  .play {
    width: 64px;
    height: 64px;
  }

  .steps li {
    font-size: 0.95rem;
  }

  .download,
  .site-footer {
    padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
  }

  .legal {
    max-width: 36ch;
  }
}

@media (max-width: 540px) {
  .qr-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .qr-card .qr {
    width: min(196px, 62vw);
  }
}

@media (max-width: 420px) {
  .header-cta {
    display: none;
  }

  .site-header .company-logo {
    display: none;
  }

  .nav-toggle {
    margin-inline-start: auto;
  }

  .site-header .brand strong,
  .site-header .brand small {
    white-space: nowrap;
    font-size: 0.78rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 9vw, 2.15rem);
  }

  .device {
    border-radius: 30px;
    padding: 7px;
  }

  .device img {
    border-radius: 24px;
  }
}

@media (min-width: 961px) and (max-height: 800px) {
  .download {
    padding: 36px 0 40px;
  }

  .download-layout {
    gap: 28px 40px;
  }

  .qr-board {
    padding: 18px;
  }

  .qr-card .qr {
    width: min(160px, 100%);
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  .hero {
    min-height: 0;
    padding: 20px 0 36px;
  }

  .hero-visual {
    min-height: 280px;
  }

  .device-hero {
    width: min(180px, 40%);
  }
}

@media (hover: none) {
  .feature:hover,
  .btn:hover,
  .store-link:hover img,
  .qr-card:hover,
  .qr-card:focus-within {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .orbit,
  .rings span,
  .live-dot,
  .device-hero {
    animation: none;
  }

  .feature:hover,
  .btn:hover,
  .store-link:hover img,
  .qr-card:hover,
  .qr-card:focus-within {
    transform: none;
  }
}
