/* Marketing editions. Product/demo tokens deliberately remain in their original scope. */
:root {
  --edition-ground: #f5f7fb;
  --edition-field: var(--edition-ground);
  --edition-ink: #142d49;
  --edition-copy: #4c6078;
  --edition-accent: #2454db;
  --edition-on-accent: #ffffff;
  --edition-surface: #ffffff;
  --edition-rule: #d6e0ec;
  --edition-wash: #e6edfb;
  --edition-light: rgb(129 172 255 / .18);
  --edition-contour: rgb(45 94 176 / .065);
  --edition-shadow: 0 14px 26px -14px rgb(25 52 90 / .32);
  --edition-ease: cubic-bezier(.16, 1, .3, 1);
}
html[data-edition="obsidian"] {
  --edition-ground: #081425;
  --edition-ink: #f0f6ff;
  --edition-copy: #afc0d8;
  --edition-accent: #84d9f5;
  --edition-on-accent: #0b2638;
  --edition-surface: #12243a;
  --edition-rule: #30465e;
  --edition-wash: #142d46;
  --edition-light: rgb(41 115 173 / .23);
  --edition-contour: rgb(126 187 232 / .10);
  --edition-shadow: 0 10px 26px -12px rgb(0 0 0 / .6);
}
html[data-edition="aurora"] {
  --edition-ground: #edf7fc;
  --edition-field: linear-gradient(140deg, #f7fcff 0%, #edf7fc 45%, #dceef4 100%);
  --edition-ink: #10334c;
  --edition-copy: #395f74;
  --edition-accent: #096b91;
  --edition-on-accent: #ffffff;
  --edition-surface: #f7fdff;
  --edition-rule: #c7e0e9;
  --edition-wash: #d7f1f5;
  --edition-light: rgb(68 184 211 / .17);
  --edition-contour: rgb(22 120 160 / .10);
}
html[data-edition]:not([data-edition="original"]) { background: var(--edition-ground); scrollbar-color: var(--edition-copy) var(--edition-ground); }
html[data-edition]:not([data-edition="original"]) body {
  color: var(--edition-copy);
  background: var(--edition-field);
  background-attachment: scroll;
}
html[data-edition]:not([data-edition="original"]) body::before { background: var(--edition-contour); }
html[data-edition]:not([data-edition="original"]) body::after { display: none; }
.edition-light { display: none; }
html[data-edition]:not([data-edition="original"]) .edition-light {
  display: block;
  position: fixed;
  z-index: -1;
  pointer-events: none;
  inset: 0 auto auto 0;
  width: min(900px, 110vw);
  height: min(720px, 90vh);
  mask: none;
  -webkit-mask: none;
  background: radial-gradient(ellipse, var(--edition-light), transparent 70%);
  transform: translate3d(62vw, 38vh, 0) translate(-50%, -50%);
  opacity: 1;
  contain: strict;
}
/* The opening and homepage share the same outer stage. Product surfaces stay unchanged. */
html[data-edition]:not([data-edition="original"]) #orlino-opening .opening-backdrop {
  background: var(--edition-field) !important;
  background-attachment: scroll !important;
}
html[data-edition]:not([data-edition="original"]) #orlino-opening .opening-backdrop::before {
  background: var(--edition-contour);
}
html[data-edition]:not([data-edition="original"]) #orlino-opening .opening-backdrop::after {
  inset: 38vh auto auto 62vw;
  width: min(900px, 110vw);
  height: min(720px, 90vh);
  background: radial-gradient(ellipse, var(--edition-light), transparent 70%);
  mask: none;
  -webkit-mask: none;
  transform: translate(-50%, -50%);
  opacity: 1;
}
html[data-edition]:not([data-edition="original"]) #orlino-opening .opening-masthead .brand {
  color: var(--edition-ink) !important;
}
html[data-edition]:not([data-edition="original"]) #orlino-opening .opening-controls {
  background: transparent;
  box-shadow: none;
}
html[data-edition]:not([data-edition="original"]) #orlino-opening .opening-controls button[aria-pressed="true"] {
  --face: var(--edition-wash);
  --text: var(--edition-ink);
  --rim: var(--edition-rule);
}
html[data-edition]:not([data-edition="original"]) #orlino-opening .opening-progress {
  background: var(--edition-rule);
}
html[data-edition]:not([data-edition="original"]) #orlino-opening .opening-progress i {
  background: var(--edition-accent);
}
html[data-edition]:not([data-edition="original"]) #orlino-opening :is(.opening-chapters, .opening-time, .opening-caption) {
  color: var(--edition-copy) !important;
}
html[data-edition]:not([data-edition="original"]) #orlino-opening .opening-chapters .is-current {
  color: var(--edition-ink);
}

html[data-edition]:not([data-edition="original"]) body .site-header {
  background: var(--edition-ground);
  border-bottom-color: var(--edition-rule);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-edition]:not([data-edition="original"]) body .site-header :is(.brand, nav, nav > a, .chapter-menu-toggle) { color: var(--edition-ink); }
html[data-edition]:not([data-edition="original"]) body .chapter-menu-panel { background: var(--edition-surface); color: var(--edition-ink); border-color: var(--edition-rule); }
html[data-edition]:not([data-edition="original"]) body .chapter-menu-panel a { color: var(--edition-ink); }
html[data-edition]:not([data-edition="original"]) body .chapter-menu-panel a:is(:hover, :focus-visible) { background: var(--edition-wash); }
html[data-edition]:not([data-edition="original"]) body .chapter-menu[open] > .chapter-menu-toggle,
html[data-edition]:not([data-edition="original"]) body .chapter-menu-toggle:hover { background: var(--edition-wash); }
html[data-edition]:not([data-edition="original"]) body .chapter-menu-resources { border-color: var(--edition-rule); }
body .site-header > .brand { min-height: 44px; }
html[data-edition]:not([data-edition="original"]) body #main [data-edition-heading],
html[data-edition]:not([data-edition="original"]) body #main #faq-title { color: var(--edition-ink) !important; }
html[data-edition]:not([data-edition="original"]) body #main [data-edition-heading] { letter-spacing: -.035em !important; }
html[data-edition]:not([data-edition="original"]) body #main [data-edition-heading] .lift-char {
  transform: translate3d(0, var(--letter-y, 0px), 0);
  transition: transform 200ms var(--edition-ease), color 180ms ease-out;
  transition-delay: 0s;
  color: inherit;
}
html[data-edition]:not([data-edition="original"]) body #main [data-edition-heading] .lift-char[data-near] { color: var(--edition-accent); }
html[data-edition="obsidian"] body #main [data-edition-heading] { font-weight: 600 !important; }
html[data-edition]:not([data-edition="original"]) body #main :is(.premium-hero-copy, .result-arrival-copy, .workflow-intro, .chapter-copy, .feature-copy, .anywhere-copy, .anywhere-story-copy, .experts-story-copy, .pet-copy, .life-copy, .lc-life-copy, .closing) > :is(p, .feature-lead),
html[data-edition]:not([data-edition="original"]) body #main .story-copy-viewport p { color: var(--edition-copy) !important; }
html[data-edition]:not([data-edition="original"]) body :is(.feature-request, .feature-outcome p) { color: var(--edition-copy) !important; }
html[data-edition]:not([data-edition="original"]) body .feature-request { border-color: var(--edition-accent) !important; }
html[data-edition]:not([data-edition="original"]) body :is(.feature-request > span, .feature-outcome > span, .pet-intro, .pet-chapters h3, .pet-chapters p) { color: var(--edition-copy) !important; }
html[data-edition]:not([data-edition="original"]) body #main .hero-value {
  margin: clamp(18px, 2.2vh, 24px) 0 0;
  max-width: 34ch;
  font-size: clamp(16px, 1.4vw, 18px) !important;
  line-height: 1.65 !important;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
/* Restore the conversion action hidden by a previous blanket selector. */
body #main .closing > p { display: block !important; max-width: 44ch; margin-inline: auto; }
body #main .closing .button { display: inline-flex !important; }
body #main .closing { padding-bottom: 96px; }
html[data-edition]:not([data-edition="original"]) body :is(.site-header, .premium-hero-copy, .pet-copy, .closing, .opening-controls) .fx-button {
  --face: var(--edition-surface);
  --edge: color-mix(in srgb, var(--edition-rule) 72%, var(--edition-ink));
  --text: var(--edition-ink);
  --rim: var(--edition-rule);
  --depth: 5px;
  --press: 0px;
  --lift: 0px;
  border-radius: 12px !important;
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / .55),
    inset 0 -1px 0 rgb(10 42 68 / .08),
    0 calc(var(--depth) - var(--press) + var(--lift)) 0 var(--edge),
    0 calc(var(--depth) + 13px + var(--lift) * 3) 26px -15px rgb(18 54 82 / .34) !important;
  min-height: 44px !important;
  overflow: hidden;
  transition: transform 240ms var(--edition-ease), box-shadow 240ms var(--edition-ease), color 160ms ease-out !important;
}
html[data-edition]:not([data-edition="original"]) body :is(.site-header, .premium-hero-copy, .pet-copy, .closing, .opening-controls) :is(.button-dark, .fx-button--primary) {
  --face: var(--edition-accent);
  --edge: color-mix(in srgb, var(--edition-accent) 68%, #052b43);
  --text: var(--edition-on-accent);
  --rim: rgb(255 255 255 / .18);
}
html[data-edition]:not([data-edition="original"]) body :is(.site-header, .premium-hero-copy, .pet-copy, .closing, .opening-controls) .fx-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 25%, rgb(255 255 255 / .24) 50%, transparent 75%);
  transform: translateX(-130%);
}
@media (hover: hover) and (pointer: fine) {
  html[data-edition]:not([data-edition="original"]) body :is(.site-header, .premium-hero-copy, .pet-copy, .closing, .opening-controls) .fx-button:hover::before { transform: translateX(130%); transition: transform 650ms var(--edition-ease); }
  html[data-edition]:not([data-edition="original"]) body :is(.site-header, .premium-hero-copy, .pet-copy, .closing, .opening-controls) .fx-button:hover { --lift: 2px; --sheen: .16; }
  html[data-edition]:not([data-edition="original"]) .site-header nav > a:hover { color: var(--edition-accent); }
}
html[data-edition]:not([data-edition="original"]) body :is(.site-header, .premium-hero-copy, .pet-copy, .closing, .opening-controls) .fx-button:active { --press: 4px; }
html[data-edition]:not([data-edition="original"]) body .site-header .motion-toggle[aria-pressed="true"] { --face: var(--edition-wash); --text: var(--edition-ink); }
html[data-edition]:not([data-edition="original"]) .motion-toggle i { background: var(--edition-rule); }
html[data-edition]:not([data-edition="original"]) .motion-toggle i::after { background: var(--edition-accent); }
html[data-edition]:not([data-edition="original"]) body :is(.site-header, .premium-hero-copy, .closing, .orlino-footer, #faq, .opening-controls) :focus-visible { outline-color: var(--edition-accent) !important; }
html[data-edition]:not([data-edition="original"]) body #faq .faq-list :is(summary, summary:hover, details[open] summary) { color: var(--edition-ink); }
html[data-edition]:not([data-edition="original"]) body #faq .faq-list p { color: var(--edition-copy); }
html[data-edition]:not([data-edition="original"]) body #faq .faq-list :is(a, summary > span) { color: var(--edition-accent); }
html[data-edition]:not([data-edition="original"]) body #faq .faq-list details { border-color: var(--edition-rule); }
html[data-edition]:not([data-edition="original"]) body .orlino-footer { border-color: var(--edition-rule); }
html[data-edition]:not([data-edition="original"]) body .orlino-footer :is(.brand, h2) { color: var(--edition-ink); }
html[data-edition]:not([data-edition="original"]) body .orlino-footer :is(p, a, button, .footer-bottom-bar) { color: var(--edition-copy); }
html[data-edition]:not([data-edition="original"]) body .orlino-footer a:hover { color: var(--edition-accent); }
html[data-edition]:not([data-edition="original"]) ::selection { background: var(--edition-accent); color: var(--edition-on-accent); }

/* Review control, outside the product and story. It never changes scroll or demo state. */
.edition-picker {
  position: fixed;
  z-index: 980;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 212px;
  color: var(--edition-ink);
  font-size: 13px;
  line-height: 1.5;
}
.edition-picker > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 11px 16px;
  border-radius: 12px;
  background: var(--edition-surface);
  border: 1px solid var(--edition-rule);
  box-shadow: var(--edition-shadow);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.edition-picker > summary::-webkit-details-marker { display: none; }
.edition-picker > summary svg { width: 16px; height: 16px; transition: transform 180ms ease; }
.edition-picker[open] > summary svg { transform: rotate(180deg); }
.edition-panel {
  position: absolute;
  right: 0;
  bottom: 56px;
  width: 296px;
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 150px);
  overflow: auto;
  padding: 16px;
  background: var(--edition-surface);
  color: var(--edition-ink);
  border: 1px solid var(--edition-rule);
  border-radius: 16px;
  box-shadow: 0 16px 40px -16px rgb(0 16 40 / .3);
}
.edition-panel > p { margin: 0 0 12px; font-size: 13px; color: var(--edition-copy); }
.edition-option {
  display: grid;
  grid-template-columns: 26px 1fr 16px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 10px;
  text-align: left;
  color: var(--edition-ink);
  border: 0;
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}
.edition-option[aria-pressed="true"], .edition-option:hover { background: var(--edition-wash); }
.edition-option strong { display: block; font-size: 14px; font-weight: 600; }
.edition-option small { display: block; font-size: 12px; color: var(--edition-copy); margin-top: 2px; }
.edition-option i { display: block; width: 25px; height: 25px; border-radius: 50%; border: 1px solid #8fa0b6; }
.edition-option[data-style="titanium"] i { background: #f5f7fb; }
.edition-option[data-style="obsidian"] i { background: #081425; }
.edition-option[data-style="aurora"] i { background: #b8e9f5; }
.edition-option[data-style="original"] i { background: #e0e5ee; }
.edition-option .edition-check { visibility: hidden; }
.edition-option[aria-pressed="true"] .edition-check { visibility: visible; }
.edition-option svg { width: 16px; height: 16px; }
.edition-picker :focus-visible { outline: 2px solid var(--edition-accent); outline-offset: 3px; }
.edition-panel .edition-hint { margin: 12px 2px 0; line-height: 1.6; }
.opening-active .edition-picker, .opening-pending .edition-picker, .dialog-open .edition-picker { visibility: hidden; }
@media (max-width: 699px) {
  html[data-edition]:not([data-edition="original"]) body #main .hero-value { margin-top: 16px; max-width: 32ch; }
  .edition-picker { right: max(12px, env(safe-area-inset-right)); bottom: max(12px, env(safe-area-inset-bottom)); width: 192px; }
  .edition-panel { max-width: calc(100vw - 24px); }
  html[data-edition]:not([data-edition="original"]) .edition-light { opacity: .65; }
  html[data-edition]:not([data-edition="original"]) body #main .closing > h2 { font-size: clamp(32px, 9vw, 48px) !important; }
}
@media (max-width: 359px) {
  body .site-header { padding-inline: 10px; gap: 4px; }
  body .site-header .header-actions { gap: 6px; }
  body .site-header .brand { font-size: 22px; gap: 4px; }
  body .site-header .orlino-brand-icon { width: 26px; height: 26px; }
  body .site-header .header-actions .button-dark { padding-inline: 9px !important; gap: 5px !important; }
}
@media (prefers-reduced-motion: reduce), (hover: none), (pointer: coarse) {
  html[data-edition]:not([data-edition="original"]) .edition-light { transform: translate3d(12vw, 2vh, 0); }
  html[data-edition]:not([data-edition="original"]) body #main [data-edition-heading] .lift-char { transform: none !important; }
  html[data-edition]:not([data-edition="original"]) body :is(.site-header, .premium-hero-copy, .pet-copy, .closing, .opening-controls) .fx-button::before { display: none; }
  html[data-edition]:not([data-edition="original"]) body :is(.site-header, .premium-hero-copy, .pet-copy, .closing, .opening-controls) .fx-button { transform: none !important; }
}
html.reduced-motion body #main [data-edition-heading] .lift-char { transform: none !important; }
html.reduced-motion body :is(.site-header, .premium-hero-copy, .pet-copy, .closing, .opening-controls) .fx-button::before { display: none; }
html.reduced-motion .edition-light { transform: translate3d(12vw, 2vh, 0) !important; }

/* The intro controller intentionally skips small/reduced-motion screens.
   Override the generic button display rule so its unavailable replay stays hidden. */
@media (max-width: 699px), (max-height: 599px), (prefers-reduced-motion: reduce) {
  body #main .opening-replay-main { display: none !important; }
}
html.reduced-motion body #main .opening-replay-main,
body.reduced-motion #main .opening-replay-main { display: none !important; }

/* Marketing copy rhythm: keep supporting copy attached to its headline and
   give the primary action enough breathing room to read as the next step. */
body #main #top .premium-hero-copy > h1 { margin-bottom: 0 !important; }
body #main #top .premium-hero-copy > .premium-hero-actions {
  margin-top: clamp(30px, 3.8vh, 40px) !important;
}
body #main :is(
  .result-arrival-copy, .workflow-intro, .chapter-copy, .feature-copy,
  .anywhere-copy, .anywhere-story-copy, .experts-story-copy,
  .life-copy, .lc-life-copy, .pet-copy
) > :is(p:not(.eyebrow), .feature-lead, .life-sub, .pet-intro) {
  margin-top: clamp(16px, 2.2vh, 24px) !important;
}
body #main :is(
  .premium-hero-copy, .result-arrival-copy, .workflow-intro, .chapter-copy,
  .feature-copy, .anywhere-copy, .anywhere-story-copy, .experts-story-copy,
  .life-copy, .lc-life-copy, .pet-copy
) > :is(.premium-hero-actions, .feature-link, .lm-life-cta, .pet-ctas) {
  margin-top: clamp(28px, 3.4vh, 38px) !important;
}
@media (min-width: 700px) and (max-width: 1099px) {
  body #main #top .premium-hero-copy > .hero-value { margin-top: 14px !important; }
  body #main #top .premium-hero-copy > .premium-hero-actions { margin-top: 0 !important; }
}
@media (max-width: 699px) {
  body #main #top .premium-hero-copy > .hero-value { margin-top: 16px !important; }
  body #main #top .premium-hero-copy > .premium-hero-actions { margin-top: 28px !important; }
}

/* Legacy hero rules hid every paragraph; this is the one product explanation. */
body #main #top .premium-hero-copy > .hero-value { display: block !important; }
html[data-edition]:not([data-edition="original"]) body .opening-replay-main .opening-play-icon { background: transparent !important; width: 20px !important; height: 20px !important; display: inline-flex; align-items: center; justify-content: center; }
html[data-edition]:not([data-edition="original"]) body #pet .pet-copy > .section-kicker { color: var(--edition-copy) !important; }
@media (min-width: 700px) and (max-width: 1099px) {
  body #main #top .premium-hero-copy {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 14px 28px;
    align-items: center;
  }
  body #main #top .premium-hero-copy > h1 {
    grid-column: 1;
    grid-row: 1;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
  body #main #top .premium-hero-copy > .hero-value {
    max-width: 40ch;
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }
  body #main #top .premium-hero-copy > .premium-hero-actions {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }
}


/* Homepage copy revision: product positioning, trial terms, and app availability. */
body #main #top .hero-positioning {
  display: block;
  max-width: 38ch;
  margin-bottom: 18px;
  color: var(--edition-copy, #536879);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}
body #main #top .premium-hero-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
body #main #top .hero-trial-note {
  max-width: 38ch;
  color: var(--edition-copy, #536879);
  font-size: 12px;
  line-height: 1.6;
}
body #main #top .hero-trial-note > span { display: block; }
body #main #top .homepage-preview-note {
  margin-top: 8px;
  color: var(--edition-copy, #536879);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
body #main .orlino-downloads .download-availability {
  display: block;
  padding: 5px 2px 0;
  color: var(--edition-copy, #536879);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
}
body #main .wm-plan > .wm-plan-terms { font-size: 11px; line-height: 1.5; }
@media (min-width: 700px) and (max-width: 1099px) {
  body #main #top .hero-positioning { grid-column: 1; grid-row: 1; margin: 0; }
  body #main #top .premium-hero-copy > h1 { grid-row: 2; }
  body #main #top .premium-hero-copy > .hero-value { grid-row: 3; }
  body #main #top .premium-hero-copy > .premium-hero-actions { grid-row: 1 / span 3; }
}
@media (max-width: 699px) {
  body #main #top .hero-positioning { margin-bottom: 14px; font-size: 12px; }
  body #main #top .hero-trial-note { font-size: 12px; }
}
