/* Specimen marketing site — white landing, Chatr blue accent */

:root {
  --blue: #0866ff;
  --blue-mid: #3b82f6;
  --blue-soft: rgba(8, 102, 255, 0.1);
  --blue-border: rgba(8, 102, 255, 0.22);

  --bg: #ffffff;
  --bg-subtle: #f7f8fa;
  --bg-muted: #eef0f4;
  --text: #0a0a0a;
  --text-muted: #5c5c66;
  --text-soft: #8a8a96;
  --border: #e8e8ee;
  --border-strong: #d4d4de;

  --panel: #0a0a0a;
  --panel-2: #161619;
  --panel-3: #1c1c20;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 40px rgba(8, 102, 255, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.1);

  --shell: min(1120px, calc(100% - 48px));
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Free banner */
.free-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #0654d4 0%, #0866ff 45%, #3b82f6 100%);
  color: #fff;
  text-align: center;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
}

.free-banner__tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.free-banner__copy {
  opacity: 0.95;
}

.free-banner:hover .free-banner__copy {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Header — full-bleed at top, floating pill when scrolled */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  pointer-events: none;
  transition: padding 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-compact {
  padding: 14px 16px 0;
}

.site-header__pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  min-height: 72px;
  padding: 12px max(18px, calc((100% - 1120px) / 2 + 18px));
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid rgba(10, 10, 10, 0.06);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: none;
  transition:
    width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    max-width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    min-height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.site-header.is-compact .site-header__pill {
  width: min(960px, 100%);
  max-width: min(960px, 100%);
  min-height: 68px;
  padding: 10px 14px 10px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 32px rgba(0, 0, 0, 0.06);
}

.site-header.is-compact .mobile-nav {
  width: min(960px, 100%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 4px;
}

.brand__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
}

.brand__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand--footer .brand__logo {
  width: 36px;
  height: 36px;
}

.brand--footer .brand__name {
  font-size: 1.125rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 2px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.site-nav a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
  background: rgba(10, 10, 10, 0.04);
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 10px;
  padding-right: 2px;
}

.site-header__menu {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.site-header__menu:hover {
  background: rgba(10, 10, 10, 0.05);
}

.mobile-nav {
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: min(896px, 100%);
  margin-top: 8px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(10, 10, 10, 0.08);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a:not(.btn) {
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-nav a:not(.btn):hover {
  color: var(--text);
  background: rgba(10, 10, 10, 0.04);
}

.mobile-nav .btn {
  width: 100%;
  margin-top: 4px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 1px 2px rgba(8, 102, 255, 0.25);
}

.btn--primary:hover {
  background: #0654d4;
}

.btn--sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
  border-radius: 10px;
}

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

/* Waitlist */
.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 28rem;
}

.waitlist-form--hero {
  margin: 0 auto 4px;
}

.waitlist-input {
  flex: 1 1 12rem;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.waitlist-input:focus {
  border-color: rgba(8, 102, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(8, 102, 255, 0.12);
}

.waitlist-status {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--blue);
  font-weight: 550;
  text-align: center;
}

.waitlist-status.is-error {
  color: #dc2626;
}

.waitlist-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.waitlist-avatars {
  display: flex;
  align-items: center;
}

.waitlist-avatars img {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 2px solid var(--bg);
  background: var(--bg-muted);
  margin-left: -8px;
  object-fit: cover;
}

.waitlist-avatars img:first-child {
  margin-left: 0;
}

.waitlist-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  max-width: 44rem;
  margin-inline: auto;
  padding: 36px 28px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: var(--shadow-md);
}

.waitlist-card__copy h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.waitlist-card__copy p {
  margin: 0 auto;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.waitlist-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 4px;
}

.waitlist-card__note {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

@media (max-width: 560px) {
  .waitlist-form {
    flex-direction: column;
    align-items: stretch;
  }

  .waitlist-form .btn {
    width: 100%;
  }
}

.btn--secondary {
  background: var(--bg-subtle);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  background: var(--bg-muted);
}

.bmc-btn img {
  height: 48px;
  width: auto;
}

.bmc-btn--sm img {
  height: 48px;
}

.chrome-btn {
  display: inline-block;
  line-height: 0;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(8, 102, 255, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chrome-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(8, 102, 255, 0.42);
}

.chrome-btn img {
  height: 48px;
  width: auto;
  display: block;
}

.chrome-btn--sm img {
  height: 48px;
}

.mobile-nav .chrome-btn,
.mobile-nav .bmc-btn {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}

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

  .site-header__menu,
  .mobile-nav {
    display: none !important;
  }
}

/* Hero — centered copy + large media below */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 56px 0 64px;
  text-align: center;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 40rem;
}

.hero__eyebrow {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.hero h1 {
  margin: 14px 0 14px;
  font-family: var(--display);
  font-size: clamp(2.35rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
}

.lead {
  margin: 0 0 28px;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero__paste {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 0.975rem;
  font-weight: 500;
  color: var(--text-muted);
}

.hero__paste-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 10.5ch;
  height: 1.4em;
  overflow: hidden;
  vertical-align: middle;
}

.hero__paste-item {
  position: absolute;
  left: 50%;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 110%);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}

.hero__paste-item.is-active {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.hero__paste-item.is-exit {
  opacity: 0;
  transform: translate(-50%, -110%);
}

.hero__paste-icon {
  width: 0.95em;
  height: 0.95em;
  flex-shrink: 0;
}

.hero__note {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.hero__widget {
  position: relative;
  width: min(820px, 100%);
  display: flex;
  justify-content: center;
  isolation: isolate;
  padding: 28px 12px 36px;
}

@media (max-width: 900px) {
  .hero {
    padding: 40px 0 48px;
    gap: 28px;
  }

  .hero__widget {
    width: min(100%, 100%);
    padding: 20px 4px 28px;
  }
}

/* Glowing shadow wrap (adapted from glowing-shadow.tsx for static hero video) */
@property --hue {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --rotate {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --bg-y {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --bg-x {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --glow-translate-y {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}
@property --bg-size {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@property --glow-opacity {
  syntax: "<number>";
  inherits: true;
  initial-value: 1;
}
@property --glow-blur {
  syntax: "<number>";
  inherits: true;
  initial-value: 6;
}
@property --glow-scale {
  syntax: "<number>";
  inherits: true;
  initial-value: 1.5;
}
@property --glow-radius {
  syntax: "<number>";
  inherits: true;
  initial-value: 100;
}
@property --white-shadow {
  syntax: "<number>";
  inherits: true;
  initial-value: 0.5;
}

.glow-container {
  --card-color: #0a0a0c;
  --card-radius: 24px;
  --border-width: 3px;
  --bg-size: 1;
  --hue: 0;
  --hue-speed: 1;
  --rotate: 0;
  --animation-speed: 4s;
  --interaction-speed: 0.55s;
  --glow-scale: 1.5;
  --scale-factor: 1;
  --glow-blur: 6;
  --glow-opacity: 1;
  --glow-radius: 100;
  --glow-rotate-unit: 1deg;

  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--card-radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-container::before,
.glow-container::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  border-radius: var(--card-radius);
  pointer-events: none;
}

.glow-content {
  position: absolute;
  inset: 2px;
  z-index: 1;
  overflow: hidden;
  border-radius: calc(var(--card-radius) * 0.92);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.glow-content::before {
  content: "";
  display: block;
  position: absolute;
  inset: calc(var(--border-width) * -0.5);
  border-radius: inherit;
  z-index: -1;
  pointer-events: none;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.45);
  mix-blend-mode: color-burn;
  background: hsl(0deg 0% 16%)
    radial-gradient(
      30% 30% at calc(var(--bg-x) * 1%) calc(var(--bg-y) * 1%),
      hsl(calc(var(--hue) * var(--hue-speed) * 1deg) 100% 90%) calc(0% * var(--bg-size)),
      hsl(calc(var(--hue) * var(--hue-speed) * 1deg) 100% 80%) calc(20% * var(--bg-size)),
      hsl(calc(var(--hue) * var(--hue-speed) * 1deg) 100% 60%) calc(40% * var(--bg-size)),
      transparent 100%
    );
  animation:
    glow-hue var(--animation-speed) linear infinite,
    glow-rotate-bg var(--animation-speed) linear infinite;
  transition: --bg-size var(--interaction-speed) ease;
}

.glow {
  --glow-translate-y: 0;
  display: block;
  position: absolute;
  width: 18%;
  height: 28%;
  z-index: 0;
  pointer-events: none;
  animation: glow-rotate var(--animation-speed) linear infinite;
  transform: rotateZ(calc(var(--rotate) * var(--glow-rotate-unit)));
  transform-origin: center;
  border-radius: calc(var(--glow-radius) * 1vw);
}

.glow::after {
  content: "";
  display: block;
  position: relative;
  z-index: -2;
  left: -15%;
  top: -15%;
  width: 130%;
  height: 130%;
  filter: blur(calc(var(--glow-blur) * 10px));
  background: hsl(calc(var(--hue) * var(--hue-speed) * 1deg) 100% 60%);
  border-radius: calc(var(--glow-radius) * 1vw);
  opacity: var(--glow-opacity);
  animation: glow-hue var(--animation-speed) linear infinite;
  transform: scaleY(calc(var(--glow-scale) * var(--scale-factor) / 1.1))
    scaleX(calc(var(--glow-scale) * var(--scale-factor) * 1.2))
    translateY(calc(var(--glow-translate-y) * 1%));
}

.glow-container:hover .glow-content {
  box-shadow: 0 0 calc(var(--white-shadow) * 1vw) calc(var(--white-shadow) * 0.15vw) rgb(255 255 255 / 20%);
  animation: glow-shadow-pulse calc(var(--animation-speed) * 2) linear infinite;
}

.glow-container:hover .glow-content::before {
  --bg-size: 15;
  animation-play-state: paused;
}

.glow-container:hover .glow {
  --glow-blur: 1.5;
  --glow-opacity: 0.6;
  --glow-scale: 2.5;
  --glow-radius: 0;
  --rotate: 900;
  --glow-rotate-unit: 0;
  --scale-factor: 1.25;
  animation-play-state: paused;
}

.glow-container:hover .glow::after {
  --glow-translate-y: 0;
  animation-play-state: paused;
}

@keyframes glow-shadow-pulse {
  0%,
  24%,
  46%,
  73%,
  96% {
    --white-shadow: 0.5;
  }
  12%,
  28%,
  41%,
  63%,
  75%,
  82%,
  98% {
    --white-shadow: 2.5;
  }
  6%,
  32%,
  57% {
    --white-shadow: 1.3;
  }
  18%,
  52%,
  88% {
    --white-shadow: 3.5;
  }
}

@keyframes glow-rotate-bg {
  0% {
    --bg-x: 0;
    --bg-y: 0;
  }
  25% {
    --bg-x: 100;
    --bg-y: 0;
  }
  50% {
    --bg-x: 100;
    --bg-y: 100;
  }
  75% {
    --bg-x: 0;
    --bg-y: 100;
  }
  100% {
    --bg-x: 0;
    --bg-y: 0;
  }
}

@keyframes glow-rotate {
  from {
    --rotate: -70;
    --glow-translate-y: -65;
  }
  to {
    --rotate: 290;
    --glow-translate-y: -65;
  }
}

@keyframes glow-hue {
  0% {
    --hue: 0;
  }
  100% {
    --hue: 360;
  }
}

.hero-media {
  width: 100%;
  height: 100%;
  border: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
}

.hero-media__gif,
.hero-media__video {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  background: transparent;
  /* Slight zoom crops encoder edge fringing without black bars */
  transform: scale(1.02);
  transform-origin: center center;
}

/* Extension frame mock */
.ext-frame {
  border-radius: 20px;
  background: linear-gradient(160deg, #1a1a1e, #0c0c0e);
  padding: 10px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ext-panel {
  display: grid;
  grid-template-columns: 52px 1fr;
  min-height: 420px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--panel);
  color: #e8e8ec;
  font-size: 12px;
}

.ext-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  background: #111114;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.ext-rail img {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  object-fit: contain;
}

.ext-rail__btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #8b8b96;
  background: transparent;
  border: 0;
}

.ext-rail__btn.is-active {
  background: rgba(8, 102, 255, 0.18);
  color: #fff;
}

.ext-main {
  padding: 14px 16px 16px;
  background: var(--panel-2);
}

.ext-main__title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
}

.ext-main__sub {
  margin: 0 0 14px;
  color: #8b8b96;
  font-size: 11px;
}

.ext-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.ext-stat {
  padding: 10px;
  border-radius: 10px;
  background: var(--panel-3);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.ext-stat strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
}

.ext-stat span {
  color: #8b8b96;
  font-size: 10px;
}

.ext-palette {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.ext-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ext-preview {
  height: 160px;
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(8, 102, 255, 0.25), transparent 50%),
    linear-gradient(#1e1e24, #141418);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

.ext-preview__card {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 58%;
  padding: 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(8, 102, 255, 0.45);
  box-shadow: 0 0 0 1px rgba(8, 102, 255, 0.2);
}

.ext-preview__card::before {
  content: "";
  display: block;
  width: 40%;
  height: 8px;
  border-radius: 4px;
  background: var(--blue);
  margin-bottom: 8px;
}

.ext-preview__card::after {
  content: "";
  display: block;
  width: 78%;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 0 rgba(255, 255, 255, 0.12);
}

.ext-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.ext-chip {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #c8c8d0;
  font-size: 10px;
}

.ext-chip strong {
  color: #fff;
}

.ext-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.ext-shot-tile {
  aspect-ratio: 4/3;
  border-radius: 10px;
  background: #222228;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ext-shot-tile.is-active {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

.ext-auth {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: var(--panel-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ext-auth h4 {
  margin: 0 0 4px;
  font-size: 13px;
}

.ext-auth p {
  margin: 0 0 12px;
  color: #8b8b96;
  font-size: 11px;
}

.ext-auth__btn {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  cursor: default;
}

.ext-auth__ghost {
  width: 100%;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  background: transparent;
  color: #8b8b96;
  font-size: 12px;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section--muted {
  background: var(--bg-subtle);
  border-block: 1px solid var(--border);
}

.section__head {
  max-width: 40rem;
  margin-bottom: 36px;
}

.section__head h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

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

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

.loop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 17rem;
  aspect-ratio: 3 / 4;
  max-height: 22rem;
  padding: 24px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(15, 15, 20, 0.06);
  box-shadow: 0 1px 2px rgba(15, 15, 20, 0.03);
  overflow: hidden;
  isolation: isolate;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.loop-card:hover {
  border-color: rgba(8, 102, 255, 0.14);
  box-shadow: 0 16px 40px rgba(15, 15, 20, 0.06);
}

.loop-card__copy {
  position: relative;
  z-index: 2;
  max-width: 15.5rem;
}

.loop-card__copy h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text);
}

.loop-card__copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

.loop-card__art {
  position: absolute;
  z-index: 1;
  right: -18%;
  bottom: -18%;
  width: 10.5rem;
  height: 10.5rem;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  transform: rotate(-18deg) scale(1.2);
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.loop-card:hover .loop-card__art {
  transform: rotate(-18deg) scale(1.42);
}

.loop-card__art--copy {
  right: -16%;
  bottom: -16%;
  transform: rotate(14deg) scale(1.18);
}

.loop-card:hover .loop-card__art--copy {
  transform: rotate(14deg) scale(1.4);
}

.loop-card__art--save {
  right: -14%;
  bottom: -14%;
  transform: rotate(6deg) scale(1.15);
}

.loop-card:hover .loop-card__art--save {
  transform: rotate(6deg) scale(1.38);
}

@media (min-width: 900px) {
  .loop {
    gap: 24px;
  }

  .loop-card {
    min-height: 20rem;
    padding: 26px;
  }

  .loop-card__copy h3 {
    font-size: 1.2rem;
  }

  .loop-card__copy p {
    font-size: 0.975rem;
    line-height: 1.6;
  }

  .loop-card__art {
    width: 14rem;
    height: 14rem;
    right: -18%;
    bottom: -18%;
  }

  .loop-card__art--copy {
    right: -16%;
    bottom: -16%;
  }

  .loop-card__art--save {
    right: -14%;
    bottom: -14%;
  }
}

@media (max-width: 800px) {
  .loop {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }

  .loop-card {
    aspect-ratio: auto;
    min-height: 18rem;
    max-height: none;
  }
}

.feature-showcase {
  display: grid;
  gap: 96px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.feature-row--flip {
  grid-template-columns: 0.95fr 1.05fr;
}

.feature-row--flip .feature-row__copy {
  order: 1;
}

.feature-row--flip .feature-stage {
  order: 2;
}

.feature-row__copy h3 {
  margin: 16px 0 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #1a1a1f;
}

.feature-row__lead {
  margin: 12px 0 0;
  max-width: 28rem;
  color: #71717a;
  font-size: 1rem;
  line-height: 1.65;
}

.feature-row__kicker {
  margin: 0;
  color: #a1a1aa;
  font-size: 0.75rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.feature-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  max-width: 28rem;
  display: grid;
  gap: 10px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #52525b;
  font-size: 0.9375rem;
  line-height: 1.45;
}

.feature-list__check {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--blue);
  display: inline-flex;
}

.feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, #3b82f6 0%, #0866ff 100%);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 650;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 4px 14px -4px rgba(8, 102, 255, 0.55);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.feature-cta:hover {
  filter: brightness(1.08);
}

.feature-cta:active {
  transform: scale(0.98);
}

.feature-cta__arrow {
  opacity: 0.7;
  transition: transform 0.15s ease;
}

.feature-cta:hover .feature-cta__arrow {
  transform: translateX(2px);
}

.feature-stage {
  position: relative;
  min-height: 280px;
  border-radius: 24px;
  background: #f4f5f8;
  border: 1px solid rgba(8, 102, 255, 0.1);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(8, 102, 255, 0.08);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  mask-image: radial-gradient(white, black);
}

.feature-stage__photo,
.feature-stage__video {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center center;
  background: #f4f5f8;
  transform: scale(1.03);
  transform-origin: center center;
}

.feature-stage__scene {
  position: absolute;
  inset: 0;
}

.feature-stage__shot--back {
  position: absolute;
  left: 4%;
  top: 14%;
  width: 86%;
  transform: rotate(-1.2deg);
}

.feature-stage__shot--front {
  position: absolute;
  right: 6%;
  top: 18%;
  z-index: 2;
}

.feature-stage__shot--float {
  width: auto;
  max-width: 52%;
}

.feature-stage__hint {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.ext-float-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(10, 10, 12, 0.88);
  color: #fff;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
}

.ext-float-card strong {
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.ext-float-card span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
}

.ext-float-card--code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  color: #93c5fd;
}

.feature-stage .ext-frame {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
}

.feature-stage .ext-panel {
  min-height: 300px;
}

@media (max-width: 900px) {
  .feature-row,
  .feature-row--flip {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .feature-row--flip .feature-row__copy,
  .feature-row--flip .feature-stage {
    order: initial;
  }

  .feature-stage {
    min-height: 320px;
  }

  .feature-showcase {
    gap: 64px;
  }
}

/* Free / donate */
.free-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.free-block h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: 2rem;
  letter-spacing: -0.03em;
}

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

.free-block__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  text-align: center;
}

.free-block__qr img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
}

.free-block__qr span {
  font-size: 0.8125rem;
  color: var(--text-soft);
}

@media (max-width: 800px) {
  .free-block {
    grid-template-columns: 1fr;
  }
}

/* Auth / save split */
.auth-split,
.save-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
}

.save-cards {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.save-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel-3);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.save-card strong {
  font-size: 13px;
  font-weight: 650;
  color: #f4f4f5;
}

.save-card span {
  font-size: 11px;
  color: #8b8b96;
}

@media (max-width: 800px) {
  .auth-split,
  .save-split {
    grid-template-columns: 1fr;
  }
}

/* FAQ */
.faq {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  padding: 14px 16px;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 36px;
  background: var(--bg-subtle);
  color: var(--text-soft);
  font-size: 0.875rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.9fr);
  gap: 36px 48px;
  align-items: start;
}

.site-footer__brand-block .brand {
  margin-bottom: 14px;
  padding-left: 0;
}

.site-footer__about {
  margin: 0 0 14px;
  max-width: 34rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.site-footer__creator {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-soft);
}

.site-footer__creator a {
  color: var(--text-muted);
  font-weight: 500;
}

.site-footer__creator a:hover {
  color: var(--blue);
}

.site-footer__col h3 {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.site-footer__col a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-footer__col a:hover {
  color: var(--blue);
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-soft);
}

@media (max-width: 800px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
