/* ================================
   DentalTripKit Global Styles
   ================================ */

:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --brand: #0d9488;
  --brand-dark: #0a6f66;
  --light: #ffffff;
  --card: #ffffff;
  --border: #e2e8f0;
  --radius: 12px;
  --shadow: 0 4px 14px rgba(0,0,0,0.04);
  --maxw: 1100px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Layout */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 64px 0;
}

.section.light {
  background: var(--light);
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 12px;
}

/* Header */
.site-header {
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-mark {
  color: var(--brand);
  font-weight: 700;
}

.brand-name {
  font-weight: 700;
}

.nav a {
  margin-left: 18px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--brand);
}

/* Hero */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: 36px;
  line-height: 1.2;
}

.hero-actions {
  margin-top: 22px;
}

.btn {
  border-radius: var(--radius);
  padding: 10px 18px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: inline-block;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--brand);
  color: white;
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
  margin-left: 10px;
}

.btn-secondary:hover {
  background: #ecfdf5;
}

/* Mascot */
.hero-logo {
  max-width: 420px;
  width: 100%;
  height: auto;
}

/* Cards */
.card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Grids */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

/* Checklist */
.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  margin: 8px 0;
}

.checklist li::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: bold;
}

.checklist.off li::before {
  content: "✕ ";
  color: #ef4444;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0;
  background: var(--light);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-nav a {
  margin-left: 14px;
  text-decoration: none;
  color: var(--muted);
  font-size: 13px;
}

.footer-nav a:hover {
  color: var(--brand);
}

/* ----------------------------
   Planner Interaction Styling
-----------------------------*/

.planner-container {
  max-width: 760px;
  margin: 0 auto;
}

.progress-bar {
  background: #e5e7eb;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  background: var(--brand);
  height: 100%;
  transition: width 0.3s ease;
}

.step {
  display: none;
  margin-top: 28px;
}

.step.active {
  display: block;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.choice {
  background: var(--light);
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.choice:hover {
  border-color: var(--brand);
  background: #ecfdf5;
}

.choice.selected {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(13,148,136,0.2);
}

/* Segmented toggles */
.segmented {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-top: 10px;
}

.seg {
  padding: 8px 14px;
  background: var(--light);
  border: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--muted);
}

.seg.active {
  background: var(--brand);
  color: white;
}

/* Inputs */
.input {
  margin-top: 12px;
  padding: 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
}

/* Loading */
.loading-box {
  text-align: center;
  margin-top: 40px;
}

.spinner {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 3px solid #ddd;
  border-top-color: var(--brand);
  animation: spin 0.6s linear infinite;
  margin: 0 auto 12px;
}

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

.hidden {
  display: none;
}

/* Dashboard summary list */
.summary-list div {
  padding: 6px 0;
  border-bottom: 1px dashed #e5e7eb;
  font-size: 14px;
}

.summary-list div:last-child {
  border-bottom: none;
}

/* Exit cards */
.exit-grid {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.exit-card {
  display: block;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  transition: all 0.2s ease;
}

.exit-card:hover {
  border-color: var(--brand);
  background: #ecfdf5;
}

.exit-sub {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

/* Divider */
.divider {
  height: 1px;
  background: var(--border);
  margin: 18px 0;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-logo {
    max-width: 260px;
    margin: 0 auto;
    display: block;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .btn-secondary {
    margin-left: 0;
    margin-top: 10px;
  }
}

