/* ============================================
   AIChaAI — LP Common Styles
   Three variants share a base, override via class
   ============================================ */

/* fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700;800;900&family=Noto+Serif+JP:wght@600;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

/* shared LP container */
.lp {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-feature-settings: "palt";
  letter-spacing: 0.01em;
  width: 100%;
  color: #1a1530;
  background: #ffffff;
  overflow-x: hidden;
  position: relative;
}

/* hide editorial mid-meta on narrow viewports, show on wide */
@media (min-width: 900px) {
  .hero-meta-mid { display: inline !important; }
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   - ≤ 1024px: tablet — 4-col grids → 2-col, padding reduced
   - ≤ 720px:  mobile — 2-col grids → 1-col, nav becomes burger
   - ≤ 480px:  small mobile — further compression
   ============================================================ */

/* ─── Nav: burger toggles in by default below 1024 ─── */
@media (max-width: 1024px) {
  .c-nav { padding: 0 24px !important; }
  .c-nav-links { display: none !important; }
  .c-nav-burger { display: inline-flex !important; }
  .c-nav-cta .c-nav-login { display: none !important; }
}

@media (max-width: 720px) {
  .c-nav-cta { display: none !important; }
}

/* ─── Tablet: 4-col grids collapse to 2 ─── */
@media (max-width: 1024px) {
  .c-features, .c-tools, .c-demo, .c-stats, .c-faq, .c-contact {
    padding: 80px 32px !important;
  }
  .c-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .tools-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .custom-tools { grid-template-columns: 1fr !important; }
  .c-custom-right { border-left: none !important; border-top: 1px solid rgba(246,243,236,0.12) !important; }
  .c-tools-head { grid-template-columns: 1fr !important; gap: 32px !important; }
  .c-feature-hero { grid-template-columns: 1fr !important; }
  .c-feature-mock { height: 320px !important; }
  .c-faq-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
  .c-contact-grid { grid-template-columns: 1fr !important; gap: 40px !important; }
}

/* Editorial heading sizes need to come down on tablet too */
@media (max-width: 1024px) {
  .c-features h2,
  .c-tools h2,
  .c-demo h2,
  .c-stats h2,
  .c-faq h2 {
    font-size: 48px !important;
  }
  .c-contact h2 {
    font-size: 64px !important;
  }
  .c-flow h2 {
    font-size: 48px !important;
  }
}

/* ─── Mobile: full collapse ─── */
@media (max-width: 720px) {
  .hero-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
  }
  .c-hero {
    height: auto !important;
    min-height: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 32px !important;
  }
  .c-hero-figure {
    height: 380px !important;
    max-height: 60vh !important;
  }

  .manifesto-grid { grid-template-columns: 1fr !important; }
  .c-manifesto-left { order: -1; }
  .c-manifesto-left > div:first-child { font-size: 96px !important; }
  .c-manifesto-right { display: none !important; }

  .c-features, .c-tools, .c-demo, .c-stats, .c-faq, .c-contact {
    padding: 64px 20px !important;
  }
  .c-flow {
    padding: 64px 20px !important;
  }

  .c-features-grid { grid-template-columns: 1fr !important; }
  .c-features-grid > div {
    border-right: none !important;
    border-bottom: 1px solid #dfd9cb !important;
  }
  .c-features-grid > div:last-child { border-bottom: none !important; }

  .tools-grid { grid-template-columns: 1fr !important; }
  .c-stats-grid { grid-template-columns: 1fr !important; }
  .c-stats-grid > div {
    border-right: none !important;
    border-bottom: 1px solid #dfd9cb !important;
  }
  .c-stats-grid > div:last-child { border-bottom: none !important; }

  .flow-head {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }

  /* Comparison table: drop the header row, stack each row's cells */
  .c-compare-head { display: none !important; }
  .c-compare-row { grid-template-columns: 1fr !important; }
  .c-compare-row > div { border-left: none !important; }
  .c-compare-row > div:first-child {
    background: rgba(91,58,209,0.06) !important;
    padding-bottom: 8px !important;
  }
  .c-compare-label { display: block !important; }

  /* Demo dashboard: detail above list on mobile is more useful */
  .c-demo-dashboard {
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
  }
  .c-demo-list { border-right: none !important; border-bottom: 1px solid #dfd9cb !important; }
  .c-demo-detail { padding: 24px !important; }

  /* Flow timeline: drop horizontal line + stack as vertical timeline */
  .flow-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  .c-flow-line { display: none !important; }
  .c-flow-track { padding-top: 0 !important; }
  .c-flow-step {
    padding-top: 40px !important;
    padding-right: 0 !important;
    border-top: 1px solid rgba(246,243,236,0.12) !important;
  }
  .c-flow-tick { top: 32px !important; }
  .c-flow-day { top: 16px !important; }

  /* Editorial headings: even smaller on phone */
  .c-features h2,
  .c-tools h2,
  .c-demo h2,
  .c-stats h2,
  .c-faq h2,
  .c-flow h2 {
    font-size: 40px !important;
  }
  .c-contact h2 {
    font-size: 48px !important;
  }

  /* Stats grid number */
  .c-stats-grid > div { padding: 32px 20px !important; }

  /* Footer collapse */
  .c-footer {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 32px 20px !important;
    text-align: center;
  }
  .c-footer-links {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 16px !important;
    font-size: 12px;
  }
}

/* ─── Small mobile ─── */
@media (max-width: 480px) {
  .c-features, .c-tools, .c-demo, .c-stats, .c-faq, .c-contact, .c-flow {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .c-features h2,
  .c-tools h2,
  .c-demo h2,
  .c-stats h2,
  .c-faq h2,
  .c-flow h2 {
    font-size: 32px !important;
  }
  .c-contact h2 {
    font-size: 40px !important;
  }
  .c-hero-figure { height: 320px !important; }
  /* Demo head: stack the side note below the heading */
  .c-demo-head {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 16px !important;
  }
}

.lp h1, .lp h2, .lp h3, .lp h4 {
  letter-spacing: -0.01em;
  line-height: 1.35;
  text-wrap: pretty;
}

.lp p {
  line-height: 1.85;
  text-wrap: pretty;
}

/* placeholder image */
.lp-ph {
  position: relative;
  background:
    repeating-linear-gradient(
      135deg,
      rgba(99, 71, 213, 0.04) 0 8px,
      rgba(99, 71, 213, 0.08) 8px 16px
    ),
    #f5f3fb;
  border: 1px solid rgba(99, 71, 213, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(99, 71, 213, 0.55);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* common badge */
.lp-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* mock UI window chrome (used in demo screenshots) */
.lp-window {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 0 rgba(0,0,0,.02), 0 24px 60px -20px rgba(50, 30, 100, 0.18);
  overflow: hidden;
  border: 1px solid rgba(99, 71, 213, 0.08);
}

.lp-window-bar {
  height: 36px;
  background: #fafafa;
  border-bottom: 1px solid rgba(0,0,0,.05);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 6px;
}

.lp-window-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e0ed;
}

/* "ticket" stripes used for placeholders */
.ticket-line {
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(99,71,213,.15), rgba(99,71,213,.05));
}

/* code-ish chip */
.code-chip {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(99, 71, 213, 0.08);
  color: #6347d5;
}

/* ─── reset for canvas wrapper ─── */
.lp ::selection {
  background: rgba(99, 71, 213, 0.2);
}

html, body { margin: 0; background: #f0eee9; }
body { font-family: "Noto Sans JP", system-ui, sans-serif; }
#root { width: 100%; }

