/* ========================================
   PropoAI Landing Page v2
   ANLIMITRIA Inc.
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: #1e293b;
  background: #fff;
  line-height: 1.8;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { display: block; max-width: 100%; }

/* ---------- Layout ---------- */
.section-inner { padding-left: 10%; padding-right: 10%; }
.sp-only { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: inherit; font-weight: 600;
  border: 2px solid transparent; border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  background: #2563eb; color: #fff;
  font-size: 0.95rem; padding: 0.65em 1.6em;
  min-height: 44px;
}
.btn:hover { background: #1d4ed8; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,0.3); }
.btn:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }

.btn-outline { background: transparent; color: #2563eb; border-color: #2563eb; }
.btn-outline:hover { background: #2563eb; color: #fff; }

.btn-sm { font-size: 0.85rem; padding: 0.55em 1.3em; min-height: 44px; }
.btn-lg { font-size: 1.05rem; padding: 0.85em 2.2em; }
.btn-block { width: 100%; text-align: center; }

.btn-white { background: #fff; color: #2563eb; font-size: 1.1rem; padding: 0.9em 2.4em; }
.btn-white:hover { background: #f0f4ff; box-shadow: 0 4px 20px rgba(255,255,255,0.3); }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); font-size: 0.95rem; padding: 0.65em 2em; }
.btn-outline-white:hover { background: rgba(255,255,255,0.15); border-color: #fff; }

/* ---------- Section Titles ---------- */
.section-title { font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 0.5em; line-height: 1.4; }
.section-sub { text-align: center; color: #475569; margin-bottom: 3rem; font-size: 1rem; }

/* ---------- Fade-in animation ---------- */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.fade-in.in-view { opacity: 1; transform: translateY(0); }

/* ==========================================
   Header
   ========================================== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 10%; }
.header-logo { display: flex; align-items: center; gap: 0.5rem; font-size: 1.15rem; font-weight: 700; color: #2563eb; }
.header-nav { display: flex; gap: 2rem; }
.header-nav a { font-size: 0.9rem; font-weight: 500; color: #475569; transition: color 0.2s; }
.header-nav a:hover { color: #2563eb; }

/* ==========================================
   Hero
   ========================================== */
.hero { padding-top: 7rem; padding-bottom: 4rem; background: linear-gradient(168deg, #eff6ff 0%, #fff 60%); }
.hero .section-inner { text-align: center; }

.hero-label {
  display: inline-block; font-size: 0.85rem; font-weight: 600;
  color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 100px; padding: 0.3em 1.2em; margin-bottom: 1.5rem;
}
.hero-title { font-size: 2.6rem; font-weight: 900; line-height: 1.35; margin-bottom: 1.2rem; color: #0f172a; }
.hero-sub { font-size: 1.05rem; color: #334155; margin-bottom: 2.5rem; line-height: 1.8; }

.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* Hero stats */
.hero-numbers { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2.4rem; font-weight: 900; color: #2563eb; line-height: 1; }
.hero-stat-unit { font-size: 1rem; font-weight: 700; color: #2563eb; }
.hero-stat-label { display: block; font-size: 0.82rem; color: #64748b; margin-top: 0.3rem; }

/* ==========================================
   Problem
   ========================================== */
.problem { padding: 5rem 0; background: #f8fafc; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.problem-card {
  background: #fff; border-radius: 12px; padding: 2rem;
  border: 1px solid #e2e8f0; transition: box-shadow 0.25s;
}
.problem-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.06); }
.problem-icon { margin-bottom: 1rem; }
.problem-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; color: #0f172a; }
.problem-card p { font-size: 0.9rem; color: #64748b; line-height: 1.7; }

/* ==========================================
   Solution (Before / After)
   ========================================== */
.solution { padding: 5rem 0; }
.ba-grid { display: flex; align-items: center; gap: 2rem; justify-content: center; }
.ba-card { flex: 1; max-width: 400px; border-radius: 14px; padding: 2.2rem; }
.ba-before { background: #fef2f2; border: 1px solid #fecaca; }
.ba-after { background: #f0fdf4; border: 1px solid #bbf7d0; }
.ba-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; padding: 0.25em 0.8em; border-radius: 6px; margin-bottom: 1.2rem;
}
.ba-before .ba-label { background: #fee2e2; color: #dc2626; }
.ba-after .ba-label { background: #dcfce7; color: #16a34a; }
.ba-list li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.8rem; }
.ba-list li:last-child { margin-bottom: 0; }
.ba-list svg { flex-shrink: 0; }
.ba-arrow { flex-shrink: 0; }

/* ==========================================
   Features (3 Steps)
   ========================================== */
.features { padding: 5rem 0; background: #f8fafc; }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.step-card {
  background: #fff; border-radius: 14px; padding: 2.2rem 2rem; text-align: center;
  border: 1px solid #e2e8f0; position: relative; transition: box-shadow 0.25s, transform 0.2s;
}
.step-card:hover { box-shadow: 0 12px 36px rgba(37,99,235,0.08); transform: translateY(-3px); }
.step-num {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: #2563eb; color: #fff; font-size: 0.8rem; font-weight: 700;
  padding: 0.2em 0.8em; border-radius: 100px;
}
.step-icon { display: flex; justify-content: center; margin: 1rem 0 1.2rem; }
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; color: #0f172a; }
.step-card p { font-size: 0.9rem; color: #64748b; line-height: 1.7; }

/* ==========================================
   Social Proof
   ========================================== */
.social-proof { padding: 3rem 0; background: #fff; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; }
.proof-grid { display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap; }
.proof-item { display: flex; align-items: center; gap: 0.8rem; }
.proof-item strong { display: block; font-size: 0.95rem; font-weight: 700; color: #0f172a; }
.proof-item span { display: block; font-size: 0.82rem; color: #64748b; }

/* ==========================================
   Pricing
   ========================================== */
.pricing { padding: 5rem 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: start; }
.pricing-card {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
  padding: 2.5rem 2rem; text-align: center; position: relative; transition: box-shadow 0.25s;
}
.pricing-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,0.07); }
.pricing-card--popular { border: 2px solid #2563eb; box-shadow: 0 8px 30px rgba(37,99,235,0.12); transform: scale(1.04); }
.popular-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: #2563eb; color: #fff; font-size: 0.78rem; font-weight: 700;
  padding: 0.3em 1em; border-radius: 100px; white-space: nowrap;
}
.plan-name { font-size: 1.2rem; font-weight: 700; color: #475569; margin-bottom: 0.8rem; }
.plan-price { margin-bottom: 0.3rem; }
.price-amount { font-size: 2.4rem; font-weight: 900; color: #0f172a; }
.price-unit { font-size: 0.9rem; color: #64748b; margin-left: 0.15em; }
.price-per-unit { font-size: 0.82rem; color: #2563eb; font-weight: 600; margin-bottom: 1.2rem; }
.plan-features { text-align: left; margin-bottom: 2rem; }
.plan-features li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; margin-bottom: 0.7rem; color: #334155; }
.plan-features li:last-child { margin-bottom: 0; }
.plan-features svg { flex-shrink: 0; }

/* ==========================================
   FAQ
   ========================================== */
.faq { padding: 5rem 0; background: #f8fafc; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 1rem; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.faq-item summary {
  padding: 1.2rem 1.5rem; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  color: #0f172a; list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; display: inline-block; width: 10px; height: 10px;
  border-right: 2px solid #94a3b8; border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg); transition: transform 0.25s;
  flex-shrink: 0; margin-left: 1rem;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p { padding: 0 1.5rem 1.2rem; font-size: 0.92rem; color: #64748b; line-height: 1.8; }

/* ==========================================
   CTA
   ========================================== */
.cta { padding: 5rem 0; background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%); color: #fff; text-align: center; }
.cta-title { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; line-height: 1.4; }
.cta-sub { font-size: 1rem; opacity: 0.92; margin-bottom: 2rem; line-height: 1.8; }
.cta-contact { margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.2); }
.cta-contact > p { font-size: 0.95rem; opacity: 0.85; margin-bottom: 1.2rem; }
.contact-form { max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.8rem; }
.form-row { display: flex; gap: 0.8rem; }
.contact-form input, .contact-form textarea {
  width: 100%; font-family: inherit; font-size: 0.9rem; padding: 0.75em 1em;
  border: 1px solid rgba(255,255,255,0.3); border-radius: 8px;
  background: rgba(255,255,255,0.1); color: #fff; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.55); }
.contact-form input:focus, .contact-form textarea:focus { border-color: #fff; background: rgba(255,255,255,0.18); }
.contact-form textarea { resize: vertical; }

/* ==========================================
   Footer
   ========================================== */
.footer { background: #0f172a; color: #94a3b8; padding: 2rem 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; color: #e2e8f0; font-size: 1rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: #e2e8f0; }
.footer-copy { font-size: 0.78rem; color: #64748b; }

/* ==========================================
   Accessibility
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fade-in { opacity: 1; transform: none; }
}

/* ==========================================
   Responsive: Tablet (max-width: 900px)
   ========================================== */
@media (max-width: 900px) {
  .problem-grid, .steps-grid, .pricing-grid {
    grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto;
  }
  .pricing-card--popular { transform: none; }
  .ba-grid { flex-direction: column; }
  .ba-card { max-width: 100%; width: 100%; }
  .ba-arrow { transform: rotate(90deg); }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .cta-title { font-size: 1.6rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .proof-grid { flex-direction: column; gap: 1.5rem; align-items: center; }
  .hero-numbers { gap: 2rem; }
}

/* ==========================================
   Advanced Features
   ========================================== */
.advanced-features {
  padding: 5rem 0;
  background: #f8fafc;
}

.adv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}

.adv-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.adv-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.adv-icon {
  margin-bottom: 12px;
}

.adv-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.adv-card p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .adv-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   Responsive: SP (max-width: 600px)
   ========================================== */
@media (max-width: 600px) {
  .sp-only { display: inline; }
  .section-inner { padding-left: 6%; padding-right: 6%; }
  .header-inner { padding-left: 5%; padding-right: 5%; }
  .header-nav { display: none; }
  .hero { padding-top: 5.5rem; padding-bottom: 3rem; }
  .hero-title { font-size: 1.5rem; }
  .hero-sub { font-size: 0.92rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-stat-num { font-size: 1.8rem; }
  .section-title { font-size: 1.3rem; }
  .problem, .solution, .features, .social-proof, .pricing, .faq, .cta { padding: 3.5rem 0; }
  .form-row { flex-direction: column; }
  .cta-title { font-size: 1.35rem; }
  .price-amount { font-size: 2rem; }
  .popular-badge { top: -11px; font-size: 0.72rem; }
}
