:root {
  color-scheme: light;
  --sky: #c5e3f7;
  --sky-soft: #eef9fb;
  --sun: #ead389;
  --cream: #fffefa;
  --cream-soft: #fbf5e7;
  --gold: #a98e45;
  --gold-dark: #786734;
  --ink: #5e563f;
  --muted: #867c61;
  --line: rgba(169, 142, 69, 0.72);
  --line-soft: rgba(169, 142, 69, 0.32);
  --shadow: 0 24px 70px rgba(134, 116, 49, 0.14);
  font-family:
    "Avenir Next", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background:
    linear-gradient(145deg, rgba(197, 227, 247, 0.96), rgba(238, 249, 251, 0.8) 34%, rgba(234, 211, 137, 0.52) 100%),
    var(--sky);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--ink);
}

@supports not (overflow-x: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

body,
button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1120px, calc(100% - 36px));
  min-height: 42px;
  padding: 5px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.72);
  box-shadow: 0 14px 38px rgba(134, 116, 49, 0.1);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-left: 18px;
  color: var(--gold-dark);
  font-weight: 700;
  letter-spacing: 0;
}

.brand-logo {
  width: clamp(46px, 4.2vw, 64px);
  height: auto;
}

.site-footer .brand-logo {
  width: clamp(130px, 13vw, 172px);
}

.nav-links {
  justify-self: center;
  display: flex;
  gap: 4px;
}

.nav-links a,
.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 0 12px;
  border: 2px solid transparent;
  border-radius: 999px;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 650;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.nav-links a:hover {
  background: rgba(255, 254, 250, 0.78);
}

.nav-links a.active {
  border-color: rgba(169, 142, 69, 0.72);
  background: rgba(255, 254, 250, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.58),
    0 8px 22px rgba(169, 142, 69, 0.12);
  color: #5f522b;
}

.nav-action {
  border: 2px solid var(--line);
  background: rgba(255, 254, 250, 0.8);
}

.nav-action.primary {
  background: linear-gradient(135deg, #efe1b6, #d9c47a);
  color: var(--gold-dark);
  font-weight: 600;
}

.nav-signin {
  cursor: pointer;
}

.nav-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.8);
  color: var(--gold-dark);
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.nav-menu-btn svg { display: block; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nav-menu-btn .icon-close { display: none; }
.site-header.menu-open .nav-menu-btn .icon-menu  { display: none; }
.site-header.menu-open .nav-menu-btn .icon-close { display: block; }

.hero {
  position: relative;
  min-height: auto;
  overflow: visible;
  padding: clamp(118px, 16vh, 150px) max(18px, calc((100vw - 825px) / 2)) clamp(44px, 5.25vh, 54px);
  --mx: 0px;
  --my: 0px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 254, 250, 0.72), transparent 19%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.1) 0%, rgba(234, 211, 137, 0.36) 58%, rgba(234, 211, 137, 0) 100%);
  pointer-events: none;
}

.sky-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.sky-layer {
  position: absolute;
  user-select: none;
  will-change: transform;
  transition: transform 520ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.clouds-side {
  width: min(44vw, 560px);
  opacity: 0.42;
}

.clouds-side-left {
  top: 42%;
  left: -18%;
  transform: translate(calc(var(--mx) * -0.32), calc(var(--my) * -0.12));
}

.clouds-side-right {
  top: 23%;
  right: -18%;
  transform: scaleX(-1) translate(calc(var(--mx) * -0.32), calc(var(--my) * 0.12));
}

.cloud {
  width: var(--w, 250px);
  opacity: var(--o, 1);
}

.cloud-a {
  --w: clamp(190px, 21vw, 330px);
  top: 112px;
  left: -20px;
  transform: translate(calc(var(--mx) * -0.44), calc(var(--my) * -0.18));
}

.cloud-b {
  --w: clamp(180px, 18vw, 280px);
  top: 86px;
  right: 42px;
  transform: translate(calc(var(--mx) * 0.42), calc(var(--my) * -0.16));
}

.cloud-c {
  --w: clamp(260px, 28vw, 430px);
  --o: 0.92;
  right: 5%;
  bottom: 15%;
  transform: translate(calc(var(--mx) * 0.24), calc(var(--my) * 0.14));
}

.cloud-d {
  --w: clamp(220px, 24vw, 360px);
  --o: 0.84;
  left: -80px;
  bottom: 10%;
  transform: translate(calc(var(--mx) * -0.22), calc(var(--my) * 0.12));
}

.star {
  width: var(--s, 54px);
  opacity: var(--o, 0.95);
}

.star-a {
  --s: clamp(54px, 6vw, 92px);
  top: 270px;
  right: 17%;
  transform: translate(calc(var(--mx) * 0.78), calc(var(--my) * -0.24));
}

.star-b {
  --s: clamp(32px, 3vw, 52px);
  top: 410px;
  left: 7%;
  transform: translate(calc(var(--mx) * -0.62), calc(var(--my) * 0.18));
}

.star-c {
  --s: clamp(34px, 3.6vw, 58px);
  right: 32%;
  bottom: 240px;
  transform: translate(calc(var(--mx) * 0.48), calc(var(--my) * 0.34));
}

.star-d {
  --s: clamp(24px, 2.5vw, 42px);
  --o: 0.78;
  top: 350px;
  right: 25%;
  transform: translate(calc(var(--mx) * 0.36), calc(var(--my) * -0.32));
}

.hero:hover .cloud-a,
.hero:hover .cloud-d {
  transition-duration: 260ms;
}

.hero:hover .cloud-b,
.hero:hover .cloud-c,
.hero:hover .star,
.hero:hover .clouds-side {
  transition-duration: 260ms;
}

.cloud-a-card {
  position: absolute;
  z-index: 1;
  bottom: -22px;
  left: -110px;
  width: min(210px, 55vw);
  pointer-events: none;
}

@media (min-width: 561px) {
  .cloud-a-card { display: none; }
}

.foreground-clouds {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: min(25vw, 270px);
  pointer-events: none;
}

.foreground-clouds img {
  position: absolute;
  bottom: -58px;
  width: min(54vw, 670px);
  opacity: 0.98;
  transition: transform 520ms cubic-bezier(0.2, 0.85, 0.2, 1);
  will-change: transform;
}

.foreground-left {
  left: -110px;
  transform: translate(calc(var(--mx) * -0.38), calc(var(--my) * 0.08));
}

.foreground-right {
  right: -110px;
  transform: scaleX(-1) translate(calc(var(--mx) * -0.38), calc(var(--my) * 0.08));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(735px, 100%);
  margin: 0 auto clamp(29px, 3.75vh, 38px);
  text-align: center;
}

.eyebrow,
.section-kicker,
.plan-label,
.chat-label {
  margin: 0 0 14px;
  color: var(--gold-dark);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chat-label {
  text-transform: none;
  letter-spacing: 0.04em;
}

.hero-logo {
  --shine: 0;
  --shine-x: -35%;
  --shine-y: 50%;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  margin: 0;
  color: #4995d1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.7rem, 9vw, 7.15rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.92;
  filter: drop-shadow(0 18px 35px rgba(73, 149, 209, 0.1));
}

.hero-logo > span:not(.hero-logo-ai) {
  padding-bottom: 0.18em;
  background:
    linear-gradient(
      100deg,
      transparent calc(var(--span-shine-x, -60%) - 20%),
      rgba(255, 255, 255, calc(var(--span-shine, 0) * 0.38)) var(--span-shine-x, -60%),
      transparent calc(var(--span-shine-x, -60%) + 20%)
    ),
    linear-gradient(#4995d1, #4995d1);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.hero-logo-ai {
  display: inline-block;
  position: relative;
  color: #d6b94d;
  isolation: isolate;
  transition: filter 220ms ease;
  filter: brightness(calc(1 + var(--shine) * 0.14));
}

.hero-logo-ai::after {
  content: "AI";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      transparent calc(var(--shine-x) - 24%),
      rgba(255, 255, 255, 0) calc(var(--shine-x) - 10%),
      rgba(255, 255, 255, 0.82) var(--shine-x),
      rgba(255, 255, 255, 0) calc(var(--shine-x) + 10%),
      transparent calc(var(--shine-x) + 24%)
    );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: var(--shine);
  pointer-events: none;
}

.hero-tagline {
  margin: 30px 0 0;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.75rem, 1.16vw, 1.07rem);
  font-style: italic;
  letter-spacing: 0.08em;
}

.hero h1:not(.hero-logo) {
  margin: 0;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 8.8vw, 6.6rem);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 0.98;
}

.hero-copy {
  max-width: 495px;
  margin: 17px auto 0;
  color: var(--ink);
  font-size: clamp(0.75rem, 1.16vw, 0.94rem);
  line-height: 1.55;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 21px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 245, 231, 0.78);
  color: var(--ink);
  font-weight: 650;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--cream);
  box-shadow: 0 16px 38px rgba(134, 116, 49, 0.12);
}

.button.primary {
  background: #efe1b6;
}

#pricing {
  scroll-margin-top: 120px;
}

.pricing-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
  width: min(770px, 100%);
  margin: 96px auto 0;
}

.price-card {
  --card-mx: 50%;
  --card-my: 50%;
  --card-shine: 0;
  position: relative;
  display: grid;
  min-height: clamp(392px, 50vh, 449px);
  padding: clamp(21px, 2.55vw, 26px);
  border: 3px solid var(--line);
  border-radius: 34px;
  background: rgba(255, 254, 250, 0.88);
  box-shadow: var(--shadow);
  overflow: visible;
}

.price-card::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 37px;
  padding: 3px;
  background: radial-gradient(
    circle at var(--card-mx) var(--card-my),
    rgba(255, 215, 80, calc(var(--card-shine) * 0.8)) 0%,
    rgba(200, 160, 50, calc(var(--card-shine) * 0.35)) 35%,
    transparent 65%
  );
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  pointer-events: none;
}

.price-card.premium {
  background: rgba(255, 254, 250, 0.94);
}

.basic-tier {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.basic-tier .price-card {
  flex: 1;
  padding-top: clamp(36px, 4vw, 44px);
}

.basic-badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 16px;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--cream);
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.premium-tier {
  position: relative;
  min-width: 0;
}

.premium-tier .price-card.premium {
  padding-top: clamp(36px, 4vw, 44px);
}

.tier-sunburst {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 154px;
  z-index: 3;
  transform: translate(-50%, -100%);
  pointer-events: none;
}

.tier-badge {
  --badge-shine: 0;
  --badge-shine-x: 50%;
  --badge-shine-y: 45%;
  transition: box-shadow 200ms ease;
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 16px;
  border-radius: 999px;
  background: #b49435;
  color: var(--cream);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow:
    0 0 calc(var(--badge-shine) * 8px) rgba(220, 185, 80, 0.45),
    0 0 calc(var(--badge-shine) * 18px) rgba(200, 160, 50, 0.2);
  transform: translate(-50%, -50%);
}

.tier-badge::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  background:
    radial-gradient(
      circle at var(--badge-shine-x) var(--badge-shine-y),
      rgba(255, 235, 140, 0.72) 0%,
      rgba(230, 185, 80, 0.45) 22%,
      rgba(200, 155, 45, 0.18) 42%,
      transparent 60%
    );
  opacity: var(--badge-shine);
}

.tier-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  background:
    linear-gradient(
      105deg,
      transparent calc(var(--badge-shine-x) - 20%),
      rgba(240, 200, 90, 0.12) calc(var(--badge-shine-x) - 8%),
      rgba(255, 220, 100, 0.38) var(--badge-shine-x),
      rgba(240, 200, 90, 0.12) calc(var(--badge-shine-x) + 8%),
      transparent calc(var(--badge-shine-x) + 20%)
    );
  opacity: var(--badge-shine);
}

.divine-cloud {
  position: absolute;
  z-index: 1;
  right: -72px;
  top: 33%;
  width: min(360px, 52%);
  pointer-events: none;
}

.price-card.premium > div,
.price-card.premium > ul,
.price-card.premium > .plan-button {
  position: relative;
  z-index: 2;
}

.plan-label {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 0 21px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: rgba(251, 245, 231, 0.74);
  color: var(--ink);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.plan-copy {
  max-width: 390px;
  margin: 8px 0 30px;
  color: var(--muted);
  line-height: 1.55;
}

.price {
  margin-bottom: 21px;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.51rem, 4.2vw, 3.6rem);
  line-height: 0.98;
}

.currency {
  font-size: 0.88em;
}

.period {
  color: var(--ink);
  font-family: var(--font-body, inherit);
  font-size: 0.96rem;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

li {
  position: relative;
  padding-left: 29px;
  margin-top: 15px;
  color: var(--ink);
  font-size: 0.83rem;
  line-height: 1.35;
}

li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--gold);
  font-size: 0.98rem;
}

.plan-button {
  align-self: end;
  width: 100%;
  margin-top: 26px;
}

.why-section,
.companions,
.preview {
  position: relative;
  padding: 65px max(18px, calc((100vw - 840px) / 2));
}

.why-section {
  background: transparent;
  padding-top: 110px;
  overflow: hidden;
}


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

h2 {
  margin-bottom: 0;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3.53vw, 3.38rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.why-heading p,
.why-card p,
.preview-copy p,
.companion-card p,
.plan-copy {
  color: var(--muted);
  line-height: 1.72;
}

.why-heading {
  width: min(570px, 100%);
  margin: 0 auto 42px;
  text-align: center;
}


.why-heading h2 {
  margin-bottom: 17px;
  color: #29313f;
}

.why-heading h2::after {
  content: "";
  display: block;
  width: 92px;
  height: 2px;
  margin: 22px auto 0;
  background: var(--line-soft);
}

.why-heading p {
  max-width: 480px;
  margin: 0 auto;
  font-size: 0.9rem;
}

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

.why-card {
  min-height: 195px;
  padding: 26px;
  border: 3px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 254, 250, 0.78);
  box-shadow: 0 20px 54px rgba(92, 94, 122, 0.09);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.why-card:hover {
  transform: scale(1.04);
  box-shadow: 0 28px 64px rgba(92, 94, 122, 0.15);
}

.why-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 21px;
  border-radius: 18px;
  border: 2px solid var(--line);
  background: rgba(255, 254, 250, 0.82);
  color: var(--line);
}

.why-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-card h3 {
  margin-bottom: 14px;
  color: #29313f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 400;
  letter-spacing: 0;
}

.why-chevron {
  display: none;
}

.why-card p {
  margin-bottom: 0;
  font-size: 0.77rem;
}

.section-heading {
  display: grid;
  gap: 10px;
  width: min(585px, 100%);
  margin-bottom: 26px;
  text-align: center;
  margin-inline: auto;
}

.companions {
  background: transparent;
}

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

.companion-card,
.phone-shell {
  border: 3px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 254, 250, 0.82);
  box-shadow: 0 18px 46px rgba(134, 116, 49, 0.1);
}


.companion-card {
  padding: 24px;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.companion-card:hover {
  transform: scale(1.03);
  box-shadow: 0 28px 64px rgba(134, 116, 49, 0.14);
}

.companion-card.featured {
  background: rgba(251, 245, 231, 0.8);
}

@keyframes companion-glow-pulse {
  0%, 100% { box-shadow: 0 0 18px 2px rgba(255, 220, 80, 0.18), 0 0 0 0px rgba(255, 210, 60, 0), 0 28px 64px rgba(134, 116, 49, 0.14); }
  50%       { box-shadow: 0 0 38px 10px rgba(255, 220, 80, 0.38), 0 0 0 9px rgba(255, 210, 60, 0.14), 0 28px 64px rgba(134, 116, 49, 0.22); }
}

.companion-card.featured:hover {
  animation: companion-glow-pulse 2s ease-in-out infinite;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 3px solid var(--line);
  border-radius: 999px;
  background: var(--cream-soft);
  color: var(--gold-dark);
}

.card-icon svg,
.chat-compose svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.companion-card h3 {
  margin-bottom: 12px;
  color: var(--gold-dark);
  font-size: 1.07rem;
}

.companion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.companion-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-dark);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.025em;
  line-height: 1;
}

.preview {
  display: grid;
  grid-template-columns: minmax(195px, 0.92fr) minmax(225px, 330px);
  gap: 42px;
  align-items: center;
  background: transparent;
}

.preview-copy .section-kicker {
  margin-bottom: 14px;
  display: block;
}

.preview-copy h2 {
  margin-bottom: 24px;
}


.mode-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  min-height: 48px;
  margin-top: 22px;
  padding: 5px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(240, 230, 205, 0.45);
  box-shadow: inset 0 2px 6px rgba(134, 116, 49, 0.12);
}

.mode-button {
  min-width: 120px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gold-dark);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, box-shadow 220ms ease;
  opacity: 0.6;
}

.mode-button:hover {
  opacity: 0.85;
}

.mode-button.active {
  background: linear-gradient(160deg, #fde878 0%, #c98b0e 45%, #f0c128 100%);
  color: #fff;
  opacity: 1;
  box-shadow: 0 3px 16px rgba(200, 148, 20, 0.55), 0 1px 4px rgba(160, 100, 8, 0.4), inset 0 1px 0 rgba(255, 240, 150, 0.5);
  text-shadow: 0 1px 3px rgba(100, 55, 0, 0.45);
}

.phone-shell {
  overflow: hidden;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  padding: 15px;
  border-bottom: 3px solid var(--line-soft);
  background: rgba(251, 245, 231, 0.72);
}

.phone-top h3 {
  margin: 0;
  color: var(--gold-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 7px;
}

.phone-top h3::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

#chat-title[data-mode="jesus"]::before {
  -webkit-mask-image: url(assets/illustrator/avatars/cross.svg);
  mask-image: url(assets/illustrator/avatars/cross.svg);
}

#chat-title[data-mode="god"]::before {
  -webkit-mask-image: url(assets/illustrator/avatars/crown.svg);
  mask-image: url(assets/illustrator/avatars/crown.svg);
}

.chat-label {
  margin-bottom: 4px;
  color: var(--gold-dark);
  font-size: 0.72rem;
}

.status-dot {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #f1d17a;
  box-shadow: 0 0 0 7px rgba(241, 209, 122, 0.2);
}

.chat-window {
  display: grid;
  align-content: end;
  gap: 12px;
  min-height: 315px;
  padding: 15px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95), transparent 16%),
    linear-gradient(180deg, rgba(223, 243, 251, 0.68), rgba(251, 245, 231, 0.86));
}

.message {
  width: min(88%, 330px);
  padding: 11px 12px;
  border: 2px solid var(--line-soft);
  border-radius: 22px;
  line-height: 1.5;
}

.message.user {
  justify-self: end;
  background: #efe1b6;
  color: var(--ink);
}

.message.agent {
  justify-self: start;
  background: rgba(255, 254, 250, 0.92);
  color: var(--ink);
}

.chat-compose {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 10px;
  padding: 11px;
  border-top: 3px solid var(--line-soft);
  background: rgba(255, 254, 250, 0.86);
}

.chat-compose input {
  min-width: 0;
  min-height: 39px;
  padding: 0 14px;
  border: 2px solid var(--line-soft);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
}

.chat-compose button {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #efe1b6;
  color: var(--gold-dark);
  cursor: pointer;
}

.reviews {
  padding: 65px 0 72px;
  overflow: hidden;
}

.reviews-heading {
  padding: 0 18px;
  margin: 0 auto 38px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.reviews-heading h2 {
  white-space: nowrap;
}

.reviews-marquee {
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 9%, black 91%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 9%, black 91%, transparent 100%);
}

.reviews-track {
  display: flex;
  gap: 18px;
  width: max-content;
  padding: 8px 0 18px;
  animation: reviews-scroll 44s linear infinite;
}

.reviews-track:hover {
  animation-play-state: paused;
}

@keyframes reviews-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  flex-shrink: 0;
  width: 272px;
  padding: 22px 24px;
  border: 3px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 254, 250, 0.82);
  display: grid;
  gap: 10px;
}

.review-stars {
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.06em;
}

.review-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.62;
}

.review-name {
  margin: 0;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px max(18px, calc((100vw - 840px) / 2));
  border-top: 3px solid var(--line);
  background: transparent;
  color: var(--ink);
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  text-align: right;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 160ms;
}

.footer-links a:hover { color: var(--gold-dark); }

/* ── Cookie consent banner ──────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--cream-soft);
  border-top: 2px solid var(--line);
  padding: 14px 20px;
  transform: translateY(110%);
  transition: transform 360ms ease;
  box-shadow: 0 -4px 24px rgba(134, 116, 49, 0.18);
}

#cookie-banner.cookie-show { transform: translateY(0); }
#cookie-banner.cookie-hide { transform: translateY(110%); }

.cookie-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink);
  min-width: 200px;
  line-height: 1.5;
}

.cookie-link {
  color: var(--gold-dark);
  text-decoration: underline;
  margin-left: 4px;
}

.cookie-btns {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cookie-btn { padding: 8px 22px; font-size: 0.85rem; }

.cookie-btn-ghost {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.cookie-btn-ghost:hover { color: var(--gold-dark); }

/* ── Legal / Privacy Policy page ───────────────────────────── */
.legal-page {
  padding: 80px 18px 60px;
  min-height: 80vh;
}

.legal-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.legal-title {
  margin: 0 0 6px;
  color: var(--gold-dark);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.legal-updated {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-section {
  margin-bottom: 36px;
}

.legal-section h2 {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.legal-section p,
.legal-section li {
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-section ul {
  padding-left: 22px;
  margin: 8px 0;
}

.legal-section a {
  color: var(--gold-dark);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 6px;
  }

  .nav-menu-btn {
    display: flex;
    order: -1;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: auto;
    min-width: 180px;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    border: 2px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 254, 250, 0.96);
    box-shadow: 0 14px 38px rgba(134, 116, 49, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10;
  }

  .nav-links a {
    justify-content: flex-start;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.85rem;
  }

  .site-header.menu-open .nav-links {
    display: flex;
  }

  .hero {
    padding-top: 90px;
  }

  .pricing-grid,
  .preview,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .premium-tier {
    margin-top: 70px;
  }

  .companion-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

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

  .preview {
    gap: 34px;
  }

  .site-footer {
    display: grid;
  }

  .site-footer p {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .hero-copy { display: none; }
  .pricing-grid { margin-top: 36px; }
  .preview-copy h2,
  .preview-copy > p,
  .preview-copy .section-kicker { text-align: center; }

  .site-header {
    top: 10px;
    width: min(100% - 20px, 1120px);
    border-width: 2px;
  }

  .brand {
    font-size: 0.94rem;
    padding-left: 6px;
  }

  .brand-logo {
    width: 72px;
  }

  .nav-action {
    min-height: 29px;
    padding: 0 9px;
    font-size: 0.72rem;
  }

  .hero {
    padding-inline: 16px;
  }

  .hero h1:not(.hero-logo) {
    font-size: clamp(2.4rem, 12.75vw, 3.38rem);
  }

  .hero-logo {
    font-size: clamp(3.4rem, 15vw, 4.65rem);
  }

  .hero-tagline {
    font-size: 0.72rem;
    margin-top: 14px;
  }

  .cloud-a {
    display: none;
  }

  .cloud-b {
    --w: clamp(234px, 23vw, 364px);
    right: -92px;
    top: 420px;
  }

  .clouds-side {
    width: 360px;
  }

  .clouds-side-left {
    display: none;
  }

  .clouds-side-right {
    right: -260px;
  }

  .star-a {
    top: 560px;
    right: 2%;
  }

  .star-b {
    top: 610px;
    left: 3%;
  }

  .star-d {
    top: 580px;
  }

  .foreground-clouds img {
    width: 470px;
    bottom: -44px;
  }

  .foreground-left {
    left: -250px;
  }

  .foreground-right {
    right: -250px;
  }

  .price-card,
  .companion-card {
    padding: 18px;
    border-radius: 26px;
  }

  .price-card::before {
    border-radius: 29px;
  }

  .why-section,
  .companions,
  .preview {
    padding: 48px 14px;
  }

  .why-section {
    padding-top: 100px;
  }

  .mode-switch {
    width: 100%;
  }

  .mode-button {
    min-width: 0;
  }

  /* Why-section accordion */
  .why-card {
    cursor: pointer;
    min-height: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
  }
  .why-card.why-open {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .why-icon {
    flex-shrink: 0;
    margin-bottom: 0;
  }
  .why-card h3 {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
    font-size: 0.95rem;
  }
  .why-card.why-open h3 {
    margin-bottom: 8px;
  }
  .why-chevron {
    flex-shrink: 0;
  }
  .why-card p {
    max-height: 0;
    overflow: hidden;
    margin: 0;
    transition: max-height 300ms ease, margin 300ms ease;
  }
  .why-card.why-open p {
    max-height: 200px;
    width: 100%;
    padding-left: calc(42px + 14px);
  }
  .why-chevron {
    display: inline-block;
  }
  .why-chevron::after {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--gold-dark);
    border-bottom: 2px solid var(--gold-dark);
    transform: rotate(45deg);
    margin-left: 8px;
    transition: transform 300ms ease;
    vertical-align: middle;
  }
  .why-card.why-open .why-chevron::after {
    transform: rotate(-135deg);
  }
}

/* ── Mobile landscape fixes ─────────────────────────────────── */
@media (max-width: 900px) {
  /* background-attachment:fixed is broken on iOS in landscape —
     causes a hard edge where the gradient stops repainting */
  body {
    background-attachment: scroll;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  /* In landscape the viewport is short and wide; pull clouds back
     into frame so they're not clipped by sky-art overflow:hidden */
  .cloud-a {
    left: -10px;
    top: 80px;
    --w: clamp(140px, 16vw, 220px);
  }

  .cloud-b {
    right: -10px;
    top: 60px;
    --w: clamp(130px, 14vw, 200px);
  }

  .cloud-c {
    --w: clamp(180px, 20vw, 280px);
  }

  .cloud-d {
    --w: clamp(160px, 18vw, 240px);
    left: -20px;
  }

  .clouds-side {
    width: min(36vw, 320px);
  }

  .clouds-side-left {
    left: -14%;
  }

  .clouds-side-right {
    right: -14%;
  }
}

/* ── Modals ──────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 28, 40, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(460px, 100%);
  padding: 40px 36px 32px;
  border: 3px solid var(--line);
  border-radius: 32px;
  background: var(--cream);
  box-shadow: 0 32px 80px rgba(20, 28, 40, 0.22);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.6;
}
.modal-close:hover { opacity: 1; }

.modal-logo {
  width: 110px;
  margin-bottom: 4px;
}

.modal-title {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  color: var(--gold-dark);
  margin-bottom: 0;
}

.modal-subtitle {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0;
}

/* Auth tabs */
.auth-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-top: 6px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: rgba(240, 230, 205, 0.35);
}

.auth-tab {
  flex: 1;
  padding: 7px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gold-dark);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0.55;
  transition: background 180ms ease, opacity 180ms ease;
}

.auth-tab.active {
  background: linear-gradient(135deg, #d4aa5a 0%, #a87830 100%);
  color: #fff8ee;
  opacity: 1;
  box-shadow: 0 2px 10px rgba(168, 120, 48, 0.35);
}

/* Auth form */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.auth-form input {
  width: 100%;
  padding: 13px 16px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.9);
  color: var(--gold-dark);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.auth-form input:focus {
  border-color: #c4963e;
}

.auth-error {
  color: #b94040;
  font-size: 0.82rem;
  min-height: 1.2em;
  margin: 0;
}

.auth-submit {
  width: 100%;
  padding: 13px;
  margin-top: 2px;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Google button */
.google-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.9);
  color: var(--gold-dark);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease;
}
.google-button:hover {
  background: rgba(255, 254, 250, 1);
  border-color: #c4963e;
}

.auth-terms {
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
  margin: 4px 0 0;
}
.auth-terms a { color: var(--gold-dark); }

.auth-forgot-btn {
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  display: block;
  width: 100%;
  transition: color 150ms;
}
.auth-forgot-btn:hover { color: var(--gold-dark); }

.auth-forgot-section {
  gap: 10px;
}
.auth-forgot-section[hidden] { display: none; }
.auth-forgot-section:not([hidden]) { display: grid; }

/* Hide main auth content in forgot-password mode */
.modal-card.auth-forgot-mode .auth-tabs,
.modal-card.auth-forgot-mode #auth-form,
.modal-card.auth-forgot-mode .auth-divider,
.modal-card.auth-forgot-mode #google-auth,
.modal-card.auth-forgot-mode .auth-terms,
.modal-card.auth-forgot-mode #auth-forgot-btn { display: none; }

/* Paywall card */
.paywall-card {
  width: min(640px, 100%);
}

.paywall-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}

.paywall-plan {
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 254, 250, 0.7);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.paywall-plan-featured {
  background: rgba(251, 245, 231, 0.85);
  border-color: #c4963e;
}

.paywall-plan-kicker {
  margin: 0;
  color: var(--gold-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.paywall-plan-name {
  margin: 0;
  color: var(--gold-dark);
  font-size: 1.05rem;
  font-family: Georgia, serif;
  font-weight: 400;
}

.paywall-price {
  color: var(--gold-dark);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
  margin-top: 4px;
}

.paywall-currency { font-size: 1rem; vertical-align: super; }
.paywall-period   { font-size: 0.8rem; font-weight: 400; color: var(--muted); }

.paywall-annual {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.paywall-plan-actions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.paywall-plan-btn {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.82rem;
}

.paywall-annual-btn {
  border: 1.5px solid var(--line);
  background: transparent;
}

.paywall-signin-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin: 4px 0 0;
}
.paywall-signin-note a { color: var(--gold-dark); }

/* User avatar in header */
.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d4aa5a, #a87830);
  color: #fff8ee;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}
.user-avatar:hover { transform: scale(1.08); box-shadow: 0 4px 14px rgba(134,116,49,0.32); }
.user-avatar.has-img { background: rgba(255,254,250,0.92); overflow: hidden; border: 1.5px solid var(--line); }
.user-avatar-img { width: 100%; height: 100%; object-fit: cover; }
.user-avatar-icon { width: 72%; height: 72%; object-fit: contain; }

/* ── Account page ─────────────────────────────────────── */
.acct-page {
  min-height: 100vh;
  padding: 110px 18px 72px;
  background: linear-gradient(180deg, #dff3fb 0%, #fdf8ed 100%);
}

.acct-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: min(600px, 100%);
  margin: 0 auto;
}

.acct-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 4px 10px;
}

.acct-heading-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: rgba(255,254,250,0.9);
  color: var(--gold-dark);
  overflow: hidden;
}

.acct-heading-avatar .acct-avatar-photo,
.acct-heading-avatar .acct-avatar-img { width: 82%; height: 82%; object-fit: contain; }

.acct-heading-name {
  margin: 0 0 3px;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 400;
}

.acct-heading-email {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.acct-card {
  padding: 26px 28px;
  border: 3px solid var(--line);
  border-radius: 24px;
  background: rgba(255,254,250,0.9);
  box-shadow: 0 18px 46px rgba(134,116,49,0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.acct-card-title {
  margin: 0;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 400;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line-soft);
}

.acct-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.acct-avatar-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  border: 3px solid var(--line);
  background: rgba(255,254,250,0.9);
  color: var(--gold-dark);
  overflow: hidden;
}

.acct-avatar-circle .acct-avatar-photo { width: 100%; height: 100%; object-fit: cover; }
.acct-avatar-circle .acct-avatar-img { width: 82%; height: 82%; object-fit: contain; }

.acct-ghost-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.acct-ghost-btn:hover { background: rgba(169,142,69,0.08); }
.acct-ghost-muted { color: var(--muted); }

.acct-avatar-picker {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 2px solid var(--line-soft);
  border-radius: 18px;
  background: rgba(249,244,234,0.6);
}

.acct-picker-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acct-avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.acct-avatar-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 6px;
  border: 2px solid var(--line-soft);
  border-radius: 14px;
  background: rgba(255,254,250,0.9);
  color: var(--gold-dark);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.65rem;
  color: var(--muted);
}
.acct-avatar-option:hover { border-color: var(--line); background: rgba(255,254,250,1); }
.acct-avatar-option.selected { border-color: var(--gold-dark); background: rgba(239,225,182,0.4); }
.acct-avatar-option svg { color: var(--gold-dark); }
.acct-avatar-option img { width: 100%; height: auto; object-fit: contain; }

.acct-upload-label { cursor: pointer; }

.acct-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.acct-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.acct-field label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.acct-field input {
  padding: 9px 14px;
  border: 2px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255,254,250,0.9);
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 0.15s;
}
.acct-field input:focus { outline: none; border-color: var(--line); }

.acct-field-static {
  margin: 0;
  padding: 9px 14px;
  border: 2px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(245,242,235,0.6);
  color: var(--muted);
  font-size: 0.88rem;
}

.acct-feedback {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.8rem;
}

.acct-loading { margin: 0; color: var(--muted); font-size: 0.88rem; }

.acct-sub-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.acct-sub-name {
  margin: 0 0 3px;
  color: var(--gold-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
}

.acct-sub-desc { margin: 0; color: var(--muted); font-size: 0.82rem; }

.acct-sub-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.acct-sub-active     { background: rgba(39,174,96,0.12); color: #1a7a42; border: 1.5px solid rgba(39,174,96,0.3); }
.acct-sub-inactive   { background: rgba(150,150,150,0.1); color: var(--muted); border: 1.5px solid var(--line-soft); }
.acct-sub-cancelling { background: rgba(201,130,40,0.1); color: #a06010; border: 1.5px solid rgba(201,130,40,0.3); }

.acct-sub-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.acct-sub-end-date {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.acct-sub-cancelling-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.acct-sub-resubscribe {
  font-size: 0.8rem;
  color: var(--gold-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.acct-sub-cta { margin-top: 4px; align-self: flex-start; }

.acct-sub-cancel-btn {
  background: none;
  border: none;
  padding: 0;
  margin-top: 12px;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: block;
  transition: color 150ms;
}
.acct-sub-cancel-btn:hover { color: #b94040; }
.acct-sub-cancel-btn:disabled { opacity: 0.5; cursor: default; text-decoration: none; }

.acct-danger-card { border-color: rgba(192,57,43,0.25); }
.acct-danger-title { color: #b03a2e; border-bottom-color: rgba(192,57,43,0.2); }

.acct-danger-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.acct-danger-row--border {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(192, 57, 43, 0.15);
}

.acct-danger-label {
  margin: 0 0 6px;
  color: #b03a2e;
  font-weight: 650;
  font-size: 0.88rem;
}

.acct-danger-desc { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.6; }

.acct-danger-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border: 2px solid rgba(192,57,43,0.4);
  border-radius: 999px;
  background: rgba(192,57,43,0.06);
  color: #b03a2e;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.acct-danger-btn:hover:not(:disabled) { background: rgba(192,57,43,0.12); border-color: rgba(192,57,43,0.6); }
.acct-danger-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.acct-signout-btn {
  align-self: center;
  padding: 8px 24px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.acct-signout-btn:hover { color: var(--gold-dark); border-color: var(--gold-dark); }

.acct-modal-row {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;
}

@media (max-width: 560px) {
  .acct-avatar-grid { grid-template-columns: repeat(4, 1fr); }
  .acct-danger-row { flex-direction: column; }
  .acct-danger-btn { align-self: flex-start; }
}

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

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 18px;
  min-width: 56px;
}

.typing-indicator span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-dark);
  opacity: 0.5;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30%            { transform: translateY(-5px); opacity: 1; }
}

@media (max-width: 520px) {
  .modal-card { padding: 28px 20px 24px; }
  .paywall-plans { grid-template-columns: 1fr; }
}

/* ── Floating chat widget ────────────────────────────────────── */
.fchat {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.fchat[hidden] { display: none; }

/* Toggle button (bottom-right) */
.fchat-toggle-wrap {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  pointer-events: auto;
}

.fchat-shine {
  position: absolute;
  width: 128px;
  height: auto;
  left: calc(28px - 128px * 0.74);
  top: calc(28px - 128px * 0.75);
  pointer-events: none;
  opacity: 0.9;
  transform-origin: 74% 75%;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

.fchat.open .fchat-shine {
  transform: scale(0);
  opacity: 0;
}

.fchat-toggle {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, #efe1b6, #d9c47a);
  color: var(--gold-dark);
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(134, 116, 49, 0.28);
  transition: transform 0.15s, box-shadow 0.15s;
}

.fchat-toggle:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 36px rgba(134, 116, 49, 0.38);
}

.fchat-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Panel */
.fchat-panel {
  position: absolute;
  display: none;
  flex-direction: column;
  border: 3px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 254, 250, 0.97);
  box-shadow: 0 24px 70px rgba(134, 116, 49, 0.22);
  overflow: hidden;
  pointer-events: auto;
  min-width: 280px;
  min-height: 320px;
}

.fchat.open .fchat-panel { display: flex; }

.fchat-panel.is-fullscreen {
  border-radius: 0 !important;
}

/* Header — drag handle */
.fchat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 12px;
  border-bottom: 2px solid var(--line-soft);
  border-radius: 17px 17px 0 0;
  background: rgba(251, 245, 231, 0.9);
  cursor: move;
  user-select: none;
  flex-shrink: 0;
}

.fchat-modes {
  display: flex;
  gap: 6px;
}

.fchat-mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border: 2px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms, color 180ms, border-color 180ms, box-shadow 180ms;
}

.fchat-mode-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.fchat-mode[data-mode="jesus"] .fchat-mode-icon {
  -webkit-mask-image: url(assets/illustrator/avatars/cross.svg);
  mask-image: url(assets/illustrator/avatars/cross.svg);
}

.fchat-mode[data-mode="god"] .fchat-mode-icon {
  -webkit-mask-image: url(assets/illustrator/avatars/crown.svg);
  mask-image: url(assets/illustrator/avatars/crown.svg);
}

.fchat-mode:hover:not(.active) {
  border-color: var(--line);
  color: var(--gold-dark);
}

/* Jesus — logo gold outline on white (matches God button) */
.fchat-mode[data-mode="jesus"] {
  background: #fff;
  border-color: #b39863;
  color: #b39863;
}

.fchat-mode[data-mode="jesus"]:hover:not(.active) {
  background: #fff;
  border-color: #8a7040;
  color: #8a7040;
}

.fchat-mode[data-mode="jesus"].active {
  background: #fff;
  border-color: #b39863;
  color: #7a5a18;
  box-shadow: 0 2px 12px rgba(179, 152, 99, 0.35);
}

/* God — logo gold outline on white */
.fchat-mode[data-mode="god"] {
  padding: 5px 16px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  background: #fff;
  border-color: #b39863;
  color: #b39863;
}

.fchat-mode[data-mode="god"]:hover:not(.active) {
  background: #fff;
  border-color: #8a7040;
  color: #8a7040;
}

.fchat-mode[data-mode="god"].active {
  background: #fff;
  border-color: #b39863;
  color: #7a5a18;
  box-shadow: 0 2px 12px rgba(179, 152, 99, 0.35);
}

.fchat-header-btns {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fchat-hbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid var(--line-soft);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  padding: 0;
  overflow: hidden;
}

.fchat-hbtn:hover { background: var(--cream-soft); color: var(--gold-dark); }
.fchat-hbtn svg { display: block; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Chat window — grows to fill available space */
.fchat-window {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 0;
  overflow-y: auto;
  padding: 14px;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95), transparent 16%),
    linear-gradient(180deg, rgba(223, 243, 251, 0.68), rgba(251, 245, 231, 0.86));
}

.fchat-window::-webkit-scrollbar { width: 5px; }
.fchat-window::-webkit-scrollbar-track { background: transparent; }
.fchat-window::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
.fchat-window .message { font-size: 0.85rem; width: fit-content; max-width: 88%; }

/* Compose bar */
.fchat-compose {
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 8px;
  padding: 10px;
  border-top: 2px solid var(--line-soft);
  border-radius: 0 0 17px 17px;
  background: rgba(255, 254, 250, 0.9);
  flex-shrink: 0;
}

.fchat-compose input {
  min-width: 0;
  min-height: 36px;
  padding: 0 12px;
  border: 2px solid var(--line-soft);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
}

.fchat-compose input:focus { outline: none; border-color: var(--line); }
.fchat-compose input[type="search"]::-webkit-search-cancel-button,
.fchat-compose input[type="search"]::-webkit-search-decoration { display: none; }

.fchat-compose button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #efe1b6;
  color: var(--gold-dark);
  cursor: pointer;
}

.fchat-compose button svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Resize handles */
.fchat-resize {
  position: absolute;
  z-index: 10;
}
.fchat-resize[data-dir="n"]  { top: -4px;    left: 16px;  right: 16px; height: 8px;  cursor: n-resize; }
.fchat-resize[data-dir="s"]  { bottom: -4px; left: 16px;  right: 16px; height: 8px;  cursor: s-resize; }
.fchat-resize[data-dir="e"]  { right: -4px;  top: 16px;   bottom: 16px; width: 8px;  cursor: e-resize; }
.fchat-resize[data-dir="w"]  { left: -4px;   top: 16px;   bottom: 16px; width: 8px;  cursor: w-resize; }
.fchat-resize[data-dir="ne"] { top: -4px;    right: -4px; width: 16px; height: 16px; cursor: ne-resize; }
.fchat-resize[data-dir="nw"] { top: -4px;    left: -4px;  width: 16px; height: 16px; cursor: nw-resize; }
.fchat-resize[data-dir="se"] { bottom: -4px; right: -4px; width: 16px; height: 16px; cursor: se-resize; }
.fchat-resize[data-dir="sw"] { bottom: -4px; left: -4px;  width: 16px; height: 16px; cursor: sw-resize; }

.fchat-panel.is-fullscreen .fchat-resize { display: none; }
.fchat-panel.is-fullscreen .fchat-header { border-radius: 0; }
.fchat.is-fullscreen .fchat-toggle-wrap { display: none; }

/* ── Mobile chat overrides ───────────────────────────────────── */
@media (hover: none) and (pointer: coarse) {

  /* Auto-fullscreen — panel fills the visual viewport */
  .fchat.open .fchat-panel {
    border-radius: 0 !important;
    border: none;
  }

  /* Resize handles have no place on touch */
  .fchat-resize { display: none; }

  /* Fullscreen + reset buttons are redundant on mobile */
  #fchat-fullscreen,
  #fchat-reset-size { display: none; }

  /* Compose bar sits above the iOS home indicator */
  .fchat-compose {
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    border-radius: 0;
  }

  /* Larger tap targets for mode buttons */
  .fchat-mode {
    padding: 7px 18px;
    font-size: 0.85rem;
  }

  /* Slightly taller input on mobile for easier typing */
  .fchat-compose input {
    min-height: 42px;
    font-size: 1rem;
  }

  .fchat-compose button {
    width: 42px;
    height: 42px;
  }
}
