/* ============================================================
   Lingua Scroll — Landing Page Styles
   Colour palette and typography matched to the iOS app
   ============================================================ */

:root {
  --primary:        #2a9d8f;
  --primary-dark:   #228b7e;
  --primary-light:  #daf3ef;
  --bg:             #f6f8f7;
  --card:           #ffffff;
  --text-dark:      #1a2e2b;
  --text-muted:     #7a8c89;
  --border:         #e4ebe8;
  --error:          #e05757;
  --progress-track: #dde5e3;
  --tag-bg:         #f0f4f3;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

/* ---- Container ---- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.1s ease;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.btn:active { opacity: 0.75; transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(42, 157, 143, 0.32);
}
.btn-white {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.btn-sm  { padding: 9px 18px;  font-size: 14px; }
.btn-lg  { padding: 17px 32px; font-size: 17px; }

/* ---- NAV ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.3px;
}

/* ---- HERO ---- */
.hero {
  padding: 72px 0 80px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero .container {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.hero-inner {
  max-width: 560px;
}

/* Two-column on desktop */
@media (min-width: 768px) {
  .hero { padding: 96px 0 112px; }
  .hero .container {
    flex-direction: row;
    align-items: center;
    gap: 64px;
    max-width: 1080px;
  }
  .hero-inner { flex: 1; max-width: none; }
  .hero-visual { flex: 0 0 auto; }
}

.badge {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  padding: 5px 14px;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}

.hero h1 {
  font-size: clamp(36px, 6vw, 54px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-cta { margin-bottom: 14px; }

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

/* ---- Phone Mockup ---- */
.phone-mockup {
  width: 220px;
  height: 420px;
  background: var(--text-dark);
  border-radius: 36px;
  padding: 18px 14px;
  box-shadow:
    0 32px 64px rgba(26, 46, 43, 0.22),
    0 2px 8px rgba(0,0,0,0.12),
    inset 0 0 0 1px rgba(255,255,255,0.06);
  position: relative;
}
.phone-mockup::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 6px;
  background: rgba(255,255,255,0.12);
  border-radius: 3px;
}
.phone-screen {
  background: var(--bg);
  border-radius: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px 16px;
}
.mockup-flag { font-size: 36px; }
.mockup-word {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.5px;
}
.mockup-hint {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.mockup-dots {
  display: flex;
  gap: 5px;
  margin-top: 4px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: var(--progress-track);
}
.dot-filled { background: var(--primary); }
.mockup-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--progress-track);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}
.mockup-progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 3px;
}

/* ---- FEATURES ---- */
.features {
  padding: 96px 0;
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-dark);
  margin-bottom: 12px;
  text-align: center;
}
.section-sub {
  font-size: 17px;
  color: var(--text-muted);
  text-align: center;
  max-width: 520px;
  margin: 0 auto 52px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 28px 24px;
  border: 1.5px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.07);
  transform: translateY(-2px);
}
.feature-card-accent {
  background: var(--primary-light);
  border-color: rgba(42, 157, 143, 0.25);
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 14px;
}
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.feature-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.feature-tag {
  display: inline-block;
  background: var(--card);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(42, 157, 143, 0.25);
}
.feature-card-accent .feature-tag {
  background: rgba(255,255,255,0.6);
}
.feature-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.feature-tag-row span {
  background: var(--card);
  color: var(--text-dark);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* ---- HOW IT WORKS ---- */
.how-it-works {
  padding: 96px 0;
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 600px;
  margin: 48px auto 0;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.step-number {
  flex: 0 0 44px;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(42, 157, 143, 0.28);
}
.step-content h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
  padding-top: 10px;
}
.step-content p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-bottom: 4px;
}
.step-connector {
  width: 2px;
  height: 36px;
  background: var(--border);
  margin-left: 21px;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: var(--primary);
  padding: 80px 0;
}
.cta-inner {
  text-align: center;
}
.cta-band h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.cta-band p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
}

/* ---- FOOTER ---- */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--primary); }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---- Shared policy page styles ---- */
.policy-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--border);
}
.policy-header h1 {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}
.policy-header .updated {
  font-size: 14px;
  color: var(--text-muted);
}
.policy-body {
  padding: 48px 0 96px;
  max-width: 720px;
}
.policy-body h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 12px;
  color: var(--text-dark);
}
.policy-body p, .policy-body li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}
.policy-body ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
.policy-body a { color: var(--primary); text-decoration: underline; }

/* ---- Utilities ---- */
@media (max-width: 599px) {
  .hero-visual { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
