/* ============================================
   PromptPal – Product Site Stylesheet
   Aesthetic: Pixelwright Digital family
   (Cormorant Garamond / Crimson Text / Inter)
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --accent:        #5B6ABF;
  --accent-light:  #7A86D4;
  --accent-dark:   #434F94;
  --gradient-brand: linear-gradient(135deg, #5B6ABF, #7A86D4);

  --paper-light:   #FAF7F2;
  --paper-mid:     #F3EEE6;
  --paper-dark:    #EBE4D8;
  --surface:       #FFFFFF;

  --text-primary:   #2A2520;
  --text-secondary: #5C5347;
  --text-muted:     #8A7F74;

  --gold:   #C9A227;
  --sepia:  #8B7355;

  --velvet-top:    #0F0F22;
  --velvet-mid:    #161430;
  --velvet-bottom: #0B0B16;
  --text-on-dark:       rgba(255,255,255,0.92);
  --text-on-dark-muted: rgba(255,255,255,0.65);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-prose:   'Crimson Text', Georgia, serif;
  --font-ui:      'Inter', -apple-system, sans-serif;

  --nav-height: 64px;
  --max-width:  1060px;
  --radius:     12px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-prose);
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--text-primary);
  background: var(--paper-light);
  overflow-x: hidden;
}

img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

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

/* ---------- Navigation ---------- */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(250, 247, 242, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 100;
  display: flex;
  align-items: center;
}

.top-nav-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.15s;
}

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

/* ---------- Hero ---------- */
.hero {
  padding-top: calc(var(--nav-height) + 72px);
  padding-bottom: 80px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(91,106,191,0.06) 0%, transparent 60%),
    linear-gradient(180deg, var(--paper-light), var(--paper-mid));
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

.hero-card {
  padding-top: 8px;
}

.kicker {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero-card h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: 18px;
}

.hero-copy {
  font-family: var(--font-prose);
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 28px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 13px 28px;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  border: 1.5px solid transparent;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  border-color: transparent;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91,106,191,0.28);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border-color: rgba(0,0,0,0.14);
}
.btn-secondary:hover {
  border-color: var(--accent);
  background: rgba(91,106,191,0.05);
}

/* Panel (aside) */
.panel {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.panel h2 {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.panel ul {
  list-style: none;
}

.panel li {
  position: relative;
  padding: 8px 0 8px 20px;
  font-family: var(--font-ui);
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.panel li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* ---------- Features Section ---------- */
.section {
  padding: 88px 0;
  background: linear-gradient(180deg, var(--paper-mid), var(--paper-dark));
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  font-family: var(--font-prose);
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 48px;
  text-align: center;
}

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

.feature {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature p {
  font-family: var(--font-prose);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ---------- Legal Pages ---------- */
.legal-main {
  padding-top: calc(var(--nav-height) + 56px);
  padding-bottom: 80px;
  background: linear-gradient(180deg, var(--paper-light), var(--paper-mid));
  min-height: 70vh;
  display: flex;
  justify-content: center;
}

.legal-card {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 36px;
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.legal-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.legal-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 8px;
}

.legal-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 22px;
  margin-bottom: 6px;
}

.legal-card p {
  font-family: var(--font-prose);
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legal-card ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 12px;
}

.legal-card li {
  font-family: var(--font-prose);
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-secondary);
  padding: 3px 0;
}

.legal-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.legal-card a:hover {
  color: var(--accent-dark);
}

.legal-card strong {
  color: var(--text-primary);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--velvet-bottom);
  color: var(--text-on-dark-muted);
  padding: 36px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner span,
.footer-inner a {
  font-family: var(--font-ui);
  font-size: 0.8125rem;
}

.footer-inner a {
  color: var(--text-on-dark-muted);
  transition: color 0.15s;
}

.footer-inner a:hover {
  color: var(--text-on-dark);
}

.footer-links {
  display: flex;
  gap: 24px;
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ---------- Tablet (<=1024px) ---------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .panel {
    max-width: 480px;
  }
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Mobile (<=640px) ---------- */
@media (max-width: 640px) {
  :root {
    --nav-height: 56px;
  }

  .nav-links {
    gap: 16px;
  }
  .nav-links a {
    font-size: 0.8125rem;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 56px;
  }

  .hero-card h1 {
    font-size: 2rem;
  }

  .cta-row {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 56px 0;
  }

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

  .legal-card {
    padding: 28px 20px;
  }

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