:root {
  font-family: var(--typeface);
  font-synthesis: none;
  letter-spacing: .006em;
  color-scheme: dark;
  color: var(--paper);
  background: var(--viewport-background, var(--ink));
  accent-color: var(--accent);
  --ink: #2e253b;
  --surface-quiet: #2d213b42;
  --paper: #fbf8f4;
  --accent: #efd7f4;
  --accent-light: #f1e4f3;
  --muted: #eae0ed;
  --line: #f1e3f454;
  --typeface: 'Avenir Next', Avenir, 'Century Gothic', system-ui, 'Helvetica Neue', sans-serif;
  --ease: cubic-bezier(.22, .78, .25, 1);
  --gutter: clamp(22px, 7.3vw, 36px);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button, input, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; color: inherit; background: none; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { color: var(--ink); background: var(--accent-light); }
#app { position: relative; isolation: isolate; margin-inline: auto; width: 100%; min-height: 100vh; min-height: 100dvh; background: var(--viewport-background, var(--ink)); overflow: hidden; }
.screen { position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100vh; height: 100dvh; width: 100%; overflow: hidden; }
#app-view { position: relative; z-index: 1; }
@media (max-width: 700px), (hover: none) and (pointer: coarse) {
  #app {
    position: fixed;
    inset: 0;
    min-height: 0;
    height: var(--visible-viewport-height, 100vh);
  }
  @supports (height: 100dvh) {
    #app { height: var(--visible-viewport-height, 100dvh); }
  }
  #app-view, .screen { height: 100%; }
}
.backdrop { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.backdrop-layer {
  position: absolute;
  inset: -9%;
  opacity: 0;
  transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.08);
  transition: opacity .88s ease-in-out, transform 1.22s var(--ease);
}
.backdrop-image {
  background-color: #322940;
  background-position: 66% center;
  background-repeat: no-repeat;
  background-size: cover;
  transform: translate3d(var(--shift-x), var(--shift-y), 0) scale(1.015);
  transition: opacity .7s ease-in-out, transform 1.05s var(--ease);
}
.backdrop-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #251a343d, #261a3214 57%, #23183161);
}
.backdrop-lavande {
  --shift-x: -1.2%;
  --shift-y: .8%;
  background-image: url("./assets/onboarding-lavande.jpg");
}
.backdrop-crepuscule {
  --shift-x: 1.3%;
  --shift-y: .8%;
  background-image: url("./assets/onboarding-crepuscule.jpg");
}
.backdrop-rose {
  --shift-x: 1.1%;
  --shift-y: -.9%;
  background-image: url("./assets/onboarding-rose.jpg");
}
.backdrop-jour-1 {
  --shift-x: -1.6%;
  --shift-y: .9%;
  background-image: url("./assets/jour-1-collines.jpg");
}
.backdrop-jour-2 {
  --shift-x: 1.6%;
  --shift-y: -.9%;
  background-image: url("./assets/jour-2-lac.jpg");
}
:is(.backdrop-jour-1, .backdrop-jour-2)::after {
  background: linear-gradient(180deg, #251b314d, #291e3129 45%, #21172f80);
}
[data-drift=alternate] { --drift-x: .85%; --drift-y: -.55%; }
[data-backdrop=lavande] .backdrop-lavande,
[data-backdrop=crepuscule] .backdrop-crepuscule,
[data-backdrop=rose] .backdrop-rose,
[data-backdrop=jour-1] .backdrop-jour-1,
[data-backdrop=jour-2] .backdrop-jour-2 {
  opacity: 1;
  transform: translate3d(var(--drift-x, 0), var(--drift-y, 0), 0) scale(1);
}
.scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #e0c9e566 transparent; }
.content { padding: clamp(19px, 3.8dvh, 34px) var(--gutter) 34px; }
.topbar { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 11px; z-index: 3; flex: 0 0 auto; min-height: calc(76px + env(safe-area-inset-top)); padding: calc(12px + env(safe-area-inset-top)) var(--gutter) 12px; }
.topbar.compact { margin: 0 var(--gutter); padding-inline: 0; border-bottom: 1px solid var(--line); }
.topbar h1 { font: 400 clamp(16px, 4vw, 18px)/1.2 var(--typeface); margin: 0; text-align: center; text-wrap: balance; }
.back, .round { display: inline-flex; align-items: center; justify-content: center; gap: 3px; flex-shrink: 0; min-height: 44px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--paper); background: #2a1e3b40; transition: background .22s ease, border-color .22s ease, transform .2s var(--ease); }
.back { font-size: 12px; font-weight: 550; }
.round { width: 44px; height: 44px; padding: 0; }
.round:active, .back:active { transform: scale(.95); }
.icon { display: inline-flex; align-items: center; justify-content: center; }
.icon svg, .round svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.toolbar { display: flex; gap: 6px; }
.progress-track { position: absolute; inset-inline-start: 50%; transform: translateX(-50%); height: 3px; width: clamp(43px, 17vw, 74px); background: #eee2f14a; border-radius: 3px; overflow: hidden; }
.progress-track span { display: block; height: 100%; min-width: 3px; border-radius: 3px; background: linear-gradient(90deg, #cfaee0, #f0d6eb); transition: width .44s var(--ease); }
.question { margin: 0 0 22px; font-size: clamp(16px, 4.25vw, 18px); font-weight: 400; line-height: 1.62; white-space: pre-line; text-wrap: pretty; }
h1.question, .subscription h1 { font: 400 clamp(23px, 6.3vw, 29px)/1.17 var(--typeface); letter-spacing: -.024em; text-wrap: balance; }
.option-list { display: grid; gap: 9px; }
.option { display: flex; align-items: center; justify-content: flex-start; gap: 14px; min-height: 46px; width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: 13px; font-size: 14px; font-weight: 530; line-height: 1.35; text-align: start; background: var(--surface-quiet); transition: background .24s ease, border-color .24s ease, transform .18s var(--ease); }
.option:not(.multi)::after { content: ''; width: 6px; height: 6px; border-right: 1px solid #e9d5ed83; border-top: 1px solid #e9d5ed83; transform: rotate(45deg); margin-left: auto; flex: 0 0 6px; }
.option.selected { border-color: #f0d8f3; background: #e8c6f13d; }
.option:active { transform: translateY(1px); }
.check { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-left: auto; flex: 0 0 17px; border: 1px solid #e9d5ed83; border-radius: 50%; }
.selected .check { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.check svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.bottom { flex-shrink: 0; padding: 16px var(--gutter) calc(21px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, #2b2139bf 48%, #271d35ee); }
.primary, .secondary { width: 100%; min-height: 46px; padding: 10px 15px; border-radius: 12px; font-size: 14px; font-weight: 650; line-height: 1.35; transition: background .23s ease, transform .2s var(--ease), border-color .23s ease; }
.primary { color: var(--ink); background: var(--accent-light); box-shadow: 0 6px 20px #1f162c24; }
.primary:disabled { color: #e5dbe7; background: #55465f; box-shadow: none; }
.secondary { border: 1px solid var(--line); background: #2a1e3b40; margin-top: 10px; }
.primary:active:not(:disabled), .secondary:active { transform: translateY(2px); }
.text-button { min-height: 40px; padding: 7px 4px; color: var(--accent-light); font-size: 13px; line-height: 1.4; text-underline-offset: 3px; }
.text-button.full { width: 100%; }
.small-link { color: var(--accent-light); text-underline-offset: 4px; }
@media (hover:hover) {
  .primary:not(:disabled):hover { background: #faf1ff; }
  :is(.secondary,.round,.back,.option:not(.selected),.day-row,.setting-row,.account-card):hover { background-color: #eadbf222; }
  .text-button:hover,.entry-links button:hover { text-decoration: underline; }
}
.fade-enter { animation: arrive .48s var(--ease) both; }
.no-enter .fade-enter { animation: none; }
@keyframes arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.notice,.source-note,.event-note,.label,.muted,.tiny { color: var(--muted); font-size: 12px; line-height: 1.55; }
.small-text { font-size: 14px; line-height: 1.55; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 13px; margin: 14px 0; }
.brand-lockup { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--accent-light); font: 400 23px/1 var(--typeface); letter-spacing: -.03em; }
.brand-lockup svg { width: 27px; height: 27px; flex: 0 0 27px; }
.saba-orbit { display: block; width: 100%; height: 100%; overflow: visible; }
.saba-orbit-spark { transform-box: fill-box; transform-origin: center; animation: spark 5s ease-in-out infinite alternate; }
@keyframes spark { from { opacity: .55; transform: scale(.9); } to { opacity: 1; transform: scale(1.08); } }
.field,.date-field { display: block; width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: #271e37a6; color: var(--paper); font-size: 16px; }
.field::placeholder { color: #c9b9d3; }
.top-close { position: absolute; top: calc(16px + env(safe-area-inset-top)); right: var(--gutter); z-index: 3; min-width: 44px; min-height: 44px; border-radius: 50%; border: 1px solid var(--line); font-size: 22px; }
.form-error { color: #fec3c3; font-size: 13px; line-height: 1.4; }
.form-error:empty { display: none; }
.account-picker { padding: calc(clamp(29px, 6.3dvh, 58px) + env(safe-area-inset-top)) var(--gutter) 20px; }
.account-picker h1 { margin: 0 0 13px; font: 400 clamp(29px, 7.7vw, 36px)/1.09 var(--typeface); letter-spacing: -.024em; text-wrap: pretty; }
.account-picker .small-text { color: var(--muted); margin: 12px 0 20px; }
.account-list { display: grid; gap: 9px; margin-bottom: 16px; }
.account-list:empty { display: none; }
.account-card { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 61px; padding: 10px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-quiet); text-align: left; transition: background .2s ease; }
.account-card .icon { color: var(--accent); flex-shrink: 0; }
.account-card > span:nth-child(2) { flex: 1; min-width: 0; }
.account-card strong,.account-card small { display: block; overflow-wrap: anywhere; }
.account-card small { color: var(--muted); margin-top: 4px; }

:is([data-page=welcome], [data-page=login], [data-page=signup]) {
  --access-gutter: clamp(21px, 6.2cqw, 35px);
  --access-paper: #fbf8f4;
  --access-text: #2e253b;
  --access-title: Baskervville, Georgia, serif;
  container-type: inline-size;
  font-family: system-ui, sans-serif;
  letter-spacing: 0;
}
[data-page=welcome] { background: #272036; color: var(--paper); }
.access-landscape { display: block; width: 100%; height: 100%; object-fit: cover; }
.entry-image { position: absolute; inset: 0; pointer-events: none; }
.entry-image .access-landscape { object-position: 72% center; }
.entry-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 39%, #24192c70 65%, #1b1424f2 100%);
}
.entry-scroll { position: relative; display: flex; flex-direction: column; scrollbar-color: #c3a9c468 transparent; }
@media (display-mode: browser) and (max-width: 700px),
       (display-mode: browser) and (hover: none) and (pointer: coarse) {
  #app:has([data-page=welcome]) {
    position: relative;
    inset: auto;
    height: auto;
    overflow: visible;
  }
  #app:has([data-page=welcome]) #app-view,
  [data-page=welcome] { height: auto; }
  [data-page=welcome] {
    min-height: 100vh;
    min-height: 100lvh;
    overflow: visible;
  }
  [data-page=welcome] .entry-scroll {
    flex: 0 0 auto;
    min-height: var(--visible-viewport-height, 100vh);
    overflow: visible;
  }
}
.entry-copy {
  flex: 0 0 auto;
  margin-block-start: auto;
  padding: 26px var(--access-gutter) calc(12px + env(safe-area-inset-bottom));
}
.entry-copy h1 {
  max-width: 19ch;
  margin: 0 0 22px;
  font: 400 clamp(29px, 8.1cqw, 40px)/1.14 var(--access-title);
  letter-spacing: -.026em;
  text-wrap: pretty;
}
.entry-start {
  display: grid;
  grid-template-columns: 1fr 50px;
  gap: 6px;
  width: 100%;
  padding: 0;
  border-radius: 15px;
  font-size: 15px;
  font-weight: 650;
}
.entry-start > span {
  display: grid;
  place-items: center;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #272036a3;
  transition: background .2s ease, color .2s ease;
}
.entry-start .entry-arrow { border-color: transparent; background: var(--accent-light); color: var(--ink); font-size: 22px; font-weight: 500; }
.entry-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 13px; margin-top: 5px; }
.entry-links button {
  min-height: 44px;
  padding: 3px 6px;
  color: #f8eaf5;
  font-size: 13px;
  text-underline-offset: 3px;
}

:is([data-page=login], [data-page=signup]) { --accent: #815c93; color-scheme: light; background: var(--access-paper); color: var(--access-text); }
.access-screen { scrollbar-color: #c8bdcd transparent; }
.access-banner {
  position: relative;
  height: clamp(126px, 22.8dvh, 208px);
  overflow: hidden;
  border-end-end-radius: clamp(39px, 12cqw, 56px);
  background: #4b3f57;
}
.access-banner .access-landscape { object-position: center 56%; }
.access-banner .round {
  position: absolute;
  top: max(12px, calc(6px + env(safe-area-inset-top)));
  inset-inline-start: var(--access-gutter);
  border-color: #fff5fc55;
  background: #282039ae;
  color: #fff;
}
.access-panel {
  position: relative;
  margin-block-start: -25px;
  padding: 22px var(--access-gutter) calc(14px + env(safe-area-inset-bottom));
  border-start-start-radius: clamp(30px, 8.4cqw, 44px);
  background: var(--access-paper);
}
.access-panel h1 {
  margin: 0 0 7px;
  font: 400 clamp(27px, 7.55cqw, 35px)/1.15 var(--access-title);
  letter-spacing: -.028em;
}
.access-intro { margin: 0 0 21px; color: #63556a; font-size: 14px; line-height: 1.5; }
.access-form { display: grid; gap: 12px; }
.access-field { display: grid; gap: 5px; min-width: 0; font-size: 13px; font-weight: 600; }
.access-names { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 9px; }
.access-field .field {
  min-height: 46px;
  border-color: #dcd5e0;
  border-radius: 13px;
  background: #f5f1f5;
  color: var(--access-text);
  font-weight: 400;
}
.access-password { position: relative; }
.access-password .field { padding-inline-end: 48px; }
.access-password button { position: absolute; inset-block: 0; inset-inline-end: 1px; display: grid; place-items: center; width: 45px; border-radius: 12px; color: #62526f; }
.practitioner-row, .access-terms { display: flex; align-items: center; gap: 9px; font-size: 13px; line-height: 1.45; }
.practitioner-row { min-height: 44px; cursor: pointer; }
.access-form .practitioner-row { margin-block: -6px; }
.access-terms { align-items: flex-start; }
.practitioner-row input, .access-terms input { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
.access-terms input { margin-top: 1px; }
.auth-inline { padding: 0; color: #684478; font-weight: 650; text-align: start; text-decoration: underline; text-underline-offset: 3px; }
.access-form .form-error { margin: 0; color: #8f283b; }
.access-submit {
  min-height: 47px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #2e253b;
  color: var(--paper);
  font-size: 15px;
  font-weight: 650;
  transition: background .2s ease, transform .2s var(--ease);
}
.access-submit:disabled { opacity: .65; }
.access-switch { margin: 5px 0 0; color: #63556a; font-size: 13px; text-align: center; }
.access-switch button { min-height: 44px; padding-inline: 3px; }
.entry-start:active, .access-submit:active:not(:disabled) { transform: translateY(1px); }
@media (hover: hover) {
  .entry-start:hover > span:first-child { background: #3a2d49; }
  .access-submit:hover:not(:disabled) { background: #453551; }
}

.summary ul { padding-left: 20px; }
.summary li { margin-bottom: 9px; line-height: 1.5; }
.summary li::marker { color: var(--accent); }
.summary p { line-height: 1.55; }
.context-card,.panel { border: 1px solid var(--line); padding: 17px; border-radius: 14px; background: var(--surface-quiet); }
.context-card h2 { font: 400 21px/1.18 var(--typeface); margin: 0 0 8px; }
.context-card p { font-size: 14px; line-height: 1.55; margin: 7px 0 0; }
.panel { margin: 14px 0; }
.panel p { font-size: 14px; line-height: 1.5; margin: 6px 0; }
.badge-demo { display: inline-block; padding: 5px 9px; border-radius: 5px; border: 1px solid var(--line); color: var(--accent); font-size: 11px; line-height: 1.2; letter-spacing: .03em; }
.kicker { font-size: 10px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.tick { display: inline-grid; place-items: center; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; background: var(--accent-light); color: var(--ink); font-size: 11px; font-weight: 700; }

[data-page=home] {
  --home-paper: #fbf8f4;
  --home-text: #2e253b;
  --home-muted: #65566e;
  --home-plum: #272036;
  --home-gutter: clamp(18px, 5.5cqw, 32px);
  --accent: #8d6ba7;
  container-type: inline-size;
  color-scheme: light;
  background: var(--home-paper);
  color: var(--home-text);
  font-family: system-ui, sans-serif;
  letter-spacing: 0;
}
.home-layout {
  display: flex;
  flex-direction: column;
  scrollbar-color: #c8bdcd transparent;
}
.home-main {
  flex: 0 0 auto;
  padding: max(clamp(29px, 5.9dvh, 54px), calc(env(safe-area-inset-top) + 16px)) var(--home-gutter) clamp(27px, 5.1dvh, 47px);
}
.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 clamp(16px, 5.65cqw, 25px);
}
.home-header .round { border-color: transparent; background: transparent; color: var(--home-text); }
@media (hover: hover) { .home-header .round:hover { background: #ede7f1; } }
.home-greeting {
  min-width: 0;
  margin: 0;
  font-size: clamp(21px, 5.65cqw, 30px);
  font-weight: 640;
  letter-spacing: -.045em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.home-greeting span {
  display: block;
  margin-bottom: 4px;
  color: var(--home-muted);
  font-size: clamp(15px, 3.75cqw, 22px);
  font-weight: 400;
  line-height: 1.28;
  letter-spacing: 0;
}
.home-greeting strong { font-weight: inherit; }
.home-session {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  aspect-ratio: 2.25;
  min-height: clamp(143px, 23.5dvh, 218px);
  padding: clamp(13px, 3.55cqw, 20px);
  border-radius: clamp(17px, 4.2cqw, 25px);
  background-color: var(--home-plum);
  background-image: url("./assets/home-session-moon.png");
  background-position: center 54%;
  background-size: cover;
  background-repeat: no-repeat;
}
.home-session-day {
  padding: 7px 11px;
  border-radius: 100px;
  background: #322841;
  color: #fff;
  font-size: clamp(12px, 3.2cqw, 18px);
  font-weight: 650;
  line-height: 1.45;
}
.home-session-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  max-width: 100%;
  padding: 9px clamp(13px, 3.5cqw, 20px);
  border-radius: 100px;
  background: var(--accent-light);
  color: var(--home-text);
  text-align: start;
  font-size: clamp(14px, 3.72cqw, 20px);
  font-weight: 700;
  line-height: 1.25;
}
.home-play {
  flex-shrink: 0;
  width: 10px;
  height: 11px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.home-explore { margin-top: clamp(21px, 6.05cqw, 34px); }
.home-explore h2 {
  margin: 0 0 clamp(10px, 2.8cqw, 16px);
  font-size: clamp(20px, 5.05cqw, 29px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1.22;
}
.home-explore-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(8px, 2.12cqw, 12px); }
.home-explore-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  min-height: clamp(92px, 14.4dvh, 146px);
  padding: 13px clamp(13px, 3.7cqw, 21px);
  border-radius: clamp(17px, 4.4cqw, 26px);
  background: #ede7f1;
  text-align: start;
}
.home-explore-card:last-child { background: #f3e9f0; }
.home-explore-card strong { font-size: clamp(17px, 4.45cqw, 25px); line-height: 1.2; }
.home-explore-card span { color: var(--home-muted); font-size: clamp(13px, 3.45cqw, 19px); line-height: 1.3; }
.home-program {
  flex: 0 0 auto;
  margin-top: auto;
  padding: 0 clamp(10px, 2.75cqw, 16px) calc(15px + env(safe-area-inset-bottom));
  border-radius: clamp(25px, 6.3cqw, 38px) clamp(25px, 6.3cqw, 38px) 0 0;
  background: #fff;
  box-shadow: 0 -9px 32px #31253d12;
}
.program-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 13px 36px 14px;
  color: #191c1b;
  font-size: clamp(17px, 4.34cqw, 25px);
  font-weight: 700;
  line-height: 1.24;
  text-align: center;
  touch-action: none;
}
.handle { width: clamp(34px, 9cqw, 52px); height: 4px; border-radius: 4px; background: #cbd0d7; }
.program-chevron {
  position: absolute;
  inset-inline-end: clamp(19px, 4.6cqw, 30px);
  bottom: 22px;
  width: 8px;
  height: 8px;
  transform: rotate(-45deg);
  border-top: 1.75px solid currentColor;
  border-right: 1.75px solid currentColor;
}
.week-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: clamp(97px, 14.2dvh, 140px);
  padding: 13px clamp(14px, 3.8cqw, 22px);
  border-radius: clamp(21px, 5.9cqw, 34px);
  background: var(--home-plum);
  color: #fff;
  text-align: start;
}
.week-card-heading, .week-card-details { display: flex; justify-content: space-between; gap: 9px; width: 100%; }
.week-card-heading { align-items: center; }
.week-card-title { font-size: clamp(20px, 5.25cqw, 30px); font-weight: 700; letter-spacing: -.026em; line-height: 1.2; }
.week-badge {
  flex-shrink: 0;
  padding: 5px 9px;
  border-radius: 99px;
  background: #51465f;
  font-size: clamp(11px, 2.75cqw, 16px);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.week-card-details { align-items: center; font-size: clamp(13px, 3.45cqw, 20px); line-height: 1.38; }
.week-card-details > span:first-child { max-width: 28ch; }
.week-glyphs { display: flex; flex-shrink: 0; align-items: center; gap: clamp(2px, .76cqw, 5px); }
.glyph { width: clamp(8px, 3.12cqw, 18px); aspect-ratio: 1; border-radius: 50%; background: #8d7e99; }
.glyph:nth-child(2) { border-radius: 33%; }
.glyph:nth-child(4) { border-radius: 100% 0 30% 0; }
.glyph:nth-child(6) { border-radius: 90% 0 45% 50%; }
.glyph:last-child { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); border-radius: 0; }
.glyph.done {
  border-radius: 0;
  background: #faf1ff;
  clip-path: polygon(50% 0, 59% 29%, 85% 15%, 71% 41%, 100% 50%, 71% 59%, 85% 85%, 59% 71%, 50% 100%, 41% 71%, 15% 85%, 29% 59%, 0 50%, 29% 41%, 15% 15%, 41% 29%);
}
.home-session-cta, .home-explore-card, .week-card { transition: filter .18s ease, transform .18s var(--ease); }
.home-session-cta:active, .home-explore-card:active, .week-card:active { transform: translateY(1px) scale(.985); }
@media (hover: hover) {
  .home-session-cta:hover, .home-explore-card:hover { filter: brightness(.97); }
  .week-card:hover { filter: brightness(1.13); }
}

.overlay,.dialog-backdrop { position: absolute; z-index: 20; inset: 0; background: #241d34a3; display: flex; align-items: flex-end; animation: veil .24s ease both; }
@keyframes veil { from { opacity: 0; } to { opacity: 1; } }
.scrim-button { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheet {
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 86%;
  border-radius: clamp(25px, 6.3cqw, 38px) clamp(25px, 6.3cqw, 38px) 0 0;
  background: #fff;
  box-shadow: 0 -16px 48px #251d3938;
  animation: sheet-rise .38s var(--ease) both;
}
@keyframes sheet-rise { from { opacity: 0; transform: translateY(32px); } to { opacity: 1; transform: translateY(0); } }
.sheet-head { flex-shrink: 0; }
.sheet-head:focus-visible { outline-offset: -5px; border-radius: 24px 24px 0 0; }
.sheet-head .program-chevron { bottom: 25px; transform: rotate(135deg); }
.program { display: grid; align-content: start; gap: 9px; padding: 4px 11px calc(12px + env(safe-area-inset-bottom)); scrollbar-color: #c8bdcd transparent; }
.week-card.locked { background: #eee9f1; color: var(--home-text); }
.week-card.locked .week-badge { background: #e0d6e6; }
.week-card.locked .glyph { opacity: .65; }
.week-page { padding: 23px var(--gutter) 32px; }
.week-page h2 { margin: 0 0 19px; font: 400 23px/1.19 var(--typeface); }
.day-list { border: 1px solid var(--line); border-radius: 14px; background: var(--surface-quiet); padding: 0 10px; }
.day-row { display: flex; gap: 10px; align-items: center; min-height: 59px; width: 100%; padding: 11px 5px; text-align: left; }
.day-row + .day-row { border-top: 1px solid var(--line); }
.day-text { flex: 1; font-size: 13px; line-height: 1.4; }
.day-row.locked { color: var(--muted); }
.day-row .circle { width: 16px; height: 16px; flex: 0 0 16px; border: 1px solid #e9d5ed83; border-radius: 50%; }
.ring { display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid var(--accent); border-radius: 50%; font-size: 10px; color: var(--accent-light); }
.lesson .content { padding-top: clamp(15px, 3.7dvh, 30px); }
.lesson .question { letter-spacing: -.012em; }
.lesson .tap-area { cursor: pointer; }
.lesson-art { color: var(--accent); display: grid; place-items: center; margin: 19px auto 10px; max-width: 204px; }
.lesson-art svg { display: block; width: 100%; height: auto; max-height: min(26dvh, 180px); }
.lesson-art .saba-figure-point { animation: ink-appear .7s var(--ease) .18s both; }
@keyframes ink-appear { from { opacity: 0; } to { opacity: 1; } }
.tap-hint { margin: 0 auto calc(15px + env(safe-area-inset-bottom)); min-height: 44px; padding: 5px 18px; border-top: 1px solid var(--line); color: var(--accent-light); font-size: 13px; }
.player { cursor: pointer; }
.player-art { position: absolute; inset: 19% 11% 29%; z-index: 0; display: grid; place-items: center; color: var(--accent); pointer-events: none; }
.player-art .saba-orbit { max-width: 238px; max-height: 29dvh; }
.player-header { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; padding: calc(63px + env(safe-area-inset-top)) var(--gutter) 10px; }
.cover { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 45px; border-radius: 10px; border: 1px solid var(--line); background: linear-gradient(130deg, #685677, #372c49); color: var(--accent-light); }
.cover.rose { background: linear-gradient(130deg, #705476, #41314d); }
.cover svg { width: 72%; height: 72%; }
.player-title { margin: 0 0 3px; font: 400 clamp(19px, 5vw, 23px)/1.16 var(--typeface); }
.player-subtitle { font-size: 12px; color: var(--muted); }
.player .close-player { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: var(--gutter); z-index: 3; }
.audio-note { position: absolute; bottom: calc(155px + env(safe-area-inset-bottom)); inset-inline: var(--gutter); z-index: 1; font-size: 11px; line-height: 1.4; color: var(--muted); text-align: center; }
.audio-note button { min-height: 32px; padding: 3px; color: var(--accent-light); text-decoration: underline; text-underline-offset: 3px; }
.player-controls { position: absolute; bottom: calc(24px + env(safe-area-inset-bottom)); inset-inline: var(--gutter); z-index: 2; }
.seek-row { display: flex; align-items: center; gap: 9px; margin-bottom: 15px; }
.seek-row input { width: 100%; height: 19px; accent-color: var(--accent-light); }
.seek-row time { min-width: 32px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.play-row { display: flex; align-items: center; justify-content: center; gap: clamp(19px, 8vw, 39px); }
.play-main { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-light); color: var(--ink); box-shadow: 0 4px 24px #21183149; transition: transform .2s var(--ease); }
.play-main:active { transform: scale(.94); }
.play-main svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.play-row button[aria-pressed=true] { color: var(--accent-light); background: #e1c4ea36; border-color: #f4dcf588; }
.play-row button[aria-pressed=true] svg { fill: #f0d3f38a; }
.player-header,.play-row,.close-player,.audio-note { transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s; }
.controls-hidden :is(.player-header,.play-row,.close-player,.audio-note) { opacity: 0; transform: translateY(4px); visibility: hidden; pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility 0s .45s; }
.player-message { position: absolute; z-index: 10; inset: 0; display: grid; place-items: center; padding-inline: var(--gutter); background: #2b213ad9; color: var(--accent-light); font: 400 23px/1.15 var(--typeface); text-align: center; pointer-events: none; animation: veil .48s ease both; }
.settings-body { padding: 17px var(--gutter) 25px; }
.profile-name { font: 400 23px/1.1 var(--typeface); margin: 0 0 4px; }
.profile-email { margin: 0 0 17px; font-size: 12px; word-break: break-word; color: var(--muted); }
.settings-group { margin: 9px 0 20px; }
.settings-group h2 { margin: 0 0 7px; font-size: 10px; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.setting-row { width: 100%; min-height: 47px; display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); text-align: start; font-size: 14px; }
.setting-row .icon { width: 18px; color: var(--accent); flex-shrink: 0; }
.settings-footer { padding: 12px 0 4px; color: var(--muted); text-align: center; font-size: 11px; }
.subscription h1 { margin: 0 0 16px; }
.benefit { display: flex; align-items: center; gap: 8px; margin: 9px 0; font-size: 14px; }
.sub-progress { height: 4px; border-radius: 4px; background: #eee2f14a; margin: 11px 0 4px; overflow: hidden; }
.sub-progress span { display: block; height: 100%; background: var(--accent); }
.tiny-spread { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.dialog-backdrop { align-items: center; justify-content: center; padding: 21px; z-index: 30; background: #1d1526af; }
.dialog { width: 100%; max-height: 90%; overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #3d304a; color: var(--paper); box-shadow: 0 13px 45px #1b122986; animation: sheet-rise .29s var(--ease) both; }
.dialog h2 { font: 400 25px/1.15 var(--typeface); margin: 0 0 12px; }
.dialog p { font-size: 14px; line-height: 1.55; }
.dialog input,.dialog select,.dialog textarea { max-width: 100%; min-height: 39px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--paper); }
.dialog input:not([type=checkbox]),.dialog select,.dialog textarea { width: 100%; }
.dialog textarea { min-height: 85px; }
.dialog .primary { margin-top: 10px; }
.empty { padding: 27px 5px; text-align: center; }.big-heart { color: var(--accent); font-size: 50px; }
.empty h2 { font: 400 25px/1.14 var(--typeface); margin: 9px 0; }.empty p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.audio-card,.reading-card { width: 100%; display: flex; align-items: center; gap: 11px; padding: 13px; margin-bottom: 8px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-quiet); text-align: left; }
.audio-card > span:nth-child(2) { flex: 1; }.audio-card p,.reading-card p { margin: 0; }
.audio-card small,.reading-card p { color: var(--muted); font-size: 12px; }
.reading-card { display: block; }.reading-card h2 { font: 400 20px/1.16 var(--typeface); margin: 0 0 5px; }
.breath-stage { flex: 1; min-height: 90px; display: grid; place-items: center; }
.breath-orb { position: relative; display: grid; place-items: center; width: clamp(130px, 43vw, 176px); aspect-ratio: 1; }
.breath-orb::before,.breath-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; }
.breath-orb::before { background: radial-gradient(circle at 38% 33%, #b99bc8, #806391 55%, #4d3b61 83%); opacity: .64; }
.breath-orb::after { inset: -8px; border: 1px solid var(--line); }
.breath-orb.running::before,.breath-orb.running::after { animation: breathe 10s cubic-bezier(.42,0,.4,1) infinite; }
.breath-orb span { position: relative; z-index: 1; padding: 0 8px; font: 400 21px/1.13 var(--typeface); text-align: center; color: var(--paper); text-shadow: 0 1px 7px var(--ink); }
@keyframes breathe { 0%,100% { transform: scale(.82); } 40%,50% { transform: scale(1.16); } }
.breath-duration { display: flex; justify-content: center; gap: 7px; margin: 9px; }
.breath-duration button { padding: 6px 10px; min-height: 32px; border: 1px solid var(--line); border-radius: 5px; font-size: 12px; }.breath-duration .active { background: #e8c6f13d; border-color: var(--accent); }
.switch { width: 43px; height: 26px; border-radius: 14px; padding: 3px; background: #55465f; display: inline-flex; flex: 0 0 43px; }
.switch::before { content: ''; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform .2s var(--ease); }.switch.on { background: #87659d; }.switch.on::before { transform: translateX(17px); }
.upload-label { display: block; cursor: pointer; border: 1px dashed var(--line); border-radius: 10px; padding: 14px; font-size: 13px; color: var(--accent-light); }
.upload-label input { display: block; width: 100%; margin-top: 8px; font-size: 12px; }
#toast { position: fixed; z-index: 100; bottom: calc(15px + env(safe-area-inset-bottom)); left: 50%; transform: translate(-50%, 8px); max-width: min(90vw, 370px); width: max-content; padding: 10px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--accent-light); color: var(--ink); box-shadow: 0 6px 23px #21183149; opacity: 0; pointer-events: none; transition: opacity .22s ease, transform .22s var(--ease); font-size: 13px; line-height: 1.34; }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) and (min-height: 650px) and (hover: hover) and (pointer: fine) {
  body {
    padding: clamp(14px, 4.5vh, 36px) 0;
    padding-block: clamp(14px, 4.5dvh, 36px);
    background: radial-gradient(ellipse at 50% 14%, #443653, #251d30 67%);
  }
  #app { max-width: 420px; min-height: 0; border: 1px solid #d3badd42; border-radius: 24px; box-shadow: 0 18px 85px #180f24a8; }
  .screen {
    height: min(790px, calc(100vh - clamp(28px, 9vh, 72px) - 2px));
    height: min(790px, calc(100dvh - clamp(28px, 9dvh, 72px) - 2px));
  }
  body:has(:is([data-page=home], [data-page=welcome], [data-page=login], [data-page=signup])) { background: #eee9ee; }
  #app:has(:is([data-page=home], [data-page=welcome], [data-page=login], [data-page=signup])) { border-color: #e8dfe8; border-radius: 29px; box-shadow: 0 18px 70px #2e253b1f; }
}
@media (max-height: 680px) {
  .topbar { min-height: calc(63px + env(safe-area-inset-top)); padding-block: calc(7px + env(safe-area-inset-top)) 7px; }
  .account-picker { padding-top: calc(25px + env(safe-area-inset-top)); }
  .player-art { inset: 23% 12% 34%; }
  .player-art .saba-orbit { max-height: 24dvh; }
}
@media (max-width: 350px) { .toolbar { gap: 4px; }.toolbar .round { width: 39px; height: 39px; min-height: 39px; }.back { padding-inline: 7px; } }
.motion-off *, .motion-off *::before, .motion-off *::after { animation: none!important; transition-duration: 0s!important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none!important; transition-duration: 0s!important; } }
.clinician-card .source-note { display: block; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--accent); }
.clinician-card > p:last-child strong { font: 400 20px/1.2 var(--typeface); }
.player.playing .saba-orbit-trace { transform-origin: 50% 55%; animation: swell 10s ease-in-out infinite alternate; }
@keyframes swell { from { opacity: .62; transform: scale(.985); } to { opacity: 1; transform: scale(1.035); } }
[data-page=about] .content h2 { font: 400 22px/1.2 var(--typeface); margin: 22px 0 7px; }

[data-page=onboarding] { --gutter: clamp(20px, 6vw, 29px); }
[data-page=onboarding] .progress-track { width: clamp(60px, 20vw, 92px); height: 4px; }
[data-page=onboarding] .content { padding-block: clamp(17px, 4dvh, 35px) calc(22px + env(safe-area-inset-bottom)); }
[data-page=onboarding] h1.question {
  margin: 0 0 22px;
  font: 450 clamp(21px, 5.8vw, 26px)/1.36 var(--typeface);
  letter-spacing: -.015em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
[data-page=onboarding] h1.question:has(+ .onboarding-intro) { margin-bottom: 12px; }
.onboarding-intro,
.onboarding-description {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: clamp(15px, 4.2vw, 17px);
  line-height: 1.55;
  text-wrap: pretty;
}
.onboarding-prompt {
  margin: 0 0 15px;
  font: 450 clamp(18px, 5vw, 21px)/1.35 var(--typeface);
}
[data-page=onboarding] .option-list { gap: 10px; }
[data-page=onboarding] .option {
  position: relative;
  justify-content: center;
  min-height: 48px;
  padding: 10px 16px;
  border-color: #f4e8f5ba;
  border-radius: 14px;
  background: #291f342d;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-wrap: balance;
}
[data-page=onboarding] .option.selected {
  border-color: var(--accent-light);
  background: #e8c6f143;
}
[data-page=onboarding] .option:not(.multi)::after { display: none; }
[data-page=onboarding] .option.multi { padding-inline: 40px; }
[data-page=onboarding] .option .check {
  position: absolute;
  inset-inline-end: 13px;
  width: 18px;
  height: 18px;
}
[data-page=onboarding] .bottom { padding-top: 10px; }
[data-page=onboarding] .primary { min-height: 48px; border-radius: 14px; font-size: 16px; }
.onboarding-date { display: block; position: relative; }
.onboarding-date .date-field { min-height: 52px; border-color: #f4e8f5ba; padding-inline: 16px; border-radius: 14px; }
.onboarding-date .date-field::-webkit-date-and-time-value { text-align: start; }
.onboarding-date span {
  position: absolute;
  inset: 0 42px 0 17px;
  display: flex;
  align-items: center;
  visibility: hidden;
  pointer-events: none;
}
.onboarding-date .date-field:invalid:not(:focus) { color: transparent; }
.onboarding-date .date-field:invalid:not(:focus) + span { visibility: visible; }
[data-page=onboarding] .summary h1.question { margin-bottom: 16px; font-weight: 650; }
[data-page=onboarding] .summary p,
[data-page=onboarding] .summary li { font-size: 16px; }

.onboarding-article h1.question { margin-bottom: 14px; font-weight: 650; }
.onboarding-article .onboarding-description { margin-bottom: 16px; }
.onboarding-points { margin: 0 0 18px; padding-inline-start: 21px; line-height: 1.5; }
.onboarding-points li + li { margin-top: 7px; }
.onboarding-points li::marker { color: var(--accent); }
.onboarding-panel {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #f1e3f435;
  border-radius: 17px;
  background: linear-gradient(140deg, #2a203699, #241a3099);
}
.onboarding-reference { margin: 8px 0 0; }
.onboarding-reference a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  color: var(--accent);
  text-underline-offset: 3px;
}
.onboarding-citation { margin-inline-start: .12em; font-size: .75em; line-height: 0; }
.onboarding-citation a { position: relative; color: var(--accent); font-weight: 650; text-underline-offset: 2px; }
.onboarding-citation a::after { content: ''; position: absolute; inset: -6px -9px; }
.onboarding-illustration { margin: 0 0 18px; }
.onboarding-illustration img { display: block; width: 100%; height: auto; }
.onboarding-illustration figcaption {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}
.onboarding-illustration[data-illustration=gutBrainConnection] img {
  width: auto;
  height: min(60vh, 440px);
  height: min(60dvh, 440px);
  max-width: 100%;
  object-fit: contain;
  margin-inline: auto;
}
.onboarding-illustration[data-illustration=visceralSensitivity] { width: min(100%, 250px); margin-inline: auto; }
.routine-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 9px; }
.routine-list .onboarding-panel { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px; }
.routine-list .icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: var(--accent);
  background: #f4e3f222;
}
.routine-list h2 { margin: 0 0 4px; font-size: 16px; font-weight: 650; }
.routine-list p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

.commitment-invitation .onboarding-description {
  margin-bottom: 22px;
  color: var(--paper);
  font-size: clamp(16px, 4.7vw, 20px);
  line-height: 1.6;
}
.commitment-scroll::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--commitment-progress, 0);
  background: radial-gradient(ellipse 125% 85% at 50% 112%, #bd98d5 0%, #9a73b77d 52%, transparent 100%);
}
[data-page=onboarding] .commitment-content {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: calc(clamp(25px, 7dvh, 68px) + env(safe-area-inset-bottom));
  text-align: center;
}
.commitment-card {
  flex-shrink: 0;
  margin-block: auto;
  padding: clamp(24px, 4dvh, 36px) clamp(17px, 5.5vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, #382b495c, #241a3299);
}
.commitment-card h1 {
  display: inline-block;
  margin: 0 0 clamp(18px, 3dvh, 28px);
  padding: 6px 14px;
  border-radius: 99px;
  color: var(--ink);
  background: var(--accent-light);
  font-size: 14px;
  font-weight: 650;
}
.commitment-card p {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 5vw, 21px);
  line-height: 1.55;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}
.commitment-card strong { color: var(--paper); font-weight: 650; }
.commitment-controls { padding-top: clamp(20px, 6dvh, 52px); }
.commitment-hold {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 18px;
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border-radius: 15px;
  font-size: 15px;
  line-height: 1.4;
  text-wrap: balance;
  touch-action: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.commitment-meter {
  display: block;
  width: clamp(70px, 21vw, 92px);
  height: 6px;
  border-radius: 99px;
  background: var(--line);
}
.commitment-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent-light);
  transform: scaleX(var(--commitment-progress, 0));
  transform-origin: left;
}
.commitment-confirmed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 0 0 13px;
  color: var(--accent-light);
  font-size: 14px;
}
@media (hover: hover) {
  .commitment-hold:hover { background: #eadbf21a; }
}
.motion-off .commitment-scroll::before { display: none; }
@media (prefers-reduced-motion: reduce) {
  .commitment-scroll::before { display: none; }
}

.offer-preview-screen { background: radial-gradient(ellipse at 65% 60%, #3c2d48, #261d33 75%); }
.offer-preview-screen .topbar {
  min-height: calc(62px + env(safe-area-inset-top));
  padding-block: calc(8px + env(safe-area-inset-top)) 8px;
}
.offer-preview {
  display: flex;
  flex: 1;
  justify-content: center;
  min-height: 0;
  padding-inline: 12px;
}
.offer-preview img {
  display: block;
  width: auto;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.offer-preview-screen .bottom { background: transparent; }

[data-page=paywall] {
  --paywall-line: #e4c9f633;
  color: #fff8ff;
  background:
    radial-gradient(ellipse 550px 550px at 80% 5%, #4a305c, transparent 75%),
    radial-gradient(ellipse 420px 500px at 4% 66%, #372342, transparent 70%),
    #22172f;
}
.paywall {
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.paywall-content {
  width: min(calc(100% - 28px), 462px);
  margin-inline: auto;
  padding-bottom: env(safe-area-inset-bottom);
}
.paywall-intro { padding: calc(28px + env(safe-area-inset-top)) 0 18px; text-align: center; }
.paywall-eyebrow, .paywall-label {
  color: #e1c5f4;
  font-size: 10px;
  font-weight: 780;
  letter-spacing: .105em;
  text-transform: uppercase;
}
.paywall-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 11px;
  font-size: 11px;
}
.paywall-eyebrow .icon svg { width: 15px; height: 15px; }
.paywall-intro h1 {
  margin: 0;
  font-size: clamp(32px, 8.3vw, 42px);
  font-weight: 770;
  line-height: 1.1;
  letter-spacing: -.052em;
  text-wrap: balance;
}
.paywall-feature, .paywall-included {
  border: 1px solid var(--paywall-line);
  border-radius: 22px;
  background: linear-gradient(125deg, #eecdff26, #daa5f511);
  box-shadow: 0 15px 42px #0e081622;
}
.paywall-feature { display: flex; min-height: 155px; margin-top: 13px; overflow: hidden; }
.paywall-media {
  position: relative;
  flex: 0 0 clamp(104px, 32vw, 136px);
  min-height: 155px;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #b482d64a, transparent 72%);
}
.paywall-phone {
  position: absolute;
  inset: 50% auto auto 50%;
  width: auto;
  height: calc(100% - 19px);
  max-width: calc(100% - 17px);
  object-fit: contain;
  transform: translate(-50%, -50%) rotate(-3deg);
  filter: drop-shadow(0 7px 6px #0a0612a3);
}
.paywall-science .paywall-media { min-height: 174px; }
.paywall-paper {
  position: absolute;
  top: 16px;
  left: 12px;
  width: calc(100% - 13px);
  max-width: 123px;
  height: auto;
  border: 3px solid #ffffffe6;
  border-radius: 12px;
  background: white;
  transform: rotate(-5deg);
  box-shadow: 0 4px 18px #130a1c73;
}
.paywall-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 16px 14px 16px 6px;
}
.paywall-copy h2 {
  margin: 8px 0;
  font-size: clamp(16px, 4.35vw, 18px);
  font-weight: 770;
  line-height: 1.18;
  letter-spacing: -.035em;
}
.paywall-copy p { margin: 0; color: #decfe5; font-size: 12px; line-height: 1.42; }
.paywall-copy .paywall-citation { font-size: 11.5px; font-weight: 650; }
.paywall-doi {
  margin-top: 5px;
  color: #ddc8ea;
  font-size: 10.5px;
  overflow-wrap: anywhere;
  text-underline-offset: 2px;
}
.paywall-included { margin-top: 20px; padding: 18px; }
.paywall-included h2 { margin: 0 0 14px; font-size: 16px; }
.paywall-included ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.paywall-included li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #f0e6f4;
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.43;
}
.paywall-included .icon {
  flex: 0 0 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  color: #cfa0ef;
}
.paywall-included .icon svg { width: 13px; height: 13px; stroke-width: 2.2; }
.paywall-plan {
  margin-top: 18px;
  padding: 18px 20px 17px;
  border-radius: 22px;
  color: #281a37;
  background: linear-gradient(180deg, #f6eff9, #f3e9f8);
  box-shadow: 0 20px 60px #0e081629;
}
.paywall-plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.paywall-plan-top span {
  padding: 6px 10px;
  border-radius: 99px;
  color: #754492;
  background: #e9d7f4;
  font-size: 10px;
  font-weight: 760;
  text-transform: uppercase;
}
.paywall-plan-top s { color: #75667e; font-size: 16px; font-weight: 650; }
.paywall-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 2px;
  color: #756780;
  font-size: 13px;
  font-weight: 600;
}
.paywall-price strong {
  color: #281a37;
  font-size: clamp(36px, 10.5vw, 43px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.07em;
  white-space: nowrap;
}
.paywall-saving { margin: 2px 0 16px; color: #6c577a; font-size: 12px; font-weight: 610; }
.paywall-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 57px;
  padding: 10px 12px;
  border-radius: 15px;
  color: #261332;
  background: #b973ef;
  box-shadow: 0 7px 20px #8a43be2e;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background .18s, transform .18s;
}
.paywall-cta span { font-size: 19px; }
.paywall-cta:focus-visible { outline: 3px solid #8145ab; outline-offset: 3px; }
@media (hover: hover) {
  .paywall-cta:hover { background: #cf92fb; transform: translateY(-1px); }
}
.paywall-after-cta { margin: 11px 0 0; color: #72647b; font-size: 11px; line-height: 1.35; text-align: center; }
.paywall-legal { padding: 16px 0 28px; color: #c9b7d4; font-size: 11px; line-height: 1.5; text-align: center; }
.paywall-legal span { padding-inline: 8px; }
