:root {
  --serene-night: #020817;
  --serene-night-2: #06142b;
  --serene-surface: #0a1a38;
  --serene-blue: #278fdc;
  --serene-bright: #61c5ff;
  --serene-ice: #b8e5ff;
  --serene-gold: #f0bd54;
  --serene-gold-soft: #f7d985;
  --serene-ivory: #f8f6f0;
  --serene-muted: #99b7cc;
  --serene-line: rgba(126, 197, 255, .18);
}

body.serene-theme {
  --brand: var(--serene-blue);
  --studio-night: var(--serene-night);
  --studio-night-2: var(--serene-night-2);
  --studio-green: var(--serene-gold);
  --studio-lime: var(--serene-gold-soft);
  --studio-mint: var(--serene-bright);
  --studio-cyan: var(--serene-ice);
  --studio-line: var(--serene-line);
  color: var(--serene-ivory) !important;
  background:
    radial-gradient(circle at 79% 4%, rgba(16, 117, 217, .22), transparent 31rem),
    radial-gradient(circle at 5% 45%, rgba(80, 65, 160, .12), transparent 30rem),
    var(--serene-night) !important;
}

body.serene-theme::after {
  opacity: .32;
  background-image: linear-gradient(rgba(82, 170, 243, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(82, 170, 243, .045) 1px, transparent 1px);
}

.serene-theme a:focus-visible,
.serene-theme button:focus-visible { outline-color: var(--serene-gold); }
.serene-theme .studio-progress { background: linear-gradient(90deg, var(--serene-blue), var(--serene-bright), var(--serene-gold)); box-shadow: 0 0 18px var(--serene-bright); }
.serene-theme .studio-nav { border-color: rgba(126, 197, 255, .2); background: rgba(2, 8, 23, .78); }
.serene-theme .studio-brand-mark { background: radial-gradient(circle at 64% 34%, var(--serene-gold-soft) 0 8%, transparent 9%), linear-gradient(145deg, #173ca2, var(--serene-blue)); box-shadow: 0 0 28px rgba(39, 143, 220, .45); }
.serene-theme .studio-brand small { color: #819fba; }
.serene-theme .studio-top-link,
.serene-theme .studio-dropdown-trigger { color: #a7bfd1 !important; }
.serene-theme .studio-dropdown-panel { border-color: rgba(126, 197, 255, .2); background: linear-gradient(145deg, rgba(7, 23, 52, .99), rgba(2, 8, 23, .99)); }
.serene-theme .studio-dropdown-panel::before { background: radial-gradient(circle at 78% 0, rgba(39, 143, 220, .2), transparent 17rem), linear-gradient(rgba(126, 197, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 197, 255, .03) 1px, transparent 1px); background-size: auto, 42px 42px, 42px 42px; }
.serene-theme .studio-menu-group-title { color: var(--serene-gold); }
.serene-theme .studio-dropdown-link { color: #b4cde0 !important; }
.serene-theme .studio-dropdown-link:hover,
.serene-theme .studio-dropdown-link[aria-current="page"] { border-color: rgba(97, 197, 255, .22); background: rgba(39, 143, 220, .12); }
.serene-theme .studio-dropdown-link[aria-current="page"]::before { background: var(--serene-gold); box-shadow: 0 0 10px var(--serene-gold); }
.serene-theme .studio-language,
.serene-theme .studio-menu-toggle { border-color: var(--serene-line); color: var(--serene-ivory); }

.serene-theme .serene-hero {
  min-height: 0 !important;
  display: block !important;
  padding: 118px max(18px, calc((100vw - 1180px) / 2)) 54px !important;
  background: radial-gradient(circle at 72% 30%, rgba(20, 112, 218, .2), transparent 30rem), linear-gradient(180deg, #020817, #041027) !important;
}

.serene-theme .serene-hero::before {
  inset: 0;
  width: auto;
  height: auto;
  right: auto;
  bottom: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  opacity: .55;
  background: radial-gradient(circle at 13% 22%, rgba(240, 189, 84, .5) 0 1px, transparent 2px), radial-gradient(circle at 88% 19%, rgba(255, 255, 255, .45) 0 1px, transparent 2px), radial-gradient(circle at 61% 89%, rgba(97, 197, 255, .55) 0 1px, transparent 2px);
  background-size: 210px 210px, 280px 280px, 170px 170px;
}

.serene-hero-art {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(132, 199, 255, .22);
  border-radius: clamp(20px, 3vw, 34px);
  background: #020817;
  box-shadow: 0 40px 110px rgba(0, 0, 0, .55), 0 0 80px rgba(28, 116, 210, .14), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.serene-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 80px rgba(1, 8, 24, .28);
}

.serene-hero-art img { width: 100%; height: auto; display: block; }

.serene-hero-caption {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 30px 10px 0;
}

.serene-kicker {
  margin: 0 0 10px !important;
  color: var(--serene-gold) !important;
  font: 800 .73rem/1.3 ui-monospace, SFMono-Regular, Consolas, monospace !important;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.serene-hero-line { max-width: 680px !important; margin: 0 !important; color: var(--serene-ivory) !important; font: 500 clamp(1.65rem, 3.4vw, 3.25rem)/1.07 Georgia, "Times New Roman", serif !important; letter-spacing: -.035em; text-wrap: balance; }
.serene-trust-list { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; margin: 0; padding: 0; list-style: none; }
.serene-trust-list li { padding: 8px 12px; border: 1px solid var(--serene-line); border-radius: 999px; color: #b9d6e9; background: rgba(255, 255, 255, .035); font-size: .78rem; white-space: nowrap; }

body.serene-theme.studio-product > main { width: min(1120px, calc(100% - 36px)); padding: 46px 0 110px !important; }
.serene-theme .serene-promise,
.serene-theme .serene-depth,
.serene-theme .serene-final { position: relative; overflow: hidden; border: 1px solid var(--serene-line); border-radius: 30px; }
.serene-theme .serene-promise { padding: clamp(34px, 6vw, 72px); background: radial-gradient(circle at 92% 10%, rgba(44, 145, 232, .26), transparent 19rem), linear-gradient(135deg, rgba(10, 31, 70, .96), rgba(4, 15, 36, .94)); box-shadow: 0 28px 80px rgba(0, 0, 0, .25); }
.serene-theme .serene-promise::after { content: ""; position: absolute; width: 300px; height: 300px; top: -184px; right: -90px; border: 1px solid rgba(240, 189, 84, .36); border-radius: 50%; box-shadow: 0 0 0 34px rgba(240, 189, 84, .035), 0 0 0 72px rgba(97, 197, 255, .025); }
.serene-theme .serene-promise > * { position: relative; z-index: 1; }
.serene-theme .serene-promise h2,
.serene-theme .serene-section h2,
.serene-theme .serene-depth h2,
.serene-theme .serene-final h2 { margin: 0 !important; color: var(--serene-ivory) !important; font: 500 clamp(2.2rem, 5vw, 4.6rem)/.98 Georgia, "Times New Roman", serif !important; letter-spacing: -.045em !important; text-wrap: balance; }
.serene-theme .serene-promise h2::before,
.serene-theme .serene-section h2::before,
.serene-theme .serene-depth h2::before,
.serene-theme .serene-final h2::before { display: none !important; }
.serene-theme .serene-promise > p:last-of-type { max-width: 780px; margin: 24px 0 0; color: #b4cee0; font-size: clamp(1.03rem, 1.8vw, 1.24rem); }
.serene-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.serene-button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--serene-line); border-radius: 999px; color: var(--serene-ivory) !important; background: rgba(255, 255, 255, .045); font-weight: 780; text-decoration: none; transition: transform .2s, border-color .2s, background .2s; }
.serene-button:hover { transform: translateY(-2px); border-color: rgba(97, 197, 255, .5); background: rgba(39, 143, 220, .12); }
.serene-button-primary { border-color: rgba(240, 189, 84, .58); color: #071225 !important; background: linear-gradient(115deg, var(--serene-gold-soft), var(--serene-gold)); box-shadow: 0 14px 38px rgba(240, 189, 84, .16); }
.serene-button-primary:hover { border-color: var(--serene-gold-soft); background: linear-gradient(115deg, #ffe9ab, var(--serene-gold)); }
.serene-button-muted { color: #abc7da !important; }

.serene-section { margin-top: clamp(78px, 10vw, 128px); }
.serene-theme .serene-section > h2 { max-width: 760px; }
.serene-theme .steps,
.serene-theme .features { margin-top: 28px; }
.serene-theme.studio-product .steps { gap: 16px; }
.serene-theme.studio-product .step { min-height: 270px; padding: 82px 27px 28px !important; border-color: var(--serene-line); background: linear-gradient(145deg, rgba(10, 30, 67, .92), rgba(4, 15, 36, .9)) !important; }
.serene-theme.studio-product .step::before { color: #071225 !important; background: linear-gradient(145deg, var(--serene-gold-soft), var(--serene-gold)) !important; box-shadow: 0 0 24px rgba(240, 189, 84, .22); }
.serene-theme.studio-product .step h3,
.serene-theme.studio-product .feature h3 { color: var(--serene-ivory) !important; }
.serene-theme.studio-product .step p,
.serene-theme.studio-product .feature p { color: #9fbdd1 !important; }
.serene-theme.studio-product .features { gap: 16px !important; }
.serene-theme.studio-product .feature { min-height: 255px; padding: 30px !important; border-color: var(--serene-line); background: radial-gradient(circle at 100% 0, rgba(39, 143, 220, .11), transparent 14rem), linear-gradient(145deg, rgba(9, 28, 61, .9), rgba(4, 15, 34, .9)) !important; }
.serene-theme.studio-product .feature:hover { border-color: rgba(97, 197, 255, .42); }
.feature-code { display: inline-flex; align-items: center; min-height: 29px; margin-bottom: 34px; padding: 0 10px; border: 1px solid rgba(240, 189, 84, .28); border-radius: 999px; color: var(--serene-gold); background: rgba(240, 189, 84, .055); font: 800 .65rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .12em; }

.serene-depth { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(34px, 7vw, 90px); align-items: center; margin-top: clamp(78px, 10vw, 128px); padding: clamp(34px, 6vw, 70px); background: radial-gradient(circle at 13% 110%, rgba(51, 83, 181, .3), transparent 25rem), linear-gradient(145deg, rgba(8, 25, 58, .92), rgba(4, 14, 32, .94)); }
.serene-depth > div > p:last-child { max-width: 610px; margin: 24px 0 0; color: #a8c3d7; }
.serene-capabilities { display: flex; flex-wrap: wrap; gap: 9px; margin: 0; padding: 0; list-style: none; }
.serene-capabilities li { padding: 10px 13px; border: 1px solid rgba(97, 197, 255, .17); border-radius: 12px; color: #c6deed; background: rgba(39, 143, 220, .07); font-size: .86rem; }
.serene-note { margin: 24px 0 0; padding: 24px 27px; border-left: 3px solid var(--serene-gold); border-radius: 0 18px 18px 0; color: #9fbdd1; background: rgba(9, 28, 61, .62); }
.serene-note strong { color: var(--serene-ivory); }
.serene-final { display: grid; grid-template-columns: auto 1fr; gap: 34px; align-items: center; margin-top: clamp(78px, 10vw, 128px); padding: clamp(34px, 6vw, 66px); background: radial-gradient(circle at 0 100%, rgba(39, 143, 220, .24), transparent 22rem), radial-gradient(circle at 100% 0, rgba(240, 189, 84, .09), transparent 18rem), #071630; }
.serene-final > img { width: 112px; height: 112px; border: 1px solid rgba(255, 255, 255, .17); border-radius: 28px; box-shadow: 0 22px 55px rgba(0, 0, 0, .4), 0 0 44px rgba(39, 143, 220, .22); }
.serene-final h2 { font-size: clamp(2rem, 4.5vw, 4rem) !important; }
.serene-theme footer { padding: 28px 20px 48px; color: #7592a8 !important; text-align: center; }
.serene-theme footer a { color: #a9cfe8 !important; }

/* Serene legal pages keep long-form text light while preserving the night-sky identity. */
body.serene-theme.studio-legal { color: #10233a !important; background: linear-gradient(180deg, var(--serene-night) 0 430px, #eaf3fa 430px) !important; }
body.serene-theme.studio-legal > header { min-height: 380px !important; background: radial-gradient(circle at 76% 18%, rgba(39, 143, 220, .32), transparent 27rem), radial-gradient(circle at 18% 100%, rgba(75, 62, 157, .22), transparent 24rem), linear-gradient(145deg, #020817, #071936) !important; }
body.serene-theme.studio-legal > header::before { border-color: rgba(240, 189, 84, .26); box-shadow: 0 0 0 55px rgba(240, 189, 84, .025), 0 0 0 120px rgba(39, 143, 220, .025); }
body.serene-theme.studio-legal > header h1 { color: var(--serene-ivory) !important; font: 500 clamp(2.8rem, 6vw, 5.5rem)/.95 Georgia, "Times New Roman", serif !important; letter-spacing: -.055em !important; }
body.serene-theme.studio-legal > header p { color: #a9c8dc !important; }
.serene-legal-title { display: flex; align-items: center; justify-content: center; gap: 18px; }
.serene-legal-title img { width: 68px; height: 68px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 18px; box-shadow: 0 16px 38px rgba(0, 0, 0, .32); }
body.serene-theme.studio-legal section { border-color: #d3e3ee !important; color: #10233a !important; background: rgba(255, 255, 255, .96) !important; box-shadow: 0 18px 48px rgba(24, 62, 94, .09) !important; }
body.serene-theme.studio-legal h2 { color: #102b50 !important; }
body.serene-theme.studio-legal h2::before { background: linear-gradient(90deg, var(--serene-blue), var(--serene-gold)); }
body.serene-theme.studio-legal p,
body.serene-theme.studio-legal li { color: #3f586d; }
body.serene-theme.studio-legal a { color: #086eaf; }
body.serene-theme.studio-legal .highlight,
body.serene-theme.studio-legal .note,
body.serene-theme.studio-legal .privacy { border-left-color: var(--serene-blue) !important; background: #e8f4fc !important; }
body.serene-theme.studio-legal .warning { border-left-color: var(--serene-gold) !important; background: #fff6df !important; }
body.serene-theme.studio-legal .lang-switch a { border-color: rgba(97, 197, 255, .38) !important; color: #d8efff !important; background: rgba(5, 22, 48, .86) !important; }
body.serene-theme.studio-legal footer { color: #60778b !important; }

@media (max-width: 760px) {
  .serene-theme .studio-menu { border-color: var(--serene-line); background: rgba(2, 8, 23, .99); }
  .serene-theme .serene-hero { padding: 92px 12px 38px !important; }
  .serene-hero-art { border-radius: 16px; }
  .serene-hero-caption { display: grid; gap: 22px; padding: 24px 8px 0; }
  .serene-trust-list { justify-content: start; }
  body.serene-theme.studio-product > main { width: min(100% - 24px, 1120px); padding-top: 26px !important; }
  .serene-theme .serene-promise h2,
  .serene-theme .serene-section h2,
  .serene-theme .serene-depth h2,
  .serene-theme .serene-final h2 { font-size: clamp(2.15rem, 11vw, 3.4rem) !important; }
  .serene-depth,
  .serene-final { grid-template-columns: 1fr; }
  .serene-final > img { width: 88px; height: 88px; border-radius: 22px; }
  .serene-theme.studio-product .step { min-height: 0; }
  .serene-theme.studio-product .feature { min-height: 0; }
  .serene-legal-title { flex-direction: column; gap: 14px; }
  .serene-legal-title img { width: 58px; height: 58px; border-radius: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .serene-button { transition: none; }
}

/* Static, privacy-first reader for lists carried inside a shared URL fragment. */
body.serene-share.studio-utility {
  min-height: 100vh !important;
  display: block !important;
  padding: 112px 18px 54px !important;
  background: radial-gradient(circle at 76% 4%, rgba(39, 143, 220, .24), transparent 28rem), radial-gradient(circle at 8% 70%, rgba(82, 59, 155, .14), transparent 30rem), var(--serene-night) !important;
}

body.serene-share.studio-utility > main {
  width: min(780px, 100%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--serene-ivory) !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none;
}

.share-heading { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; padding: 0 8px; }
.share-heading img { width: 78px; height: 78px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 21px; box-shadow: 0 18px 48px rgba(0, 0, 0, .38), 0 0 34px rgba(39, 143, 220, .2); }
.share-heading-title { margin: 0 !important; color: var(--serene-ivory) !important; font: 500 clamp(2rem, 6vw, 3.5rem)/1 Georgia, "Times New Roman", serif !important; letter-spacing: -.045em; }
.share-card,
.share-state { border: 1px solid var(--serene-line); border-radius: 28px; background: radial-gradient(circle at 100% 0, rgba(39, 143, 220, .15), transparent 20rem), linear-gradient(145deg, rgba(9, 28, 62, .96), rgba(4, 14, 34, .96)); box-shadow: 0 34px 100px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .055); }
.share-card { padding: clamp(25px, 5vw, 48px); }
.share-state { min-height: 280px; display: grid; place-items: center; align-content: center; gap: 16px; padding: 40px; text-align: center; }
.share-state h1 { max-width: 560px; margin: 0; color: var(--serene-ivory) !important; font: 500 clamp(2rem, 6vw, 3.5rem)/1 Georgia, "Times New Roman", serif !important; }
.share-state > p:not(.serene-kicker) { max-width: 580px; margin: 0; color: #a9c4d7 !important; }
.share-state .serene-button { margin-top: 10px; }
.share-loader { width: 42px; height: 42px; border: 2px solid rgba(97, 197, 255, .18); border-top-color: var(--serene-gold); border-radius: 50%; animation: share-spin .9s linear infinite; }
.share-summary { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 1px solid var(--serene-line); }
.share-summary h1 { margin: 0; color: var(--serene-ivory) !important; font: 500 clamp(2.15rem, 7vw, 4.4rem)/.98 Georgia, "Times New Roman", serif !important; letter-spacing: -.045em; overflow-wrap: anywhere; }
.share-count { flex: 0 0 auto; margin: 0; padding: 8px 12px; border: 1px solid rgba(240, 189, 84, .28); border-radius: 999px; color: var(--serene-gold); background: rgba(240, 189, 84, .055); font: 800 .7rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.shared-options { max-height: min(54vh, 620px); display: grid; gap: 8px; overflow: auto; margin: 26px 0 0; padding: 0 5px 0 0; counter-reset: shared-option; list-style: none; scrollbar-color: rgba(97, 197, 255, .38) transparent; }
.shared-options li { min-height: 54px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 13px 15px; border: 1px solid rgba(126, 197, 255, .13); border-radius: 14px; color: #dcecf6; background: rgba(39, 143, 220, .055); counter-increment: shared-option; }
.shared-options li span::before { content: counter(shared-option, decimal-leading-zero); margin-right: 13px; color: #6389a8; font: 700 .68rem/1 ui-monospace, SFMono-Regular, Consolas, monospace; }
.shared-options li small { min-width: 56px; padding: 6px 8px; border-radius: 999px; color: var(--serene-gold); background: rgba(240, 189, 84, .08); font-size: .68rem; font-weight: 800; text-align: center; }
.shared-options li.is-disabled { opacity: .58; }
.shared-options li.is-disabled span { text-decoration: line-through; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.share-actions button { font: inherit; cursor: pointer; }
.share-actions .app-only { display: none; }
html.android .share-actions .app-only { display: inline-flex; }
.share-privacy { display: grid; grid-template-columns: auto 1fr; gap: 12px; margin-top: 30px; padding: 18px; border-radius: 16px; color: #8facc1; background: rgba(255, 255, 255, .035); font-size: .84rem; }
.share-privacy > span { color: var(--serene-gold); }
.share-privacy p { margin: 0; color: inherit !important; }
.share-privacy strong { color: #c9dfed; }
.share-noscript { padding: 24px; border: 1px solid var(--serene-line); border-radius: 18px; color: var(--serene-ivory); background: var(--serene-surface); }
.serene-share footer { padding: 34px 10px 0; }
.is-hidden { display: none !important; }

@keyframes share-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  body.serene-share.studio-utility { padding: 88px 12px 36px !important; }
  .share-heading { gap: 15px; padding: 0 4px; }
  .share-heading img { width: 60px; height: 60px; border-radius: 16px; }
  .share-heading-title { font-size: clamp(1.8rem, 9vw, 2.5rem) !important; }
  .share-summary { display: grid; gap: 18px; }
  .share-count { justify-self: start; }
  .share-actions { display: grid; }
  .share-actions .serene-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .share-loader { animation: none; border-color: var(--serene-gold); }
}
