/* Coathlete landing — brand: neon #b8ff00 on slate-950 */

:root {
  --brand: #b8ff00;
  --brand-dim: #8fcc00;
  --brand-glow: rgba(184, 255, 0, 0.15);
  --bg: #020617;
  --bg-elevated: #0f172a;
  --bg-card: #0f172a;
  --border: #1e293b;
  --border-soft: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius: 1rem;
  --radius-lg: 1.25rem;
  --container: 72rem;
  --page-gutter: clamp(1.5rem, 5vw, 3rem);
  --header-h: 4.25rem;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

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

.text-link {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.text-link:hover {
  color: #d4ff4d;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

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

.btn--primary {
  background: var(--brand);
  color: #0a0f1a;
  box-shadow: 0 0 24px var(--brand-glow);
}

.btn--primary:hover {
  background: #d4ff4d;
}

.btn--secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-soft);
}

.btn--secondary:hover {
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
  transition:
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header--scrolled {
  border-bottom-color: var(--border);
  background: rgba(2, 6, 23, 0.94);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link img {
  height: 2.25rem;
  width: auto;
}

.site-nav {
  display: none;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  overflow: hidden;
}

.lang-switch button {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.35rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--brand-glow);
  color: var(--brand);
}

.header-cta .btn--primary {
  display: none;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.5rem;
  background: transparent;
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .header-cta .btn--secondary,
  .header-cta .btn--primary {
    display: inline-flex;
  }
}

@media (max-width: 899px) {
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem 1.5rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .site-nav--open {
    display: flex;
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .header-cta .btn--secondary {
    display: none;
  }
}

section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.card:hover {
  border-color: rgba(184, 255, 0, 0.22);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(184, 255, 0, 0.06);
}

.card--tilt {
  transform-style: preserve-3d;
  will-change: transform;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hero {
  padding: 3rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto -20%;
  height: 70%;
  background: radial-gradient(ellipse at 50% 0%, var(--brand-glow), transparent 65%);
  pointer-events: none;
}

.hero__grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__subtitle {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-bottom: 1rem;
  scroll-margin-top: calc(var(--header-h) + 0.75rem);
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 32rem;
}

.waitlist-form__row {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .waitlist-form__row {
    flex-direction: row;
    align-items: stretch;
  }

  .waitlist-form__row input[type="email"] {
    flex: 1;
    min-width: 0;
  }
}

.waitlist-form input[type="email"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.72);
  color: var(--text);
  padding: 0.875rem 1rem;
  font-size: 1rem;
}

.waitlist-form input[type="email"]:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-glow);
}

.waitlist-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-dim);
}

.waitlist-form__consent input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.waitlist-form__message {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.waitlist-form__message--success {
  color: #6ee7b7;
}

.waitlist-form__message--error {
  color: #fca5a5;
}

.hero__note {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-dim);
}

@media (min-width: 960px) {
  .hero {
    padding: 5rem 0 6rem;
  }

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

.screenshot-frame {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45), 0 0 80px var(--brand-glow);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.screenshot-frame:hover {
  border-color: rgba(184, 255, 0, 0.25);
  box-shadow:
    0 28px 56px rgba(0, 0, 0, 0.5),
    0 0 100px rgba(184, 255, 0, 0.12);
}

.screenshot-frame img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.screenshot-frame__caption {
  position: absolute;
  bottom: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  margin: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.screenshot-frame__badge {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.75);
  border: 1px dashed var(--border-soft);
  color: var(--text-dim);
  backdrop-filter: blur(8px);
}

.screenshot-frame--hero {
  max-width: 22rem;
  margin-inline: auto;
}

@media (min-width: 960px) {
  .screenshot-frame--hero {
    max-width: none;
    transform: perspective(800px) rotateY(-4deg) rotateX(2deg);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .screenshot-frame--hero:hover {
    transform: perspective(800px) rotateY(-2deg) rotateX(1deg) translateY(-6px);
  }

  .screenshot-frame--float {
    animation: hero-float 5s ease-in-out infinite;
  }
}

@keyframes hero-float {
  0%,
  100% {
    transform: perspective(800px) rotateY(-4deg) rotateX(2deg) translateY(0);
  }

  50% {
    transform: perspective(800px) rotateY(-4deg) rotateX(2deg) translateY(-10px);
  }
}

.feature-row {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

/* ─── Live pass spotlight ────────────────────────────────── */

.live-pass-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.live-pass-spotlight {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.live-pass-spotlight h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.live-pass-spotlight__list {
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.live-pass-spotlight__list li {
  margin-bottom: 0.625rem;
  padding-left: 0.25rem;
}

.live-pass-spotlight__list li::marker {
  color: var(--brand);
}

.live-pass-spotlight__media {
  position: relative;
  display: grid;
  gap: 1rem;
}

.live-pass-spotlight__media .photo-frame {
  max-width: 14rem;
}

.live-pass-spotlight__media .screenshot-frame--stacked {
  max-width: 18rem;
  margin-top: -3rem;
  margin-left: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

@media (min-width: 900px) {
  .live-pass-spotlight {
    grid-template-columns: 1fr 1.05fr;
    gap: 3.5rem;
    padding: clamp(2rem, 4vw, 3rem);
  }

  .live-pass-spotlight__media .photo-frame {
    max-width: 16rem;
  }

  .live-pass-spotlight__media .screenshot-frame--stacked {
    max-width: 20rem;
    margin-top: -4rem;
    margin-right: 2rem;
  }
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row h3 {
  margin: 0 0 0.75rem;
  font-size: 1.375rem;
}

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .feature-row--reverse .feature-row__media {
    order: 2;
  }

  .feature-row--reverse .feature-row__body {
    order: 1;
  }
}

.community-grid {
  display: grid;
  gap: 1.25rem;
}

.community-grid .card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
}

.community-visual {
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.prose-block p {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
}

.boxes-layout {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.boxes-list {
  margin: 1.25rem 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .boxes-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.step-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.25rem;
  margin-bottom: 0.75rem;
  background: var(--bg-elevated);
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(184, 255, 0, 0.15);
}

.faq-item[open] {
  border-color: rgba(184, 255, 0, 0.28);
  background: rgba(15, 23, 42, 0.95);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
  transition: color 0.2s ease;
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-item p {
  animation: faq-open 0.35s ease;
}

@keyframes faq-open {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--brand);
}

.faq-item[open] summary::after {
  content: "−";
}

.cta-band {
  text-align: center;
  padding: 5rem 0;
  background: linear-gradient(180deg, transparent, var(--brand-glow));
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ─── Legal pages (/integritet, /villkor) ─────────────────── */

.legal-page main {
  padding: 3rem 0 5rem;
}

.legal-doc {
  max-width: 44rem;
}

.legal-doc h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.legal-doc .legal-meta {
  margin: 0 0 2rem;
  font-size: 0.875rem;
  color: var(--text-dim);
}

.legal-doc h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.125rem;
  color: var(--text);
}

.legal-doc h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
  color: var(--text);
}

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

.legal-doc ul,
.legal-doc ol {
  margin: 0.75rem 0;
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: 0.5rem;
}

.legal-doc a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-doc table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.legal-doc th,
.legal-doc td {
  border: 1px solid var(--border);
  padding: 0.625rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

.legal-doc th {
  color: var(--text);
  background: var(--bg-elevated);
}

.legal-doc .legal-callout {
  margin: 1.25rem 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  font-size: 0.9375rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  color: var(--text-dim);
  font-size: 0.875rem;
}

.footer-company {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  margin: 0 0 0.75rem;
  color: var(--text);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

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

.footer-grid a:hover {
  color: var(--brand);
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.photo-credit {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ─── Hero with action photo ─────────────────────────────── */

.hero--with-photo {
  min-height: min(92vh, 52rem);
  display: flex;
  align-items: center;
  padding: clamp(3.5rem, 8vh, 6rem) 0;
}

.hero--with-photo::before {
  display: none;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.08);
  will-change: transform;
  transition: transform 0.1s linear;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(2, 6, 23, 0.94) 0%,
    rgba(2, 6, 23, 0.88) 42%,
    rgba(2, 6, 23, 0.55) 100%
  );
}

.hero--with-photo .hero__grid {
  position: relative;
  z-index: 2;
  width: 100%;
  gap: clamp(2rem, 5vw, 4rem);
}

.hero__copy {
  max-width: 36rem;
  padding: clamp(0.5rem, 2vw, 0.75rem) 0;
}

.hero__visual {
  position: relative;
  max-width: 26rem;
  margin-inline: auto;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

/* ─── Action bands ───────────────────────────────────────── */

.action-band {
  position: relative;
  min-height: 20rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
}

.action-band--short {
  min-height: 16rem;
}

.action-band__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.12);
  will-change: transform;
}

.action-band__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(2, 6, 23, 0.88) 0%,
    rgba(2, 6, 23, 0.45) 55%,
    rgba(2, 6, 23, 0.75) 100%
  );
}

.action-band__content {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.action-band__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 16ch;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
}

/* ─── Photo frames ───────────────────────────────────────── */

.photo-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}

.photo-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 255, 0, 0.2);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.4);
}

.photo-frame img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-frame:hover img {
  transform: scale(1.06);
}

.photo-frame--wide img {
  aspect-ratio: 16 / 10;
}

.photo-frame--tall img {
  aspect-ratio: 4 / 5;
}

/* ─── Feature rows: photo + app ──────────────────────────── */

.feature-row__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: end;
}

.feature-row__media .photo-frame {
  grid-column: 1;
  grid-row: 1;
}

.feature-row__media .screenshot-frame--stacked {
  grid-column: 2;
  grid-row: 1;
  transform: translateY(-1.5rem);
  z-index: 2;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 60px var(--brand-glow);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-row__media .screenshot-frame--stacked:hover {
  transform: translateY(-1.85rem) scale(1.02);
}

.feature-row--reverse .feature-row__media .photo-frame {
  grid-column: 2;
}

.feature-row--reverse .feature-row__media .screenshot-frame--stacked {
  grid-column: 1;
}

@media (max-width: 899px) {
  .feature-row__media {
    grid-template-columns: 1fr;
  }

  .feature-row__media .photo-frame,
  .feature-row__media .screenshot-frame--stacked,
  .feature-row--reverse .feature-row__media .photo-frame,
  .feature-row--reverse .feature-row__media .screenshot-frame--stacked {
    grid-column: 1;
    transform: none;
  }

  .feature-row__media .photo-frame img {
    aspect-ratio: 16 / 10;
  }
}

/* ─── Community & boxes split visuals ────────────────────── */

.community-visual {
  display: grid;
  gap: 1rem;
  align-items: end;
}

.boxes-visual {
  position: relative;
  display: grid;
  gap: 1rem;
}

.boxes-visual .screenshot-frame--stacked {
  margin-top: -3rem;
  z-index: 2;
  max-width: 85%;
  margin-inline: auto;
}

@media (min-width: 768px) {
  .community-visual {
    grid-template-columns: 1fr 1.1fr;
    gap: 1.25rem;
  }

  .community-visual .screenshot-frame {
    transform: translateY(1.5rem);
  }
}

.pwa-why {
  margin-bottom: 1.5rem;
}

@media (min-width: 960px) {
  .hero--with-photo .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .hero__copy {
    padding-inline-end: clamp(1rem, 3vw, 2.5rem);
  }

  .hero__visual {
    margin-inline: 0 0;
    margin-inline-start: auto;
    padding-inline: clamp(1rem, 2vw, 2rem);
  }
}

/* ─── Scroll reveals & motion ────────────────────────────── */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transition:
      opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .reveal--up {
    transform: translateY(32px);
  }

  .reveal--left {
    transform: translateX(-36px);
  }

  .reveal--right {
    transform: translateX(36px);
  }

  .reveal--scale {
    transform: scale(0.94);
  }

  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .hero__copy,
  .hero__visual {
    opacity: 0;
    transition:
      opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .hero__copy {
    transform: translateX(-40px);
  }

  .hero__visual {
    transform: translateX(40px);
  }

  .hero--entered .hero__copy,
  .hero--entered .hero__visual {
    opacity: 1;
    transform: none;
  }

  .hero--entered .hero__visual {
    transition-delay: 0.12s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .hero__copy,
  .hero__visual {
    opacity: 1 !important;
    transform: none !important;
  }

  .screenshot-frame--float {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}

