/* === Hero === */
.hero {
  padding: 80px 20px 48px;
  text-align: center;
  background: var(--bg-primary);
}

.hero .container {
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: 17px;
  max-width: 540px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.hero .btn {
  font-size: 17px;
  padding: 16px 40px;
}

.hero .hero-note {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: 16px;
}

@media (max-width: 380px) {
  .hero .subtitle {
    font-size: 15px;
  }
}

@media (min-width: 640px) {
  .hero {
    padding: 100px 32px 64px;
  }

  .hero .subtitle {
    font-size: 18px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 120px 40px 80px;
  }
}

/* === Phone Mockup === */
.mockup-section {
  background: var(--bg-secondary);
  padding: 48px 20px 0;
  text-align: center;
  overflow: hidden;
}

/* Phone mock */
.phone-mock {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  background: #fff;
  border-radius: 40px;
  border: 6px solid #1A1A1A;
  padding: 16px 20px 32px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
  text-align: left;
}

.pm-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  padding: 0 4px 8px;
}

.pm-status-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 12px;
}

.pm-title {
  font-size: 17px;
  font-weight: 700;
  color: #1A1A1A;
}

.pm-tabs {
  display: flex;
  gap: 0;
  background: #F5F5F7;
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 20px;
}

.pm-tab {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 4px;
  border-radius: 8px;
  color: #6B7280;
}

.pm-tab.active {
  background: #fff;
  color: #1A1A1A;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.pm-score-wrap {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 8px auto 16px;
}

.pm-score-svg {
  display: block;
}

.pm-score-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pm-score-num {
  font-size: 44px;
  font-weight: 700;
  color: #22C55E;
  line-height: 1;
}

.pm-score-label {
  font-size: 17px;
  font-weight: 600;
  color: #22C55E;
}

.pm-desc {
  font-size: 11.5px;
  color: #6B7280;
  line-height: 1.6;
  text-align: center;
  margin-bottom: 20px;
  padding: 0 4px;
}

.pm-categories {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pm-cat-title {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
}

.pm-cat-item {
  background: #F9FAFB;
  border: 1px solid #F3F4F6;
  border-radius: 12px;
  padding: 10px 12px;
}

.pm-cat-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pm-cat-icon {
  font-size: 14px;
}

.pm-cat-name {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  flex: 1;
}

.pm-cat-val {
  font-size: 14px;
  font-weight: 700;
}

.pm-cat-sub {
  font-size: 10.5px;
  color: #9CA3AF;
  margin: 2px 0 6px 20px;
}

.pm-bar {
  height: 4px;
  background: #F3F4F6;
  border-radius: 2px;
}

.pm-bar-fill {
  height: 100%;
  border-radius: 2px;
}

/* Tab panels — grid stack so container = tallest panel, no layout shift */
.pm-panels {
  display: grid;
}

.pm-panel {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pm-panel.active {
  visibility: visible;
  opacity: 1;
}

.pm-tab {
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

/* Tips tab */
.pm-tips-header {
  font-size: 14px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 12px;
}

.pm-tip-item {
  background: #F9FAFB;
  border: 1px solid #F3F4F6;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.pm-tip-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pm-tip-badge.high {
  background: #DCFCE7;
  color: #16A34A;
}

.pm-tip-badge.medium {
  background: #FEF9C3;
  color: #A16207;
}

.pm-tip-title {
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  margin: 5px 0 3px;
}

.pm-tip-desc {
  font-size: 11px;
  color: #6B7280;
  line-height: 1.5;
}

/* Chat tab */
.pm-panel[data-panel="chat"] {
  display: flex;
  flex-direction: column;
}

.pm-panel[data-panel="chat"]:not(.active) {
  visibility: hidden;
  opacity: 0;
}

.pm-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.pm-chat-spacer {
  flex: 1;
}

.pm-chat-bubble {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 11.5px;
  line-height: 1.5;
}

.pm-chat-bubble.user {
  align-self: flex-end;
  background: linear-gradient(90deg, #FF6B9D, #67E8F9);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.pm-chat-bubble.ai {
  align-self: flex-start;
  background: #F5F5F7;
  color: #1A1A1A;
  border: 1px solid #E5E7EB;
  border-bottom-left-radius: 4px;
}

.pm-chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #F5F5F7;
  border: 1px solid #E5E7EB;
  border-radius: 99px;
  padding: 10px 14px;
  font-size: 12px;
  color: #9CA3AF;
}

@media (max-width: 480px) {
  .pm-tabs {
    padding: 2px;
    border-radius: 8px;
    margin-bottom: 14px;
  }

  .pm-tab {
    font-size: 11px;
    padding: 5px 2px;
    border-radius: 6px;
  }

  .pm-tab-icon {
    display: none;
  }
}

@media (max-width: 359px) {
  .phone-mock {
    border-radius: 32px;
    padding: 12px 14px 24px;
    border-width: 5px;
  }

  .pm-score-wrap {
    width: 120px;
    height: 120px;
  }

  .pm-score-svg {
    width: 120px;
    height: 120px;
  }

  .pm-score-num {
    font-size: 36px;
  }

  .pm-score-label {
    font-size: 14px;
  }
}

@media (min-width: 640px) {
  .mockup-section {
    padding: 64px 32px 0;
  }

  .phone-mock {
    max-width: 340px;
  }
}

/* === Features Grid === */
.features {
  background: var(--bg-primary);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.feature-icon.pink { background: var(--primary-50); }
.feature-icon.purple { background: #F3E8FF; }
.feature-icon.cyan { background: var(--secondary-50); }

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 15px;
}

/* === Score Categories === */
.categories {
  background: var(--bg-secondary);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: var(--container-max);
  margin: 0 auto;
}

@media (min-width: 640px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .categories-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.category-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 auto 12px;
}

.category-card h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.category-card p {
  font-size: 13px;
}

/* === AI Chat Section === */
.ai-chat {
  background: var(--bg-primary);
}

.ai-chat-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 768px) {
  .ai-chat-inner {
    grid-template-columns: 1fr 1fr;
  }
}

.ai-chat-text h2 {
  margin-bottom: 16px;
}

.ai-chat-text > p {
  margin-bottom: 24px;
}

.ai-chat-bullets {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ai-chat-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.bullet-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* Chat mockup */
.chat-mockup {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble.user {
  align-self: flex-end;
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble.ai {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

/* === Stats === */
.stats {
  background: var(--bg-secondary);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.stat-item .stat-value {
  font-size: 28px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-item .stat-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

@media (min-width: 640px) {
  .stat-item .stat-value {
    font-size: 48px;
  }

  .stat-item .stat-label {
    font-size: 15px;
  }
}

/* === Final CTA === */
.final-cta {
  background: var(--gradient-135);
  padding: var(--section-padding);
  text-align: center;
}

.final-cta h2 {
  color: #FFFFFF;
  margin-bottom: 12px;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 480px;
  margin: 0 auto 32px;
  font-size: 17px;
}

.final-cta .btn {
  background: #FFFFFF;
  color: var(--text-primary);
  font-size: 17px;
  padding: 16px 40px;
}

.final-cta .btn:hover {
  box-shadow: var(--shadow-xl);
}
