:root {
  --cream: #fbf8f2;
  --paper: #fffdf8;
  --sage: #687f6b;
  --dark: #18392b;
  --gold: #b9914c;
  --ink: #173529;
  --content-max: 1240px;
}

.site-header {
  padding-inline: max(24px, calc((100vw - var(--content-max)) / 2));
}

.rememus-hero .hero-copy {
  padding-left: max(28px, calc((100vw - var(--content-max)) / 2));
}

.rememus-mark {
  width: 43px;
  height: 43px;
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  flex: 0 0 auto;
  transform: rotate(-2deg);
}

.rememus-mark i {
  border: 3px solid var(--sage);
  border-radius: 9px;
  position: relative;
  background: rgba(255, 253, 248, 0.72);
  box-shadow: inset 0 0 0 5px var(--paper);
}

.rememus-mark i::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 3px;
  background: var(--dark);
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.rememus-mark i:nth-child(2) {
  border-color: #c9b16f;
}

.rememus-mark i:nth-child(3) {
  border-color: var(--dark);
}

.rememus-mark i:nth-child(4) {
  border-color: transparent;
  background: conic-gradient(from 90deg, var(--gold) 0 25%, transparent 0 50%, var(--sage) 0 75%, transparent 0);
  box-shadow: none;
  border-radius: 8px;
}

.rememus-mark i:nth-child(4)::after {
  background: var(--gold);
  width: 9px;
  height: 18px;
  border-radius: 8px;
  left: 38%;
  top: 61%;
}

.rememus-hero {
  isolation: isolate;
  position: relative;
  background: linear-gradient(90deg, rgba(255, 253, 248, 0.95) 0%, rgba(255, 253, 248, 0.86) 42%, rgba(251, 248, 242, 0.72) 100%);
  min-height: calc(100vh - 94px);
}

.rememus-hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(0deg, var(--cream) 0%, rgba(251, 248, 242, 0) 100%);
  pointer-events: none;
}

.hero-bg-video {
  position: absolute;
  inset: -18% 0 0;
  width: 100%;
  height: 118%;
  object-fit: cover;
  object-position: center;
  z-index: -3;
  opacity: 0.23;
  filter: saturate(0.72) sepia(0.24) brightness(1.16);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(circle at 13% 80%, rgba(215, 202, 175, 0.38), transparent 34%),
    linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.9) 41%, rgba(251, 248, 242, 0.7) 100%);
}

.hero-shape {
  position: absolute;
  z-index: -1;
  pointer-events: none;
  margin: 0;
  opacity: 0.72;
  filter: saturate(0.76) sepia(0.18);
}

.hero-shape img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-sun {
  width: 155px;
  height: 155px;
  left: 37%;
  top: 10%;
  opacity: 0.5;
}

.hero-cloud {
  opacity: 0.58;
}

.hero-cloud-a {
  width: 150px;
  height: 52px;
  left: 7%;
  bottom: 18%;
}

.hero-cloud-b {
  width: 168px;
  height: 58px;
  right: 30%;
  bottom: 15%;
}

.hero-cloud-c {
  width: 96px;
  height: 28px;
  left: 22%;
  top: 40%;
  opacity: 0.42;
}

.hero-cloud-d {
  width: 205px;
  height: 82px;
  right: 6%;
  top: 28%;
  opacity: 0.47;
}

.rememus-hero .hero-copy,
.rememus-hero .hero-media {
  position: relative;
  z-index: 1;
}

.rememus-hero .hero-copy {
  padding-top: clamp(82px, 8vw, 132px);
}

.rememus-hero .hero-media {
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
}

.rememus-hero .hero-media::before {
  content: "";
  position: absolute;
  width: min(74%, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 248, 0.72) 0%, rgba(231, 223, 207, 0.57) 46%, transparent 70%);
  filter: blur(2px);
}

.rememus-hero .hero-media::after {
  background: linear-gradient(transparent 60%, rgba(33, 48, 39, 0.12));
  z-index: 0;
}

.hero-photo {
  display: none;
}

.rememus-hero .phone {
  position: relative;
  top: auto;
  right: auto;
  width: min(48%, 390px);
  transform: rotate(3deg);
  z-index: 2;
}

.rememus-hero .phone-screen::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 118px;
  background:
    linear-gradient(180deg, rgba(231, 236, 223, 0.93), rgba(246, 240, 228, 0)),
    url("/images/clouds/cloud-2.png") center 20px / 130px auto no-repeat;
  opacity: 0.72;
  pointer-events: none;
}

.rememus-hero .phone-screen > * {
  position: relative;
  z-index: 1;
}

.rememus-hero .memorial-avatar {
  background: url("/mbook-hero.png") 51% 38% / 285%;
  box-shadow: 0 10px 24px rgba(61, 48, 33, 0.19);
}

@media (max-width: 980px) {
  .rememus-hero {
    grid-template-columns: 1fr;
  }

  .hero-bg-video {
    inset: -8% 0 0;
    height: 108%;
  }

  .hero-sun {
    left: 65%;
    top: 12%;
    width: 105px;
    height: 105px;
  }

  .hero-cloud-a {
    left: 5%;
    bottom: 52%;
  }

  .hero-cloud-b {
    right: 8%;
    bottom: 8%;
  }

  .hero-cloud-c {
    display: none;
  }

  .hero-cloud-d {
    right: -4%;
    top: 46%;
  }

  .rememus-hero .hero-media {
    min-height: 610px;
  }

  .rememus-hero .phone {
    width: min(48%, 330px);
  }
}

@media (max-width: 600px) {
  .rememus-mark {
    width: 34px;
    height: 34px;
    gap: 4px;
  }

  .rememus-mark i {
    border-width: 2px;
    border-radius: 7px;
    box-shadow: inset 0 0 0 4px var(--paper);
  }

  .site-header .rememus-mark {
    display: inline-grid;
  }

  .rememus-hero .hero-copy {
    padding-top: 56px;
  }

  .hero-bg-video {
    opacity: 0.18;
  }

  .hero-sun {
    width: 76px;
    height: 76px;
    left: 72%;
    top: 10%;
  }

  .hero-cloud-a {
    width: 96px;
    left: 4%;
    bottom: 53%;
  }

  .hero-cloud-b {
    width: 115px;
    right: 5%;
    bottom: 5%;
  }

  .hero-cloud-d {
    width: 135px;
    right: -10%;
    top: 51%;
  }

  .rememus-hero .hero-media {
    min-height: 470px;
  }

  .rememus-hero .phone {
    width: min(64%, 275px);
  }
}

.section-kicker {
  max-width: 920px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-kicker h2,
.demo-copy h2,
.qr-copy h2,
.trust-section h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 4.4vw, 70px);
  line-height: 1.02;
}

.section-kicker p:not(.eyebrow),
.demo-copy p,
.qr-copy p {
  color: #5f6864;
  max-width: 680px;
  margin: 20px auto 0;
  font-size: 17px;
  line-height: 1.85;
}

.audience-section,
.memory-contents,
.pricing-section,
.faq-section {
  padding: clamp(84px, 8vw, 124px) max(24px, calc((100vw - var(--content-max)) / 2));
  background: var(--cream);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.audience-grid article,
.content-grid article,
.trust-grid article,
.pricing-grid article,
.faq-list details {
  border: 1px solid rgba(185, 145, 76, 0.28);
  background: rgba(255, 253, 248, 0.76);
  border-radius: 18px;
  box-shadow: 0 14px 38px rgba(85, 70, 40, 0.07);
}

.audience-grid article {
  padding: 28px 22px;
}

.audience-grid span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #e6dece;
  color: var(--sage);
  font-weight: 700;
}

.audience-grid h3,
.content-grid h3,
.trust-grid h3 {
  margin: 0 0 10px;
  font-size: clamp(24px, 2vw, 31px);
  line-height: 1.1;
}

.audience-grid p,
.content-grid p,
.trust-grid p {
  color: #5f6864;
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.memory-contents {
  background: #f0eadf;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 1120px;
  margin: 0 auto;
}

.content-grid article {
  padding: 30px;
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: center;
  padding: clamp(90px, 8vw, 130px) max(24px, calc((100vw - var(--content-max)) / 2));
  background: linear-gradient(135deg, #fffdf8 0%, #f6efe3 100%);
  overflow: hidden;
}

.demo-phone-wrap {
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.demo-phone-wrap::before {
  content: "";
  position: absolute;
  width: min(82%, 560px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(104, 127, 107, 0.15), transparent 68%);
}

.demo-phone {
  position: relative;
  width: min(54%, 330px);
  top: auto;
  right: auto;
}

.demo-copy {
  max-width: 680px;
}

.qr-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(38px, 5vw, 80px);
  align-items: center;
  padding: clamp(84px, 8vw, 120px) max(24px, calc((100vw - var(--content-max)) / 2));
  background: var(--dark);
  color: #fff;
}

.qr-section .eyebrow,
.qr-section h2 {
  color: #fff;
}

.qr-copy p {
  color: #d9e3dc;
  margin-left: 0;
}

.qr-uses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.qr-uses span {
  min-height: 118px;
  display: flex;
  align-items: flex-end;
  padding: 22px;
  border: 1px solid rgba(255, 253, 248, 0.2);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.08);
  color: #fffdf8;
  font-weight: 600;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  max-width: 1120px;
  margin: 0 auto;
}

.pricing-grid article {
  padding: 32px;
}

.pricing-grid article > p {
  color: var(--gold);
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}

.pricing-grid h3 {
  margin: 0 0 22px;
  font-size: clamp(30px, 2.8vw, 42px);
  line-height: 1.05;
}

.pricing-grid ul {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  color: #5f6864;
  list-style: none;
}

.pricing-grid li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--sage);
}

.featured-price {
  background: #fffdf8;
  border-color: rgba(104, 127, 107, 0.5) !important;
  transform: translateY(-12px);
}

.trust-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(38px, 5vw, 86px);
  padding: clamp(84px, 8vw, 120px) max(24px, calc((100vw - var(--content-max)) / 2));
  background: #f8f3ea;
}

.trust-grid {
  display: grid;
  gap: 18px;
}

.trust-grid article {
  padding: 26px 28px;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.appearance-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(46px, 7vw, 96px);
  align-items: center;
  padding: clamp(90px, 9vw, 138px) max(24px, calc((100vw - var(--content-max)) / 2));
  background: #f6efe3;
}

.appearance-copy {
  max-width: 470px;
}

.appearance-copy h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 4.2vw, 66px);
  line-height: 1.03;
}

.appearance-copy > p:not(.eyebrow) {
  margin: 22px 0 30px;
  color: #5f6864;
  line-height: 1.85;
}

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

.skin-card {
  min-width: 0;
  padding: 14px 14px 20px;
  border: 1px solid rgba(185, 145, 76, 0.26);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.76);
  box-shadow: 0 15px 36px rgba(85, 70, 40, 0.08);
}

.skin-card h3 {
  margin: 18px 4px 6px;
  color: var(--ink);
  font-size: 27px;
  line-height: 1;
}

.skin-card p {
  margin: 0 4px;
  color: #5f6864;
  font-size: 12px;
  line-height: 1.6;
}

.skin-preview {
  position: relative;
  min-height: 254px;
  overflow: hidden;
  border-radius: 6px;
  background: #f1eadc;
}

.skin-preview .preview-photo {
  position: absolute;
  z-index: 1;
  top: 41px;
  left: 50%;
  width: 76px;
  height: 76px;
  border: 3px solid rgba(255, 253, 248, 0.85);
  border-radius: 50%;
  background: url("/mbook-hero.png") 50% 38% / 285%;
  box-shadow: 0 8px 18px rgba(61, 48, 33, 0.2);
  transform: translateX(-50%);
}

.skin-preview i {
  position: absolute;
  z-index: 1;
  left: 50%;
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(24, 57, 43, 0.52);
  transform: translateX(-50%);
}

.skin-preview i:nth-of-type(1) { top: 133px; width: 56%; }
.skin-preview i:nth-of-type(2) { top: 150px; width: 38%; opacity: 0.6; }
.skin-preview i:nth-of-type(3) { right: 18px; bottom: 18px; left: 18px; height: 48px; transform: none; background: rgba(255, 253, 248, 0.82); }
.preview-sun { position: absolute; top: -25px; right: -24px; width: 106px; height: 106px; border-radius: 50%; background: rgba(201, 177, 111, 0.35); }
.preview-leaf { position: absolute; width: 62px; height: 28px; border: 1px solid rgba(104, 127, 107, 0.45); border-radius: 100% 0; }
.leaf-one { top: 14px; left: -14px; transform: rotate(32deg); }
.leaf-two { right: -12px; bottom: 8px; transform: rotate(212deg); }
.preview-star { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: #e4d6a7; }
.star-one { top: 35px; left: 30px; box-shadow: 66px 17px 0 #e4d6a7, 112px -7px 0 #e4d6a7, 143px 40px 0 #e4d6a7; }
.star-two { top: 83px; left: 21px; box-shadow: 54px 34px 0 #e4d6a7, 123px 12px 0 #e4d6a7; }
.skin-garden .skin-preview { background: #e6ece0; }
.skin-night .skin-preview { background: #244338; }
.skin-night .skin-preview i { background: rgba(255, 253, 248, 0.55); }
.skin-night .skin-preview i:nth-of-type(3) { background: rgba(255, 253, 248, 0.12); }

.faq-list details {
  padding: 22px 26px;
}

.faq-list summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.faq-list p {
  color: #5f6864;
  margin: 14px 0 0;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .audience-grid,
  .content-grid,
  .pricing-grid,
  .demo-section,
  .qr-section,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .appearance-section {
    grid-template-columns: 1fr;
  }

  .appearance-copy {
    max-width: 660px;
  }

  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .featured-price {
    transform: none;
  }
}

@media (max-width: 600px) {
  .audience-section,
  .memory-contents,
  .pricing-section,
  .faq-section,
  .demo-section,
  .qr-section,
  .trust-section {
    padding: 72px 20px;
  }

  .appearance-section {
    padding: 72px 20px;
  }

  .skin-grid {
    grid-template-columns: 1fr;
    max-width: 370px;
  }

  .audience-grid,
  .qr-uses {
    grid-template-columns: 1fr;
  }

  .demo-phone-wrap {
    min-height: 430px;
  }

  .demo-phone {
    width: min(66%, 265px);
  }
}
