/* Stello landing polish. Legal and support pages keep style.css unchanged.
   Craft workflow: unslop by Damir Sokolovsky (@heydamir), CC BY 4.0. */
.landing {
  --space: #101f3b;
  --starlight: #f8faff;
  --sky-secondary: #c7d2e4;
  --sky-muted: #aebed5;
  --line: #253d621a;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: 'Avenir Next', 'Apple SD Gothic Neo', system-ui, sans-serif;
}
.landing .brand {
  gap: 8px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.landing header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 96px;
  color: var(--starlight);
}
.landing header .brand img {
  width: 36px;
  height: 36px;
}
.landing nav {
  gap: 32px;
}
.landing nav a,
.landing footer a {
  transition: color 160ms var(--ease);
}
.landing nav a:hover {
  color: var(--sky-secondary);
}
.landing footer a:hover {
  color: var(--ink);
}
.landing .small-button {
  padding: 12px 20px;
  border-color: #f8faff33;
  border-radius: 8px;
}
.landing .skip {
  color: var(--ink);
}
.landing .hero {
  position: relative;
  isolation: isolate;
  max-width: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(760px, 100svh, 900px);
  padding: 144px max(48px, calc((100vw - 1184px) / 2)) 112px;
  gap: 24px;
  color: var(--starlight);
  background: var(--space);
  overflow: hidden;
}
.sky-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: var(--sky-muted);
  opacity: 0.5;
  pointer-events: none;
}
.landing .hero-copy {
  position: relative;
  z-index: 2;
}
.landing h1 {
  font-size: clamp(44px, 4.2vw, 60px);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0;
}
.landing .lead {
  font-size: 18px;
  line-height: 1.75;
  color: var(--sky-secondary);
  max-width: 460px;
  margin: 28px 0 32px;
  text-wrap: pretty;
}
.landing .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  background: var(--starlight);
  color: var(--ink);
  transition:
    background-color 160ms var(--ease),
    transform 160ms var(--ease);
}
.landing .button:hover {
  background: var(--pale);
}
.landing .button:active {
  transform: scale(0.98);
}
.landing .availability {
  color: var(--sky-muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 16px 0 0;
}
.landing .universe {
  height: 520px;
  min-width: 0;
  border-radius: 0;
  background: none;
}
.landing .astri {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: none;
  transform: rotate(-5deg);
}
.landing .hello {
  top: 0;
  right: 0;
  max-width: 100%;
  padding: 16px 20px;
  border: 1px solid #f8faff26;
  border-radius: 16px 16px 16px 4px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--starlight);
  background: #1d2d47;
  box-shadow: none;
}
.landing .caption {
  bottom: 0;
  color: var(--sky-muted);
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.scroll-cue {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  gap: 12px;
  margin: -72px auto 24px;
  padding: 12px 20px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--sky-secondary);
}
.scroll-cue span {
  font-size: 20px;
}
.landing h2 {
  font-size: clamp(32px, 3.1vw, 44px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.landing .screens {
  padding: 96px 24px;
}
.landing .screens-heading {
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}
.landing .screens-heading h2 {
  margin-bottom: 0;
}
.landing .screens-heading p {
  max-width: 360px;
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
}
.landing .screen-grid {
  gap: 32px;
  align-items: start;
}
.landing .screen-grid img {
  border-radius: 16px;
}
.landing .screen-grid h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  margin: 24px 0 8px;
}
.landing .screen-grid p {
  font-size: 15px;
  line-height: 1.75;
}
.landing .capture-note {
  font-size: 12px;
  margin: 32px 0 0;
}
.landing .conversation {
  background: var(--pale);
  padding: 96px max(48px, calc((100vw - 1184px) / 2));
  align-items: center;
  gap: 64px;
}
.landing .section-note {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
}
.landing .conversation > div > p,
.landing .meet p,
.landing .reading p {
  font-size: 17px;
  line-height: 1.8;
}
.landing .topics {
  gap: 8px;
  margin-top: 24px;
}
.landing .topics button {
  min-height: 44px;
  padding: 12px 16px;
  border-color: #253d6233;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  transition:
    background-color 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease);
}
.landing .topics button:hover {
  background: #253d620a;
}
.landing .topics button[aria-pressed='true'] {
  background: var(--ink);
  color: var(--starlight);
  border-color: var(--ink);
}
.landing .chat-example {
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 8px 24px #00000006;
}
.landing .chat-top {
  gap: 8px;
  padding-bottom: 24px;
  font-weight: 500;
}
.landing #sample {
  min-height: 216px;
  padding-top: 16px;
}
.landing .bubble {
  padding: 16px;
  margin: 16px 0;
  line-height: 1.75;
}
.landing .user {
  margin-left: auto;
  border-radius: 12px 12px 4px 12px;
}
.landing .astri-reply {
  padding-left: 0;
}
.landing .chat-example .example-label {
  font-size: 12px;
  line-height: 1.65;
  margin: 16px 0 0;
}
.landing .meet {
  padding: 96px 48px;
  gap: 96px;
}
.landing .portrait {
  background: var(--pale);
}
.landing .meet p {
  margin: 24px 0 0;
}
.landing .reading {
  background: var(--space);
  gap: 80px;
  padding: 88px max(48px, calc((100vw - 1088px) / 2));
}
.landing .reading p {
  color: var(--sky-secondary);
  margin: 0 0 24px;
}
.landing .reading .section-note {
  color: var(--sky-muted);
}
.landing .reading .fine {
  font-size: 14px;
  color: var(--sky-muted);
  margin-bottom: 0;
}
.landing .faq {
  padding: 96px 32px;
}
.landing .faq h2 {
  margin-bottom: 32px;
}
.landing details {
  padding: 24px 0;
}
.landing summary {
  list-style: none;
  position: relative;
  padding-right: 40px;
  transition: color 160ms var(--ease);
}
.landing summary::-webkit-details-marker {
  display: none;
}
.landing summary::after {
  content: '+';
  position: absolute;
  right: 4px;
  top: -2px;
  font-size: 24px;
  font-weight: 400;
  color: var(--muted);
  transition: transform 180ms var(--ease);
}
.landing details[open] summary::after {
  transform: rotate(45deg);
}
.landing summary:hover {
  color: #354f7d;
}
.landing details p a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.landing .release {
  padding: 32px 24px 96px;
}
.landing .release h2 {
  margin: 24px 0 16px;
}
.landing .store-status {
  gap: 16px;
  margin: 32px 0 16px;
}
.landing .store-status > span {
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 500;
}
.landing .store-status small {
  font-size: 12px;
  margin-top: 8px;
}
.landing footer {
  padding: 32px 24px 40px;
  gap: 24px;
}
.landing footer .brand {
  font-size: 20px;
}
.landing footer > p {
  display: none;
}
@keyframes landing-arrive {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .landing .hero-copy {
    animation: landing-arrive 480ms var(--ease) both;
  }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .landing .hero {
    padding-left: 32px;
    padding-right: 32px;
  }
  .landing h1 {
    font-size: 44px;
  }
  .landing .universe {
    height: 440px;
  }
  .landing .hello {
    font-size: 13px;
    padding: 12px 16px;
  }
  .landing .conversation {
    gap: 32px;
    padding-left: 32px;
    padding-right: 32px;
  }
  .landing .meet {
    gap: 48px;
  }
  .landing footer {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .landing header {
    height: 80px;
    padding: 0 24px;
  }
  .landing nav {
    gap: 16px;
    font-size: 13px;
  }
  .landing nav > a:not([lang]) {
    display: none;
  }
  .landing nav > a[lang] {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .landing .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
    padding: 120px 24px 80px;
    gap: 32px;
  }
  .landing h1 {
    font-size: clamp(32px, 9.6vw, 44px);
  }
  .landing:lang(ko) h1 {
    font-size: clamp(30px, 8.5vw, 40px);
    line-height: 1.25;
  }
  .landing .lead {
    font-size: 16px;
    line-height: 1.75;
    margin: 24px 0;
    max-width: 440px;
  }
  .landing .button {
    min-height: 48px;
  }
  .landing .availability {
    font-size: 12px;
  }
  .landing .universe {
    width: 100%;
    max-width: 400px;
    height: 320px;
    margin: 0 auto;
  }
  .landing .astri {
    width: 100%;
    height: 100%;
  }
  .landing .hello {
    font-size: 12px;
    padding: 12px 16px;
    top: 0;
    right: 0;
  }
  .landing .caption {
    font-size: 12px;
    bottom: -8px;
  }
  .scroll-cue {
    margin-top: -64px;
    margin-bottom: 16px;
  }
  .landing h2 {
    font-size: 32px;
    line-height: 1.3;
  }
  .landing .screens {
    padding: 64px 24px;
  }
  .landing .screens-heading {
    display: block;
    margin-bottom: 32px;
  }
  .landing .screens-heading p {
    margin-top: 24px;
  }
  .landing .screen-grid {
    gap: 48px;
  }
  .landing .screen-grid figure {
    width: 100%;
    max-width: 360px;
  }
  .landing .screen-grid h3 {
    margin-top: 20px;
  }
  .landing .capture-note {
    margin-top: 32px;
  }
  .landing .conversation {
    padding: 64px 24px;
    gap: 32px;
  }
  .landing .chat-example {
    padding: 24px;
  }
  .landing #sample {
    min-height: 232px;
  }
  .landing .bubble {
    max-width: 100%;
  }
  .landing .meet {
    padding: 64px 24px;
    gap: 40px;
  }
  .landing .reading {
    padding: 64px 24px;
    gap: 16px;
  }
  .landing .reading h2 {
    margin-bottom: 0;
  }
  .landing .faq {
    padding: 64px 24px;
  }
  .landing .release {
    padding: 16px 24px 64px;
  }
  .landing .store-status {
    gap: 8px;
  }
  .landing .store-status > span {
    padding: 16px 12px;
    font-size: 16px;
  }
  .landing footer {
    padding: 24px 0 32px;
    gap: 16px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing .hero-copy {
    animation: none;
  }
  .landing .astri,
  .landing .portrait img {
    transform: none;
  }
  .landing .button:active {
    transform: none;
  }
  .landing summary::after {
    transition: none;
  }
}

/* Scroll story: the actual app, framed as moving objects rather than posters. */
.scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 20;
  width: 100%;
  height: 3px;
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left;
  background: var(--blue);
  pointer-events: none;
}
.landing .sky-scene {
  opacity: 0.75;
}
.sky-route {
  fill: none;
  stroke: #aebed5;
  stroke-width: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: var(--route-offset, 0.8);
  opacity: 0.28;
}
.landing .screens {
  max-width: none;
  padding: 96px max(24px, calc((100vw - 1184px) / 2));
  background: #eef2fa;
}
.landing .screens-heading {
  max-width: 1136px;
  margin: 0 auto 56px;
}
.product-story {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  max-width: 1184px;
  margin: auto;
}
.device-stage,
.device-stack,
.product-copy {
  display: contents;
}
.device-backdrop,
.scene-controls {
  display: none;
}
.phone {
  position: relative;
  width: min(100%, 300px);
  margin: auto;
  padding: 6px;
  border: 1px solid #8b9ab1;
  border-radius: 40px;
  background: linear-gradient(135deg, #f8faff, #9eacc0 32%, #2d3c55 68%, #dce5f1);
  box-shadow: 0 24px 48px -24px #101f3b55;
  aspect-ratio: 737 / 1600;
}
.phone-screen {
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 34px;
  background: #f4f6fa;
}
.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone-chart {
  grid-column: 1;
  grid-row: 1;
}
.phone-astrology {
  grid-column: 2;
  grid-row: 1;
}
.phone-saju {
  grid-column: 1;
  grid-row: 3;
}
.phone-tarot {
  grid-column: 2;
  grid-row: 3;
}
.product-step[data-step='0'] {
  grid-column: 1;
  grid-row: 2;
}
.product-step[data-step='1'] {
  grid-column: 2;
  grid-row: 2;
}
.product-step[data-step='2'] {
  grid-column: 1;
  grid-row: 4;
}
.product-step[data-step='3'] {
  grid-column: 2;
  grid-row: 4;
}
.tarot-screen > img:first-child {
  display: none;
}
.story-motion .tarot-screen {
  position: relative;
}
.story-motion .tarot-screen > img:first-child {
  display: block;
}
.story-motion .tarot-result {
  position: absolute;
  inset: 0;
  opacity: var(--tarot-reveal, 0);
}
.product-step .tarot-note {
  font-size: 13px;
  margin-top: 24px;
}
.story-motion .product-step[data-step='3'] {
  min-height: 120svh;
}
.product-step h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.product-step p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
  max-width: 360px;
  line-height: 1.8;
}
.step-name {
  color: #354f7d;
  font-size: 14px;
}
.landing .screens .capture-note {
  max-width: 1136px;
  margin: 48px auto 0;
}
.story-motion .product-story {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
}
.story-motion .device-stage {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: max(24px, calc((100svh - 720px) / 2));
  height: min(720px, 92svh);
  overflow: visible;
}
.story-motion .device-stack {
  display: block;
  position: relative;
  height: calc(100% - 72px);
  perspective: 1200px;
}
.story-motion .phone {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  width: min(300px, 31svh);
  max-width: calc(100% - 96px);
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform;
}
.story-motion .device-backdrop {
  display: block;
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.device-backdrop svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #697be6;
  stroke-width: 0.8;
  opacity: 0.18;
}
.story-motion .scene-controls {
  display: flex;
  position: relative;
  justify-content: center;
  gap: 4px;
  margin-top: auto;
  padding: 12px 0;
}
.scene-controls button {
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition:
    background-color 180ms var(--ease),
    color 180ms var(--ease),
    border-color 180ms var(--ease);
}
.scene-controls button:hover {
  color: var(--ink);
  background: #ffffff66;
}
.scene-controls button[aria-pressed='true'] {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.story-motion .product-copy {
  display: block;
}
.story-motion .product-step {
  min-height: 85svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 16px 64px 0;
  opacity: var(--step-opacity, 1);
  transform: translateY(var(--step-y, 0px));
}
.story-motion .product-step h3 {
  font-size: clamp(32px, 3.3vw, 48px);
  max-width: 400px;
}
.story-motion .hero .universe {
  transform: translate3d(var(--astri-x, 0px), var(--astri-y, 0px), 0)
    rotate(var(--astri-lean, 0deg));
}
.story-motion .sky-far {
  transform: translateY(var(--far-y, 0px));
}
.story-motion .sky-close {
  transform: translateY(var(--close-y, 0px));
}
.story-motion .hero-copy {
  opacity: var(--hero-opacity, 1);
  animation-fill-mode: backwards;
}
.story-motion .hello {
  transform: translateY(var(--greeting-y, 0px));
}
.story-motion .meet .portrait img {
  transform: translateY(var(--portrait-y, 0px)) rotate(var(--portrait-lean, -9deg));
}
.story-motion .reading {
  position: relative;
  overflow: hidden;
}
.story-motion .reading::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid #c7d2e433;
  border-radius: 50%;
  right: -140px;
  bottom: -140px;
  transform: scale(var(--reading-scale, 1));
  pointer-events: none;
}
.story-motion .release > img {
  transform: translateY(var(--symbol-y, 0px)) rotate(var(--symbol-turn, 0deg));
}
@media (max-width: 760px) {
  .landing .screens {
    padding: 64px 24px;
  }
  .product-story {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .phone {
    width: min(100%, 280px);
  }
  .phone-chart {
    grid-column: 1;
    grid-row: 1;
  }
  .phone-astrology {
    grid-column: 1;
    grid-row: 3;
  }
  .phone-saju {
    grid-column: 1;
    grid-row: 5;
  }
  .phone-tarot {
    grid-column: 1;
    grid-row: 7;
  }
  .product-step[data-step='0'] {
    grid-column: 1;
    grid-row: 2;
  }
  .product-step[data-step='1'] {
    grid-column: 1;
    grid-row: 4;
  }
  .product-step[data-step='2'] {
    grid-column: 1;
    grid-row: 6;
  }
  .product-step[data-step='3'] {
    grid-column: 1;
    grid-row: 8;
  }
  .product-step {
    margin-bottom: 32px;
  }
  .product-step h3 {
    font-size: 28px;
  }
  /* Compact motion layout is kept in normal flow below. */
}

/* Phones and their copy share a flow container on compact/landscape screens.
   A transformed preview is clipped to its reserved frame, never over text. */
.story-compact .screens-heading {
  display: block;
  margin-bottom: 32px;
}
.story-compact .screens-heading p {
  margin-top: 24px;
}
.story-compact .product-story {
  display: block;
}
.story-compact .device-stage {
  display: block;
  position: static;
  height: auto;
  margin: 0 0 32px;
  overflow: visible;
  background: none;
}
.story-compact .device-stack,
.story-compact .device-backdrop {
  display: none;
}
.story-compact:not(.story-motion) .device-stage {
  display: none;
}
.story-compact .scene-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.story-compact .scene-controls button {
  padding: 8px 12px;
  font-size: 13px;
}
.story-compact .product-copy {
  display: block;
}
.story-compact .product-step[data-step] {
  display: block;
  position: static;
  min-height: 0;
  margin: 0 0 56px;
  padding: 0;
  opacity: 1;
  transform: none;
}
.story-compact .mobile-device {
  position: relative;
  overflow: hidden;
  padding: 24px;
  margin: 0 0 24px;
  border-radius: 24px;
  background: #e6ecf6;
}
.story-compact .mobile-device .phone {
  display: block;
  position: relative;
  top: auto;
  left: auto;
  width: min(100%, 264px);
  max-width: none;
  margin: 0 auto;
  padding: 5px;
  border-radius: 32px;
  grid-area: auto;
}
.story-compact .phone-screen {
  border-radius: 27px;
}
.story-compact .product-step h3 {
  max-width: none;
  font-size: 28px;
  margin: 12px 0 16px;
}
.story-compact .product-step p {
  max-width: 40rem;
  font-size: 16px;
  line-height: 1.75;
}
.story-compact .product-step .tarot-note {
  margin-top: 16px;
  font-size: 14px;
}
.story-compact .hero {
  grid-template-columns: minmax(0, 1fr);
  padding: 120px 24px 80px;
  gap: 32px;
}
.story-compact .hero-copy {
  opacity: 1;
}
.story-compact .hero .universe {
  display: grid;
  grid-template-rows: auto auto auto;
  justify-items: center;
  gap: 16px;
  height: auto;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  transform: none;
}
.story-compact .hero .hello {
  position: static;
  justify-self: end;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.5;
  transform: none;
}
.story-compact .hero .astri {
  width: min(320px, 100%);
  height: auto;
  aspect-ratio: 1;
  transform: rotate(-3deg);
}
.story-compact .hero .caption {
  position: static;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.5;
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }
  .sky-route {
    stroke-dashoffset: 0;
  }
}
