/* ---------------------------------------------------------------------------
   CNY campaign: the hero and closing cards, the restyled overview, pricing
   and bonus sections, and the product mockups in the feature-hub,
   proof-bento and scene-tabs sections.
   Mockup markup lives in resources/views/pages/landing/cny-campaign/; the
   cream and brown are the Sunfold demo store's own colours.

   Loaded by resources/views/pages/landing/cny-campaign.blade.php.
   Plain CSS, no Tailwind @apply here.
   Bump the ?v on that <link> whenever this file changes.
--------------------------------------------------------------------------- */

:root {
  --cny-cream: #f7f3ea;
  --cny-cream-field: #eae6dc;
  --cny-cream-line: #e2dbce;
  --cny-brown: #30251d;
  --cny-ink: #242a31;
  --cny-line: #e0e4ea;
  --cny-muted: var(--color-gray-500);
  --cny-green: #168643;
  --cny-green-light: #eaf5ec;
  --cny-pointer: #17243d;
  --cny-red: #ce343d;
  --cny-navy: #06195b;
}

/* The draft's page wash: warm and blue glows behind the sections below the
   hero, so the sections themselves are transparent and only the hero and
   closing cards are white. */
main:has(> section.cny-hero) {
  background-color: var(--color-white);
  background-image:
    radial-gradient(ellipse 85% 850px at 0% 34%, #dce6ff70, transparent 75%),
    radial-gradient(ellipse 65% 900px at 100% 44%, #fce9eb9c, transparent 75%),
    radial-gradient(ellipse 80% 850px at 10% 77%, #dce6ff66, transparent 75%),
    radial-gradient(ellipse 70% 750px at 100% 96%, #fce9ebba, transparent 76%);
  background-repeat: no-repeat;
}

/* [class] lifts these over the py-10 and section-bg-white every section
   carries. */
main > section[class] {
  background: transparent;
}

main > section.cny-hero[class] {
  padding: 16px 0 0;
}

main > section.cny-overview[class],
main > section.cny-scenes[class] {
  padding-top: 56px;
  padding-bottom: 56px;
}

main > section.cny-proofs[class] {
  padding-top: 40px;
  padding-bottom: 40px;
}

main > section.cny-plans[class] {
  padding-top: 56px;
  padding-bottom: 40px;
}

main > section.cny-bonuses[class] {
  margin-top: 72px;
  padding-top: 40px;
  padding-bottom: 24px;
  background: linear-gradient(180deg, transparent 0, #f5f8ffcc 110px, #fcf2f3a1 calc(100% - 110px), transparent 100%);
}

main > section.cny-closing[class] {
  padding-top: 40px;
  padding-bottom: 0;
}

.section-plan-cards > .py-6 {
  padding-top: 0;
  padding-bottom: 0;
}

section.cny-proofs .pb-title,
section.cny-scenes .st-title,
section.cny-plans .text-center.mb-10 {
  margin-bottom: 30px;
}

@media (min-width: 768px) {
  .cny-br-phone {
    display: none;
  }
}

@media (min-width: 1024px) {
  main > section.cny-hero[class] {
    padding-top: 24px;
  }

  main > section.cny-overview[class],
  main > section.cny-scenes[class] {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  main > section.cny-proofs[class] {
    padding-top: 72px;
    padding-bottom: 80px;
  }

  main > section.cny-plans[class] {
    padding-top: 80px;
    padding-bottom: 64px;
  }

  main > section.cny-bonuses[class] {
    margin-top: 112px;
    padding-bottom: 48px;
  }

  main > section.cny-closing[class] {
    padding-top: 104px;
  }

  section.cny-proofs .pb-title {
    margin-bottom: 36px;
  }

  section.cny-scenes .st-title {
    margin-bottom: 45px;
  }

  section.cny-plans .text-center.mb-10 {
    margin-bottom: 47px;
  }
}

/* The header links and the red packet jump to sections on this page. */
@media (prefers-reduced-motion: no-preference) {
  html:has(.cny-header) {
    scroll-behavior: smooth;
  }
}

/* Draft header: logo, in-page links and the trial button; below 1024px the
   links move to a row of their own under the logo. */
.cny-header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  height: 72px;
  margin: auto;
  padding: 0 16px;
}

.cny-header-nav img {
  width: auto;
  height: 30px;
}

.cny-header-nav .btn {
  padding: 8px 16px;
  font-size: 14px;
}

@media (min-width: 1024px) {
  .cny-header-nav {
    height: 80px;
    padding: 0 40px;
  }

  .cny-header-nav img {
    height: 40px;
  }

  .cny-header-nav .btn {
    padding: 8px 20px;
  }
}

/* Hero: copy and the order card sit in one rounded card over a cloud
   texture; the gift box overlaps the order card. */
section.cny-hero > div {
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 24px;
  background:
    radial-gradient(at 92% 32%, #fff1eb 0%, transparent 45%) padding-box,
    radial-gradient(at 48% 98%, #e5efff 0%, transparent 46%) padding-box,
    linear-gradient(var(--color-white), var(--color-white)) padding-box,
    linear-gradient(125deg, #d9b773 0%, #f8dfaa 30%, #d9b773 56%, #d3a557 78%, #f8dfaa 100%) border-box;
}

section.cny-hero > div::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 45% -20% -4% -20%;
  background: url('https://resources.easystore.co/website/images/landing-page/cny-campaign/cloud-texture.webp') center / 100% 100% no-repeat;
  mask-image: linear-gradient(to right, transparent, #000 30%);
}

section.cny-hero h1 {
  color: var(--cny-navy);
}

section.cny-hero .btn-arrow svg {
  display: none;
}

section.cny-hero .hero-img-col {
  padding-top: 0;
  padding-bottom: 24px;
}

.cny-hero-kv {
  position: relative;
  width: 100%;
  aspect-ratio: 562 / 525;
}

/* The order card sits above the gift box, which only tucks under its edge. */
.cny-hero-gift {
  position: absolute;
  bottom: 4%;
  left: -4%;
  width: 98%;
  height: 63%;
  object-fit: contain;
}

.cny-hero-order {
  position: absolute;
  z-index: 1;
  top: 2%;
  right: 4%;
  width: min(300px, 64%);
  padding: 18px;
  border: 1px solid #e2e7ee;
  border-radius: 16px;
  background: var(--color-white);
  box-shadow: 0 6px 20px rgba(32, 55, 82, 0.043);
  color: #21314a;
  font-size: 13px;
  line-height: 1.5;
}

.cny-hero-order-top,
.cny-hero-order-product,
.cny-hero-order-date {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cny-hero-order-top {
  justify-content: space-between;
}

.cny-hero-order-top strong {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #17243c;
  font-size: 16px;
}

.cny-hero-order-top svg {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 8px;
  background: #eef4ff;
  color: var(--color-primary);
}

.cny-hero-order-top span {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f6ee;
  color: #217a59;
}

.cny-hero-order-product {
  margin: 14px 0 14px;
}

.cny-hero-order-product img {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.cny-hero-order-product b {
  display: -webkit-box;
  overflow: hidden;
  color: #26354d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.cny-hero-order-product small {
  display: block;
  margin-top: 5px;
  color: #96a0af;
  font-size: 11px;
}

.cny-hero-order-date {
  justify-content: space-between;
  padding: 8px 0 4px;
}

.cny-hero-order-date span {
  color: #74839a;
}

.cny-hero-order-date b {
  color: #27364f;
  font-size: 16px;
  font-weight: 600;
}

@media (min-width: 1024px) {
  main > section.cny-hero {
    padding-bottom: 64px;
  }

  section.cny-hero > div {
    max-width: 1080px;
    min-height: 570px;
  }

  section.cny-hero > div::before {
    inset: -3% -13% -4% 42%;
  }

  section.cny-hero h1 + h3 {
    margin-top: 24px;
    font-size: 17px;
    line-height: 1.8;
  }

  section.cny-hero .btn {
    margin-top: 12px;
    padding: 14px 22px;
  }

  section.cny-hero .hero-img-col {
    padding: 25px 10px 20px 0;
  }
}

/* Desktop, measured from the draft: the card runs to 100px from each edge
   up to 1200px, the copy takes 44% of it and the order card and gift box are
   placed against the card itself rather than inside a half-width column. */
@media (min-width: 1101px) {
  section.cny-hero > div {
    width: calc(100% - 200px);
    max-width: 1200px;
    padding-inline: max(0px, calc((min(100% - 200px, 1200px) - 1152px) / 2));
  }

  section.cny-hero > div > div:first-child {
    flex: none;
    width: calc(40px + min(472px, 0.44 * (100% - 80px)));
    max-width: none;
    margin-bottom: 0;
    white-space: nowrap;
  }

  /* The draft lets the two buttons run past the narrow copy column rather
     than wrap; only the button row is kept on one line. */
  section.cny-hero h1,
  section.cny-hero h1 + h3 {
    white-space: normal;
  }

  section.cny-hero .btn {
    line-height: 27px;
  }

  section.cny-hero h1 + h3 {
    max-width: none;
    padding-inline: 0;
    color: #404954;
    font-weight: 400;
  }

  section.cny-hero .hero-img-col,
  .cny-hero-kv {
    position: static;
  }

  .cny-hero-kv {
    aspect-ratio: auto;
  }

  .cny-hero-order {
    top: 35px;
    right: 44px;
    width: 300px;
  }

  .cny-hero-gift {
    bottom: 30px;
    left: 70.4%;
    width: auto;
    height: 330px;
    transform: translateX(-50%);
  }
}

@media (min-width: 1400px) {
  .cny-hero-gift {
    height: 350px;
  }
}

@media (min-width: 1024px) and (max-width: 1100px) {
  section.cny-hero > div {
    margin-inline: 32px;
  }
}

@media (max-width: 767px) {
  section.cny-hero > div {
    margin-inline: 12px;
    padding-top: 20px;
    border-radius: 20px;
  }

  section.cny-hero h1 {
    font-size: 30px;
  }

  /* keep-all breaks the copy only at commas and spaces, between phrases. */
  section.cny-hero h1 + h3 {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.75;
    word-break: keep-all;
  }

  section.cny-hero .btn {
    width: 100%;
    margin-right: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 17px;
  }

  section.cny-hero .hero-img-col {
    padding: 6px 0 8px;
  }

  .cny-hero-kv {
    aspect-ratio: 366 / 396;
  }

  .cny-hero-gift {
    bottom: 2%;
    left: 0;
    width: 100%;
    height: 61%;
  }

  .cny-hero-order {
    top: 2%;
    right: 12%;
    width: 76%;
    padding: 12px 14px;
  }

  .cny-hero-order-product {
    margin: 8px 0;
  }

  .cny-hero-order-product img {
    width: 48px;
    height: 48px;
  }

  .cny-hero-order-date {
    padding-top: 0;
  }
}

/* Overview: the storefront devices on the left, the six capabilities in two
   plain columns on the right; the hub connectors are not drawn here. */
section.cny-overview .fh-title {
  margin-bottom: 48px;
}

section.cny-overview .fh-hub {
  max-width: none;
  gap: 32px 28px;
}

section.cny-overview .fh-routes {
  display: none;
}

section.cny-overview .fh-panel {
  width: min(100%, 620px);
  margin: 0 auto 8px;
}

section.cny-overview .fh-card {
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
}

section.cny-overview .fh-icon {
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: #e6ebfa;
}

section.cny-overview .fh-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.45;
}

section.cny-overview .fh-card p {
  color: #596579;
  font-size: 16px;
  line-height: 1.65;
}

@media (min-width: 998px) {
  section.cny-overview .fh-hub {
    grid-template-columns: minmax(0, 545fr) repeat(2, minmax(0, 235fr));
    grid-template-rows: repeat(3, auto);
    gap: 32px 28px;
    align-items: start;
  }

  section.cny-overview .fh-hub > .fh-panel {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
    margin: 0 20px 0 0;
  }

  section.cny-overview .fh-card {
    grid-row: var(--fh-row);
    flex-direction: column;
    text-align: left;
  }

  section.cny-overview .fh-card--left {
    grid-column: 2;
  }

  section.cny-overview .fh-card--right {
    grid-column: 3;
  }
}

@media (max-width: 767px) {
  section.cny-overview .fh-title {
    margin-bottom: 24px;
    font-size: 25px;
  }

  section.cny-overview .fh-panel {
    width: 86%;
  }

  section.cny-overview .btn.cny-shop-link {
    margin-top: 18px;
    padding: 8px 18px;
    font-size: 15px;
  }

  section.cny-overview .fh-hub {
    gap: 28px;
  }

  section.cny-overview .fh-pair {
    gap: 28px;
    padding-bottom: 0;
  }

  section.cny-overview .fh-card {
    flex-direction: row;
    gap: 16px;
  }

  section.cny-overview .fh-card h3 {
    margin-bottom: 4px;
  }

  section.cny-overview .cny-laptop {
    left: 0;
  }

  section.cny-overview .fh-card p {
    font-size: 15px;
    line-height: 1.7;
  }
}

/* Closing: a light card on the cloud texture with both CTAs side by side. */
section.cny-closing > div {
  position: relative;
  z-index: 0;
  overflow: hidden;
  border: 1px solid #eceef2;
  border-radius: 26px;
  background: radial-gradient(at 15% 95%, #e7efff, transparent 62%), var(--color-white);
}

section.cny-closing > div::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 0 33%;
  background: url('https://resources.easystore.co/website/images/landing-page/cny-campaign/cloud-texture.webp') 65% 0 / cover no-repeat;
  mask-image:
    linear-gradient(to right, transparent, #000 18%),
    linear-gradient(transparent, #000 10%, #000 80%, transparent);
  mask-composite: intersect;
}

section.cny-closing > div > div:first-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 64px;
  padding-bottom: 64px;
}

section.cny-closing h2 {
  width: 100%;
  margin-bottom: 16px;
}

section.cny-closing > div > div:first-child > p {
  margin: 0;
}

section.cny-closing .btn {
  padding: 12px 16px;
  font-size: 16px;
  line-height: 1.8;
}

.btn.cny-contact-link,
section.cny-hero .btn-outline-primary {
  background: var(--color-white);
}

section.cny-closing > div > div:last-child {
  display: none;
}

@media (min-width: 1100px) {
  section.cny-closing > div {
    width: calc(100% - 48px);
    max-width: 1200px;
    min-height: 400px;
  }

  section.cny-closing > div > div:first-child {
    padding-inline: 64px;
  }

  section.cny-closing h2 {
    font-size: 46px;
    line-height: 1.25;
  }
}

@media (max-width: 767px) {
  section.cny-closing > div {
    margin-inline: 12px;
    border-radius: 22px;
  }

  section.cny-closing > div::before {
    inset: auto -8% 0 auto;
    width: 100%;
    height: 145px;
    opacity: 0.36;
    background-position: 85% 35%;
    mask-image:
      linear-gradient(to right, transparent, #000 75%),
      linear-gradient(to top, #000, transparent);
  }

  section.cny-closing > div > div:first-child {
    padding: 28px 20px 24px;
  }

  section.cny-closing h2 {
    margin-bottom: 12px;
    font-size: clamp(24px, 7.7vw, 30px);
    line-height: 1.3;
    letter-spacing: -0.035em;
  }

  section.cny-closing .btn {
    width: 100%;
    line-height: 1.5;
  }

  section.cny-closing > div > div:first-child > p {
    width: 100%;
  }
}

/* Pricing: white cards with a tinted head, red for Business, under the red
   paper swirl. */
section.cny-plans {
  position: relative;
  z-index: 0;
}

section.cny-plans::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 0 auto;
  height: 1040px;
  background: url('https://resources.easystore.co/website/images/landing-page/cny-campaign/pricing-paper.webp') 50% -180px / 100% 100% no-repeat;
  mask-image: linear-gradient(180deg, transparent 0, #000 200px, #000 60%, transparent 82%);
  pointer-events: none;
}

@media (max-width: 767px) {
  section.cny-plans::before {
    background-position: right -220px;
    background-size: auto 100%;
  }
}

section.cny-plans h2 {
  color: inherit;
}

section.cny-plans .pc-card,
section.cny-plans .pc-card--highlight {
  position: relative;
  border: 8px solid var(--color-white);
  background: var(--color-white);
  color: inherit;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09);
}

section.cny-plans .pc-ribbon {
  position: absolute;
  top: 34px;
  left: 34px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #1d4aa3;
  font-size: 13px;
  font-weight: 600;
}

/* Lucide gift, drawn as a mask so it takes the badge's text colour. */
section.cny-plans .pc-ribbon::before {
  content: '';
  width: 14px;
  height: 14px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='8' width='18' height='4' rx='1'/%3E%3Cpath d='M12 8v13M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5'/%3E%3C/svg%3E") center / contain no-repeat;
}

section.cny-plans .pc-card--highlight .pc-ribbon {
  background: var(--cny-red);
  color: var(--color-white);
}

section.cny-plans .pc-body {
  padding-top: 0;
  padding-bottom: 45px;
}

section.cny-plans .pc-name,
section.cny-plans .pc-price,
section.cny-plans .pc-cta {
  position: relative;
}

section.cny-plans .pc-body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 315px;
  border-radius: 16px;
  background: #edf1f8;
}

section.cny-plans .pc-card--highlight .pc-body::before {
  background:
    radial-gradient(at 94% 0%, #dce6ff 0%, transparent 58%),
    radial-gradient(at 35% 0%, #ffc7cc 0%, transparent 65%),
    #fce9eb;
}

section.cny-plans .pc-name {
  margin-top: 80px;
  font-size: 40px;
  font-weight: 800;
}

section.cny-plans .pc-price__cycle {
  font-size: 14px;
}

section.cny-plans .pc-card:not(.pc-card--highlight) .pc-cta .btn.btn-primary {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

section.cny-plans .pc-card--highlight .pc-cta .btn {
  border-color: var(--cny-red);
  background: var(--cny-red);
  color: var(--color-white);
}

section.cny-plans .pc-list--features {
  margin-top: 84px;
}

section.cny-plans .pc-card--highlight .pc-list li::before {
  color: inherit;
}

/* Bonuses: square artwork cards with the AI card across the row below. */
section.cny-bonuses .mc-header h2 {
  margin-bottom: 40px;
}

section.cny-bonuses .mc-media {
  height: auto;
  aspect-ratio: 1;
  border-radius: 16px;
  background: #eef3f8;
}

section.cny-bonuses .mc-card:last-child .mc-media {
  aspect-ratio: 1032 / 316;
}

section.cny-bonuses .mc-card .mc-title {
  margin: 0;
  font-size: 23px;
}

section.cny-bonuses .mc-subtitle {
  margin: 4px 0 0;
  color: #667085;
  font-size: 17px;
}

@media (max-width: 997px) {
  section.cny-bonuses .mc-card:last-child .mc-media {
    aspect-ratio: 1;
  }

  section.cny-bonuses .mc-card:last-child .mc-media img {
    object-position: 50% 50%;
  }
}

/* Shared mockup surfaces */

.cny-ui {
  width: 100%;
  max-width: 480px;
  margin: auto;
  padding: 20px;
  border: 1px solid var(--cny-line);
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 14px 30px rgba(31, 45, 69, 0.06);
  color: var(--cny-ink);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.cny-ui p {
  margin: 0;
}

.cny-ui--sunfold {
  border-color: var(--cny-cream-line);
  background: var(--cny-cream);
  color: var(--cny-brown);
}

.cny-ui-head {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cny-line);
  font-size: 16px;
  font-weight: 700;
}

.cny-ui-head span {
  color: var(--cny-muted);
  font-size: 12px;
  font-weight: 400;
}

.cny-ui .cny-ui-label {
  margin: 12px 0 6px;
  font-size: 13px;
}

.cny-field {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--cny-line);
  border-radius: 7px;
  background: var(--color-white);
}

.cny-bubble {
  padding: 16px;
  border-radius: 0 12px 12px 12px;
  background: var(--cny-green-light);
  color: #234637;
  line-height: 1.8;
}

.cny-bubble u {
  color: var(--color-primary);
}

.cny-product-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.cny-product-row img {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

/* The demo pointer the scripted walkthroughs move between controls. */
.cny-pointer {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 15%;
  width: 24px;
  height: 28px;
  pointer-events: none;
  opacity: 0;
  transform: translate(12px, 12px);
  transition: opacity 180ms ease-out, transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  filter: drop-shadow(0 2px 2px rgba(23, 36, 61, 0.15));
}

.cny-cal-day .cny-pointer {
  top: 60%;
  right: auto;
  left: 55%;
}

.is-demo-hover .cny-pointer {
  opacity: 1;
  transform: none;
}

.is-demo-press .cny-pointer {
  transform: translate(0, 2px) scale(0.92);
}

/* Overview: laptop and phone frames around the Sunfold store captures */

/* A size container so the phone's corners can scale with the frame (cqw)
   and stay round, where % radii turn oval on the tall phone. */
.cny-devices {
  position: relative;
  width: 100%;
  aspect-ratio: 1630 / 965;
  container-type: inline-size;
}

.cny-laptop {
  position: absolute;
  top: 0;
  left: 1%;
  width: 82%;
}

.cny-laptop-screen {
  padding: 2% 2% 2.8%;
  border: 1px solid #777d83;
  border-radius: 15px 15px 5px 5px;
  background: linear-gradient(120deg, #34373c, #08090b 45%, #32353a);
  box-shadow: inset 0 0 0 2px #17191c, 0 10px 24px rgba(19, 35, 61, 0.09);
}

.cny-laptop-screen img {
  display: block;
  width: 100%;
  aspect-ratio: 1158 / 760;
  border-radius: 4px;
  object-fit: cover;
  object-position: top;
}

.cny-laptop-base {
  position: relative;
  left: -5%;
  width: 110%;
  height: 12px;
  border-radius: 1px 1px 45% 45%;
  background: linear-gradient(#dce0e5, #9ba1aa 45%, #e4e6e9 52%, #707680);
  box-shadow: 0 5px 6px rgba(25, 36, 56, 0.145);
}

.cny-phone {
  position: absolute;
  right: 0;
  bottom: 3%;
  width: 22%;
  padding: 1%;
  border-radius: 3.4cqw;
  background: linear-gradient(125deg, #8d939b, #17191c 15%, #050608 65%, #90969c);
  box-shadow: 0 8px 16px rgba(21, 34, 56, 0.15), inset 0 0 0 1px #aeb3ba;
}

.cny-phone img {
  display: block;
  width: 100%;
  aspect-ratio: 375 / 822;
  border-radius: 2.7cqw;
  object-fit: cover;
}

.btn.cny-shop-link {
  display: flex;
  width: max-content;
  max-width: 100%;
  margin: 24px auto 0;
  background: var(--color-white);
}

/* Proof: delivery date picker */

.cny-cal {
  padding: 12px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  background: var(--color-white);
}

.cny-cal > b {
  display: block;
  text-align: center;
}

.cny-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-top: 8px;
  text-align: center;
}

.cny-cal-days > span {
  color: #6f757b;
  font-size: 12px;
}

.cny-cal-day {
  position: relative;
  justify-self: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #333;
  font-size: 13px;
  transition: background-color 180ms ease-out, color 180ms ease-out, box-shadow 180ms ease-out;
}

.cny-cal-day.is-demo-hover {
  background: #edf3ff;
  box-shadow: inset 0 0 0 2px rgba(21, 92, 228, 0.25);
}

.cny-cal-day.is-chosen {
  background: var(--color-primary);
  color: var(--color-white);
}

/* The slot editor opens over the calendar, so the card never changes height. */
.cny-cal-slot {
  position: relative;
}

.cny-cal-result {
  width: 100%;
  margin-top: 10px;
  padding: 10px 16px;
  border: 0;
  border-radius: 8px;
  background: #b0542b;
  color: var(--color-white);
  font-weight: 600;
  text-align: center;
}

.cny-cal-slot-editor {
  position: absolute;
  inset: auto 0 calc(100% - 4px);
  z-index: 2;
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--cny-cream-line);
  border-radius: 10px;
  background: var(--cny-cream);
  box-shadow: 0 10px 24px rgba(66, 39, 19, 0.12);
  font-weight: 600;
}

.cny-cal-slot-editor[hidden] {
  display: none;
}

.cny-cal-slot-editor select {
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  background: #ece3da;
  color: inherit;
  font-weight: 400;
}

/* Proof: greeting card */

.cny-gift-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.cny-gift-summary img {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  object-fit: cover;
}

.cny-greeting-input {
  width: 100%;
  min-height: 60px;
  padding: 8px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--cny-cream-field);
  color: inherit;
  font: inherit;
}

.cny-greeting-card {
  margin-top: 12px;
  padding: 14px 10px;
  border: 1px solid #c5ae88;
  background: #fffdf5;
  text-align: center;
}

.cny-greeting-card small {
  font-size: 10px;
  letter-spacing: 2px;
}

.cny-ui .cny-greeting-preview {
  min-height: 3.3em;
  margin: 10px 0;
  color: #6e3c27;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.cny-greeting-preview.is-typing::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: currentColor;
  animation: cny-caret 900ms step-end infinite;
}

@keyframes cny-caret {
  50% {
    opacity: 0;
  }
}

.cny-greeting-card span {
  font-size: 12px;
}

/* Proof: same-day courier choice */

.cny-shipping-choices {
  padding: 3px 5px;
}

.cny-shipping {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 76px;
  margin: 14px 0;
  padding: 12px 18px;
  border: 2px solid var(--cny-line);
  border-radius: 7px;
  background: var(--color-white);
  color: var(--cny-muted);
  text-align: left;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), border-color 180ms ease-out, background-color 180ms ease-out;
}

.cny-shipping.is-active {
  z-index: 1;
  border-color: var(--color-primary);
  background: #f3f7ff;
  box-shadow: 0 5px 14px rgba(21, 92, 228, 0.08);
  transform: scale(1.035);
}

.cny-shipping-dot {
  flex: 0 0 16px;
  height: 16px;
  border: 1.5px solid #aab6c9;
  border-radius: 50%;
}

.cny-shipping.is-active .cny-shipping-dot {
  border: 5px solid var(--color-primary);
}

/* Each logo file carries its own padding: the negative margins drop the
   20px border around Lalamove, and cover keeps only GrabExpress's wordmark,
   not the "web booking portal" line under it. */
.cny-shipping[aria-label='Lalamove'] img {
  width: 160px;
  height: 74px;
  margin: -20px;
}

.cny-shipping[aria-label='GrabExpress'] img {
  width: 150px;
  height: 28px;
  object-fit: cover;
  object-position: 0 0;
}

/* Proof: WhatsApp order form, a portrait web page drawn at 85% (70% in the
   three-across cards) so it reads as a page, not a widget. */

.cny-wa {
  zoom: 0.85;
  width: 310px;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--cny-line);
  border-radius: 22px;
  background: var(--color-white);
  box-shadow: 0 14px 30px rgba(31, 45, 69, 0.06);
  color: #15191f;
  text-align: left;
}

.cny-wa-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px;
  padding: 13px 12px;
  border-bottom: 1px solid #eef0f3;
  font-size: 10px;
}

.cny-wa-toolbar span:first-child {
  font-weight: 700;
}

/* An illustration, not a widget: one product card tall and never scrolls. */
.cny-wa-catalog {
  height: 360px;
  padding: 0 10px;
  overflow: hidden;
}

.cny-wa-product {
  margin: 12px 0 0;
  overflow: hidden;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
}

.cny-wa-product img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.cny-wa-product h4 {
  margin: 12px;
  font-size: 15px;
  line-height: 1.4;
}

.cny-wa-variant {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-top: 1px solid #e9ecf0;
}

.cny-wa-variant small,
.cny-wa-variant strong {
  display: block;
}

.cny-wa-variant small {
  color: #778090;
  font-size: 12px;
}

.cny-wa-variant strong {
  color: #414c5e;
  font-size: 14px;
}

.cny-wa-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.cny-wa-quantity button {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #d5dce6;
  border-radius: 50%;
  background: var(--color-white);
  color: #182230;
  font-size: 20px;
}

.cny-wa-quantity button:disabled {
  color: #c6ccd5;
}

.cny-wa-plus.is-demo-hover {
  border-color: var(--color-primary);
  background: #f0f5ff;
}

.cny-wa-footer {
  padding: 11px 12px 13px;
  border-top: 1px solid #e1e5eb;
}

.cny-wa-send {
  padding: 10px;
  border-radius: 12px;
  background: #21ce63;
  color: var(--color-white);
  font-weight: 600;
  text-align: center;
}

.cny-wa-buy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
  padding: 12px 10px;
  border: 1px solid #e1e5ed;
  border-radius: 12px;
  background: #f8f9fb;
  font-size: 13px;
}

.cny-wa-total {
  color: #7c8798;
  font-size: 12px;
}

.cny-wa-powered {
  display: block;
  margin-top: 6px;
  color: #8793a5;
  font-size: 9px;
  text-align: center;
}

@media (min-width: 1100px) {
  .cny-wa {
    zoom: 0.7;
    width: 270px;
  }

  .cny-wa-catalog {
    height: 333px;
  }

  .cny-wa-product img {
    height: 200px;
  }
}

/* Proof: guest checkout */

.cny-checkout {
  display: grid;
}

.cny-checkout-form,
.cny-checkout-success {
  grid-area: 1 / 1;
  transition: opacity 220ms ease-out;
}

.cny-checkout .cny-ui-head span {
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 15px;
  background: #eef4ff;
  color: var(--color-primary);
  font-weight: 600;
}

.cny-checkout-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 10px;
}

.cny-checkout-address {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.cny-checkout-fields .cny-ui-label:first-child {
  margin-top: 0;
}

.cny-field-bar {
  display: block;
  width: 62%;
  height: 6px;
  border-radius: 99px;
  background: #e4e8ee;
}

.cny-field--address {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
}

.cny-field--address .cny-field-bar {
  width: 82%;
}

.cny-field--address .cny-field-bar + .cny-field-bar {
  width: 54%;
}

.cny-checkout-pay {
  position: relative;
  width: 100%;
  min-height: 46px;
  margin-top: 16px;
  border: 0;
  border-radius: 8px;
  background: var(--color-primary);
  color: var(--color-white);
}

.cny-checkout-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  visibility: hidden;
  opacity: 0;
}

.cny-checkout-success svg {
  width: 76px;
  height: 76px;
}

.cny-checkout-success circle {
  fill: #edf6ef;
}

.cny-checkout-success path {
  fill: none;
  stroke: var(--cny-green);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cny-ui .cny-checkout-success p {
  font-size: 20px;
  font-weight: 700;
}

.cny-checkout-success small {
  margin-top: -10px;
  color: var(--cny-muted);
}

.cny-checkout.is-paid .cny-checkout-form {
  visibility: hidden;
  opacity: 0;
}

.cny-checkout.is-paid .cny-checkout-success {
  visibility: visible;
  opacity: 1;
}

/* Proof: shipment progress, a vertical stepper; the line grows to a stop
   before the stop lights up. */

.cny-bubble-link::after {
  content: '→';
}

.cny-bubble-link {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  padding: 8px 12px;
  border: 1px solid #d5e3da;
  border-radius: 8px;
  background: var(--color-white);
  color: var(--cny-ink);
  font-weight: 600;
}

.cny-track-details {
  display: none;
}

.cny-track.is-inspecting .cny-ui-head,
.cny-track.is-inspecting .cny-bubble {
  display: none;
}

.cny-track.is-inspecting .cny-track-details {
  display: block;
}

.cny-track-details-head {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 16px;
}

.cny-track-back {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cny-muted);
  font-size: 13px;
}

.cny-track-status {
  display: block;
  margin-top: 14px;
  color: #1f8a4c;
  font-size: 24px;
  line-height: 1.3;
}

.cny-track-details small {
  color: var(--cny-muted);
  font-size: 13px;
}

.cny-tracking {
  --cny-track-progress: 0;
  position: relative;
  display: grid;
  gap: 14px;
  margin: 20px 0 0;
  padding: 0;
  color: #7c8690;
  font-size: 13px;
  line-height: 1.5;
  list-style: none;
}

.cny-tracking::before,
.cny-tracking::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 6px;
  width: 2px;
  height: calc(100% - 20px);
  background: #dce5df;
}

.cny-tracking::after {
  background: var(--cny-green);
  transform: scaleY(var(--cny-track-progress));
  transform-origin: center top;
  transition: transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
}

.cny-tracking.is-resetting::after {
  transition: none;
}

.cny-tracking li {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 28px;
}

.cny-tracking li::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 2px solid #dce5df;
  border-radius: 50%;
  background: var(--color-white);
  box-sizing: border-box;
}

.cny-tracking .is-complete {
  color: var(--cny-green);
}

.cny-tracking .is-complete::before {
  border-color: var(--cny-green);
  background: var(--cny-green);
}

.cny-tracking .is-current {
  color: var(--cny-green);
  font-weight: 700;
}

.cny-tracking .is-current::before {
  border: 3px solid var(--color-white);
  background: var(--cny-green);
  box-shadow: 0 0 0 2px var(--cny-green);
}

/* Scenes: an audience card over a message card, beside the photo */

.cny-audience,
.cny-message {
  border: 1px solid #dce2e9;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 6px 20px rgba(24, 34, 54, 0.03);
  color: #202631;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.cny-audience {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  font-weight: 600;
}

.cny-audience small {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

.cny-audience span {
  padding: 5px 9px;
  border-radius: 5px;
  background: #f1f5f9;
  color: #263445;
  font-size: 15px;
}

.cny-message-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 4px;
}

.cny-message-head strong {
  color: #586576;
  font-size: 16px;
  font-weight: 500;
}

.cny-message-head small {
  color: #64748b;
  font-size: 12px;
}

.cny-message-channels {
  display: flex;
  gap: 9px;
}

.cny-message-channels img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.cny-message-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 16px 16px;
}

/* The chat bubble: the message across the top, the product photo under it
   and, for invites, the action beside the photo. */
.cny-sent {
  display: grid;
  grid-template-columns: 93px 1fr;
  gap: 10px 16px;
  align-items: center;
  margin: 12px 16px 16px;
  padding: 14px;
  border: 1px solid #dfe8f7;
  border-radius: 10px 10px 3px;
  background: #edf3fc;
  box-shadow: 0 6px 20px rgba(24, 34, 54, 0.024);
}

.cny-sent p {
  grid-column: 1 / -1;
  margin: 0;
  color: #334155;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.6;
}

.cny-sent img {
  width: 93px;
  height: 70px;
  border-radius: 8px;
  object-fit: cover;
}

.cny-sent-link {
  justify-self: end;
  padding: 8px 12px;
  border-radius: 5px;
  background: #303030;
  color: var(--color-white);
  font-size: 13px;
  font-weight: 600;
}

.cny-message--voucher .cny-message-head strong {
  color: #263445;
  font-size: 17px;
  font-weight: 600;
}

.cny-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cny-chips span {
  padding: 8px 12px;
  border: 1px solid #dfe4eb;
  border-radius: 6px;
  color: #667080;
  font-size: 13px;
}

.cny-chips span.is-active {
  border-color: #b7caec;
  background: #edf3fc;
  color: #3569bf;
}

/* A gift ticket: a brown face over a white stub, with notches where the
   dashed tear line meets the edges. */
.cny-voucher {
  overflow: hidden;
  border: 1px solid #e0d4ce;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(119, 54, 30, 0.07);
}

.cny-voucher-main {
  position: relative;
  padding: 34px 18px 32px;
  background: linear-gradient(125deg, #733722 0%, #93472d 65%, #a55638 100%);
  color: #f5e4dc;
  text-align: center;
}

.cny-voucher-main::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.21);
  border-radius: 5px;
}

.cny-voucher-main strong {
  display: block;
  color: var(--color-white);
  font-size: 29px;
  font-weight: 600;
}

.cny-voucher-main p {
  margin: 14px 0 0;
  font-size: 15px;
}

.cny-voucher-stub {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px dashed #d8c8c0;
  background: var(--color-white);
  color: #82432d;
  font-size: 12px;
}

.cny-voucher-stub::before,
.cny-voucher-stub::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border: 1px solid #e0d4ce;
  border-radius: 50%;
  background: var(--color-white);
}

.cny-voucher-stub::before {
  left: -9px;
}

.cny-voucher-stub::after {
  right: -9px;
}

.cny-voucher-stub svg {
  width: 21px;
  height: 21px;
}

.cny-message--orders .cny-message-head {
  margin: 14px 16px 0;
  padding: 0 0 10px;
  border-bottom: 1px solid #e9edf3;
}

.cny-message--orders .cny-message-head strong {
  color: #263445;
  font-size: 20px;
  font-weight: 600;
}

.cny-message--orders .cny-message-head small {
  color: #667080;
  font-size: 13px;
  font-weight: 500;
}

.cny-message--orders .cny-message-body {
  gap: 0;
  padding: 3px 16px 1px;
}

.cny-order-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e9ef;
}

.cny-order-row:last-child {
  border-bottom: 0;
}

.cny-order-row > img {
  width: 46px;
  height: 46px;
  border: 1px solid #e6e9ed;
  border-radius: 7px;
  object-fit: cover;
}

.cny-order-row span {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 8px;
  color: #263445;
  font-size: 15px;
  font-weight: 600;
}

.cny-order-row span img {
  width: 27px;
  height: 27px;
  border-radius: 5px;
}

.cny-order-row b {
  padding: 3px 8px;
  border-radius: 5px;
  background: #fbefd0;
  color: #75602a;
  font-size: 12px;
  font-weight: 500;
}

.cny-order-row b.is-done {
  background: #f2f3f5;
  color: #6f7886;
}

section.cny-scenes .st-photo {
  box-shadow: none;
}

section.cny-scenes .st-panel {
  background: transparent;
}

/* Phones, as in the draft: a wider card with the photo on top, the mockup
   overlapping its lower edge, then the copy, so each card reads as one
   scene. */
@media (max-width: 600px) {
  section.cny-scenes .st-track {
    --st-slide-width: 82vw;
  }
}

@container scene-tabs (max-width: 759px) {
  section.cny-scenes .st-visual {
    gap: 0;
  }

  section.cny-scenes .st-photo {
    order: -1;
    align-self: flex-end;
    width: 90%;
    margin: 0;
  }

  section.cny-scenes .st-panel {
    width: 100%;
    margin-top: -36px;
  }


  section.cny-scenes .st-copy {
    padding-top: 20px;
  }
}

@media (min-width: 768px) {
  section.cny-scenes .st-panel {
    top: 0;
    width: 446px;
    min-height: 0;
    margin-right: -90px;
    padding: 32px 0 0;
    align-self: flex-start;
  }

  section.cny-scenes .st-photo {
    top: 0;
    width: 440px;
    max-width: 48%;
    height: 425px;
    border-radius: 18px;
  }

  section.cny-scenes .st-visual {
    height: 425px;
  }

  section.cny-scenes .st-tabs {
    gap: 26px;
    margin-top: 34px;
  }

  section.cny-scenes .st-tab {
    padding-top: 14px;
    border-top-width: 2px;
    border-top-color: #dce2eb;
    color: #566173;
  }

  section.cny-scenes .st-tab[aria-selected="true"]::before {
    top: -2px;
    height: 2px;
    background: #155ce4;
  }

  section.cny-scenes .st-tab:hover .st-tab-title,
  section.cny-scenes .st-tab[aria-selected="true"] .st-tab-title {
    color: #155ce4;
  }

  section.cny-scenes .st-tab-title {
    margin-bottom: 14px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0;
  }

  section.cny-scenes .st-tab-copy {
    color: #6b7585;
    font-size: 14px;
    line-height: 1.7;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cny-pointer {
    display: none;
  }

  .cny-cal-day,
  .cny-shipping,
  .cny-checkout-form,
  .cny-checkout-success,
  .cny-tracking::after {
    transition: none;
  }

  .cny-greeting-preview.is-typing::after {
    display: none;
  }
}

/* Buying experience: equal cards, three across from 1100px, two across on
   tablets and one on phones; each card has its copy on top and the mockup
   below, top-aligned across the row. */
section.cny-proofs .pb-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

section.cny-proofs .pb-grid .pb-card {
  grid-column: auto;
  max-width: none;
  padding: 0;
  background: var(--color-white);
  box-shadow: 0 4px 20px rgba(32, 51, 84, 0.02);
}

section.cny-proofs .pb-card-head {
  padding: 22px 15px 0;
}

section.cny-proofs .pb-grid .pb-card .pb-card-title {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

section.cny-proofs .pb-tags li {
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

section.cny-proofs .pb-grid .pb-card .pb-proof {
  justify-content: flex-start;
  margin-top: 0;
  padding: 16px 15px 15px;
}

section.cny-proofs .pb-proof > .cny-ui {
  max-width: none;
}

@media (min-width: 768px) {
  section.cny-proofs > div {
    max-width: 1152px;
    padding-right: 24px;
    padding-left: 24px;
  }

  section.cny-proofs .pb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  section.cny-proofs .pb-card-head {
    padding: 22px 23px 0;
  }

  section.cny-proofs .pb-grid .pb-card .pb-card-title {
    font-size: 24px;
  }

  section.cny-proofs .pb-grid .pb-card .pb-proof {
    padding: 0 23px 23px;
  }
}

@media (min-width: 1100px) {
  section.cny-proofs > div {
    padding-right: 40px;
    padding-left: 40px;
  }

  section.cny-proofs .pb-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  section.cny-proofs .pb-card-head {
    padding: 22px 22px 0;
  }

  section.cny-proofs .pb-grid .pb-card .pb-card-title {
    font-size: 23px;
  }

  section.cny-proofs .pb-grid .pb-card .pb-proof {
    padding: 0 18px 18px;
  }

  /* The three-across cards are too short for the product above the calendar. */
  section.cny-proofs .cny-ui--sunfold > .cny-product-row {
    display: none;
  }
}

@media (max-width: 767px) {
  .cny-checkout-fields {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Floating red packet: appears after the hero and links to the plans.
   Sits above the WhatsApp button (56px, 14px from the bottom). The flap
   folds open, the three bonus cards rise out of the pocket and drop back,
   on a 6s loop; geometry is on a 190 x 176 envelope. */
.cny-packet {
  position: fixed;
  right: 12px;
  bottom: 82px;
  z-index: 40;
  width: 214px;
  height: 216px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 300ms ease-out, transform 300ms ease-out, visibility 300ms;
}

.cny-packet.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.cny-packet > a {
  position: absolute;
  right: 14px;
  bottom: 0;
  width: 190px;
  height: 176px;
  transform: rotate(5deg) scale(0.95);
  transform-origin: right bottom;
}

.cny-packet-object {
  position: absolute;
  inset: 0;
  filter: drop-shadow(0 5px 7px rgba(124, 47, 39, 0.1));
}

.cny-packet-object img,
.cny-packet-flap,
.cny-packet-flap svg,
.cny-packet-cards {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cny-packet-front {
  z-index: 3;
  clip-path: polygon(0 42.5%, 12% 44.5%, 25% 47%, 40% 48.7%, 50% 49%, 60% 48.7%, 75% 47%, 88% 44.5%, 100% 42.5%, 100% 100%, 0 100%);
}

.cny-packet-body {
  clip-path: polygon(0 38.5%, 100% 38.5%, 100% 100%, 0 100%);
}

.cny-packet-flap {
  z-index: 1;
  clip-path: polygon(0 0, 100% 0, 100% 38.5%, 0 38.5%);
  transform: scaleY(0.43);
  transform-origin: 50% 38.5%;
}

.cny-packet-cards {
  z-index: 2;
  clip-path: inset(-45px -25px 9px);
}

.cny-packet-card {
  position: absolute;
  left: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.47);
  border-radius: 2.5px;
  box-shadow: 0 1px 3px rgba(18, 41, 84, 0.14);
}

.cny-packet-card-head {
  position: absolute;
  top: 8px;
  left: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
}

.cny-packet-card-head svg {
  width: 16px;
  height: 16px;
}

.cny-packet-card--domain {
  top: 87px;
  width: 126px;
  height: 100px;
  margin-left: -63px;
  background: linear-gradient(130deg, #fff1c8, #f1d68e 58%, #d8b469);
  color: #6c491d;
  transform: translateY(-95px) rotate(3deg);
  transform-origin: 63px 80px;
}

.cny-packet-card--payment {
  top: 90px;
  z-index: 2;
  width: 132px;
  height: 90px;
  margin-left: -66px;
  background: linear-gradient(130deg, #edf4ff, #c9ddfc 55%, #9cbde9);
  color: #214a86;
  transform: translateY(-73px) rotate(-2deg);
  transform-origin: 66px 72px;
}

.cny-packet-card--shipping {
  top: 93px;
  z-index: 3;
  width: 140px;
  height: 82px;
  margin-left: -70px;
  border-color: rgba(159, 190, 239, 0.55);
  background: linear-gradient(128deg, #366fcb, #1d4aa3 65%, #1b4491);
  color: #fff5d8;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 98% 34%, 100% 38%, 100% 100%, 0 100%, 0 38%, 2% 34%, 0 30%);
  transform: translateY(-53px) rotate(-5deg);
  transform-origin: 70px 65.6px;
}

.cny-packet-offer {
  position: absolute;
  top: 102px;
  right: 12px;
  left: 12px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #fff9ed;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.3;
  text-shadow: 0 1px 1px rgba(164, 52, 42, 0.19);
  white-space: nowrap;
}

.cny-packet-offer b {
  display: flex;
  align-items: baseline;
  gap: 2px;
  color: #ffe6a3;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.cny-packet-offer small {
  margin-right: 1px;
  font-size: 16px;
  font-weight: 800;
}

.cny-packet-offer sup {
  position: relative;
  top: -9px;
  vertical-align: baseline;
  font-size: 16px;
  line-height: 1;
}

.cny-packet-confetti {
  position: absolute;
  top: 77px;
  left: 95px;
  z-index: 5;
}

.cny-packet-confetti i {
  position: absolute;
  width: 3px;
  height: 6px;
  border-radius: 0.5px;
  background: linear-gradient(135deg, #fff3c6, #d9ac54);
  opacity: 0;
}

.cny-packet-confetti i:nth-child(3n + 2) {
  background: linear-gradient(135deg, #ffb083, #ee6747);
}

.cny-packet-dismiss {
  position: absolute;
  top: -16px;
  right: 0;
  z-index: 8;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #728097;
  font-size: 20px;
  line-height: 20px;
  isolation: isolate;
}

.cny-packet-dismiss::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 8px;
  border: 1px solid #dce3ed;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

@media (max-width: 767px) {
  .cny-packet {
    right: 8px;
    bottom: 80px;
    width: 144px;
    height: 160px;
  }

  .cny-packet > a {
    right: 8px;
    transform: rotate(5deg) scale(0.7);
  }

  .cny-packet-dismiss {
    top: -12px;
    right: -6px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cny-packet.is-visible .cny-packet-flap {
    animation: cny-packet-flap 6s infinite both;
  }

  .cny-packet.is-visible .cny-packet-card--domain {
    animation: cny-packet-domain 6s infinite both;
  }

  .cny-packet.is-visible .cny-packet-card--payment {
    animation: cny-packet-payment 6s infinite both;
  }

  .cny-packet.is-visible .cny-packet-card--shipping {
    animation: cny-packet-shipping 6s infinite both;
  }

  .cny-packet.is-visible .cny-packet-confetti i {
    animation: cny-packet-confetti 6s infinite both;
  }
}

@keyframes cny-packet-flap {
  0% {
    z-index: 4;
    transform: scaleY(-0.43);
    animation-timing-function: cubic-bezier(0.2, 0.75, 0.25, 1);
  }

  2.99% {
    z-index: 4;
  }

  3% {
    z-index: 1;
  }

  6%,
  84% {
    z-index: 1;
    transform: scaleY(0.43);
    animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1);
  }

  86.49% {
    z-index: 1;
  }

  86.5% {
    z-index: 4;
  }

  89%,
  100% {
    z-index: 4;
    transform: scaleY(-0.43);
  }
}

@keyframes cny-packet-domain {
  0%,
  4% {
    transform: none;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.25, 1);
  }

  12%,
  76% {
    transform: translateY(-95px) rotate(3deg);
    animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1);
  }

  82%,
  100% {
    transform: none;
  }
}

@keyframes cny-packet-payment {
  0%,
  6% {
    transform: none;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.25, 1);
  }

  14%,
  73% {
    transform: translateY(-73px) rotate(-2deg);
    animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1);
  }

  79%,
  100% {
    transform: none;
  }
}

@keyframes cny-packet-shipping {
  0%,
  8% {
    transform: none;
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.25, 1);
  }

  16%,
  70% {
    transform: translateY(-53px) rotate(-5deg);
    animation-timing-function: cubic-bezier(0.4, 0, 0.3, 1);
  }

  76%,
  100% {
    transform: none;
  }
}

@keyframes cny-packet-confetti {
  0%,
  9% {
    opacity: 0;
    transform: none;
    animation-timing-function: cubic-bezier(0.18, 0.6, 0.3, 1);
  }

  11% {
    opacity: 0.95;
  }

  18% {
    opacity: 0.9;
    transform: translate(var(--cx), var(--cy)) rotate(var(--cr));
    animation-timing-function: ease-in;
  }

  25%,
  100% {
    opacity: 0;
    transform: translate(var(--cx), calc(var(--cy) + 10px)) rotate(var(--cr));
  }
}
