/* AI Auto Reply landing — Apple-inspired */

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

:root {
  --black: #000000;
  --near-black: #1d1d1f;
  --light-gray: #f5f5f7;
  --white: #ffffff;
  --apple-blue: #0071e3;
  --link-blue: #0066cc;
  --bright-blue: #2997ff;
  --text-secondary: rgba(0, 0, 0, 0.8);
  --text-tertiary: rgba(0, 0, 0, 0.56);
  --text-on-dark: rgba(255, 255, 255, 0.72);
  --text-on-dark-tertiary: rgba(255, 255, 255, 0.48);
  --font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--near-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link-blue);
  text-decoration: none;
}

/* ═══════ Navigation ═══════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  height: 48px;
}

.nav-inner {
  max-width: 980px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.018em;
}

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

.nav-links a {
  font-family: var(--font-text);
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.01em;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-cta {
  color: var(--bright-blue) !important;
}

.nav-lang {
  font-size: 11px !important;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 980px;
  letter-spacing: 0.04em;
}

.nav-lang:hover {
  border-color: #ffffff;
  text-decoration: none !important;
}

.footer-lang {
  font-weight: 500;
}

/* ═══════ Section base ═══════ */
.section-light {
  background: var(--light-gray);
  color: var(--near-black);
}

.section-dark {
  background: var(--black);
  color: #ffffff;
}

.section-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 120px 24px;
  text-align: center;
}

.section-headline {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.005em;
  margin-bottom: 16px;
}

.section-sub {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.007em;
  color: var(--text-tertiary);
  max-width: 720px;
  margin: 0 auto 72px;
}

.section-dark .section-sub {
  color: var(--text-on-dark);
}

/* ═══════ Hero ═══════ */
.hero {
  background: var(--black);
  color: #ffffff;
  padding: 120px 24px 0;
  text-align: center;
  overflow: hidden;
}

.hero-inner {
  max-width: 980px;
  margin: 0 auto;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 24px;
}

.hero-sub {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.29;
  letter-spacing: 0.007em;
  color: var(--text-on-dark);
  max-width: 720px;
  margin: 0 auto 40px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 80px;
}

/* ─── Hero visual: mock sidepanel ─── */
.hero-visual {
  display: flex;
  justify-content: center;
  padding: 0 24px;
}

.hero-mock {
  width: 100%;
  max-width: 420px;
  background: var(--white);
  border-radius: 22px;
  box-shadow: 0 40px 80px -20px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  text-align: left;
  color: var(--near-black);
}

.hero-mock-panel {
  padding: 24px;
}

.hero-mock-header {
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 20px;
}

.hero-mock-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--near-black);
  letter-spacing: 0.012em;
}

.hero-mock-dot {
  display: inline-block;
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: var(--apple-blue);
}

.hero-mock-body {
  font-family: var(--font-text);
}

.hero-mock-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero-mock-label-spaced {
  margin-top: 20px;
}

.hero-mock-draft {
  padding: 14px;
  background: var(--light-gray);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--near-black);
}

.hero-mock-reply {
  padding: 14px;
  background: var(--light-gray);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--near-black);
  margin-bottom: 20px;
}

.hero-mock-btn {
  padding: 14px;
  background: var(--apple-blue);
  color: #ffffff;
  text-align: center;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.016em;
}

/* ═══════ Buttons ═══════ */
.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  border: none;
  border-radius: 980px;
  background: var(--apple-blue);
  color: #ffffff;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.022em;
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  background: #0077ed;
}

.btn-primary:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 4px;
}

.btn-secondary {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid var(--apple-blue);
  border-radius: 980px;
  background: transparent;
  color: var(--apple-blue);
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.022em;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--apple-blue);
  color: #ffffff;
}

.btn-secondary-disabled {
  opacity: 0.5;
  pointer-events: none;
}

.btn-link {
  display: inline-block;
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.022em;
  color: var(--bright-blue);
  text-decoration: none;
}

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

.section-light .btn-link {
  color: var(--link-blue);
}

/* ═══════ Features grid ═══════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}

.feature-card {
  background: var(--white);
  border-radius: 18px;
  padding: 40px 32px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  color: var(--apple-blue);
  margin-bottom: 24px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: 0.009em;
  color: var(--near-black);
  margin-bottom: 12px;
}

.feature-card p {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text-secondary);
}

/* ═══════ Steps ═══════ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  text-align: left;
}

.step-item {
  padding: 0;
}

.step-label {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.016em;
  color: var(--bright-blue);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.step-item h3 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: 0.007em;
  color: #ffffff;
  margin-bottom: 16px;
}

.step-item p {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  color: var(--text-on-dark);
}

/* ═══════ Pricing ═══════ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.pricing-card {
  background: var(--white);
  border-radius: 18px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  background: var(--near-black);
  color: #ffffff;
}

.pricing-badge {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.016em;
  color: var(--apple-blue);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pricing-card-featured .pricing-badge {
  color: var(--bright-blue);
}

.pricing-name {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.125;
  letter-spacing: 0.004em;
  color: var(--near-black);
  margin-bottom: 24px;
}

.pricing-card-featured .pricing-name {
  color: #ffffff;
}

.pricing-price {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  color: var(--near-black);
  margin-bottom: 8px;
}

.pricing-card-featured .pricing-price {
  color: #ffffff;
}

.pricing-unit {
  font-size: 24px;
  font-weight: 400;
  color: var(--text-tertiary);
}

.pricing-card-featured .pricing-unit {
  color: var(--text-on-dark);
}

.pricing-period {
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
}

.pricing-card-featured .pricing-period {
  color: var(--text-on-dark);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px 0;
  flex: 1;
}

.pricing-features li {
  font-family: var(--font-text);
  font-size: 15px;
  line-height: 1.47;
  letter-spacing: -0.016em;
  color: var(--text-secondary);
  padding: 10px 0 10px 28px;
  position: relative;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 10px;
  border-left: 2px solid var(--apple-blue);
  border-bottom: 2px solid var(--apple-blue);
  transform: rotate(-45deg);
}

.pricing-card-featured .pricing-features li {
  color: var(--text-on-dark);
}

.pricing-card-featured .pricing-features li::before {
  border-color: var(--bright-blue);
}

/* ═══════ CTA section ═══════ */
.section-cta .section-inner {
  padding: 120px 24px;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: 40px;
}

/* ═══════ Footer ═══════ */
.footer {
  background: var(--light-gray);
  padding: 48px 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--near-black);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--font-text);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--apple-blue);
}

.footer-copyright {
  font-family: var(--font-text);
  font-size: 12px;
  color: var(--text-tertiary);
  letter-spacing: -0.01em;
}

/* ═══════ Responsive ═══════ */
@media (max-width: 834px) {
  .section-inner {
    padding: 96px 24px;
  }

  .section-headline {
    font-size: 48px;
  }

  .section-sub {
    font-size: 24px;
  }

  .hero {
    padding: 96px 24px 0;
  }

  .hero-headline {
    font-size: 56px;
  }

  .hero-sub {
    font-size: 24px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }

  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .section-inner {
    padding: 72px 20px;
  }

  .section-headline {
    font-size: 36px;
  }

  .section-sub {
    font-size: 19px;
    margin-bottom: 48px;
  }

  .hero {
    padding: 72px 20px 0;
  }

  .hero-headline {
    font-size: 40px;
  }

  .hero-sub {
    font-size: 19px;
  }

  .hero-ctas {
    flex-direction: column;
    gap: 20px;
  }

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

  .feature-card {
    padding: 32px 24px;
  }

  .pricing-card {
    padding: 32px 24px;
  }

  .cta-actions {
    flex-direction: column;
    gap: 20px;
  }

  .nav-links a:not(.nav-cta) {
    display: none;
  }
}

/* ───── Privacy / Legal pages ───── */
.legal-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.legal-article {
  font-size: 16px;
  line-height: 1.7;
  color: #1d1d1f;
}

.legal-article h1 {
  font-size: 40px;
  font-weight: 600;
  letter-spacing: -0.018em;
  margin: 0 0 8px;
}

.legal-article h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.012em;
  margin: 48px 0 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.legal-article h3 {
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 8px;
}

.legal-article p {
  margin: 0 0 16px;
  color: rgba(0, 0, 0, 0.78);
}

.legal-article ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.legal-article li {
  margin: 0 0 8px;
  color: rgba(0, 0, 0, 0.78);
}

.legal-article a {
  color: #0066cc;
  text-decoration: none;
}

.legal-article a:hover {
  text-decoration: underline;
}

.legal-article code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.05);
}

.legal-meta {
  font-size: 13px;
  color: rgba(0, 0, 0, 0.5);
  margin: 0 0 32px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 16px;
  font-size: 14px;
}

.legal-table th,
.legal-table td {
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: rgba(0, 0, 0, 0.03);
  font-weight: 600;
}

.legal-back {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}
