/* NatalChat — unified design system
   Merges: landing/styles.css + blog-styles.css + app/styles.css (pixel-perfect)
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Instrument+Serif:ital@0;1&family=Gloock&display=swap');

/* ========================================================================
   CSS variables (shared tokens)
   ======================================================================== */
:root {
  /* warm palette */
  --bg: #faf9f6;
  --fg: #1d1b16;
  --surface: #ffffff;
  --surface-2: #f5f3ee;
  --sidebar: #f4f2ec;
  --muted: #7a756a;
  --muted-bg: #eceae3;
  --border: #e8e4da;
  --bubble-user: #eeebdf;
  --bubble-user-fg: #1d1b16;

  /* indigo accent (only scheme for warm landing) */
  --acc:       #4c3bcf;
  --acc-bg:    #eeebff;
  --acc-ring:  #c9c1ff;
  --acc-soft:  #f4f2ff;

  /* category tints (blog) */
  --tint-basics:    #4c3bcf;
  --tint-transits:  #b7441f;
  --tint-relations: #8a5a1f;
  --tint-career:    #3d6b4a;
  --tint-rituals:   #7a3a6b;
  --tint-charts:    #2a4a6b;
}

[data-theme="dark"] {
  --bg: #181612;
  --surface: #201d18;
  --surface-2: #28241e;
  --sidebar: #1b1814;
  --fg: #eee9dc;
  --muted: #9a9384;
  --muted-bg: #2a2722;
  --border: #2e2a23;
  --bubble-user: #2a2722;
  --bubble-user-fg: #eee9dc;
}

/* ========================================================================
   Reset + base
   ======================================================================== */
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
body.app { font-size: 14px; }
body.app, body.app #root { height: 100%; overflow: hidden; }
html.app, html.app body, html.app #root { height: 100%; }
textarea, button, input, select { font-family: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }

.serif { font-family: 'Instrument Serif', serif; font-weight: 400; letter-spacing: -0.5px; }

/* ========================================================================
   Global nav + footer (landing + blog shared)
   ======================================================================== */
.lnd-nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px; gap: 24px;
  position: sticky; top: 0; z-index: 10;
  background: rgba(250,249,246,0.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.lnd-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px;
  text-decoration: none; color: inherit;
}
.logo-mark {
  width: 28px; height: 28px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-family: Gloock, serif; font-size: 15px;
  background: linear-gradient(140deg, var(--acc), var(--acc-ring));
}
.lnd-nav-links { display: flex; gap: 24px; font-size: 14px; }
.lnd-nav-links a { color: inherit; text-decoration: none; opacity: 0.75; cursor: pointer; }
.lnd-nav-links a:hover { opacity: 1; }
.lnd-nav-cta { display: flex; gap: 8px; }

button { font-family: inherit; cursor: pointer; }
.ghost {
  border: 1px solid rgba(0,0,0,0.1);
  background: transparent;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.cta {
  border: none; padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--acc); color: #fff;
  text-decoration: none;
}
.ghost-cta { background: transparent; border: 1px solid var(--acc); color: var(--acc); }
.cta:hover, .ghost-cta:hover { filter: brightness(0.96); }

.lnd-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 28px 48px;
  border-top: 1px solid rgba(0,0,0,0.06);
  font-size: 13px; opacity: 0.7;
  flex-wrap: wrap; gap: 10px;
}
.lnd-foot a { color: inherit; }

@media (max-width: 760px) {
  .lnd-nav { padding: 14px 20px; }
  .lnd-nav-links { display: none; }
  .lnd-foot { padding: 20px; flex-direction: column; text-align: center; gap: 8px; }
}

/* ========================================================================
   Hero (landing)
   ======================================================================== */
.hero {
  position: relative;
  padding: 64px 32px 80px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; padding: 5px 14px;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 999px;
  background: #fff;
  margin-bottom: 24px;
  position: relative; z-index: 1;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.hero h1 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(44px, 7vw, 88px);
  letter-spacing: -1.5px; line-height: 1.02;
  margin: 0 0 20px;
  position: relative; z-index: 1;
}
.hero h1 em { font-style: italic; color: var(--acc); }
.hero-sub {
  max-width: 560px; margin: 0 auto 36px;
  font-size: 18px; opacity: 0.75;
  position: relative; z-index: 1;
}
.hero-form-wrap {
  max-width: 640px; margin: 0 auto 14px;
  position: relative; z-index: 1;
}
.hero-form-note { font-size: 13px; opacity: 0.55; margin-top: 10px; }
.hero-chart {
  margin-top: 40px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; z-index: 1;
}
.hero-chart-label { font-size: 12px; opacity: 0.5; }
.hero-trust {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 48px;
  position: relative; z-index: 1;
}
.hero-trust > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hero-trust b { font-size: 22px; font-weight: 600; }
.hero-trust span { font-size: 12px; opacity: 0.55; }

@media (max-width: 600px) {
  .hero-trust { gap: 24px; }
}

/* Birth form */
.bform {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 8px;
  background: #fff; padding: 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  align-items: center;
}
.bform label {
  display: flex; flex-direction: column;
  padding: 4px 16px;
  border-right: 1px solid rgba(0,0,0,0.06);
  text-align: left;
  min-width: 0;
}
.bform label:last-of-type { border-right: none; }
.bform span {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px;
  opacity: 0.55; margin-bottom: 2px;
}
.bform input {
  border: none; outline: none; background: transparent;
  font-size: 15px; font-family: inherit; color: inherit;
  width: 100%; min-width: 0; padding: 0;
}
.bform button {
  white-space: nowrap; padding: 12px 20px; font-size: 15px;
  background: var(--acc); color: #fff; border: none;
  border-radius: 999px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
@media (max-width: 700px) {
  .bform {
    grid-template-columns: 1fr 1fr;
    border-radius: 18px; padding: 8px;
  }
  .bform label { border-right: none; border-bottom: 1px solid rgba(0,0,0,0.06); }
  .bform button { grid-column: 1 / -1; border-radius: 14px; }
}

/* Gender segmented control above birth form */
.bf-gender {
  display: inline-flex; background: #fff;
  border: 1px solid rgba(0,0,0,0.08); border-radius: 999px;
  padding: 4px; gap: 2px; margin: 0 auto 10px; box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}
.bf-gender-btn {
  background: transparent; border: none; cursor: pointer;
  padding: 6px 16px; border-radius: 999px;
  font-size: 13.5px; font-family: inherit; color: var(--fg);
  opacity: 0.65; transition: all .12s;
}
.bf-gender-btn:hover { opacity: 1; }
.bf-gender-btn.on { background: var(--acc); color: #fff; opacity: 1; font-weight: 500; }

/* Step-by-step soft highlighting */
.bform .bf-step { position: relative; transition: opacity .2s; }
.bform .bf-step.dimmed { opacity: 0.5; }
.bform .bf-step.active span { color: var(--acc); opacity: 0.9; }

/* City autocomplete dropdown */
.bf-city { position: relative; }
.bf-city-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  z-index: 20; max-height: 280px; overflow: auto;
  padding: 6px;
}
.bf-city-drop .bf-city-item {
  padding: 8px 12px; border-radius: 9px; cursor: pointer; font-size: 14.5px;
  display: flex; justify-content: space-between; gap: 10px;
}
.bf-city-drop .bf-city-item:hover, .bf-city-drop .bf-city-item.on { background: var(--surface-2); }
.bf-city-drop .bf-city-item .cc { font-size: 12px; opacity: 0.55; }

/* No-time checkbox */
.bf-no-time {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; margin-top: 10px;
  justify-content: center; flex-wrap: wrap;
  color: var(--fg); opacity: 0.85;
}
.bf-no-time input { accent-color: var(--acc); }
.bf-no-time-hint { opacity: 0.65; font-size: 12.5px; }

/* Disabled time input when unknown */
.bform.time-unknown label[data-step="2"] { opacity: 0.45; }
.bform.time-unknown label[data-step="2"] input { pointer-events: none; }

/* Inline error in hero */
.bf-error {
  background: rgba(183,68,31,0.08); color: #b7441f;
  padding: 10px 16px; border-radius: 12px; font-size: 13.5px;
  margin-top: 12px; text-align: center;
}

/* Loading state */
.bform button.loading .bf-submit-label { opacity: 0.75; }
.bform button.loading .bf-submit-arrow { display: none; }
.bform button.loading .bf-submit-spin {
  display: inline-block !important; animation: nc-spin .9s linear infinite;
}
@keyframes nc-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Recovery banner */
.hero-recovery {
  max-width: 640px; margin: 0 auto 28px;
  background: var(--acc-soft); border: 1px solid var(--acc-ring);
  border-radius: 16px; padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  flex-wrap: wrap;
  text-align: left;
}
.hr-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; opacity: 0.6; margin-bottom: 2px; }
.hr-name { font-weight: 500; font-size: 14.5px; }

/* Mobile native pickers: hide custom text styling, use type switch via JS */
@media (max-width: 640px) {
  .bf-step input[type="date"], .bf-step input[type="time"] {
    -webkit-appearance: none; appearance: none;
  }
}

/* ========================================================================
   Section heading + layout
   ======================================================================== */
.section {
  max-width: 1100px; margin: 0 auto;
  padding: 80px 32px;
}
.sh { text-align: center; margin-bottom: 48px; }
.sh-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 1.8px;
  opacity: 0.6; margin-bottom: 10px;
}
.sh h2 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.8px;
  margin: 0; line-height: 1.1;
}

/* ========================================================================
   Steps (how it works)
   ======================================================================== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 22px;
}
.step-n {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  background: var(--acc-soft); color: var(--acc);
  border: 1px solid var(--acc-ring);
  margin-bottom: 14px;
}
.step-t { font-weight: 600; font-size: 16px; margin-bottom: 4px; }
.step-s { font-size: 14px; opacity: 0.65; }
@media (max-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }

/* ========================================================================
   Examples (real Q&A)
   ======================================================================== */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.example {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.example-q, .example-a { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.55; }
.example-avatar {
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 12px; font-weight: 600;
  flex-shrink: 0;
}
.example-avatar.a-user { background: #e6e1d3; color: var(--fg); }
.example-avatar.a-ai {
  background: linear-gradient(140deg, var(--acc), var(--acc-ring));
  color: #fff; font-family: Gloock, serif; font-size: 15px;
}
.example-ctx {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; padding: 2px 9px; border-radius: 999px;
  color: var(--acc); background: var(--acc-soft); border: 1px solid var(--acc-ring);
  margin-bottom: 6px;
}
.example-text { font-size: 14.5px; line-height: 1.55; }
@media (max-width: 900px) { .examples { grid-template-columns: 1fr; } }

/* ========================================================================
   Mission
   ======================================================================== */
.mission-body {
  max-width: 700px; margin: 0 auto;
  font-size: 17px; line-height: 1.65; opacity: 0.85;
}
.mission-body p + p { margin-top: 18px; }
.mission-quote {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 22px; text-align: center;
  padding: 20px 0;
  opacity: 1 !important;
}

/* ========================================================================
   Pricing tiers
   ======================================================================== */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.tier {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  padding: 28px;
  position: relative;
}
.tier-accent {
  box-shadow: 0 12px 40px rgba(76,59,207,0.12);
  transform: translateY(-6px);
  border-color: var(--acc) !important;
  background: var(--acc-soft) !important;
}
.tier-badge {
  position: absolute; top: -10px; left: 24px;
  font-size: 11px; padding: 3px 10px;
  border-radius: 999px;
  color: #fff; font-weight: 500; letter-spacing: 0.3px;
  background: var(--acc);
}
.tier-name { font-size: 14px; text-transform: uppercase; letter-spacing: 1.2px; opacity: 0.7; margin-bottom: 6px; }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 18px; }
.tier-num { font-family: 'Instrument Serif', serif; font-size: 44px; line-height: 1; }
.tier-per { font-size: 13px; opacity: 0.55; }
.tier-feat { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 8px; }
.tier-feat li { display: flex; gap: 8px; font-size: 14px; align-items: center; }
.tier-feat li svg { color: var(--acc); flex-shrink: 0; }
.tier .cta, .tier .ghost-cta { width: 100%; justify-content: center; padding: 11px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } .tier-accent { transform: none; } }

/* ========================================================================
   FAQ
   ======================================================================== */
.faq { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); padding: 16px 0; }
.faq-item summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
  font-weight: 500; font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-chev { font-size: 20px; font-weight: 300; transition: transform .15s; }
.faq-item[open] .faq-chev { transform: rotate(45deg); }
.faq-a { margin-top: 10px; font-size: 15px; line-height: 1.6; opacity: 0.75; }

/* ========================================================================
   Blog preview (landing)
   ======================================================================== */
.blog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.blog-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none; color: inherit;
  transition: transform .15s, border-color .15s;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 180px;
}
.blog-card:hover { transform: translateY(-2px); border-color: rgba(0,0,0,0.15); }
.blog-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 1.2px; font-weight: 600; color: var(--acc); }
.blog-t { font-size: 17px; font-weight: 500; line-height: 1.35; flex: 1; }
.blog-d { font-size: 12px; opacity: 0.55; }
@media (max-width: 900px) { .blog { grid-template-columns: 1fr; } }

/* ========================================================================
   Final CTA
   ======================================================================== */
.cta-final {
  padding: 80px 32px;
  background: linear-gradient(180deg, transparent, rgba(76,59,207,0.05));
}
.cta-final-inner {
  max-width: 640px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.cta-final h2 {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
  margin: 0; letter-spacing: -0.5px;
}

/* ========================================================================
   BLOG
   ======================================================================== */
.blog-page { max-width: 1200px; margin: 0 auto; padding: 0 32px 80px; }

/* Masthead */
.mast {
  text-align: center;
  padding: 64px 0 48px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  margin-bottom: 48px;
}
.cat-mast { text-align: left; }
.mast-meta { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; opacity: 0.6; margin-bottom: 14px; }
.mast-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(48px, 7vw, 92px); letter-spacing: -2px; line-height: 1; margin: 0 0 14px; }
.mast-sub { max-width: 520px; margin: 0 auto 28px; opacity: 0.7; font-size: 16px; }
.cat-mast .mast-sub { margin-left: 0; }
.mast-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cat-mast .mast-chips { justify-content: flex-start; }
.mast-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.1);
  background: #fff;
  text-decoration: none; color: inherit;
  transition: all .15s;
  cursor: pointer;
}
.mast-chip:hover { border-color: rgba(0,0,0,0.3); }
.mast-chip-n { font-size: 11px; opacity: 0.5; }
.mast-chip.on { font-weight: 500; }

/* Featured hero */
.feat-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; margin-bottom: 64px; cursor: pointer; align-items: center; text-decoration: none; color: inherit; }
.feat-cover { border-radius: 14px; overflow: hidden; aspect-ratio: 7/5; }
.feat-text { padding: 0 8px; }
.feat-cat { font-size: 12px; letter-spacing: 1.8px; font-weight: 600; margin-bottom: 14px; }
.feat-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(32px, 4.5vw, 52px); letter-spacing: -1px; line-height: 1.05; margin: 0 0 18px; }
.feat-dek { font-size: 18px; line-height: 1.5; opacity: 0.75; margin: 0 0 28px; }
.feat-meta { display: flex; align-items: center; justify-content: space-between; }
.feat-author { display: flex; align-items: center; gap: 10px; }
.auth-av { width: 36px; height: 36px; border-radius: 50%; background: #e6e1d3; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; flex-shrink: 0; }
.auth-av.lg { width: 44px; height: 44px; font-size: 16px; }
.auth-name { font-weight: 500; font-size: 14px; }
.auth-date, .auth-role { font-size: 12px; opacity: 0.55; }
.feat-read { font-size: 14px; font-weight: 500; color: var(--acc); display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .feat-hero { grid-template-columns: 1fr; gap: 24px; } }

/* Three next */
.three-next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 64px; }
.card3 { cursor: pointer; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; }
.card3-cover { border-radius: 10px; overflow: hidden; aspect-ratio: 16/10; margin-bottom: 6px; }
.card3-cat { font-size: 11px; letter-spacing: 1.4px; font-weight: 600; }
.card3-t { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 24px; letter-spacing: -0.4px; line-height: 1.2; margin: 0; }
.card3-meta { font-size: 12px; opacity: 0.55; }
@media (max-width: 800px) { .three-next { grid-template-columns: 1fr; } }

/* Rule */
.rule { position: relative; text-align: center; margin: 48px 0 32px; }
.rule::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: rgba(0,0,0,0.12); }
.rule span { position: relative; background: var(--bg); padding: 0 16px; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; opacity: 0.6; }

/* Latest list */
.latest { display: flex; flex-direction: column; }
.row-post {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  cursor: pointer; align-items: center;
  text-decoration: none; color: inherit;
}
.row-post:last-child { border-bottom: none; }
.row-cover { border-radius: 8px; overflow: hidden; aspect-ratio: 10/7; }
.row-cat { font-size: 11px; letter-spacing: 1.4px; font-weight: 600; margin-bottom: 4px; }
.row-t { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 26px; letter-spacing: -0.4px; line-height: 1.15; margin: 0 0 6px; }
.row-d { font-size: 15px; opacity: 0.7; margin: 0 0 8px; line-height: 1.5; }
.row-meta { font-size: 12px; opacity: 0.55; }
.row-t mark, .row-d mark { background: #ffe9a0; color: inherit; padding: 0 2px; }
@media (max-width: 700px) { .row-post { grid-template-columns: 1fr; } }

/* Newsletter */
.news-block { margin-top: 64px; padding: 48px 32px; background: var(--acc-bg); border-radius: 24px; text-align: center; }
.news-eye { font-size: 12px; letter-spacing: 2px; font-weight: 600; color: var(--acc); margin-bottom: 10px; }
.news-block h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 36px; letter-spacing: -0.8px; margin: 0 0 8px; }
.news-block p { opacity: 0.7; margin: 0 0 20px; }
.news-form { display: flex; gap: 8px; max-width: 460px; margin: 0 auto; padding: 6px; background: #fff; border-radius: 999px; border: 1px solid rgba(76,59,207,0.15); }
.news-form input { flex: 1; border: none; outline: none; padding: 8px 16px; background: transparent; font-size: 15px; font-family: inherit; }
.news-form button { white-space: nowrap; }

/* Reading progress */
.read-prog { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: rgba(0,0,0,0.05); z-index: 50; }
.read-prog-fill { height: 100%; background: var(--acc); transition: width .1s linear; width: 0; }

/* Article layout */
.art-wrap { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 64px; padding-top: 48px; justify-content: center; }
.art-rail { position: relative; }
.art-rail-sticky { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 28px; }
.rail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.8px; opacity: 0.55; margin-bottom: 10px; }
.rail-cat { text-decoration: none; font-weight: 500; font-size: 15px; cursor: pointer; }
.toc { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid rgba(0,0,0,0.08); }
.toc li { padding-left: 12px; border-left: 2px solid transparent; margin-left: -1px; transition: all .15s; }
.toc li.on { border-left-color: var(--acc); }
.toc li.on a { color: var(--acc); font-weight: 500; }
.toc a { text-decoration: none; color: inherit; font-size: 14px; opacity: 0.75; line-height: 1.5; display: block; }
.rail-author { display: flex; align-items: center; gap: 10px; }

.art-main { min-width: 0; }
.art-head { margin-bottom: 32px; }
.art-back { display: inline-block; font-size: 13px; opacity: 0.6; text-decoration: none; cursor: pointer; margin-bottom: 20px; color: inherit; }
.art-cat { font-size: 12px; letter-spacing: 1.8px; font-weight: 600; margin-bottom: 14px; }
.art-title { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: clamp(40px, 5vw, 56px); letter-spacing: -1.2px; line-height: 1.02; margin: 0 0 18px; }
.art-dek { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 22px; line-height: 1.4; opacity: 0.75; margin: 0 0 20px; }
.art-meta { display: flex; gap: 10px; font-size: 13px; opacity: 0.65; }

.art-cover { border-radius: 14px; overflow: hidden; aspect-ratio: 19/10; margin-bottom: 40px; }

.art-body { font-size: 18px; line-height: 1.7; }
.art-body p { margin: 0 0 20px; }
.art-body .lede { font-size: 22px; line-height: 1.55; opacity: 0.9; margin-bottom: 28px; }
.art-body .lede::first-letter { font-family: 'Instrument Serif', serif; font-size: 60px; float: left; line-height: 0.85; padding: 6px 10px 0 0; color: var(--acc); }
.art-body h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 32px; letter-spacing: -0.5px; margin: 44px 0 16px; }
.art-body h3 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 24px; margin: 28px 0 12px; }
.art-body blockquote {
  font-family: 'Instrument Serif', serif; font-style: italic;
  font-size: 26px; line-height: 1.4;
  border-left: 2px solid var(--acc);
  padding: 6px 0 6px 24px;
  margin: 32px 0;
  color: #3a342a;
}
.art-body ul, .art-body ol { padding-left: 18px; margin: 0 0 24px; }
.art-body li { margin-bottom: 8px; }
.art-body a { color: var(--acc); }
.art-body img { border-radius: 10px; margin: 16px 0; }
.art-body table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.art-body th, .art-body td { padding: 10px 14px; border-bottom: 1px solid rgba(0,0,0,0.08); text-align: left; font-size: 15px; }
.art-body th { font-weight: 600; background: rgba(0,0,0,0.03); }

.art-cta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  background: var(--acc-bg);
  border: 1px solid rgba(76,59,207,0.15);
  border-radius: 16px;
  padding: 20px 22px; margin: 36px 0;
}
.art-cta-g {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(140deg, var(--acc), var(--acc-ring));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: Gloock, serif; font-size: 20px;
}
.art-cta-t { font-weight: 600; font-size: 16px; }
.art-cta-d { font-size: 14px; opacity: 0.75; margin-top: 2px; }
.art-cta .cta { padding: 10px 18px; }
@media (max-width: 700px) { .art-cta { grid-template-columns: 1fr; text-align: left; } }

.art-foot { border-top: 1px solid rgba(0,0,0,0.08); margin-top: 48px; padding-top: 24px; }
.art-share { display: flex; gap: 16px; align-items: center; font-size: 13px; }
.art-share span { opacity: 0.6; }
.art-share a { color: var(--acc); text-decoration: none; cursor: pointer; }

.related { margin-top: 72px; }

@media (max-width: 1000px) {
  .art-wrap { grid-template-columns: 1fr; gap: 32px; }
  .art-rail-sticky { position: static; flex-direction: row; flex-wrap: wrap; gap: 20px; }
  .rail-sec { flex: 1; min-width: 180px; }
}

/* Category grid */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: 1fr; } }

/* Search */
.search-box {
  display: flex; align-items: center; gap: 10px;
  max-width: 580px; margin: 0 auto 20px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  padding: 14px 22px;
}
.search-box:focus-within { border-color: var(--acc); box-shadow: 0 0 0 4px rgba(76,59,207,0.08); }
.search-box input { flex: 1; border: none; outline: none; background: transparent; font-size: 18px; font-family: inherit; min-width: 0; }
.search-box .clear { background: transparent; border: none; font-size: 22px; cursor: pointer; opacity: 0.5; padding: 0 4px; }
.sugg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; font-size: 13px; }
.sugg > span { opacity: 0.55; margin-right: 2px; }
.sugg a { background: #fff; border: 1px solid rgba(0,0,0,0.08); padding: 4px 12px; border-radius: 999px; color: inherit; text-decoration: none; cursor: pointer; }
.search-results { display: flex; flex-direction: column; padding: 0; }
.search-results .row-post:first-child { border-top: 1px solid rgba(0,0,0,0.08); }
.search-empty { text-align: center; padding: 60px 0; opacity: 0.55; font-style: italic; }

/* ========================================================================
   CHAT APP
   ======================================================================== */

/* Sidebar */
.side-action {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 8px 10px; margin: 1px 0;
  background: transparent; border: none;
  border-radius: 8px; cursor: pointer;
  color: var(--fg); font-size: 14px; text-align: left;
  transition: background .1s;
  text-decoration: none;
}
.side-action:hover { background: rgba(0,0,0,0.04); }
[data-theme="dark"] .side-action:hover { background: rgba(255,255,255,0.05); }
.badge-dot { margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }

.conv {
  padding: 7px 10px; margin: 1px 0;
  border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: background .1s;
  color: var(--fg);
  text-decoration: none;
}
.conv:hover { background: rgba(0,0,0,0.04); }
.conv.active { background: rgba(0,0,0,0.06); font-weight: 500; }
[data-theme="dark"] .conv:hover { background: rgba(255,255,255,0.05); }
[data-theme="dark"] .conv.active { background: rgba(255,255,255,0.08); }
.conv-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13.5px; flex: 1; }
.conv-pin {
  opacity: 0; transition: opacity .1s, color .1s;
  background: transparent; border: none; padding: 2px; cursor: pointer;
  color: var(--muted); display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 6px;
}
.conv:hover .conv-pin { opacity: 0.65; }
.conv-pin:hover { opacity: 1 !important; color: var(--acc); background: var(--surface-2); }

/* Top bar */
.icon-btn {
  width: 32px; height: 32px;
  border: none; background: transparent; border-radius: 7px;
  color: var(--muted); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .1s, color .1s;
}
.icon-btn:hover { background: rgba(0,0,0,0.05); color: var(--fg); }
[data-theme="dark"] .icon-btn:hover { background: rgba(255,255,255,0.06); color: var(--fg); }

.top-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px;
  background: transparent; border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer;
  font-size: 13px; color: var(--fg);
  transition: background .1s;
}
.top-chip:hover { background: var(--surface-2); }
.top-chip.on { background: var(--acc-soft); color: var(--acc); border-color: var(--acc-ring); }

/* Prompt cards */
.prompt-card {
  text-align: left;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px; cursor: pointer;
  transition: background .1s, border-color .1s;
  color: var(--fg);
}
.prompt-card:hover { background: var(--surface-2); border-color: var(--muted-bg); }

/* Messages */
.avatar-ai {
  width: 30px; height: 30px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: Gloock, serif; font-size: 15px;
  background: linear-gradient(140deg, var(--acc), var(--acc-ring));
}

.follow-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.follow-chip {
  font-size: 13px; padding: 5px 11px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; cursor: pointer;
  color: var(--fg); transition: background .1s;
  font-family: inherit;
}
.follow-chip:hover { background: var(--surface-2); }

.msg-actions {
  display: flex; gap: 2px; margin-top: 6px;
  opacity: 0.35; transition: opacity .15s;
}
.msg-actions button {
  width: 28px; height: 28px; border: none; background: transparent;
  border-radius: 6px; cursor: pointer; color: var(--muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.msg-actions button:hover { background: var(--surface-2); color: var(--fg); }
.msg-actions button.on { color: var(--acc); background: var(--acc-soft); }
.msg-ai-wrap:hover .msg-actions, .msg-actions:focus-within { opacity: 1; }

/* Toast */
.nc-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(12px);
  background: var(--fg); color: var(--bg);
  padding: 10px 16px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s;
  z-index: 1000;
}
.nc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Typing dots */
.typing { display: inline-flex; gap: 3px; padding: 10px 14px; background: var(--surface-2); border-radius: 12px; align-items: center; height: 32px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: nc-blink 1.4s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes nc-blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }

/* Composer */
.composer {
  display: flex; align-items: flex-end; gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 8px 8px 8px 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.composer:focus-within { border-color: var(--muted); }
.composer textarea {
  flex: 1; border: none; outline: none; resize: none;
  background: transparent; font-size: 15px; line-height: 1.5;
  padding: 8px 6px; max-height: 200px; min-height: 24px;
  color: var(--fg);
}
/* Composer icon-buttons are larger than generic icon-btn so they actually read */
.composer .icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  color: var(--fg); opacity: 0.85;
  flex-shrink: 0;
}
.composer .icon-btn:hover { opacity: 1; background: var(--surface-2); color: var(--fg); }
.composer .icon-btn.ghost { color: var(--fg); opacity: 0.85; }
.composer .icon-btn.ghost:hover { opacity: 1; }

.send-btn {
  width: 40px; height: 40px; border: none; border-radius: 50%;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  transition: background .1s, transform .1s;
  background: var(--muted-bg); color: var(--fg);
  flex-shrink: 0;
}
.send-btn.hot { background: var(--acc); color: #fff; }
.send-btn:hover { transform: scale(1.05); }

/* Right panel */
.panel-section { margin-top: 18px; }
.panel-h {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.7px; color: var(--muted);
  margin-bottom: 8px;
}
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; padding: 3px 8px;
  background: var(--surface-2); border-radius: 999px;
  color: var(--fg);
}
.tag i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

.mini-chip {
  font-size: 11px; padding: 2px 8px;
  background: rgba(0,0,0,0.04); border-radius: 999px;
  color: var(--fg);
}
.mini-chip.hard { background: #fbe9e0; color: #b7441f; }
.mini-chip.soft { background: #e8efde; color: #4f6b3a; }
[data-theme="dark"] .mini-chip { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .mini-chip.hard { background: rgba(183,68,31,0.18); color: #e89274; }
[data-theme="dark"] .mini-chip.soft { background: rgba(79,107,58,0.22); color: #b6c898; }

.placement {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; cursor: pointer;
  color: var(--fg); font-size: 13px; text-align: left;
  transition: background .1s;
}
.placement:hover { background: var(--surface-2); }
.placement.active { font-weight: 600; background: var(--acc-soft); border-color: var(--acc-ring); color: var(--acc); }

.link { background: none; border: none; cursor: pointer; padding: 0; font-size: inherit; color: var(--acc); }

/* Context badge in AI response */
.ctx-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px;
  color: var(--acc); background: var(--acc-soft);
  padding: 3px 9px; border-radius: 999px;
  margin-bottom: 8px;
  border: 1px solid var(--acc-ring);
}
.ctx-badge .glyph { font-family: serif; font-size: 13px; line-height: 1; }
.ctx-badge .ctx-label { line-height: 1.2; }

/* Structured message blocks (rendered from AI content) */
.m-h {
  font-size: 13px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.6px;
  margin: 16px 0 6px;
}
.m-list { margin: 0 0 12px; padding-left: 0; list-style: none; }
.m-list li { display: flex; gap: 10px; padding: 4px 0; }
.m-list .g { color: var(--acc); font-family: serif; font-size: 14px; line-height: 1.6; min-width: 18px; }
/* Aspect inline chip (embeds inside <p>, renders as one compact element) */
.m-aspect {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 2px 10px; margin: 0 2px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px; line-height: 1.3;
  vertical-align: baseline;
}
.m-aspect .asp-name { font-family: serif; font-size: 15px; white-space: nowrap; }
.m-aspect .asp-name b { font-family: inherit; font-weight: 500; }
.m-aspect .asp-sym { display: inline-flex; align-items: center; gap: 4px; }
.m-aspect .asp-sym .sym { font-size: 15px; }
.m-aspect .asp-sym .label { font-size: 10px; text-transform: uppercase; color: var(--muted); letter-spacing: 0.6px; }
.m-aspect.hard .sym { color: #b7441f; }
.m-aspect.soft .sym { color: #4f6b3a; }
.m-aspect.neutral .sym { color: var(--muted); }

/* Transits + ritual row */
.transit-row {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.transit-row:last-child { border-bottom: none; }
.transit-ic {
  width: 28px; height: 28px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: serif; font-size: 15px; flex-shrink: 0;
  background: var(--surface-2); color: var(--fg);
}
.transit-ic.alert { background: #fbe9e0; color: #b7441f; }
.transit-ic.good  { background: #e8efde; color: #4f6b3a; }
.transit-body { flex: 1; min-width: 0; }
.transit-t { font-size: 13px; }
.transit-when { font-size: 11px; color: var(--muted); }

/* Gloock for decorative marks */
