/* Orsely public-site redesign layer.
   The cinematic story remains in legacy-story.css; this file owns the public
   product surface, theme treatment, and responsive polish around it. */

:root,
html[data-theme="light"] {
  --bg: #f7f5ef;
  --surface-1: #fffdfa;
  --band-alt: #e8f1ed;
  --text: #14201d;
  --text-soft: #586762;
  --line-c: #dce3de;
  --header-bg: rgba(247, 245, 239, 0.92);
  --header-line: rgba(20, 32, 29, 0.09);
  --link: #17614f;
  --link-hover: #0b4539;
  --cta-bg: #17614f;
  --cta-bg-hover: #0b4539;
  --cta-text: #ffffff;
  --warm-surface: #f2e7db;
  --coral-soft: #f1d7ce;
  --coral: #c85f4f;
  --amber: #d59a39;
  --card-shadow: 0 20px 54px rgba(29, 54, 46, 0.1);
}

html[data-theme="dark"] {
  --bg: #101715;
  --surface-1: #151f1c;
  --band-alt: #1a2723;
  --text: #f2f5f2;
  --text-soft: #aab8b2;
  --line-c: #2a3833;
  --header-bg: rgba(16, 23, 21, 0.92);
  --header-line: rgba(255, 255, 255, 0.08);
  --link: #82dbba;
  --link-hover: #b0f0d8;
  --cta-bg: #82dbba;
  --cta-bg-hover: #a0e8cc;
  --cta-text: #082e25;
  --warm-surface: #27211d;
  --coral-soft: #362622;
  --coral: #ef8a77;
  --amber: #e2b35d;
  --card-shadow: 0 22px 58px rgba(0, 0, 0, 0.28);
}

body {
  background: var(--bg);
  transition: background-color 220ms ease, color 220ms ease;
}

h1,
h2,
h3,
h4,
.eyebrow,
.brand strong {
  letter-spacing: 0;
}

.site-header {
  min-height: 66px;
  padding-block: 10px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-nav {
  gap: clamp(8px, 1.35vw, 19px);
}

.site-nav a {
  font-weight: 560;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-c);
  border-radius: 50%;
  background: var(--surface-1);
  color: var(--text);
  font-size: 19px;
  line-height: 1;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--link);
  transform: translateY(-1px);
}

.theme-toggle:active {
  transform: translateY(0);
}

/* The public hero is quiet and product-led. The guide is an unframed visual,
   not a decorative card; the full story starts in the next chapter. */
.intro {
  min-height: 620px;
  height: min(820px, calc(100svh - 32px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.76fr);
  align-items: center;
  place-content: initial;
  gap: clamp(28px, 5vw, 84px);
  padding: 112px max(5vw, calc((100vw - 1180px) / 2)) 54px;
  text-align: left;
  background: var(--surface-1);
  overflow: hidden;
  isolation: isolate;
}

.intro::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line-c);
}

.intro::before {
  display: none;
}

.intro-copy {
  position: relative;
  z-index: 3;
  max-width: 690px;
}

.intro .eyebrow {
  margin-bottom: 22px;
  color: var(--link);
}

.intro h1 {
  max-width: none;
  margin: 0;
  font-size: clamp(70px, 10vw, 150px);
  font-weight: 620;
  line-height: 0.84;
  color: var(--text);
}

.hero-promise {
  max-width: 18ch;
  margin: 28px 0 0;
  font-family: var(--font-head);
  font-size: clamp(25px, 3vw, 42px);
  font-weight: 520;
  line-height: 1.12;
  color: var(--link);
}

.intro .lede {
  max-width: 52ch;
  margin: 24px 0 30px;
  font-size: clamp(17px, 1.45vw, 20px);
}

.intro-actions {
  justify-content: flex-start;
}

.beta-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.beta-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 18%, transparent);
}

.intro-guide {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: center;
  width: min(36vw, 470px);
  max-height: calc(100svh - 92px);
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(0 28px 32px rgba(30, 52, 44, 0.14));
}

.intro-proof {
  position: absolute;
  z-index: 4;
  right: max(4vw, calc((100vw - 1180px) / 2));
  bottom: 58px;
  width: min(360px, 34vw);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--line-c);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-1) 92%, transparent);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.proof-time {
  font-family: var(--font-head);
  font-weight: 650;
  color: var(--link);
}

.proof-copy {
  display: grid;
  min-width: 0;
}

.proof-copy strong,
.proof-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proof-copy small {
  color: var(--text-soft);
}

.proof-state {
  padding-left: 12px;
  border-left: 1px solid var(--line-c);
  color: var(--coral);
  font-size: 13px;
  font-weight: 700;
}

.hero-cue {
  display: none;
}

.intro h1,
.intro .lede,
.intro .eyebrow,
.hero-promise,
.beta-kicker,
.section,
.section h2,
.section h3,
.section h4,
.section p,
.section li,
.section .sub,
.faq summary,
.faq details p,
.safety-note {
  text-shadow: none;
}

.intro h1,
.section h2,
.section h3,
.section h4,
.faq summary {
  color: var(--text);
}

.intro .lede,
.section p,
.section li,
.section .sub,
.faq details p,
.safety-note {
  color: var(--text-soft);
}

/* The aurora belongs to the dark theme and the cinematic story. */
html[data-theme="light"] .ambient[data-state="hero"],
html[data-theme="light"] .ambient[data-state="content"],
html[data-theme="light"] .ambient[data-state="footer"] {
  opacity: 0;
}

/* Keep the story's established visual language isolated and immersive. */
.room-track,
.room-stage,
body.story-active {
  --text: #eaf4f0;
  --text-soft: #b0c1ba;
  --link: #8fe4c5;
  --line-c: #31433c;
}

.choose-intro {
  background: #101715;
  color: #f2f5f2;
}

.choose-intro .sub {
  color: #aab8b2;
}

/* Ordinary product sections alternate restrained full-width bands. */
.section {
  padding: clamp(76px, 9vw, 132px) 0;
  content-visibility: auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: clamp(42px, 6vw, 74px);
}

.section-head h2 {
  max-width: 15ch;
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 560;
  line-height: 1.02;
}

.section-head .sub {
  max-width: 58ch;
  margin-top: 18px;
}

.band-white {
  background: var(--surface-1);
}

.band-mint {
  background: var(--band-alt);
}

.stack-gap {
  gap: clamp(72px, 10vw, 138px);
}

.split {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: clamp(42px, 7vw, 92px);
}

.split.rev {
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1fr);
}

.split h3 {
  max-width: 19ch;
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 560;
}

.split p,
.split ul {
  max-width: 60ch;
}

.feature-visual,
.faq,
.safety-note {
  border-color: var(--line-c);
  border-radius: 8px;
  background: var(--surface-1);
  box-shadow: var(--card-shadow);
}

.feature-visual {
  padding: clamp(18px, 3vw, 30px);
}

.feature-visual .demo-card {
  border-radius: 6px;
  background: transparent;
  border-color: var(--line-c);
}

.feature-visual .demo-row {
  background: color-mix(in srgb, var(--band-alt) 70%, var(--surface-1));
}

.feature-visual .demo-title,
.feature-visual .demo-row .n,
.feature-visual .steps3 .step {
  color: var(--text);
}

.feature-visual .demo-row .t,
.feature-visual .lock-demo .lock-text {
  color: var(--text-soft);
}

#your-circle .feature-visual {
  border-top: 5px solid var(--coral);
}

#privacy .safety-note {
  border-left: 5px solid var(--amber);
}

.faq {
  max-width: 900px;
}

.faq details:not(:last-child)::after {
  border-bottom-color: var(--line-c);
}

.join-band {
  background: var(--surface-1);
}

.join-band .wrap {
  border-radius: 8px;
  background: #0e4439;
  box-shadow: 0 30px 80px rgba(10, 43, 35, 0.18);
}

.join-band h2 {
  color: #ffffff;
}

.join-band p,
.join-band .sub {
  color: #bfd2ca;
}

.site-footer {
  background: #0c1412;
}

.site-footer .motto {
  max-width: 18ch;
}

@media (max-width: 980px) {
  .site-nav a:not(.btn),
  .site-nav .theme-toggle {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  .intro {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.62fr);
  }

  .intro h1 {
    font-size: clamp(68px, 12vw, 112px);
  }

  .intro-proof {
    width: min(330px, 42vw);
  }
}

@media (max-width: 720px) {
  .site-header {
    min-height: 62px;
  }

  .site-nav .btn {
    display: none;
  }

  .intro {
    min-height: 760px;
    height: calc(100svh - 64px);
    grid-template-columns: 1fr;
    align-content: start;
    gap: 0;
    padding: 112px 22px 32px;
  }

  .intro-copy {
    z-index: 5;
  }

  .intro h1 {
    font-size: clamp(66px, 24vw, 102px);
  }

  .hero-promise {
    margin-top: 21px;
    font-size: clamp(23px, 7vw, 33px);
  }

  .intro .lede {
    max-width: 36ch;
    margin: 18px 0 22px;
    font-size: 16px;
  }

  .intro-actions {
    flex-wrap: nowrap;
  }

  .intro-actions .btn {
    min-width: 0;
    padding-inline: 17px;
    font-size: 14px;
  }

  .beta-kicker {
    margin-top: 18px;
  }

  .intro-guide {
    position: absolute;
    right: -74px;
    bottom: -86px;
    width: min(66vw, 340px);
    max-height: 49svh;
    opacity: 0.44;
  }

  .intro-proof {
    right: 18px;
    bottom: 24px;
    width: calc(100% - 36px);
    max-width: 410px;
  }

  .hero-cue {
    display: none;
  }

  .section {
    padding: 72px 0;
  }

  .section-head h2 {
    font-size: clamp(34px, 11vw, 50px);
  }

  .split,
  .split.rev {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split.rev > :first-child {
    order: 2;
  }

  .feature-visual {
    width: 100%;
  }

  .join-band .wrap {
    width: calc(100% - 24px);
  }
}

@media (max-width: 410px) {
  .intro {
    min-height: calc(100svh - 36px);
    height: auto;
    padding: 88px 18px 18px;
  }

  .intro-actions {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    max-width: none;
  }

  .intro-actions .btn {
    width: auto;
    padding-inline: 13px;
    font-size: 13px;
  }

  .intro h1 {
    font-size: clamp(62px, 22vw, 82px);
  }

  .hero-promise {
    margin-top: 14px;
    font-size: clamp(21px, 6.8vw, 28px);
  }

  .intro .lede {
    margin: 12px 0 16px;
    font-size: 14px;
    line-height: 1.48;
  }

  .beta-kicker {
    margin-top: 12px;
    font-size: 12px;
  }

  .intro-guide {
    bottom: -54px;
    opacity: 0.34;
  }

  .intro-proof {
    right: 12px;
    bottom: 12px;
    width: calc(100% - 24px);
    grid-template-columns: auto minmax(0, 1fr);
  }

  .proof-state {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-toggle,
  .btn,
  .intro-guide {
    transition: none;
  }
}
