/* ═══════════════════════════════════════════════════════
   HARBOR — Styles v1
   Warm Navy + Cream + Amber
   Fonts: Playfair Display + Inter
═══════════════════════════════════════════════════════ */

/* ─── RESET & VARIABLES ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #F4F0E8;
  --bg-alt:       #EDE8DE;
  --bg-dark:      #1B2B4B;
  --bg-darker:    #13203A;
  --accent:       #C4924A;
  --accent-light: #D4A860;
  --accent-dark:  #A47838;
  --surface:      #FFFFFF;
  --text:         #1B2B4B;
  --text-muted:   #6B7A99;
  --text-light:   #F4F0E8;
  --text-faint:   #A8B4C8;
  --border:       #E0D9CE;
  --border-dark:  #2A3D5E;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', -apple-system, sans-serif;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 18px;

  --shadow-sm: 0 1px 4px rgba(27, 43, 75, 0.06);
  --shadow:    0 4px 20px rgba(27, 43, 75, 0.10);
  --shadow-lg: 0 12px 40px rgba(27, 43, 75, 0.14);

  --transition: 0.22s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.hidden { display: none !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 32px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--font-sans); border: none; background: none; }
input, textarea, select {
  font-family: var(--font-sans);
  font-size: 15px;
  outline: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  width: 100%;
  padding: 11px 14px;
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }


/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--bg-dark);
  color: var(--text-light);
  border-color: var(--bg-dark);
}
.btn--primary:hover { background: var(--bg-darker); border-color: var(--bg-darker); }

.btn--outline {
  background: transparent;
  color: var(--bg-dark);
  border-color: var(--bg-dark);
}
.btn--outline:hover { background: var(--bg-dark); color: var(--text-light); }

.btn--outline-light {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(244, 240, 232, 0.45);
}
.btn--outline-light:hover { background: rgba(244, 240, 232, 0.12); border-color: rgba(244, 240, 232, 0.7); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { background: var(--bg-alt); }

.btn--amber {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn--amber:hover { background: var(--accent-dark); border-color: var(--accent-dark); }

.btn--sm { font-size: 13px; padding: 8px 16px; }
.btn--lg { font-size: 15px; padding: 14px 32px; }
.btn--full { width: 100%; }
.btn--text-danger {
  color: #C0392B;
  background: transparent;
  border: none;
  padding: 0;
  font-size: 14px;
  text-align: left;
}
.btn--text-danger:hover { text-decoration: underline; }


/* ─── FORM GROUPS ─── */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}


/* ─── REVEAL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ═══════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  background: rgba(244, 240, 232, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--bg-dark);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav__anchor {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex-shrink: 0;
}
.nav__wordmark { color: var(--bg-dark); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: 8px;
  flex: 1;
}
.nav__link {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav__link:hover { color: var(--text); }
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  margin-left: auto;
}
.nav__hamburger span {
  width: 22px;
  height: 2px;
  background: var(--bg-dark);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav__mobile-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 20px 32px 24px;
  border-top: 1px solid var(--border);
  background: rgba(244, 240, 232, 0.98);
}
.nav__mobile-menu.open { display: flex; }
.nav__mobile-menu a, .nav__mobile-menu button {
  font-size: 15px;
  color: var(--text);
  padding: 8px 0;
  text-align: left;
}


/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  align-items: center;
  padding: 120px 32px 100px;
  overflow: hidden;
}

/* Film grain */
.hero__grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.045;
}
.hero__grain::before {
  content: '';
  position: absolute;
  inset: -200%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Compass rose */
.hero__compass-wrap {
  position: absolute;
  right: -8%;
  top: 50%;
  transform: translateY(-50%);
  width: 62vw;
  max-width: 740px;
  aspect-ratio: 1;
  pointer-events: none;
  z-index: 0;
  color: var(--accent);
  opacity: 0.10;
}
.hero__compass-rose {
  width: 100%;
  height: 100%;
  animation: compassSpin 180s linear infinite;
}
@keyframes compassSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Hero content */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  margin: 0 auto 0 0;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  padding: 6px 14px;
  border: 1px solid rgba(196, 146, 74, 0.35);
  border-radius: 100px;
  background: rgba(196, 146, 74, 0.08);
}
.hero__headline {
  font-family: var(--font-serif);
  font-size: clamp(44px, 6.5vw, 78px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--bg-dark);
  margin-bottom: 28px;
}
.hero__headline em {
  font-style: italic;
  color: var(--accent);
}
.hero__sub {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.72;
  max-width: 500px;
  margin-bottom: 36px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.hero__trust {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__trust span {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

/* Wave divider */
.hero__wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}
.hero__wave svg { width: 100%; display: block; }


/* ═══════════════════════════════════════════════════════
   PAIN POINTS
═══════════════════════════════════════════════════════ */
.pain-points {
  background: var(--bg-dark);
  padding: 80px 0 0;
  position: relative;
}
.pain-points .container { position: relative; z-index: 1; }
.pain-points__intro {
  font-size: 16px;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 52px;
  letter-spacing: 0.01em;
}
.pain-points__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border-dark);
}
.pain-point {
  background: var(--bg-dark);
  padding: 44px 36px;
}
.pain-point__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 20px;
}
.pain-point__text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  font-style: italic;
  color: var(--text-light);
  line-height: 1.38;
  margin-bottom: 14px;
}
.pain-point__stat {
  font-size: 13px;
  color: var(--text-faint);
  line-height: 1.6;
}
.pain-points__wave {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-top: 60px;
}
.pain-points__wave svg { width: 100%; display: block; }


/* ═══════════════════════════════════════════════════════
   SECTION LABELS & TITLES (shared)
═══════════════════════════════════════════════════════ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--accent);
  flex-shrink: 0;
}
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--bg-dark);
  margin-bottom: 52px;
}


/* ═══════════════════════════════════════════════════════
   HOW IT HELPS
═══════════════════════════════════════════════════════ */
.how-it-helps {
  padding: 100px 0 110px;
  background: var(--bg);
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pillar {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  position: relative;
  transition: box-shadow var(--transition), transform var(--transition);
}
.pillar:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.pillar--featured {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-light);
}
.pillar__badge {
  position: absolute;
  top: -12px;
  left: 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--accent);
  padding: 4px 12px;
  border-radius: 100px;
}
.pillar__symbol {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.pillar__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 14px;
  line-height: 1.25;
}
.pillar--featured .pillar__title { color: var(--text-light); }
.pillar__body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
}
.pillar--featured .pillar__body { color: var(--text-faint); }
.pillar__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pillar__list li {
  font-size: 13.5px;
  color: var(--text-muted);
  padding-left: 16px;
  position: relative;
}
.pillar__list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}
.pillar--featured .pillar__list li { color: var(--text-faint); }


/* ═══════════════════════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════════════════════ */
.features {
  background: var(--bg-alt);
  padding: 100px 0 110px;
}
.features-tier-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 18px;
}
.features-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 12px;
}
.features-grid--core  { grid-template-columns: repeat(4, 1fr); }
.features-grid--tools { grid-template-columns: repeat(3, 1fr); }

.feature-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  border-color: var(--accent);
}
.feature-card--core {
  padding: 32px 28px;
}
.feature-card--tool {
  padding: 22px 20px;
}
.feature-card__icon {
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}
.feature-card h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--bg-dark);
}
.feature-card--tool h4 { font-size: 16px; }
.feature-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}
.feature-card--core p { font-size: 14px; }


/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════ */
.testimonials {
  background: var(--bg);
  padding: 100px 0 110px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.testimonial {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  position: relative;
}
.testimonial--featured {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  transform: translateY(-16px);
}
.testimonial__quote {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 0.7;
  color: var(--accent);
  opacity: 0.35;
  margin-bottom: 18px;
  display: block;
}
.testimonial--featured .testimonial__quote { opacity: 0.25; }
.testimonial__text {
  font-family: var(--font-serif);
  font-size: 16px;
  font-style: italic;
  color: var(--text);
  line-height: 1.72;
  margin-bottom: 28px;
}
.testimonial--featured .testimonial__text { color: var(--text-light); }
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  flex-shrink: 0;
}
.testimonial__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.testimonial--featured .testimonial__name { color: var(--text-light); }
.testimonial__location {
  font-size: 13px;
  color: var(--text-muted);
}
.testimonial--featured .testimonial__location { color: var(--text-faint); }


/* ═══════════════════════════════════════════════════════
   PRICING
═══════════════════════════════════════════════════════ */
.pricing {
  background: var(--bg-alt);
  padding: 100px 0 110px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 820px;
}
.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  position: relative;
}
.pricing-card--pro {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
}
.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 36px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
}
.pricing-card__tier {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.pricing-card--pro .pricing-card__tier { color: var(--text-faint); }
.pricing-card__price {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.pricing-card--pro .pricing-card__price { color: var(--text-light); }
.pricing-card__price span {
  font-size: 18px;
  font-weight: 400;
  font-family: var(--font-sans);
  color: var(--text-muted);
}
.pricing-card--pro .pricing-card__price span { color: var(--text-faint); }
.pricing-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.pricing-card--pro .pricing-card__desc { color: var(--text-faint); }
.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}
.pricing-card__features li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.pricing-card--pro .pricing-card__features li { color: var(--text-faint); }
.pricing-card__features .check {
  color: var(--accent);
  flex-shrink: 0;
  font-size: 13px;
}
.pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  text-align: center;
}


/* ═══════════════════════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════════════════════ */
.cta-strip {
  background: var(--bg-dark);
  padding: 96px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: 'HARBOR';
  position: absolute;
  font-family: var(--font-serif);
  font-size: 18vw;
  font-weight: 800;
  color: rgba(244, 240, 232, 0.025);
  letter-spacing: 0.1em;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  pointer-events: none;
}
.cta-strip__headline {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 16px;
  position: relative;
}
.cta-strip__sub {
  font-size: 17px;
  color: var(--text-faint);
  margin-bottom: 36px;
  position: relative;
}
.cta-strip .btn--amber { position: relative; }


/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
.footer {
  background: var(--bg-darker);
  padding: 64px 0 40px;
  color: var(--text-faint);
}
.footer__top {
  display: flex;
  gap: 60px;
  justify-content: space-between;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 32px;
}
.footer__brand { max-width: 240px; }
.footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 16px;
}
.footer__logo .nav__anchor { color: var(--accent); }
.footer__brand p { font-size: 14px; line-height: 1.6; }
.footer__cols {
  display: flex;
  gap: 52px;
}
.footer__col h5 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer__col a {
  display: block;
  font-size: 14px;
  color: var(--text-faint);
  margin-bottom: 10px;
  transition: color var(--transition);
}
.footer__col a:hover { color: var(--text-light); }
.footer__bottom { display: flex; flex-direction: column; gap: 12px; }
.footer__bottom p:first-child { font-size: 13px; }
.footer__disclaimer {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(168, 180, 200, 0.55);
}


/* ═══════════════════════════════════════════════════════
   AUTH SCREEN
═══════════════════════════════════════════════════════ */
#page-auth {
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.auth-compass {
  width: min(90vw, 800px);
  height: min(90vw, 800px);
  color: var(--accent);
  opacity: 0.06;
  animation: compassSpin 200s linear infinite;
}
.auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-light);
}
.auth-logo .nav__anchor { color: var(--accent); width: 24px; height: 24px; }
.auth-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 36px 36px 40px;
  width: 100%;
  box-shadow: var(--shadow-lg);
}
.auth-tabs {
  display: flex;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  transition: all var(--transition);
}
.auth-tab.active {
  color: var(--bg-dark);
  border-bottom-color: var(--accent);
}
.auth-form { display: flex; flex-direction: column; gap: 0; }
.auth-form .btn--primary { margin-top: 8px; }
.auth-forgot {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 16px;
  display: block;
}
.auth-forgot:hover { color: var(--accent); }
.auth-terms {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.6;
}
.auth-terms a { color: var(--accent); }
.auth-back {
  font-size: 14px;
  color: var(--text-faint);
}
.auth-back a:hover { color: var(--text-light); }


/* ═══════════════════════════════════════════════════════
   APP SHELL
═══════════════════════════════════════════════════════ */
#page-app {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* ─── SIDEBAR ─── */
.sidebar {
  width: 240px;
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
}
.sidebar__top {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border-dark);
}
.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-light);
}
.sidebar__logo .nav__anchor { color: var(--accent); width: 20px; height: 20px; }
.sidebar__nav {
  flex: 1;
  padding: 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 400;
  color: var(--text-faint);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.sidebar__item:hover { background: rgba(244, 240, 232, 0.06); color: var(--text-light); }
.sidebar__item.active {
  background: rgba(196, 146, 74, 0.12);
  color: var(--text-light);
  border-left-color: var(--accent);
}
.sidebar__icon {
  font-size: 14px;
  color: var(--accent);
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}
.sidebar__footer {
  padding: 12px;
  border-top: 1px solid var(--border-dark);
}
.sidebar__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background var(--transition);
}
.sidebar__profile:hover { background: rgba(244, 240, 232, 0.06); }
.sidebar__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar__user { display: flex; flex-direction: column; }
.sidebar__user-name { font-size: 13px; font-weight: 500; color: var(--text-light); }
.sidebar__user-plan { font-size: 11px; color: var(--text-faint); }

/* Mobile top bar */
.app-topbar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: var(--bg-dark);
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 200;
  border-bottom: 1px solid var(--border-dark);
}
.app-topbar__menu {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}
.app-topbar__menu span {
  width: 20px;
  height: 1.5px;
  background: var(--text-faint);
  border-radius: 2px;
}
.app-topbar__title {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-light);
}
.app-topbar__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
}
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(27, 43, 75, 0.6);
  z-index: 99;
  backdrop-filter: blur(4px);
}
.sidebar-overlay.visible { display: block; }

/* ─── MAIN CONTENT ─── */
.app-main {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}
.screen {
  display: none;
  padding: 40px 44px;
  min-height: 100vh;
  animation: screenIn 0.3s ease;
}
.screen.active { display: block; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.screen-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 6px;
}
.screen-title em { font-style: italic; color: var(--accent); }
.screen-sub { font-size: 15px; color: var(--text-muted); }
.screen-date { font-size: 13px; color: var(--text-muted); padding-top: 8px; }


/* ─── DASHBOARD ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}
.stat-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
}
.stat-card__val {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-card__label { font-size: 13px; color: var(--text-muted); }

.dashboard-section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.action-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.action-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
  width: 100%;
}
.action-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.action-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(196, 146, 74, 0.1);
  color: var(--accent);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.action-card__body { flex: 1; }
.action-card__body h4 {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 3px;
}
.action-card__body p { font-size: 13px; color: var(--text-muted); }
.action-card__arrow { font-size: 20px; color: var(--text-faint); transition: transform var(--transition); }
.action-card:hover .action-card__arrow { transform: translateX(3px); color: var(--accent); }


/* ─── AI COACH ─── */
.coach-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}
.coach-header__left { display: flex; align-items: center; gap: 14px; }
.coach-avatar-wrap { position: relative; }
.coach-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
}
.coach-online-dot {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2ECC71;
  border: 2px solid var(--surface);
}
.coach-name { font-size: 15px; font-weight: 600; color: var(--bg-dark); }
.coach-status { font-size: 12px; color: var(--accent); }

#screen-coach {
  padding: 0;
  display: none;
  flex-direction: column;
  height: 100vh;
}
#screen-coach.active { display: flex; }

.chat-window {
  flex: 1;
  overflow-y: auto;
  padding: 32px 32px 16px;
  background: var(--bg);
  scroll-behavior: smooth;
}
.chat-welcome {
  max-width: 540px;
  margin: 40px auto;
  text-align: center;
}
.chat-welcome__mark {
  font-size: 36px;
  color: var(--accent);
  margin-bottom: 20px;
  display: block;
}
.chat-welcome h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 12px;
}
.chat-welcome p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.chat-suggestions { display: flex; flex-direction: column; gap: 10px; }
.chat-suggestion {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 14px;
  color: var(--text-muted);
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}
.chat-suggestion:hover { border-color: var(--accent); color: var(--text); background: rgba(196, 146, 74, 0.05); }

#chat-messages { display: flex; flex-direction: column; gap: 16px; padding-bottom: 8px; }

.chat-msg {
  display: flex;
  gap: 12px;
  max-width: 82%;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg--harbor { align-self: flex-start; }
.chat-msg--user   { align-self: flex-end; flex-direction: row-reverse; }
.chat-msg__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-dark);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 4px;
}
.chat-msg--user .chat-msg__avatar { background: var(--accent); color: #fff; }
.chat-msg__bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.68;
  color: var(--text);
}
.chat-msg--user .chat-msg__bubble {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-light);
  border-radius: 16px 16px 4px 16px;
}
.chat-typing {
  display: flex;
  gap: 12px;
  max-width: 82%;
  align-self: flex-start;
}
.typing-dots {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px 16px 16px 4px;
  padding: 16px 18px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.typing-dots span {
  width: 7px;
  height: 7px;
  background: var(--text-faint);
  border-radius: 50%;
  animation: typingBounce 1.2s ease infinite;
}
.typing-dots span:nth-child(2) { animation-delay: 0.2s; }
.typing-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30%            { transform: translateY(-6px); }
}

.chat-input-area {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 16px 24px 14px;
}
.chat-input-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  margin-bottom: 8px;
}
.chat-input {
  flex: 1;
  resize: none;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  max-height: 120px;
  overflow-y: auto;
  background: var(--bg);
}
.chat-send {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-dark);
  color: var(--accent);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--transition);
}
.chat-send:hover { background: var(--accent); color: #fff; }
.chat-disclaimer {
  font-size: 11.5px;
  color: var(--text-faint);
  line-height: 1.5;
  text-align: center;
}


/* ─── DOCUMENT BUILDER ─── */
#screen-builder { padding: 40px 44px; }

.builder-steps {
  display: flex;
  align-items: center;
  margin-bottom: 40px;
  max-width: 500px;
}
.bstep {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.bstep__n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.bstep__l { font-size: 12px; color: var(--text-muted); }
.bstep.active .bstep__n { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }
.bstep.active .bstep__l { color: var(--bg-dark); font-weight: 600; }
.bstep.done .bstep__n { background: var(--accent); border-color: var(--accent); color: #fff; }
.bstep-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 17px;
  transition: background var(--transition);
}
.bstep-line.done { background: var(--accent); }

.bpanel { display: none; }
.bpanel.active { display: block; }
.bpanel__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 8px;
}
.bpanel__sub { font-size: 15px; color: var(--text-muted); margin-bottom: 28px; }
.bpanel__back {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color var(--transition);
}
.bpanel__back:hover { color: var(--accent); }

.state-search-wrap { margin-bottom: 20px; max-width: 360px; }
.state-search-input { background: var(--surface); }

.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
}
.state-btn {
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all var(--transition);
}
.state-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(196, 146, 74, 0.06); }

.forms-list { display: flex; flex-direction: column; gap: 10px; max-width: 680px; }
.form-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}
.form-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.form-item__cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(196, 146, 74, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  flex-shrink: 0;
}
.form-item__info { flex: 1; }
.form-item__name {
  font-size: 15px;
  font-weight: 500;
  color: var(--bg-dark);
  margin-bottom: 3px;
}
.form-item__desc { font-size: 13px; color: var(--text-muted); }
.form-item__arrow { font-size: 18px; color: var(--text-faint); }

/* Q&A */
.qa-progress-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.qa-progress-track {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.qa-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}
.qa-progress-label { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

#qa-container { max-width: 600px; margin-bottom: 28px; }
.qa-question {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 20px;
  line-height: 1.4;
}
.qa-options { display: flex; flex-direction: column; gap: 10px; }
.qa-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14.5px;
  color: var(--text);
}
.qa-option:hover { border-color: var(--accent); }
.qa-option.selected { border-color: var(--accent); background: rgba(196, 146, 74, 0.07); color: var(--bg-dark); font-weight: 500; }
.qa-option input[type="radio"] { display: none; }
.qa-radio-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: all var(--transition);
  position: relative;
}
.qa-option.selected .qa-radio-dot { border-color: var(--accent); }
.qa-option.selected .qa-radio-dot::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.qa-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
}

/* Download */
.download-complete {
  max-width: 560px;
  text-align: center;
  padding: 60px 40px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
}
.download-complete__mark {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 20px;
}
.download-complete h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 12px;
}
.download-complete p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 28px; }
.download-btns { display: flex; gap: 12px; justify-content: center; margin-bottom: 24px; }
.download-note {
  padding: 16px 20px;
  background: rgba(196, 146, 74, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 13px;
  color: var(--text-muted);
  text-align: left;
  margin-bottom: 24px;
}


/* ─── DOCUMENT REVIEWER ─── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: var(--surface);
  max-width: 640px;
  margin-bottom: 24px;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(196, 146, 74, 0.04);
}
.upload-zone__icon { font-size: 32px; color: var(--accent); margin-bottom: 16px; }
.upload-zone h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 8px;
}
.upload-zone p { font-size: 14px; color: var(--text-muted); margin-bottom: 12px; }
.upload-zone__note {
  font-size: 12px;
  color: var(--text-faint);
  display: inline-block;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 100px;
}
.upload-examples { margin-top: 4px; }
.upload-examples p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.upload-tags { display: flex; flex-wrap: wrap; gap: 8px; max-width: 640px; }
.upload-tags span {
  font-size: 12.5px;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 24px;
  max-width: 740px;
}
.results-file { display: flex; align-items: center; gap: 14px; }
.results-file-icon { font-size: 22px; color: var(--accent); }
.results-file-name { font-size: 15px; font-weight: 500; color: var(--bg-dark); }
.results-file-meta { font-size: 13px; color: var(--text-muted); }

.results-analyzing {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  max-width: 740px;
}
.analyzing-dots { display: flex; gap: 6px; }
.analyzing-dots span {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: typingBounce 1.2s ease infinite;
}
.analyzing-dots span:nth-child(2) { animation-delay: 0.2s; }
.analyzing-dots span:nth-child(3) { animation-delay: 0.4s; }
.results-analyzing p { font-size: 14px; color: var(--text-muted); }

.result-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  max-width: 740px;
}
.result-block--warning { border-left: 3px solid #E67E22; }
.result-block--flag { border-left: 3px solid var(--bg-dark); }
.result-block__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.result-block p { font-size: 15px; color: var(--text); line-height: 1.72; }
.result-terms { display: flex; flex-direction: column; gap: 14px; }
.result-term {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.result-term:last-child { border: none; padding-bottom: 0; }
.result-term__name { font-size: 14px; font-weight: 600; color: var(--bg-dark); margin-bottom: 5px; }
.result-term__def { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.result-deadline { display: flex; gap: 16px; align-items: flex-start; }
.deadline-date {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: #E67E22;
  white-space: nowrap;
}
.deadline-text { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.result-block ul, .result-block ol { padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.result-block li { font-size: 14px; color: var(--text-muted); line-height: 1.65; }


/* ─── RESOURCES ─── */
.resources-search-wrap { margin-bottom: 36px; max-width: 400px; }
.resources-search { background: var(--surface); }
.resources-sections { display: flex; flex-direction: column; gap: 44px; }
.resource-section__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--border);
}

.glossary { max-width: 680px; }
.glossary-item { border-bottom: 1px solid var(--border); }
.glossary-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: color var(--transition);
}
.glossary-q:hover { color: var(--accent); }
.glossary-arrow { font-size: 16px; color: var(--text-faint); transition: transform var(--transition); }
.glossary-q.open .glossary-arrow { transform: rotate(90deg); color: var(--accent); }
.glossary-a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
  padding: 0 4px 16px;
  display: none;
}
.glossary-a.open { display: block; }

.resource-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 840px;
}
.resource-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.resource-card h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 8px;
}
.resource-card p { font-size: 14px; color: var(--text-muted); line-height: 1.68; }

.resource-tips { display: flex; flex-direction: column; gap: 24px; max-width: 680px; }
.resource-tip {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.tip-num {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  line-height: 1;
  flex-shrink: 0;
  width: 40px;
}
.resource-tip strong { font-size: 15px; color: var(--bg-dark); display: block; margin-bottom: 5px; }
.resource-tip p { font-size: 14px; color: var(--text-muted); line-height: 1.68; }


/* ─── PROFILE ─── */
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 860px;
}
.profile-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.profile-card--muted { background: var(--bg-alt); }
.profile-card__title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.profile-user-row { display: flex; align-items: center; gap: 14px; }
.profile-avatar-lg {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  flex-shrink: 0;
}
.profile-name { font-size: 16px; font-weight: 600; color: var(--bg-dark); }
.profile-email { font-size: 13px; color: var(--text-muted); }

.plan-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg-dark);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
}
.plan-usage { display: flex; flex-direction: column; gap: 14px; }
.plan-usage-item { display: flex; flex-direction: column; gap: 6px; }
.plan-usage-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.plan-bar { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.plan-bar-fill { height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.6s ease; }
.plan-bar-fill--full { background: #E67E22; }

.pref-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.pref-row:last-child { border: none; padding: 0; }
.pref-info strong { font-size: 14px; color: var(--bg-dark); display: block; margin-bottom: 3px; }
.pref-info p { font-size: 13px; color: var(--text-muted); }

.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  cursor: pointer;
  transition: background var(--transition);
}
.toggle-track::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: white;
  border-radius: 50%;
  transition: transform var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle input:checked + .toggle-track { background: var(--accent); }
.toggle input:checked + .toggle-track::after { transform: translateX(20px); }


/* ─── UPGRADE MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 43, 75, 0.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 40px 36px 36px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.94) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: none;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--border); }
.modal-top { text-align: center; margin-bottom: 24px; }
.modal-icon { font-size: 32px; color: var(--accent); margin-bottom: 14px; }
.modal-top h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 6px;
}
.modal-top p { font-size: 14px; color: var(--text-muted); }
.modal-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.modal-feat {
  font-size: 14px;
  color: var(--text);
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-sm);
}
.modal-price {
  text-align: center;
  font-family: var(--font-serif);
  font-size: 44px;
  font-weight: 700;
  color: var(--bg-dark);
  margin-bottom: 20px;
}
.modal-price span { font-family: var(--font-sans); font-size: 16px; color: var(--text-muted); font-weight: 400; }
.modal-note { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }


/* ═══════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .features-grid--core  { grid-template-columns: repeat(2, 1fr); }
  .features-grid--tools { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr 1fr; }
  .testimonial--featured { transform: none; }
  .pillars { grid-template-columns: 1fr; gap: 16px; }
  .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }

  /* Nav */
  .nav__links, .nav__actions { display: none; }
  .nav__hamburger { display: flex; }
  .nav__inner { padding: 0 20px; }

  /* Hero */
  .hero { padding: 100px 20px 80px; }
  .hero__compass-wrap { width: 90vw; right: -30%; opacity: 0.07; }

  /* Pain points */
  .pain-points__grid { grid-template-columns: 1fr; gap: 0; }

  /* Pillars */
  .pillars { grid-template-columns: 1fr; }

  /* Features */
  .features-grid--core  { grid-template-columns: 1fr; }
  .features-grid--tools { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Pricing */
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }

  /* Resource cards */
  .resource-cards { grid-template-columns: 1fr; }

  /* App shell */
  .sidebar { display: none; position: fixed; left: -240px; top: 0; transition: left 0.3s ease; }
  .sidebar.open { display: flex; left: 0; }
  .app-topbar { display: flex; }
  .app-main { padding-top: 58px; }
  .screen { padding: 24px 20px; }
  #screen-coach { height: calc(100vh - 58px); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .action-cards { grid-template-columns: 1fr 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .builder-steps { max-width: 100%; }
  .download-btns { flex-direction: column; }
}

@media (max-width: 480px) {
  .hero__headline { font-size: 38px; }
  .hero__ctas { flex-direction: column; }
  .hero__trust { flex-direction: column; gap: 10px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .auth-card { padding: 28px 24px; }
  .bstep__l { display: none; }
  .qa-nav { flex-direction: column; gap: 10px; }
  .qa-nav .btn { width: 100%; }
}


/* ═══════════════════════════════════════════════════════
   NEW FEATURES — Round 1 + 2
═══════════════════════════════════════════════════════ */

/* ─── SIDEBAR ADDITIONS ─── */
.sidebar__divider {
  height: 1px;
  background: var(--border-dark);
  margin: 10px 12px 6px;
}
.sidebar__section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(168, 180, 200, 0.4);
  padding: 0 16px 6px;
}

/* ─── SAVINGS BANNER ─── */
.savings-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  gap: 24px;
  flex-wrap: wrap;
}
.savings-banner__eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.savings-banner__amount {
  font-family: var(--font-serif);
  font-size: 48px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
  margin-bottom: 4px;
}
.savings-banner__sub { font-size: 13px; color: var(--text-faint); }
.savings-banner__breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.savings-line {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  font-size: 13px;
}
.savings-line span:first-child { color: var(--text-faint); }
.savings-line span:last-child { color: var(--text-light); font-weight: 500; }

/* ─── CASE JOURNAL ─── */
.journal-form-wrap {
  margin-bottom: 24px;
  animation: screenIn 0.25s ease;
}
.journal-form-card {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  max-width: 780px;
}
.journal-form-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 20px;
}
.journal-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.journal-form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 4px;
}

.journal-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.jfilter {
  padding: 7px 16px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.jfilter:hover { border-color: var(--accent); color: var(--accent); }
.jfilter.active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: var(--text-light);
}

#journal-entries-list { display: flex; flex-direction: column; gap: 12px; max-width: 780px; }

.journal-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  transition: box-shadow var(--transition);
}
.journal-card:hover { box-shadow: var(--shadow); }
.journal-card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.journal-card__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}
.journal-card__type {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  flex-shrink: 0;
}
.jtype-custody-exchange  { background: rgba(27,43,75,0.1);    color: var(--bg-dark); }
.jtype-missed-visit      { background: rgba(192,57,43,0.12);  color: #C0392B; }
.jtype-communication     { background: rgba(39,174,96,0.12);  color: #27AE60; }
.jtype-court             { background: rgba(125,60,152,0.12); color: #7D3C98; }
.jtype-medical           { background: rgba(41,128,185,0.12); color: #2980B9; }
.jtype-school            { background: rgba(211,84,0,0.12);   color: #D35400; }
.jtype-other             { background: var(--bg-alt);         color: var(--text-muted); }

.journal-card__delete {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--text-faint);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: color var(--transition);
}
.journal-card__delete:hover { color: #C0392B; }
.journal-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 5px;
}
.journal-card__notes {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.journal-empty-state {
  text-align: center;
  padding: 64px 32px;
  max-width: 400px;
  margin: 0 auto;
}
.journal-empty-state__icon { font-size: 36px; color: var(--accent); opacity: 0.4; margin-bottom: 16px; }
.journal-empty-state h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 10px;
}
.journal-empty-state p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; }

/* ─── CHILD SUPPORT CALCULATOR ─── */
.calc-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 24px;
  align-items: start;
  margin-bottom: 24px;
}
.calc-form-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px;
}
.calc-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.dollar-input {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
  transition: border-color var(--transition);
}
.dollar-input:focus-within { border-color: var(--accent); }
.dollar-input span {
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  background: var(--bg-alt);
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1.5px solid var(--border);
  flex-shrink: 0;
}
.dollar-input input {
  border: none;
  border-radius: 0;
  flex: 1;
  min-width: 0;
}
.dollar-input input:focus { box-shadow: none; }

.child-count-pills {
  display: flex;
  gap: 8px;
}
.child-pill {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.child-pill:hover { border-color: var(--accent); color: var(--accent); }
.child-pill.active { background: var(--bg-dark); border-color: var(--bg-dark); color: var(--text-light); }

.slider-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}
.slider-row input[type="range"] {
  flex: 1;
  height: 4px;
  border: none;
  padding: 0;
  background: var(--border);
  border-radius: 2px;
  -webkit-appearance: none;
  cursor: pointer;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 2px solid var(--accent);
  cursor: pointer;
}
.slider-display {
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-dark);
  min-width: 44px;
  text-align: right;
}
.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-faint);
}
.label-note {
  font-size: 12px;
  color: var(--text-faint);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.calc-result-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: 24px;
}
.calc-result-placeholder {
  text-align: center;
  padding: 32px 16px;
}
.calc-placeholder-icon { font-size: 32px; color: var(--accent); opacity: 0.3; margin-bottom: 12px; }
.calc-result-placeholder p { font-size: 14px; color: var(--text-muted); }

.calc-result-amount {
  text-align: center;
  padding: 20px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}
.calc-result-label { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 8px; }
.calc-result-number {
  font-family: var(--font-serif);
  font-size: 52px;
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1;
  margin-bottom: 8px;
}
.calc-result-number span { font-size: 20px; font-family: var(--font-sans); font-weight: 400; color: var(--text-muted); }
.calc-result-direction {
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: 100px;
  display: inline-block;
}
.calc-result-direction--pay { background: rgba(192,57,43,0.1); color: #C0392B; }
.calc-result-direction--receive { background: rgba(39,174,96,0.1); color: #27AE60; }

.calc-breakdown { display: flex; flex-direction: column; gap: 10px; }
.calc-breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.calc-breakdown-row span:first-child { color: var(--text-muted); }
.calc-breakdown-row span:last-child { font-weight: 500; color: var(--text); }
.calc-breakdown-row--total {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}
.calc-breakdown-row--total span { color: var(--bg-dark); font-size: 14px; }

.calc-disclaimer-bar {
  background: rgba(196, 146, 74, 0.08);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  max-width: 900px;
}
.calc-disclaimer-bar p { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ─── MESSAGE TEMPLATES ─── */
.tmpl-info-bar {
  background: rgba(196,146,74,0.08);
  border: 1px solid rgba(196,146,74,0.25);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 24px;
  max-width: 780px;
}
.tmpl-info-bar p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

.tmpl-tabs-row {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--border);
  flex-wrap: wrap;
}
.tmpl-tab {
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.tmpl-tab:hover { color: var(--text); }
.tmpl-tab.active { color: var(--bg-dark); border-bottom-color: var(--accent); font-weight: 600; }

#tmpl-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 780px;
}
.tmpl-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  transition: box-shadow var(--transition);
}
.tmpl-card:hover { box-shadow: var(--shadow); }
.tmpl-card__name {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.tmpl-card__body {
  font-size: 14.5px;
  color: var(--text);
  line-height: 1.75;
  font-style: italic;
  background: var(--bg);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--border);
  margin-bottom: 14px;
  white-space: pre-line;
}
.tmpl-bracket { color: var(--accent); font-weight: 600; font-style: normal; }
.tmpl-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.tmpl-card__hint { font-size: 12px; color: var(--text-faint); }
.tmpl-copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-dark);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition);
  flex-shrink: 0;
}
.tmpl-copy-btn:hover { background: var(--accent); }
.tmpl-copy-btn.copied { background: #27AE60; }

/* ─── HEARING PREP ─── */
.hearing-type-select { margin-bottom: 32px; }
.hearing-type-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.hearing-type-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.hearing-pill {
  padding: 10px 20px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.hearing-pill:hover { border-color: var(--accent); color: var(--accent); }
.hearing-pill.active { background: var(--bg-dark); border-color: var(--bg-dark); color: var(--text-light); }

#hearing-content { max-width: 860px; }
.hearing-sections { display: flex; flex-direction: column; gap: 28px; }
.hearing-block {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
}
.hearing-block__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--bg-dark);
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.hearing-checklist { display: flex; flex-direction: column; gap: 10px; }
.hearing-check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
}
.hearing-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  border-radius: 4px;
  accent-color: var(--accent);
  cursor: pointer;
}
.hearing-steps { display: flex; flex-direction: column; gap: 14px; }
.hearing-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.hearing-step__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(196,146,74,0.12);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hearing-step__text { font-size: 14px; color: var(--text); line-height: 1.65; padding-top: 4px; }
.hearing-qa { display: flex; flex-direction: column; gap: 0; }
.hearing-qa-item { border-bottom: 1px solid var(--border); }
.hearing-qa-item:last-child { border: none; }
.hearing-qa-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px;
  background: none;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  gap: 12px;
}
.hearing-qa-q:hover { color: var(--accent); }
.hearing-qa-arrow { font-size: 16px; color: var(--text-faint); transition: transform var(--transition); flex-shrink: 0; }
.hearing-qa-q.open .hearing-qa-arrow { transform: rotate(90deg); }
.hearing-qa-a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.72;
  padding: 0 4px 14px;
  display: none;
}
.hearing-qa-a.open { display: block; }
.hearing-block--warn { border-left: 3px solid #E67E22; }
.hearing-block--warn .hearing-block__title { color: #E67E22; }
.hearing-warn-list { display: flex; flex-direction: column; gap: 10px; }
.hearing-warn-item {
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}
.hearing-warn-item::before {
  content: '—';
  color: #E67E22;
  flex-shrink: 0;
}

/* ─── CUSTODY CALENDAR ─── */
.cal-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: start;
}
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.cal-nav-btn:hover { border-color: var(--accent); color: var(--accent); }
.cal-month-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--bg-dark);
}
.cal-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.cal-legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
}
.cal-legend-item::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
.cal-legend-item--mine::before    { background: rgba(27,43,75,0.15); border: 1px solid var(--bg-dark); }
.cal-legend-item--theirs::before  { background: var(--bg-alt); border: 1px solid var(--border); }
.cal-legend-item--exchange::before { background: var(--accent); }

.cal-grid-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 4px;
}
.cal-grid-header span {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 0;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: default;
  position: relative;
  transition: opacity var(--transition);
}
.cal-day--empty { background: none; }
.cal-day--mine {
  background: rgba(27,43,75,0.12);
  color: var(--bg-dark);
  border: 1px solid rgba(27,43,75,0.2);
}
.cal-day--theirs {
  background: var(--bg-alt);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.cal-day--exchange {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}
.cal-day--today { box-shadow: 0 0 0 2px var(--accent); }

.cal-sidebar { display: flex; flex-direction: column; gap: 20px; }
.cal-setup, .cal-stats, .cal-exchanges {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.cal-setup__title, .cal-stats__title, .cal-exchanges__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.cal-stat {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 10px;
}
.cal-stat span { color: var(--text-muted); }
.cal-stat strong { color: var(--bg-dark); font-weight: 600; }
.cal-empty { font-size: 13px; color: var(--text-faint); font-style: italic; }

.exchange-log-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.exchange-log-item:last-child { border: none; }
.exchange-log-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 4px;
  flex-shrink: 0;
}
.exchange-log-info { flex: 1; }
.exchange-log-date { font-weight: 600; color: var(--bg-dark); }
.exchange-log-desc { color: var(--text-muted); }

/* Responsive additions */
@media (max-width: 1024px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-result-panel { position: static; }
  .cal-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .savings-banner { flex-direction: column; gap: 16px; }
  .savings-banner__amount { font-size: 36px; }
  .journal-form-row { grid-template-columns: 1fr; }
  .calc-two-col { grid-template-columns: 1fr; }
  .tmpl-tabs-row { gap: 0; overflow-x: auto; }
  .hearing-type-pills { gap: 8px; }
  .cal-day { font-size: 11px; }
}
@media (max-width: 480px) {
  .action-cards { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   VISUAL TUNE-UP v2
═══════════════════════════════════════════════ */

/* ─── SAVINGS BANNER — anchor watermark + refinement ─── */
.savings-banner {
  position: relative;
  overflow: hidden;
}
.savings-banner::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 160px;
  height: 160px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Ccircle cx='12' cy='5' r='2.25' stroke='white' stroke-width='1.4'/%3E%3Cline x1='12' y1='7.25' x2='12' y2='21' stroke='white' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M7 21c0-2.76 2.24-5 5-5s5 2.24 5 5' stroke='white' stroke-width='1.4' stroke-linecap='round'/%3E%3Cpath d='M4 12H1.5l3 4.5' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M20 12h2.5l-3 4.5' stroke='white' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M4 12a8 8 0 0 0 16 0' stroke='white' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.06;
  pointer-events: none;
}
.savings-banner__amount {
  font-size: 56px;
  letter-spacing: -0.02em;
}

/* ─── DASHBOARD — greeting warmth ─── */
.screen-header {
  position: relative;
}
#screen-dashboard .screen-title::after {
  content: '';
  display: block;
  width: 36px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 10px;
}

/* ─── DASHBOARD — action card refinements ─── */
.action-card {
  gap: 14px;
}
.action-card__body h4 {
  font-size: 15px;
}
.action-card__body p {
  font-size: 12px;
  line-height: 1.5;
}
.action-card__icon {
  font-size: 16px;
  width: 40px;
  height: 40px;
}

/* ─── COACH WELCOME — pulse animation ─── */
@keyframes harbor-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(196, 146, 74, 0.35); }
  70%  { box-shadow: 0 0 0 16px rgba(196, 146, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 146, 74, 0); }
}
.chat-welcome__mark {
  font-size: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(196, 146, 74, 0.1);
  animation: harbor-pulse 2.8s ease-out infinite;
  margin-bottom: 24px;
}
.chat-welcome h3 {
  font-size: 28px;
}

/* ─── PRICING — pro card ring + glow ─── */
.pricing-card--pro {
  box-shadow: 0 0 0 2px rgba(196, 146, 74, 0.5), 0 24px 64px rgba(27, 43, 75, 0.25);
  transform: translateY(-4px);
}
.pricing-card--pro .btn--primary {
  background: var(--accent);
  box-shadow: 0 4px 20px rgba(196, 146, 74, 0.35);
}
.pricing-card--pro .btn--primary:hover {
  background: #b8834a;
  box-shadow: 0 6px 24px rgba(196, 146, 74, 0.45);
}
.pricing-card__badge {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

/* ─── SIDEBAR — section label refinement ─── */
.sidebar__section-label {
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(244, 240, 232, 0.3);
  padding: 14px 16px 4px;
  text-transform: uppercase;
}
.sidebar__divider {
  height: 1px;
  background: rgba(244, 240, 232, 0.07);
  margin: 8px 12px;
}

/* ─── STAT CARDS — hover lift ─── */
.stat-card {
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}
.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

/* ─── SCREEN CONTENT — subtle inner top shadow ─── */
.app-main {
  background: var(--bg);
}

/* ─── CAL LEGEND — spacing fix ─── */
.cal-legend {
  margin-bottom: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.cal-legend-item {
  font-size: 12px;
  gap: 7px;
}
.cal-legend-item::before {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* ─── CALENDAR NAV ─── */
.cal-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.cal-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--bg-dark);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.cal-nav-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.cal-month-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--bg-dark);
  flex: 1;
}

/* ─── CALENDAR STATS ─── */
.cal-stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}
.cal-stat:last-child { border-bottom: none; }
.cal-stat strong {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--bg-dark);
}

/* ─── TEMPLATES — tab active refinement ─── */
.tmpl-tab.active {
  border-bottom-color: var(--accent);
  color: var(--bg-dark);
  font-weight: 600;
}

/* ─── HEARING — block title spacing ─── */
.hearing-block {
  margin-bottom: 20px;
}

/* ─── JOURNAL — empty state icon ─── */
.journal-empty-state__icon {
  font-size: 32px;
  color: var(--accent);
  opacity: 0.5;
  margin-bottom: 16px;
}

/* ═══════════════════════════════════════════════
   DEADLINES TRACKER
═══════════════════════════════════════════════ */
.deadline-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.deadline-card:hover { box-shadow: var(--shadow); border-color: rgba(196,146,74,0.3); }
.deadline-card--overdue { border-left: 3px solid #C0392B; }
.deadline-card--today   { border-left: 3px solid var(--accent); }
.deadline-card--soon    { border-left: 3px solid #E6B86A; }
.deadline-card--ok      { border-left: 3px solid rgba(27,43,75,0.2); }

.deadline-countdown {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  text-align: center;
}
.deadline-countdown--overdue { background: rgba(192,57,43,0.08); }
.deadline-countdown--today   { background: rgba(196,146,74,0.12); }
.deadline-countdown--soon    { background: rgba(230,184,106,0.1); }
.deadline-countdown--ok      { background: var(--bg-alt); }

.deadline-countdown__num {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.deadline-countdown--overdue .deadline-countdown__num { color: #C0392B; }
.deadline-countdown--today   .deadline-countdown__num { color: var(--accent); }
.deadline-countdown--soon    .deadline-countdown__num { color: #B8860B; }
.deadline-countdown--ok      .deadline-countdown__num { color: var(--bg-dark); }

.deadline-countdown__label {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 3px;
}
.deadline-countdown--overdue .deadline-countdown__label { color: #C0392B; }
.deadline-countdown--today   .deadline-countdown__label { color: var(--accent); }
.deadline-countdown--soon    .deadline-countdown__label { color: #B8860B; }
.deadline-countdown--ok      .deadline-countdown__label { color: var(--text-muted); }

.deadline-body { flex: 1; min-width: 0; }
.deadline-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.deadline-title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-dark);
}
.deadline-type-badge {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  background: var(--bg-alt);
  color: var(--text-muted);
  white-space: nowrap;
}
.deadline-date {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.deadline-notes {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.deadline-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.deadline-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-faint);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.deadline-btn:hover { background: var(--bg-alt); color: var(--text-muted); }
.deadline-btn--delete:hover { background: rgba(192,57,43,0.08); color: #C0392B; }

/* ═══════════════════════════════════════════════
   EXPENSE TRACKER
═══════════════════════════════════════════════ */
.exp-balance-card {
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 28px;
  gap: 16px;
  flex-wrap: wrap;
}
.exp-balance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.exp-balance-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,240,232,0.45);
}
.exp-balance-amount {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
}
.exp-balance-amount--owed { color: var(--accent); }
.exp-balance-divider {
  font-size: 14px;
  color: rgba(244,240,232,0.2);
}
.exp-balance-item--owed .exp-balance-label { color: rgba(196,146,74,0.7); }

.expense-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow var(--transition);
}
.expense-card:hover { box-shadow: var(--shadow); }
.expense-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  color: var(--accent);
}
.expense-body { flex: 1; min-width: 0; }
.expense-desc {
  font-size: 14px;
  font-weight: 500;
  color: var(--bg-dark);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.expense-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.expense-meta-item { display: flex; align-items: center; gap: 4px; }
.expense-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}
.expense-amount {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--bg-dark);
}
.expense-amount--them { color: var(--text-muted); }
.expense-paidby {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 100px;
}
.expense-paidby--me    { background: rgba(27,43,75,0.08); color: var(--bg-dark); }
.expense-paidby--them  { background: var(--bg-alt); color: var(--text-muted); }
.expense-reimburse-tag {
  font-size: 10px;
  color: var(--accent);
  font-weight: 600;
}
.expense-delete {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-faint);
  padding: 4px;
  margin-left: 4px;
  border-radius: 4px;
  transition: all var(--transition);
  line-height: 1;
}
.expense-delete:hover { background: rgba(192,57,43,0.08); color: #C0392B; }

.exp-reimburse-row { margin-top: 4px; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-muted);
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ═══════════════════════════════════════════════
   EMERGENCY QUICK GUIDE
═══════════════════════════════════════════════ */
.eguide-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}
.eguide-header__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(192,57,43,0.1);
  color: #C0392B;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.eguide-disclaimer {
  background: rgba(196,146,74,0.08);
  border: 1px solid rgba(196,146,74,0.25);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.eguide-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.eguide-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.eguide-card:hover { box-shadow: var(--shadow); border-color: rgba(196,146,74,0.3); }
.eguide-card.open { border-color: rgba(196,146,74,0.4); }

.eguide-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}
.eguide-card__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.eguide-card__tag--urgent  { background: rgba(192,57,43,0.1); color: #C0392B; }
.eguide-card__tag--serious { background: rgba(196,146,74,0.12); color: #8B6914; }
.eguide-card__tag--info    { background: rgba(27,43,75,0.07); color: var(--text-muted); }

.eguide-card__title {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--bg-dark);
  line-height: 1.3;
}
.eguide-card__arrow {
  font-size: 20px;
  color: var(--text-faint);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.eguide-card.open .eguide-card__arrow { transform: rotate(90deg); }

.eguide-card__body {
  display: none;
  padding: 0 20px 24px;
  border-top: 1px solid var(--border);
}
.eguide-card.open .eguide-card__body { display: block; }

.eguide-intro {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 16px 0 20px;
}
.eguide-steps {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}
.eguide-steps li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.eguide-steps li strong {
  color: var(--bg-dark);
  font-weight: 600;
}
.eguide-warn {
  background: rgba(192,57,43,0.05);
  border: 1px solid rgba(192,57,43,0.15);
  border-left: 3px solid #C0392B;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.eguide-warn__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C0392B;
  margin-bottom: 10px;
}
.eguide-warn__list {
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eguide-warn__list li {
  font-size: 13px;
  color: #8B2520;
  line-height: 1.5;
}
.eguide-tip {
  background: rgba(196,146,74,0.07);
  border: 1px solid rgba(196,146,74,0.2);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.eguide-tip__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.eguide-tip p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.eguide-crisis-resources {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 16px 0;
}
.eguide-crisis-item {
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  border-left: 3px solid var(--bg-dark);
}
.eguide-crisis-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--bg-dark);
  margin-bottom: 4px;
}
.eguide-crisis-detail {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.eguide-crisis-detail strong { color: var(--bg-dark); }
.eguide-crisis-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
  margin-top: 8px;
}

/* ═══════════════════════════════════════════════
   DYNAMIC DASHBOARD WIDGETS
═══════════════════════════════════════════════ */
.dash-widgets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.dash-widget {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.dash-widget:hover {
  border-color: rgba(196,146,74,0.4);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.dash-widget__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}
.dash-widget__value {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--bg-dark);
  line-height: 1.2;
}
.dash-widget__meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.dash-widget__arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-faint);
  transition: transform var(--transition), color var(--transition);
}
.dash-widget:hover .dash-widget__arrow {
  transform: translateY(-50%) translateX(3px);
  color: var(--accent);
}
.dash-widget--urgent {
  border-left: 3px solid #C0392B;
}
.dash-widget--soon {
  border-left: 3px solid var(--accent);
}
@media (max-width: 480px) {
  .dash-widgets { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════
   SETTLEMENT ANALYZER
═══════════════════════════════════════════════ */
.sa-paste-area {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
}
.sa-paste-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.sa-textarea {
  width: 100%;
  min-height: 200px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--bg-dark);
  background: var(--bg);
  resize: vertical;
  line-height: 1.6;
  transition: border-color var(--transition);
  box-sizing: border-box;
}
.sa-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196,146,74,0.08);
}
.sa-paste-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
  gap: 12px;
}
.sa-char-count {
  font-size: 12px;
  color: var(--text-faint);
}
.sa-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(196,146,74,0.06);
  border-left: 3px solid var(--accent);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  line-height: 1.5;
}

/* Loading */
.sa-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  gap: 16px;
}
.sa-loading__icon {
  font-size: 36px;
  color: var(--accent);
  animation: sa-spin 3s linear infinite;
}
@keyframes sa-spin {
  0%   { opacity: 1; transform: scale(1); }
  50%  { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}
.sa-loading__text {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--bg-dark);
}
.sa-loading__bar {
  width: 240px;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.sa-loading__fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.1s linear;
}

/* Results */
.sa-results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.sa-risk-badge {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 100px;
}
.sa-risk-badge--low    { background: rgba(39,174,96,0.1);  color: #1E8449; }
.sa-risk-badge--medium { background: rgba(196,146,74,0.12); color: #8B6914; }
.sa-risk-badge--high   { background: rgba(192,57,43,0.1);  color: #C0392B; }

.sa-summary {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  color: var(--text-faint);
  font-size: 14px;
  line-height: 1.7;
  position: relative;
  overflow: hidden;
}
.sa-summary strong { color: var(--text-light); }
.sa-summary__title {
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.sa-term-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 10px;
}
.sa-term-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 12px;
}
.sa-term-name {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--bg-dark);
}
.sa-term-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}
.sa-term-tag--found   { background: rgba(27,43,75,0.07); color: var(--text-muted); }
.sa-term-tag--caution { background: rgba(196,146,74,0.12); color: #8B6914; }
.sa-term-tag--warning { background: rgba(192,57,43,0.1);  color: #C0392B; }
.sa-term-explain {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.sa-term-quote {
  font-size: 12px;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 8px;
  padding: 8px 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  border-left: 2px solid var(--accent);
}

.sa-flag-item {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(192,57,43,0.04);
  border: 1px solid rgba(192,57,43,0.12);
  border-left: 3px solid #C0392B;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.sa-flag-icon { color: #C0392B; font-size: 14px; flex-shrink: 0; margin-top: 1px; }
.sa-flag-text { font-size: 13px; color: var(--bg-dark); line-height: 1.6; }
.sa-flag-text strong { font-weight: 600; }

.sa-question-item {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.sa-question-num {
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 20px;
}


/* ===============================================================
   COMMUNICATION LOG
=============================================================== */
.comms-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.comms-stat {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.comms-stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.comms-stat__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
#comms-stats .comms-stat:last-child .comms-stat__value {
  color: var(--accent);
}

/* Filter tabs */
.comms-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.comms-filter {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.comms-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.comms-filter.active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #fff;
}
.comms-filter[data-filter="concerning"].active {
  background: #C0392B;
  border-color: #C0392B;
}

/* Entry card */
.comm-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: start;
  transition: var(--transition);
}
.comm-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.comm-card--concerning {
  border-left: 3px solid #C0392B;
}
.comm-card--hostile {
  border-left: 3px solid #E67E22;
}
.comm-card--tense {
  border-left: 3px solid #F39C12;
}
.comm-card--positive {
  border-left: 3px solid #27AE60;
}

/* Date badge */
.comm-date-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 52px;
  text-align: center;
}
.comm-date-badge__month {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}
.comm-date-badge__day {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.comm-date-badge__time {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Card body */
.comm-card__body {}
.comm-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.comm-method-badge {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.comm-initiated-badge {
  font-size: 11px;
  color: var(--text-muted);
}
.comm-tone-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.comm-tone-badge--neutral   { background: rgba(107,122,153,0.1); color: #6B7A99; }
.comm-tone-badge--positive  { background: rgba(39,174,96,0.1);   color: #27AE60; }
.comm-tone-badge--tense     { background: rgba(243,156,18,0.12); color: #E67E22; }
.comm-tone-badge--concerning{ background: rgba(192,57,43,0.1);   color: #C0392B; }
.comm-tone-badge--hostile   { background: rgba(231,76,60,0.1);   color: #E74C3C; }

.comm-card__summary {
  font-size: 14px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 6px;
}
.comm-card__flag-reason {
  font-size: 12px;
  color: #C0392B;
  background: rgba(192,57,43,0.06);
  border-radius: 4px;
  padding: 4px 8px;
  margin-top: 4px;
  display: inline-block;
}
.comm-card__witnesses {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.comm-card__witnesses::before {
  content: '◇ Evidence: ';
  font-weight: 600;
}

/* Card actions */
.comm-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.comm-card__actions .btn {
  white-space: nowrap;
  font-size: 11px;
  padding: 4px 10px;
}

/* Tone pills in form */
.tone-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tone-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.tone-pill:hover { border-color: var(--text-muted); }
.tone-pill.active[data-tone="neutral"]    { background: #6B7A99; border-color: #6B7A99; color: #fff; }
.tone-pill.active[data-tone="positive"]   { background: #27AE60; border-color: #27AE60; color: #fff; }
.tone-pill.active[data-tone="tense"]      { background: #E67E22; border-color: #E67E22; color: #fff; }
.tone-pill.active[data-tone="concerning"] { background: #C0392B; border-color: #C0392B; color: #fff; }
.tone-pill.active[data-tone="hostile"]    { background: #E74C3C; border-color: #E74C3C; color: #fff; }

#comm-flag-group { display: none; }
#comm-flag-group.visible { display: block; }

.label-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}


/* ===============================================================
   OFFICIAL FORM CARD (Doc Builder Step 4)
=============================================================== */
.official-form-card {
  background: var(--surface);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  text-align: left;
}
.official-form-card__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}
.official-form-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.official-form-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}
.official-form-card__note {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  line-height: 1.5;
  font-style: italic;
}


/* ===============================================================
   CASE TIMELINE
=============================================================== */
.tl-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.tl-stat {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
}
.tl-stat__value {
  display: block;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.tl-stat__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.tl-stats .tl-stat:last-child .tl-stat__value { color: var(--accent); }

/* Filter tabs */
.tl-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tl-filter {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.tl-filter:hover { border-color: var(--accent); color: var(--accent); }
.tl-filter.active { background: var(--bg-dark); border-color: var(--bg-dark); color: #fff; }
.tl-filter[data-filter="upcoming"].active { background: var(--accent); border-color: var(--accent); }

/* Timeline vertical list */
.tl-list {
  position: relative;
  padding-left: 32px;
}
.tl-list::before {
  content: '';
  position: absolute;
  left: 11px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--border);
  border-radius: 2px;
}

/* Event card */
.tl-event {
  position: relative;
  margin-bottom: 20px;
}

/* Dot on the line */
.tl-event__dot {
  position: absolute;
  left: -28px;
  top: 14px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2.5px solid var(--surface);
  box-shadow: 0 0 0 2px var(--border);
  background: var(--text-muted);
  z-index: 1;
}
.tl-event--petition   .tl-event__dot { background: #6B7A99; box-shadow: 0 0 0 2px #6B7A99; }
.tl-event--served     .tl-event__dot { background: #6B7A99; box-shadow: 0 0 0 2px #6B7A99; }
.tl-event--hearing    .tl-event__dot { background: var(--bg-dark); box-shadow: 0 0 0 2px var(--bg-dark); }
.tl-event--order      .tl-event__dot { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.tl-event--agreement  .tl-event__dot { background: #27AE60; box-shadow: 0 0 0 2px #27AE60; }
.tl-event--violation  .tl-event__dot { background: #C0392B; box-shadow: 0 0 0 2px #C0392B; }
.tl-event--mediation  .tl-event__dot { background: #8E6BB0; box-shadow: 0 0 0 2px #8E6BB0; }
.tl-event--upcoming   .tl-event__dot { background: var(--accent); box-shadow: 0 0 0 2px var(--accent); opacity: 0.6; }

/* Card body */
.tl-event__card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  transition: var(--transition);
}
.tl-event__card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.tl-event--order     .tl-event__card { border-left: 3px solid var(--accent); }
.tl-event--violation .tl-event__card { border-left: 3px solid #C0392B; }
.tl-event--agreement .tl-event__card { border-left: 3px solid #27AE60; }
.tl-event--upcoming  .tl-event__card { border-style: dashed; opacity: 0.85; }

.tl-event__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.tl-event__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-event__date {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.tl-type-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 4px;
}
.tl-type-badge--petition  { background: rgba(107,122,153,0.12); color: #6B7A99; }
.tl-type-badge--served    { background: rgba(107,122,153,0.12); color: #6B7A99; }
.tl-type-badge--hearing   { background: rgba(27,43,75,0.1);    color: var(--bg-dark); }
.tl-type-badge--order     { background: rgba(196,146,74,0.12); color: var(--accent); }
.tl-type-badge--agreement { background: rgba(39,174,96,0.1);   color: #27AE60; }
.tl-type-badge--violation { background: rgba(192,57,43,0.1);   color: #C0392B; }
.tl-type-badge--mediation { background: rgba(142,107,176,0.1); color: #8E6BB0; }
.tl-type-badge--other     { background: rgba(107,122,153,0.1); color: var(--text-muted); }
.tl-type-badge--upcoming  { background: rgba(196,146,74,0.1);  color: var(--accent); }

.tl-event__actions { display: flex; gap: 6px; }
.tl-event__actions .btn { font-size: 11px; padding: 3px 10px; }

.tl-event__title {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.tl-event__details {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.tl-event__outcome {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  display: inline-block;
}
.tl-event__outcome::before { content: '› '; color: var(--accent); }

/* Upcoming toggle */
.tl-upcoming-toggle { margin-top: 6px; }
.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}
.toggle-label input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }

@media (max-width: 600px) {
  .tl-stats { grid-template-columns: repeat(2, 1fr); }
  .tl-list  { padding-left: 24px; }
  .tl-event__dot { left: -20px; }
}


/* ═══════════════════════════════════════════════════════
   HARBOR — ANIMATION SUITE
   Landing: hero stagger · parallax · pain slides · feature stagger · pricing hover
   App: stat glow · screen cross-fade · sidebar indicator
   Micro: button press · input focus · toast progress · chat slide-ins
═══════════════════════════════════════════════════════ */

/* ─── BUTTON PRESS — tactile scale ─── */
.btn:active { transform: scale(0.97); transition: transform 0.08s ease; }

/* ─── PRICING CARDS — hover lift + amber glow ─── */
.pricing-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pricing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(196, 146, 74, 0.18), 0 8px 30px rgba(27, 43, 75, 0.12);
}
.pricing-card--pro:hover {
  box-shadow: 0 24px 64px rgba(196, 146, 74, 0.30), 0 8px 32px rgba(27, 43, 75, 0.25);
}

/* ─── SIDEBAR — amber animated indicator ─── */
.sidebar__item {
  transition: background var(--transition), color var(--transition),
              border-left-color 0.2s ease, border-left-width 0.15s ease;
}
.sidebar__item.active { border-left-color: var(--accent); border-left-width: 3px; }

/* ─── SCREEN — cross-fade on navigate ─── */
@keyframes screenOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-8px); }
}
.screen--leaving {
  display: block !important;
  animation: screenOut 0.15s ease forwards;
  pointer-events: none;
}

/* ─── STAT CARD — amber glow flash when counter hits target ─── */
@keyframes statGlow {
  0%   { box-shadow: 0 0 0 0 rgba(196, 146, 74, 0); }
  30%  { box-shadow: 0 0 0 8px rgba(196, 146, 74, 0.22), var(--shadow-sm); }
  70%  { box-shadow: 0 0 0 4px rgba(196, 146, 74, 0.10), var(--shadow-sm); }
  100% { box-shadow: 0 0 0 0 rgba(196, 146, 74, 0); }
}
.stat-card--glow { animation: statGlow 0.85s ease forwards; }

/* ─── CHAT BUBBLES — slide in from sides ─── */
@keyframes chatSlideLeft  { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes chatSlideRight { from { opacity: 0; transform: translateX(20px);  } to { opacity: 1; transform: translateX(0); } }
.chat-msg--harbor { animation: chatSlideLeft  0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.chat-msg--user   { animation: chatSlideRight 0.28s cubic-bezier(0.25, 0.46, 0.45, 0.94); }

/* ─── REVEAL FROM LEFT — pain point cards ─── */
.reveal--left {
  opacity: 0;
  transform: translateX(-38px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal--left.visible { opacity: 1; transform: translateX(0); }

/* ─── HERO HEADLINE — word-by-word stagger ─── */
.hero__word {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: heroWordIn 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
@keyframes heroWordIn { to { opacity: 1; transform: translateY(0); } }

/* ─── TOAST — slide-up from bottom-right with progress bar ─── */
.harbor-toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--bg-dark);
  color: var(--text-light);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font-sans);
  box-shadow: 0 8px 32px rgba(27, 43, 75, 0.35);
  z-index: 9999;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
  min-width: 220px;
  max-width: 340px;
  pointer-events: none;
}
.harbor-toast--visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.harbor-toast__msg { display: block; padding: 13px 20px 11px; white-space: nowrap; }
.harbor-toast__bar { height: 3px; background: var(--accent); width: 100%; }

/* ─── INPUT FOCUS — amber label + ring ─── */
.form-group:focus-within label { color: var(--accent); transition: color var(--transition); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 146, 74, 0.12);
}
