/* ==================== FOCUS ==================== */
:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ==================== SECTION BASE ==================== */
.section-h3 {
  font-weight: 600;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.5;
  text-align: center;
  color: var(--color-dark);
}

/* ==================== HERO ==================== */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  padding-top: clamp(72px, 9vw, 114px);
}

.hero-text-block {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  padding: clamp(16px, 2vw, 32px) var(--px) 0;
  width: 100%;
}

.hero-heading {
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 40px);
  line-height: 1.5;
  text-align: center;
  letter-spacing: clamp(2px, 0.6vw, 8px);
  color: var(--color-dark);
}

.hero-sub {
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.7;
  text-align: center;
  color: var(--color-text);
  max-width: 560px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 32px;
  background: var(--color-primary);
  border: 2px solid var(--color-dark);
  border-radius: 240px;
  font-family: var(--font-main);
  font-weight: 600;
  font-size: clamp(14px, 1.3vw, 17px);
  color: white;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-download:hover,
.btn-line:hover {
  background: #1549c0;
  border-color: #1549c0;
}

.hero-image-wrapper {
  height: clamp(240px, 36vw, 560px);
  width: 100%;
  margin-top: clamp(28px, 4vw, 72px);
  overflow: hidden;
  flex-shrink: 0;
}

.hero-image-wrapper img {
  width: 100%;
  height: 120%;
  object-fit: cover;
  object-position: center 24%;
  display: block;
  will-change: transform;
}

/* ==================== SCROLL REVEAL ==================== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 1.4s ease,
      transform 1.4s ease;
  }
  .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .hiw-cards .hiw-col:first-child .hiw-card.reveal {
    transition-delay: 0.5s;
  }
}

/* ==================== APP INTRO ==================== */
.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-py) var(--px) var(--section-pb);
}

.intro-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  width: min(720px, 100%);
}

.intro-text {
  font-weight: 500;
  font-size: clamp(14px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--color-dark);
  width: 100%;
  text-align: center;
}
.intro-text p {
  margin-bottom: 16px;
}
.intro-text p:last-child {
  margin-bottom: 0;
}

/* ==================== RADIO PLAYER ==================== */
.radio-player {
  width: min(394px, 100%);
  background: white;
  border: 1.5px solid var(--color-grey-100);
  border-radius: 16px;
  padding: 16px 60px;
  display: flex;
  flex-direction: column;
}
.rp-wave-svg {
  width: 100%;
  max-width: 274px;
  height: auto;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.rp-wave-svg:focus {
  outline: none;
}
.rp-wave-svg:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 6px;
}
.rp-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.rp-caption {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-primary);
  text-align: center;
  letter-spacing: 0.3px;
}
.rp-times {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-grey-300);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3px;
}
.rp-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.rp-btn:hover {
  opacity: 0.8;
}
.rp-btn-sub img {
  width: 56px;
  height: 56px;
  display: block;
}
.rp-btn-playpause {
  position: relative;
  width: 98px;
  height: 98px;
  overflow: hidden;
  border-radius: 50%;
  box-shadow:
    0 10px 15px rgba(0, 0, 0, 0.1),
    0 4px 6px rgba(0, 0, 0, 0.08);
}
.rp-btn-playpause img {
  position: absolute;
  width: 126px;
  height: 126px;
  top: -4px;
  left: -14px;
}

/* ==================== FEATURES ==================== */
.section-features {
  background: #e8effc;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-py) var(--px) clamp(32px, 5vw, 64px);
}

.features-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  width: min(960px, 100%);
}

.features-body {
  display: flex;
  gap: 16px;
  align-items: center;
  width: 100%;
}

.features-recommend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  width: min(640px, 100%);
}

.features-recommend-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--color-primary);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.features-recommend-heading::before,
.features-recommend-heading::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-grey-200);
}

.features-recommend-items {
  display: flex;
  gap: 24px;
  justify-content: center;
  width: min(640px, 100%);
  margin-top: 8px;
}

.features-recommend-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
}

.features-recommend-item svg {
  flex-shrink: 0;
}

.features-recommend-label {
  font-weight: 600;
  font-size: clamp(14px, 1.3vw, 16px);
  line-height: 1.5;
  color: var(--color-dark);
}

.features-screenshot {
  flex: 0 0 auto;
  width: clamp(200px, 30%, 320px);
  height: auto;
  display: block;
}

.features-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.feature-card {
  padding: 16px 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 2px;
  display: block;
}

.feature-title {
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.4;
  color: var(--color-dark);
  margin-bottom: 4px;
}

.feature-desc {
  font-weight: 500;
  font-size: clamp(13px, 1.1vw, 14px);
  line-height: 1.7;
  color: var(--color-text);
}

/* ==================== HOW IT WORKS ==================== */
.section-hiw {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-py) var(--px) var(--section-pb);
}

.hiw-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;
  align-items: center;
  width: min(960px, 100%);
}

.hiw-cards {
  display: flex;
  gap: 32px;
  align-items: stretch;
  width: 100%;
}

.hiw-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hiw-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.hiw-effect-arrow {
  display: flex;
  justify-content: center;
  padding-top: 12px;
  margin-bottom: -18px;
  position: relative;
  z-index: 1;
}

.hiw-effect-arrow svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.hiw-effect {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 28px 20px 20px;
  background: #fefbe7;
  border-radius: 12px;
}

.hiw-effect-icon {
  flex-shrink: 0;
}

.hiw-effect-title {
  font-weight: 700;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--color-dark);
  margin-bottom: 6px;
}

.hiw-effect-desc {
  font-weight: 500;
  font-size: clamp(13px, 1.1vw, 14px);
  line-height: 1.7;
  color: var(--color-grey-400);
}

.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 4px 16px 4px 12px;
  border-radius: 240px;
  flex-shrink: 0;
}
.badge-night {
  background: var(--color-primary);
  color: white;
}
.badge-morning {
  background: var(--color-yellow);
  color: var(--color-dark);
}
.badge img {
  width: 24px;
  height: 24px;
}
.badge span {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.6;
}

.hiw-image-box {
  background: var(--color-grey-100);
  border: 2px solid var(--color-dark);
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}

.hiw-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hiw-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.hiw-card-title {
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--color-dark);
}
.hiw-card-text {
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--color-text);
}
.hiw-card-caption {
  font-weight: 500;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
}

/* ==================== PERSONALITIES ==================== */
.section-personality {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-py) var(--px) var(--section-pb);
}

.personality-inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
  width: min(720px, 100%);
}

.personality-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.personality-subtitle {
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--color-text);
}

.personality-cards {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: min(720px, 100%);
}

.personality-card {
  background: white;
  border: 1px solid var(--color-grey-200);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.personality-img-box {
  flex: 0 0 auto;
  width: clamp(120px, 22%, 200px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: white;
  border-radius: 8px;
}

.personality-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.personality-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.personality-label {
  font-weight: 700;
  font-size: clamp(13px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--color-text);
}
.personality-name {
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.5;
  color: var(--color-dark);
  margin-top: 4px;
}
.personality-desc {
  font-weight: 500;
  font-size: clamp(13px, 1.2vw, 17px);
  line-height: 1.6;
  color: var(--color-text);
}

/* ==================== STEPS ==================== */
.section-steps {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-py) var(--px) var(--section-pb);
}

.steps-inner {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
  width: 100%;
}

.steps-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: min(960px, 100%);
}

.step-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-badge {
  background: #2a6afb;
  border: 2px solid var(--color-dark);
  color: white;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 0 20px;
  height: 48px;
  position: relative;
  z-index: 2;
  margin-bottom: -25px;
  white-space: nowrap;
}
.step-badge-step {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.step-num-img {
  height: 28px;
  width: auto;
  display: block;
}

.step-card {
  background: var(--color-yellow);
  border-radius: 16px;
  padding: 48px 40px 40px;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: center;
}

.step-card-title {
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4;
  color: var(--color-dark);
}
.step-card-subtitle {
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--color-text);
  margin-top: 8px;
}
.step-card-note {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-grey-300);
  margin-top: 6px;
}

.step-card-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.step-mockup {
  flex: 0 0 320px;
  width: 320px;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  background: #fefbe7;
}

.step-mockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.step-mockup--fill img {
  object-fit: cover;
}

.step-mockup--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.step-mockup--center img {
  width: 242px;
  height: auto;
}

.step-mockup-caption {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
}

.step1-btn {
  margin-top: 20px;
  align-self: flex-start;
}

/* ==================== CTA ==================== */
.section-cta {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  padding: clamp(48px, 6vw, 80px) var(--px) clamp(64px, 9vw, 120px);
}

.cta-radio-img {
  width: min(280px, 60vw);
  height: auto;
  display: block;
}

.cta-heading {
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.45;
  text-align: center;
  letter-spacing: clamp(4px, 1.5vw, 18.72px);
  color: var(--color-text);
}

/* ==================== LINE ALT SECTION ==================== */
.section-line-alt {
  background: #e8effc;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--section-py) var(--px) var(--section-pb);
  gap: 32px;
}

.line-alt-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.line-alt-desc {
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--color-text);
  max-width: 540px;
}

.line-alt-card {
  background: var(--color-primary);
  border-radius: 16px;
  padding: 32px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  min-width: clamp(280px, 40vw, 440px);
}

.line-alt-card-title {
  font-weight: 600;
  font-size: clamp(16px, 1.8vw, 20px);
  color: white;
  text-align: center;
}

.line-alt-qr {
  width: clamp(100px, 14vw, 140px);
  height: clamp(100px, 14vw, 140px);
  object-fit: cover;
  display: block;
}

/* ==================== FOOTER ==================== */
.footer {
  background: var(--color-yellow);
  padding: clamp(40px, 6vw, 80px) var(--px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-logo {
  height: 36px;
  width: auto;
  max-width: 278px;
  object-fit: contain;
  display: block;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.footer-link {
  font-weight: 500;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.6;
  color: var(--color-text);
  text-decoration: none;
}
.footer-link:hover {
  text-decoration: underline;
}

.footer-copy {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 400;
  font-size: clamp(13px, 1.2vw, 17px);
  line-height: 1.65;
  color: var(--color-text);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.3s,
    visibility 0.3s;
  z-index: 200;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==================== RESPONSIVE: TABLET (≤ 900px) ==================== */
@media (max-width: 900px) {
  .features-body {
    flex-direction: column;
    align-items: stretch;
  }
  .features-screenshot {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  .hiw-cards {
    flex-direction: column;
    align-items: stretch;
  }
  .hiw-col {
    flex: none;
    width: 100%;
  }

  .step-card {
    flex-direction: column;
    gap: 24px;
    padding: 48px 24px 32px;
  }
  .step-mockup {
    flex: 0 0 auto;
    width: min(320px, 100%);
    height: 170px;
  }

  .personality-inner {
    width: 100%;
  }
  .line-alt-card {
    min-width: unset;
    width: 100%;
    padding: 28px 24px;
  }
}

/* ==================== RESPONSIVE: MOBILE (≤ 600px) ==================== */
@media (max-width: 600px) {
  .section-h3 {
    font-size: 20px;
  }

  .personality-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .personality-img-box {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
  .personality-img-box img {
    object-position: center 20%;
  }

  .step-card-subtitle {
    font-size: 14px;
  }
}
