/* ===================================
   LangPont Landing Page — Full Mock v5
   TaskM002 / 2026-03-27

   v4→v5 changes:
   - Selected option: stronger blue border/bg/shadow
   - Non-selected options: reduced opacity + lighter text
   - Numbered labels (1/2/3) added to each option
   - Copy button icon added to Hero demo options
   - Final CTA button: "Try before you send" → "Try it now"
   =================================== */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1a1a2e;
  background: #f8f9fc;
  -webkit-font-smoothing: antialiased;
}

/* --- Shared layout --- */
.section-inner {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   1. HERO
   =================================== */
.hero {
  min-height: calc(100vh - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f8f9fc 0%, #eef1f8 100%);
  padding: 34px 24px 64px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.hero-copy {
  flex: 1;
  min-width: 0;
}

.hero-headline {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1a1a2e;
  margin-bottom: 16px;
}

.hero-subhead {
  font-size: 1.25rem;
  color: #5a5f7a;
  line-height: 1.5;
  margin-bottom: 8px;
}

.hero-cta-line {
  font-size: 1.125rem;
  font-weight: 600;
  color: #3477f5;
  margin-bottom: 32px;
}

/* --- Buttons --- */
.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #3477f5;
  color: #fff;
  box-shadow: 0 4px 14px rgba(52, 119, 245, 0.35);
}

.btn-primary:hover {
  background: #2b66d9;
  box-shadow: 0 6px 20px rgba(52, 119, 245, 0.45);
}

.btn-secondary {
  background: #fff;
  color: #3477f5;
  border: 1.5px solid #3477f5;
}

.btn-secondary:hover {
  background: #f0f4ff;
}

.btn-large {
  padding: 18px 40px;
  font-size: 1.125rem;
}

/* --- Demo Card (shared between Hero & Solution) --- */
.hero-demo,
.solution-demo {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.demo-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.08), 0 1px 4px rgba(26, 26, 46, 0.04);
  padding: 28px;
}

.demo-card--compact {
  max-width: 360px;
  padding: 20px;
}

.demo-original {
  margin-bottom: 8px;
}

.demo-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #8b8fa8;
  margin-bottom: 6px;
}

.demo-text {
  font-size: 0.975rem;
  line-height: 1.55;
  color: #2d2d44;
}

.demo-divider {
  height: 1px;
  background: #e8eaf0;
  margin: 16px 0;
}

.demo-compare-hint {
  font-size: 0.8rem;
  font-weight: 500;
  color: #9a9db4;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

/* --- Translation Options (v5: numbered + copy btn + stronger selection) --- */
.demo-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  margin-bottom: 6px;
  opacity: 0.55;
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
}

.demo-option:last-child {
  margin-bottom: 0;
}

.demo-option .demo-text {
  flex: 1;
  color: #6b6f88;
}

/* --- Number badge --- */
.demo-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eef1f8;
  color: #8b8fa8;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Copy button --- */
.demo-copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #b0b3c6;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.demo-option:hover .demo-copy-btn {
  opacity: 1;
}

.demo-copy-btn:hover {
  background: #eef1f8;
  color: #3B82F6;
}

/* --- Selected state (v5: stronger) --- */
.demo-option--selected {
  opacity: 1;
  border-color: #3B82F6;
  background: rgba(59, 130, 246, 0.06);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}

.demo-option--selected .demo-text {
  color: #1a1a2e;
  font-weight: 500;
}

.demo-option--selected .demo-num {
  background: #3B82F6;
  color: #fff;
}

.demo-option--selected .demo-copy-btn {
  opacity: 0.6;
}

/* ===================================
   2. PROBLEM
   =================================== */
.problem {
  padding: 80px 24px;
  background: #fff;
}

.problem-inner {
  text-align: center;
}

.problem-steps {
  margin-bottom: 28px;
}

.problem-line {
  font-size: 1.5rem;
  font-weight: 500;
  color: #5a5f7a;
  line-height: 1.9;
}

.problem-punchline {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
}

/* ===================================
   3. INSIGHT
   =================================== */
.insight {
  padding: 120px 24px;
  background: #f2f3f8;
}

.insight-inner {
  text-align: center;
  max-width: 640px;
}

.insight-line {
  font-size: 1.35rem;
  font-weight: 400;
  color: #5a5f7a;
  line-height: 1.6;
  margin-bottom: 12px;
}

.insight-emphasis {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.35;
}

/* ===================================
   4. SOLUTION
   =================================== */
.solution {
  padding: 120px 24px;
  background: #fff;
}

.solution-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.solution-copy {
  flex: 1;
  min-width: 0;
}

.solution-steps {
  list-style: none;
  counter-reset: step;
  margin-bottom: 32px;
}

.solution-steps li {
  counter-increment: step;
  font-size: 1.25rem;
  font-weight: 500;
  color: #2d2d44;
  line-height: 2.2;
  padding-left: 36px;
  position: relative;
}

.solution-steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #eef1f8;
  color: #3477f5;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.solution-result {
  font-size: 1.5rem;
  font-weight: 700;
  color: #3477f5;
}

/* ===================================
   5. FINAL CTA
   =================================== */
.final-cta {
  padding: 120px 24px;
  background: linear-gradient(135deg, #eef1f8 0%, #f8f9fc 100%);
}

.final-cta-inner {
  text-align: center;
}

.final-cta-text {
  font-size: 2.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 32px;
}

/* ===================================
   TaskM009: Tone labels & Social Proof
   =================================== */

/* --- Tone label (Solution demo) --- */
.demo-tone-label {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9a9db4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.demo-tone-label--selected {
  color: #3477f5;
}

/* --- Social Proof --- */
.social-proof {
  padding: 100px 24px;
  background: #1a1a2e;
}

.social-proof-inner {
  text-align: center;
}

.social-proof-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b6f88;
  margin-bottom: 32px;
}

.social-proof-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.social-proof-list li {
  font-size: 1.2rem;
  font-weight: 500;
  color: #c8cbda;
  line-height: 1.5;
}

/* --- Final CTA subtext (新規) --- */
.final-cta-subtext {
  font-size: 1.1rem;
  font-weight: 500;
  color: #5a5f7a;
  margin-bottom: 12px;
}

/* --- Social Proof responsive --- */
@media (max-width: 480px) {
  .social-proof {
    padding: 64px 16px;
  }

  .social-proof-list li {
    font-size: 1rem;
  }
}

/* ===================================
   TaskM010: Nav + Hero descriptor
   =================================== */

/* --- Navigation bar --- */
.lp-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 249, 252, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(26, 26, 46, 0.06);
  padding: 0 24px;
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.lp-nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #1a1a2e;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lp-nav-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.lp-nav-cta {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* --- Hero descriptor --- */
.hero-descriptor {
  font-size: 0.9rem;
  font-weight: 600;
  color: #3477f5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* --- Nav responsive --- */
@media (max-width: 480px) {
  .lp-nav-inner {
    height: 52px;
  }

  .lp-nav-logo {
    font-size: 1.1rem;
  }

  .lp-nav-cta {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .hero-descriptor {
    font-size: 0.875rem;
  }
}

/* ===================================
   TaskM012: How it works + Pricing
   =================================== */

/* --- How it works --- */
.how-it-works {
  padding: 120px 24px;
  background: #fff;
}

.hiw-header {
  text-align: center;
  margin-bottom: 64px;
}

.hiw-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3477f5;
  margin-bottom: 12px;
}

.hiw-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.3;
}

.hiw-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.hiw-feature {
  padding: 32px;
  border-radius: 16px;
  background: #f8f9fc;
  border: 1px solid #e8eaf0;
}

.hiw-feature-number {
  font-size: 0.75rem;
  font-weight: 700;
  color: #3477f5;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.hiw-feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
  line-height: 1.35;
}

.hiw-feature-body {
  font-size: 0.95rem;
  color: #5a5f7a;
  line-height: 1.65;
}

/* --- Pricing --- */
.pricing {
  padding: 120px 24px;
  background: #f8f9fc;
}

.pricing-inner {
  text-align: center;
}

.pricing-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #3477f5;
  margin-bottom: 12px;
}

.pricing-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 48px;
}

.pricing-cards {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.08);
  padding: 40px 36px;
  width: 300px;
  text-align: left;
}

.pricing-card--pro {
  border: 2px solid #3477f5;
}

.pricing-card-header {
  margin-bottom: 28px;
}

.pricing-plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8b8fa8;
  margin-bottom: 12px;
}

.pricing-card--pro .pricing-plan-name {
  color: #3477f5;
}

.pricing-amount {
  display: flex;
  align-items: flex-start;
  gap: 2px;
}

.pricing-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 6px;
}

.pricing-price {
  font-size: 3.5rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1;
}

.pricing-period {
  font-size: 0.9rem;
  color: #8b8fa8;
  margin-top: 10px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
  flex: 1;
}

.pricing-features li {
  font-size: 0.925rem;
  color: #2d2d44;
  padding: 9px 0;
  border-bottom: 1px solid #f0f1f6;
}

.pricing-features li::before {
  content: "✓ ";
  color: #3477f5;
  font-weight: 700;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-feature--limit {
  color: #9a9db4;
}

.pricing-features li.pricing-feature--limit::before {
  content: "— ";
  color: #c8cbda;
  font-weight: 400;
}

.pricing-note {
  font-size: 0.8rem;
  color: #9a9db4;
  margin-top: 12px;
  text-align: center;
}

/* --- How it works responsive --- */
@media (max-width: 900px) {
  .hiw-features {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hiw-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .how-it-works {
    padding: 72px 16px;
  }

  .hiw-feature {
    padding: 24px;
  }

  .pricing {
    padding: 72px 16px;
  }

  .pricing-card {
    padding: 36px 28px;
  }

  .pricing-price {
    font-size: 3rem;
  }

  .pricing-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 680px) {
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }

  .pricing-card {
    width: 100%;
    max-width: 360px;
  }

  .pricing {
    padding: 72px 16px;
  }
}

/* --- Footer --- */
.lp-footer {
  padding: 40px 24px;
  background: #1a1a2e;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.lp-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.lp-footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
}

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

.lp-footer-links a {
  font-size: 0.875rem;
  color: #6b6f88;
  text-decoration: none;
}

.lp-footer-links a:hover {
  color: #c8cbda;
}

.lp-footer-copy {
  font-size: 0.8rem;
  color: #4a4f68;
}

@media (max-width: 480px) {
  .lp-footer-links {
    flex-direction: column;
    gap: 12px;
  }
}

/* --- Demo typewriter: fixed height to prevent layout shift --- */
.hero-demo .demo-card {
  min-height: 420px;
}

#demo-input,
#demo-text-1,
#demo-text-2,
#demo-text-3 {
  min-height: 1.2em;
}

/* ===================================
   Responsive
   =================================== */

@media (max-width: 900px) {
  .hero-inner,
  .solution-inner {
    flex-direction: column;
    gap: 36px;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-headline {
    font-size: 2.25rem;
  }

  .problem-line {
    font-size: 1.25rem;
  }

  .problem-punchline {
    font-size: 1.5rem;
  }

  .insight-emphasis {
    font-size: 1.4rem;
  }

  .solution-steps li {
    font-size: 1.1rem;
    text-align: left;
  }

  .final-cta-text {
    font-size: 1.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 16px;
  }

  .hero-headline {
    font-size: 1.75rem;
  }

  .hero-subhead {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    padding: 14px 20px;
  }

  .btn-large {
    padding: 16px 28px;
    font-size: 1rem;
  }

  .demo-card {
    padding: 20px;
  }

  /* Show copy buttons always on touch devices */
  .demo-copy-btn {
    opacity: 0.5;
  }

  .problem {
    padding: 56px 16px;
  }

  .problem-line {
    font-size: 1.1rem;
    line-height: 1.8;
  }

  .problem-punchline {
    font-size: 1.35rem;
  }

  .insight,
  .solution,
  .final-cta {
    padding: 72px 16px;
  }

  .insight-line {
    font-size: 1.1rem;
  }

  .insight-emphasis {
    font-size: 1.25rem;
  }

  .solution-result {
    font-size: 1.25rem;
  }

  .final-cta-text {
    font-size: 1.5rem;
  }
}
