/* ============================================
   Pact AI — Apple-inspired Styles
   ============================================ */

:root {
  --color-text: #1d1d1f;
  --color-text-secondary: #6e6e73;
  --color-text-tertiary: #86868b;
  --color-link: #0066cc;
  --color-link-hover: #0077ed;
  --color-bg: #ffffff;
  --color-bg-secondary: #fbfbfd;
  --color-bg-tertiary: #f5f5f7;
  --color-bg-dark: #000000;
  --color-border: #d2d2d7;
  --color-border-light: #e8e8ed;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max-width: 980px;
  --max-width-wide: 1200px;
  --header-height: 48px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-link-hover);
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ---- Typography ---- */

h1, h2, h3, h4 {
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.08349;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.3125rem;
  line-height: 1.19048;
  letter-spacing: -0.015em;
}

p {
  color: var(--color-text-secondary);
}

.lead {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  line-height: 1.47059;
  letter-spacing: -0.015em;
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* ---- Layout ---- */

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

.container-wide {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 22px;
}

.section {
  padding: 80px 0;
}

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

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}

.section-header p {
  margin-top: 12px;
  font-size: 1.1875rem;
  line-height: 1.42105;
  letter-spacing: -0.015em;
}

/* ---- Header / Nav ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  height: var(--header-height);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 22px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover {
  color: var(--color-text);
  text-decoration: none;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

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

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text);
  opacity: 0.88;
  text-decoration: none;
  transition: opacity 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--color-text);
  text-decoration: none;
}

.nav-links a.active {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

/* ---- Buttons & Links ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  font-family: var(--font-sans);
  border-radius: 980px;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  text-decoration: none;
}

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

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

.btn-secondary {
  background: transparent;
  color: var(--color-link);
  border: 1px solid var(--color-link);
}

.btn-secondary:hover {
  background: var(--color-link);
  color: #fff;
}

.btn-lg {
  padding: 12px 24px;
  font-size: 17px;
}

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  color: var(--color-link);
  text-decoration: none;
}

.link-more:hover {
  text-decoration: underline;
}

.link-more::after {
  content: "›";
  font-size: 1.2em;
  line-height: 1;
}

/* ---- Hero ---- */

.hero {
  padding: 72px 0 88px;
  background: var(--color-bg);
  text-align: center;
}

.hero-content {
  max-width: 780px;
  margin: 0 auto;
}

.hero-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 24px;
}

.hero-eyebrow {
  font-size: 17px;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.hero h1 {
  margin-bottom: 12px;
}

.hero .lead {
  max-width: 580px;
  margin: 0 auto 28px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-note {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  color: var(--color-text-tertiary);
}

/* ---- Spotlight Sections (Apple-style) ---- */

.spotlight {
  padding: 80px 0;
  text-align: center;
  background: var(--color-bg);
}

.spotlight-alt {
  background: var(--color-bg-secondary);
}

.spotlight-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 22px;
}

.spotlight h2 {
  margin-bottom: 12px;
}

.spotlight p {
  font-size: 1.1875rem;
  line-height: 1.42105;
  letter-spacing: -0.015em;
  max-width: 520px;
  margin: 0 auto;
}

.spotlight-divider {
  width: 100%;
  max-width: var(--max-width-wide);
  margin: 0 auto;
  border: none;
  border-top: 1px solid var(--color-border-light);
}

/* ---- Features Grid ---- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.feature-card {
  padding: 40px 32px;
  text-align: center;
  background: transparent;
  border: none;
}

.feature-card + .feature-card {
  border-left: 1px solid var(--color-border-light);
}

.feature-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

.feature-icon svg {
  width: 28px;
  height: 28px;
  stroke-width: 1.25;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1.0625rem;
}

.feature-card p {
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
  color: var(--color-text-secondary);
}

/* ---- Privacy Section ---- */

.privacy-section {
  background: var(--color-bg-dark);
  color: #f5f5f7;
  padding: 88px 0;
}

.privacy-section h2 {
  color: #f5f5f7;
}

.privacy-section .section-header p {
  color: #a1a1a6;
}

.privacy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 64px;
  max-width: 820px;
  margin: 0 auto;
}

.privacy-item {
  text-align: center;
  padding: 0;
  background: none;
  border: none;
}

.privacy-item-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f5f5f7;
  background: none;
}

.privacy-item-icon svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.25;
}

.privacy-item h3 {
  color: #f5f5f7;
  font-size: 1.1875rem;
  margin-bottom: 8px;
}

.privacy-item p {
  color: #a1a1a6;
  font-size: 14px;
  line-height: 1.42859;
  letter-spacing: -0.016em;
}

/* ---- CTA Section ---- */

.cta-section {
  padding: 88px 0;
  text-align: center;
  background: var(--color-bg-secondary);
}

.cta-section h2 {
  margin-bottom: 12px;
}

.cta-section p {
  font-size: 1.1875rem;
  line-height: 1.42105;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section p + .btn,
.cta-section .lead + .btn {
  margin-top: 8px;
}

/* Legacy cta-banner support */
.cta-banner {
  text-align: center;
  padding: 0;
  background: none;
  border-radius: 0;
  color: inherit;
  margin: 0;
  max-width: none;
}

.cta-banner h2 {
  color: var(--color-text);
  margin-bottom: 12px;
}

.cta-banner p {
  color: var(--color-text-secondary);
  margin-bottom: 24px;
  font-size: 1.1875rem;
}

/* ---- Footer ---- */

.site-footer {
  background: var(--color-bg-tertiary);
  color: var(--color-text-secondary);
  padding: 20px 0 12px;
  margin-top: 0;
  font-size: 12px;
  line-height: 1.33337;
  letter-spacing: -0.01em;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}

.footer-brand .logo {
  color: var(--color-text);
  margin-bottom: 8px;
  font-size: 14px;
}

.footer-brand .logo-img {
  width: 24px;
  height: 24px;
  filter: none;
}

.footer-tagline {
  font-size: 12px;
  line-height: 1.33337;
  max-width: 260px;
  color: var(--color-text-secondary);
}

.footer-heading {
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  text-transform: none;
}

.footer-links li {
  margin-bottom: 6px;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 12px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-text);
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 12px;
  border-top: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.footer-legal-note {
  font-size: 11px;
  color: var(--color-text-tertiary);
  font-style: normal;
  max-width: 420px;
  text-align: right;
}

/* ---- Legal Pages ---- */

.page-header {
  padding: 64px 0 48px;
  background: var(--color-bg-secondary);
  border-bottom: none;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 8px;
}

.page-header .effective-date {
  font-size: 14px;
  color: var(--color-text-tertiary);
}

.legal-content {
  max-width: 692px;
  margin: 0 auto;
  padding: 48px 22px 80px;
}

.legal-content h2 {
  font-size: 1.3125rem;
  margin: 40px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  margin-bottom: 16px;
  line-height: 1.47059;
  font-size: 17px;
  letter-spacing: -0.022em;
}

.legal-content ul {
  list-style: disc;
  margin: 0 0 16px 24px;
  color: var(--color-text-secondary);
}

.legal-content ul li {
  margin-bottom: 8px;
  line-height: 1.47059;
  font-size: 17px;
}

.legal-notice {
  background: var(--color-bg-tertiary);
  border: none;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 32px;
  font-size: 14px;
  color: var(--color-text-secondary);
  line-height: 1.42859;
}

.legal-notice strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-text);
  font-weight: 600;
}

/* ---- Contact Page ---- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.contact-info p {
  margin-bottom: 24px;
  font-size: 17px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 400;
  color: var(--color-link);
  text-decoration: none;
}

.contact-email:hover {
  text-decoration: underline;
}

.contact-email svg {
  width: 18px;
  height: 18px;
}

.contact-form {
  background: var(--color-bg);
  border: 1px solid var(--color-border-light);
  border-radius: 18px;
  padding: 32px;
  box-shadow: none;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
  letter-spacing: -0.016em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 17px;
  font-family: var(--font-sans);
  letter-spacing: -0.022em;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-link);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.form-success {
  display: none;
  background: var(--color-bg-tertiary);
  border: none;
  color: var(--color-text);
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 14px;
}

.form-success.visible {
  display: block;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card + .feature-card {
    border-left: none;
    border-top: 1px solid var(--color-border-light);
  }

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

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(251, 251, 253, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 22px;
    font-size: 14px;
    border-bottom: none;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-legal-note {
    text-align: left;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .section {
    padding: 64px 0;
  }

  .spotlight {
    padding: 64px 0;
  }

  .privacy-section {
    padding: 64px 0;
  }

  .cta-section {
    padding: 64px 0;
  }
}
