/* Enhancer Reels landing page. All classes start with "er-" so nothing clashes
   with the rest of swapme.ai. */

:root {
  --er-ink: #111114;
  --er-muted: #5b5b66;
  --er-line: #e4e4ea;
  --er-grey: #f4f4f4;
  --er-white: #ffffff;
  --er-accent: #6b3cf5;
  --er-accent-dark: #5229d6;
  --er-accent-soft: #efeaff;
  --er-gradient: linear-gradient(135deg, #3fb6f5 0%, #6b3cf5 55%, #b23cf5 100%);
  --er-radius: 20px;
  --er-shadow: 0 18px 50px rgba(17, 17, 20, 0.12);
}

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

body.er {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--er-ink);
  background: var(--er-white);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.er h1,
.er h2,
.er h3 {
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.er h1 {
  font-size: clamp(36px, 5.4vw, 60px);
  font-weight: 800;
}

.er h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 800;
  text-align: center;
}

.er h3 {
  font-size: 20px;
  font-weight: 700;
}

.er p {
  margin: 0 0 12px;
}

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

.er :focus-visible {
  outline: 3px solid var(--er-accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.er-skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--er-ink);
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.er-skip:focus {
  left: 16px;
}

.er-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.er-container--narrow {
  max-width: 820px;
}

/* Buttons */
.er-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.er-btn--primary {
  background: var(--er-accent);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(107, 60, 245, 0.3);
}

.er-btn--primary:hover {
  background: var(--er-accent-dark);
  transform: translateY(-1px);
}

.er-btn--ghost {
  background: var(--er-white);
  color: var(--er-ink) !important;
  border-color: var(--er-line);
}

.er-btn--ghost:hover {
  border-color: var(--er-ink);
}

.er-btn--light {
  background: #fff;
  color: var(--er-accent) !important;
}

.er-btn--small {
  min-height: 40px;
  padding: 8px 18px;
  font-size: 15px;
}

.er-btn.is-soon {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

/* Header */
.er-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--er-line);
}

.er-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.er-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--er-ink) !important;
  margin-right: auto;
}

.er-brand img {
  border-radius: 10px;
}

.er-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.er-brand__name {
  font-weight: 800;
  font-size: 18px;
}

.er-brand__by {
  font-size: 12px;
  color: var(--er-muted);
}

.er-nav {
  display: flex;
  gap: 28px;
}

.er-nav a {
  color: var(--er-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
}

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

/* Hero */
.er-hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(1100px 500px at 85% 0%, var(--er-accent-soft), transparent 60%),
    var(--er-white);
}

.er-hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}

.er-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--er-accent-soft);
  color: var(--er-accent-dark);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 20px !important;
}

.er-lead {
  font-size: 19px;
  color: var(--er-muted);
  max-width: 540px;
}

.er-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 24px;
}

.er-hero__points {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--er-muted);
  font-size: 15px;
}

.er-hero__points li::before {
  content: "✓";
  color: var(--er-accent);
  font-weight: 800;
  margin-right: 8px;
}

.er-hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 520px;
}

.er-photos {
  display: grid;
  gap: 12px;
  width: 42%;
}

.er-photos img {
  border-radius: 14px;
  box-shadow: var(--er-shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.er-photos img:nth-child(2) {
  transform: translateX(18px);
}

.er-arrow {
  color: #ff7a6b;
  flex-shrink: 0;
  width: 90px;
}

.er-phone {
  position: relative;
  width: 42%;
  max-width: 270px;
  aspect-ratio: 9 / 16;
  border-radius: 34px;
  padding: 10px;
  background: var(--er-ink);
  box-shadow: var(--er-shadow);
}

.er-phone img,
.er-phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 26px;
}

.er-phone__play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.55);
}

.er-phone__play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 20px;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
}

/* Sections */
.er-section {
  padding: 88px 0;
}

.er-section--grey {
  background: var(--er-grey);
}

.er-section__intro {
  text-align: center;
  color: var(--er-muted);
  max-width: 640px;
  margin: 0 auto 40px !important;
}

/* How it works demo video (4:3 screen recording) */
.er-demo {
  max-width: 880px;
  margin: 40px auto 0;
}

.er-demo video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  background: #efebff;
  box-shadow: var(--er-shadow);
}

.er-demo figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--er-muted);
  text-align: center;
}

.er-steps {
  list-style: none;
  padding: 0;
  margin: 40px 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.er-steps li {
  background: var(--er-grey);
  border-radius: var(--er-radius);
  padding: 32px 28px;
}

.er-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--er-gradient);
  color: #fff;
  font-weight: 800;
  margin-bottom: 18px;
}

.er-steps p,
.er-style p,
.er-quality__item p {
  color: var(--er-muted);
}

.er-tip {
  text-align: center;
  color: var(--er-muted);
}

.er-styles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.er-style {
  margin: 0;
  background: var(--er-white);
  border-radius: var(--er-radius);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(17, 17, 20, 0.06);
}

.er-style__media {
  position: relative;
}

.er-style video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #efebff;
}

/* Sound on/off for each style example (one plays sound at a time) */
.er-style__sound {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 20, 0.62);
  color: #fff;
  cursor: pointer;
}

.er-style__sound:hover {
  background: rgba(17, 17, 20, 0.8);
}

.er-style__sound:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(17, 17, 20, 0.6);
}

.er-style__sound .er-icon-on,
.er-style__sound[aria-pressed="true"] .er-icon-off {
  display: none;
}

.er-style__sound[aria-pressed="true"] .er-icon-on {
  display: block;
}

.er-style figcaption {
  padding: 18px 20px 20px;
}

.er-style h3 {
  margin-bottom: 6px;
}

.er-style p {
  font-size: 15px;
  margin: 0;
}

/* Quality */
.er-quality {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.er-quality__item {
  position: relative;
  border: 1px solid var(--er-line);
  border-radius: var(--er-radius);
  padding: 28px;
  text-align: center;
}

.er-quality__item--featured {
  border: 2px solid var(--er-accent);
}

.er-quality__res {
  font-size: 30px;
  font-weight: 800;
  color: var(--er-ink) !important;
  margin-bottom: 4px !important;
}

.er-quality__credits {
  color: var(--er-ink) !important;
}

.er-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--er-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

.er-note,
.er-guarantee {
  text-align: center;
  color: var(--er-muted);
  font-size: 15px;
  margin-top: 24px !important;
}

/* Pricing */
.er-billing {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: fit-content;
  margin: 8px auto 40px;
  padding: 4px;
  border-radius: 999px;
  background: var(--er-white);
  border: 1px solid var(--er-line);
}

.er-billing__btn {
  border: 0;
  background: transparent;
  padding: 10px 20px;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: 15px;
  color: var(--er-muted);
  cursor: pointer;
}

.er-billing__btn.is-active {
  background: var(--er-ink);
  color: #fff;
}

.er-billing__save {
  font-size: 12px;
  font-weight: 600;
  color: #22a06b;
  margin-left: 4px;
}

.er-billing__btn.is-active .er-billing__save {
  color: #7ee2b8;
}

.er-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.er-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--er-white);
  border: 1px solid var(--er-line);
  border-radius: var(--er-radius);
  padding: 32px 28px;
}

.er-plan--featured {
  border: 2px solid var(--er-accent);
  box-shadow: var(--er-shadow);
}

.er-plan__price {
  font-size: 40px;
  font-weight: 800;
  margin: 4px 0 0 !important;
}

.er-plan__price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--er-muted);
  margin-left: 4px;
}

.er-plan__billed {
  color: var(--er-muted);
  font-size: 14px;
}

.er-plan__credits {
  margin-top: 8px !important;
}

.er-plan ul {
  padding-left: 20px;
  color: var(--er-muted);
  font-size: 15px;
  margin: 0 0 24px;
  flex-grow: 1;
}

.er-plan .er-btn {
  width: 100%;
}

.er-bundles__title {
  text-align: center;
  margin-top: 64px !important;
}

.er-bundles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 24px auto 0;
}

.er-bundle {
  background: var(--er-white);
  border: 1px solid var(--er-line);
  border-radius: var(--er-radius);
  padding: 24px;
  text-align: center;
}

.er-bundle__price {
  font-size: 26px;
  font-weight: 800;
}

/* FAQ */
.er-faq {
  margin-top: 32px;
}

.er-faq details {
  border-bottom: 1px solid var(--er-line);
  padding: 4px 0;
}

.er-faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 18px;
  padding: 18px 40px 18px 0;
  position: relative;
}

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

.er-faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 28px;
  font-weight: 400;
  color: var(--er-accent);
}

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

.er-faq details p {
  color: var(--er-muted);
  padding-bottom: 12px;
}

/* Call to action */
.er-cta {
  padding: 0 24px 88px;
}

.er-cta__inner {
  background: var(--er-gradient);
  border-radius: 28px;
  padding: 64px 24px;
  text-align: center;
  color: #fff;
}

.er-cta h2 {
  color: #fff;
}

/* Footer */
.er-footer {
  background: var(--er-grey);
  padding: 48px 0;
  font-size: 15px;
  color: var(--er-muted);
}

.er-footer__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px 40px;
}

.er-footer__brand {
  font-weight: 700;
  color: var(--er-ink);
  margin-bottom: 4px !important;
}

.er-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: flex-start;
}

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

.er-footer nav a:hover {
  color: var(--er-accent);
}

.er-footer__copy {
  grid-column: 1 / -1;
  font-size: 13px;
}

/* Tablet and phone */
@media (max-width: 960px) {
  .er-hero__grid {
    grid-template-columns: 1fr;
  }

  .er-hero__visual {
    min-height: 0;
  }

  .er-styles {
    grid-template-columns: repeat(2, 1fr);
  }

  .er-steps,
  .er-quality,
  .er-plans {
    grid-template-columns: 1fr;
  }

  .er-nav {
    display: none;
  }
}

@media (max-width: 600px) {
  body.er {
    font-size: 16px;
  }

  .er-hero {
    padding: 48px 0 56px;
  }

  .er-section {
    padding: 64px 0;
  }

  .er-container {
    padding: 0 16px;
  }

  .er-arrow {
    width: 56px;
  }

  .er-bundles {
    grid-template-columns: 1fr;
  }

  .er-footer__inner {
    grid-template-columns: 1fr;
  }

  .er-header .er-btn--small {
    padding: 8px 14px;
  }

  .er-brand__by {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .er-btn {
    transition: none;
  }
}
