/* ─────────────────────────────────────────────────────────────
   Pactori Marketing — styles
   pactori.app  |  system-font stack, no external deps
   ───────────────────────────────────────────────────────────── */

/* 1. Custom Properties
   ─────────────────────────────────────────────────────────── */
:root {
  --brand:       #1d4ed8;
  --brand-dark:  #1e40af;
  --brand-light: #dbeafe;

  --bg:           #ffffff;
  --surface:      #f8fafc;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --border:       #e2e8f0;
  --success:      #059669;

  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
          Helvetica, Arial, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  --radius:    8px;
  --radius-lg: 12px;

  --max-w:       960px;
  --max-w-prose: 680px;

  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
}

/* 2. Reset
   ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:hover { color: var(--brand-dark); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 3. Skip link
   ─────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: var(--sp-4);
  background: var(--brand);
  color: #fff;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: var(--sp-4); }

/* 4. Layout
   ─────────────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section      { padding: var(--sp-16) 0; }
.section--alt { background: var(--surface); }

.section-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-12);
  text-align: center;
}
.section-title--sm {
  font-size: 1.25rem;
  text-align: left;
  margin-bottom: var(--sp-4);
}

/* 5. Buttons
   ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-dark);
  color: #fff;
  box-shadow: 0 4px 12px rgb(29 78 216 / 0.35);
}
.btn--primary:active { transform: translateY(1px); }

.btn--sm  { padding: var(--sp-2) var(--sp-4); font-size: 0.875rem; }
.btn--lg  { padding: var(--sp-3) var(--sp-8); font-size: 1.0625rem; }

/* 6. Header
   ─────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-4);
  padding-bottom: var(--sp-4);
}

/* 7. Logo
   ─────────────────────────────────────────────────────────── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  color: var(--text);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  border-radius: var(--radius);
  line-height: 1;
  flex-shrink: 0;
}

.logo-name {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

/* 8. Hero
   ─────────────────────────────────────────────────────────── */
.hero {
  padding: var(--sp-24) 0 var(--sp-16);
  text-align: center;
}
.hero-inner {
  max-width: var(--max-w-prose);
}

.hero-badge {
  display: inline-block;
  padding: var(--sp-1) var(--sp-3);
  background: var(--brand-light);
  color: var(--brand-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: var(--sp-6);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--sp-6);
}

.hero-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions { margin-bottom: var(--sp-4); }

/* 9. Steps
   ─────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  max-width: var(--max-w-prose);
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  margin-top: 0.125rem;
}

.step-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--sp-2);
  letter-spacing: -0.01em;
}

.step-content p { color: var(--text-muted); }

/* 10. Tiers
   ─────────────────────────────────────────────────────────── */
.tiers {
  display: grid;
  gap: var(--sp-6);
}

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

.tier {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-8);
  background: var(--bg);
}

.tier--paid {
  border-color: var(--brand);
  box-shadow: 0 0 0 1px var(--brand);
}

.tier-header { margin-bottom: var(--sp-6); }

.tier-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--sp-1);
  letter-spacing: -0.01em;
}

.tier-price { font-size: 0.875rem; color: var(--text-muted); }
.tier--paid .tier-price { color: var(--brand); font-weight: 600; }

.tier-features {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.tier-features li {
  padding-left: var(--sp-6);
  position: relative;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.tier-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.tier--paid .tier-features li { color: var(--text); }

/* 11. Formats
   ─────────────────────────────────────────────────────────── */
.formats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  justify-content: center;
  margin-bottom: var(--sp-6);
}

.format {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 0.9375rem;
}

.format-icon {
  font-size: 0.6875rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--brand);
  background: var(--brand-light);
  padding: 0.125rem var(--sp-2);
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.formats-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: var(--max-w-prose);
  margin: 0 auto;
}

/* 12. Disclaimer
   ─────────────────────────────────────────────────────────── */
.disclaimer-inner {
  max-width: var(--max-w-prose);
}

.disclaimer-inner p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* 13. CTA
   ─────────────────────────────────────────────────────────── */
.cta-section { text-align: center; }

.cta-inner {
  max-width: var(--max-w-prose);
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-4);
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
}

/* 14. Footer
   ─────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--sp-8) 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-nav {
  display: flex;
  gap: var(--sp-6);
}

.footer-nav a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--text-muted);
}
.footer-nav a:hover { color: var(--text); }

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  width: 100%;
}

/* 15. Responsive
   ─────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .btn--lg {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .footer-copy { margin-top: var(--sp-2); }
}
