@font-face {
  font-family: "Sera Soft";
  src: url("fonts/Fraunces72ptSoft-SemiBold.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: light;
  --lavender: #9491d6;
  --lavender-pale: #ded5f0;
  --lavender-mist: #c6bce2;
  --lavender-bubble: #7565b5;
  --lavender-deep: #5c4f8e;
  --cream: #faf1e5;
  --cream-soft: #fff7ea;
  --gold: #f5d58e;
  --peach: #fce2d1;
  --peach-warm: #f8c18a;
  --powder-blue: #cfe2f0;
  --charcoal: #50477a;
  --charcoal-soft: #7a7194;
  --ink: #332d38;
  --white: #ffffff;
  --page-padding: max(24px, calc((100vw - 1120px) / 2));
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: var(--cream-soft);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, rgba(255, 247, 234, 0.84), rgba(250, 241, 229, 0.96)),
    var(--cream-soft);
}

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

body:not(.home) header,
body:not(.home) main,
body:not(.home) footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px;
}

body:not(.home) header {
  border-bottom: 1px solid var(--lavender-pale);
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

a {
  color: var(--lavender-deep);
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(245, 213, 142, 0.9);
  outline-offset: 4px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  color: var(--charcoal);
}

h1 {
  font-family: "Sera Soft", Georgia, serif;
  font-size: 3rem;
}

h2 {
  margin-top: 40px;
  font-family: "Sera Soft", Georgia, serif;
  font-size: 2rem;
}

h3 {
  font-size: 1.1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.8rem;
  font-weight: 800;
}

.lede {
  font-size: 1.25rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.button {
  display: inline-block;
  padding: 10px 16px;
  border: 1px solid var(--lavender-deep);
  border-radius: 999px;
  color: var(--lavender-deep);
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  margin: 32px 0;
}

.grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 720px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  border: 1px solid var(--lavender-pale);
  border-radius: 8px;
  padding: 16px;
  background: var(--white);
}

.muted {
  color: var(--charcoal-soft);
}

body:not(.home) footer {
  border-top: 1px solid var(--lavender-pale);
  color: var(--charcoal-soft);
  font-size: 0.95rem;
}

.home {
  overflow-x: hidden;
  color: var(--charcoal);
  background: linear-gradient(180deg, #211a45 0, #5c4f8e 33rem, var(--cream-soft) 33.05rem),
    var(--cream-soft);
}

.home header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 20px var(--page-padding);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(36, 27, 80, 0.26);
}

.brand strong {
  font-family: "Sera Soft", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1;
}

.home nav {
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
}

.home nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(31, 24, 67, 0.2);
  text-decoration: none;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.home nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.14);
}

.home-main {
  max-width: none;
  margin: 0;
  padding: 0;
}

.hero {
  position: relative;
  display: grid;
  min-height: 86svh;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(
      90deg,
      rgba(33, 26, 69, 0.88) 0%,
      rgba(70, 52, 127, 0.64) 46%,
      rgba(67, 54, 127, 0.18) 100%
    ), url("images/sky-bold.webp") center / cover no-repeat, var(--lavender-deep);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      circle at 78% 38%,
      rgba(245, 213, 142, 0.58),
      rgba(245, 213, 142, 0.15) 22rem,
      transparent 32rem
    ), linear-gradient(180deg, rgba(255, 247, 234, 0) 68%, rgba(255, 247, 234, 0.95) 100%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(300px, 0.78fr);
  align-items: center;
  gap: 36px;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 108px 0 92px;
}

.hero__copy {
  min-width: 0;
  max-width: 680px;
}

.home .eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  color: var(--white);
  font-size: 4.75rem;
  text-wrap: balance;
  text-shadow: 0 20px 50px rgba(28, 21, 62, 0.36);
}

.hero .lede {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.24rem;
}

.home .button-row {
  margin: 30px 0 0;
}

.button--primary {
  border-color: transparent;
  color: #3d326b;
  background: linear-gradient(180deg, var(--cream-soft), var(--gold));
  box-shadow: 0 16px 36px rgba(49, 37, 95, 0.24);
}

.button--primary:hover {
  color: #2f2754;
  background: linear-gradient(180deg, var(--white), #f8d992);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.button--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 700px;
  margin: 34px 0 0;
}

.hero-facts div {
  min-width: 0;
  min-height: 126px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-facts dt {
  color: var(--white);
  font-weight: 850;
}

.hero-facts dd {
  margin: 7px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.hero__guardian {
  position: relative;
  min-width: 0;
  align-self: end;
  min-height: 620px;
}

.hero__halo {
  position: absolute;
  top: 9%;
  left: 50%;
  width: 34rem;
  max-width: 88%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.98) 0 12%,
    rgba(255, 247, 234, 0.88) 13% 23%,
    rgba(245, 213, 142, 0.72) 24% 36%,
    rgba(248, 193, 138, 0.34) 37% 55%,
    rgba(248, 193, 138, 0) 66%
  );
  filter: blur(1px);
  opacity: 0.86;
  animation: halo-breathe 5.8s ease-in-out infinite;
}

.hero__sera {
  position: absolute;
  right: 4%;
  bottom: 58px;
  z-index: 2;
  width: min(440px, 82%);
  filter: drop-shadow(0 28px 38px rgba(39, 30, 82, 0.32))
    drop-shadow(0 0 28px rgba(255, 255, 255, 0.58));
  animation: sera-float 6.6s ease-in-out infinite;
}

.hero__clouds {
  position: absolute;
  right: -12%;
  bottom: -14px;
  z-index: 3;
  width: min(780px, 122%);
  opacity: 0.96;
  filter: drop-shadow(0 -16px 32px rgba(255, 255, 255, 0.2));
}

.moment-strip {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 48px));
  margin: -42px auto 0;
  overflow: hidden;
  border: 1px solid rgba(198, 188, 226, 0.72);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 60px rgba(80, 71, 122, 0.12);
}

.moment-strip span {
  display: grid;
  min-height: 74px;
  place-items: center;
  padding: 16px;
  color: var(--charcoal);
  background: rgba(255, 247, 234, 0.68);
  font-weight: 850;
  text-align: center;
}

.home .section {
  width: min(1120px, calc(100% - 48px));
  margin: 88px auto;
}

.home h2 {
  margin: 0;
  color: var(--charcoal);
  font-size: 3rem;
  text-wrap: balance;
}

.home h3 {
  margin: 0;
  color: var(--charcoal);
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

.split-section > p {
  margin: 30px 0 0;
  color: var(--charcoal-soft);
  font-size: 1.22rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

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

.feature-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  min-height: 370px;
  padding: 24px;
  border: 1px solid rgba(198, 188, 226, 0.78);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 234, 0.86)),
    var(--white);
  box-shadow: 0 22px 48px rgba(80, 71, 122, 0.11);
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(222, 213, 240, 0.72), transparent 38%),
    linear-gradient(315deg, rgba(245, 213, 142, 0.32), transparent 36%);
  opacity: 0.72;
  pointer-events: none;
}

.feature-card img {
  position: relative;
  width: 170px;
  height: 190px;
  margin: -10px auto 14px;
  object-fit: contain;
}

.feature-card h3,
.feature-card p {
  position: relative;
}

.feature-card p {
  margin: 10px 0 0;
  color: var(--charcoal-soft);
}

.ritual-section {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 50px;
  width: 100%;
  max-width: none;
  margin: 100px 0;
  padding: 82px var(--page-padding);
  background: linear-gradient(120deg, rgba(35, 27, 75, 0.96), rgba(92, 79, 142, 0.93)),
    url("images/sky-pale.webp") center / cover no-repeat;
}

.ritual-section .eyebrow,
.ritual-section h2,
.ritual-section strong {
  color: var(--white);
}

.ritual-section h2 {
  color: var(--white);
}

.ritual-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ritual;
}

.ritual-list li {
  position: relative;
  min-width: 0;
  min-height: 116px;
  padding: 22px 22px 22px 76px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
}

.ritual-list li::before {
  counter-increment: ritual;
  content: counter(ritual);
  position: absolute;
  top: 22px;
  left: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #3d326b;
  background: var(--gold);
  font-weight: 900;
}

.ritual-list strong {
  display: block;
  margin-bottom: 6px;
}

.privacy-band {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: 48px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 76px var(--page-padding);
  background: linear-gradient(90deg, rgba(255, 247, 234, 0.98), rgba(222, 213, 240, 0.58)),
    var(--cream-soft);
  border-block: 1px solid rgba(198, 188, 226, 0.54);
}

.privacy-band p {
  margin: 28px 0 0;
  color: var(--charcoal-soft);
  font-size: 1.08rem;
}

.download-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.download-section > div {
  max-width: 720px;
}

.download-section p {
  color: var(--charcoal-soft);
}

.download-section .button {
  flex: 0 0 auto;
}

.boundary-section {
  padding-top: 34px;
  border-top: 1px solid rgba(198, 188, 226, 0.72);
}

.boundary-section h2 {
  font-size: 2rem;
}

.boundary-section p {
  max-width: 760px;
  color: var(--charcoal-soft);
}

.home p,
.home h1,
.home h2,
.home h3,
.home dd,
.moment-strip span {
  overflow-wrap: break-word;
}

.home footer {
  max-width: none;
  margin: 0;
  padding: 32px var(--page-padding);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.74);
  background: #211a45;
  font-size: 0.95rem;
}

.home footer a {
  color: rgba(255, 255, 255, 0.9);
}

@keyframes sera-float {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }

  50% {
    transform: translateY(-16px) rotate(1deg);
  }
}

@keyframes halo-breathe {
  0%,
  100% {
    transform: translateX(-50%) scale(0.98);
    opacity: 0.8;
  }

  50% {
    transform: translateX(-50%) scale(1.04);
    opacity: 0.96;
  }
}

@media (max-width: 980px) {
  .home header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .home nav {
    justify-content: flex-start;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    padding-top: 172px;
  }

  .hero h1 {
    font-size: 3.7rem;
  }

  .hero__guardian {
    min-height: 430px;
    margin-top: -40px;
  }

  .hero__sera {
    right: 18%;
    width: min(330px, 68%);
  }

  .hero__clouds {
    right: 2%;
    width: min(680px, 100%);
  }

  .hero-facts,
  .feature-grid,
  .split-section,
  .ritual-section,
  .privacy-band {
    grid-template-columns: 1fr;
  }

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

  .download-section {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  :root {
    --page-padding: 20px;
  }

  .home nav a {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 0.9rem;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    width: calc(100% - 40px);
    padding: 166px 0 74px;
  }

  .hero__copy,
  .hero .lede,
  .hero-facts {
    max-width: 21rem;
  }

  .hero__copy {
    position: relative;
    z-index: 2;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .hero .lede {
    font-size: 1.08rem;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: auto;
  }

  .hero__guardian {
    position: absolute;
    right: -20px;
    bottom: 0;
    z-index: 1;
    width: 260px;
    min-height: 260px;
    margin-top: 0;
    overflow: hidden;
    opacity: 0.56;
  }

  .hero__halo {
    top: -2%;
    width: 18rem;
    animation: none;
  }

  .hero__sera {
    right: 20px;
    bottom: 14px;
    left: auto;
    width: 220px;
    transform: none;
    animation: none;
  }

  .hero__clouds {
    right: -62px;
    bottom: -28px;
    left: auto;
    width: 420px;
    transform: none;
  }

  .moment-strip,
  .home .section {
    width: calc(100% - 32px);
  }

  .moment-strip {
    grid-template-columns: 1fr;
    margin-top: -28px;
  }

  .moment-strip span {
    min-height: 58px;
  }

  .home .section {
    margin: 64px auto;
  }

  .home h2 {
    font-size: 2.25rem;
  }

  .feature-card {
    min-height: auto;
  }

  .ritual-section,
  .privacy-band {
    padding-block: 58px;
  }

  .ritual-list li {
    padding-right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
