/* GLP1Tree — site styles */
:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --teal-800: #115e59;
  --teal-900: #134e4a;
  --coral-500: #f97316;
  --coral-600: #ea580c;
  --cream: #FAFAF7;
  --cream-deep: #f5f3ec;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
}

html { scroll-behavior: smooth; }
body {
  background-color: var(--cream);
  color: var(--slate-900);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4,.font-display {
  font-family: 'Fraunces', Georgia, serif;
  font-feature-settings: "ss01";
  letter-spacing: -0.01em;
}
.font-display { font-family: 'Fraunces', Georgia, serif; }

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background-color: var(--coral-500);
  color: white;
  padding: .85rem 1.4rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all .2s ease;
  box-shadow: 0 1px 2px rgba(15,23,42,.05), 0 4px 12px rgba(249,115,22,.18);
}
.btn-primary:hover { background-color: var(--coral-600); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(249,115,22,.28); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  background-color: white;
  color: var(--teal-800);
  border: 1px solid var(--slate-200);
  padding: .85rem 1.4rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all .2s ease;
}
.btn-secondary:hover { border-color: var(--teal-700); color: var(--teal-700); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--teal-700); font-weight: 600;
}
.btn-ghost:hover { color: var(--teal-800); }

/* Cards */
.card {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
  transition: all .25s ease;
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -12px rgba(15,23,42,.12);
  border-color: var(--teal-600);
}

/* Form controls */
.input, .select {
  width: 100%;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: .7rem .85rem;
  font-size: 1rem;
  color: var(--slate-900);
  transition: all .15s ease;
}
.input:focus, .select:focus {
  outline: none;
  border-color: var(--teal-700);
  box-shadow: 0 0 0 3px rgba(15,118,110,.15);
}
.label { font-size: .875rem; font-weight: 600; color: var(--slate-700); display:block; margin-bottom:.4rem; }
.unit-toggle {
  display: inline-flex; background: var(--slate-100); border-radius: 8px; padding: 3px;
}
.unit-toggle button {
  padding: .35rem .85rem; font-size: .85rem; font-weight: 600; color: var(--slate-500);
  border-radius: 6px;
}
.unit-toggle button.active { background: white; color: var(--teal-800); box-shadow: 0 1px 2px rgba(0,0,0,.05); }

/* Results panel */
.results-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdfa 100%);
  border: 1px solid var(--teal-100);
  border-radius: 16px;
  padding: 1.75rem;
  box-shadow: 0 1px 2px rgba(15,23,42,.04);
}
.result-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--teal-800);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.result-headline .coral { color: var(--coral-500); }
.metric-tile {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}
.metric-tile .v { font-family: 'Fraunces', Georgia, serif; font-size: 1.5rem; font-weight: 600; color: var(--slate-900); }
.metric-tile .l { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-500); font-weight: 600; }

/* AdSense placeholder */
.adsense-slot {
  margin: 2rem 0;
  border: 1px dashed var(--slate-200);
  background: #f8f8f3;
  padding: 2rem 1rem;
  text-align: center;
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #94a3b8;
  border-radius: 10px;
}

/* Disclaimer */
.disclaimer-box {
  background: #fff7ed;
  border-left: 3px solid var(--coral-500);
  color: #7c2d12;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  font-size: .875rem;
  line-height: 1.55;
}

/* Expandable */
details.disclosure {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 1rem 1.1rem;
}
details.disclosure[open] { background: #fbfdfc; }
details.disclosure summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--teal-800);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
}
details.disclosure summary::after {
  content: "+";
  font-family: 'Fraunces', serif; font-size: 1.4rem; color: var(--teal-700); transition: transform .2s ease;
}
details.disclosure[open] summary::after { content: "−"; }
details.disclosure .content { margin-top: 1rem; color: var(--slate-700); font-size: .9375rem; line-height: 1.65; }

/* Table */
.dose-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9375rem; }
.dose-table thead th {
  background: var(--teal-50); color: var(--teal-800);
  text-align: left; font-weight: 600; font-size: .8125rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .75rem 1rem; border-bottom: 1px solid var(--teal-100);
}
.dose-table tbody td { padding: .75rem 1rem; border-bottom: 1px solid var(--slate-100); }
.dose-table tbody tr.current { background: #fff7ed; }
.dose-table tbody tr.current td { color: #9a3412; font-weight: 600; }

/* Trust strip */
.trust-strip {
  background: var(--teal-900);
  color: #ccfbf1;
}

/* Hero gradient */
.hero-bg {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(15,118,110,.08), transparent 60%),
    radial-gradient(800px 400px at 5% 110%, rgba(249,115,22,.07), transparent 60%),
    var(--cream);
}

/* Nav */
.site-header {
  background: rgba(250,250,247,.85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--slate-200);
}
.nav-link { color: var(--slate-700); font-weight: 500; transition: color .15s ease; }
.nav-link:hover { color: var(--teal-700); }
.nav-link.active { color: var(--teal-800); font-weight: 600; }

/* Progress bar */
.bar-track { background: var(--slate-100); border-radius: 999px; height: 10px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--teal-600), var(--coral-500)); border-radius: 999px; transition: width .4s ease; }

/* Calendar visualization */
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { aspect-ratio: 1; border-radius: 6px; background: var(--slate-100); display:flex; align-items:center; justify-content:center; font-size:.7rem; color: var(--slate-500); position: relative; }
.cal-cell.active { background: var(--teal-100); color: var(--teal-900); font-weight: 600; }
.cal-cell.dose-start { background: var(--coral-500); color: white; font-weight: 700; box-shadow: 0 2px 8px rgba(249,115,22,.3); }

/* Focus styles for a11y */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--teal-700); outline-offset: 2px; border-radius: 6px;
}

/* Utility */
.container-narrow { max-width: 1120px; margin-left:auto; margin-right:auto; padding-left: 1.25rem; padding-right: 1.25rem; }
.container-tight { max-width: 880px; margin-left:auto; margin-right:auto; padding-left: 1.25rem; padding-right: 1.25rem; }

/* Mobile menu */
#mobile-menu { display: none; }
#mobile-menu.open { display: block; }
@media (min-width: 768px) {
  #mobile-menu { display: none !important; }
}
