/* =========================================================
   Live Your Life — Brand Styles
   Standalone identity. No GloCoach assets, no shared palette.
   Direction: warm, contemplative, calm. Reading-room energy.
   ========================================================= */

:root {
  /* Palette */
  --ink:       #1A1B1E;   /* primary text */
  --ink-soft:  #4A4D55;   /* secondary text */
  --ink-faint: #8A8E99;   /* tertiary text */
  --paper:     #FAF7F2;   /* page background — warm off-white */
  --card:      #FFFFFF;   /* surfaces */
  --line:      #E8E2D6;   /* hairlines */
  --accent:    #C8553D;   /* terracotta — brand accent */
  --accent-soft: #F2D9D1; /* tinted accent for backgrounds */
  --gold:      #D4A24C;   /* secondary accent for highlights */
  --sage:      #6B8E7F;   /* tertiary accent for "energy / growth" */

  /* Type */
  --font-serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(26,27,30,0.06);
  --shadow-md: 0 4px 16px rgba(26,27,30,0.08);
  --shadow-lg: 0 12px 40px rgba(26,27,30,0.12);
}

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

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
a:hover { border-bottom-color: var(--accent); }

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================================================
   Navigation
   ========================================================= */
.nav {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ink);
  border: none;
}
.brand:hover { border: none; }
.nav-links {
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  border: none;
}
.nav-links a:hover { color: var(--ink); }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  padding: 80px 0 96px;
  text-align: center;
}
.hero h1 {
  max-width: 720px;
  margin: 0 auto 24px;
  font-weight: 400;
}
.hero h1 em {
  font-style: italic;
  color: var(--accent);
}
.hero-lead {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
  color: var(--ink-soft);
}
.hero-cta { margin-top: 32px; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: center;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  border: 1px solid transparent;
}
.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  background: var(--card);
  border-color: var(--ink);
}
a.btn { border-bottom: none; }
a.btn:hover { border-bottom: none; }

/* =========================================================
   Sections
   ========================================================= */
.section {
  padding: 72px 0;
  border-top: 1px solid var(--line);
}
.section-title {
  text-align: center;
  margin-bottom: 48px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

/* =========================================================
   Cards / Grid
   ========================================================= */
.grid {
  display: grid;
  gap: 24px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  transition: transform 0.18s, box-shadow 0.18s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card h3 { margin-bottom: 12px; }
.card p { margin: 0; }

.step-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 12px;
}

/* =========================================================
   Pricing
   ========================================================= */
.price-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px;
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}
.price {
  font-family: var(--font-serif);
  font-size: 3.4rem;
  font-weight: 500;
  color: var(--ink);
  margin: 16px 0 8px;
}
.price small {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink-faint);
  font-weight: 400;
}
.price-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  text-align: left;
}
.price-features li {
  padding: 8px 0;
  color: var(--ink-soft);
  border-bottom: 1px dashed var(--line);
}
.price-features li:before {
  content: "✓ ";
  color: var(--sage);
  font-weight: 600;
  margin-right: 8px;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq-item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 1.1rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:after {
  content: "+";
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--ink-faint);
  font-weight: 300;
}
.faq-item[open] summary:after { content: "−"; }
.faq-item p {
  margin-top: 16px;
  color: var(--ink-soft);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer a { color: var(--ink-soft); border: none; }
.footer a:hover { color: var(--ink); }

/* =========================================================
   Compass — chat interface
   ========================================================= */
.chat-page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: var(--paper);
}
.chat-header {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--card);
}
.chat-header-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 500;
}
.phase-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phase-dots {
  display: flex;
  gap: 6px;
}
.phase-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.3s;
}
.phase-dot.active { background: var(--accent); }
.phase-dot.completed { background: var(--sage); }
.phase-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 32px 24px;
}
.chat-messages-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.msg {
  max-width: 78%;
  padding: 14px 18px;
  border-radius: var(--r-lg);
  font-size: 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.msg-assistant {
  background: var(--card);
  border: 1px solid var(--line);
  align-self: flex-start;
  color: var(--ink);
}
.msg-user {
  background: var(--ink);
  color: var(--paper);
  align-self: flex-end;
}
.msg-typing {
  background: var(--card);
  border: 1px solid var(--line);
  align-self: flex-start;
  padding: 16px 22px;
  color: var(--ink-faint);
  font-style: italic;
}

.chat-input-area {
  padding: 16px 24px 24px;
  border-top: 1px solid var(--line);
  background: var(--card);
}
.chat-input-wrapper {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: flex-end;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 8px 8px 8px 16px;
}
.chat-input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
  resize: none;
  outline: none;
  padding: 10px 0;
  max-height: 200px;
}
.send-btn {
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: var(--r-md);
  width: 42px;
  height: 42px;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.send-btn:hover { background: var(--accent); }
.send-btn:disabled { background: var(--ink-faint); cursor: not-allowed; }

/* =========================================================
   Generating screen
   ========================================================= */
.generating {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 24px;
}
.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.generating h2 { margin-bottom: 8px; }
.generating p { color: var(--ink-soft); max-width: 480px; }

/* =========================================================
   Report
   ========================================================= */
.report {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px;
}
.report-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  margin-bottom: 24px;
}
.report-section h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.report-section .eyebrow {
  margin-bottom: 6px;
}
.report-quote {
  border-left: 3px solid var(--accent);
  padding-left: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin: 24px 0;
}

/* Snapshot wheel */
.wheel {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}
@media (max-width: 600px) { .wheel { grid-template-columns: 1fr; } }
.wheel-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wheel-label {
  flex: 0 0 140px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.wheel-bar {
  flex: 1;
  height: 8px;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.wheel-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 0.6s ease;
}
.wheel-score {
  flex: 0 0 32px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  text-align: right;
}

/* Strength / interference cards */
.strength-card, .interference-card {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 12px;
}
.strength-card h4, .interference-card h4 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  font-weight: 600;
}
.tag-internal { background: var(--accent-soft); color: var(--accent); }
.tag-external { background: #E5EDE9; color: var(--sage); }

/* Energy bars */
.energy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 20px 0;
}
@media (max-width: 600px) { .energy-grid { grid-template-columns: repeat(2, 1fr); } }
.energy-tile {
  text-align: center;
  padding: 20px 12px;
  background: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.energy-tile .energy-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.energy-tile .energy-score {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--accent);
  font-weight: 500;
}
.energy-tile .energy-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 6px;
}

/* PURE goal */
.pure-card {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--paper) 100%);
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--accent-soft);
}
.pure-statement {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 16px;
  line-height: 1.4;
}
.pure-detail {
  font-size: 0.9rem;
  margin: 8px 0;
}
.pure-detail strong { color: var(--accent); }

/* Exercise cards */
.exercise {
  padding: 20px;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: 16px;
}
.exercise h4 {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--ink);
}
.exercise .exercise-why {
  font-size: 0.88rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 8px;
}

/* Login / form */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.auth-card h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}
.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  background: var(--paper);
  color: var(--ink);
  margin-bottom: 16px;
}
.input:focus {
  outline: none;
  border-color: var(--accent);
}
.field-label {
  display: block;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 6px;
  font-weight: 500;
}

/* Utility */
.text-center { text-align: center; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mt-xl { margin-top: 40px; }
.muted { color: var(--ink-faint); }
.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }
