/* ==========================================
   AgFileOS — Theme Stylesheet
   ========================================== */

:root {
  --bg: #F5F0E8;
  --bg-alt: #EDE8DC;
  --dark: #1B3A2D;
  --dark-mid: #243D2F;
  --accent: #D4A843;
  --accent-light: #E8C06A;
  --text: #1A1A18;
  --text-muted: #6B6B63;
  --white: #FFFFFF;
  --border: rgba(27, 58, 45, 0.12);
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: var(--dark); }

/* ---- Pricing Page ---- */
.pricing-page {
  padding-top: 80px;
  min-height: 100vh;
}

.pricing-header {
  background: var(--dark);
  padding: 80px 64px 72px;
  position: relative;
  overflow: hidden;
}

.pricing-header::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 40px,
    rgba(212, 168, 67, 0.04) 40px,
    rgba(212, 168, 67, 0.04) 41px
  );
}

.pricing-eyebrow {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.pricing-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--bg);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 20px;
  position: relative;
}

.pricing-sub {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.6);
  max-width: 560px;
  font-weight: 300;
  line-height: 1.7;
  position: relative;
}

.pricing-grid-section {
  padding: 80px 64px;
  background: var(--bg);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(27, 58, 45, 0.1);
  transform: translateY(-2px);
}

.pricing-card--featured {
  border-color: var(--dark);
  box-shadow: 0 4px 24px rgba(27, 58, 45, 0.15);
}

.pricing-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark);
  color: var(--bg);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
}

.pricing-tier-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.pricing-tier-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.pricing-price {
  margin-bottom: 8px;
}

.pricing-amount {
  font-family: 'DM Serif Display', serif;
  font-size: 2.8rem;
  color: var(--dark);
  line-height: 1;
}

.pricing-period {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.pricing-feature {
  font-size: 0.85rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.4;
}

.pricing-feature::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing-cta {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 24px;
  background: var(--dark);
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  transition: background 0.15s;
}

.pricing-cta:hover { background: var(--dark-mid); }
.pricing-cta--outline {
  background: transparent;
  border: 1.5px solid var(--dark);
  color: var(--dark);
}
.pricing-cta--outline:hover { background: var(--dark); color: var(--bg); }

.pricing-cta--gold {
  background: var(--accent);
  color: var(--dark);
}
.pricing-cta--gold:hover { background: var(--accent-light); }

/* Comparison Table */
.comparison-section {
  padding: 64px 64px;
  background: var(--bg-alt);
}

.comparison-inner { max-width: 1200px; margin: 0 auto; }

.comparison-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 40px;
  text-align: center;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.comparison-table th {
  text-align: left;
  padding: 12px 16px;
  background: var(--dark);
  color: var(--bg);
  font-weight: 600;
  font-size: 0.8rem;
}

.comparison-table th:first-child { border-radius: 8px 0 0 0; }
.comparison-table th:last-child { border-radius: 0 8px 0 0; }

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table tr:nth-child(even) td { background: rgba(245, 240, 232, 0.5); }

.check { color: var(--dark); font-weight: 700; }
.dash { color: var(--text-muted); }

/* Government Fees */
.fees-section {
  padding: 64px 64px;
  background: var(--bg);
}

.fees-inner { max-width: 1200px; margin: 0 auto; }

.fees-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 12px;
}

.fees-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.fees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.fee-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 28px 24px;
}

.fee-agency {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.fee-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 6px;
}

.fee-range {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
}

.fee-detail {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* FAQ Section */
.faq-section {
  padding: 64px 64px;
  background: var(--bg-alt);
}

.faq-inner { max-width: 800px; margin: 0 auto; }

.faq-title {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  color: var(--dark);
  margin-bottom: 40px;
  text-align: center;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  cursor: pointer;
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-q::after {
  content: '+';
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.faq-item.open .faq-q::after { transform: rotate(45deg); }

.faq-a {
  display: none;
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.open .faq-a { display: block; }

/* Pricing CTA Banner */
.pricing-cta-banner {
  padding: 80px 64px;
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 30px,
    rgba(212, 168, 67, 0.04) 30px,
    rgba(212, 168, 67, 0.04) 31px
  );
}

.banner-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--bg);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  position: relative;
}

.banner-body {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.6);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
  position: relative;
}

.banner-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  position: relative;
  transition: background 0.15s;
}
.banner-btn:hover { background: var(--accent-light); }

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: baseline;
  gap: 20px;
}

.nav-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.nav-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  background: var(--dark);
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}

.hero-grid-art {
  position: absolute;
  top: 0;
  right: 0;
  width: 45%;
  height: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 2px;
  padding: 2px;
  opacity: 0.18;
  pointer-events: none;
}

.grid-cell {
  background: var(--accent);
  border-radius: 2px;
}

.grid-cell--tall { grid-row: span 2; }
.grid-cell--wide { grid-column: span 2; }
.grid-cell--accent { background: var(--accent-light); }

.hero-content {
  grid-column: 1;
  grid-row: 1;
  padding: 80px 64px 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.0;
  color: var(--bg);
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(245, 240, 232, 0.65);
  max-width: 480px;
  font-weight: 300;
}

.hero-stats {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(212, 168, 67, 0.2);
  margin-top: 60px;
}

.stat {
  flex: 1;
  padding: 32px 48px;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: rgba(212, 168, 67, 0.25);
  flex-shrink: 0;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(245, 240, 232, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ---- Manifesto ---- */
.manifesto {
  background: var(--dark);
  padding: 100px 64px;
}

.manifesto-inner {
  max-width: 820px;
  margin: 0 auto;
}

.manifesto-mark {
  margin-bottom: 36px;
}

.manifesto-quote {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--bg);
  line-height: 1.35;
  margin-bottom: 32px;
  font-style: italic;
  border-left: 3px solid var(--accent);
  padding-left: 24px;
}

.manifesto-body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.6);
  font-weight: 300;
}

/* ---- Features ---- */
.features {
  padding: 100px 64px;
  background: var(--bg);
}

.features-header {
  text-align: center;
  margin-bottom: 72px;
}

.features-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.features-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 1040px;
  margin: 0 auto;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(27, 58, 45, 0.1);
}

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

.feature-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  color: var(--dark);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Process ---- */
.process {
  padding: 100px 64px;
  background: var(--bg-alt);
}

.process-header {
  text-align: center;
  margin-bottom: 64px;
}

.process-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  letter-spacing: -0.02em;
}

.process-timeline {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-step {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  align-items: start;
  padding: 36px 0;
}

.timeline-connector {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  margin-left: 35px;
}

.step-number {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  color: var(--accent);
  line-height: 1;
  padding-top: 4px;
}

.step-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--dark);
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---- Closing ---- */
.closing {
  background: var(--dark);
  padding: 120px 64px;
  text-align: center;
}

.closing-inner {
  max-width: 720px;
  margin: 0 auto;
}

.closing-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 32px;
}

.closing-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--bg);
  line-height: 1.1;
  margin-bottom: 28px;
  letter-spacing: -0.03em;
}

.closing-body {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.6);
  line-height: 1.75;
  font-weight: 300;
}

.closing-cta {
  display: inline-block;
  margin-top: 36px;
  background: var(--accent);
  color: var(--dark);
  padding: 14px 32px;
  border-radius: 8px;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.closing-cta:hover { background: var(--bg); color: var(--dark); }

/* ---- Footer ---- */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(212, 168, 67, 0.15);
  padding: 40px 64px;
}

.footer-inner {
  max-width: 1040px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-logo {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  color: var(--bg);
}

.footer-desc {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.4);
}

.footer-tagline {
  font-size: 0.8rem;
  color: var(--accent);
  font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }

  .hero-grid-art { display: none; }

  .hero-content {
    padding: 60px 28px 40px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 0;
  }

  .stat {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    width: 100%;
  }

  .stat-divider { display: none; }

  .manifesto { padding: 72px 28px; }

  .features { padding: 72px 28px; }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .process { padding: 72px 28px; }

  .closing { padding: 80px 28px; }

  .footer { padding: 32px 28px; }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .timeline-step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
  }
}

/* ---- Pricing Page Responsive ---- */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .fees-grid { grid-template-columns: 1fr; }
  .pricing-header, .pricing-grid-section,
  .comparison-section, .fees-section,
  .faq-section, .pricing-cta-banner {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 640px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-header, .pricing-grid-section,
  .comparison-section, .fees-section,
  .faq-section, .pricing-cta-banner {
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .comparison-table { font-size: 0.78rem; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
}