/* ===== Dalal — Design Tokens ===== */
:root {
  /* Warm neutrals — the cream system */
  --cream-50:  #FBF7F1;
  --cream-100: #F5EFE5;
  --cream-200: #ECE4D5;
  --cream-300: #DDD2BC;
  --ink-900:   #1F1B17;
  --ink-700:   #3F362D;
  --ink-500:   #756A5C;
  --ink-400:   #9A8F7E;
  --ink-300:   #B9AE9C;
  --ink-200:   #D7CDB9;
  --paper:     #FFFFFF;

  /* Phase colors — warm, earthy, intentional */
  --menstrual:    #C45A4F;  /* deep terracotta */
  --menstrual-bg: #F2D9D3;
  --menstrual-ink:#7A2E26;

  --follicular:    #E8956C; /* warm apricot */
  --follicular-bg: #F8E2D0;
  --follicular-ink:#8C4521;

  --ovulation:     #D9A441; /* honey ochre */
  --ovulation-bg:  #F2E0B4;
  --ovulation-ink: #7A5A15;

  --luteal:        #8B9D6C; /* sage */
  --luteal-bg:     #DDE3CC;
  --luteal-ink:    #4A5A2E;

  --fertile-bg:    #E2E8D2; /* mint sage cell bg */
  --fertile:       #A8B98A;
  --peak:          #8B9D6C;

  --predicted-bg:  #F5E0DA; /* dashed-border predicted period bg */
  --predicted-ring:#D89B91;

  /* Accent dots */
  --dot-symptom:   #6B8FA8; /* dusty blue */
  --dot-fertility: #6FA89A; /* dusty teal */
  --dot-ovulation: #D9A441;

  /* Brand */
  --brand:         var(--menstrual);
  --brand-soft:    var(--menstrual-bg);
  --brand-ink:     var(--menstrual-ink);

  /* Type */
  --serif: 'Instrument Serif', 'Newsreader', Georgia, serif;
  --sans:  'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Radii */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Shadows — extremely soft */
  --shadow-sm: 0 1px 2px rgba(95, 78, 56, 0.06);
  --shadow-md: 0 4px 16px rgba(95, 78, 56, 0.08);
  --shadow-lg: 0 16px 40px rgba(95, 78, 56, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--sans);
  color: var(--ink-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; cursor: pointer; }

/* ===== Phone frame (no device chrome) ===== */
.phone {
  width: 390px;
  background: var(--cream-50);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  font-family: var(--sans);
  color: var(--ink-900);
  display: flex;
  flex-direction: column;
}

/* Status bar — minimal iOS-style */
.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.statusbar-time { font-variant-numeric: tabular-nums; }
.statusbar-icons {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* App header — minimal: wordmark + sync */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 12px;
}
.wordmark {
  font-family: var(--serif);
  font-size: 24px;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  text-transform: var(--wordmark-case, none);
}
.wordmark .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
  transform: translateY(-2px);
}

/* Bottom nav */
.bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  padding: 10px 12px 20px;
  background: var(--cream-50);
  border-top: 1px solid var(--cream-200);
}
.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  font-size: 10px;
  font-weight: 500;
  color: var(--ink-400);
  letter-spacing: 0.02em;
  background: none;
  border: none;
}
.bottom-nav-item.active { color: var(--ink-900); }
.bottom-nav-item svg { width: 22px; height: 22px; }
.bottom-nav-item .fab {
  width: 44px; height: 44px;
  background: var(--ink-900);
  color: var(--cream-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -10px;
  box-shadow: var(--shadow-md);
}
.bottom-nav-item .fab svg { width: 20px; height: 20px; }

/* Card */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 18px;
  border: 1px solid var(--cream-200);
}
.card-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  letter-spacing: -0.005em;
  min-height: 44px;
}
.btn-primary {
  background: var(--ink-900);
  color: var(--cream-50);
}
.btn-secondary {
  background: var(--cream-100);
  color: var(--ink-900);
}
.btn-ghost {
  background: transparent;
  color: var(--ink-700);
}
.btn-danger {
  background: var(--menstrual);
  color: var(--paper);
}
.btn-full { width: 100%; }
.btn-sm {
  font-size: 13px;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: var(--r-sm);
}

/* Pill button (rounded full) */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 500;
  background: var(--cream-100);
  color: var(--ink-700);
  border: 1px solid var(--cream-200);
  white-space: nowrap;
  flex-shrink: 0;
}
.pill-brand { background: var(--menstrual-bg); color: var(--menstrual-ink); border-color: transparent; }
.pill-sage { background: var(--luteal-bg); color: var(--luteal-ink); border-color: transparent; }
.pill-honey { background: var(--ovulation-bg); color: var(--ovulation-ink); border-color: transparent; }
.pill-blue { background: #DCE5EE; color: #2D4A66; border-color: transparent; }
.pill-apricot { background: var(--follicular-bg); color: var(--follicular-ink); border-color: transparent; }

/* Input */
.input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--cream-200);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-900);
  letter-spacing: -0.005em;
}
.input::placeholder { color: var(--ink-300); }
.input:focus { outline: 2px solid var(--ink-900); outline-offset: -1px; }
.input-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

/* Display headlines */
.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink-900);
}
.display-xl { font-size: 44px; }
.display-lg { font-size: 36px; }
.display-md { font-size: 28px; }
.italic { font-style: italic; }

/* Section eyebrow */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* Dots & legend */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Scroll spacing */
.screen-content {
  padding: 0 24px 24px;
  flex: 1;
}
.screen-content-tight {
  padding: 0 24px 16px;
}

/* Soft organic blob (background imagery) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.55;
  pointer-events: none;
}
