/* ── ランディング専用背景 ── */
body:has(#landing-wrapper:not(.fade-out)),
html:has(#landing-wrapper:not(.fade-out)) {
  background: #0d1b2a;
}

/* ── ラッパー（アプリの .page と同じ構造） ── */
#landing-wrapper {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 16px 80px;
  opacity: 1;
  transition: opacity 0.4s ease;
  position: relative;
}
#landing-wrapper.fade-out { opacity: 0; pointer-events: none; }

/* ── ヘッダー ── */
.ls-nav {
  margin-top: 48px;
  margin-bottom: 10px;
}
.ls-logo { font-size: 32px; font-weight: 800; color: #f2f2f7; }
.ls-trial-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 600;
  color: #ff9f0a;
  background: #2a1f00;
  border: 1px solid #ff9f0a44;
  border-radius: 6px;
  padding: 3px 8px;
}

/* ── ヒーロー ── */
.ls-hero { margin-bottom: 20px; }
.ls-hero-eyebrow {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .5px;
  color: #0a84ff;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.ls-hero-title { font-size: 20px; font-weight: 700; line-height: 1.4; margin-bottom: 10px; }
.ls-hero-title em { font-style: normal; color: #30d158; }
.ls-hero-sub { font-size: 14px; color: #8e8e93; line-height: 1.75; margin-bottom: 20px; }
.ls-wave { width: 100%; height: 36px; }

/* ── 機能セクション ── */
.ls-section { margin-bottom: 20px; }
.ls-section-label {
  font-size: 13px;
  font-weight: 600;
  color: #8e8e93;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 10px;
}
.ls-features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ls-feat { background: #1e2a3a; border-radius: 14px; padding: 14px; border: 1px solid #ffffff0f; transition: border-color .2s; }
.ls-feat:hover { border-color: #0a84ff55; }
.ls-feat-icon { font-size: 22px; margin-bottom: 6px; }
.ls-feat-name { font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.ls-feat-desc { font-size: 12px; color: #8e8e93; line-height: 1.6; }

/* ── 同意カード ── */
.ls-consent { background: #1a2235; border-radius: 14px; padding: 16px; margin-bottom: 12px; border: 1px solid #0a84ff22; }
.ls-consent-title { font-size: 17px; font-weight: 600; margin-bottom: 4px; }
.ls-consent-intro { font-size: 13px; color: #8e8e93; margin-bottom: 12px; }
.ls-terms-link {
  background: none;
  border: none;
  color: #0a84ff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}
.ls-terms-link:active { opacity: 0.7; }
.ls-divider { border: none; border-top: 1px solid #3a3a3c; margin: 14px 0; }
.ls-check-row { display: flex; align-items: flex-start; gap: 10px; margin: 10px 0; cursor: pointer; }
.ls-check-row input[type=checkbox] {
  margin-top: 2px;
  accent-color: #0a84ff;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ls-check-label { font-size: 13px; color: #ebebf5; line-height: 1.6; }
.ls-check-row:has(input:disabled) { opacity: 0.35; cursor: default; }
.ls-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  background: #0a84ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: opacity .1s;
}
.ls-btn:active:not(:disabled) { opacity: 0.7; }
.ls-btn:disabled { background: #3a3a3c; color: #636366; cursor: not-allowed; }
.ls-error { color: #ff453a; font-size: 13px; margin-top: 8px; }

/* ── モーダル ── */
.ls-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 100;
  align-items: flex-end;
  justify-content: center;
}
.ls-modal.open { display: flex; }
.ls-modal-inner {
  background: #2c2c2e;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}
.ls-modal-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #3a3a3c;
  flex-shrink: 0;
}
.ls-modal-title { font-size: 15px; font-weight: 700; }
.ls-modal-close {
  background: #3a3a3c;
  border: none;
  color: #8e8e93;
  font-size: 13px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ls-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  font-size: 13px;
  color: #8e8e93;
  line-height: 1.85;
}
.ls-modal-body h4 { font-size: 13px; font-weight: 600; color: #ebebf5; margin: 14px 0 5px; }
.ls-modal-body p { margin-bottom: 4px; }
.ls-consent-items { list-style: none; padding: 0; }
.ls-consent-items li { padding: 4px 0 4px 1.4em; position: relative; font-size: 13px; color: #8e8e93; }
.ls-consent-items li::before { content: "✓"; color: #30d158; position: absolute; left: 0; }
.ls-modal-ok {
  margin: 12px 20px 20px;
  padding: 14px;
  background: #0a84ff;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}
.ls-modal-ok:active { opacity: 0.7; }

/* ── フッター ── */
.ls-footer { font-size: 12px; color: #636366; text-align: center; margin-top: 8px; }
