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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Landing Page ===== */
.landing {
  max-width: 800px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 80px 24px 60px;
  background: linear-gradient(135deg, #06c755 0%, #04a847 100%);
  color: #fff;
}

.hero h1 {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 16px;
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero .btn-lg {
  display: inline-block;
  width: auto;
  padding: 16px 48px;
  font-size: 18px;
  border-radius: 50px;
  background: #fff;
  color: #06c755;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-note {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.8;
}

.section {
  padding: 60px 24px;
}

.section-alt {
  background: #fff;
}

.section h2 {
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 32px;
}

/* Pain points */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.pain-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.pain-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.pain-card p {
  font-size: 14px;
  color: #555;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.step-card {
  text-align: center;
  padding: 24px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #06c755;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 14px;
  color: #666;
}

/* Demo chat */
.demo-chat {
  max-width: 400px;
  margin: 0 auto;
}

.chat-bubble {
  padding: 14px 18px;
  border-radius: 18px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
}

.chat-bubble.user {
  background: #06c755;
  color: #fff;
  margin-left: 60px;
  border-bottom-right-radius: 4px;
}

.chat-bubble.bot {
  background: #fff;
  color: #333;
  margin-right: 60px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.pricing-card {
  background: #f9fafb;
  border: 2px solid #e0e0e0;
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
}

.pricing-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #06c755;
}

.pricing-paid {
  border-color: #06c755;
}

.price {
  font-size: 16px;
  color: #666;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 48px;
  font-weight: 800;
  color: #06c755;
}

.price-tax {
  font-size: 14px;
  color: #999;
}

.price-trial {
  font-size: 14px;
  color: #06c755;
  font-weight: 600;
  margin: 8px 0 24px;
}

.price-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.price-features li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.price-features li::before {
  content: '✓ ';
  color: #06c755;
  font-weight: 700;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.trust-item {
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.trust-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.trust-item strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}

.trust-item p {
  font-size: 14px;
  color: #666;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 24px;
  background: #333;
  color: #999;
  font-size: 13px;
}

.footer-links {
  margin-top: 12px;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
  margin: 0 12px;
}

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

/* ===== Settings / App Pages ===== */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px;
}

.header {
  text-align: center;
  padding: 32px 0 24px;
}

.header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #06c755;
  margin-bottom: 8px;
}

.header p {
  font-size: 14px;
  color: #666;
}

/* Cards */
.card {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card h2 {
  font-size: 18px;
  margin-bottom: 12px;
}

.card p {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

/* Status badges */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.status.connected {
  background: #e8f8ee;
  color: #06c755;
}

.status.disconnected {
  background: #fff3e0;
  color: #e65100;
}

.status.trial {
  background: #e3f2fd;
  color: #1565c0;
}

/* Buttons */
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.2s;
}

.btn:active {
  opacity: 0.8;
}

.btn-primary {
  background: #06c755;
  color: #fff;
}

.btn-google {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-google img {
  width: 20px;
  height: 20px;
}

.btn-secondary {
  background: #f0f0f0;
  color: #333;
}

.btn-danger {
  background: #fff;
  color: #e53935;
  border: 1px solid #ffcdd2;
}

.btn + .btn {
  margin-top: 10px;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Form elements */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.time-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.time-row .form-group {
  flex: 1;
}

.time-row span {
  font-size: 14px;
  color: #666;
  padding-top: 20px;
}

/* Linking code display */
.linking-code {
  background: #f0faf4;
  border: 2px dashed #06c755;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 16px;
}

.linking-code strong {
  font-size: 32px;
  letter-spacing: 4px;
  color: #06c755;
  display: block;
  margin-bottom: 8px;
}

.linking-code p {
  font-size: 12px;
  color: #666;
}

/* Usage examples */
.usage-examples {
  background: #f8f8f8;
  padding: 16px;
  border-radius: 12px;
}

.usage-examples p {
  font-size: 14px;
  color: #333;
  margin-bottom: 4px;
}

.usage-examples p:last-child {
  margin-bottom: 0;
}

/* Loading */
.loading {
  text-align: center;
  padding: 40px 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #eee;
  border-top-color: #06c755;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 12px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Page sections */
.page {
  display: none;
}

.page.active {
  display: block;
}

/* Responsive */
@media (max-width: 600px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .section h2 {
    font-size: 20px;
  }

  .chat-bubble.user {
    margin-left: 30px;
  }

  .chat-bubble.bot {
    margin-right: 30px;
  }
}
