/* PlatePal static pages — shared styles */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1F2937;
  background: #FFFFFF;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: #7C3AED; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  position: sticky; top: 0; z-index: 10;
}
.site-header .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: #1F2937;
}
.brand-mark {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  display: inline-flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 16px;
}
nav.primary { display: flex; gap: 18px; align-items: center; }
nav.primary a { color: #4B5563; font-weight: 600; font-size: 15px; }
nav.primary a:hover { color: #7C3AED; text-decoration: none; }
.btn-primary {
  background: #7C3AED; color: white !important; padding: 9px 18px;
  border-radius: 8px; font-weight: 700; font-size: 14px;
}
.btn-primary:hover { background: #5B21B6; text-decoration: none; }
.btn-ghost {
  background: transparent; color: #7C3AED; padding: 9px 18px;
  border-radius: 8px; font-weight: 700; font-size: 14px;
  border: 1px solid #DDD6FE;
}
.btn-ghost:hover { background: #F5F3FF; text-decoration: none; }

/* Mobile nav hide */
@media (max-width: 640px) {
  nav.primary a:not(.btn-primary):not(.btn-ghost) { display: none; }
  .brand { font-size: 18px; }
}

/* Hero */
.hero {
  background: linear-gradient(135deg, #F5F3FF 0%, #FFFFFF 100%);
  padding: 70px 0 56px;
  text-align: center;
}
.hero h1 {
  font-size: 48px; line-height: 1.08; font-weight: 900;
  color: #1F2937; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero h1 span { color: #7C3AED; }
.hero .lead {
  font-size: 19px; color: #4B5563;
  max-width: 620px; margin: 0 auto 30px;
}
.hero .cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.hero .btn-primary, .hero .btn-ghost {
  padding: 14px 28px; font-size: 16px;
}
@media (max-width: 640px) {
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 17px; }
}

/* Section */
section.block { padding: 64px 0; }
section.block.alt { background: #FAFAFA; }
section.block h2 {
  font-size: 32px; font-weight: 800; text-align: center;
  color: #1F2937; margin-bottom: 12px; letter-spacing: -0.01em;
}
section.block .sub {
  text-align: center; font-size: 17px; color: #6B7280;
  max-width: 620px; margin: 0 auto 40px;
}
@media (max-width: 640px) {
  section.block { padding: 44px 0; }
  section.block h2 { font-size: 26px; }
}

/* Example cards */
.examples {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  max-width: 720px; margin: 0 auto;
}
.example {
  background: #FEF3C7; border-radius: 14px; padding: 18px 20px;
  border: 1px solid #FDE68A;
}
.example .quote { font-size: 16px; color: #78350F; font-weight: 600; }
.example .label { font-size: 13px; color: #92400E; margin-top: 6px; opacity: 0.8; }
@media (max-width: 640px) { .examples { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: white; padding: 24px; border-radius: 12px;
  border: 1px solid #E5E7EB; text-align: center;
}
.step .num {
  width: 40px; height: 40px; border-radius: 50%;
  background: #7C3AED; color: white; font-weight: 800; font-size: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; color: #1F2937; }
.step p { color: #6B7280; font-size: 15px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }

/* Features grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  padding: 22px; background: white; border-radius: 12px;
  border: 1px solid #E5E7EB;
}
.feature .ico { font-size: 28px; margin-bottom: 10px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; color: #1F2937; }
.feature p { color: #6B7280; font-size: 14px; line-height: 1.5; }
@media (max-width: 880px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .features { grid-template-columns: 1fr; } }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid #E5E7EB; padding: 22px 0;
}
.faq-item h3 {
  font-size: 17px; color: #1F2937; margin-bottom: 8px;
}
.faq-item p { color: #4B5563; font-size: 15px; line-height: 1.6; }

/* Article (legal/info pages) */
.article {
  max-width: 760px; margin: 0 auto; padding: 56px 0;
}
.article h1 {
  font-size: 38px; font-weight: 800; color: #1F2937;
  margin-bottom: 10px; letter-spacing: -0.01em;
}
.article .meta {
  color: #6B7280; font-size: 14px; margin-bottom: 32px;
}
.article h2 {
  font-size: 22px; font-weight: 700; color: #1F2937;
  margin-top: 32px; margin-bottom: 12px;
}
.article h3 {
  font-size: 17px; font-weight: 700; color: #1F2937;
  margin-top: 22px; margin-bottom: 8px;
}
.article p { color: #374151; font-size: 16px; margin-bottom: 12px; }
.article ul { padding-left: 22px; margin-bottom: 14px; }
.article li { color: #374151; font-size: 16px; margin-bottom: 6px; }
.article strong { color: #1F2937; }
.article hr { border: 0; border-top: 1px solid #E5E7EB; margin: 32px 0; }

@media (max-width: 640px) {
  .article { padding: 36px 0; }
  .article h1 { font-size: 30px; }
  .article h2 { font-size: 19px; }
}

/* Footer */
.site-footer {
  background: #1F2937; color: #D1D5DB; padding: 44px 0 28px; margin-top: 40px;
}
.site-footer .row {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: 28px;
}
.site-footer .col { min-width: 160px; }
.site-footer h4 {
  font-size: 14px; color: #FFFFFF; text-transform: uppercase;
  letter-spacing: 0.05em; margin-bottom: 12px;
}
.site-footer a { color: #D1D5DB; display: block; padding: 4px 0; font-size: 14px; }
.site-footer a:hover { color: #FFFFFF; text-decoration: none; }
.site-footer .legal {
  border-top: 1px solid #374151; padding-top: 18px; font-size: 13px; color: #9CA3AF;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* Utility */
.cta-card {
  background: linear-gradient(135deg, #7C3AED 0%, #5B21B6 100%);
  color: white; padding: 40px; border-radius: 16px; text-align: center;
  margin: 40px 0;
}
.cta-card h2 { color: white; font-size: 28px; margin-bottom: 10px; }
.cta-card p { color: #EDE9FE; font-size: 17px; margin-bottom: 22px; }
.cta-card .btn-primary {
  background: white; color: #7C3AED !important;
}
.cta-card .btn-primary:hover { background: #F5F3FF; }
