/* ===========================================
   Design Style Finder Pro - LP Styles
   All classes prefixed with .lp- to avoid conflicts
   =========================================== */

/* ---------- Smooth Scroll ---------- */
html {
  scroll-behavior: smooth;
}

/* ---------- Variables ---------- */
:root {
  --lp-bg: #fafafa;
  --lp-bg-alt: #ffffff;
  --lp-text: #1a1a1a;
  --lp-text-muted: #666666;
  --lp-accent: #E53935;
  --lp-accent-hover: #C62828;
  --lp-border: #e5e5e5;
  --lp-section-padding: 80px 24px;
  --lp-max-width: 1100px;
}

/* ---------- LP Container ---------- */
.lp-container {
  background: var(--lp-bg);
}

.lp-section {
  max-width: var(--lp-max-width);
  margin: 0 auto;
  padding: var(--lp-section-padding);
}

/* ---------- Hero Section ---------- */
.lp-hero {
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f5 100%);
  text-align: center;
  padding: 100px 24px 80px;
}

.lp-hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.lp-hero-badge {
  display: inline-block;
  background: var(--lp-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.lp-hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.3;
  color: var(--lp-text);
  margin: 0 0 20px;
}

.lp-hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--lp-text-muted);
  margin: 0 0 12px;
  line-height: 1.6;
}

.lp-hero-note {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin: 0 0 36px;
}

.lp-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lp-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.lp-cta-btn:hover {
  background: var(--lp-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(229, 57, 53, 0.3);
}

.lp-cta-btn svg {
  transition: transform 0.2s ease;
}

.lp-cta-btn:hover svg {
  transform: translateX(4px);
}

/* ---------- Pain Section ---------- */
.lp-pain {
  background: var(--lp-bg-alt);
}

.lp-section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  text-align: center;
  margin: 0 0 48px;
  color: var(--lp-text);
}

.lp-pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.lp-pain-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--lp-border);
}

.lp-pain-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.lp-pain-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--lp-text);
  margin: 0 0 12px;
  line-height: 1.4;
}

.lp-pain-card p {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ---------- Solution Section ---------- */
.lp-solution {
  background: var(--lp-bg);
}

.lp-solution-main {
  text-align: center;
  margin-bottom: 48px;
}

.lp-solution-headline {
  font-size: clamp(22px, 3.5vw, 28px);
  font-weight: 700;
  color: var(--lp-accent);
  margin: 0 0 8px;
}

.lp-solution-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-solution-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  color: var(--lp-text);
}

.lp-solution-list li::before {
  content: '';
  width: 20px;
  height: 20px;
  background: var(--lp-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

/* ---------- HowTo Section ---------- */
.lp-howto {
  background: var(--lp-bg-alt);
}

.lp-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.lp-step {
  text-align: center;
  position: relative;
}

.lp-step-number {
  width: 56px;
  height: 56px;
  background: var(--lp-accent);
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.lp-step h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--lp-text);
  margin: 0 0 10px;
}

.lp-step p {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* Arrow between steps (desktop only) */
@media (min-width: 768px) {
  .lp-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -16px;
    width: 32px;
    height: 2px;
    background: var(--lp-border);
  }
}

/* ---------- Steps with Visual (GIF) ---------- */
.lp-steps-visual {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.lp-step-visual {
  text-align: center;
  position: relative;
}

.lp-step-visual .lp-step-number {
  width: 40px;
  height: 40px;
  background: var(--lp-accent);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.lp-step-gif {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--lp-border);
  background: #fff;
}

.lp-step-gif img {
  width: 100%;
  height: auto;
  display: block;
}

.lp-step-visual h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--lp-text);
  margin: 0 0 8px;
}

.lp-step-visual p {
  font-size: 13px;
  color: var(--lp-text-muted);
  margin: 0;
  line-height: 1.5;
}

/* Tablet: 2 columns */
@media (max-width: 900px) {
  .lp-steps-visual {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .lp-steps-visual {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lp-step-gif {
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 16px;
  }
}

/* ---------- Before/After Section ---------- */
.lp-before-after {
  background: var(--lp-bg);
}

.lp-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .lp-comparison {
    grid-template-columns: 1fr;
  }
}

.lp-comparison-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--lp-border);
}

.lp-comparison-card.before {
  background: #f5f5f5;
}

.lp-comparison-card.after {
  background: #fff;
  border-color: var(--lp-accent);
  box-shadow: 0 4px 20px rgba(229, 57, 53, 0.15);
}

.lp-comparison-label {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lp-comparison-card.before .lp-comparison-label {
  background: #e0e0e0;
  color: #666;
}

.lp-comparison-card.after .lp-comparison-label {
  background: var(--lp-accent);
  color: #fff;
}

.lp-comparison-content {
  padding: 24px;
  min-height: 180px;
}

/* Before: Plain boring document style */
.before-doc {
  font-family: 'MS PGothic', 'Hiragino Kaku Gothic ProN', sans-serif;
}

.before-title {
  font-size: 16px;
  font-weight: normal;
  text-decoration: underline;
  margin: 0 0 16px;
  color: #333;
}

.before-text {
  font-size: 13px;
  color: #333;
  margin: 12px 0 4px;
  font-weight: normal;
}

.before-body {
  font-size: 12px;
  color: #555;
  margin: 0 0 8px;
  line-height: 1.5;
  padding-left: 8px;
}

/* After: Swiss Minimal style - Professional & Clean */
.after-doc {
  font-family: 'Outfit', sans-serif;
  position: relative;
  padding-top: 12px;
}

.after-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--lp-accent);
}

.after-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--lp-accent);
  margin: 0 0 8px;
  text-transform: uppercase;
}

.after-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #000;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.after-grid {
  display: grid;
  gap: 16px;
}

.after-section {
  padding-left: 12px;
  border-left: 2px solid #eee;
}

.after-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #999;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.after-body {
  font-size: 13px;
  color: #333;
  margin: 0;
  line-height: 1.7;
  font-family: 'Noto Sans JP', sans-serif;
}

.after-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

.after-list li {
  font-size: 13px;
  color: #333;
  padding: 4px 0 4px 16px;
  position: relative;
  line-height: 1.5;
}

.after-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  background: var(--lp-accent);
  border-radius: 50%;
}

/* ---------- ForWho Section ---------- */
.lp-for-who {
  background: var(--lp-bg-alt);
}

.lp-for-who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 800px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .lp-for-who-grid {
    grid-template-columns: 1fr;
  }
}

.lp-for-who-card {
  padding: 28px;
  border-radius: 12px;
}

.lp-for-who-card.good {
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
}

.lp-for-who-card.not {
  background: #fafafa;
  border: 1px solid var(--lp-border);
}

.lp-for-who-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lp-for-who-card.good h3 {
  color: #2e7d32;
}

.lp-for-who-card.not h3 {
  color: #757575;
}

.lp-for-who-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.lp-for-who-card li {
  font-size: 14px;
  color: var(--lp-text);
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.lp-for-who-card.good li::before {
  content: '○';
  position: absolute;
  left: 0;
  color: #4caf50;
}

.lp-for-who-card.not li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: #9e9e9e;
}

/* ---------- FAQ Section ---------- */
.lp-faq {
  background: var(--lp-bg);
}

.lp-faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.lp-faq-item {
  border-bottom: 1px solid var(--lp-border);
  padding: 24px 0;
}

.lp-faq-item:first-child {
  border-top: 1px solid var(--lp-border);
}

.lp-faq-q {
  font-size: 16px;
  font-weight: 600;
  color: var(--lp-text);
  margin: 0 0 12px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.lp-faq-q::before {
  content: 'Q';
  background: var(--lp-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lp-faq-a {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin: 0;
  padding-left: 36px;
  line-height: 1.7;
}

/* ---------- Final CTA Section ---------- */
.lp-final-cta {
  background: linear-gradient(180deg, #f5f5f5 0%, #ffffff 100%);
  text-align: center;
  padding: 80px 24px 100px;
}

.lp-final-cta h2 {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--lp-text);
  margin: 0 0 12px;
}

.lp-final-cta p {
  font-size: 16px;
  color: var(--lp-text-muted);
  margin: 0 0 32px;
}

/* ---------- Tool Section Separator ---------- */
.lp-tool-separator {
  background: var(--lp-bg);
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--lp-border);
}

.lp-tool-separator p {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.lp-tool-separator p::before,
.lp-tool-separator p::after {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--lp-border);
}

/* ---------- Samples Gallery ---------- */
.lp-samples {
  background: var(--lp-bg-alt);
}

.lp-section-subtitle {
  text-align: center;
  color: var(--lp-text-muted);
  margin-bottom: 48px;
  font-size: 1rem;
}

.lp-samples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.lp-sample-card {
  background: var(--lp-bg);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-sample-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.lp-sample-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
}

.lp-sample-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lp-sample-card:hover .lp-sample-image img {
  transform: scale(1.02);
}

.lp-sample-info {
  display: flex;
  gap: 12px;
  padding: 20px 20px 8px;
}

.lp-sample-style {
  background: var(--lp-accent);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.lp-sample-type {
  background: var(--lp-bg-alt);
  color: var(--lp-text-muted);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
}

.lp-sample-desc {
  padding: 8px 20px 12px;
  color: var(--lp-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.lp-sample-link {
  display: block;
  padding: 10px 20px 16px;
  color: var(--lp-accent);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.lp-sample-link:hover {
  color: #c62828;
  text-decoration: underline;
}

.lp-samples-note {
  margin-top: 40px;
  padding: 20px 24px;
  background: linear-gradient(135deg, #fff8e6 0%, #fff3cc 100%);
  border-radius: 12px;
  border-left: 4px solid #f5a623;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.lp-samples-note p {
  color: #7a5c00;
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
}

.lp-samples-note strong {
  color: #5a4400;
}

/* Sample Card Hover - Zoom hint */
.lp-sample-card {
  cursor: pointer;
}

.lp-sample-zoom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: white;
  font-size: 0.85rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lp-sample-image {
  position: relative;
}

.lp-sample-card:hover .lp-sample-zoom {
  opacity: 1;
}

/* Sample Modal */
.sample-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sample-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.sample-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: white;
  border-radius: 16px;
  max-width: 90vw;
  max-height: 90vh;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.sample-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.sample-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.sample-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.sample-modal-title {
  padding: 16px 60px 16px 20px;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
}

.sample-modal-image {
  max-height: calc(90vh - 60px);
  overflow: auto;
}

.sample-modal-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  :root {
    --lp-section-padding: 60px 20px;
  }

  .lp-hero {
    padding: 80px 20px 60px;
  }

  .lp-solution-list {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .lp-final-cta {
    padding: 60px 20px 80px;
  }

  /* Samples Gallery Mobile */
  .lp-samples-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .lp-sample-image {
    aspect-ratio: 16 / 9;
  }

  .lp-samples-note {
    padding: 16px 20px;
  }
}
