/* Atero marketing site — shared tokens and layout (WEB-2A) */

:root {
  --bg: #0a1020;
  --panel: #0a1020;
  --text: #f3f4f6;
  --muted: #9ca3af;
  --accent: #cfb87c;
  --accent-2: #c1a65c;
  --good: #cfb87c;
  --bad: #ff8d8d;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-card: rgba(17, 24, 39, 0.55);
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke-accent: rgba(207, 184, 124, 0.28);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wrap: min(1200px, calc(100% - 2.5rem));
  --radius: 18px;
  --focus: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent);
  --band-panel: #0a1020;
  --explore-phone: clamp(210px, 22vw, 260px);
  --native-phone: clamp(160px, 16vw, 200px);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .showcase-panel,
  .device-shot img {
    transition: none !important;
  }
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

a:focus-visible,
button:focus-visible,
[tabindex="0"]:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

/* —— Header —— */
.site-header {
  padding: 1rem 0;
  border-bottom: 1px solid var(--stroke);
  background: rgba(10, 16, 32, 0.55);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.site-header .nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--stroke);
  color: var(--text);
  border-radius: 10px;
  padding: 0.55rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
}

.site-header .navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
  align-items: center;
  font-size: 0.88rem;
}

.site-header .navlinks > a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
}

.site-header .navlinks > a:hover {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: underline;
}

.site-header .nav-download__toggle {
  color: #CFB87C;
  text-decoration: none;
  font-weight: 600;
}

.site-header .nav-download__toggle:hover {
  color: #CFB87C;
  text-decoration: underline;
}

.site-header .navlinks a:focus-visible,
.site-header .nav-toggle:focus-visible,
.site-header .nav-download__toggle:focus-visible,
.site-header .nav-download__item:focus-visible,
.showcase-tab:focus-visible,
.hero-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-download {
  position: relative;
}

.nav-download__toggle {
  appearance: none;
  background: transparent;
  border: none;
  padding: 0;
  font: inherit;
  font-size: inherit;
  cursor: pointer;
  color: #CFB87C;
  font-weight: 600;
}

.nav-download__caret {
  margin-left: 0.15em;
  color: inherit;
}

.nav-download__panel {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 8.5rem;
  margin-top: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: rgba(10, 16, 32, 0.96);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nav-download__panel[hidden] {
  display: none !important;
}

.nav-download__item {
  display: block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  background: transparent;
  border: none;
  padding: 0.2rem 0;
  text-align: left;
  font-family: inherit;
}

.nav-download__item:hover:not(.is-disabled) {
  text-decoration: underline;
}

.nav-download__item.is-disabled,
.nav-download__item[aria-disabled="true"] {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 820px) {
  .site-header .nav-toggle {
    display: inline-flex;
  }
  .site-header .navlinks {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.75rem 0 0.25rem;
    gap: 0.75rem;
  }
  .site-header .navlinks.is-open {
    display: flex;
  }
  .site-header .nav {
    flex-wrap: wrap;
  }
  .nav-download {
    width: 100%;
  }
  .nav-download__panel {
    position: static;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    margin-top: 0.35rem;
    padding-left: 0.85rem;
  }
}

@media (min-width: 821px) {
  .nav-download__panel {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    margin-top: 0.4rem;
  }
}

/* —— Sections / full-bleed bands —— */
main {
  flex: 1;
  padding-bottom: 0;
}

.band {
  width: 100%;
  position: relative;
}

.band--navy,
.band--panel,
.band--cta {
  background: var(--band-panel);
}

.band--hero {
  background:
    radial-gradient(ellipse 70% 55% at 78% 42%, rgba(207, 184, 124, 0.12), transparent 58%),
    radial-gradient(ellipse 50% 40% at 12% 80%, rgba(90, 120, 200, 0.08), transparent 55%),
    var(--band-panel);
  overflow-x: clip;
}

.section {
  padding: clamp(2.75rem, 6vw, 4.75rem) 0;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-lead {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 42rem;
  line-height: 1.55;
}

.section-lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section--center {
  text-align: center;
}

/* —— Store badges —— */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
}

.store-badges--center {
  justify-content: center;
}

.store-badges img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.store-badges a {
  display: inline-block;
  text-decoration: none;
}

/* —— Hero —— */
.hero {
  padding: clamp(2.25rem, 5vw, 3.75rem) 0 clamp(2.75rem, 6vw, 4.25rem);
}

.hero > .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.hero-brand {
  margin: 0 0 0.55rem;
  color: #CFB87C;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: none;
}

.hero-tagline {
  margin: 0 0 1rem;
  color: var(--text);
  font-size: clamp(1.25rem, 2.6vw, 2.125rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 100%;
}

.hero-sub {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36rem;
  line-height: 1.55;
}

.hero-carousel {
  min-width: 0;
}

.hero-stage {
  position: relative;
  width: 100%;
  height: clamp(400px, 36vw, 520px);
  margin: 0 auto;
  max-width: min(100%, 640px);
}

.hero-stage .showcase-panel {
  position: absolute;
  inset: 0;
  margin: 0;
}

.hero-stage .showcase-panel[hidden] {
  display: block !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.hero-stage .showcase-panel.is-active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-stage .showcase-panel {
    transition: opacity 0.35s ease;
  }
}

.hero-fan {
  --fan-offset-near: clamp(78px, 8vw, 125px);
  --fan-offset-far: clamp(145px, 14vw, 220px);
  --device-shell-bg: #111827;
  --device-shell-border: #5c5342;
  --device-shell-inset: #0a0d12;
  --device-screen-bg: #0b1017;
  --device-shell-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  --device-shell-padding: clamp(5px, 0.8vw, 9px);
  position: relative;
  width: min(100%, clamp(520px, 48vw, 720px));
  height: 100%;
  margin: 0 auto;
  overflow: visible;
  isolation: isolate;
}

.hero-fan::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 0;
  width: min(92%, 560px);
  height: 78%;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse 58% 62% at 50% 52%,
    rgba(207, 184, 124, 0.1),
    transparent 72%
  );
  pointer-events: none;
}

.hero-fan__phone {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  height: 90%;
  width: auto;
  aspect-ratio: 9 / 19.5;
  border-radius: clamp(20px, 2.8vw, 32px);
  border: 1px solid var(--device-shell-border);
  background: var(--device-shell-bg);
  padding: var(--device-shell-padding);
  box-shadow:
    0 0 0 1px var(--device-shell-inset) inset,
    var(--device-shell-shadow);
  transform-origin: bottom center;
}

.hero-fan__phone--center {
  z-index: 5;
  height: 100%;
  transform: translateX(-50%) scale(1);
  box-shadow:
    0 0 0 1px var(--device-shell-inset) inset,
    0 16px 42px rgba(0, 0, 0, 0.58);
}

.hero-fan__phone--left-near {
  z-index: 4;
  height: 90%;
  transform: translateX(calc(-50% - var(--fan-offset-near))) rotate(-7deg) scale(0.9);
}

.hero-fan__phone--left-far {
  z-index: 3;
  height: 80%;
  transform: translateX(calc(-50% - var(--fan-offset-far))) rotate(-13deg) scale(0.8);
}

.hero-fan__phone--right-near {
  z-index: 4;
  height: 90%;
  transform: translateX(calc(-50% + var(--fan-offset-near))) rotate(7deg) scale(0.9);
}

.hero-fan__phone--right-far {
  z-index: 3;
  height: 80%;
  transform: translateX(calc(-50% + var(--fan-offset-far))) rotate(13deg) scale(0.8);
}

.hero-fan__screen {
  width: 100%;
  height: 100%;
  border-radius: clamp(18px, 2.6vw, 28px);
  overflow: hidden;
  background: var(--device-screen-bg);
  position: relative;
}

.hero-fan__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  position: relative;
  z-index: 1;
}

.hero-fan__screen.is-missing img,
.hero-fan__screen[data-atero-shot].is-missing > img {
  display: none;
}

.hero-platform-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.65rem;
  gap: 0.35rem;
}

.hero-platform-label {
  margin: 0;
  min-width: 7ch;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  color: rgba(243, 244, 246, 0.72);
}

.hero-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}

.hero-dot {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.hero-dot.is-active,
.hero-dot[aria-selected="true"] {
  background: #CFB87C;
  border-color: #CFB87C;
}

@media (max-width: 900px) {
  .hero > .wrap {
    grid-template-columns: 1fr;
  }
  .hero-copy {
    order: 1;
  }
  .hero-carousel {
    order: 2;
  }
  .hero-stage {
    height: clamp(260px, 48vw, 360px);
  }
  .hero-fan {
    --fan-offset-near: clamp(52px, 8vw, 90px);
    --fan-offset-far: clamp(95px, 14vw, 150px);
    width: min(100%, clamp(300px, 78vw, 480px));
  }
}

@media (max-width: 720px) {
  .hero-stage {
    height: clamp(230px, 58vw, 320px);
  }
  .hero-fan {
    --fan-offset-near: clamp(36px, 8vw, 58px);
    --fan-offset-far: clamp(64px, 13vw, 100px);
    width: min(100%, clamp(260px, 88vw, 360px));
  }
  .hero-fan__phone--left-far,
  .hero-fan__phone--right-far {
    height: 72%;
    opacity: 0.88;
  }
  .hero-fan__phone--left-near,
  .hero-fan__phone--right-near {
    height: 84%;
  }
  .hero-brand {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }
}

/* —— Dual platform —— */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 3vw, 1.75rem);
}

.platform-card {
  background: var(--surface-card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 0.9rem 0.95rem 1rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.platform-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
}

.platform-card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 28rem;
}

.platform-card .shot-frame {
  width: min(100%, var(--native-phone));
  margin: 0 auto;
}

.band--panel .platform-card {
  background: transparent;
  border: 1px solid var(--stroke);
  box-shadow: none;
  padding: 1rem 0.85rem 1.1rem;
}

.shot-frame {
  --device-shell-bg: #111827;
  --device-shell-border: #5c5342;
  --device-shell-inset: #0a0d12;
  --device-screen-bg: #0b1017;
  --device-bezel: clamp(5px, 0.7vw, 8px);
  border-radius: clamp(1rem, 2.4vw, 1.35rem);
  border: 1px solid var(--device-shell-border);
  background: var(--device-shell-bg);
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
  /* Grid stack: definite phone width; img + fallback share one cell */
  display: grid;
  grid-template: 1fr / 1fr;
  place-items: stretch;
  position: relative;
  box-sizing: border-box;
  padding: var(--device-bezel);
  width: min(100%, var(--explore-phone));
  max-width: var(--explore-phone);
  height: auto;
  box-shadow:
    0 0 0 1px var(--device-shell-inset) inset,
    0 12px 28px rgba(0, 0, 0, 0.4);
}

.shot-frame > img,
.shot-frame > .shot-fallback {
  grid-area: 1 / 1;
  min-width: 0;
  min-height: 0;
}

.shot-frame > img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: top center;
  display: block;
  border-radius: clamp(0.75rem, 2vw, 1.05rem);
  background: var(--device-screen-bg);
}

/* Prefer filename fallback until a real image successfully loads */
[data-atero-shot]:not(.has-shot) > img {
  opacity: 0;
  pointer-events: none;
}

[data-atero-shot].has-shot > img {
  opacity: 1;
}

[data-atero-shot].is-missing > img,
.shot-frame.is-missing > img {
  display: none;
}

[data-atero-shot].has-shot > .shot-fallback,
[data-atero-shot].has-shot .shot-fallback {
  display: none;
}

/* Filename checklist fallback (missing assets only — not fake UI) */
.shot-fallback {
  z-index: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  padding: 0.85rem 0.65rem;
  text-align: center;
  border-radius: clamp(0.75rem, 2vw, 1.05rem);
  background:
    linear-gradient(145deg, rgba(207, 184, 124, 0.1), transparent 48%),
    var(--device-screen-bg, #0b1017);
}

.shot-fallback strong {
  display: block;
  color: var(--accent);
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
}

.shot-fallback__file {
  display: block;
  color: var(--muted);
  font-size: clamp(0.68rem, 1.45vw, 0.8rem);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  word-break: break-word;
  max-width: 12.5em;
}

.hero-fan__screen .shot-fallback {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 0.4rem 0.35rem;
}

.hero-fan__screen .shot-fallback strong {
  font-size: clamp(0.48rem, 1.1vw, 0.62rem);
}

.hero-fan__screen .shot-fallback__file {
  font-size: clamp(0.42rem, 1vw, 0.55rem);
  max-width: 9em;
}

.auto-frame .shot-fallback {
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

@media (max-width: 760px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
}

/* —— Showcase shared —— */
.showcase {
  border: 1px solid var(--stroke);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface-card);
  padding: clamp(1rem, 3vw, 1.5rem);
  box-shadow: var(--shadow);
}

.showcase-toolbar {
  margin-bottom: 1.1rem;
}

.showcase-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: 100%;
}

.showcase-tab {
  appearance: none;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 650;
  cursor: pointer;
  min-height: 40px;
}

.showcase-tab.is-active,
.showcase-tab[aria-selected="true"] {
  color: var(--panel);
  background: var(--accent);
  border-color: var(--accent);
}

.showcase-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.showcase-panel {
  display: none;
}

.showcase-panel.is-active,
.showcase-panel:not([hidden]) {
  display: block;
}

.showcase-panel[hidden] {
  display: none !important;
}

/* Dual screenshot panels (Explore Atero) */
.band--panel .showcase {
  background: rgba(26, 36, 66, 0.35);
  border-color: var(--stroke);
  box-shadow: none;
}

.dual-shots {
  display: grid;
  /* Fixed track size = explore phone width — not 1fr of the full showcase */
  grid-template-columns: repeat(2, minmax(0, var(--explore-phone)));
  gap: clamp(2.5rem, 4vw, 4rem); /* ~40–64px */
  justify-content: center;
  justify-items: stretch;
  align-items: start;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.dual-shots figure {
  margin: 0;
  width: 100%;
  max-width: var(--explore-phone);
}

.dual-shots .shot-frame {
  width: 100%;
  max-width: none;
  /* Height from aspect-ratio only — do not let max-height shrink width */
  max-height: none;
}

.dual-shots .shot-frame > img {
  object-fit: contain;
}

.dual-shots figcaption {
  margin-top: 0.55rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 650;
}

.dual-copy {
  margin-top: 1.1rem;
  text-align: center;
}

.dual-copy h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.dual-copy p {
  margin: 0 auto;
  max-width: 40rem;
  color: var(--muted);
}

@media (max-width: 820px) {
  .dual-shots {
    grid-template-columns: minmax(0, min(240px, 100%));
    gap: 1.25rem;
    justify-content: center;
  }
  .dual-shots figure {
    max-width: min(240px, 100%);
  }
}

@media (max-width: 430px) {
  .dual-shots {
    grid-template-columns: minmax(0, min(220px, 100%));
  }
  .dual-shots figure {
    max-width: min(220px, 100%);
  }
}

/* —— Smarter Listening —— */
.smart-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem 1.75rem;
  max-width: 48rem;
  margin: 0 auto;
  text-align: left;
}

.smart-point {
  padding: 0.15rem 0.25rem;
  border: none;
  background: transparent;
  box-shadow: none;
}

.smart-point__icon {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  margin-bottom: 0.65rem;
  border-radius: 11px;
  border: 1px solid var(--stroke-accent);
  background: rgba(207, 184, 124, 0.1);
  color: var(--accent);
}

.smart-point h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  color: var(--text);
}

.smart-point p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .smart-layout {
    grid-template-columns: 1fr;
    max-width: 26rem;
    gap: 1.5rem;
  }
}

/* —— Automotive —— */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.auto-card {
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.15rem;
  box-shadow: none;
}

.auto-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
}

.auto-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.auto-frame {
  --device-bezel: 0;
  --device-screen-bg: #0b1017;
  border-radius: 12px;
  border: 1px solid #5c5342;
  background: #111827;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  display: block;
  position: relative;
  max-width: min(100%, 480px);
  width: 100%;
  margin: 0 auto;
  max-height: 280px;
  box-shadow:
    0 0 0 1px #0a0d12 inset,
    0 12px 28px rgba(0, 0, 0, 0.4);
}

.auto-frame > img {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #0b1017;
}

.auto-frame.is-missing > img {
  display: none;
}

.wear-card {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 100px) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  background: transparent;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.wear-card img {
  width: 100%;
  max-width: 88px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--stroke);
}

.wear-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.wear-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 760px) {
  .auto-grid {
    grid-template-columns: 1fr;
  }
  .wear-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* —— Free vs Pro —— */
.pro-lead-actions {
  margin: 1.25rem 0 1.5rem;
}

.comparison {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.comparison th,
.comparison td {
  text-align: left;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--stroke);
  vertical-align: middle;
}

.comparison th {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.comparison th:nth-child(2),
.comparison th:nth-child(3),
.comparison td:nth-child(2),
.comparison td:nth-child(3) {
  text-align: center;
  white-space: nowrap;
}

.comparison td:nth-child(3) {
  color: var(--accent);
  font-weight: 650;
}

/* Shared Included / Not included indicators (desktop table + mobile cards) */
.cmp-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cmp-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  vertical-align: middle;
}

.cmp-flag__icon {
  display: block;
  width: 1.35rem;
  height: 1.35rem;
}

.cmp-flag--yes {
  color: #4ade80;
}

.cmp-flag--no {
  color: #fb7185;
}

.comparison td:nth-child(3) .cmp-flag--yes,
.comparison-card .cmp-flag--yes {
  color: #4ade80;
}

.comparison td:nth-child(3) .cmp-flag--no,
.comparison-card .cmp-flag--no {
  color: #fb7185;
  font-weight: 400;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: rgba(13, 19, 28, 0.4);
  box-shadow: var(--shadow);
}

/* Mobile card comparison — same 19 rows, no horizontal hunt */
.comparison-cards {
  display: none;
  gap: 0.75rem;
}

.comparison-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--surface-card);
  padding: 0.95rem 1rem;
}

.comparison-card h3 {
  margin: 0 0 0.65rem;
  font-size: 0.98rem;
}

.comparison-card dl {
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.comparison-card dt {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-card dd {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  min-height: 1.35rem;
}

.comparison-card dd.pro-val {
  color: var(--accent);
  font-weight: 650;
}

.comparison-card dd:has(.cmp-flag) {
  display: flex;
  align-items: center;
}


@media (max-width: 720px) {
  .table-wrap--desktop {
    display: none;
  }
  .comparison-cards {
    display: grid;
  }
}

@media (min-width: 721px) {
  .comparison-cards {
    display: none !important;
  }
}

/* —— Download —— */
.download-panel {
  border-radius: 0;
  border: none;
  background: transparent;
  padding: clamp(0.5rem, 2vw, 1rem) 0;
  box-shadow: none;
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
}

.download-panel h2 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
}

.band--cta.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

/* —— Footer —— */
.site-footer {
  margin-top: auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--stroke);
  background: var(--band-panel);
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-bottom: 0.75rem;
}

.footer-nav a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.footer-nav a:hover {
  text-decoration: underline;
}

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

/* —— Inner pages —— */
.inner-hero {
  padding: 2rem 0 1rem;
}

.inner-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.prose {
  color: var(--muted);
  max-width: 48rem;
}

.prose h2,
.prose h3 {
  color: var(--text);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface-card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  color: var(--text);
  font-size: 1.05rem;
}

.card p,
.card div {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}
