/* ═══════════════════════════════════════════════════════
   AmadeusShare — Landing Page Styles
   Domain: amadeus-amadeus.com
   ═══════════════════════════════════════════════════════ */

:root {
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-mid: #334155;
  --slate: #64748b;
  --slate-light: #94a3b8;
  --white: #f8fafc;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  /* Backgrounds behind white text: #3b82f6 gives only 3.5:1; these reach the
     WCAG AA 4.5:1 minimum (4.9:1 and 6.4:1). */
  --accent-strong: #2563eb;
  --accent-strong-hover: #1d4ed8;
  --accent-glow: rgba(59, 130, 246, 0.25);
  --green: #10b981;
  --amber: #f59e0b;
  --purple: #8b5cf6;
  --rose: #f43f5e;
  --border: rgba(148, 163, 184, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Layout ──────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 100px 0; }
.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--slate-light);
  max-width: 640px;
  margin: 0 auto 48px;
}
.text-center { text-align: center; }

/* ── Navigation ──────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-size: 1.25rem; font-weight: 800;
  color: var(--white); text-decoration: none;
  display: inline-flex; align-items: center;
}
.nav-logo img { height: 28px; width: auto; display: block; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--slate-light); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
  background: var(--accent-strong); color: var(--white) !important;
  padding: 8px 20px; border-radius: 8px; font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition);
}
.nav-cta:hover { background: var(--accent-strong-hover); box-shadow: 0 0 20px var(--accent-glow); }

/* Language selector */
.lang-selector { position: relative; display: flex; align-items: center; }
.lang-current {
  background: rgba(255,255,255,0.08); border: 1px solid var(--border); color: var(--white);
  padding: 6px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 1px; cursor: pointer; transition: background var(--transition);
}
.lang-current:hover { background: rgba(255,255,255,0.14); }
.lang-dropdown {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--navy-light); border: 1px solid var(--border); border-radius: var(--radius);
  min-width: 180px; max-height: 360px; overflow-y: auto; z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.lang-option {
  display: block; width: 100%; text-align: left; background: none; border: none;
  padding: 10px 16px; color: var(--slate-light); font-size: 0.9rem; font-family: var(--font);
  cursor: pointer; transition: background var(--transition), color var(--transition);
}
.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.lang-option.active { color: var(--accent); font-weight: 600; }

/* Mobile nav */
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.5rem; cursor: pointer; }
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; flex-direction: column; position: absolute;
    top: 72px; left: 0; right: 0; background: var(--navy);
    padding: 24px; gap: 16px; border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
}

/* ── Hero ────────────────────────────────────────────── */
.hero {
  padding: 160px 0 120px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero h1 .gradient {
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.25rem;
  color: var(--slate-light);
  max-width: 640px;
  margin: 0 auto 40px;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: all var(--transition); border: none; cursor: pointer;
}
.btn-primary {
  background: var(--accent-strong); color: var(--white);
  box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-strong-hover); transform: translateY(-2px); box-shadow: 0 8px 30px var(--accent-glow); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--slate); background: rgba(255,255,255,0.04); }

.hero-badges {
  display: flex; gap: 24px; justify-content: center; margin-top: 48px; flex-wrap: wrap;
}
.badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--slate-light);
}
.badge-icon {
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem;
}
.badge-icon.green { background: rgba(16, 185, 129, 0.2); color: var(--green); }
.badge-icon.blue { background: rgba(59, 130, 246, 0.2); color: var(--accent); }
.badge-icon.purple { background: rgba(139, 92, 246, 0.2); color: var(--purple); }

/* ── Features Grid ───────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}
.feature-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: 16px;
}
.feature-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent); }
.feature-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--green); }
.feature-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--purple); }
.feature-icon.amber { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.feature-icon.rose { background: rgba(244, 63, 94, 0.15); color: var(--rose); }
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 0.95rem; color: var(--slate-light); line-height: 1.6; }

/* ── European Hosting Banner ─────────────────────────── */
.eu-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex; align-items: center; gap: 40px;
}
.eu-flag { font-size: 4rem; flex-shrink: 0; }
.eu-banner h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 8px; }
.eu-banner p { color: var(--slate-light); font-size: 1rem; line-height: 1.7; }
.eu-badges {
  display: flex; gap: 16px; margin-top: 16px; flex-wrap: wrap;
}
.eu-badge {
  background: rgba(59, 130, 246, 0.12); color: var(--accent);
  padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 600;
}

@media (max-width: 768px) {
  .eu-banner { flex-direction: column; text-align: center; padding: 32px; }
  .eu-badges { justify-content: center; }
}

/* ── Pricing ─────────────────────────────────────────── */
.pricing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 48px;
}
.pricing-toggle span { font-size: 0.95rem; color: var(--slate-light); }
.pricing-toggle span.active { color: var(--white); font-weight: 600; }
.toggle-switch {
  width: 52px; height: 28px; background: var(--navy-mid); border-radius: 14px;
  position: relative; cursor: pointer; border: none; transition: background var(--transition);
}
.toggle-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 22px; height: 22px; background: var(--white); border-radius: 50%;
  transition: transform var(--transition);
}
.toggle-switch.yearly { background: var(--accent); }
.toggle-switch.yearly::after { transform: translateX(24px); }
.save-badge {
  background: rgba(16, 185, 129, 0.15); color: var(--green);
  padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 700;
}

/* 12 rows: header, price, yearly-note, cta, divider, 7 features */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-template-rows: repeat(12, auto);
  gap: 0 24px; align-items: stretch;
}
.plan-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  display: grid; grid-template-rows: subgrid; grid-row: span 12;
  transition: border-color var(--transition), transform var(--transition);
}
.plan-card:hover { transform: translateY(-4px); }
.plan-card.popular {
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
}
.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent-strong); color: var(--white);
  padding: 4px 16px; border-radius: 20px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
}
.plan-header { }
.plan-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.plan-desc { font-size: 0.85rem; color: var(--slate-light); }
.plan-price {
  font-size: 2.5rem; font-weight: 900; margin: 20px 0 4px;
  display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 4px;
}
.plan-price .currency { font-size: 1.25rem; vertical-align: super; }
.plan-price.custom { font-size: 1.6rem; line-height: 2.4rem; }
.plan-price .period { font-size: 0.9rem; font-weight: 400; color: var(--slate-light); }
.plan-yearly-note { font-size: 0.8rem; color: var(--slate-light); margin-bottom: 24px; min-height: 20px; }
.plan-cta {
  display: block; width: 100%; text-align: center;
  padding: 12px; border-radius: 10px; font-weight: 600;
  text-decoration: none; font-size: 0.95rem; margin-bottom: 24px;
  align-self: end;
  transition: all var(--transition);
}
.plan-cta.primary { background: var(--accent-strong); color: var(--white); border: none; cursor: pointer; }
.plan-cta.primary:hover { background: var(--accent-strong-hover); }
.plan-cta.outline { background: transparent; color: var(--white); border: 1px solid var(--border); cursor: pointer; }
.plan-cta.outline:hover { border-color: var(--slate); }
.plan-divider { border: none; border-top: 1px solid var(--border); margin-bottom: 12px; }
.plan-feature {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.9rem; color: var(--slate-light); margin-bottom: 10px;
}
.plan-feature .check { color: var(--green); flex-shrink: 0; font-weight: 700; }
.plan-feature .cross { color: var(--rose); flex-shrink: 0; font-weight: 700; opacity: 0.6; }
.plan-feature.unavail { opacity: 0.45; }

/* ── Use Cases ───────────────────────────────────────── */
.usecases-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; align-items: stretch;
}
.usecase-card {
  background: var(--navy-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  display: flex; flex-direction: column;
}
.usecase-card p { flex: 1; }
.usecase-icon { font-size: 2.5rem; margin-bottom: 16px; }
.usecase-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.usecase-card p { font-size: 0.9rem; color: var(--slate-light); }

/* ── CTA Section ─────────────────────────────────────── */
.cta-section {
  text-align: center;
  background: radial-gradient(ellipse at 50% 100%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}
.cta-section h2 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; margin-bottom: 16px; }
.cta-section p { font-size: 1.125rem; color: var(--slate-light); max-width: 560px; margin: 0 auto 32px; }

/* ── Footer ──────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 60px 0 40px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand p { color: var(--slate-light); font-size: 0.9rem; margin-top: 12px; line-height: 1.6; }
.footer-col h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; color: var(--slate-light); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--slate-light); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { font-size: 0.85rem; color: var(--slate-light); }
.footer-bottom a { color: var(--slate-light); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Contact Page ────────────────────────────────────── */
.page-hero { padding: 140px 0 60px; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.1rem; color: var(--slate-light); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  max-width: 960px; margin: 0 auto;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600; color: var(--slate-light); margin-bottom: 6px;
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--navy-light);
  color: var(--white); font-family: var(--font); font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-info-cards { display: flex; flex-direction: column; gap: 20px; }
.info-card {
  background: var(--navy-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.info-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.info-card p { font-size: 0.9rem; color: var(--slate-light); }
.info-card a { color: var(--accent); text-decoration: none; }
.info-card a:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Masthead / Imprint Page ─────────────────────────── */
.imprint-content {
  max-width: 720px; margin: 0 auto;
}
.imprint-content h2 {
  font-size: 1.35rem; font-weight: 700; margin: 32px 0 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border);
}
.imprint-content p, .imprint-content li {
  color: var(--slate-light); font-size: 0.95rem; line-height: 1.7; margin-bottom: 8px;
}
.imprint-content ul { list-style: disc; padding-left: 24px; }
.imprint-content a { color: var(--accent); text-decoration: none; }
.imprint-content a:hover { text-decoration: underline; }

/* Download page */
.download-req { font-size: 0.8rem; color: var(--slate-light); margin-top: 8px; }
/* The installer links (js/downloads.js shows them once a release is published). */
.download-get { margin-top: 16px; }
.download-get .btn, .download-get .btn:hover { color: var(--white); text-decoration: none; }
.download-get .download-req { display: block; }
.download-sha256 { font-size: 0.72rem; word-break: break-all; }
/* The first start of an app that Apple has not notarized yet, step by step. */
.download-firststart {
  margin-top: 16px; padding: 12px 14px; border-radius: 10px;
  border-left: 3px solid var(--accent); background: rgba(37, 99, 235, 0.08);
}
.download-firststart-title { font-weight: 700; color: inherit; margin-bottom: 6px; }
.info-card .download-firststart-title { color: var(--white); font-size: 0.9rem; }
.download-firststart ol { margin: 0 0 6px 18px; padding: 0; }
.download-firststart li { font-size: 0.85rem; color: var(--slate-light); line-height: 1.55; margin-bottom: 4px; }
[hidden] { display: none !important; }

/* Privacy note under the contact form (GDPR Art. 13 pointer). */
.form-privacy-note { font-size: 0.8rem; color: var(--slate-light); margin-top: 12px; text-align: center; }
.form-privacy-note a { color: var(--slate-light); text-decoration: underline; }
