/* AIsha Landing Page — Design Tokens */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@300;400;500;600;700&display=swap');

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

:root {
  /* Brand */
  --color-primary: #B45309;
  --color-primary-light: #FEF3C7;
  --color-primary-dark: #92400E;
  --color-accent: #0F766E;
  --color-accent-light: #CCFBF1;

  /* Surfaces */
  --surface-page: #FAF8F5;
  --surface-card: #FFFFFF;
  --surface-input: #F5F0E8;
  --surface-divider: #E7E5E4;

  /* Text */
  --text-primary: #1C1917;
  --text-secondary: #44403C;
  --text-muted: #A8A29E;
  --text-inverse: #FFFFFF;
  --text-link: #B45309;

  /* CTA */
  --cta-primary: #B45309;
  --cta-primary-hover: #92400E;
  --cta-dark: #1C1917;
  --cta-dark-hover: #292524;

  /* Semantic */
  --semantic-success: #059669;
  --semantic-warning: #D97706;
  --semantic-error: #DC2626;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 20px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-card: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-card-hover: 0 4px 16px rgba(15, 23, 42, 0.10);
  --shadow-elevated: 0 8px 24px rgba(15, 23, 42, 0.12);

  /* Motion */
  --motion-fast: 100ms;
  --motion-base: 200ms;
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--surface-page);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Layout ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container { padding-left: 40px; padding-right: 40px; }
}

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: transparent;
  transition: all var(--motion-base) ease;
}

.navbar.scrolled {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-divider);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-logo-mark {
  width: 32px;
  height: 32px;
}
.navbar-logo-mark svg {
  width: 100%;
  height: 100%;
}

.navbar-brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.navbar-links {
  display: none;
  align-items: center;
  gap: 28px;
}

@media (min-width: 768px) {
  .navbar-links { display: flex; }
}

.navbar-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--motion-fast) ease;
}
.navbar-links a:hover { color: var(--text-primary); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  transition: all var(--motion-fast) ease;
  padding: 14px 28px;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--cta-primary);
  color: var(--text-inverse);
}
.btn-primary:hover { background: var(--cta-primary-hover); }

.btn-dark {
  background: var(--cta-dark);
  color: var(--text-inverse);
}
.btn-dark:hover { background: var(--cta-dark-hover); }

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

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; }

/* ---- Hero ---- */
.hero {
  padding: 120px 0 64px;
  text-align: center;
}

@media (min-width: 768px) {
  .hero { padding: 160px 0 96px; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .hero-title { font-size: 56px; letter-spacing: -1px; }
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto 32px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-width: 340px;
  margin: 0 auto;
}

@media (min-width: 480px) {
  .hero-ctas {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
}

/* ---- Store Badges ---- */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--motion-fast) ease;
  text-decoration: none;
}

.store-badge-rustore {
  background: #0077FF;
  color: white;
}
.store-badge-rustore:hover { background: #0066DD; }

.store-badge-google {
  background: var(--text-primary);
  color: white;
}
.store-badge-google:hover { background: var(--cta-dark-hover); }

.store-badge-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-badge-label {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
}

.store-badge-store {
  font-size: 16px;
  font-weight: 600;
}

/* ---- Features ---- */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

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

.feature-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--motion-base) ease;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.feature-icon-ai { background: var(--color-primary-light); }
.feature-icon-ai svg { stroke: var(--color-primary); }

.feature-icon-personal { background: var(--color-accent-light); }
.feature-icon-personal svg { stroke: var(--color-accent); }

.feature-icon-analytics { background: #DCFCE7; }
.feature-icon-analytics svg { stroke: #16A34A; }

.feature-icon-languages { background: #FEF3C7; }
.feature-icon-languages svg { stroke: #D97706; }

.feature-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- How it works ---- */
.steps-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps-row { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
}

.step-item {
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- Section headings ---- */
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

@media (min-width: 768px) {
  .section-title { font-size: 36px; }
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.6;
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: 48px 24px;
  text-align: center;
  color: white;
}

@media (min-width: 768px) {
  .cta-section { padding: 64px 48px; }
}

.cta-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .cta-title { font-size: 36px; }
}

.cta-subtitle {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-badges {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

@media (min-width: 480px) {
  .cta-badges {
    flex-direction: row;
    justify-content: center;
  }
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--surface-divider);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

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

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--motion-fast) ease;
}
.footer-links a:hover { color: var(--text-primary); }

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

/* ---- Legal page styles ---- */
.legal-page {
  padding: 100px 20px 80px;
  min-height: 100vh;
}

@media (min-width: 768px) {
  .legal-page { padding: 140px 20px 80px; }
}

.legal-container {
  max-width: 720px;
  margin: 0 auto;
}

.legal-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}

@media (min-width: 768px) {
  .legal-title { font-size: 36px; }
}

.legal-date {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.legal-body {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-body h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 36px;
  margin-bottom: 12px;
}

.legal-body h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 8px;
}

.legal-body p {
  margin-bottom: 12px;
}

.legal-body ul, .legal-body ol {
  margin-bottom: 12px;
  padding-left: 24px;
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-body a:hover { opacity: 0.8; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}
.legal-table th, .legal-table td {
  border: 1px solid var(--surface-divider);
  padding: 10px 14px;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--surface-input);
  font-weight: 600;
  color: var(--text-primary);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-link);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
  transition: opacity var(--motion-fast) ease;
}
.back-link:hover { opacity: 0.8; }

/* ---- Contact page ---- */
.contact-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .contact-card { padding: 32px; }
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--surface-divider);
}
.contact-row:last-child { border-bottom: none; }

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--color-primary);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.contact-value a {
  color: var(--text-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Delete account page ---- */
.delete-card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin-bottom: 24px;
}

@media (min-width: 768px) {
  .delete-card { padding: 32px; }
}

.delete-warning {
  background: #FEF2F2;
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.delete-warning svg { flex-shrink: 0; margin-top: 2px; }

.delete-warning-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
}

.delete-warning-text strong {
  color: var(--semantic-error);
  font-weight: 600;
}

.what-gets-deleted h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.what-gets-deleted ul {
  list-style: none;
  padding: 0;
}

.what-gets-deleted li {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.what-gets-deleted li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--semantic-error);
}

.what-gets-deleted li.retained::before {
  background: var(--text-muted);
}

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

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  color: var(--text-primary);
  background: var(--surface-input);
  border: 1px solid var(--surface-divider);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--motion-fast) ease;
}

.form-input::placeholder { color: var(--text-muted); }
.form-input:focus { border-color: var(--color-primary); border-width: 2px; padding: 13px 15px; }

.checkbox-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.checkbox-row input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--semantic-error);
  cursor: pointer;
}

.checkbox-label {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  cursor: pointer;
}

.btn-delete {
  display: block;
  width: 100%;
  padding: 14px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--semantic-error);
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: opacity var(--motion-fast) ease;
}
.btn-delete:hover { opacity: 0.9; }
.btn-delete:active { transform: scale(0.98); }
.btn-delete:disabled { opacity: 0.5; cursor: not-allowed; }

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}
.form-note a { color: var(--text-link); }

.form-message {
  font-size: 14px;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: none;
}
.form-message.error {
  display: block;
  background: #FEE2E2;
  color: #DC2626;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}
