@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/DMSerifDisplay-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/DMSerifDisplay-Italic.ttf") format("truetype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/Nunito.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --canvas: #fbf7f4;
  --canvas-rgb: 251, 247, 244;
  --surface: rgba(255, 255, 255, 0.76);
  --surface-solid: #fffdfb;
  --surface-strong: rgba(255, 255, 255, 0.92);
  --ink: #2b2540;
  --plum: #5b4b7a;
  --muted: #776e8c;
  --mist: #c9c2d6;
  --lavender: #b9a7e6;
  --lavender-soft: #e8e0f7;
  --sage: #a7c4a0;
  --blush: #ebb1c0;
  --blush-soft: #f6d6df;
  --butter: #f3d9a0;
  --gold: #d7a94d;
  --line: rgba(91, 75, 122, 0.16);
  --shadow: 0 24px 70px rgba(91, 75, 122, 0.12);
  --shadow-small: 0 12px 32px rgba(91, 75, 122, 0.1);
  --radius-card: 28px;
  --radius-button: 17px;
  --page: min(1180px, calc(100vw - 40px));
  --day-bg-image: url("/assets/day-bg.webp");
  --night-bg-image: url("/assets/night-bg.webp");
  color-scheme: light;
}

@media (min-width: 768px) {
  :root {
    --day-bg-image: url("/assets/day-bg-tablet.webp");
    --night-bg-image: url("/assets/night-bg-tablet.webp");
  }
}

@media (min-width: 1280px) {
  :root {
    --day-bg-image: url("/assets/day-bg-desktop.webp");
    --night-bg-image: url("/assets/night-bg-desktop.webp");
  }
}

html[data-theme="night"] {
  --canvas: #151127;
  --canvas-rgb: 21, 17, 39;
  --surface: rgba(37, 30, 56, 0.7);
  --surface-solid: #241e33;
  --surface-strong: rgba(42, 34, 64, 0.92);
  --ink: #f4eefb;
  --plum: #d8ccef;
  --muted: #b9adcf;
  --mist: #5b5074;
  --lavender: #c9b9f2;
  --lavender-soft: #3a3152;
  --sage: #b7d4b0;
  --blush: #f2c1d0;
  --blush-soft: #45303a;
  --butter: #f7e3b4;
  --gold: #efc46b;
  --line: rgba(216, 204, 239, 0.16);
  --shadow: 0 28px 80px rgba(5, 3, 15, 0.4);
  --shadow-small: 0 14px 36px rgba(5, 3, 15, 0.32);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  transition: background-color 400ms ease, color 300ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: var(--day-bg-image);
  background-size: 100% auto;
  background-position: center top;
  opacity: 0.64;
  pointer-events: none;
  transition: opacity 400ms ease, background-image 400ms ease;
}

html[data-theme="night"] body::before {
  background-image: var(--night-bg-image);
  background-size: max(100%, 920px) auto;
  opacity: 0.88;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

html[data-theme="night"] body::after {
  opacity: 0.1;
  mix-blend-mode: screen;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--lavender);
  outline-offset: 4px;
  border-radius: 8px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  transform: translateY(-180%);
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--canvas);
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: none;
}

.page-width {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  padding: 14px 0;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--canvas-rgb), 0.78);
  -webkit-backdrop-filter: blur(22px) saturate(1.2);
  backdrop-filter: blur(22px) saturate(1.2);
}

.nav-wrap {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex: none;
  overflow: hidden;
  border: 1px solid rgba(215, 169, 77, 0.32);
  border-radius: 13px;
  box-shadow: 0 7px 22px rgba(91, 75, 122, 0.13);
}

.brand-mark .theme-night,
.brand-mark .theme-day {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}

.nav-link {
  position: relative;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  background: var(--gold);
  transition: transform 180ms ease;
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-small);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.theme-toggle {
  padding: 0 15px;
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
  background: var(--surface-strong);
}

.theme-icon {
  position: relative;
  width: 19px;
  height: 19px;
}

.theme-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(215, 169, 77, 0.35);
}

html[data-theme="night"] .theme-icon::after {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-solid);
}

.theme-label {
  font-size: 13px;
  font-weight: 800;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0;
}

.menu-toggle span {
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
}

.mobile-menu {
  width: var(--page);
  margin: 10px auto 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
}

.mobile-menu a:hover {
  background: var(--lavender-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--plum);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.15em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "✦";
  color: var(--gold);
  font-size: 11px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "DM Serif Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.04;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(54px, 6.4vw, 94px);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 22px;
  font-size: clamp(42px, 5vw, 68px);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-size: 29px;
  letter-spacing: -0.02em;
}

.serif-italic {
  font-family: "DM Serif Display", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.gold-text {
  color: var(--gold);
}

.hero {
  position: relative;
  min-height: calc(100svh - 80px);
  overflow: hidden;
  padding: 62px 0 105px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 5%;
  left: 48%;
  width: 680px;
  height: 680px;
  border: 1px solid rgba(215, 169, 77, 0.13);
  border-radius: 50%;
  box-shadow: inset 0 0 0 54px transparent, inset 0 0 0 55px rgba(185, 167, 230, 0.08), inset 0 0 0 116px transparent, inset 0 0 0 117px rgba(215, 169, 77, 0.08);
  animation: orbit-breathe 9s ease-in-out infinite;
}

.hero-grid {
  display: grid;
  min-height: 680px;
  grid-template-columns: minmax(0, 0.92fr) minmax(430px, 0.85fr);
  align-items: center;
  gap: 60px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-copy h1 span {
  display: block;
  color: var(--plum);
}

.hero-lede {
  max-width: 590px;
  margin-bottom: 31px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.72;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: var(--radius-button);
  font-weight: 850;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

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

.button-primary {
  border-color: rgba(255, 255, 255, 0.15);
  background: var(--ink);
  color: var(--canvas);
  box-shadow: 0 15px 35px rgba(43, 37, 64, 0.18);
}

html[data-theme="night"] .button-primary {
  background: linear-gradient(135deg, #dacaf3, #f1d9e7);
  color: #282039;
}

.button-secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-small);
}

.button-arrow {
  font-size: 21px;
  font-weight: 400;
  line-height: 0;
}

.app-store-button {
  width: 179px;
  min-height: 60px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
  opacity: 1;
  appearance: none;
}

.app-store-button img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-art {
  position: relative;
  z-index: 1;
  min-height: 680px;
}

.celestial-face {
  position: absolute;
  z-index: 0;
  top: -44px;
  right: -50px;
  width: min(420px, 75%);
  filter: drop-shadow(0 20px 35px rgba(215, 169, 77, 0.14));
  animation: float 7s ease-in-out infinite;
}

.phone-shell {
  position: absolute;
  z-index: 2;
  right: 13%;
  bottom: -25px;
  width: 330px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 52px;
  background: rgba(24, 20, 37, 0.92);
  box-shadow: 0 44px 90px rgba(43, 37, 64, 0.27), 0 0 0 1px rgba(215, 169, 77, 0.18);
  transform: rotate(3deg);
}

.phone-shell::after {
  content: "";
  position: absolute;
  top: 15px;
  left: 50%;
  width: 92px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #08070b;
}

.phone-shell img {
  width: 100%;
  border-radius: 43px;
}

.floating-note {
  position: absolute;
  z-index: 3;
  left: -6px;
  bottom: 94px;
  width: 214px;
  padding: 17px 18px;
  border: 1px solid rgba(215, 169, 77, 0.28);
  border-radius: 22px;
  background: var(--surface-strong);
  color: var(--plum);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 18px;
  line-height: 1.35;
  transform: rotate(-5deg);
  animation: float-small 6s ease-in-out 1s infinite;
}

.floating-note small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: "Nunito", sans-serif;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sparkle {
  position: absolute;
  z-index: 4;
  color: var(--gold);
  font-size: 25px;
  text-shadow: 0 0 18px rgba(215, 169, 77, 0.38);
  animation: twinkle 2.8s ease-in-out infinite;
}

.sparkle-one { top: 25%; left: 4%; }
.sparkle-two { top: 14%; right: 9%; animation-delay: 0.8s; }
.sparkle-three { right: 1%; bottom: 17%; animation-delay: 1.5s; }

.ritual-strip {
  position: relative;
  z-index: 3;
  margin-top: -50px;
}

.ritual-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.ritual-fact {
  min-height: 116px;
  padding: 24px;
  background: var(--surface-strong);
}

.ritual-fact strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 23px;
  font-weight: 400;
}

.ritual-fact span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section {
  position: relative;
  padding: 130px 0;
}

.section-header {
  max-width: 750px;
  margin: 0 auto 62px;
  text-align: center;
}

.section-header p {
  max-width: 650px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

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

.feature-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-small);
  isolation: isolate;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.feature-card:hover {
  z-index: 2;
  transform: translateY(-7px) rotate(-0.3deg);
  box-shadow: var(--shadow);
}

.feature-card:nth-child(even):hover {
  transform: translateY(-7px) rotate(0.3deg);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.62), transparent 56%);
}

html[data-theme="night"] .feature-card::after {
  background: linear-gradient(to top, rgba(20, 16, 32, 0.82), transparent 58%);
}

.feature-card-large { grid-column: span 7; }
.feature-card-small { grid-column: span 5; }

.feature-moon { background: linear-gradient(145deg, #fbe3e6, #e3e9fb); }
.feature-journal { background: linear-gradient(145deg, #fbe7ef, #f9f0f4); }
.feature-tarot { background: linear-gradient(145deg, #ddeee2, #c7e0ce); }
.feature-stars { background: linear-gradient(145deg, #dce0f5, #cfc4e8); }
.feature-guidance { background: linear-gradient(145deg, #f9ebcb, #f6d6df); }
.feature-todo { background: linear-gradient(145deg, #ffffff, #fbf7f0); }

html[data-theme="night"] .feature-moon { background: linear-gradient(145deg, #2a1e2c, #1e2340); }
html[data-theme="night"] .feature-journal { background: linear-gradient(145deg, #2e1e28, #241a22); }
html[data-theme="night"] .feature-tarot { background: linear-gradient(145deg, #14231a, #0e1a13); }
html[data-theme="night"] .feature-stars { background: linear-gradient(145deg, #171433, #241e4a); }
html[data-theme="night"] .feature-guidance { background: linear-gradient(145deg, #2c2617, #2a1e2c); }
html[data-theme="night"] .feature-todo { background: linear-gradient(145deg, #201d26, #1a1720); }

.feature-copy {
  position: absolute;
  z-index: 3;
  right: 26px;
  bottom: 25px;
  left: 26px;
  max-width: 390px;
}

.feature-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--plum);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.feature-copy h3 {
  margin-bottom: 7px;
  font-size: 32px;
}

.feature-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.feature-art {
  position: absolute;
  z-index: 1;
  top: -28px;
  right: -15px;
  width: 300px;
  height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(91, 75, 122, 0.12));
}

.feature-card-small .feature-art {
  top: -18px;
  right: -18px;
  width: 265px;
  height: 265px;
}

.feature-stars .feature-art {
  top: -2px;
  right: 24px;
  width: 250px;
  height: 250px;
}

.feature-stars::before {
  content: "";
  position: absolute;
  top: -74px;
  right: -45px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(91, 75, 122, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 40px transparent, inset 0 0 0 41px rgba(91, 75, 122, 0.1), inset 0 0 0 85px transparent, inset 0 0 0 86px rgba(215, 169, 77, 0.12);
}

.disclaimer-note {
  display: flex;
  max-width: 850px;
  align-items: flex-start;
  gap: 17px;
  margin: 45px auto 0;
  padding: 19px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  box-shadow: var(--shadow-small);
}

.disclaimer-note .note-icon {
  flex: none;
  color: var(--gold);
  font-size: 21px;
}

.night-showcase {
  position: relative;
  overflow: hidden;
  padding: 140px 0;
  background: #100d22 var(--night-bg-image) center / max(100%, 1100px) auto repeat-y;
  color: #f3ecfb;
  isolation: isolate;
}

.night-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 18% 24%, rgba(118, 78, 184, 0.26), transparent 30%), radial-gradient(circle at 84% 72%, rgba(228, 171, 89, 0.14), transparent 25%), radial-gradient(circle, rgba(246, 222, 162, 0.75) 0 1px, transparent 1.4px);
  background-size: auto, auto, 72px 72px;
  opacity: 0.9;
}

.night-showcase .section-header p {
  color: #bdb2d3;
}

.night-showcase .eyebrow {
  color: #cbbdea;
}

.screen-gallery {
  display: grid;
  grid-template-columns: 0.9fr 1.08fr 0.9fr;
  align-items: center;
  gap: 26px;
  perspective: 1400px;
}

.screen-frame {
  position: relative;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(239, 196, 107, 0.35);
  border-radius: 38px;
  background: #090712;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.45), 0 0 45px rgba(137, 94, 220, 0.13);
}

.screen-frame img {
  width: 100%;
  border-radius: 31px;
}

.screen-frame:nth-child(1) { transform: rotateY(9deg) rotateZ(-2deg) translateY(42px); }
.screen-frame:nth-child(2) { z-index: 2; }
.screen-frame:nth-child(3) { transform: rotateY(-9deg) rotateZ(2deg) translateY(42px); }

.screen-label {
  position: absolute;
  right: 19px;
  bottom: 19px;
  left: 19px;
  padding: 13px 15px;
  border: 1px solid rgba(239, 196, 107, 0.26);
  border-radius: 16px;
  background: rgba(14, 11, 30, 0.75);
  color: #e9def6;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.creative-section {
  overflow: hidden;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: 90px;
}

.split-copy {
  max-width: 560px;
}

.split-copy > p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.soft-list {
  display: grid;
  gap: 12px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.soft-list li {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--plum);
  font-weight: 750;
}

.soft-list li::before {
  content: "✦";
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: var(--gold);
  font-size: 11px;
}

.journal-board {
  position: relative;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: linear-gradient(145deg, rgba(246, 214, 223, 0.78), rgba(232, 224, 247, 0.75)), var(--day-bg-image) center / cover;
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

html[data-theme="night"] .journal-board {
  background: linear-gradient(145deg, rgba(46, 30, 40, 0.9), rgba(36, 30, 51, 0.93)), var(--night-bg-image) center / cover;
}

.paper-note {
  position: absolute;
  top: 92px;
  left: 11%;
  width: 71%;
  min-height: 355px;
  padding: 50px 44px 36px;
  border: 1px solid rgba(215, 169, 77, 0.27);
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.9);
  color: #453763;
  box-shadow: 0 22px 55px rgba(91, 75, 122, 0.15);
  transform: rotate(-3deg);
}

html[data-theme="night"] .paper-note {
  background: rgba(36, 30, 51, 0.93);
  color: #e8ddf4;
}

.paper-note .handline {
  margin-bottom: 18px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(28px, 3.2vw, 43px);
  font-style: italic;
  line-height: 1.25;
}

.paper-note p:last-child {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.board-sticker {
  position: absolute;
  z-index: 3;
  width: 145px;
  filter: drop-shadow(0 13px 13px rgba(75, 55, 93, 0.18));
}

.board-sticker-one { top: -30px; right: -20px; transform: rotate(12deg); }
.board-sticker-two { right: 20px; bottom: -20px; transform: rotate(-10deg); }
.board-sticker-three { left: -34px; bottom: 22px; transform: rotate(7deg); }
.board-sticker-four { top: 8px; left: -35px; width: 120px; transform: rotate(-11deg); }

.tarot-section {
  padding-top: 90px;
}

.tarot-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid rgba(215, 169, 77, 0.25);
  border-radius: 40px;
  background: linear-gradient(135deg, #0b2a1d, #081b14);
  color: #f6ebcf;
  box-shadow: 0 35px 90px rgba(10, 35, 24, 0.28);
}

.tarot-copy {
  align-self: center;
  padding: 65px 22px 65px 68px;
}

.tarot-copy p {
  max-width: 520px;
  color: #bdcbbf;
  font-size: 18px;
}

.tarot-copy .eyebrow {
  color: #dfc47e;
}

.tarot-cards {
  position: relative;
  min-height: 650px;
}

.tarot-card {
  position: absolute;
  top: 70px;
  left: 25%;
  width: 255px;
  overflow: hidden;
  border: 1px solid rgba(244, 217, 151, 0.45);
  border-radius: 20px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.42);
  transition: transform 300ms ease;
}

.tarot-card:nth-child(1) { transform: translateX(-125px) rotate(-13deg); }
.tarot-card:nth-child(2) { z-index: 2; transform: translateY(-16px) rotate(1deg); }
.tarot-card:nth-child(3) { transform: translateX(127px) rotate(14deg); }
.tarot-panel:hover .tarot-card:nth-child(1) { transform: translateX(-145px) rotate(-17deg); }
.tarot-panel:hover .tarot-card:nth-child(2) { transform: translateY(-28px) rotate(0deg); }
.tarot-panel:hover .tarot-card:nth-child(3) { transform: translateX(147px) rotate(18deg); }

.privacy-feature {
  overflow: hidden;
  padding: 130px 0;
}

.privacy-card {
  position: relative;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.privacy-art {
  position: absolute;
  inset: 0 42% 0 0;
}

.privacy-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.privacy-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 48%, var(--surface-solid));
}

.privacy-copy {
  position: relative;
  z-index: 2;
  width: 53%;
  margin-left: auto;
  padding: 82px 75px 72px 40px;
}

.privacy-copy > p {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 18px;
}

.privacy-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-bottom: 32px;
}

.privacy-point {
  min-height: 122px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.privacy-point strong {
  display: block;
  margin-bottom: 4px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
}

.privacy-point span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.faq-section {
  padding-top: 70px;
}

.faq-wrap {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  align-items: start;
  gap: 80px;
}

.faq-intro {
  position: sticky;
  top: 130px;
}

.faq-intro p {
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 13px;
}

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.faq-item summary {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 21px;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  display: grid;
  width: 29px;
  height: 29px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--lavender-soft);
  color: var(--plum);
  font-size: 20px;
  font-weight: 500;
  transition: transform 180ms ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 54px 23px 21px;
  color: var(--muted);
  font-size: 14px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer a,
.text-link {
  color: var(--plum);
  font-weight: 850;
  text-underline-offset: 3px;
}

.closing-section {
  padding: 110px 0 120px;
}

.closing-card {
  position: relative;
  overflow: hidden;
  padding: 95px 40px;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(232, 224, 247, 0.88), rgba(246, 214, 223, 0.85));
  box-shadow: var(--shadow);
  text-align: center;
}

html[data-theme="night"] .closing-card {
  background: linear-gradient(135deg, rgba(58, 49, 82, 0.93), rgba(69, 48, 58, 0.9));
}

.closing-card::before,
.closing-card::after {
  content: "✦  ·  ☾  ·  ✧";
  position: absolute;
  color: var(--gold);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 28px;
  letter-spacing: 0.25em;
  opacity: 0.66;
}

.closing-card::before { top: 28px; left: 34px; transform: rotate(-8deg); }
.closing-card::after { right: 34px; bottom: 28px; transform: rotate(8deg); }

.closing-card h2 {
  max-width: 800px;
  margin-inline: auto;
}

.closing-card p {
  max-width: 590px;
  margin: 0 auto 29px;
  color: var(--muted);
  font-size: 18px;
}

.closing-card .button-row {
  justify-content: center;
}

.site-footer {
  padding: 64px 0 34px;
  border-top: 1px solid var(--line);
  background: rgba(var(--canvas-rgb), 0.58);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.65fr;
  gap: 70px;
  padding-bottom: 48px;
}

.footer-brand p {
  max-width: 390px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 14px;
}

.footer-col h3 {
  margin-bottom: 14px;
  font-family: "Nunito", sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  width: fit-content;
  margin: 9px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--plum);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.footer-bottom p {
  max-width: 760px;
  margin: 0;
}

.theme-night {
  display: none;
}

html[data-theme="night"] .theme-day {
  display: none;
}

html[data-theme="night"] .theme-night {
  display: block;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.feature-card:nth-child(2),
.privacy-point:nth-child(2) { transition-delay: 70ms; }
.feature-card:nth-child(3),
.privacy-point:nth-child(3) { transition-delay: 140ms; }
.feature-card:nth-child(4),
.privacy-point:nth-child(4) { transition-delay: 210ms; }

/* Legal and support pages */
.subpage-main {
  min-height: 70vh;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: 105px 0 75px;
  text-align: center;
}

.subpage-hero::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  width: 510px;
  height: 510px;
  transform: translateX(-50%);
  border: 1px solid rgba(215, 169, 77, 0.12);
  border-radius: 50%;
  box-shadow: inset 0 0 0 52px transparent, inset 0 0 0 53px rgba(185, 167, 230, 0.07), inset 0 0 0 108px transparent, inset 0 0 0 109px rgba(215, 169, 77, 0.07);
  pointer-events: none;
}

.subpage-hero h1 {
  position: relative;
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(50px, 7vw, 82px);
}

.subpage-hero p {
  position: relative;
  max-width: 670px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
}

.effective-date {
  display: inline-flex;
  margin-top: 24px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--plum);
  font-size: 12px;
  font-weight: 850;
}

.legal-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 760px);
  justify-content: center;
  align-items: start;
  gap: 62px;
  padding: 30px 0 130px;
}

.legal-toc {
  position: sticky;
  top: 115px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.legal-toc a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.legal-toc a:hover {
  color: var(--plum);
}

.legal-document {
  padding: 48px clamp(24px, 5vw, 62px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.legal-document section {
  padding: 10px 0 31px;
  scroll-margin-top: 110px;
}

.legal-document section + section {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin-bottom: 17px;
  font-size: 34px;
  letter-spacing: -0.02em;
}

.legal-document h3 {
  margin-top: 25px;
  margin-bottom: 10px;
  font-family: "Nunito", sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.4;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 15px;
}

.legal-document strong {
  color: var(--ink);
}

.legal-document a {
  color: var(--plum);
  font-weight: 850;
  text-underline-offset: 3px;
}

.legal-document ul,
.legal-document ol {
  padding-left: 22px;
}

.legal-document li + li {
  margin-top: 8px;
}

.legal-callout {
  margin: 7px 0 27px;
  padding: 20px 22px;
  border: 1px solid rgba(215, 169, 77, 0.3);
  border-radius: 18px;
  background: rgba(243, 217, 160, 0.15);
}

.legal-callout p:last-child {
  margin-bottom: 0;
}

.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  border: 1px solid var(--line);
  border-radius: 17px;
}

.legal-table {
  width: 100%;
  min-width: 590px;
  border-collapse: collapse;
  font-size: 13px;
}

.legal-table th,
.legal-table td {
  padding: 15px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--lavender-soft);
  color: var(--ink);
  font-weight: 900;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 20px 0 70px;
}

.support-card {
  min-height: 230px;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-small);
}

.support-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 16px;
  background: var(--lavender-soft);
  color: var(--gold);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 22px;
}

.support-card h2 {
  margin-bottom: 10px;
  font-size: 29px;
}

.support-card p {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 14px;
}

.support-card a {
  color: var(--plum);
  font-weight: 850;
  text-underline-offset: 3px;
}

.support-contact {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 50px;
  margin-bottom: 120px;
  padding: 55px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, var(--lavender-soft), var(--blush-soft));
  box-shadow: var(--shadow);
}

.support-contact h2 {
  margin-bottom: 10px;
  font-size: 38px;
}

.support-contact p {
  margin-bottom: 0;
  color: var(--muted);
}

.support-contact-actions {
  text-align: right;
}

.support-email {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(20px, 2.6vw, 31px);
  text-decoration: none;
}

.support-email:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.support-note {
  color: var(--muted);
  font-size: 12px;
}

.error-page {
  display: grid;
  min-height: calc(100svh - 82px);
  place-items: center;
  padding: 80px 20px;
  text-align: center;
}

.error-inner {
  max-width: 660px;
}

.error-code {
  display: block;
  color: var(--gold);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: 27px;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(12px) rotate(1.5deg); }
}

@keyframes float-small {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-3deg) translateY(-9px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.42; transform: scale(0.82) rotate(0); }
  50% { opacity: 1; transform: scale(1.1) rotate(8deg); }
}

@keyframes orbit-breathe {
  0%, 100% { transform: scale(0.98) rotate(0); opacity: 0.8; }
  50% { transform: scale(1.02) rotate(4deg); opacity: 1; }
}

@media (max-width: 1020px) {
  .desktop-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .hero { padding-top: 35px; }
  .hero-grid { grid-template-columns: 1fr 0.8fr; gap: 25px; }
  .hero-art { min-height: 600px; }
  .phone-shell { right: 0; width: 290px; }
  .celestial-face { right: -80px; width: 340px; }
  .floating-note { left: -45px; bottom: 80px; }
  .feature-card-large,
  .feature-card-small { grid-column: span 6; }
  .split-layout { gap: 55px; }
  .privacy-copy { width: 60%; padding-right: 45px; }
  .privacy-art { right: 50%; }
  .faq-wrap { gap: 45px; }
  .legal-layout { grid-template-columns: minmax(0, 780px); }
  .legal-toc { display: none; }
}

@media (max-width: 780px) {
  :root { --page: min(100% - 28px, 640px); }
  .site-header { padding: 10px 0; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .brand-name { font-size: 25px; }
  .theme-label { display: none; }
  .theme-toggle { width: 46px; padding: 0; }
  .hero { min-height: auto; padding: 66px 0 90px; }
  .hero::before { top: 43%; left: 7%; width: 560px; height: 560px; }
  .hero-grid { display: block; min-height: auto; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-right: auto; margin-left: auto; }
  .hero-actions { justify-content: center; }
  .hero-art { min-height: 570px; margin-top: 32px; }
  .phone-shell { right: 50%; bottom: -30px; width: min(310px, 76vw); transform: translateX(50%) rotate(2deg); }
  .celestial-face { top: -55px; right: -18px; width: 290px; }
  .floating-note { left: 2%; bottom: 46px; width: 190px; font-size: 16px; }
  .ritual-strip { margin-top: -35px; }
  .ritual-strip-inner { grid-template-columns: 1fr 1fr; }
  .ritual-fact { min-height: 104px; padding: 18px; }
  .section { padding: 95px 0; }
  .section-header { margin-bottom: 40px; }
  .feature-card-large,
  .feature-card-small { grid-column: 1 / -1; }
  .feature-card { min-height: 365px; }
  .night-showcase { padding: 100px 0; }
  .screen-gallery { grid-template-columns: 0.72fr 1fr; gap: 12px; }
  .screen-frame:nth-child(1) { display: none; }
  .screen-frame:nth-child(2) { transform: rotate(-1.5deg); }
  .screen-frame:nth-child(3) { transform: rotate(2deg) translateY(30px); }
  .split-layout { display: flex; flex-direction: column; gap: 45px; }
  .split-copy { text-align: center; }
  .soft-list { width: fit-content; margin-right: auto; margin-left: auto; text-align: left; }
  .journal-board { width: 100%; min-height: 520px; }
  .paper-note { top: 82px; left: 10%; width: 78%; min-height: 315px; padding: 40px 31px; }
  .board-sticker { width: 115px; }
  .board-sticker-four { width: 90px; }
  .tarot-panel { display: flex; min-height: 890px; flex-direction: column; }
  .tarot-copy { padding: 52px 35px 10px; text-align: center; }
  .tarot-cards { width: 100%; min-height: 540px; }
  .tarot-card { top: 60px; left: 50%; width: min(225px, 46vw); }
  .tarot-card:nth-child(1) { transform: translateX(calc(-50% - 90px)) rotate(-13deg); }
  .tarot-card:nth-child(2) { transform: translateX(-50%) translateY(-16px) rotate(1deg); }
  .tarot-card:nth-child(3) { transform: translateX(calc(-50% + 90px)) rotate(14deg); }
  .tarot-panel:hover .tarot-card:nth-child(1) { transform: translateX(calc(-50% - 105px)) rotate(-16deg); }
  .tarot-panel:hover .tarot-card:nth-child(2) { transform: translateX(-50%) translateY(-25px); }
  .tarot-panel:hover .tarot-card:nth-child(3) { transform: translateX(calc(-50% + 105px)) rotate(17deg); }
  .privacy-feature { padding: 95px 0; }
  .privacy-card { min-height: 980px; }
  .privacy-art { inset: 0 0 54% 0; }
  .privacy-art::after { background: linear-gradient(to bottom, transparent 40%, var(--surface-solid)); }
  .privacy-copy { position: absolute; right: 0; bottom: 0; left: 0; width: auto; padding: 35px 30px 42px; text-align: center; }
  .privacy-points { text-align: left; }
  .faq-wrap { display: block; }
  .faq-intro { position: static; margin-bottom: 32px; text-align: center; }
  .closing-card { padding: 78px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 12px; }
  .subpage-hero { padding: 80px 0 55px; }
  .legal-layout { padding-bottom: 90px; }
  .legal-document { padding: 36px 24px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-contact { grid-template-columns: 1fr; padding: 38px 29px; text-align: center; }
  .support-contact-actions { text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(48px, 15vw, 65px); }
  h2 { font-size: clamp(39px, 12vw, 52px); }
  .hero-copy h1 span { display: inline; }
  .hero-lede { font-size: 17px; }
  .button { width: 100%; }
  .app-store-button { width: 179px; }
  .hero-art { min-height: 520px; }
  .phone-shell { width: 265px; }
  .celestial-face { width: 230px; }
  .floating-note { bottom: 28px; left: -10px; width: 168px; padding: 14px; }
  .ritual-strip-inner { display: block; }
  .ritual-fact { min-height: auto; border-bottom: 1px solid var(--line); }
  .ritual-fact:last-child { border-bottom: 0; }
  .feature-card { min-height: 360px; }
  .feature-art { top: -17px; right: -35px; width: 265px; height: 265px; }
  .feature-card-small .feature-art { width: 250px; height: 250px; }
  .screen-gallery { grid-template-columns: 1fr; width: 82%; margin: 0 auto; }
  .screen-frame:nth-child(3) { display: none; }
  .journal-board { min-height: 470px; }
  .paper-note { top: 71px; min-height: 290px; padding: 35px 24px; }
  .board-sticker-one { right: -38px; }
  .board-sticker-three { left: -42px; }
  .board-sticker-four { display: none; }
  .tarot-panel { min-height: 800px; }
  .tarot-copy { padding-right: 24px; padding-left: 24px; }
  .tarot-cards { min-height: 465px; }
  .tarot-card { width: 178px; }
  .tarot-card:nth-child(1) { transform: translateX(calc(-50% - 65px)) rotate(-13deg); }
  .tarot-card:nth-child(2) { transform: translateX(-50%) translateY(-14px); }
  .tarot-card:nth-child(3) { transform: translateX(calc(-50% + 65px)) rotate(14deg); }
  .privacy-card { min-height: 1060px; }
  .privacy-art { bottom: 61%; }
  .privacy-points { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .legal-document { margin-right: -2px; margin-left: -2px; padding-right: 20px; padding-left: 20px; }
  .support-card { padding: 26px; }
  .support-email { overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .site-header,
  .site-footer,
  .legal-toc,
  .theme-toggle,
  .menu-toggle { display: none !important; }
  body::before,
  body::after { display: none; }
  body { background: white; color: black; }
  .subpage-hero { padding: 30px 0; }
  .legal-layout { display: block; padding: 0; }
  .legal-document { max-width: none; padding: 0; border: 0; box-shadow: none; }
  .legal-document p,
  .legal-document li { color: #333; }
}
