/* Enceipt marketing site — shared styles.
   Mirrors the app's DESIGN.md: white surfaces, single accent blue, flat
   depth, no gradients on interactive surfaces, system font stack. */

:root {
  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-mono: "SF Mono", "Fira Code", Consolas, monospace;

  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 15px;
  --text-lg: 18px;
  --text-xl: 22px;
  --text-2xl: 28px;
  --text-3xl: 36px;
  --text-4xl: 48px;
  --text-5xl: 64px;

  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Colour tokens */
  --primary: #1A56DB;
  --primary-dark: #1345B5;
  --primary-light: #EBF2FF;
  --primary-subtle: #EFF6FF;
  --done: #10B981;
  --done-light: #ECFDF5;
  --done-dark: #047857;
  --warning: #D97706;
  --danger: #DC2626;
  --danger-light: #FEE2E2;

  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;

  --ink: #0F172A;

  --surface: #FFFFFF;
  --surface-raised: #F9FAFB;
  --surface-alt: #F3F4F6;
  --border: #E5E7EB;
  --border-light: #F3F4F6;

  /* Spacing — 4px increments */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;
  --space-12: 120px;
  --space-13: 160px;

  /* Layout */
  --max-width: 1100px;
  --max-width-text: 680px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: color 150ms ease; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-block: 0;
  padding-inline: var(--space-5);
}

.container-text {
  max-width: var(--max-width-text);
  margin: 0 auto;
  padding-block: 0;
  padding-inline: var(--space-5);
}

/* --- Wordmark --- */
.wordmark {
  font-size: var(--text-xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark .accent { color: var(--primary); }

/* --- Navigation (fixed top) --- */
.nav {
  position: sticky;
  top: 0;
  inset-inline: 0;
  height: 64px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}
.nav-inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding-block: 0;
  padding-inline: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}
.nav-links a:not(.btn) {
  color: var(--text-secondary);
  font-weight: var(--fw-medium);
  font-size: var(--text-base);
  transition: color 150ms ease;
}
.nav-links a:not(.btn):hover {
  color: var(--text-primary);
  text-decoration: none;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  width: 44px;
  height: 44px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px auto;
  transition: transform 150ms ease;
}
.nav-links a.nav-link.active { color: var(--primary); }
.lang-switcher {
  display: inline-flex;
  gap: var(--space-2);
  align-items: center;
}
.lang-switcher .lang-link {
  font-size: var(--text-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}
.lang-switcher .lang-link.active { color: var(--text-primary); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-md);
  font-weight: var(--fw-semibold);
  font-size: var(--text-base);
  text-align: center;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-light); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--surface-raised); }

.btn-white {
  background: var(--surface);
  color: var(--primary);
}
.btn-white:hover { background: var(--surface-raised); }

.btn-on-primary {
  background: var(--primary-dark);
  color: var(--surface);
}
.btn-on-primary:hover { background: #0F3A99; }

/* --- Card --- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}

/* --- Badges --- */
.badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.2px;
}
.badge-primary {
  background: var(--primary-light);
  color: var(--primary);
}
.badge-done {
  background: var(--done-light);
  color: var(--done-dark);
}

/* --- Hero --- */
.hero {
  background: var(--surface);
  padding: var(--space-12) 0 var(--space-12);
}
.hero-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--space-9);
  align-items: center;
}
.hero h1 {
  font-size: 52px;
  line-height: 1.1;
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -1px;
  max-width: 560px;
  margin: var(--space-4) 0 var(--space-4);
}
.hero-subhead {
  font-size: var(--text-lg);
  line-height: 1.5;
  color: var(--text-secondary);
  max-width: 500px;
  margin-top: var(--space-4);
}
.hero-cta {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-6);
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-top: var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }

/* Phone mockup — pure CSS */
.phone-frame {
  width: 280px;
  height: 560px;
  margin: 0 auto;
  background: var(--ink);
  border-radius: 36px;
  border: 4px solid #1F2937;
  padding: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  padding: var(--space-4);
}
.mock-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
}
.mock-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}
.mock-content { flex: 1; }
.mock-line {
  height: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  margin-bottom: 6px;
}
.mock-line.short { width: 60%; height: 7px; background: var(--surface-alt); opacity: 0.7; }
.mock-amount {
  font-family: var(--font-mono);
  font-weight: var(--fw-semibold);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

/* --- Social proof bar --- */
.social-proof {
  background: var(--surface-alt);
  padding: var(--space-8) 0;
  text-align: center;
}
.social-proof-text {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-3);
}
.social-proof-flags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-5);
  color: var(--text-primary);
  font-weight: var(--fw-medium);
  font-size: var(--text-base);
}

/* --- Sections --- */
.section {
  padding: var(--space-10) 0;
}
.section-alt {
  background: var(--surface-alt);
}
.section-heading {
  text-align: center;
  margin-bottom: var(--space-8);
}
.section-heading h2 {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-3);
}
.section-heading p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* --- Who it's for: 3 cards --- */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.who-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.who-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-4);
}
.who-card h3 {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}
.who-card p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}
.who-examples {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  font-style: italic;
}

/* --- How it works: 3 steps --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  position: relative;
}
.step {
  text-align: start;
}
.step-num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 16px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.step h3 {
  font-size: var(--text-xl);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}
.step p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.5;
}

/* --- Privacy section --- */
.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-9);
  align-items: start;
}
.privacy-content .privacy-icon {
  font-size: 56px;
  margin-bottom: var(--space-4);
}
.privacy-content h2 {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-4);
}
.privacy-content > p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-5);
}
.privacy-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.privacy-features li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--text-primary);
  font-size: var(--text-base);
}
.privacy-features li::before {
  content: "✓";
  color: var(--done);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

/* Contrast table */
.contrast-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.contrast-table th,
.contrast-table td {
  padding: var(--space-3) var(--space-4);
  text-align: center;
  font-size: var(--text-base);
  border-bottom: 1px solid var(--border-light);
}
.contrast-table th:first-child,
.contrast-table td:first-child {
  text-align: start;
  color: var(--text-primary);
  font-weight: var(--fw-medium);
}
.contrast-table thead th {
  background: var(--surface-alt);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.contrast-table thead th.enceipt-col { color: var(--primary); }
.contrast-table tbody tr:nth-child(even) { background: var(--surface-raised); }
.contrast-table .yes { color: var(--done); font-weight: var(--fw-bold); }
.contrast-table .no { color: var(--danger); font-weight: var(--fw-bold); }
.contrast-table tbody tr:last-child td { border-bottom: none; }

/* --- Features grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
}
.feature-card .feature-icon {
  font-size: 32px;
  margin-bottom: var(--space-3);
}
.feature-card h3 {
  font-size: var(--text-base);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- CTA section --- */
.cta-section {
  background: var(--primary);
  color: var(--surface);
  text-align: center;
  padding: var(--space-10) 0;
}
.cta-section h2 {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--surface);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-3);
}
.cta-section .cta-subhead {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.85);
  max-width: 560px;
  margin: 0 auto var(--space-6);
}
.cta-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  max-width: 400px;
  margin: var(--space-6) auto;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
}
.cta-divider::before,
.cta-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}
.email-form {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}
.email-form input[type="email"] {
  width: 300px;
  height: 48px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: var(--surface);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: inherit;
}
.email-form input[type="email"]:focus {
  outline: none;
  border-color: var(--surface);
}
.email-form .email-label {
  width: 100%;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  text-align: center;
}
.email-form .fine-print {
  width: 100%;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-xs);
  margin-top: var(--space-3);
  text-align: center;
}

/* --- Footer --- */
.footer {
  background: var(--surface-alt);
  padding: var(--space-9) 0;
  color: var(--text-secondary);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1.5fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.footer-brand .wordmark { font-size: var(--text-xl); }
.footer-brand p {
  margin-top: var(--space-3);
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.footer-links a {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}
.footer-links a:hover { color: var(--text-primary); text-decoration: none; }
.footer-stores {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
.footer-stores .store-badge {
  display: inline-block;
  padding: var(--space-3) var(--space-4);
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
}
.footer-stores .store-badge:hover { text-decoration: none; background: #1F2937; }
.footer-stores .ios-soon {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-5);
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
}

/* --- Pricing page --- */
.pricing-hero {
  text-align: center;
  padding: var(--space-9) 0 var(--space-6);
}
.pricing-hero h1 {
  font-size: var(--text-4xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -1px;
  margin: var(--space-3) 0 var(--space-3);
}
.pricing-hero p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
}

.billing-toggle {
  display: inline-flex;
  background: var(--surface-alt);
  border-radius: var(--radius-full);
  padding: 4px;
  margin: var(--space-6) auto;
  border: 1px solid var(--border);
}
.billing-toggle button {
  background: transparent;
  border: none;
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
  font-family: inherit;
}
.billing-toggle button.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-5);
  max-width: 880px;
  margin: 0 auto;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-7);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.featured {
  border: 2px solid var(--primary);
}
.plan-badge {
  position: absolute;
  top: -12px;
  inset-inline-end: var(--space-6);
  background: var(--primary);
  color: var(--surface);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.plan h3 {
  font-size: var(--text-2xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}
.plan.featured h3 { color: var(--primary); }
.plan .price {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  margin: var(--space-2) 0;
}
.plan.featured .price { color: var(--primary); }
.plan .price-sub {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
}
.plan .tagline {
  color: var(--text-secondary);
  font-size: var(--text-base);
  margin-bottom: var(--space-5);
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: var(--space-4) 0;
  flex-grow: 1;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-5);
}
.plan li {
  padding: var(--space-2) 0;
  color: var(--text-primary);
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-base);
}
.plan li::before {
  content: "✓";
  color: var(--text-secondary);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}
.plan.featured li::before { color: var(--done); }
.plan .btn {
  margin-top: var(--space-5);
  width: 100%;
}

.billing-note {
  text-align: center;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  margin-top: var(--space-6);
}

/* --- Comparison table --- */
.comparison-table {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.comparison-table th,
.comparison-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
}
.comparison-table th {
  background: var(--surface-alt);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}
.comparison-table th:nth-child(2),
.comparison-table th:nth-child(3),
.comparison-table td:nth-child(2),
.comparison-table td:nth-child(3) {
  text-align: center;
  width: 120px;
}
.comparison-table th.featured-col { color: var(--primary); }
.comparison-table tr.section-header td {
  background: var(--surface-raised);
  color: var(--text-secondary);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: var(--fw-semibold);
  padding: var(--space-3) var(--space-4);
}
.comparison-table td.feature-name { color: var(--text-primary); }
.comparison-table .yes { color: var(--done); font-weight: var(--fw-bold); }
.comparison-table .no { color: var(--text-tertiary); }

/* --- FAQ --- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding-block: var(--space-5);
  padding-inline: 0;
  text-align: start;
  font-size: var(--text-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  font-family: inherit;
}
.faq-question .faq-toggle {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  transition: transform 150ms ease;
  flex-shrink: 0;
}
.faq-item.open .faq-question .faq-toggle {
  transform: rotate(45deg);
}
.faq-answer {
  display: none;
  padding: 0 0 var(--space-5);
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
  max-width: 640px;
}
.faq-item.open .faq-answer { display: block; }

/* --- Legal / privacy text --- */
.legal { max-width: var(--max-width-text); margin: 0 auto; padding-block: var(--space-9); padding-inline: var(--space-5); }
.legal h1 {
  font-size: var(--text-3xl);
  color: var(--text-primary);
  font-weight: var(--fw-bold);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-5);
}
.legal h2 {
  font-size: var(--text-xl);
  color: var(--text-primary);
  font-weight: var(--fw-semibold);
  margin: var(--space-7) 0 var(--space-3);
}
.legal p, .legal li {
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  line-height: 1.65;
}
.legal ul { padding-inline-start: var(--space-5); }
.legal .summary {
  background: var(--primary-subtle);
  border-inline-start: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}
.legal .summary strong { color: var(--text-primary); display: block; margin-bottom: var(--space-2); }

/* --- Features page --- */
.feature-section {
  padding: var(--space-10) 0;
}
.feature-section h2 {
  font-size: var(--text-3xl);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: -0.5px;
  margin-bottom: var(--space-4);
}
.feature-section .lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-6);
  max-width: 640px;
}
.feature-section .feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    inset-inline: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    gap: var(--space-4);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: var(--space-2) 0; }

  .hero { padding: var(--space-8) 0; }
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-8); text-align: center; }
  .hero h1 { font-size: var(--text-4xl); margin-inline: auto; }
  .hero-subhead { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-trust { justify-content: center; }

  .who-grid,
  .features-grid,
  .feature-section .feature-row {
    grid-template-columns: 1fr;
  }

  .steps-grid { grid-template-columns: 1fr; gap: var(--space-7); }

  .privacy-grid { grid-template-columns: 1fr; gap: var(--space-7); }

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

  .footer-grid { grid-template-columns: 1fr; gap: var(--space-5); }

  .section-heading h2,
  .privacy-content h2,
  .feature-section h2,
  .pricing-hero h1,
  .cta-section h2 { font-size: var(--text-3xl); }

  .section { padding: var(--space-8) 0; }

  .contrast-table,
  .comparison-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  .who-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .pricing-hero h1 { font-size: var(--text-3xl); }
  .section-heading h2 { font-size: var(--text-2xl); }
}

@media (max-width: 480px) {
  .features-grid,
  .feature-section .feature-row { grid-template-columns: 1fr; }
  .container { padding: 0 var(--space-4); }
  .phone-frame { width: 240px; height: 480px; }
  .hero h1 { font-size: 32px; }
  .email-form input[type="email"] { width: 100%; }
}

/* ── RTL (Arabic) support ──────────────────────────────── */
/* All layout above already uses logical properties.        */
/* This block handles Arabic-specific overrides only.        */

[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', 'Arabic Typesetting',
               -apple-system, system-ui, sans-serif;
}

/* Directional icons flip horizontally in RTL */
[dir="rtl"] .icon-arrow,
[dir="rtl"] .icon-chevron,
[dir="rtl"] .icon-back {
  transform: scaleX(-1);
}

/* Nav logo alignment */
[dir="rtl"] .nav-logo {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

/* Language switcher positioning */
[dir="rtl"] .lang-switcher {
  direction: ltr; /* lang codes stay LTR even in RTL context */
}

/* ── Blog styles ──────────────────────────────────────── */
/* Variable names match this file's tokens (--primary, --text-secondary,
   --border) rather than the {color.*} refs in DESIGN.md. */
.blog-post { max-width: 680px; margin-inline: auto; padding-block: 48px; padding-inline: var(--space-5); }
.post-header { margin-block-end: 32px; }
.post-meta { display: flex; gap: 16px; color: var(--text-secondary); font-size: 14px; margin-block-end: 16px; }
.post-title { font-size: clamp(24px, 4vw, 36px); font-weight: 700; line-height: 1.2; margin-block-end: 12px; color: var(--text-primary); }
.post-description { font-size: 18px; color: var(--text-secondary); line-height: 1.6; }
.post-content { font-size: 16px; line-height: 1.7; color: var(--text-primary); }
.post-content h2 { font-size: 22px; font-weight: 600; margin-block: 32px 16px; color: var(--text-primary); }
.post-content h3 { font-size: 18px; font-weight: 600; margin-block: 24px 12px; color: var(--text-primary); }
.post-content p { margin-block-end: 16px; }
.post-content ul, .post-content ol { margin-block-end: 16px; padding-inline-start: 24px; }
.post-content li { margin-block-end: 8px; }
.post-content blockquote { margin-block: 16px; margin-inline: 0; padding-block: 4px; padding-inline-start: var(--space-4); border-inline-start: 3px solid var(--primary); color: var(--text-secondary); font-style: italic; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); text-decoration: none; margin-block-start: 48px; }
.blog-index h1 { font-size: 32px; font-weight: 700; margin-block-end: 32px; color: var(--text-primary); }
.post-list { display: flex; flex-direction: column; gap: 32px; }
.post-card { padding: 24px; border: 1px solid var(--border); border-radius: 12px; }
.post-card time { font-size: 13px; color: var(--text-secondary); }
.post-card h2 { font-size: 20px; font-weight: 600; margin-block: 8px; }
.post-card h2 a { text-decoration: none; color: inherit; }
.post-card h2 a:hover { color: var(--primary); }
.post-card p { color: var(--text-secondary); margin-block-end: 12px; }
.read-more { color: var(--primary); text-decoration: none; font-size: 14px; font-weight: 500; }
