/* ============================================
   Mandaire - Global Stylesheet
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --deep-indigo: #2D3047;
  --warm-stone: #B8AFA7;
  --soft-signal: #5C8A97;
  --warm-white: #FAFAF7;
  --soft-black: #1C1C1E;
  --text-primary: #2D3047;
  --text-secondary: #5A5650;
  --text-muted: #8C8680;
  --stone-light: #ECEAE6;
  --stone-lighter: #F3F1EE;
  --signal-dark: #4d7a86;
}

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

body {
  font-family: 'Switzer', 'Segoe UI', system-ui, sans-serif;
  color: var(--text-primary);
  background: var(--warm-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { line-height: 1.2; }

a { color: var(--soft-signal); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--deep-indigo); }

img { max-width: 100%; height: auto; }

.serif {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
}

/* -- Layout -- */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* -- Navigation -- */
nav {
  padding: 1.5rem 0;
  position: sticky;
  top: 0;
  background: rgba(250, 250, 247, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--stone-light);
}

.nav-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: 'Switzer', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--deep-indigo);
  letter-spacing: 0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.wordmark:hover { color: var(--deep-indigo); }
.wordmark svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--deep-indigo); }

.nav-cta {
  font-family: 'Switzer', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--warm-white) !important;
  background: var(--deep-indigo);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-cta:hover {
  background: var(--soft-black);
  color: var(--warm-white) !important;
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--deep-indigo);
}

/* -- Hero -- */
.hero {
  padding: 6rem 0 5rem;
}
.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 3.25rem;
  color: var(--deep-indigo);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.hero .subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 560px;
  margin-bottom: 2.25rem;
  line-height: 1.65;
}
.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-primary {
  display: inline-block;
  font-family: 'Switzer', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  background: var(--deep-indigo);
  padding: 0.85rem 2.25rem;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s;
}
.cta-primary:hover { background: var(--soft-black); color: #fff; }

.cta-secondary {
  display: inline-block;
  font-family: 'Switzer', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--soft-signal);
  text-decoration: none;
  transition: color 0.2s;
}
.cta-secondary:hover { color: var(--deep-indigo); }

.hero-status {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--soft-signal);
  display: inline-block;
}

/* -- Sections -- */
section { padding: 5rem 0; }

.section-label {
  font-family: 'Switzer', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft-signal);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--deep-indigo);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  max-width: 640px;
}

.section-body {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 1.25rem;
}
.section-body:last-child { margin-bottom: 0; }

/* Section with stone background */
.section-stone { background: var(--stone-lighter); }
.section-border { border-top: 1px solid var(--stone-light); }

/* -- Problem Section -- */
.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.problem-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.problem-icon {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--stone-light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.problem-icon svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: var(--soft-signal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.problem-item h3 {
  font-family: 'Switzer', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-indigo);
  margin-bottom: 0.3rem;
}
.problem-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -- Steps -- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.step {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--deep-indigo);
  color: #fff;
  font-family: 'Switzer', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--deep-indigo);
  margin-bottom: 0.35rem;
}
.step p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -- Feature cards (differentiators) -- */
.diff-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.diff-card {
  border-left: 3px solid var(--soft-signal);
  padding-left: 1.5rem;
}
.diff-card h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--deep-indigo);
  margin-bottom: 0.5rem;
}
.diff-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}
.diff-card .example {
  font-size: 0.9rem;
  color: var(--soft-signal);
  font-style: italic;
  line-height: 1.55;
}

/* -- Pricing -- */
.pricing-box {
  margin-top: 2rem;
  background: var(--warm-white);
  border-radius: 8px;
  padding: 2.5rem;
  max-width: 520px;
  border: 1px solid var(--stone-light);
}
.pricing-box h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--deep-indigo);
  margin-bottom: 0.75rem;
}
.pricing-box p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.pricing-box ul {
  list-style: none;
  padding: 0;
  margin-top: 1.25rem;
}
.pricing-box li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pricing-box li::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--soft-signal);
  flex-shrink: 0;
}

/* -- Trust grid -- */
.trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2.5rem;
}
.trust-item h3 {
  font-family: 'Switzer', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep-indigo);
  margin-bottom: 0.35rem;
}
.trust-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* -- CTA Banner -- */
.cta-banner {
  background: var(--deep-indigo);
  padding: 5rem 0;
  text-align: center;
}
.cta-banner h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--warm-white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.cta-banner p {
  font-size: 1rem;
  color: var(--warm-stone);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .cta-primary {
  background: var(--soft-signal);
}
.cta-banner .cta-primary:hover {
  background: var(--signal-dark);
}
.cta-banner .status-line {
  margin-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--warm-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* -- Pull quote -- */
.pull-quote {
  padding: 3rem 0;
  text-align: center;
}
.pull-quote blockquote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.6rem;
  color: var(--deep-indigo);
  font-weight: 400;
  font-style: italic;
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.45;
  letter-spacing: -0.005em;
}

/* -- Scenario walkthrough -- */
.scenario-section {
  padding: 3.5rem 0;
}
.scenario-block {
  max-width: 620px;
  margin: 1.5rem auto 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.scenario-step {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text-primary);
  padding-left: 1rem;
  border-left: 2px solid var(--soft-signal);
}
.scenario-tag {
  display: inline-block;
  font-family: 'Switzer', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--soft-signal);
  margin-right: 0.5rem;
}
.scenario-caption {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.5;
}

/* -- Rendered brief (actual product output example) -- */
.brief-output {
  max-width: 640px;
  margin: 1.75rem auto 0.5rem;
  background: #fafaf7;
  border: 1px solid var(--stone-light);
  border-radius: 6px;
  padding: 1.75rem 1.75rem 1.5rem;
  font-family: ui-monospace, 'SF Mono', 'Menlo', 'Consolas', monospace;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--text-primary);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  box-shadow: 0 1px 2px rgba(45, 48, 71, 0.04);
}
.brief-output .brief-header {
  display: block;
  font-weight: 600;
  color: var(--deep-indigo);
  border-bottom: 1px solid var(--stone-light);
  padding-bottom: 0.75rem;
  margin-bottom: 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
}
.brief-output .brief-section-label {
  display: block;
  font-weight: 600;
  color: var(--deep-indigo);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.72rem;
  margin-top: 1.1rem;
  margin-bottom: 0.35rem;
}
.brief-output .brief-section-label:first-of-type {
  margin-top: 0;
}
.brief-output .brief-body {
  display: block;
  margin-bottom: 0;
}
.brief-output .brief-sources {
  display: block;
  margin-top: 1.4rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--stone-light);
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* -- Values / philosophy list -- */
.values-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.value-item h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--deep-indigo);
  margin-bottom: 0.4rem;
}
.value-item p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 600px;
}

/* -- Page header (legal pages etc.) -- */
.page-header {
  padding: 4rem 0 2rem;
  border-bottom: 1px solid var(--stone-light);
  margin-bottom: 2.5rem;
}
.page-header h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--deep-indigo);
  margin-bottom: 0.5rem;
}
.page-header .date {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.page-header .summary {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 1rem;
  line-height: 1.65;
  max-width: 580px;
}

/* -- Content (legal pages) -- */
.content { padding-bottom: 4rem; }
.content h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--deep-indigo);
  margin: 2.5rem 0 0.75rem;
}
.content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}
.content ul, .content ol {
  margin: 0 0 1rem 1.5rem;
  color: var(--text-secondary);
}
.content li { margin-bottom: 0.4rem; }
.content strong { color: var(--text-primary); }
.content a { color: var(--soft-signal); }
.content a:hover { text-decoration: underline; }

/* -- Footer -- */
footer {
  border-top: 1px solid var(--stone-light);
  padding: 3rem 0 2rem;
}
.footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-left {
  max-width: 360px;
}
.footer-left .wordmark {
  margin-bottom: 0.75rem;
}
.footer-etymology {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}
.footer-right {
  display: flex;
  gap: 3rem;
}
.footer-col h4 {
  font-family: 'Switzer', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep-indigo);
  margin-bottom: 0.75rem;
}
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--deep-indigo); }
.footer-bottom {
  max-width: 880px;
  margin: 2rem auto 0;
  padding: 1.5rem 2rem 0;
  border-top: 1px solid var(--stone-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom .copyright {
  font-size: 0.75rem;
  color: var(--warm-stone);
}
.footer-bottom .tagline {
  font-size: 0.8rem;
  color: var(--warm-stone);
}

/* -- Responsive -- */
@media (min-width: 640px) {
  .hero { padding: 8rem 0 5.5rem; }
  .hero h1 { font-size: 3.5rem; }
  .problem-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner h2 { font-size: 2.75rem; }
}

@media (min-width: 900px) {
  .hero h1 { font-size: 3.75rem; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .diff-cards { grid-template-columns: repeat(3, 1fr); }
  .values-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero { padding: 4rem 0 3rem; }
  .hero h1 { font-size: 2.15rem; }
  .hero .subtitle { font-size: 1rem; }
  section { padding: 3.5rem 0; }
  .section-heading { font-size: 1.75rem; }
  .trust-grid { grid-template-columns: 1fr; }
  .cta-banner h2 { font-size: 1.75rem; }
  .cta-banner { padding: 3.5rem 0; }
  .footer-inner { flex-direction: column; }
  .footer-right { gap: 2rem; }
  .pull-quote blockquote { font-size: 1.3rem; }
  .nav-links .nav-hide-mobile { display: none; }
  .nav-links { gap: 1rem; }
}
