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

/*
  Parola color palette — matches the iOS app Theme.swift exactly.
  Dark mode is the default for the website (matches the iOS dark palette).
  Light: warm beige/cream  Dark: deep warm charcoal  Accent: amber/brown
*/
:root {
  /* Dark backgrounds (iOS dark mode values) */
  --bg:       #0e0d0b;
  --bg2:      #141310;
  --surface:  #1a1916;
  --surface2: #211f1b;
  --surface3: #2a2824;

  /* Text */
  --text:       #f0ece6;
  --muted:      #7c7570;
  --faint:      #4a4540;

  /* Accent — warm amber gold (iOS dark: #c89b63) */
  --accent:      #c89b63;
  --accent-deep: #b07d4a;
  --accent-glow: rgba(200, 155, 99, 0.18);
  --accent-light: rgba(200, 155, 99, 0.13);

  /* Semantic */
  --success: #5a9c6e;
  --error:   #c45252;

  /* Structure */
  --border:    rgba(255, 255, 255, 0.07);
  --radius:    16px;
  --radius-sm: 10px;
}

/* ── Light mode overrides (applied via html.light class) ── */
html.light {
  --bg:       #faf9f7;
  --bg2:      #f4f2ee;
  --surface:  #ffffff;
  --surface2: #f8f7f4;
  --surface3: #ede9e3;

  --text:       #1c1917;
  --muted:      #78716c;
  --faint:      #a8a29e;

  --accent:      #b07d4a;
  --accent-deep: #9a6a38;
  --accent-glow: rgba(176, 125, 74, 0.14);
  --accent-light: rgba(176, 125, 74, 0.10);

  --border: rgba(0, 0, 0, 0.08);
}

html.light .nav {
  background: rgba(250, 249, 247, 0.90);
}

html.light .section--cta {
  background: linear-gradient(135deg, rgba(176,125,74,0.06) 0%, rgba(250,249,247,0) 100%);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 13, 11, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.logo-img {
  height: 36px;
  width: 36px;
  border-radius: 8px;
}

.logo-wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-text {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}

/* fallback for pages that still use .logo span */
.logo {
  font-family: 'Lora', Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
}

/* ── Theme toggle ── */
.theme-toggle {
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  width: 52px;
  height: 28px;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

.theme-toggle::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.2s;
}

html.light .theme-toggle::after {
  transform: translateX(24px);
}

.theme-toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle-icon {
  font-size: 15px;
  line-height: 1;
  user-select: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 9px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
  border: none;
  font-family: inherit;
  letter-spacing: -0.1px;
}

.btn-sm  { padding: 7px 16px; font-size: 14px; }
.btn-lg  { padding: 14px 30px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--accent-deep);
  color: #fff;
  box-shadow: 0 2px 16px rgba(176, 125, 74, 0.35);
}
.btn-primary:hover {
  background: #9a6a38;
  box-shadow: 0 4px 24px rgba(176, 125, 74, 0.48);
  transform: translateY(-1px);
}

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

/* ── Hero ── */
.hero {
  position: relative;
  padding: 104px 0 80px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 420px;
  background: radial-gradient(ellipse, rgba(200, 155, 99, 0.09) 0%, transparent 68%);
  pointer-events: none;
}

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid rgba(200, 155, 99, 0.35);
  background: rgba(200, 155, 99, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 66px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  margin-bottom: 26px;
}

.gradient-text {
  background: linear-gradient(135deg, #c89b63 0%, #b07d4a 55%, #d4aa78 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero-langs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.lang-pill {
  padding: 6px 14px;
  border-radius: 50px;
  background: var(--surface2);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
}

/* ── Section base ── */
.section { padding: 96px 0; }

.section--dark {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section--cta {
  background: linear-gradient(135deg, rgba(200,155,99,0.07) 0%, rgba(14,13,11,0) 100%);
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.12;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.75;
}

.text-center { text-align: center; }
.text-center .section-sub { margin-left: auto; margin-right: auto; }

/* ── How It Works Steps Row ── */
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 56px;
}

.step-block {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.step-num-lg {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 1px solid rgba(200, 155, 99, 0.35);
  color: var(--accent);
  font-weight: 800;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step-block h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

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

.step-arrow {
  color: var(--faint);
  font-size: 22px;
  padding-top: 44px;
  flex-shrink: 0;
}

/* ── Features Grid ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(200, 155, 99, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.feature-card--wide { grid-column: span 2; }

.feature-icon { font-size: 26px; margin-bottom: 14px; }

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

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

/* ── Privacy Block ── */
.privacy-block {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 740px;
  margin: 0 auto;
}

.privacy-icon { font-size: 48px; flex-shrink: 0; }

.privacy-block h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.privacy-block p {
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 52px;
}

.pricing-grid--two {
  grid-template-columns: repeat(2, 1fr);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.2s;
}

.pricing-card--featured {
  border-color: var(--accent-deep);
  box-shadow: 0 0 48px rgba(176, 125, 74, 0.14);
  background: var(--surface);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-deep);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.3px;
}

.plan-badge-inline {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  margin-bottom: 10px;
}

.plan-name {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--muted);
  margin-bottom: 10px;
}

.plan-price { margin-bottom: 8px; }

.price-amount {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -2px;
}

.price-period { font-size: 15px; color: var(--muted); }

.plan-desc {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
  line-height: 1.6;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  flex: 1;
}

.plan-features li {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.4;
}

.plan-features li.feature-check::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-features li.feature-highlight {
  color: var(--text);
  font-weight: 500;
}

.plan-features li.feature-req::before {
  content: '→';
  color: var(--faint);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-features li.feature-req {
  color: var(--faint);
  font-size: 13px;
  margin-top: 4px;
}

.plan-footnote {
  text-align: center;
  color: var(--faint);
  font-size: 12px;
  margin-top: 12px;
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin-top: 28px;
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin-top: 52px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: rgba(200, 155, 99, 0.3); }

.faq-q {
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: none;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: background 0.15s;
  letter-spacing: -0.1px;
}

.faq-q:hover { background: var(--surface2); }

.faq-q::after {
  content: '+';
  font-size: 20px;
  font-weight: 300;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.25s;
}

.faq-q[aria-expanded="true"]::after { transform: rotate(45deg); }

.faq-a {
  display: none;
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.faq-a.visible { display: block; }

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

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links { display: flex; gap: 24px; }

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

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

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

/* ── CTA section ── */
.section--cta h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section--cta p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 36px;
}

.cta-req {
  font-size: 13px !important;
  color: var(--faint) !important;
  margin-top: 20px !important;
  margin-bottom: 0 !important;
}

/* ── Divider ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

/* ── Responsive ── */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card--wide { grid-column: span 2; }
  .pricing-grid--two { grid-template-columns: 1fr; max-width: 420px; }
  .steps-row { flex-direction: column; }
  .step-arrow { display: none; }
}

@media (max-width: 600px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card--wide { grid-column: span 1; }
  .privacy-block { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 64px 0 52px; }
  .section { padding: 64px 0; }
  .hero h1 { letter-spacing: -1.2px; }
}
