:root {
  --background: #101113;
  --surface: #18191c;
  --surface-raised: #202125;
  --text: #f2f0ea;
  --text-secondary: #b3b0aa;
  --text-muted: #74736f;
  --primary: #f2f0ea;
  --accent: #c7a46a;
  --moon: #8096aa;
  --ember: #d2a35f;
  --hairline: rgba(242, 240, 234, 0.12);
  --glass: rgba(16, 17, 19, 0.74);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --slow: cubic-bezier(0.4, 0, 0.2, 1);
  --content: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--background); color-scheme: dark; scroll-behavior: smooth; }
body {
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; letter-spacing: 0; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
button:active, .quiet-command:active, .enter-button:active { transform: scale(0.98); }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: 0; text-wrap: balance; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Shared atmosphere: image, moving particles, light wash, vignette, grain. */
.atmosphere { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: var(--background); }
.atmosphere-image,
.atmosphere-wash,
.particle-field,
.atmosphere-vignette,
.atmosphere-grain { position: absolute; inset: 0; width: 100%; height: 100%; }
.atmosphere-image {
  background-image: url('../images/sleep-room-v4.avif');
  background-position: center;
  background-size: cover;
  opacity: 0.56;
  transform: scale(1.025);
  transition: transform 12s var(--slow), opacity 2s linear;
}
.atmosphere-wash {
  background:
    linear-gradient(180deg, rgba(8, 10, 13, 0.22), rgba(12, 12, 14, 0.18) 44%, rgba(8, 9, 11, 0.76)),
    linear-gradient(90deg, rgba(18, 26, 36, 0.36), transparent 48%, rgba(80, 48, 25, 0.12));
}
.particle-field { opacity: 0.7; }
.atmosphere-vignette { box-shadow: inset 0 0 180px 30px rgba(0, 0, 0, 0.54); }
.atmosphere-grain {
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

/* Threshold: first viewport contains only place, phrase, and one command. */
.home-body.is-at-threshold { height: 100svh; overflow: hidden; }
.threshold {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  background: rgba(8, 9, 11, 0.18);
  transition: opacity 1.2s var(--slow), visibility 1.2s;
}
.threshold-inner { width: min(100%, 560px); display: grid; justify-items: center; text-align: center; }
.threshold-brand { margin-bottom: 14svh; color: rgba(242, 240, 234, 0.72); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.breathing-light { width: 92px; height: 92px; position: relative; display: grid; place-items: center; }
.breathing-light::before,
.breathing-light::after,
.breathing-light span { content: ''; position: absolute; border-radius: 50%; }
.breathing-light::before { inset: 0; background: rgba(199, 164, 106, 0.08); filter: blur(1px); animation: breathe-halo 6s var(--slow) infinite; }
.breathing-light::after { inset: 28px; background: #dfc18c; box-shadow: 0 0 24px rgba(210, 163, 95, 0.72), 0 0 72px rgba(128, 150, 170, 0.34); animation: breathe-core 6s var(--slow) infinite; }
.breathing-light span { inset: 15px; border: 1px solid rgba(223, 193, 140, 0.22); animation: breathe-ring 6s var(--slow) infinite; }
.time-greeting { margin-top: 28px; color: var(--text-muted); font-size: 12px; }
.threshold h1 { max-width: 520px; margin-top: 8px; font-family: Iowan Old Style, Baskerville, Georgia, "Noto Serif", serif; font-size: 30px; font-weight: 400; }
.enter-button {
  min-width: 140px;
  min-height: 48px;
  margin-top: 36px;
  padding: 0 14px 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(242, 240, 234, 0.34);
  border-radius: 4px;
  background: rgba(16, 17, 19, 0.28);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  transition: background 350ms ease, border-color 350ms ease, transform 350ms var(--ease);
}
.enter-button:hover { background: rgba(242, 240, 234, 0.08); border-color: rgba(242, 240, 234, 0.6); }
.enter-mark { color: var(--ember); }
.home-body.is-entering .threshold { opacity: 0; visibility: hidden; }
.home-body.is-entering .breathing-light { transform: scale(6); opacity: 0; transition: transform 1.8s var(--slow), opacity 1.5s linear; }
.home-body.is-entering .atmosphere-image { transform: scale(1); opacity: 0.68; }

@keyframes breathe-halo { 0%, 100% { transform: scale(0.82); opacity: 0.35; } 50% { transform: scale(1.14); opacity: 0.86; } }
@keyframes breathe-core { 0%, 100% { transform: scale(0.86); opacity: 0.7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes breathe-ring { 0%, 100% { transform: scale(0.7); opacity: 0; } 50% { transform: scale(1.18); opacity: 1; } }

/* Main sanctuary. */
.sanctuary { position: relative; z-index: 2; opacity: 0; transition: opacity 1.2s linear; }
.home-body.has-entered .sanctuary { opacity: 1; }
.sanctuary-nav {
  width: 100%;
  min-height: calc(60px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(16, 17, 19, 0.78);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
}
.nav-brand { min-height: 48px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions > a { min-height: 48px; padding: 0 10px; display: inline-flex; align-items: center; color: var(--text-secondary); font-size: 12px; }
[data-language-switch] { min-width: 58px; min-height: 48px; padding: 0 20px 0 8px; border: 0; border-radius: 0; background-color: transparent; color: var(--text-secondary); font-size: 12px; }

.sanctuary-hero {
  min-height: calc(92svh - 60px);
  width: min(100%, var(--content));
  margin: 0 auto;
  padding: 88px 22px 54px;
  display: grid;
  align-content: center;
  gap: 56px;
}
.hero-copy { width: min(100%, 690px); }
.hero-kicker { margin-bottom: 12px; color: var(--ember); font-size: 12px; }
.sanctuary-hero h2 { font-family: Iowan Old Style, Baskerville, Georgia, "Noto Serif", serif; font-size: 54px; font-weight: 400; }
.hero-sub { max-width: 560px; margin-top: 18px; color: var(--text-secondary); font-family: Iowan Old Style, Baskerville, Georgia, "Noto Serif", serif; font-size: 21px; }
.quiet-command {
  min-height: 48px;
  margin-top: 34px;
  padding: 0 0 8px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 52px;
  border-bottom: 1px solid rgba(242, 240, 234, 0.42);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: border-color 300ms ease, color 300ms ease, transform 300ms var(--ease);
}
.quiet-command:hover { border-color: var(--ember); color: #fff; }
.privacy-line { margin-top: 16px; color: var(--text-muted); font-size: 11px; }
.hero-status { display: flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 11px; }
.hero-status strong { color: var(--text-secondary); font-weight: 500; }
.status-light { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--ember); box-shadow: 0 0 14px rgba(210, 163, 95, 0.76); }

.quiet-proof {
  min-height: 112px;
  padding: 28px 22px;
  display: grid;
  place-items: center;
  position: relative;
  background: rgba(16, 17, 19, 0.86);
  border-block: 1px solid var(--hairline);
  text-align: center;
  color: var(--text-secondary);
  font-size: 13px;
}
.stats-line { margin-top: 5px; color: var(--text-muted); font-size: 11px; }

.offerings-section { padding: 92px 20px 104px; position: relative; background: #141517; }
.section-heading { width: min(100%, 680px); margin: 0 auto 48px; text-align: center; }
.eyebrow { color: var(--ember); font-size: 10px; font-weight: 600; text-transform: uppercase; }
.section-heading h2, .inner-header h1 { margin-top: 12px; font-family: Iowan Old Style, Baskerville, Georgia, "Noto Serif", serif; font-size: 36px; font-weight: 400; }
.section-heading > p:last-child, .inner-header > p:last-child { margin-top: 14px; color: var(--text-secondary); font-size: 14px; }
.product-grid { width: min(100%, var(--content)); margin: 0 auto; display: grid; gap: 12px; }
.product-card {
  min-height: 282px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: #1a1b1e;
  transition: border-color 350ms ease, transform 500ms var(--ease), background 350ms ease;
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(210, 163, 95, 0.46); background: #1d1e21; }
.product-card.is-coming-soon { opacity: 0.68; cursor: default; }
.product-card.is-coming-soon:hover { transform: none; border-color: var(--hairline); background: #1a1b1e; }
.product-number { color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; }
.product-card h3 { margin-top: 26px; font-family: Iowan Old Style, Baskerville, Georgia, "Noto Serif", serif; font-size: 24px; font-weight: 400; }
.product-card p { margin-top: 12px; color: var(--text-secondary); font-size: 13px; }
.product-card-footer { margin-top: auto; padding-top: 26px; display: flex; align-items: end; justify-content: space-between; gap: 20px; border-top: 1px solid var(--hairline); }
.product-card-footer span { color: var(--text-muted); font-size: 10px; text-transform: uppercase; }
.product-card-footer strong { font-size: 18px; font-weight: 500; }
.product-card-footer i { color: var(--ember); font-style: normal; }

.support-band {
  padding: 74px 22px;
  display: grid;
  gap: 34px;
  position: relative;
  background: #ece7dc;
  color: #1a1a19;
}
.support-band > div, .support-band > a { width: min(100%, 680px); margin-inline: auto; }
.support-band .eyebrow { color: #7e5b27; }
.support-band h2 { margin-top: 10px; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 32px; font-weight: 400; }
.support-band p:last-child { margin-top: 12px; color: #62605b; font-size: 14px; }
.support-link { min-height: 62px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-block: 1px solid rgba(26, 26, 25, 0.28); font-size: 13px; }
.support-link span:last-child { color: #7e5b27; font-weight: 600; }

.footer { padding: 54px 20px calc(44px + env(safe-area-inset-bottom)); position: relative; z-index: 2; background: #0d0e10; color: var(--text-muted); font-size: 11px; text-align: center; }
.footer-brand { margin-bottom: 28px; display: grid; gap: 4px; color: var(--text-secondary); }
.footer-brand span:first-child { color: var(--text); font-size: 13px; font-weight: 600; }
.footer-links { margin-bottom: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; }
.compliance { max-width: 680px; margin: 0 auto 12px; }
.footer a:hover { color: var(--text-secondary); }

.ritual-brief { margin-top: 26px; display: grid; gap: 8px; color: var(--text-secondary); font-size: 12px; }
.ritual-brief textarea { width: 100%; min-height: 92px; padding: 13px; resize: vertical; border: 1px solid var(--hairline); border-radius: 4px; background: #17181b; color: var(--text); }
.ritual-delivery { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--hairline); text-align: left; }
.ritual-delivery h2 { font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 26px; font-weight: 400; }
.ritual-delivery section { margin-top: 20px; }
.ritual-delivery h3 { color: var(--ember); font-size: 11px; text-transform: uppercase; }
.ritual-delivery p { margin-top: 6px; color: var(--text-secondary); white-space: pre-line; }

.checkout-retain { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; background: rgba(8, 9, 10, 0.8); }
.checkout-retain section { width: min(100%, 430px); padding: 28px; border: 1px solid var(--hairline); border-radius: 6px; background: #18191c; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42); }
.checkout-retain p { font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 22px; }
.checkout-retain div { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; }
.checkout-retain button { min-height: 44px; padding: 0 14px; border: 1px solid var(--hairline); border-radius: 4px; background: transparent; color: var(--text); cursor: pointer; }
.checkout-retain [data-stay] { background: var(--text); color: #111214; }
.free-checkout { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 18px; background: rgba(7, 8, 10, 0.84); backdrop-filter: blur(10px); }
.free-checkout section { width: min(100%, 430px); position: relative; padding: 28px; border: 1px solid rgba(242, 240, 234, 0.18); border-radius: 6px; background: #17181b; box-shadow: 0 24px 90px rgba(0, 0, 0, 0.48); }
.free-checkout-close { position: absolute; top: 8px; right: 8px; }
.free-checkout-kicker { color: var(--ember); font-size: 10px; text-transform: uppercase; }
.free-checkout h2 { margin-top: 10px; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 28px; font-weight: 400; }
.free-checkout-body { margin-top: 10px; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.free-checkout-line { min-height: 48px; margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--hairline); color: var(--text-muted); font-size: 11px; }
.free-checkout-line strong { color: var(--text); font-size: 16px; font-weight: 500; text-align: right; }
.free-checkout-note { margin-top: 14px; color: var(--text-muted); font-size: 11px; }
.free-checkout-confirm { width: 100%; margin-top: 18px; }
.free-checkout-confirm:disabled { opacity: 0.52; cursor: wait; }
.free-checkout-status { min-height: 18px; margin-top: 10px; color: var(--text-secondary); font-size: 11px; }
.share-bonus { width: 100%; min-height: 48px; margin-bottom: 14px; border: 1px solid var(--hairline); border-radius: 4px; background: transparent; color: var(--text-secondary); cursor: pointer; }
.chat-age { margin-top: 5px; color: var(--text-muted); font-size: 9px; opacity: 0.72; }
.chat-age a { margin-left: 7px; text-decoration: underline; text-underline-offset: 2px; }

/* Products and supporting pages. */
.inner-body { background: #111214; }
.inner-nav { position: sticky; }
.offerings-main { width: min(100%, var(--content)); margin: 0 auto; padding: 64px 20px 96px; }
.inner-header { width: min(100%, 680px); margin-bottom: 50px; }
.product-grid-page { margin-bottom: 78px; }
.membership-section { padding: 34px 0; display: grid; gap: 30px; border-block: 1px solid var(--hairline); }
.membership-section h2 { margin-top: 10px; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 28px; font-weight: 400; }
.membership-section > div > p:last-child { max-width: 580px; margin-top: 10px; color: var(--text-secondary); font-size: 13px; }
.membership-action p { color: var(--text-secondary); font-size: 12px; }
.membership-action strong { margin-right: 5px; color: var(--text); font-size: 28px; font-weight: 500; }
.membership-action .quiet-command { margin-top: 16px; }
.access-section { padding-top: 44px; color: var(--text-muted); font-size: 11px; }
.text-button { min-height: 44px; padding: 0; background: none; color: var(--text-secondary); cursor: pointer; }
#code-panel { width: min(100%, 420px); margin: 14px 0 20px; }
#code-panel input, .activate-main input { width: 100%; min-height: 48px; padding: 10px 12px; background: #17181b; border: 1px solid var(--hairline); border-radius: 4px; }
#code-panel .quiet-command { margin-top: 12px; }
.msg { min-height: 20px; margin-top: 8px; font-size: 11px; }
.ok { color: #80b88a; }
.err { color: #d7837e; }
.compact-footer { border-top: 1px solid var(--hairline); }

.product-detail { width: min(100%, 980px); min-height: calc(100svh - 60px); margin: 0 auto; padding: 66px 20px 86px; display: grid; gap: 42px; align-content: center; }
.product-detail-number { color: var(--text-muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.product-detail-copy { max-width: 680px; }
.product-detail h1 { margin-top: 12px; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 44px; font-weight: 400; }
.product-detail-lead { margin-top: 20px; color: var(--text-secondary); font-size: 17px; }
.product-detail-meta { margin-top: 28px; padding-block: 16px; display: flex; justify-content: space-between; gap: 20px; border-block: 1px solid var(--hairline); color: var(--text-muted); font-size: 11px; }
.product-detail-meta strong { color: var(--text); font-size: 20px; font-weight: 500; }
.product-includes { margin-top: 24px; list-style: none; }
.product-includes li { padding: 10px 0 10px 22px; position: relative; color: var(--text-secondary); font-size: 13px; }
.product-includes li::before { content: '·'; position: absolute; inset-inline-start: 2px; color: var(--ember); }
.product-availability { min-height: 20px; margin-top: 12px; color: var(--text-muted); font-size: 11px; }
.product-aside { padding-top: 24px; display: flex; align-items: start; gap: 10px; border-top: 1px solid var(--hairline); color: var(--text-muted); font-size: 11px; }

/* Chat is a quiet surface, not a messaging app. */
.chat-body { height: 100dvh; overflow: hidden; background: var(--background); }
.chat-body .atmosphere-image { opacity: 0.22; filter: saturate(0.72); }
.chat-body .atmosphere-wash { background: linear-gradient(rgba(10, 11, 13, 0.72), rgba(10, 11, 13, 0.87)); }
.chat-root { height: 100%; position: relative; z-index: 2; }
.chat-shell { height: var(--visual-height, 100dvh); min-height: 360px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; position: relative; overflow: hidden; background: transparent; }
.chat-topbar {
  min-height: calc(54px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 8px 0;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  z-index: 6;
  border-bottom: 1px solid rgba(242, 240, 234, 0.08);
}
.icon-button { width: 48px; height: 48px; display: inline-grid; place-items: center; border-radius: 50%; background: transparent; color: var(--text-secondary); cursor: pointer; transition: color 300ms ease, background 300ms ease, transform 300ms var(--ease); }
.icon-button:hover { color: var(--text); background: rgba(242, 240, 234, 0.06); }
.chat-back { font-size: 27px; line-height: 1; }
.chat-status { min-width: 0; display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--text-muted); font-size: 10px; }
.chat-status-copy { white-space: nowrap; }
.chat-status .status-light { width: 5px; height: 5px; }
.chat-actions { display: flex; align-items: center; }
.chat-language { min-width: 48px; min-height: 48px; padding: 0 4px; border: 0; background: transparent; color: var(--text-muted); font-size: 10px; }
.end-chat { min-height: 48px; padding: 0 8px; display: none; background: transparent; color: var(--text-muted); cursor: pointer; white-space: nowrap; font-size: 10px; }
.end-chat.is-visible { display: block; }
.chat-messages { width: min(100%, 760px); min-height: 0; margin: 0 auto; padding: 54px 22px 30px; display: flex; flex-direction: column; gap: 34px; overflow: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chat-messages::-webkit-scrollbar { display: none; }
.chat-message { width: min(92%, 620px); display: block; transition: opacity 1.2s linear, transform 1.2s var(--ease), filter 1.2s linear; }
.chat-message-user { align-self: flex-end; text-align: end; }
.chat-message-ai { align-self: flex-start; }
.chat-bubble { padding: 0; background: transparent; border: 0; color: var(--text-secondary); font-family: Iowan Old Style, Baskerville, Georgia, "Noto Serif", serif; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat-message-user .chat-bubble { color: rgba(242, 240, 234, 0.68); font-family: inherit; font-size: 14px; line-height: 1.6; }
.chat-message-ai .chat-bubble::before { content: ''; width: 18px; height: 1px; margin-bottom: 14px; display: block; background: rgba(210, 163, 95, 0.55); }
.chat-bubble-waiting { color: var(--text-muted); }
.typing-indicator { width: min(100%, 760px); min-height: 18px; margin: 0 auto; padding: 0 22px 8px; display: flex; gap: 5px; }
.typing-indicator[hidden] { display: none; }
.typing-indicator span { width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted); animation: typing 1.6s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 220ms; }
.typing-indicator span:nth-child(3) { animation-delay: 440ms; }
@keyframes typing { 0%, 80%, 100% { opacity: .2; transform: translateY(1px); } 40% { opacity: .85; transform: translateY(-2px); } }
.chat-presence { min-height: 24px; padding: 2px 16px; color: var(--text-muted); text-align: center; font-size: 9px; }
.chat-input-dock { padding: 8px 12px calc(10px + env(safe-area-inset-bottom)); z-index: 6; background: rgba(13, 14, 16, 0.74); border-top: 1px solid rgba(242, 240, 234, 0.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: transform 400ms var(--ease), opacity 400ms ease; }
.chat-input-row { width: min(100%, 720px); margin: 0 auto; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: end; gap: 4px; }
.chat-input { width: 100%; min-height: 42px; max-height: 116px; padding: 10px 4px; resize: none; border: 0; border-bottom: 1px solid rgba(242, 240, 234, 0.22); border-radius: 0; outline: none; background: transparent; color: var(--text); line-height: 1.45; }
.chat-input:focus { border-color: var(--ember); }
.chat-input::placeholder { color: var(--text-muted); }
.send-button { color: var(--ember); font-size: 20px; }
.voice-button { font-size: 18px; }
.voice-button.is-listening { color: #d7837e; background: rgba(215, 131, 126, 0.1); }
.chat-note { margin-top: 6px; padding-inline: 8px; color: #5e5e5b; text-align: center; font-size: 8px; }
.sound-panel { width: min(100%, 720px); margin: 0 auto 8px; padding: 12px; display: grid; gap: 10px; background: #18191c; border: 1px solid var(--hairline); border-radius: 6px; }
.sound-panel label { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; color: var(--text-muted); font-size: 10px; }
.sound-panel select, .sound-panel input { width: 100%; min-height: 38px; }

/* Direct chat entrance and closing sequence. */
.entry-overlay { position: absolute; inset: 0; z-index: 20; padding: 26px; display: grid; place-items: center; background: rgba(10, 11, 13, 0.92); text-align: center; transition: opacity 1.5s var(--slow), visibility 1.5s; }
.entry-content { width: min(100%, 520px); display: grid; justify-items: center; }
.entry-overlay .breathing-light { width: 76px; height: 76px; margin-bottom: 26px; }
.entry-overlay p { max-width: 440px; color: var(--text-secondary); font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 20px; }
.entry-overlay .enter-button { margin-top: 30px; }
.entry-overlay.is-leaving { opacity: 0; visibility: hidden; }
.entry-overlay.is-leaving .breathing-light { transform: scale(5); opacity: 0; transition: transform 1.8s var(--slow), opacity 1.4s linear; }
.chat-shell.is-closing .chat-input-dock { transform: translateY(110%); opacity: 0; }
.chat-shell.is-closing .particle-field { opacity: 0; }
.chat-message.is-dissolving { opacity: 0; transform: translateY(-8px); filter: blur(7px); }
.closing-sequence { position: absolute; inset: 54px 0 0; z-index: 8; padding: 32px 22px; display: grid; place-content: center; justify-items: center; text-align: center; background: rgba(10, 11, 13, 0.72); }
.closing-sequence p { max-width: 560px; margin: 7px 0; opacity: 0; color: var(--text-secondary); font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 20px; animation: closing-line 1600ms var(--ease) forwards; }
.seal-button { margin-top: 28px; opacity: 0; animation: closing-line 900ms var(--ease) forwards; }
@keyframes closing-line { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.night-card-overlay, .payment-overlay { position: fixed; inset: 0; z-index: 200; padding: 18px; display: grid; place-items: end center; background: rgba(4, 5, 7, 0.78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.night-card, .payment-sheet { width: min(100%, 480px); max-height: calc(100dvh - 36px); padding: 28px 20px; position: relative; overflow: auto; border: 1px solid var(--hairline); border-radius: 6px; background: #18191c; }
.night-card { aspect-ratio: 4 / 5; display: grid; align-content: center; text-align: center; }
.night-card-close, .payment-close { position: absolute; top: 4px; right: 4px; }
.night-card-brand, .night-card-domain { color: var(--text-muted); font-size: 10px; }
.night-card-phrase { margin: 28px 0; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 30px; }
.night-card-actions { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.night-card-count, .night-card-status { margin-top: 12px; color: var(--text-muted); font-size: 10px; }
.payment-sheet h2 { margin: 12px 0; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 28px; font-weight: 400; }
.payment-body, .payment-charity, .payment-cancel { margin: 10px 0; color: var(--text-muted); font-size: 11px; }
.payment-sheet ul { margin: 16px 0; list-style: none; }
.payment-sheet li { padding: 6px 0; color: var(--text-secondary); font-size: 13px; }
.payment-price { margin: 18px 0 4px; font-size: 18px; font-weight: 600; }
.payment-trial { margin-top: 18px; }
.payment-activate { min-height: 44px; display: inline-flex; align-items: center; }

.btn { width: 100%; min-height: 48px; padding: 11px 18px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; cursor: pointer; font-size: 13px; font-weight: 600; transition: transform 300ms var(--ease), background 300ms ease, border-color 300ms ease; }
.btn-primary { background: var(--primary); color: #151515; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--hairline); }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 300; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 11px 14px; border: 1px solid var(--hairline); border-radius: 4px; background: #202125; color: var(--text); font-size: 12px; }

.activate-body { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; }
.activate-main { width: min(100%, 440px); text-align: center; }
.activate-main h1 { margin-bottom: 8px; font-size: 28px; }
.activate-main h2 { margin-bottom: 24px; color: var(--text-secondary); font-size: 15px; font-weight: 400; }
.link { min-height: 48px; margin-top: 12px; display: inline-flex; align-items: center; color: var(--text-secondary); }
.section { width: min(100%, 820px); min-height: 70svh; margin: 0 auto; padding: 72px 20px; }
.section h1 { margin-bottom: 24px; font-family: Iowan Old Style, Baskerville, Georgia, serif; font-size: 36px; font-weight: 400; }
.section p { margin: 14px 0; color: var(--text-secondary); }
.blog-list { list-style: none; }
.blog-list li { padding: 20px 0; border-bottom: 1px solid var(--hairline); }

[dir='rtl'] .enter-button, [dir='rtl'] .quiet-command { flex-direction: row-reverse; }
[dir='rtl'] .product-includes li { padding: 10px 22px 10px 0; }

@media (min-width: 720px) {
  .sanctuary-nav { padding-inline: 32px; }
  .sanctuary-hero { padding: 100px 44px 62px; grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .support-band { grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); align-items: end; padding: 88px 44px; }
  .support-band > div, .support-band > a { width: 100%; }
  .membership-section { grid-template-columns: minmax(0, 1fr) 280px; align-items: end; }
  .product-detail { grid-template-columns: 60px minmax(0, 680px) minmax(160px, 1fr); align-items: start; }
  .product-aside { padding-top: 0; border-top: 0; }
  .night-card-overlay, .payment-overlay { place-items: center; }
}

@media (max-width: 420px) {
  .threshold-brand { margin-bottom: 10svh; }
  .threshold h1 { font-size: 27px; }
  .sanctuary-hero h2 { font-size: 43px; }
  .hero-sub { font-size: 18px; }
  .section-heading h2, .inner-header h1 { font-size: 32px; }
  .product-detail h1 { font-size: 36px; }
  .nav-actions > a { padding-inline: 6px; }
}

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

@media (prefers-reduced-data: reduce) {
  .atmosphere-image { background-image: none; }
  .atmosphere-grain, .particle-field { display: none; }
}
