/* =========================================================
   PromptForge AI — Global Stylesheet
   Pure CSS, mobile-first. Organized in clear sections:
   1. Design tokens (CSS variables)
   2. Reset & base
   3. Layout helpers
   4. Buttons
   5. Header / navigation
   6. Footer
   7. Hero
   8. Sections & cards
   9. Feature & checklists
   10. Pricing
   11. FAQ accordion
   12. Forms
   13. Legal / prose pages
   14. Utilities
   15. Responsive (min-width breakpoints)
   ========================================================= */

/* ============ 1. DESIGN TOKENS ============ */
:root {
  /* Brand colors: deep blue, soft purple, white */
  --blue:        #1e3a8a;   /* deep blue — primary brand */
  --blue-600:    #2547b8;
  --blue-500:    #3b5bdb;   /* interactive blue */
  --purple:      #7c3aed;   /* soft purple — accent */
  --purple-400:  #a78bfa;   /* light purple */

  /* Neutrals / surfaces */
  --ink:         #0f172a;   /* main text */
  --slate:       #475569;   /* secondary text */
  --muted:       #6b7280;   /* tertiary text */
  --line:        #e6e8f0;   /* borders */
  --surface:     #ffffff;   /* cards */
  --paper:       #f7f8fc;   /* page background */
  --tint:        #f1f3fb;   /* soft section fill */

  /* Gradients */
  --grad: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
  --grad-soft: linear-gradient(135deg, #eef1fe 0%, #f4eefe 100%);

  /* Effects */
  --radius:      14px;
  --radius-lg:   22px;
  --radius-pill: 999px;
  --shadow-sm:   0 1px 2px rgba(15, 23, 42, .06);
  --shadow:      0 8px 24px rgba(30, 41, 89, .08);
  --shadow-lg:   0 20px 48px rgba(30, 41, 89, .14);

  /* Typography */
  --font-head: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Spacing scale */
  --container: 1120px;
}

/* ============ 2. RESET & BASE ============ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--blue-500); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--purple); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.2;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; color: var(--slate); }

ul { margin: 0 0 1rem; padding-left: 1.2rem; }

:focus-visible {
  outline: 3px solid var(--purple-400);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============ 3. LAYOUT HELPERS ============ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section { padding: 64px 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.section-head p { font-size: 1.05rem; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  background: #f1ecfe;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

/* ============ 4. BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(124, 58, 237, .28);
}
.btn-primary:hover { color: #fff; box-shadow: 0 12px 26px rgba(124, 58, 237, .38); transform: translateY(-1px); }

.btn-secondary {
  background: #fff;
  color: var(--blue);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { color: var(--purple); border-color: var(--purple-400); }

.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { color: var(--purple); }

.btn-sm { padding: 10px 18px; font-size: .92rem; }
.btn-lg { padding: 17px 34px; font-size: 1.08rem; }
.btn-block { display: flex; width: 100%; }

/* ============ 5. HEADER / NAV ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { width: 32px; height: 32px; }
.brand-name { font-family: var(--font-head); font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; }
.brand-accent { color: var(--purple); }

.primary-nav {
  position: fixed;
  inset: 68px 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  gap: 4px;
  padding: 14px 20px 22px;
  box-shadow: var(--shadow);
  display: none;
}
.primary-nav.open { display: flex; }
.primary-nav a {
  font-family: var(--font-head);
  font-weight: 600;
  color: var(--slate);
  padding: 12px 6px;
  border-radius: 10px;
}
.primary-nav a:hover { color: var(--blue); background: var(--tint); }
.primary-nav a.active { color: var(--blue); }
.nav-cta { color: #fff !important; margin-top: 8px; text-align: center; }
.nav-cta:hover { color: #fff !important; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 6. FOOTER ============ */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 56px 20px 36px;
}
.footer-brand p { font-size: .94rem; max-width: 320px; }
.footer-col h4 {
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--slate); font-size: .95rem; }
.footer-col a:hover { color: var(--purple); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .container {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-block: 18px;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: var(--muted); }
.footer-mini { font-size: .8rem; }

/* ============ 7. HERO ============ */
.hero { position: relative; overflow: hidden; background: var(--grad-soft); }
.hero::after {
  content: "";
  position: absolute;
  width: 520px; height: 520px;
  right: -160px; top: -200px;
  background: radial-gradient(closest-side, rgba(124,58,237,.18), transparent);
  pointer-events: none;
}
.hero-inner { padding: 64px 0 72px; position: relative; z-index: 1; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero .lead { font-size: 1.15rem; color: var(--slate); max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 18px;
  margin-top: 28px; font-size: .9rem; color: var(--slate);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-art {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}

/* small product mock inside hero */
.mock-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.mock-row:last-child { border-bottom: 0; }
.mock-ic {
  width: 38px; height: 38px; flex: none;
  border-radius: 10px;
  background: var(--grad-soft);
  display: grid; place-items: center;
  color: var(--purple);
}
.mock-tx b { display: block; font-family: var(--font-head); font-size: .95rem; color: var(--ink); }
.mock-tx span { font-size: .82rem; color: var(--muted); }

/* ============ 8. SECTIONS & CARDS ============ */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #dcd6f7; }
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: .96rem; }
.card-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--grad-soft);
  color: var(--purple);
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.card-icon svg { width: 26px; height: 26px; }

.audience-card .card-icon { background: #eaf0ff; color: var(--blue-500); }

/* ============ 9. FEATURE & CHECKLISTS ============ */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li {
  position: relative;
  padding-left: 34px;
  color: var(--ink);
  font-size: 1rem;
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 15px no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 15px no-repeat;
}

/* two-column generic split */
.split { display: grid; gap: 40px; align-items: center; }

/* ============ 10. PRICING ============ */
.pricing-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: 460px;
  margin-inline: auto;
}
.price-row { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 4px; }
.price { font-family: var(--font-head); font-size: 3rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price-note { color: var(--muted); font-size: .92rem; }
.price-tag {
  display: inline-block; font-size: .8rem; font-weight: 700;
  color: var(--purple); background: #f1ecfe;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.pricing-card .divider { height: 1px; background: var(--line); margin: 22px 0; }

/* ============ 11. FAQ ACCORDION ============ */
.faq { max-width: 760px; margin-inline: auto; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q .chev { flex: none; transition: transform .2s ease; color: var(--purple); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease;
}
.faq-a-inner { padding: 0 20px 18px; color: var(--slate); }
.faq-a p { margin: 0; }

/* ============ 12. FORMS ============ */
.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .92rem;
  color: var(--ink);
  margin-bottom: 7px;
}
.field input,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--purple-400);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, .18);
}
.field .error { color: #c0392b; font-size: .82rem; margin-top: 6px; display: none; }
.field.invalid input,
.field.invalid textarea { border-color: #e0816f; }
.field.invalid .error { display: block; }

.form-note {
  display: none;
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #eef7f0;
  border: 1px solid #cfe8d6;
  color: #226b3a;
  font-size: .95rem;
}
.form-note.show { display: block; }

.contact-aside {
  background: var(--grad-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.contact-aside h3 { margin-bottom: 6px; }
.contact-line { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; }
.contact-line .ic {
  width: 40px; height: 40px; flex: none; border-radius: 11px;
  background: #fff; color: var(--purple);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.contact-line b { font-family: var(--font-head); display: block; color: var(--ink); font-size: .95rem; }
.contact-line span { font-size: .92rem; color: var(--slate); }

/* ============ 13. LEGAL / PROSE PAGES ============ */
.page-hero { background: var(--grad-soft); border-bottom: 1px solid var(--line); }
.page-hero .container { padding-block: 52px; }
.page-hero h1 { margin-bottom: 8px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.page-hero p { margin: 0; color: var(--slate); }
.updated { font-size: .85rem; color: var(--muted); margin-top: 10px; }

.prose { max-width: 780px; margin-inline: auto; }
.prose h2 { font-size: 1.4rem; margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 22px; }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 600; }
.callout {
  background: var(--tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 22px 0;
}
.callout p { margin: 0; color: var(--ink); }

/* ============ 14. UTILITIES ============ */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--slate); }
.stack-sm > * + * { margin-top: 10px; }

/* CTA band */
.cta-band {
  background: var(--grad);
  border-radius: var(--radius-lg);
  color: #fff;
  padding: 48px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 560px; margin-inline: auto; }
.cta-band .btn-secondary { background: #fff; color: var(--blue); border-color: transparent; }
.cta-band .btn-secondary:hover { color: var(--purple); }

/* success page */
.success-wrap { max-width: 620px; margin-inline: auto; text-align: center; }
.success-badge {
  width: 84px; height: 84px; margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--grad);
  display: grid; place-items: center;
  box-shadow: 0 16px 36px rgba(124,58,237,.32);
}
.success-badge svg { width: 42px; height: 42px; color: #fff; }
.order-box {
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 20px 22px;
  margin: 28px 0;
}
.order-box .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: .95rem; }
.order-box .row + .row { border-top: 1px dashed var(--line); }
.order-box .row span:first-child { color: var(--muted); }
.order-box .row span:last-child { font-family: var(--font-head); font-weight: 600; color: var(--ink); }

/* ============ 15. RESPONSIVE ============ */
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; padding-inline: 0; }
  .footer-bottom .container { flex-direction: row; justify-content: space-between; align-items: center; }
  .contact-grid { grid-template-columns: 1.3fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .product-grid { grid-template-columns: 1.1fr .9fr; align-items: start; }

  /* desktop nav: reset the mobile drawer */
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
    inset: auto;
  }
  .primary-nav a { padding: 9px 14px; }
  .nav-cta { margin-top: 0; margin-left: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
