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

:root {
  --bg-white: #FFFFFF;
  --bg-subtle: #F5F5F7;
  --border-light: #E5E5EA;
  --border-hover: #D1D1D6;
  --text-dark: #1D1D1F;
  --text-body: #515154;
  --text-muted: #6E6E73;
  --text-subtle: #86868B;
  --emerald-deep: #059669;
  --emerald-mint: #6EE7B7;
  --track-bg: #F2F2F7;
  --radius-card: 24px;
  --radius-pill: 9999px;
}

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

html, body {
  background: var(--bg-white);
  color: var(--text-dark);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  max-width: 100%;
  overflow-x: clip;
}

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.no-scrollbar {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  max-width: 100%;
  min-width: 0;
}
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.studio-tab, #coachPillStrip button {
  flex-shrink: 0;
  white-space: nowrap;
}

/* Sticky Apple Frosted Header */
.apple-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.monogram-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--text-dark);
  color: var(--bg-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.lang-switcher {
  display: inline-flex;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-btn.active {
  background: var(--text-dark);
  color: var(--bg-white);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--text-dark);
  color: var(--bg-white);
  border: 1px solid var(--text-dark);
  border-radius: var(--radius-pill);
  padding: 13px 24px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.btn-primary:hover {
  opacity: 0.88;
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 13px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* Containers & Cards */
.container {
  max-width: 1120px;
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 68px 0;
}

.section-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 26px;
}

.card-subtle {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 24px;
}

/* Typography */
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-body);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: var(--text-dark);
  max-width: 820px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-body);
  max-width: 660px;
  margin-top: 16px;
}

.section-title {
  font-size: clamp(24px, 3.3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Soft Semantic Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: var(--radius-pill);
  padding: 4px 11px;
  font-size: 12px;
  font-weight: 600;
}
.badge-good {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
}
.badge-warn {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #92400E;
}
.badge-fail {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}
.badge-neutral {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  color: var(--text-body);
}

/* Consistent Two-Tone Emerald Chart */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  margin-right: 6px;
}
.bar-track {
  width: 100%;
  height: 14px;
  background: var(--track-bg);
  border-radius: var(--radius-pill);
  overflow: hidden;
  display: flex;
}
.bar-seg-primary {
  background: var(--emerald-deep);
  height: 100%;
  transition: width 0.25s ease;
}
.bar-seg-secondary {
  background: var(--emerald-mint);
  height: 100%;
  transition: width 0.25s ease;
}

/* Form Inputs */
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.input, .textarea, .select {
  width: 100%;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--text-dark);
}
.textarea {
  resize: vertical;
  min-height: 98px;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--text-dark);
  cursor: pointer;
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* WhatsApp Chat Bubble Preview */
.wa-phone-frame {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.wa-bubble-user {
  align-self: flex-end;
  background: var(--text-dark);
  color: var(--bg-white);
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px;
  font-size: 13.5px;
  max-width: 84%;
}
.wa-bubble-bot {
  align-self: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-dark);
  border-radius: 18px 18px 18px 4px;
  padding: 12px 15px;
  font-size: 13.5px;
  max-width: 92%;
  white-space: pre-line;
}

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 46px 0;
  }
  .header-inner { padding: 10px 14px; gap: 8px; }
  .brand-link { font-size: 14.5px; gap: 8px; }
  .monogram-badge { width: 30px; height: 30px; font-size: 12px; }
  .lang-btn { padding: 4px 7px; font-size: 11px; }
  .header-actions .btn-sm { padding: 6px 11px; font-size: 12px; }
  .container { padding-left: 14px; padding-right: 14px; }
  .card, .card-subtle { padding: 18px 16px; }
}
