/* ==========================================
   PETia — Theme CSS
   Warm coral + soft teal palette
   Nunito headings / DM Sans body
   ========================================== */

:root {
  --coral: #FF6B4A;
  --coral-dark: #E55A3A;
  --teal: #4ECDC4;
  --bg: #FEF9F6;
  --bg-alt: #FFF3EE;
  --fg: #1a1a2e;
  --fg-muted: #6B6B8D;
  --fg-light: #A0A0C0;
  --border: #F0E6E1;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  line-height: 1.2;
}

/* ---- Layout helpers ---- */
.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 24px;
}

/* ---- HERO ---- */
.hero {
  background: var(--bg);
  padding: 80px 40px 60px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text { display: flex; flex-direction: column; }

.hero-eyebrow {
  display: inline-block;
  background: var(--coral);
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 20px;
}

.hero-headline {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
}

.hero-lede {
  font-size: 17px;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 500px;
  margin-bottom: 32px;
}

.hero-pets { margin-top: 8px; }

.pet-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

.pet-avatars {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pet-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  cursor: default;
  transition: border-color 0.2s, color 0.2s;
}

.pet-chip:hover {
  border-color: var(--coral);
  color: var(--coral);
}

/* ---- Widget ---- */
.screen-widget {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(255, 107, 74, 0.12), 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}

.widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}

.widget-dots { display: flex; gap: 6px; }
.widget-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--fg-light); display: block;
}
.widget-dots span:first-child { background: #FF5F57; }
.widget-dots span:nth-child(2) { background: #FFBD2E; }
.widget-dots span:nth-child(3) { background: #28CA41; }

.widget-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  margin-left: auto;
}

.widget-body { padding: 20px; }

.pet-display { display: flex; flex-direction: column; align-items: center; margin-bottom: 16px; }

.pet-avatar-large svg { width: 120px; height: 120px; }

.pet-state-label {
  margin-top: 8px;
  font-size: 11px;
  color: var(--teal);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.widget-insight {
  background: var(--bg);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.insight-icon { font-size: 16px; flex-shrink: 0; }

.insight-text {
  font-size: 12.5px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.widget-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mood-dots { display: flex; gap: 5px; }
.mood-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--fg-light);
}
.mood-dot.active { background: var(--teal); }

.calibration-label {
  font-size: 11px;
  color: var(--fg-muted);
  font-weight: 600;
}

/* ---- CALIBRATION ---- */
.calibration {
  background: var(--bg-alt);
  padding: 80px 40px;
  border-bottom: 1px solid var(--border);
}

.calibration-inner { max-width: 900px; margin: 0 auto; }

.calibration-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  align-items: center;
  gap: 0;
  margin: 40px 0 24px;
}

.cal-day {
  background: white;
  border-radius: 16px;
  padding: 28px 32px;
  border: 1.5px solid var(--border);
}

.cal-arrow { display: flex; justify-content: center; }

.day-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 8px;
}

.day-title {
  font-family: 'Nunito', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--fg);
  margin-bottom: 12px;
}

.day-desc {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.calibration-analogy {
  font-size: 13px;
  color: var(--fg-light);
  text-align: center;
}

.analogy-label {
  font-weight: 600;
  color: var(--fg-muted);
}

/* ---- FEATURES ---- */
.features {
  padding: 80px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.features-inner { max-width: 1100px; margin: 0 auto; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 28px 28px 32px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 20px rgba(255, 107, 74, 0.1);
  border-color: var(--coral);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-alt);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- AVATAR ---- */
.avatar-section {
  padding: 80px 40px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.avatar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.avatar-desc {
  font-size: 16px;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.avatar-states {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.state-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--fg-muted);
  font-weight: 500;
}

.state-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.state-dot.focused { background: var(--teal); }
.state-dot.stressed { background: #FF6B4A; }
.state-dot.chill { background: #A78BFA; }
.state-dot.curious { background: #F59E0B; }
.state-dot.celebrating { background: #10B981; }
.state-dot.idle { background: var(--fg-light); }

.avatar-showcase { position: relative; }

.showcase-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: all 0.3s;
}

.showcase-card.active {
  border-color: var(--coral);
  box-shadow: 0 8px 30px rgba(255, 107, 74, 0.15);
}

.avatar-svg { width: 100px; height: 100px; }

.state-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-muted);
  text-align: center;
}

/* ---- WHY ---- */
.why-section {
  padding: 80px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.why-inner { max-width: 1100px; margin: 0 auto; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin-top: 48px;
}

.why-item {
  padding: 40px;
  border: 1px solid var(--border);
}

.why-item:nth-child(odd) { border-right: none; }
.why-item:nth-child(1), .why-item:nth-child(2) { border-bottom: none; }

.why-number {
  font-size: 40px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  color: var(--bg-alt);
  line-height: 1;
  margin-bottom: 16px;
  -webkit-text-stroke: 1.5px var(--coral);
}

.why-item h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}

.why-item p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ---- CLOSING ---- */
.closing {
  padding: 100px 40px;
  background: var(--fg);
  color: white;
}

.closing-inner { max-width: 900px; margin: 0 auto; text-align: center; }

.closing-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  line-height: 1.15;
}

.closing-body {
  font-size: 17px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 48px;
}

.closing-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  overflow: hidden;
}

.stat-item {
  flex: 1;
  padding: 28px 20px;
  text-align: center;
}

.stat-value {
  font-family: 'Nunito', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--coral);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
}

.closing-final {
  font-size: 15px;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--fg);
  padding: 28px 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand { display: flex; flex-direction: column; gap: 4px; }

.footer-logo {
  font-family: 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: white;
}

.footer-tagline {
  font-size: 11px;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.06em;
}

.footer-note {
  font-size: 12px;
  color: rgba(255,255,255,0.25);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero-inner,
  .avatar-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero { padding: 60px 24px 40px; }
  .features, .calibration, .avatar-section, .why-section { padding: 60px 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border: 1px solid var(--border) !important; }
  .why-item:nth-child(1), .why-item:nth-child(2) { border-bottom: 1px solid var(--border) !important; }
  .closing-stats { flex-direction: column; }
  .stat-divider { width: 60px; height: 1px; }
  .calibration-grid { grid-template-columns: 1fr; gap: 20px; }
  .cal-arrow { transform: rotate(90deg); }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: 32px; }
  .closing-stats { display: none; }
}
