/* PerfSpot — brand tokens from MGS/content/company/PerfSpot_Brand.md */
:root {
  --void:       #1C1C2E;
  --indigo:     #3D2B8E;
  --amethyst:   #7C5CBF;
  --ember:      #E8624A;
  --parchment:  #F7F4EF;

  --bg:         #FFFFFF;
  --surface:    var(--parchment);
  --text:       var(--void);
  --text-muted: #4A5578;
  --text-faint: #6B7280;
  --border:     #E2E4E9;
  --link:       var(--indigo);
  --accent:     var(--indigo);

  --maxw: 720px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:         #14141F;
    --surface:    #1C1C2E;
    --text:       var(--parchment);
    --text-muted: #B9BCCB;
    --text-faint: #8A8FA3;
    --border:     #2C2C42;
    --link:       var(--amethyst);
    --accent:     var(--amethyst);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }

img, svg { max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  padding: 40px 0 8px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}
.site-header .logo { display: inline-flex; }
.site-header .logo img { height: 34px; width: auto; }

/* Hamburger menu */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.menu-btn:hover { background: var(--surface); }
.site-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 34px rgba(20, 20, 31, 0.14);
}
.site-menu[hidden] { display: none; }
.site-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
}
.site-menu a:hover { background: var(--surface); text-decoration: none; }
.logo-light { display: block; }
.logo-dark  { display: none; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none; }
  .logo-dark  { display: block; }
}

/* Hero / main */
main { padding: 48px 0 72px; }

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}

h1 {
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1.12;
  margin: 0 0 24px;
  color: var(--text);
}

.lead {
  font-size: 19px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 22px;
  max-width: 40ch;
}

.body-text { color: var(--text-muted); margin: 0 0 18px; }

section.block { margin-top: 56px; }

h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  color: var(--text);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  background: var(--bg);
}
.card h3 { font-size: 16px; font-weight: 500; margin: 0 0 6px; color: var(--text); }
.card p  { font-size: 14px; margin: 0; color: var(--text-faint); line-height: 1.6; }

/* Contact button */
.btn {
  display: inline-flex;
  align-items: center;
  margin-top: 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #F7F4EF;
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.9; text-decoration: none; }

/* Contact form embed (AcornReply iframe) */
.contact-embed {
  margin-top: 24px;
  max-width: 520px;
}
.contact-embed iframe { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 56px;
  color: var(--text-faint);
  font-size: 13px;
  line-height: 1.7;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.site-footer .footer-logo { display: inline-flex; }
.site-footer .footer-logo img { height: 26px; width: auto; }
.footer-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.footer-nav a { color: var(--text-faint); font-size: 13px; }
.footer-nav a:hover { color: var(--link); }
.footer-nav .sep { color: var(--border); font-size: 13px; user-select: none; }

/* Legal pages */
.legal h1 { font-size: 32px; letter-spacing: -1px; }
.legal h2 { margin-top: 36px; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 20px; }
.legal .updated { color: var(--text-faint); font-size: 14px; margin-top: -12px; margin-bottom: 24px; }
.legal-note {
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  padding: 16px 18px;
  margin: 0 0 36px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}
.legal-note strong { color: var(--text); font-weight: 500; }

@media (max-width: 520px) {
  h1 { font-size: 34px; }
  .lead { font-size: 17px; }
}
