/* WuXing Care — shared site styles
   Brand: five elements, paper ground, Cormorant + Outfit */

:root {
  --wood: #6b9a72;
  --fire: #c87858;
  --earth: #b89562;
  --metal: #8a9aad;
  --water: #5a94a8;
  --ink: #1e2a24;
  --ink-soft: #3d4f47;
  --ink-faint: #6a7d74;
  --paper: #f5f2eb;
  --paper-deep: #ebe6dc;
  --glass: rgba(255, 255, 255, 0.72);
  --line: rgba(30, 42, 36, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.25rem;
  --max: 1100px;
  --page-gutter: 1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  /* Site is light-only for now; don't follow OS dark mode (e.g. Turnstile). */
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: "Outfit", "Noto Sans Arabic", "Segoe UI", system-ui, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* ── Ambient canvas ── */
.canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.62;
  animation: drift 22s var(--ease-out) infinite alternate;
}

.orb--wood {
  width: 55vw;
  height: 55vw;
  max-width: 520px;
  max-height: 520px;
  background: radial-gradient(circle, var(--wood) 0%, transparent 70%);
  top: -12%;
  inset-inline-start: -8%;
  animation-duration: 26s;
}

.orb--fire {
  width: 45vw;
  height: 45vw;
  max-width: 420px;
  max-height: 420px;
  background: radial-gradient(circle, var(--fire) 0%, transparent 70%);
  top: 8%;
  inset-inline-end: -10%;
  animation-duration: 19s;
  animation-delay: -4s;
}

.orb--water {
  width: 50vw;
  height: 50vw;
  max-width: 480px;
  max-height: 480px;
  background: radial-gradient(circle, var(--water) 0%, transparent 70%);
  bottom: -15%;
  inset-inline-start: 20%;
  animation-duration: 24s;
  animation-delay: -8s;
}

.orb--earth {
  width: 35vw;
  height: 35vw;
  max-width: 340px;
  max-height: 340px;
  background: radial-gradient(circle, var(--earth) 0%, transparent 70%);
  bottom: 10%;
  inset-inline-end: 15%;
  animation-duration: 21s;
  animation-delay: -2s;
}

@keyframes drift {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(4%, 6%) scale(1.08);
  }
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Shell ── */
.site {
  position: relative;
  z-index: 2;
}

/* ── i18n load guard ──
   Before assets/js/i18n.js applies strings, every [data-i18n] element is
   truly empty, so its box collapses (cards/buttons look tiny and blank).
   Hide the real content until it's ready and fade it in, so a slow first
   fetch shows a blank canvas instead of that flash. */
.site,
.confirm-shell {
  opacity: 1;
  transition: opacity 0.25s var(--ease-out);
}

body:not(.i18n-ready) .site,
body:not(.i18n-ready) .confirm-shell {
  opacity: 0;
  pointer-events: none;
}

.wrap {
  width: min(100% - (2 * var(--page-gutter)), var(--max));
  margin-inline: auto;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(245, 242, 235, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out);
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - (2 * var(--page-gutter)), var(--max));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  text-decoration: none;
  color: var(--ink);
  /* English brand name — never reverse under RTL page dir */
  direction: ltr;
  unicode-bidi: isolate;
}

.nav__brand-group {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  min-width: 0;
}

.brand__mark {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand__care {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 1.1rem;
  color: var(--ink-soft);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav__link {
  display: none;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.35rem 0.55rem;
  transition: color 0.25s var(--ease-out);
}

.nav__link:hover {
  color: var(--ink);
}

/* Desktop only: next to brand; margin keeps the menu cluster pinned to the end */
.nav__session-logout {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: #8a4a34;
  cursor: pointer;
  padding: 0.35rem 0.55rem;
  margin-inline-start: 0.85rem;
  margin-inline-end: auto;
  flex-shrink: 0;
  transition: color 0.25s var(--ease-out);
}

.nav__session-logout:hover,
.nav__session-logout:focus-visible {
  color: #6e3a28;
}

@media (min-width: 720px) {
  .nav__session-logout {
    display: inline;
  }
}

/* Staging marker in sticky header — display only (env is set at deploy time) */
.nav__env-badge,
.nav-drawer__env-badge {
  display: inline-flex;
  align-items: center;
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #8a4a34;
  border: 1px solid rgba(138, 74, 52, 0.45);
  border-radius: 999px;
  padding: 0.22rem 0.45rem;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.nav-drawer__env-badge {
  margin: 0.5rem 0;
  align-self: flex-start;
}

@media (max-width: 719px) {
  /* Physical LTR chrome: hamburger · language · gap · staging · logo */
  .nav__inner {
    direction: ltr;
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .nav__brand-group,
  .nav__actions {
    display: contents;
  }

  .nav__burger {
    order: 1;
  }

  .nav__brand-group .lang-menu,
  .lang-menu {
    order: 2;
  }

  .nav__env-badge {
    order: 3;
    margin-inline-start: auto;
    display: inline-flex;
    font-size: 0.52rem;
    letter-spacing: 0.08em;
    padding: 0.18rem 0.38rem;
  }

  .brand {
    order: 4;
  }

  .nav__inner:not(:has(.nav__env-badge)) .brand {
    margin-inline-start: auto;
  }

  .brand__mark {
    font-size: 1.25rem;
  }

  .brand__care {
    font-size: 0.95rem;
  }

  .lang-menu__btn {
    padding: 0.35rem 0.55rem;
    font-size: 0.78rem;
  }

  /* Open language list to the right so it stays inside the viewport
     (end-aligned menus near the left edge were causing a horizontal nudge). */
  .lang-menu__list {
    inset-inline-start: 0;
    inset-inline-end: auto;
    min-width: 8.75rem;
    max-width: calc(100vw - 2 * var(--page-gutter));
  }
}

html {
  overflow-x: clip;
}

.nav__burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition:
    background 0.25s var(--ease-out),
    border-color 0.25s var(--ease-out);
}

.nav__burger span {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--ink);
  border-radius: 1px;
  transition:
    transform 0.3s var(--ease-out),
    opacity 0.25s var(--ease-out);
  transform-origin: center;
}

.nav__burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.nav__burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav__burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

@media (min-width: 720px) {
  .nav__link {
    display: inline;
  }

  .nav__burger {
    display: none;
  }
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(30, 42, 36, 0.35);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease-out),
    visibility 0.3s var(--ease-out);
}

.nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.nav-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  inset-inline-start: 0;
  z-index: 50;
  width: min(18.5rem, 86vw);
  padding: 1.35rem 1.25rem 1.75rem;
  background: rgba(245, 242, 235, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-inline-end: 1px solid var(--line);
  box-shadow: 12px 0 40px rgba(30, 42, 36, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transform: translateX(-105%);
  transition: transform 0.35s var(--ease-out);
}

html[dir="rtl"] .nav-drawer {
  transform: translateX(105%);
  box-shadow: -12px 0 40px rgba(30, 42, 36, 0.1);
}

.nav-drawer.is-open {
  transform: translateX(0);
}

html[dir="rtl"] .nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.nav-drawer__link {
  display: block;
  padding: 0.85rem 0.35rem;
  font-size: 1.05rem;
  font-weight: 300;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 1px solid rgba(30, 42, 36, 0.06);
  transition: color 0.2s var(--ease-out);
}

.nav-drawer__link:hover,
.nav-drawer__link:focus-visible {
  color: var(--ink);
}

.nav-drawer__lang {
  margin-top: auto;
  padding-top: 1.25rem;
}

.nav-drawer__logout {
  appearance: none;
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  padding: 0.95rem 0.35rem 0.35rem;
  border: 0;
  border-top: 1px solid rgba(138, 74, 52, 0.22);
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 300;
  text-align: start;
  color: #8a4a34;
  cursor: pointer;
  transition: color 0.2s var(--ease-out);
}

.nav-drawer__logout:hover,
.nav-drawer__logout:focus-visible {
  color: #6e3a28;
}

body.nav-open {
  overflow: hidden;
}

@media (min-width: 720px) {
  .nav-backdrop,
  .nav-drawer {
    display: none !important;
  }
}

.lang-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-menu__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.4rem 0.7rem;
  border-radius: 0.55rem;
  cursor: pointer;
  transition:
    border-color 0.2s var(--ease-out),
    background 0.2s var(--ease-out),
    color 0.2s var(--ease-out);
}

.lang-menu__btn:hover,
.lang-menu.is-open .lang-menu__btn {
  border-color: color-mix(in srgb, var(--ink) 28%, var(--line));
  background: rgba(255, 255, 255, 0.85);
}

.lang-menu__current {
  line-height: 1;
  display: block;
}

.lang-menu__chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 0;
  opacity: 0.55;
  transition: transform 0.2s var(--ease-out);
}

.lang-menu__chev svg {
  display: block;
}

.lang-menu.is-open .lang-menu__chev {
  transform: rotate(180deg);
}

.lang-menu__list {
  position: absolute;
  top: calc(100% + 0.4rem);
  inset-inline-end: 0;
  min-width: 9.5rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(28, 24, 20, 0.08);
  z-index: 40;
}

.lang-menu__list button {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 400;
  text-align: start;
  color: var(--ink);
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  cursor: pointer;
  transition: background 0.18s var(--ease-out);
}

.lang-menu__list button:hover {
  background: color-mix(in srgb, var(--ink) 6%, transparent);
}

.lang-menu__list button.is-active {
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  font-weight: 500;
}

.nav-drawer__lang .lang-menu {
  width: 100%;
}

.nav-drawer__lang .lang-menu__btn {
  width: 100%;
  justify-content: space-between;
}

.nav-drawer__lang .lang-menu__list {
  inset-inline: 0;
  min-width: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  text-decoration: none;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  cursor: pointer;
  transition:
    transform 0.3s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    background 0.3s var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(30, 42, 36, 0.14);
}

.btn--ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: rgba(107, 154, 114, 0.55);
  background: rgba(255, 255, 255, 0.85);
}

.btn--soon {
  color: var(--ink-soft);
  background: rgba(30, 42, 36, 0.06);
  border-color: transparent;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.btn--soon:hover {
  transform: none;
  box-shadow: none;
}

.coming-soon-banner {
  position: relative;
  z-index: 5;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  text-align: center;
  background: rgba(107, 154, 114, 0.14);
  border-bottom: 1px solid rgba(107, 154, 114, 0.28);
  color: var(--ink-soft);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.coming-soon-banner p {
  max-width: var(--max);
  margin: 0 auto;
}

.coming-soon-auth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.coming-soon-auth .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  pointer-events: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: calc(100dvh - var(--nav-h) - 10rem);
  display: grid;
  align-items: center;
  padding: 1.1rem 0 1.75rem;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  html[dir="rtl"] .hero__grid {
    grid-template-columns: 0.95fr 1.05fr;
  }

  html[dir="rtl"] .hero__copy {
    order: 2;
  }

  html[dir="rtl"] .hero__visual {
    order: 1;
  }
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.1rem;
  animation: rise 1s var(--ease-out) 0.1s both;
}

.hero__brand {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(3.2rem, 11vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  animation: rise 1s var(--ease-out) 0.2s both;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

html[dir="rtl"] .hero__brand {
  text-align: right;
}

.hero__brand span {
  display: block;
  font-style: italic;
  font-size: 0.62em;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-top: 0.12em;
}

.hero__verse {
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.35rem, 3.6vw, 1.85rem);
  letter-spacing: 0.28em;
  color: var(--wood);
  margin: 0.15rem 0 0.35rem;
  animation: rise 1s var(--ease-out) 0.28s both, verseGlow 5.5s ease-in-out 1.2s infinite alternate;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

html[dir="rtl"] .hero__verse {
  text-align: right;
}

.hero__verse-gloss {
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 1.15rem;
  animation: rise 1s var(--ease-out) 0.32s both;
}

@keyframes verseGlow {
  from { opacity: 0.78; }
  to { opacity: 1; }
}

.hero__headline {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.35rem, 3.4vw, 1.75rem);
  line-height: 1.35;
  color: var(--ink);
  max-width: 22ch;
  margin-bottom: 0.9rem;
  animation: rise 1s var(--ease-out) 0.38s both;
}

.hero__support {
  font-size: 1.02rem;
  color: var(--ink-soft);
  max-width: 36ch;
  margin-bottom: 1.75rem;
  animation: rise 1s var(--ease-out) 0.45s both;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 1s var(--ease-out) 0.55s both;
}

.hero__visual {
  display: grid;
  place-items: center;
  animation: rise 1.1s var(--ease-out) 0.25s both;
}

.ring {
  position: relative;
  width: min(72vw, 300px);
  height: min(72vw, 300px);
  animation: spin 90s linear infinite;
}

.ring__halo {
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(107, 154, 114, 0.22) 0%,
    rgba(184, 149, 98, 0.08) 42%,
    transparent 70%
  );
  animation: haloPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes haloPulse {
  from { transform: scale(0.94); opacity: 0.55; }
  to { transform: scale(1.06); opacity: 1; }
}

@media (min-width: 900px) {
  .ring {
    width: 340px;
    height: 340px;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.ring svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.ring-track {
  fill: none;
  stroke: rgba(30, 42, 36, 0.14);
  stroke-width: 1;
}

.ring-cycle {
  fill: none;
  stroke: url(#cycleGrad);
  stroke-width: 1.4;
  stroke-dasharray: 6 10;
  opacity: 0.88;
}

.node {
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 15px;
  fill: var(--ink-soft);
}

.node-label {
  font-family: "Outfit", sans-serif;
  font-weight: 200;
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  fill: var(--ink-faint);
}

/* ── Elements marquee ── */
.elements-band {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.4);
  padding: 0.85rem 0;
}

.elements-band__track {
  display: flex;
  width: max-content;
  gap: 2.75rem;
  animation: marquee 38s linear infinite;
  padding-inline: 1.5rem;
}

.el {
  display: inline-flex;
  align-items: baseline;
  gap: 0.55rem;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
  white-space: nowrap;
}

.el b {
  font-family: "Noto Serif SC", serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0;
  text-transform: none;
}

.el--wood b { color: var(--wood); }
.el--fire b { color: var(--fire); }
.el--earth b { color: var(--earth); }
.el--metal b { color: var(--metal); }
.el--water b { color: var(--water); }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

html[dir="rtl"] .elements-band__track {
  animation-name: marqueeRtl;
}

@keyframes marqueeRtl {
  to { transform: translateX(50%); }
}

/* ── Ritual / journey ── */
.ritual {
  list-style: none;
  display: grid;
  gap: 0.25rem;
  margin-top: 2.25rem;
  max-width: 40rem;
}

.ritual__step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.ritual__step:last-child {
  border-bottom: none;
}

.ritual__num {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 1.65rem;
  letter-spacing: 0.06em;
  color: var(--wood);
  line-height: 1;
  padding-top: 0.15rem;
}

.ritual__step h3 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.ritual__step p {
  color: var(--ink-soft);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* ── Atmosphere verse band ── */
.verse-band {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(107, 154, 114, 0.16), transparent 55%),
    radial-gradient(ellipse at 80% 60%, rgba(90, 148, 168, 0.14), transparent 50%),
    linear-gradient(180deg, rgba(245, 242, 235, 0.2), rgba(235, 230, 220, 0.55));
  border-block: 1px solid var(--line);
  text-align: center;
}

.verse-band__inner {
  max-width: 36rem;
  margin: 0 auto;
}

.verse-band__zh {
  font-family: "Noto Serif SC", serif;
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.35rem);
  letter-spacing: 0.32em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.verse-band__gloss {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.25rem;
}

.verse-band__text {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ── Scroll reveal ── */
.reveal,
.reveal-child {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-in,
.reveal-child.is-in {
  opacity: 1;
  transform: none;
}

/* ── Sections ── */
.section {
  padding: 4.5rem 0;
  position: relative;
}

.section--tint {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.35) 0%,
    rgba(235, 230, 220, 0.45) 100%
  );
  border-block: 1px solid var(--line);
}

.section__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  max-width: 18ch;
}

.section__lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 42ch;
  margin-bottom: 2rem;
}

.cards {
  display: grid;
  gap: 1rem;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  padding: 1.35rem 1.25rem;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(30, 42, 36, 0.08);
  border-color: rgba(107, 154, 114, 0.35);
}

.card__glyph {
  font-family: "Noto Serif SC", "Cormorant Garamond", serif;
  font-size: 1.5rem;
  color: var(--wood);
  margin-bottom: 0.65rem;
  line-height: 1;
  transition: transform 0.45s var(--ease-out);
}

.card:hover .card__glyph {
  transform: scale(1.08);
}

.card:nth-child(2) .card__glyph {
  color: var(--fire);
}
.card:nth-child(3) .card__glyph {
  color: var(--water);
}

.card__title {
  font-size: 1.05rem;
  font-weight: 400;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.card__text {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.trust {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .trust {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line);
}

.trust__dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--wood);
  box-shadow: 0 0 0 4px rgba(107, 154, 114, 0.15);
}

.trust__item:nth-child(2) .trust__dot {
  background: var(--water);
  box-shadow: 0 0 0 4px rgba(90, 148, 168, 0.15);
}
.trust__item:nth-child(3) .trust__dot {
  background: var(--earth);
  box-shadow: 0 0 0 4px rgba(184, 149, 98, 0.15);
}
.trust__item:nth-child(4) .trust__dot {
  background: var(--metal);
  box-shadow: 0 0 0 4px rgba(138, 154, 173, 0.15);
}

.trust__text strong {
  display: block;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 0.15rem;
}

.trust__text span {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.cta-band {
  text-align: center;
  padding: 3.5rem 1.5rem;
  border-radius: 1.5rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.4))
      padding-box,
    linear-gradient(
      120deg,
      var(--wood),
      var(--fire),
      var(--earth),
      var(--metal),
      var(--water)
    )
      border-box;
  border: 1.5px solid transparent;
}

.cta-band h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.7rem, 3.5vw, 2.2rem);
  margin-bottom: 0.55rem;
}

.cta-band p {
  color: var(--ink-soft);
  margin-bottom: 1.35rem;
  max-width: 40ch;
  margin-inline: auto;
}

/* ── Footer ── */
.footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 2rem;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.footer__links a:hover {
  color: var(--ink);
}

.footer__copy {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}

/* ── Legal pages ── */
.legal-page {
  padding: 2rem 0 4rem;
}

.legal-banner {
  margin-bottom: 1.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(184, 149, 98, 0.12);
  border: 1px solid rgba(184, 149, 98, 0.35);
  font-size: 0.88rem;
  color: var(--ink-soft);
}

.legal-header {
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.45rem;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
}

.legal-body {
  max-width: 46rem;
}

.legal-body h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.35rem;
  margin: 1.85rem 0 0.65rem;
  color: var(--ink);
}

.legal-body h3 {
  font-size: 1.02rem;
  font-weight: 400;
  margin: 1.25rem 0 0.45rem;
  color: var(--ink-soft);
}

.legal-body p,
.legal-body li {
  font-size: 0.98rem;
  color: var(--ink-soft);
  margin-bottom: 0.7rem;
}

.legal-body ul,
.legal-body ol {
  padding-inline-start: 1.25rem;
  margin-bottom: 0.9rem;
}

.legal-body li {
  margin-bottom: 0.4rem;
}

.legal-body strong {
  font-weight: 400;
  color: var(--ink);
}

.legal-body a {
  color: var(--wood);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

/* ── Plans page ── */
.plans-hero {
  position: relative;
  padding: 2.5rem 0 2rem;
}

.plans-hero__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  max-width: 16ch;
}

.plans-hero__lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 40ch;
}

.cost-guide {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.15rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.55);
}

.cost-guide__title {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.cost-guide__rows {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

.cost-guide__row {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.cost-guide__row strong {
  font-weight: 400;
  color: var(--ink);
}

.plan-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

@media (min-width: 720px) {
  .plan-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .plan-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(10px);
  position: relative;
  transition: border-color 0.3s var(--ease-out), transform 0.35s var(--ease-out);
  box-shadow: inset 3px 0 0 0 color-mix(in srgb, var(--plan-accent, transparent) 55%, transparent);
}

html[dir="rtl"] .plan {
  box-shadow: inset -3px 0 0 0 color-mix(in srgb, var(--plan-accent, transparent) 55%, transparent);
}

.plan:hover {
  border-color: rgba(107, 154, 114, 0.4);
  transform: translateY(-3px);
}

.plan-grid.is-pending .plan__cta {
  pointer-events: none;
  cursor: wait;
}

.plan__cta--current,
.plan__cta--disabled {
  pointer-events: none;
  cursor: default;
}

.plan__cta--current:hover,
.plan__cta--disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn.plan__cta--current {
  color: #fff;
  background: color-mix(in srgb, var(--plan-accent, var(--wood)) 78%, transparent);
  border-color: color-mix(in srgb, var(--plan-accent, var(--wood)) 78%, transparent);
}

.plan__cta--disabled {
  color: var(--ink-faint);
  background: transparent;
  border-color: var(--line);
}

/* Distinct per-tier tints — light */
.plan--free {
  --plan-accent: #6b7280;
  background: linear-gradient(160deg, #fcfcfb 0%, #f1f2f3 100%);
  border-color: rgba(107, 114, 128, 0.22);
}

.plan--starter {
  --plan-accent: #b07a2e;
  background: linear-gradient(160deg, #fffdf9 0%, #f8edd9 100%);
  border-color: rgba(176, 122, 46, 0.22);
}

.plan--growth {
  --plan-accent: #3f7a4a;
  background: linear-gradient(160deg, #fafdfb 0%, #e4f1e6 100%);
  border-color: rgba(63, 122, 74, 0.24);
}

.plan--expert {
  --plan-accent: #1f5c8a;
  background: linear-gradient(160deg, #fafcfe 0%, #e2eef7 100%);
  border-color: rgba(31, 92, 138, 0.22);
}

.plan--clinic {
  --plan-accent: #0f766e;
  background: linear-gradient(160deg, #f9fdfc 0%, #def1ee 100%);
  border-color: rgba(15, 118, 110, 0.22);
}

.plan--enterprise {
  --plan-accent: #5b4b8a;
  background: linear-gradient(160deg, #fcfbfd 0%, #ece7f6 100%);
  border-color: rgba(91, 75, 138, 0.22);
}

.plan--featured {
  box-shadow:
    inset 3px 0 0 0 color-mix(in srgb, var(--plan-accent, transparent) 55%, transparent),
    0 14px 32px rgba(63, 122, 74, 0.12);
}

html[dir="rtl"] .plan--featured {
  box-shadow:
    inset -3px 0 0 0 color-mix(in srgb, var(--plan-accent, transparent) 55%, transparent),
    0 14px 32px rgba(63, 122, 74, 0.12);
}

.plan.plan--current {
  z-index: 1;
  border-color: var(--plan-accent, var(--wood));
  box-shadow:
    inset 3px 0 0 0 var(--plan-accent, var(--wood)),
    0 0 0 2px color-mix(in srgb, var(--plan-accent, var(--wood)) 45%, #fff),
    0 12px 28px color-mix(in srgb, var(--plan-accent, var(--wood)) 18%, transparent);
}

html[dir="rtl"] .plan.plan--current {
  box-shadow:
    inset -3px 0 0 0 var(--plan-accent, var(--wood)),
    0 0 0 2px color-mix(in srgb, var(--plan-accent, var(--wood)) 45%, #fff),
    0 12px 28px color-mix(in srgb, var(--plan-accent, var(--wood)) 18%, transparent);
}

.plan.plan--current:hover {
  transform: translateY(-3px);
  border-color: var(--plan-accent, var(--wood));
}

.plan--current .plan__badge:not(.plan__badge--current) {
  display: none;
}

.plan__badge--current {
  background: var(--plan-accent, var(--wood));
  color: #fff;
  border-color: transparent;
}

.plan--featured .plan__badge {
  background: rgba(255, 255, 255, 0.85);
}

.plan__badge {
  position: absolute;
  top: 0.9rem;
  inset-inline-end: 0.9rem;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--plan-accent, var(--wood));
  border: 1px solid color-mix(in srgb, var(--plan-accent, var(--wood)) 40%, transparent);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  background: rgba(255, 255, 255, 0.72);
}

.plan__head {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.plan__name {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.55rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}

.plan__price {
  font-size: 1.65rem;
  font-weight: 300;
  color: var(--plan-accent, var(--ink));
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.plan__period {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-inline-start: 0.15rem;
}

.plan__credits {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--plan-accent, var(--wood));
}

.plan__features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.25rem;
}

.plan__features li {
  position: relative;
  padding-inline-start: 1.15rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.plan__features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--plan-accent, var(--wood));
  opacity: 0.75;
}

.plan__cta {
  width: 100%;
  text-align: center;
}

.pack-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.5rem;
}

@media (min-width: 640px) {
  .pack-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.pack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.55);
}

.pack__credits {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pack__label {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin: 0.2rem 0 0.75rem;
}

.pack__price {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  color: var(--ink);
}

.pack__cta {
  margin-top: auto;
}

/* Confirm page card */
.confirm-shell {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 2;
}

.confirm-card {
  width: min(100%, 26rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1.5px solid rgba(107, 154, 114, 0.25);
  border-radius: 1.25rem;
  padding: 2.25rem 1.75rem;
  box-shadow: 0 16px 40px rgba(30, 42, 36, 0.08);
}

.confirm-card h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 1.85rem;
  margin-bottom: 0.65rem;
}

.confirm-card p {
  color: var(--ink-soft);
  margin-bottom: 1.35rem;
}

/* ── Auth (login / signup / contact) ── */
.auth-shell {
  min-height: calc(100dvh - var(--nav-h));
  display: grid;
  justify-items: center;
  /* `safe` keeps the top of tall forms (e.g. contact) scrollable on mobile
     instead of clipping above the viewport when vertically centered. */
  align-content: safe center;
  align-items: start;
  padding: 2.5rem 1.25rem 3.5rem;
  position: relative;
  z-index: 2;
}

.auth-panel {
  width: min(100%, 26rem);
}

.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  font-weight: 300;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.auth-back::before {
  content: "←";
  font-size: 1rem;
  line-height: 1;
}

html[dir="rtl"] .auth-back::before {
  content: "→";
}

.auth-back:hover {
  color: var(--ink);
}

.auth-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 2.1rem 1.85rem;
  box-shadow: 0 16px 40px rgba(30, 42, 36, 0.08);
  backdrop-filter: blur(10px);
}

.auth-card__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.6rem;
}

.auth-card h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.auth-card__lead {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-bottom: 1.5rem;
}

.auth-card__lead a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.auth-card__lead a:hover {
  color: var(--wood);
}

.auth-form {
  text-align: start;
  position: relative;
}

.field--honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  inset-inline-start: 0;
}

.field {
  margin-bottom: 1rem;
  text-align: start;
}

.field label {
  display: block;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  font-family: inherit;
  /* 16px minimum — iOS Safari zooms focused inputs under 16px and often keeps that zoom. */
  font-size: 16px;
  touch-action: manipulation;
  color: var(--ink);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out);
}

.field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.5;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--wood);
  box-shadow: 0 0 0 3px rgba(107, 154, 114, 0.15);
}

.auth-form .btn {
  width: 100%;
  margin-top: 0.35rem;
}

/* Empty (no height) until TURNSTILE_SITE_KEY is set — renders itself once active.
   flex-direction: column (not the default row) so align-items: stretch (the
   default cross-axis behavior) gives the rendered widget a real, defined
   width matching .field input's 100% — a row-direction flex only centers
   children without stretching them, leaving Turnstile's "flexible" size
   with nothing concrete to be 100% of. */
.turnstile-widget:not(:empty) {
  margin-top: 0.65rem;
  display: flex;
  flex-direction: column;
}

.auth-forgot {
  display: block;
  text-align: end;
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-decoration: none;
  margin: -0.4rem 0 1.1rem;
  cursor: pointer;
  background: none;
  border: 0;
  font-family: inherit;
  width: 100%;
}

.auth-forgot:hover {
  color: var(--ink);
}

.auth-card--otp > .auth-card__lead {
  display: none;
}

/* Site web OTP — keep auth-card look; sage accents instead of all-black */
.login-otp__lead {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.login-otp__email {
  margin: 0 0 1.25rem;
  text-align: center;
}

.login-otp__email-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--wood) 28%, var(--line));
  background: color-mix(in srgb, var(--wood) 12%, rgba(255, 255, 255, 0.85));
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 400;
}

.login-otp__email-badge #login-otp-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 17rem;
}

.login-otp__mail-icon {
  flex-shrink: 0;
  color: var(--wood);
}

.login-otp__form .field--otp {
  margin-bottom: 1.05rem;
}

.login-otp__form .field--otp label {
  color: var(--ink-soft);
}

.login-otp__code {
  text-align: center;
  letter-spacing: 0.38em;
  font-size: 1.28rem !important;
  font-weight: 400;
  padding-block: 0.9rem !important;
}

.login-otp__code:focus {
  border-color: var(--wood);
  box-shadow: 0 0 0 3px rgba(107, 154, 114, 0.18);
}

.login-otp__submit {
  width: 100%;
  margin-top: 0.2rem;
  background: var(--wood) !important;
  border-color: var(--wood) !important;
  color: #fff !important;
}

.login-otp__submit:hover {
  background: color-mix(in srgb, var(--wood) 82%, #1e2a24) !important;
  border-color: color-mix(in srgb, var(--wood) 82%, #1e2a24) !important;
}

.login-otp__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.login-otp__link {
  display: inline-block;
  background: none;
  border: 0;
  padding: 0.15rem 0.35rem;
  margin: 0;
  font-family: inherit;
  font-size: 0.84rem;
  color: var(--wood);
  cursor: pointer;
  text-decoration: none;
}

.login-otp__link:hover:not(:disabled) {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.login-otp__link:disabled {
  cursor: default;
  opacity: 0.8;
  color: var(--ink-faint);
  text-decoration: none;
}

.login-otp__back {
  color: var(--ink-faint);
}

.login-otp__back:hover:not(:disabled) {
  color: var(--wood);
}

.login-otp__spam {
  margin: 1.1rem 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.auth-card__footer {
  margin-top: 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--ink-soft);
  text-align: center;
}

.auth-card__footer a {
  color: var(--wood);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.auth-card__fine {
  margin-top: 1.1rem;
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-align: center;
}

.auth-card__fine a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.form-message {
  font-size: 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.75rem;
  margin-bottom: 1.1rem;
  line-height: 1.45;
}

.form-message--error {
  background: rgba(200, 120, 88, 0.12);
  border: 1px solid rgba(200, 120, 88, 0.35);
  color: #8a4a34;
}

.form-message--success {
  background: rgba(107, 154, 114, 0.14);
  border: 1px solid rgba(107, 154, 114, 0.35);
  color: #3f6a48;
}

.form-message--info {
  background: rgba(90, 148, 168, 0.12);
  border: 1px solid rgba(90, 148, 168, 0.35);
  color: #2f5c6c;
}

.form-message[hidden] {
  display: none;
}

/* ── Account page ── */
.account-shell {
  padding: 2.5rem 0 4.5rem;
  min-height: calc(100dvh - var(--nav-h));
}

.account-header {
  margin-bottom: 1.75rem;
}

.account-shell .auth-back {
  margin-bottom: 1.15rem;
}

.account-header h1 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 300;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  margin-bottom: 0.35rem;
}

.account-header p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.account-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 780px) {
  .account-grid {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: start;
  }
}

.account-card {
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
}

.account-card h2 {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.account-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(30, 42, 36, 0.07);
}

.account-row:last-child {
  border-bottom: none;
}

.account-row__label {
  color: var(--ink-faint);
  font-size: 0.85rem;
}

.account-row__value {
  color: var(--ink);
  font-weight: 400;
  text-align: end;
}

.account-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.account-status::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--wood);
  flex-shrink: 0;
}

.account-status--past_due::before {
  background: var(--fire);
}

.account-status--canceled::before,
.account-status--free::before {
  background: var(--ink-faint);
}

.credits-breakdown {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 0.15rem 0 0.85rem;
  border-bottom: 1px solid rgba(30, 42, 36, 0.07);
}

.credits-breakdown__bar {
  display: flex;
  gap: 3px;
  height: 10px;
}

.credits-breakdown__seg {
  flex-basis: 0;
  min-width: 8px;
  height: 100%;
  border-radius: 3px;
}

.credits-breakdown__seg--plan { background: var(--wood); }
.credits-breakdown__seg--signup { background: var(--earth); }
.credits-breakdown__seg--admin { background: var(--water); }
.credits-breakdown__seg--pack { background: var(--metal); }

.credits-breakdown__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.credits-breakdown__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5ch 4.25ch;
  align-items: baseline;
  column-gap: 0.75rem;
  padding-inline-start: 0.7rem;
  border-inline-start: 3px solid var(--line);
}

.credits-breakdown__item--plan { border-inline-start-color: var(--wood); }
.credits-breakdown__item--signup { border-inline-start-color: var(--earth); }
.credits-breakdown__item--admin { border-inline-start-color: var(--water); }
.credits-breakdown__item--pack { border-inline-start-color: var(--metal); }

.credits-breakdown__label {
  color: var(--ink-faint);
  font-size: 0.8rem;
  min-width: 0;
}

.credits-breakdown__value,
.credits-breakdown__share {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: end;
}

.credits-breakdown__value {
  color: var(--ink);
  font-size: 0.9rem;
}

.credits-breakdown__share {
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.account-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.btn--danger {
  color: #8a4a34;
  background: rgba(200, 120, 88, 0.1);
  border-color: rgba(200, 120, 88, 0.3);
}

.btn--danger:hover {
  background: rgba(200, 120, 88, 0.18);
  border-color: rgba(200, 120, 88, 0.5);
}

/* ── Site confirm dialog (replaces window.confirm) ── */
.site-dialog {
  width: min(28rem, calc(100vw - 2 * var(--page-gutter)));
  max-height: calc(100dvh - 2 * var(--page-gutter));
  margin: auto;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
}

.site-dialog::backdrop {
  background: rgba(30, 42, 36, 0.38);
  backdrop-filter: blur(8px);
}

.site-dialog__panel {
  margin: 0;
  padding: 1.55rem 1.45rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 60px rgba(30, 42, 36, 0.18);
}

.site-dialog__title {
  font-family: "Cormorant Garamond", serif;
  font-weight: 400;
  font-size: 1.55rem;
  line-height: 1.25;
  margin: 0 0 0.65rem;
}

.site-dialog__body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.site-dialog__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.35rem;
}

.site-dialog__actions .btn {
  min-width: 7.5rem;
}

@media (max-width: 479px) {
  .site-dialog__actions {
    flex-direction: column-reverse;
  }

  .site-dialog__actions .btn {
    width: 100%;
  }
}

/* ── Mobile density ── */
@media (max-width: 719px) {
  :root {
    --nav-h: 3.75rem;
    /* Keep text off the screen edge (esp. RTL start / right side) */
    --page-gutter: max(1.25rem, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  }

  /* Home hero: stop forcing a full screen of empty space */
  .hero {
    min-height: 0;
    padding: 1.5rem 0 2rem;
    align-items: start;
  }

  .hero__grid {
    gap: 1.5rem;
  }

  .hero__copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__eyebrow,
  .hero__headline,
  .hero__support,
  .hero__verse-gloss {
    text-align: center;
  }

  .hero__brand,
  html[dir="rtl"] .hero__brand {
    text-align: center;
  }

  .hero__verse,
  html[dir="rtl"] .hero__verse {
    text-align: center;
  }

  .hero__headline,
  .hero__support {
    max-width: 28rem;
  }

  .hero__eyebrow {
    margin-bottom: 0.65rem;
    letter-spacing: 0.16em;
  }

  .hero__brand {
    font-size: clamp(2.55rem, 12vw, 3.4rem);
    margin-bottom: 0.55rem;
  }

  .hero__verse {
    font-size: 1.2rem;
    letter-spacing: 0.18em;
  }

  .hero__verse-gloss {
    font-size: 0.72rem;
    margin-bottom: 0.85rem;
  }

  .hero__headline {
    font-size: 1.25rem;
    margin-bottom: 0.65rem;
  }

  .hero__support {
    font-size: 0.95rem;
    margin-bottom: 1.15rem;
  }

  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    width: 100%;
    max-width: 20rem;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .ring {
    width: min(58vw, 220px);
    height: min(58vw, 220px);
  }

  /* Sections: cut the vertical air */
  .section {
    padding: 2.25rem 0;
  }

  .section__eyebrow {
    margin-bottom: 0.45rem;
    letter-spacing: 0.16em;
  }

  .section__title {
    font-size: clamp(1.55rem, 7vw, 2rem);
    margin-bottom: 0.5rem;
    max-width: none;
  }

  .section__lead {
    font-size: 0.95rem;
    max-width: none;
    margin-bottom: 1.15rem;
  }

  .cards {
    gap: 0.7rem;
  }

  .card {
    padding: 1rem 1rem;
    border-radius: 0.95rem;
  }

  .card__glyph {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }

  .trust {
    gap: 0.6rem;
  }

  .trust__item {
    padding: 0.85rem 0.9rem;
    gap: 0.7rem;
    border-radius: 0.85rem;
  }

  .cta-band {
    padding: 1.75rem 1.15rem;
    border-radius: 1.1rem;
  }

  .cta-band h2 {
    font-size: 1.45rem;
  }

  .cta-band p {
    font-size: 0.92rem;
    margin-bottom: 1rem;
  }

  .footer {
    padding: 1.5rem 0 1.35rem;
    margin-top: 0.5rem;
  }

  .footer__inner {
    gap: 0.85rem;
  }

  .footer__links {
    gap: 0.35rem 0.9rem;
  }

  /* Legal */
  .legal-page {
    padding: 1.25rem 0 2.5rem;
  }

  .legal-banner {
    margin-bottom: 1.15rem;
    padding: 0.75rem 0.9rem;
    font-size: 0.82rem;
  }

  .legal-header {
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
  }

  .legal-header h1 {
    font-size: clamp(1.7rem, 8vw, 2.2rem);
  }

  .legal-body h2 {
    font-size: 1.2rem;
    margin: 1.35rem 0 0.45rem;
  }

  .legal-body h3 {
    font-size: 0.98rem;
    margin: 1rem 0 0.35rem;
  }

  .legal-body p,
  .legal-body li {
    font-size: 0.92rem;
    margin-bottom: 0.55rem;
  }

  /* Plans */
  .plans-hero {
    padding: 1.5rem 0 1.15rem;
  }

  .plans-hero__title {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
    margin-bottom: 0.55rem;
    max-width: none;
  }

  .plans-hero__lead {
    font-size: 0.95rem;
    max-width: none;
  }

  .cost-guide {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
  }

  .cost-guide__rows {
    flex-direction: column;
    gap: 0.45rem;
  }

  .plan-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    margin-top: 0.85rem;
  }

  .plan {
    padding: 0.85rem 0.95rem 0.85rem;
    border-radius: 0.9rem;
  }

  .plan:hover {
    transform: none;
  }

  .plan.plan--current,
  .plan.plan--current:hover {
    transform: none;
  }

  .plan__badge {
    top: 0.65rem;
    inset-inline-end: 0.65rem;
    font-size: 0.62rem;
    padding: 0.15rem 0.45rem;
  }

  .plan__head {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "name price"
      "credits credits";
    column-gap: 0.75rem;
    align-items: baseline;
    margin-bottom: 0.55rem;
    padding-bottom: 0.55rem;
  }

  .plan--featured .plan__head {
    padding-inline-end: 4.5rem;
  }

  .plan__name {
    grid-area: name;
    font-size: 1.15rem;
    margin-bottom: 0;
  }

  .plan__price {
    grid-area: price;
    font-size: 1.15rem;
    text-align: end;
  }

  .plan__credits {
    grid-area: credits;
    margin-top: 0.2rem;
    font-size: 0.8rem;
  }

  .plan__features {
    margin-bottom: 0.7rem;
  }

  .plan__features li {
    margin-bottom: 0.25rem;
    font-size: 0.84rem;
    padding-inline-start: 1rem;
    line-height: 1.35;
  }

  .plan__features li::before {
    width: 0.32rem;
    height: 0.32rem;
    top: 0.45em;
  }

  .plan__cta {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }

  .pack-grid {
    gap: 0.7rem;
  }

  .pack {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.35rem 0.75rem;
    padding: 1rem 1.05rem;
  }

  .pack__credits {
    font-size: 1.85rem;
  }

  .pack__label {
    margin: 0;
    flex: 1;
  }

  .pack__price {
    margin-bottom: 0;
    min-width: 3rem;
  }

  .pack__cta {
    width: 100%;
    margin-top: 0.35rem;
  }

  .confirm-shell {
    padding: 1.5rem 1rem;
  }

  .confirm-card {
    padding: 1.75rem 1.25rem;
  }

  .auth-shell {
    padding: 1.5rem 1rem 2.5rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 1.1rem;
  }

  /* Contact form: tighter vertical rhythm so it fits a phone screen better */
  body[data-page="contact"] .auth-shell {
    padding: 1rem 1rem 1.75rem;
    min-height: auto;
  }

  body[data-page="contact"] .auth-back {
    margin-bottom: 0.55rem;
  }

  body[data-page="contact"] .auth-card {
    padding: 1.15rem 1.05rem 1.25rem;
  }

  body[data-page="contact"] .auth-card__eyebrow {
    margin-bottom: 0.35rem;
  }

  body[data-page="contact"] .auth-card h1 {
    font-size: 1.55rem;
    margin-bottom: 0.3rem;
  }

  body[data-page="contact"] .auth-card__lead {
    font-size: 0.85rem;
    margin-bottom: 0.85rem;
    line-height: 1.45;
  }

  body[data-page="contact"] .field {
    margin-bottom: 0.65rem;
  }

  body[data-page="contact"] .field label {
    margin-bottom: 0.22rem;
    font-size: 0.76rem;
  }

  body[data-page="contact"] .field input,
  body[data-page="contact"] .field textarea {
    padding: 0.55rem 0.75rem;
    font-size: 0.9rem;
  }

  body[data-page="contact"] .field textarea {
    min-height: 4.5rem;
  }

  body[data-page="contact"] .turnstile-widget:not(:empty) {
    margin-top: 0.4rem;
  }

  body[data-page="contact"] .auth-form .btn {
    margin-top: 0.2rem;
    padding: 0.65rem 1.1rem;
  }

  .account-shell {
    padding: 1.5rem 0 3rem;
  }

  .account-card {
    padding: 1.15rem 1.1rem;
    border-radius: 1rem;
  }
}

/* ── Checkout page ── */
.checkout-shell {
  padding: 1.5rem 0 3.5rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.checkout-summary {
  position: relative;
}

.checkout-summary__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.85rem, 3vw, 2.45rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.45rem;
}

.checkout-summary__verse {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 22em;
  margin-bottom: 1.15rem;
}

.checkout-seal {
  width: 4.4rem;
  height: 4.4rem;
  margin: 0 0 1.2rem;
  position: relative;
  display: grid;
  place-items: center;
}

.checkout-seal__glyph {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.7rem;
  color: var(--wood);
  z-index: 1;
}

.checkout-seal__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.45);
}

.checkout-summary[data-accent="wood"] .checkout-seal__glyph { color: var(--wood); }
.checkout-summary[data-accent="fire"] .checkout-seal__glyph { color: var(--fire); }
.checkout-summary[data-accent="earth"] .checkout-seal__glyph { color: var(--earth); }
.checkout-summary[data-accent="metal"] .checkout-seal__glyph { color: var(--metal); }
.checkout-summary[data-accent="water"] .checkout-seal__glyph { color: var(--water); }

.checkout-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.55rem;
}

.checkout-card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  padding: 1.15rem 1.2rem 1rem;
  backdrop-filter: blur(12px);
}

.checkout-card__name {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.checkout-card__credits {
  color: var(--ink-faint);
  font-size: 0.92rem;
  margin-top: 0.15rem;
}

.checkout-dl {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: 0.65rem;
}

.checkout-dl > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
}

.checkout-dl dt {
  color: var(--ink-faint);
  font-size: 0.82rem;
}

.checkout-dl dd {
  font-size: 0.92rem;
  text-align: end;
}

.checkout-dl__price {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 400;
}

.checkout-help {
  margin-top: 1.35rem;
  padding: 1rem 0 0;
}

.checkout-help__title {
  font-size: 0.95rem;
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.checkout-help__text {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.checkout-help__mail {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--wood);
  font-size: 0.92rem;
}

.checkout-help__link {
  display: inline-block;
  margin-inline-start: 0.75rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.checkout-secure {
  margin-top: 1.1rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.checkout-pay {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1rem 1rem 0.85rem;
  min-width: 0;
}

.checkout-pay__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.checkout-pay h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
}

.checkout-pay__fallback {
  font-size: 0.78rem;
  color: var(--ink-faint);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.checkout-pay__hint {
  color: var(--ink-faint);
  font-size: 0.85rem;
  margin-bottom: 0.7rem;
}

.checkout-pay__frame-wrap {
  position: relative;
  background: #fff;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid var(--line);
  min-height: 640px;
}

.checkout-pay__loading {
  padding: 2.5rem 1.25rem;
  text-align: center;
  color: var(--ink-faint);
}

.checkout-pay__iframe {
  display: block;
  width: 100%;
  height: 640px;
  border: 0;
  background: #fff;
}

@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-pay__iframe {
    height: min(70dvh, 720px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .ring,
  .ring__halo,
  .elements-band__track,
  .hero__verse {
    animation: none !important;
  }
  .reveal,
  .reveal-child {
    opacity: 1;
    transform: none;
  }
}
