/* ============================================================
   Prompt Pros LLC — styles.css
   Brand constants (easy to change):
   --accent: restrained green-teal (not purple AI cliché)
   Email/domain also live in js/config.js
   ============================================================ */

:root {
  --bg: #f7f6f2;
  --bg-elevated: #ffffff;
  --bg-muted: #ebe8e0;
  --ink: #14201c;
  --ink-muted: #4a5a54;
  --ink-faint: #6b7a74;
  --accent: #2d6a56;
  --accent-hover: #245544;
  --accent-soft: #dcebe4;
  --border: #d4d0c6;
  --border-strong: #b8b3a6;
  --focus: #1a6b4f;
  --danger-soft: #f3e9e4;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(20, 32, 28, 0.06), 0 8px 24px rgba(20, 32, 28, 0.06);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --max: 1100px;
  --header-h: 68px;
  --space-xs: 0.35rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.5rem;
  --space-2xl: 5rem;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.75em;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4.5vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li + li { margin-top: 0.35em; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--ink); }

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--bg-muted);
}

.site-nav a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle-bars {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: currentColor;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

@media (max-width: 820px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1rem 1rem;
    gap: 0.25rem;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open { display: flex; }

  .site-nav a {
    padding: 0.75rem 0.85rem;
  }

  body.nav-open { overflow: hidden; }
}

/* ---------- Main ---------- */
main {
  flex: 1;
}

/* ---------- Hero ---------- */
.hero {
  padding: var(--space-xl) 0 var(--space-2xl);
  position: relative;
}

.hero-grid {
  display: grid;
  gap: var(--space-lg);
  align-items: center;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-xl);
  }
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.hero h1 {
  margin-bottom: 0.6em;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-muted);
  max-width: 38rem;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

.hero-card h2 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.hero-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hero-card li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-top: 1px solid var(--border);
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.hero-card li:first-child { border-top: none; padding-top: 0; }

.hero-card .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.3;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  color: var(--ink);
}

/* ---------- Sections ---------- */
.section {
  padding: var(--space-xl) 0;
}

.section-alt {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  max-width: 40rem;
  margin-bottom: var(--space-lg);
}

.section-header p {
  color: var(--ink-muted);
}

/* ---------- Cards / grids ---------- */
.grid-2 {
  display: grid;
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 780px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-md) var(--space-md) var(--space-lg);
  height: 100%;
}

.section-alt .card {
  background: var(--bg);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.card h3 { margin-bottom: 0.45em; }

.card p {
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.card a.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.card a.card-link:hover {
  text-decoration: underline;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  gap: var(--space-md);
  counter-reset: step;
}

@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  position: relative;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.section-alt .step {
  background: var(--bg);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4em;
}

.step p {
  color: var(--ink-muted);
  font-size: 0.95rem;
}

/* ---------- Audience / pills ---------- */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.pill {
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  color: #e8f0ed;
  padding: var(--space-xl) 0;
  text-align: center;
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.5em;
}

.cta-band p {
  color: #b8c9c2;
  max-width: 36rem;
  margin: 0 auto 1.5rem;
}

.cta-band .btn-primary {
  background: #3d9b7a;
}

.cta-band .btn-primary:hover {
  background: #348a6b;
}

.cta-band .btn-secondary {
  color: #e8f0ed;
  border-color: #4a5f57;
}

.cta-band .btn-secondary:hover {
  background: #1c2e28;
  color: #fff;
}

.cta-band .hero-actions {
  justify-content: center;
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--bg-muted) 0%, var(--bg) 100%);
}

.page-hero h1 { margin-bottom: 0.4em; }

.page-hero .lead {
  margin-bottom: 0;
}

/* ---------- Prose (legal / about) ---------- */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2em;
  font-size: 1.35rem;
  padding-top: 0.5em;
  border-top: 1px solid var(--border);
}

.prose h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.prose h3 {
  margin-top: 1.5em;
  font-size: 1.1rem;
}

.prose .meta {
  color: var(--ink-faint);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}

.prose ul li {
  color: var(--ink);
}

.contact-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: var(--shadow);
}

.contact-block h2 {
  font-size: 1.25rem;
  margin-bottom: 0.5em;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
  margin: 0;
  display: grid;
  gap: 0.2rem;
}

.contact-list li:first-child { border-top: none; }

.contact-list strong {
  font-size: 0.9rem;
  color: var(--ink);
}

.contact-list span,
.contact-list a {
  font-size: 1rem;
}

.email-large {
  font-size: 1.25rem !important;
  font-weight: 650;
  word-break: break-all;
}

/* ---------- Service detail ---------- */
.service-detail {
  display: grid;
  gap: var(--space-lg);
}

.service-block {
  display: grid;
  gap: var(--space-md);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--border);
}

.service-block:last-child { border-bottom: none; }

@media (min-width: 720px) {
  .service-block {
    grid-template-columns: 200px 1fr;
    gap: var(--space-lg);
  }
}

.service-block .label {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
}

.service-block p,
.service-block ul {
  color: var(--ink-muted);
  margin-bottom: 0.75em;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #0f1a17;
  color: #a8b8b2;
  padding: var(--space-xl) 0 var(--space-lg);
  margin-top: auto;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer a {
  color: #c5d4ce;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.footer-brand a {
  color: #fff;
  text-decoration: none;
}

.site-footer h3 {
  color: #e8f0ed;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li { margin: 0 0 0.4rem; }

.footer-ai-disclaimer {
  background: #162420;
  border: 1px solid #2a3d36;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: var(--space-lg);
  font-size: 0.85rem;
  line-height: 1.5;
  color: #9aada5;
}

.footer-ai-disclaimer a {
  color: #7ec4a8;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid #2a3d36;
  padding-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #7a8e86;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

/* ---------- Utilities ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-muted { color: var(--ink-muted); }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
