/* ============================================================
   Efytab — Shared Stylesheet
   ============================================================ */

/* ---- Custom Properties ------------------------------------ */
:root {
  --bg:           #f5f5f7;
  --bg-card:      #ffffff;
  --bg-nav:       rgba(245, 245, 247, 0.82);
  --text:         #1d1d1f;
  --text-muted:   #6e6e73;
  --text-subtle:  #aeaeb2;
  --accent:       #0078d4;
  --accent-dark:  #006cbf;
  --border:       rgba(0, 0, 0, 0.08);
  --border-card:  rgba(0, 0, 0, 0.06);
  --grid-color:   rgba(0, 0, 0, 0.045);
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.05), 0 2px 16px rgba(0,0,0,0.05);
  --shadow-md:    0 4px 32px rgba(0,0,0,0.09), 0 1px 6px rgba(0,0,0,0.05);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.13), 0 2px 8px rgba(0,0,0,0.06);
  --radius:       16px;
  --radius-sm:    8px;
  --ease:         cubic-bezier(0.4, 0, 0.2, 1);
  --transition:   0.3s var(--ease);
}

[data-theme="dark"] {
  --bg:           #000000;
  --bg-card:      #111111;
  --bg-nav:       rgba(0, 0, 0, 0.82);
  --text:         #f5f5f7;
  --text-muted:   #a1a1a6;
  --text-subtle:  #6e6e73;
  --accent:       #2997ff;
  --accent-dark:  #0071e3;
  --border:       rgba(255, 255, 255, 0.08);
  --border-card:  rgba(255, 255, 255, 0.06);
  --grid-color:   rgba(255, 255, 255, 0.032);
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.4),  0 2px 16px rgba(0,0,0,0.3);
  --shadow-md:    0 4px 32px rgba(0,0,0,0.5), 0 1px 6px rgba(0,0,0,0.4);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.7),0 2px 8px rgba(0,0,0,0.5);
}

/* ---- Reset ------------------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* ---- Base -------------------------------------------------- */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 48px;
  height: 60px;
  background: var(--bg-nav);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  gap: 8px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.nav-badge {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: color var(--transition), border-color var(--transition);
}

.nav-logo:hover .nav-badge {
  color: var(--text);
  border-color: var(--text-subtle);
}

.nav-product {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-right: 8px;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: white;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), transform var(--transition);
  margin-left: 8px;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--text-subtle);
}

.theme-toggle svg { width: 16px; height: 16px; }

.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun  { display: block; }
[data-theme="dark"] .icon-moon { display: none; }

/* ============================================================
   Section helpers
   ============================================================ */
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 48px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 540px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 120, 212, 0.35);
}

[data-theme="dark"] .btn-primary:hover {
  box-shadow: 0 4px 20px rgba(41, 151, 255, 0.3);
}

.btn-ghost {
  color: var(--text-muted);
  background: transparent;
}

.btn-ghost:hover { color: var(--text); }

.btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
  width: 100%;
  justify-content: center;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   3D Tilt cards
   ============================================================ */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.06s; }
.stagger > *:nth-child(3) { transition-delay: 0.12s; }
.stagger > *:nth-child(4) { transition-delay: 0.18s; }
.stagger > *:nth-child(5) { transition-delay: 0.24s; }
.stagger > *:nth-child(6) { transition-delay: 0.30s; }
.stagger > *:nth-child(7) { transition-delay: 0.36s; }
.stagger > *:nth-child(8) { transition-delay: 0.42s; }
.stagger > *:nth-child(9) { transition-delay: 0.48s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 110px 48px 100px;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 80px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 120, 212, 0.09);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 28px;
}

[data-theme="dark"] .hero-eyebrow { background: rgba(41, 151, 255, 0.12); }

.hero-title {
  font-size: clamp(42px, 5.5vw, 72px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-subtle);
}

/* Hero mock card */
.hero-visual { position: relative; }

.hero-mock {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-md);
  user-select: none;
}

.mock-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.mock-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #febc2e; }
.mock-dot:nth-child(3) { background: #28c840; }

.mock-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 16px;
}

.mock-email {
  padding: 18px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.mock-sender {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.mock-subject {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.mock-preview {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.mock-swipe-hint {
  display: flex;
  gap: 8px;
}

.mock-swipe-btn {
  flex: 1;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.mock-swipe-btn svg { width: 12px; height: 12px; }

.mock-btn--flag   { background: rgba(0,120,212,0.08); color: var(--accent); }
.mock-btn--done   { background: rgba(34,197,94,0.08); color: #16a34a; }
.mock-btn--snooze { background: rgba(245,158,11,0.08); color: #d97706; }

[data-theme="dark"] .mock-btn--done   { color: #4ade80; }
[data-theme="dark"] .mock-btn--snooze { color: #fbbf24; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section { border-top: 1px solid var(--border); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
}

.step-num {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--border);
  line-height: 1;
  margin-bottom: 24px;
  font-variant-numeric: tabular-nums;
}

[data-theme="dark"] .step-num { color: rgba(255,255,255,0.07); }

.step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.step p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features-section { border-top: 1px solid var(--border); }

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  cursor: default;
  transition: box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border);
}

.feature-icon {
  width: 36px;
  height: 36px;
  color: var(--accent);
  margin-bottom: 20px;
}

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

.feature-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-section { border-top: 1px solid var(--border); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 64px;
  max-width: 800px;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  position: relative;
  cursor: default;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}

.pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-plan {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pricing-price {
  font-size: 60px;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-price span {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-muted);
}

.pricing-billed {
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 32px;
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child { border-bottom: none; }

.check-icon {
  width: 16px;
  height: 16px;
  min-width: 16px;
  color: var(--accent);
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-section { border-top: 1px solid var(--border); }

.faq-list {
  margin-top: 64px;
  border-top: 1px solid var(--border);
}

.faq-item { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 24px 0;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--transition);
}

.faq-q:hover { color: var(--accent); }

.faq-chevron {
  width: 20px;
  height: 20px;
  min-width: 20px;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-a {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease), padding-bottom 0.3s var(--ease);
}

.faq-item.open .faq-a {
  max-height: 320px;
  padding-bottom: 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

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

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text-subtle);
  text-align: right;
}

/* ============================================================
   PRODUCTS PAGE
   ============================================================ */
.products-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding: 100px 48px 60px;
}

.products-grid {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 48px 100px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: inherit;
  cursor: pointer;
  transition: box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.product-card--soon {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}

.product-icon {
  width: 44px;
  height: 44px;
  color: var(--accent);
  margin-bottom: 4px;
}

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

.product-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0, 120, 212, 0.08);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}

[data-theme="dark"] .product-tag { background: rgba(41, 151, 255, 0.1); }

.product-soon-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  background: var(--border);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}

.product-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 4px;
}

.product-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
}

.product-card-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
}

.product-card-cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
}

.product-card:hover .product-card-cta svg { transform: translateX(3px); }

/* ============================================================
   LEGAL PAGES (privacy / terms)
   ============================================================ */
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 48px 120px;
}

.legal-content h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.legal-updated {
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 48px;
}

.legal-content h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 40px 0 12px;
  color: var(--text);
}

.legal-content p,
.legal-content li {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.75;
}

.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content a { color: var(--accent); }
.legal-content code {
  font-size: 13px;
  background: var(--border);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; }
  .products-grid { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-brand { justify-content: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 640px) {
  .nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .section-inner { padding: 72px 24px; }
  .hero { padding: 80px 24px 72px; }
  .feature-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; padding: 0 24px 72px; }
  .products-hero { padding: 72px 24px 40px; }
  .footer { padding: 32px 24px; }
  .legal-content { padding: 60px 24px 80px; }
}
