:root {
  --bg: #f5f8fc;
  --card: #fff;
  --line: #d7e2f0;
  --ink: #0f172a;
  --muted: #64748b;
  --blue: #2b63e6;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: linear-gradient(180deg, #f8fbff, var(--bg));
  color: var(--ink);
}
body.theme-codee-card {
  --bg: #0a0a0c;
  --card: #111214;
  --line: rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #08090a, #0f1012);
}
body.upsell-locked {
  overflow: hidden;
  height: 100dvh;
}
body.top-only {
  overflow: hidden;
  height: 100dvh;
}
body.immersive-card {
  overflow: hidden;
  height: 100dvh;
}
.wrap {
  max-width: none;
  margin: 0;
  padding: 0 0 44px;
}
body.immersive-card .wrap {
  padding: 0;
}
.hero, .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
}
.card { padding: 16px; margin-top: 14px; }
.hero-example {
  position: relative;
  overflow: hidden;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #0d1220;
}
body.theme-codee-card .hero-example {
  background: #050506;
}
body.immersive-card .hero-example {
  min-height: 100dvh;
}

/* HERO BASE */
.cody-hero {
  width: 100%;
  min-height: 100svh;
  min-height: 100dvh;
  background: #050608;
  isolation: isolate;
}
.cody-hero__media,
.cody-hero__tap-target {
  width: 100%;
  height: 100%;
}
.cody-hero__media {
  position: relative;
  z-index: 1;
}
.cody-hero__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,0.05), transparent 22%),
    linear-gradient(180deg, rgba(7, 9, 12, 0.7), rgba(4, 5, 8, 0.9));
  z-index: 0;
}
.cody-hero.is-immersive {
  background: #020304;
}
.cody-hero.is-fullscreen {
  background: #000;
}

/* HERO OVERLAY */
.hero-example::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(81, 119, 178, 0.32), transparent 32%),
    radial-gradient(circle at 50% 72%, rgba(26, 45, 76, 0.34), transparent 44%),
    linear-gradient(180deg, rgba(9, 16, 27, 0.92), rgba(7, 12, 20, 0.98));
}
body.theme-codee-card .hero-example::before {
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.04), transparent 26%),
    radial-gradient(circle at 50% 72%, rgba(255, 255, 255, 0.03), transparent 38%),
    linear-gradient(180deg, rgba(6, 6, 8, 0.96), rgba(10, 10, 12, 0.98));
}
.hero-example::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 12, 20, .42), rgba(7, 12, 20, .7));
}
.flyer-wrap {
  position: relative;
  z-index: 1;
  width: 100vw;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2vh 2vw;
}
.learn-more-chip {
  position: absolute;
  left: 50%;
  bottom: max(8px, env(safe-area-inset-bottom, 0px) + 6px);
  transform: translateX(-50%);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .01em;
  color: #eef5ff;
  background: rgba(10, 18, 31, 0.28);
  border: 1px solid rgba(214, 229, 248, 0.18);
  box-shadow: 0 10px 26px rgba(8, 14, 25, 0.18);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease, background .2s ease;
}
body.theme-codee-card .learn-more-chip {
  left: max(10px, env(safe-area-inset-left, 0px) + 8px);
  bottom: 50%;
  transform: translateY(50%) rotate(-180deg);
  writing-mode: vertical-rl;
  min-height: 180px;
  width: 34px;
  padding: 12px 0;
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.76);
  border-color: rgba(255, 255, 255, 0.12);
  letter-spacing: .08em;
}
.learn-more-chip.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation: learnMoreFloat 2.8s ease-in-out infinite;
}
.cody-hero__learn-btn {
  z-index: 5;
}

.learn-more-chip.is-light-flyer {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.48);
  border-color: rgba(15, 23, 42, 0.12);
}
.learn-more-chip:hover {
  background: rgba(16, 29, 49, 0.72);
}
.flyer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  text-decoration: none;
}
.flyer-img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(96vw, 760px);
  height: auto;
  max-height: min(94svh, 980px);
  max-width: min(96vw, 760px);
  object-fit: contain;
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(6, 12, 22, .34);
  background: rgba(255,255,255,.12);
}
.cody-hero .flyer-img {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: 100dvh;
  opacity: 0;
  transform: scale(1.018);
  transition: opacity .7s ease, transform .85s ease, filter .35s ease;
  will-change: transform, opacity;
}
.cody-hero .flyer-img.is-ready {
  opacity: 1;
  transform: scale(1);
}
.cody-hero.is-fullscreen .flyer-img {
  filter: saturate(1.02) contrast(1.02);
}
.flyer-frame-shadow {
  position: absolute;
  inset: auto auto 22px 50%;
  width: min(72vw, 520px);
  height: 34px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(4, 10, 18, .48), transparent 72%);
  filter: blur(10px);
  z-index: 1;
}
.qr-overlay {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  border: 1px solid #c8d6e8;
  background: #fff;
  padding: 3px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, .22);
}
.qr-overlay-shell {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.cody-hero__actions {
  position: absolute;
  inset: 0;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  transition: opacity .42s ease;
}
.cody-hero.show-actions .cody-hero__actions {
  opacity: 1;
  pointer-events: auto;
}
.cody-hero__qr-shell,
.cody-hero__learn-btn,
.contact-fab {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .42s ease, transform .42s ease, background .22s ease, box-shadow .22s ease;
}
.cody-hero.show-actions .cody-hero__qr-shell,
.cody-hero.show-actions .cody-hero__learn-btn,
.cody-hero.show-actions .contact-fab {
  opacity: 1;
  transform: translateY(0);
}
.cody-hero__qr-shell {
  z-index: 5;
}
.contact-fab {
  position: absolute;
  right: max(14px, env(safe-area-inset-right, 0px) + 12px);
  bottom: max(14px, env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd75e, #f6bc27);
  color: #1c1c1c;
  border: 1px solid rgba(255, 231, 151, 0.58);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
  cursor: pointer;
}
.contact-fab:hover {
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.38);
}
.contact-fab__icon {
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}
.qr-overlay-shell--top-left {
  top: 14px;
  left: 14px;
}
.action-sheet-open {
  overflow: hidden;
}
.action-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
}
.action-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 11, 0.72);
  backdrop-filter: blur(6px);
}
.action-sheet__panel {
  position: absolute;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom, 0px) + 12px);
  transform: translateX(-50%);
  width: min(100% - 24px, 420px);
  padding: 18px;
  border-radius: 24px;
  background: rgba(9, 14, 20, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.38);
}
.action-sheet__eyebrow {
  margin: 0 0 6px;
  color: #f6bc27;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.action-sheet__title {
  margin: 0 0 8px;
  color: #f7fbff;
  font-size: 1.35rem;
}
.action-sheet__copy {
  margin: 0 0 14px;
  color: #cfdae6;
  line-height: 1.5;
}
.action-sheet__actions {
  display: grid;
  gap: 10px;
}
.action-sheet__button,
.action-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  width: 100%;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  font: inherit;
}
.action-sheet__button {
  background: #f6bc27;
  color: #161616;
  border: 1px solid rgba(246, 188, 39, 0.7);
}
.action-sheet__button--secondary {
  background: #20314a;
  color: #f4f8ff;
  border-color: rgba(161, 193, 232, 0.18);
}
.action-sheet__button--tertiary {
  background: rgba(9, 14, 20, 0.92);
  color: #f4f8ff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.action-sheet__close {
  margin-top: 12px;
  background: transparent;
  color: #b8c7d8;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
.qr-overlay-shell--top-right {
  top: 14px;
  right: 14px;
}
.qr-overlay-shell--bottom-left {
  left: 14px;
  bottom: 14px;
}
.qr-overlay-shell--bottom-right {
  right: 14px;
  bottom: 14px;
}
.qr-img {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  border: 1px solid #c8d6e8;
  background: #fff;
  padding: 8px;
}
.bottom-section {
  text-align: center;
  display: grid;
  gap: 14px;
  justify-items: center;
  min-height: 100dvh;
  padding: 28px 16px 32px;
  align-content: center;
  scroll-margin-top: 0;
}
body.top-only .bottom-section {
  display: none;
}
body.immersive-card .bottom-section {
  display: none;
}
.cover-img {
  width: 100%;
  max-width: 290px;
  border: 0;
  background: transparent !important;
  margin: 0 auto 10px;
  display: block;
  box-shadow: none;
}

.cover-img.is-hidden {
  display: none;
}
.benefits {
  margin: 0 auto 10px;
  max-width: 560px;
  text-align: left;
  color: #223b5f;
  padding-left: 20px;
}
.benefits li { margin-bottom: 6px; }
.buy-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: nowrap;
  margin: 8px 0;
  width: min(100%, 560px);
}
.buy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b63e6, #1e4fc9);
  color: #fff;
  padding: 11px 16px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 240px;
  min-height: 104px;
  font-size: 1.2rem;
  line-height: 1.12;
  text-align: center;
}
.copyright-line {
  margin: 12px 0 0;
  color: #556b8a;
  font-size: .85rem;
  text-align: center;
}
.social-media {
  width: 100%;
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
}
.follow-label {
  margin: 0;
  text-align: center;
  width: 100%;
}
.social-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.service-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 16px;
  background:
    radial-gradient(circle at top, rgba(76, 124, 198, 0.18), transparent 42%),
    linear-gradient(180deg, #08111e 0%, #0d1b2d 52%, #07111c 100%);
}
.service-panel {
  width: min(100%, 1140px);
  text-align: center;
  padding: 20px 20px 18px;
  border-radius: 30px;
  border: 1px solid rgba(126, 166, 214, 0.28);
  box-shadow: 0 28px 90px rgba(4, 10, 18, 0.48);
  background: linear-gradient(180deg, rgba(10, 22, 38, 0.96), rgba(8, 18, 31, 0.9));
}
.service-split {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(320px, 1fr);
  gap: 24px;
  align-items: center;
}
.service-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-visual--poster {
  align-self: stretch;
}
.service-hero-image {
  width: min(100%, 520px);
  max-height: min(84dvh, 860px);
  display: block;
  object-fit: contain;
  border-radius: 26px;
  border: 1px solid rgba(173, 205, 241, 0.18);
  box-shadow: 0 22px 70px rgba(3, 8, 14, 0.48);
}
.service-copy-column {
  text-align: left;
}
.service-copy-column--hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}
.service-eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: #87baff;
}
.service-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #f3f8ff;
}
.service-copy {
  width: min(100%, 560px);
  margin: 0;
  color: #c8d8ee;
  line-height: 1.62;
}
.benefits--service {
  width: min(100%, 560px);
  margin: 0;
  padding-left: 18px;
  color: #eef5ff;
  line-height: 1.55;
}
.benefits--service li + li {
  margin-top: 9px;
}
.service-note {
  margin: 0;
  width: min(100%, 560px);
  color: #8da5c3;
  font-size: 0.92rem;
  line-height: 1.5;
}
ul { margin: 10px 0 0; padding-left: 20px; }
li + li { margin-top: 6px; }
@media (max-width: 640px) {
  .hero-example {
    background-color: #101826;
    min-height: 100dvh;
  }
  .hero-example::before,
  .flyer-frame-shadow {
    display: none;
  }
  .hero-example::after {
    display: block;
    background: linear-gradient(180deg, rgba(7, 12, 20, .12), rgba(7, 12, 20, .18));
  }
  .wrap {
    padding: 0 0 44px;
  }
  .buy-row {
    gap: 10px;
  }
  .qr-img {
    width: 132px;
    height: 132px;
    flex: 0 0 auto;
  }
  .buy-button {
    min-width: 188px;
    min-height: 96px;
    font-size: 1.05rem;
    padding: 10px 12px;
    flex: 0 0 auto;
  }
  .flyer-wrap {
    padding: 0;
    width: 100vw;
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
  }
  .flyer-link {
    width: 100vw;
    height: 100dvh;
  }
  .flyer-img {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    object-fit: contain;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    animation: mobileFlyerFloat 4.6s ease-in-out infinite;
    transform-origin: center center;
  }
  .cody-hero .flyer-img {
    animation: none;
  }
  .contact-fab {
    right: max(10px, env(safe-area-inset-right, 0px) + 8px);
    bottom: max(10px, env(safe-area-inset-bottom, 0px) + 8px);
    width: 56px;
    height: 56px;
  }
  .contact-fab__icon {
    font-size: 16px;
  }
  .qr-overlay {
    width: 74px;
    height: 74px;
  }
  .qr-overlay-shell {
    inset: auto;
  }
  .qr-overlay-shell--top-left {
    top: 12px;
    left: 12px;
  }
  .qr-overlay-shell--top-right {
    top: 12px;
    right: 12px;
  }
  .qr-overlay-shell--bottom-left {
    left: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px) + 12px);
  }
  .qr-overlay-shell--bottom-right {
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom, 0px) + 12px);
  }
  .learn-more-chip {
    bottom: max(8px, env(safe-area-inset-bottom, 0px) + 8px);
    font-size: 10px;
    min-height: 30px;
    padding: 0 12px;
    width: auto;
    max-width: 188px;
    background: rgba(10, 18, 31, 0.2);
    border-color: rgba(214, 229, 248, 0.14);
  }
  .cody-hero__learn-btn {
    left: 50%;
    transform: translateX(-50%);
  }
  .bottom-section {
    min-height: 100dvh;
    padding: 18px 14px 16px;
    gap: 12px;
    align-content: start;
  }
  .flyer-showcase {
    gap: 12px;
  }
  .service-logo-img {
    max-width: 180px;
    margin-bottom: 2px;
  }
  .service-panel {
    width: min(100%, 720px);
    padding: 14px 14px 12px;
  }
  .service-split {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .service-copy-column {
    text-align: center;
  }
  .service-copy-column--hero {
    align-items: center;
    gap: 7px;
  }
  .service-hero-image {
    width: calc(100% + 18px);
    max-width: none;
    margin-left: -9px;
    margin-right: -9px;
    max-height: 44dvh;
    object-fit: cover;
    object-position: center top;
    border-radius: 20px;
  }
  .service-title {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1;
  }
  .service-copy,
  .benefits--service,
  .service-note {
    width: min(100%, 520px);
    margin-left: auto;
    margin-right: auto;
  }
  .service-copy {
    font-size: 0.92rem;
    line-height: 1.42;
  }
  .benefits--service {
    text-align: left;
    font-size: .88rem;
    line-height: 1.35;
  }
  .benefits--service li + li {
    margin-top: 7px;
  }
  .service-eyebrow {
    font-size: 0.66rem;
    letter-spacing: 0.13em;
  }
  .service-note,
  .social-media,
  .copyright-line {
    display: none;
  }
  .flyer-showcase-copy {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    text-align: left;
  }
  .benefits {
    margin: 0;
    max-width: 100%;
    font-size: .95rem;
    line-height: 1.45;
  }
  .buy-row--codee {
    margin: 2px 0 0;
  }
  .social-media {
    margin-top: 4px;
    gap: 12px;
  }
  .social-media a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }
  .copyright-line {
    margin-top: 4px;
  }
}

/* SIDEWAYS MODE */
.cody-hero--sideways .flyer-link {
  width: 100%;
  height: 100%;
}
.cody-hero--sideways .flyer-img {
  object-fit: contain;
}

@media (max-width: 900px) and (orientation: landscape) {
  body.top-only,
  body.upsell-locked {
    width: 100vw;
    height: 100dvh;
    overflow: hidden;
  }
  .hero-example,
  .flyer-wrap,
  .flyer-link {
    min-height: 100dvh;
    height: 100dvh;
  }
  .flyer-wrap {
    justify-content: center;
    align-items: center;
  }
  .flyer-link {
    width: 100vw;
    max-width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
  }
  .flyer-img {
    width: 100vw;
    height: 100dvh;
    object-fit: contain;
  }
  .learn-more-chip {
    bottom: max(8px, env(safe-area-inset-bottom, 0px) + 8px);
  }
  body.theme-codee-card .learn-more-chip {
    left: max(8px, env(safe-area-inset-left, 0px) + 8px);
    bottom: 50%;
    transform: translateY(50%) rotate(-180deg);
  }
  .contact-fab {
    bottom: auto;
    top: 50%;
    right: max(14px, env(safe-area-inset-right, 0px) + 12px);
    transform: translateY(-50%);
  }
  .cody-hero--sideways .flyer-img {
    width: 100dvh;
    height: 100vw;
    max-width: none;
    max-height: none;
    transform: rotate(-90deg);
  }
  .cody-hero--sideways .flyer-img.is-ready {
    transform: rotate(-90deg);
  }
  body.theme-codee-card .cody-hero__learn-btn {
    left: max(10px, env(safe-area-inset-left, 0px) + 8px);
    bottom: 50%;
    transform: translateY(50%) rotate(-180deg);
  }
}

/* LANDSCAPE ADJUSTMENTS */
@media (orientation: portrait) {
  .cody-hero--sideways .flyer-img {
    width: 100dvh;
    height: 100vw;
    max-width: none;
    max-height: none;
    transform: rotate(-90deg) scale(1.01);
  }
  .cody-hero--sideways .flyer-img.is-ready {
    transform: rotate(-90deg) scale(1);
  }
}

@keyframes mobileFlyerFloat {
  0% { transform: translate3d(0, 0, 0) scale(1.01); }
  50% { transform: translate3d(0, -6px, 0) scale(1.03); }
  100% { transform: translate3d(0, 0, 0) scale(1.01); }
}
@keyframes learnMoreFloat {
  0% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-4px); }
  100% { transform: translateX(-50%) translateY(0); }
}
body.theme-codee-card .learn-more-chip.is-visible {
  animation: none;
}
