/* Unmanaged Marketing Site — Burnished Gold Design System */

:root {
  /* Core Colors */
  --surface-primary: #FEFCF6;
  --surface-secondary: #F5F0E6;
  --surface-white: #FFFFFF;
  --text-primary: #1C1A14;
  --text-secondary: #4A4639;
  --text-tertiary: #7A7567;
  --text-muted: #9A9488;
  --accent-primary: #BE6E38;
  --accent-hover: #A85D2D;
  --accent-subtle: rgba(190, 110, 56, 0.08);
  --gravity: #8A5C36;
  --success: #2D7A4F;
  --border: #E5E0D5;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  
  /* Spacing */
  --section-padding: 80px 24px;
  --section-padding-large: 100px 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--surface-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: 48px; font-weight: 700; }
h2 { font-size: 36px; }
h3 { font-size: 24px; }

@media (max-width: 768px) {
  h1 { font-size: 32px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background-color 0.3s, backdrop-filter 0.3s;
}

.nav.scrolled {
  background-color: var(--surface-white);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 500;
  color: var(--gravity);
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.08em;
}

.nav-logo img {
  height: 55px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent-hover);
}

.nav-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Hamburger Button */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 110;
}

.nav-hamburger svg {
  display: block;
  stroke: var(--text-primary);
  stroke-width: 2;
  stroke-linecap: round;
}

.nav-hamburger .hamburger-close { display: none; }
.nav-hamburger.active .hamburger-open { display: none; }
.nav-hamburger.active .hamburger-close { display: block; }

/* Mobile Nav Overlay */
@media (max-width: 900px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--surface-primary);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 105;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links .nav-link {
    font-size: 20px;
    font-weight: 500;
  }

  .nav-cta { display: none; }

  .nav-hamburger { display: block; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--accent-primary);
  color: white;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--text-tertiary);
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
  border-radius: 12px;
}

.btn-text {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 0;
  font-size: 15px;
}

.btn-text:hover {
  color: var(--accent-primary);
}

/* Section Backgrounds */
.section {
  position: relative;
  padding: var(--section-padding);
}

.section-large {
  position: relative;
  padding: var(--section-padding-large);
}

.bg-primary {
  background-color: var(--surface-primary);
}

.bg-secondary {
  background-color: var(--surface-secondary);
}

.bg-dark {
  background-color: var(--text-primary);
  color: var(--surface-secondary);
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .two-col svg {
    max-width: 160px;
    height: auto;
  }
}

/* Pattern System — 4 semantic patterns via pseudo-element overlays */
.has-pattern-topo,
.has-pattern-diamonds,
.has-pattern-waves,
.has-pattern-grid { position: relative; }

.has-pattern-topo > *,
.has-pattern-diamonds > *,
.has-pattern-waves > *,
.has-pattern-grid > * { position: relative; z-index: 1; }

.has-pattern-topo::before,
.has-pattern-diamonds::before,
.has-pattern-waves::before,
.has-pattern-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.07;
}

.has-pattern-topo::before {
  background: url('../images/pattern-topo-1.png') repeat;
  background-size: 600px;
  filter: sepia(1) hue-rotate(-15deg) saturate(0.9);
}

.has-pattern-diamonds::before {
  background: url('../images/pattern-diamonds-1.png') repeat;
  background-size: 1200px;
  filter: sepia(1) hue-rotate(75deg) saturate(0.5);
}

.has-pattern-waves::before {
  background: url('../images/pattern-waves-1.png') repeat;
  background-size: 500px;
  filter: sepia(1) saturate(1.5);
}

.has-pattern-grid::before {
  background: url('../images/pattern-mesh-1.png') repeat;
  background-size: 500px;
  filter: sepia(0.3) saturate(0.3);
}

/* Hero Section */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.hero h1 {
  max-width: 700px;
  margin: 0 auto 24px;
}

.hero-subtitle {
  font-size: 22px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-cta {
  margin-bottom: 24px;
}

.hero-trust {
  font-size: 14px;
  color: var(--text-tertiary);
}

.hero-trust span {
  margin: 0 8px;
}

/* Fee Calculator */
.calculator {
  max-width: 800px;
  margin: 0 auto;
}

.calculator h2 {
  text-align: center;
  margin-bottom: 8px;
}

.calculator-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.calculator-card {
  background: var(--surface-white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.slider-group {
  margin-bottom: 32px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-weight: 500;
}

.slider-value {
  color: var(--accent-primary);
  font-weight: 600;
}

input[type="range"] {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: var(--border);
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(190, 110, 56, 0.3);
}

.calculator-result {
  background: var(--accent-subtle);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  margin: 32px 0;
}

.result-number {
  font-size: clamp(32px, 8vw, 56px);
  font-weight: 700;
  color: var(--gravity);
  line-height: 1;
  margin-bottom: 8px;
}

.result-label {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.result-context {
  font-size: 15px;
  color: var(--text-tertiary);
  max-width: 400px;
  margin: 0 auto;
}

.show-math-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--accent-primary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  margin: 12px 0 4px;
  font-family: inherit;
  transition: color 0.2s;
}

.show-math-toggle:hover {
  color: var(--gravity);
}

.show-math-toggle svg {
  transition: transform 0.25s ease;
}

.show-math-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.math-breakdown {
  text-align: left;
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--surface-primary);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px;
}

.math-assumption {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
  text-align: center;
}

.math-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.math-step {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.math-label {
  color: var(--text-secondary);
  white-space: nowrap;
}

.math-formula {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 13px;
  color: var(--text-primary);
  text-align: right;
}

.math-step-result {
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-weight: 600;
}

.math-step-result .math-label {
  color: var(--gravity);
}

.math-step-result .math-formula {
  color: var(--gravity);
  font-weight: 700;
}

.math-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
  text-align: center;
}

.calculator-cta {
  text-align: center;
}

/* How It Works */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

.step {
  text-align: center;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
}

.step-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  fill: none;
}

.step-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.step-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Feature Cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--surface-secondary);
  border-radius: 12px;
  padding: 32px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
  stroke: var(--accent-primary);
  stroke-width: 1.5;
  fill: none;
}

.feature-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Revelation / Personas */
.persona-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }
}

.persona-card {
  background: var(--surface-white);
  border-radius: 12px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.persona-name {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.persona-role {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 24px;
}

.persona-result {
  background: var(--accent-subtle);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 24px;
}

.persona-number {
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 700;
  color: var(--gravity);
  line-height: 1;
  margin-bottom: 4px;
}

.persona-label {
  font-size: 16px;
  color: var(--text-secondary);
}

.persona-description {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}

.comparison-table th,
.comparison-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  font-weight: 600;
  font-size: 15px;
}

.comparison-table th:first-child {
  width: 30%;
}

.comparison-table th:nth-child(2) {
  border-top: 3px solid var(--accent-primary);
}

.comparison-table td {
  font-size: 14px;
  color: var(--text-secondary);
}

.comparison-table td:nth-child(2) {
  color: var(--text-primary);
  font-weight: 500;
}

.check {
  color: var(--success);
}

@media (max-width: 768px) {
  .comparison-table {
    font-size: 13px;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
  }
}

/* Manifesto */
.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

@media (max-width: 768px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
  }
}

.manifesto-item {
  padding: 8px 0;
}

.manifesto-statement {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.manifesto-statement::before {
  content: "—";
  color: var(--accent-primary);
  margin-right: 8px;
}

.manifesto-explanation {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-left: 20px;
}

/* Pricing */
.pricing-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface-white);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.pricing-eyebrow {
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gravity);
  margin-bottom: 16px;
}

.pricing-headline {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
}

.pricing-headline .gravity {
  color: var(--gravity);
}

.pricing-amount {
  font-size: 64px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.pricing-subtitle {
  font-size: 15px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 32px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 0;
  font-size: 15px;
}

.pricing-feature .check {
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
  line-height: 1.5;
}

/* Brand Close */
.brand-close {
  position: relative;
  text-align: center;
  padding: 120px 24px;
}

.brand-close h2 {
  font-size: 42px;
  font-weight: 700;
  max-width: 600px;
  margin: 0 auto 40px;
}

.brand-close-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  position: relative;
  background: var(--text-primary);
  color: var(--surface-secondary);
  padding: 64px 24px 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 800px;
  margin: 0 auto 48px;
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--surface-primary);
}

.footer-column a {
  display: block;
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 14px;
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-column a:hover {
  color: var(--surface-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-tertiary);
}

.footer-tagline {
  margin-top: 8px;
  font-style: italic;
}

/* Utilities */
.text-center { text-align: center; }
.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-48 { margin-bottom: 48px; }
.mt-48 { margin-top: 48px; }
