/* =========================================
   MotherStack — Custom Landing Page Styles
   ========================================= */

/* --- Variables --- */
:root {
  --bg: #FDFAF4;
  --bg-warm: #F7F2E9;
  --fg: #2C2416;
  --fg-muted: #7A6E5E;
  --accent-rose: #C4847A;
  --accent-sage: #7A9E7E;
  --accent-terra: #D4856A;
  --border: rgba(44, 36, 22, 0.12);
  --radius: 12px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 300; line-height: 1.15; }

/* --- Nav --- */
.site-nav {
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--fg);
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.nav-link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--fg); }

/* --- Hero --- */
.hero {
  padding: 5rem 3rem 4rem;
  overflow: hidden;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-rose);
  margin-bottom: 1.5rem;
  font-weight: 500;
}
.hero-headline {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 300;
  color: var(--fg);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}
.hero-headline em {
  font-style: italic;
  color: var(--accent-rose);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(44, 36, 22, 0.12);
  aspect-ratio: 4/3;
  background: var(--bg-warm);
}
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}
.btn-primary {
  background: var(--accent-sage);
  color: #fff;
}
.btn-primary:hover { background: #6a8d6e; transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--fg-muted); }

/* --- How It Works --- */
.how-section {
  padding: 4rem 3rem;
  background: var(--bg-warm);
}
.section-label {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-sage);
  font-weight: 500;
  margin-bottom: 0.75rem;
}
.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.section-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 480px;
}
.how-grid {
  max-width: 1200px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.how-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
}
.how-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-sage);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.how-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.how-desc {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* --- Features --- */
.features-section {
  padding: 5rem 3rem;
}
.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-text h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.feature-text p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.55;
}
.features-visual {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(44, 36, 22, 0.10);
  aspect-ratio: 5/4;
  background: var(--bg-warm);
}
.features-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* --- CTA --- */
.cta-section {
  padding: 5rem 3rem;
  background: var(--fg);
  text-align: center;
}
.cta-section .section-heading { color: var(--bg); font-size: clamp(1.8rem, 3vw, 2.8rem); }
.cta-section .section-sub { color: rgba(253, 250, 244, 0.65); margin: 0.5rem auto 2rem; }
.cta-section .btn-primary { background: var(--accent-rose); font-size: 1rem; padding: 0.9rem 2rem; }
.cta-section .btn-primary:hover { background: #b5736a; }

/* --- Footer --- */
.site-footer {
  padding: 2rem 3rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-copy {
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  font-size: 0.85rem;
  color: var(--fg-muted);
  text-decoration: none;
}
.footer-links a:hover { color: var(--fg); }

/* --- Responsive --- */
@media (max-width: 768px) {
  .site-nav { padding: 1rem 1.5rem; }
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-image { display: none; }
  .how-section, .features-section, .cta-section { padding: 3rem 1.5rem; }
  .how-grid { grid-template-columns: 1fr; }
  .features-inner { grid-template-columns: 1fr; gap: 2rem; }
  .features-visual { display: none; }
  .site-footer { padding: 1.5rem; flex-direction: column; gap: 1rem; text-align: center; }
}

/* --- Booking Widget --- */
.booking-section {
  padding: 5rem 3rem;
  background: var(--bg-warm);
}
.booking-inner {
  max-width: 860px;
  margin: 0 auto;
}
.booking-header {
  text-align: center;
  margin-bottom: 3rem;
}
.booking-header .section-heading { font-size: clamp(2rem, 4vw, 2.8rem); }

/* Widget container */
.scheduling-widget {
  background: var(--bg);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(44, 36, 22, 0.08);
}

/* Step indicator */
.widget-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.step-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--fg-muted);
  transition: all 0.3s;
}
.step-dot.active {
  background: var(--accent-sage);
  border-color: var(--accent-sage);
  color: #fff;
}
.step-dot.done {
  background: var(--accent-sage);
  border-color: var(--accent-sage);
  color: #fff;
}
.step-label { display: none; }
.step-sep {
  width: 48px;
  height: 2px;
  background: var(--border);
  margin: 0 0.5rem;
}

/* Calendar grid */
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.calendar-month {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--fg);
}
.calendar-nav-btn {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  transition: all 0.2s;
}
.calendar-nav-btn:hover { border-color: var(--accent-sage); color: var(--accent-sage); }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 0.5rem;
}
.calendar-day-header {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-muted);
  text-align: center;
  padding: 0.5rem 0;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--fg);
  border: 1.5px solid transparent;
}
.calendar-day.empty { cursor: default; }
.calendar-day.available:hover {
  background: var(--accent-sage);
  color: #fff;
  border-color: var(--accent-sage);
}
.calendar-day.available.selected {
  background: var(--accent-sage);
  color: #fff;
  border-color: var(--accent-sage);
}
.calendar-day.unavailable { color: var(--fg-muted); opacity: 0.4; cursor: not-allowed; }
.calendar-day.past { color: var(--fg-muted); opacity: 0.3; cursor: not-allowed; }
.calendar-day.today { border-color: var(--accent-rose); font-weight: 600; }

/* Time slots */
.time-slots {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.time-slots-title {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-bottom: 1rem;
  text-align: center;
}
.slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}
.time-slot {
  padding: 0.6rem;
  text-align: center;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
}
.time-slot:hover { border-color: var(--accent-sage); color: var(--accent-sage); }
.time-slot.selected { background: var(--accent-sage); color: #fff; border-color: var(--accent-sage); }
.time-slot.booked { opacity: 0.4; cursor: not-allowed; }

/* Service picker */
.service-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.service-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg);
}
.service-card:hover { border-color: var(--accent-sage); }
.service-card.selected { border-color: var(--accent-sage); background: rgba(122, 158, 126, 0.06); }
.service-left { display: flex; align-items: center; gap: 0.75rem; }
.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-name { font-size: 0.95rem; font-weight: 500; color: var(--fg); }
.service-meta { font-size: 0.8rem; color: var(--fg-muted); }
.service-price { font-size: 0.95rem; font-weight: 600; color: var(--accent-terra); }

/* Booking form */
.booking-form {
  display: grid;
  gap: 1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fg);
  letter-spacing: 0.02em;
}
.form-input, .form-select {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-sage);
}
.form-input::placeholder { color: var(--fg-muted); }

/* Confirmation */
.confirmation {
  text-align: center;
  padding: 1rem 0;
}
.confirm-icon {
  width: 64px;
  height: 64px;
  background: rgba(122, 158, 126, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.confirm-icon svg { width: 32px; height: 32px; color: var(--accent-sage); }
.confirm-title {
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.confirm-sub {
  font-size: 0.95rem;
  color: var(--fg-muted);
  line-height: 1.65;
  max-width: 400px;
  margin: 0 auto 1.5rem;
}
.confirm-details {
  background: var(--bg-warm);
  border-radius: 12px;
  padding: 1.25rem;
  text-align: left;
  max-width: 400px;
  margin: 0 auto;
}
.confirm-detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  font-size: 0.9rem;
}
.confirm-detail-row span:first-child { color: var(--fg-muted); }
.confirm-detail-row span:last-child { font-weight: 500; color: var(--fg); }
.confirm-note {
  font-size: 0.8rem;
  color: var(--fg-muted);
  margin-top: 1rem;
}

/* Widget footer */
.widget-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--fg-muted);
}

@media (max-width: 600px) {
  .scheduling-widget { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .slots-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =========================================
   PLANNER APP STYLES
   ========================================= */

/* --- App Shell --- */
.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.app-header {
  background: var(--fg);
  color: var(--bg);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
}
.app-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.app-nav a {
  color: rgba(253, 250, 244, 0.65);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.app-nav a:hover, .app-nav a.active {
  color: var(--bg);
  background: rgba(253, 250, 244, 0.1);
}
.app-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.app-user span {
  font-size: 0.85rem;
  color: rgba(253, 250, 244, 0.65);
}
.btn-logout {
  background: none;
  border: none;
  color: rgba(253, 250, 244, 0.45);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.btn-logout:hover {
  color: var(--bg);
  background: rgba(253, 250, 244, 0.1);
}

/* --- Phase Bar --- */
.phase-bar {
  background: var(--bg-warm);
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.phase-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: 0.82rem;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  transition: all 0.2s;
}
.phase-step:hover { background: rgba(44, 36, 22, 0.05); }
.phase-step.active {
  background: var(--fg);
  color: var(--bg);
}
.phase-step.done { color: var(--accent-sage); }
.phase-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(44, 36, 22, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}
.phase-step.active .phase-num { background: rgba(253, 250, 244, 0.2); }
.phase-step.done .phase-num { background: var(--accent-sage); color: #fff; }
.phase-sep {
  width: 20px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

/* --- Main Content --- */
.app-main {
  flex: 1;
  padding: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

/* --- Cards --- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.card-title {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--fg);
}
.card-subtitle {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin-top: 0.25rem;
}
.card-action {
  font-size: 0.82rem;
  color: var(--accent-sage);
  text-decoration: none;
  font-weight: 500;
}

/* --- Phase Header --- */
.phase-header {
  margin-bottom: 2rem;
}
.phase-tag {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-rose);
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.phase-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-family: var(--font-display);
  color: var(--fg);
  margin-bottom: 0.5rem;
}
.phase-sub {
  color: var(--fg-muted);
  font-size: 1rem;
  max-width: 560px;
}

/* --- Goal/Revenue Display --- */
.goal-hero {
  text-align: center;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, var(--fg) 0%, #4a3d2a 100%);
  border-radius: 20px;
  color: var(--bg);
  margin-bottom: 2rem;
}
.goal-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(253, 250, 244, 0.55);
  margin-bottom: 0.75rem;
}
.goal-amount {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1;
  margin-bottom: 1.5rem;
}
.progress-bar {
  height: 8px;
  background: rgba(253, 250, 244, 0.15);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.progress-fill {
  height: 100%;
  background: var(--accent-sage);
  border-radius: 8px;
  transition: width 1s ease;
}
.progress-text {
  font-size: 0.85rem;
  color: rgba(253, 250, 244, 0.6);
}

/* --- Forms --- */
.form-section {
  margin-bottom: 1.5rem;
}
.form-section-title {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.form-grid {
  display: grid;
  gap: 1rem;
}
.form-grid-2 { grid-template-columns: 1fr 1fr; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }

/* --- Milestone List --- */
.milestone-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.milestone-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  transition: all 0.2s;
}
.milestone-item:hover { border-color: var(--accent-sage); }
.milestone-item.completed {
  background: rgba(122, 158, 126, 0.06);
  border-color: rgba(122, 158, 126, 0.3);
}
.milestone-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 0.1rem;
}
.milestone-check.checked {
  background: var(--accent-sage);
  border-color: var(--accent-sage);
}
.milestone-check.checked svg { width: 12px; height: 12px; color: #fff; }
.milestone-content { flex: 1; }
.milestone-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 0.2rem;
}
.milestone-meta {
  font-size: 0.8rem;
  color: var(--fg-muted);
}
.milestone-item.completed .milestone-title { text-decoration: line-through; color: var(--fg-muted); }

/* --- AI Suggestions Box --- */
.ai-suggestions {
  background: linear-gradient(135deg, rgba(122, 158, 126, 0.08) 0%, rgba(196, 132, 122, 0.08) 100%);
  border: 1.5px solid rgba(122, 158, 126, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  margin-top: 1.5rem;
}
.ai-suggestions-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-sage);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-suggestions-title svg { width: 16px; height: 16px; }
.suggestion-text {
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.7;
  white-space: pre-wrap;
}

/* --- Copilot Chat --- */
.copilot-container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.5rem;
  height: calc(100vh - 200px);
  min-height: 500px;
}
.copilot-sidebar {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem;
  overflow-y: auto;
}
.copilot-sidebar-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1rem;
}
.copilot-convo-item {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--fg);
  cursor: pointer;
  margin-bottom: 0.4rem;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.copilot-convo-item:hover { background: var(--bg-warm); }
.copilot-convo-item.active { background: var(--fg); color: var(--bg); }
.copilot-chat {
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.copilot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.chat-message {
  max-width: 80%;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.65;
}
.chat-message.user {
  align-self: flex-end;
  background: var(--fg);
  color: var(--bg);
  border-bottom-right-radius: 4px;
}
.chat-message.assistant {
  align-self: flex-start;
  background: var(--bg-warm);
  color: var(--fg);
  border-bottom-left-radius: 4px;
}
.chat-input-area {
  padding: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 0.75rem;
}
.chat-input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
}
.chat-input:focus { outline: none; border-color: var(--accent-sage); }
.chat-send {
  padding: 0.75rem 1.25rem;
  background: var(--accent-sage);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: var(--font-body);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.chat-send:hover { background: #6a8d6e; }

/* --- Subscribe Page --- */
.subscribe-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg-warm);
}
.subscribe-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
}
.subscribe-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--accent-sage), var(--accent-rose));
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}
.subscribe-icon svg { width: 36px; height: 36px; color: #fff; }
.subscribe-price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--fg);
  line-height: 1;
}
.subscribe-price span {
  font-size: 1.2rem;
  color: var(--fg-muted);
  font-family: var(--font-body);
  font-weight: 400;
}
.subscribe-features {
  list-style: none;
  margin: 2rem 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.subscribe-features li {
  font-size: 0.95rem;
  color: var(--fg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.subscribe-features li svg {
  width: 18px;
  height: 18px;
  color: var(--accent-sage);
  flex-shrink: 0;
}

/* --- Auth Page --- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--bg);
}
.auth-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  max-width: 420px;
  width: 100%;
}
.auth-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--fg);
  margin-bottom: 0.5rem;
  text-align: center;
}
.auth-sub {
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-align: center;
  margin-bottom: 2rem;
}
.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--fg-muted);
}
.auth-footer a { color: var(--accent-sage); font-weight: 500; }
.auth-error {
  background: rgba(212, 133, 106, 0.1);
  border: 1px solid rgba(212, 133, 106, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--accent-terra);
  margin-bottom: 1rem;
}

/* --- Revenue Entry --- */
.revenue-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.revenue-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--bg-warm);
  border-radius: 10px;
  font-size: 0.9rem;
}
.revenue-item-left { color: var(--fg); }
.revenue-item-date { font-size: 0.78rem; color: var(--fg-muted); margin-top: 0.1rem; }
.revenue-item-amount {
  font-weight: 600;
  color: var(--accent-sage);
}

/* --- Buttons --- */
.btn-sage {
  background: var(--accent-sage);
  color: #fff;
}
.btn-sage:hover { background: #6a8d6e; }
.btn-full { width: 100%; justify-content: center; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--fg);
}
.btn-outline:hover { border-color: var(--accent-sage); color: var(--accent-sage); }

/* --- Inline form items --- */
.inline-input-group {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}
.inline-input-group .form-input { flex: 1; }

/* --- Responsive --- */
@media (max-width: 768px) {
  .app-header { padding: 1rem 1.25rem; }
  .phase-bar { padding: 1rem 1.25rem; overflow-x: auto; }
  .app-main { padding: 1.25rem; }
  .form-grid-2, .form-grid-3 { grid-template-columns: 1fr; }
  .copilot-container { grid-template-columns: 1fr; height: auto; }
  .copilot-sidebar { display: none; }
  .subscribe-card { padding: 2rem 1.5rem; }
  .goal-hero { padding: 2rem 1.5rem; }
}