/* Reading page styles — Phase 2 placeholder */

/* ── Showcase layout (reused from home pattern) ── */
.u-home-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 44px;
  align-items: center;
  width: 100%;
}

.u-home-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.u-home-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

.u-phone-frame {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 1206 / 2622;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(180deg, #7148a5 0%, #3f245f 100%);
  box-shadow: 0 32px 70px rgba(88, 51, 134, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.u-phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #fde7b7;
  line-height: 0;
}

.u-app-shot {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 36px;
}

/* ── Hero section ── */
.u-section-1 {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(200, 150, 255, 0.12), transparent 50%),
    linear-gradient(160deg, #2d1a46 0%, #4a2970 45%, #1e1030 100%);
  color: #fff;
  min-height: 100svh;
  display: flex;
}

.u-section-1 .u-sheet-1 {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 150px 20px 60px;
  z-index: 1;
  box-sizing: border-box;
}

.u-section-1 .u-text-1 {
  font-family: "Noto Serif", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  margin: 0;
  color: #f0d5ff !important;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-wrap: balance;
  max-width: 14ch;
}

.u-section-1 .u-text-2 {
  font-family: "Noto Serif", serif;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  margin: 20px 0 0;
  color: rgba(240, 213, 255, 0.82);
  line-height: 1.65;
  max-width: 34rem;
}

.u-section-1 .u-layout-wrap-1 {
  width: min(100%, 240px);
  margin: 32px 0 0;
}

.u-section-1 .u-layout-cell-2 {
  min-height: auto;
}

.u-section-1 .u-container-layout-2 {
  padding: 0;
}

.u-section-1 .u-image-2 {
  width: 220px;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(100, 50, 150, 0.4);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.u-section-1 .u-image-2:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px rgba(100, 50, 150, 0.5);
}

/* ── reading-interactive placeholder (Phase 4) ── */
#reading-interactive {
  margin: 8px 0;
  min-height: 0;
}

/* ── Content sections 2–4 ── */
.u-section-2,
.u-section-3,
.u-section-4 {
  padding: 72px 0;
}

.u-section-3 {
  background: #fff8f0;
}

/* ── Section 5 — App CTA ── */
.u-section-5 {
  padding: 72px 0;
  background: linear-gradient(160deg, #2d1a46 0%, #4a2970 100%);
  color: #fff;
}

/* ── Section headings h2 ── */
.u-section-2 .u-text-1,
.u-section-3 .u-text-1,
.u-section-4 .u-text-1,
.u-section-5 .u-text-1 {
  font-family: "Noto Serif", serif;
  font-size: clamp(1.55rem, 3.5vw, 2.3rem);
  font-weight: 700;
  margin: 0 0 28px;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--site-text);
}

.u-section-5 .u-text-1 {
  color: #f0d5ff !important;
}

/* ── Body text ── */
.u-section-2 .u-text-2,
.u-section-3 .u-text-2,
.u-section-4 .u-text-2,
.u-section-5 .u-text-2 {
  font-family: "Open Sans", sans-serif;
  font-size: 1.08rem;
  line-height: 1.85;
  max-width: 72ch;
  margin: 0 0 20px;
  color: var(--site-text);
}

.u-section-5 .u-text-2 {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin-bottom: 28px;
}

/* ── Steps list (section 2) ── */
.u-section-2 .u-text-2 {
  padding-left: 20px;
  margin-bottom: 0;
}

.u-section-2 .u-text-2 li {
  margin-bottom: 12px;
}

/* ── Tips list (section 4) ── */
.u-section-4 .u-text-3 {
  font-family: "Open Sans", sans-serif;
  font-size: 1.05rem;
  line-height: 2;
  padding-left: 20px;
  max-width: 72ch;
  color: var(--site-text);
  margin: 0;
}

.u-section-4 .u-text-3 li {
  margin-bottom: 6px;
}

/* ── CTA section content ── */
.u-section-5 .u-image-2 {
  display: block;
  width: 200px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  margin: 0;
  transition: transform 0.24s ease;
}

.u-section-5 .u-image-2:hover {
  transform: translateY(-3px);
}

.u-section-5 .u-text-3 {
  font-family: "Noto Serif", serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.9);
}

.u-section-5 .u-text-4 {
  display: inline-block;
  margin-top: 20px;
  font-family: "Open Sans", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: rgba(240, 210, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.u-section-5 .u-text-4:hover {
  color: #fff;
}

/* ── Hexagram line diagram ── */
.reading-diagram {
  --line-w: 200px;
  --line-h: 12px;
  --bar-gap: 20px;
  --line-color: var(--site-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin: 36px auto;
  width: fit-content;
}

.reading-diagram-line {
  height: var(--line-h);
  border-radius: calc(var(--line-h) / 2);
}

.reading-diagram-yang {
  width: var(--line-w);
  background: var(--line-color);
}

.reading-diagram-yin {
  width: var(--line-w);
  display: flex;
  gap: var(--bar-gap);
  background: none;
}

.reading-diagram-half {
  flex: 1;
  height: var(--line-h);
  border-radius: calc(var(--line-h) / 2);
  background: var(--line-color);
}

.reading-diagram-label {
  margin: -8px 0 0;
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: center;
}

/* ── Mobile ── */
@media (max-width: 1199px) {
  .u-home-showcase {
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(270px, 0.9fr);
  }
}

@media (max-width: 991px) {
  .u-section-1 .u-sheet-1 {
    min-height: 100svh;
    padding-top: 122px;
    justify-content: flex-start;
  }

  .u-home-showcase {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .u-home-copy {
    align-items: center;
    text-align: center;
  }

  .u-section-1 .u-text-1,
  .u-section-1 .u-text-2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }

  .u-section-1 .u-layout-wrap-1 {
    margin-left: auto;
    margin-right: auto;
  }

  .u-phone-frame {
    width: min(100%, 260px);
  }
}

@media (max-width: 767px) {
  .u-section-1 .u-sheet-1 {
    padding-top: 114px;
    padding-bottom: 40px;
  }

  .u-section-2,
  .u-section-3,
  .u-section-4,
  .u-section-5 {
    padding: 52px 0;
  }

  .u-phone-frame {
    width: min(100%, 230px);
    border-radius: 36px;
    padding: 8px;
  }

  .u-phone-screen {
    border-radius: 30px;
  }
}

@media (max-width: 575px) {
  .u-section-1 .u-sheet-1 {
    padding-top: 104px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .u-section-1 .u-text-1 {
    font-size: 2.8rem;
  }

  .u-section-1 .u-image-2 {
    width: 190px;
  }

  .u-phone-frame {
    width: min(100%, 210px);
  }
}
