/* =========================================
   Papap Landing Page — style.css
   ========================================= */

/* --- Tokens --- */
:root {
  --color-primary: #ED3833;
  --color-primary-dark: #c42e2a;
  --color-primary-light: #FEE2E2;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-bg: #FFFFFF;
  --color-bg-secondary: #f7f7f7;
  --color-border: #dcdcdc;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --transition: 0.2s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--color-text); background: var(--color-bg); line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* --- Utilities --- */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 8px; font-weight: 600;
  font-size: 15px; cursor: pointer; border: none; transition: var(--transition);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { background: transparent; color: var(--color-primary); border: 2px solid var(--color-primary); }
.btn-outline:hover { background: var(--color-primary-light); }
.btn-white { background: #fff; color: var(--color-primary); }
.btn-white:hover { background: #f0f0f0; }

/* =========================================
   NAV
   ========================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.nav__brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--color-text);
}
.nav__brand img { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; }
.nav__links {
  display: flex; align-items: center; gap: 32px;
}
.nav__links a {
  font-size: 15px; color: var(--color-text-muted); transition: var(--transition);
}
.nav__links a:hover { color: var(--color-primary); }
.nav__cta { margin-left: 8px; }
.nav__extras {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switcher {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
}
.lang-switcher a {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-muted);
  border-radius: 999px;
  line-height: 1.1;
}
.lang-switcher a.active {
  background: var(--color-primary);
  color: #fff;
}

/* Hamburger */
.nav__hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 36px; height: 36px; cursor: pointer; border: none; background: none; padding: 4px;
}
.nav__hamburger span {
  display: block; height: 2px; background: var(--color-text);
  border-radius: 2px; transition: var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav drawer */
.nav__mobile {
  display: none; flex-direction: column; gap: 0;
  border-top: 1px solid var(--color-border); background: #fff;
}
.nav__mobile.open { display: flex; }
.nav__mobile a {
  padding: 16px 24px; font-size: 16px; color: var(--color-text);
  border-bottom: 1px solid var(--color-border); transition: var(--transition);
}
.nav__mobile a:hover { background: var(--color-bg-secondary); color: var(--color-primary); }
.nav__mobile .btn { margin: 16px 24px; width: calc(100% - 48px); justify-content: center; color: #fff; }

/* =========================================
   HERO
   ========================================= */
.hero {
  padding: 80px 0 60px;
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 100%);
  overflow: hidden;
}
.hero__inner {
  display: flex; align-items: center; gap: 60px;
}
.hero__content { flex: 1; }
.hero__eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--color-primary-light); color: var(--color-primary);
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 20px;
}
.hero__title {
  font-size: clamp(36px, 5vw, 56px); font-weight: 800;
  line-height: 1.1; color: var(--color-text); margin-bottom: 20px;
}
.hero__title span { color: var(--color-primary); }
.hero__subtitle {
  font-size: 18px; color: var(--color-text-muted);
  max-width: 480px; margin-bottom: 36px; line-height: 1.7;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Store badges */
.store-badge-img {
  height: 48px; width: auto; display: block;
  transition: var(--transition); border-radius: 8px;
}
.store-badge-img:hover { transform: translateY(-2px); }
/* Phone mockup */
.hero__visual { flex: 0 0 300px; display: flex; justify-content: center; align-items: center; }
.hero__mockup-img {
  width: 280px; height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.2));
}

/* =========================================
   FEATURES
   ========================================= */
.features {
  padding: 80px 0;
  background: var(--color-bg-secondary);
}
.section-header { text-align: center; margin-bottom: 56px; }
.section-label {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--color-primary-light); color: var(--color-primary);
  font-size: 13px; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.section-subtitle { font-size: 17px; color: var(--color-text-muted); max-width: 540px; margin: 0 auto; }

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 32px 28px;
  transition: var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--color-primary-light);
}
.feature-card__icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--color-primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
}
.feature-card__title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card__desc { font-size: 15px; color: var(--color-text-muted); line-height: 1.6; }

/* =========================================
   HOW IT WORKS
   ========================================= */
.how {
  padding: 80px 0;
  background: var(--color-bg);
}
.steps {
  display: flex; gap: 0; position: relative;
  counter-reset: steps;
}
.steps::before {
  content: ''; position: absolute; top: 28px; left: calc(16.6% + 28px); right: calc(16.6% + 28px);
  height: 2px; background: var(--color-border);
}
.step {
  flex: 1; text-align: center; padding: 0 24px; position: relative;
}
.step__num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-size: 20px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px; position: relative; z-index: 1;
}
.step__title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step__desc { font-size: 15px; color: var(--color-text-muted); line-height: 1.6; }

/* =========================================
   DOWNLOAD CTA
   ========================================= */
.download {
  padding: 80px 0;
  background: var(--color-primary);
  text-align: center;
  color: #fff;
}
.download__title { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 12px; }
.download__sub { font-size: 18px; opacity: 0.85; margin-bottom: 40px; }
.download__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }

/* =========================================
   FOOTER
   ========================================= */
.footer {
  padding: 48px 0 32px;
  background: var(--color-text);
  color: rgba(255,255,255,0.7);
}
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
  margin-bottom: 40px;
}
.footer__brand { flex: 0 0 auto; max-width: 260px; }
.footer__logo {
  display: flex; align-items: center; gap: 10px;
  color: #fff; font-size: 18px; font-weight: 700; margin-bottom: 12px;
}
.footer__logo img { width: 32px; height: 32px; border-radius: 7px; object-fit: cover; }
.footer__tagline { font-size: 14px; line-height: 1.6; }

.footer__links h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; letter-spacing: 0.5px; text-transform: uppercase; }
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14px; transition: var(--transition); }
.footer__links a:hover { color: #fff; }

.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition);
}
.footer__social a:hover { background: var(--color-primary); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between; align-items: center;
  font-size: 13px;
}
.footer__bottom-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__bottom-links a:hover { color: #fff; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 768px) {
  /* Nav */
  .nav__links, .nav__cta, .lang-switcher { display: none; }
  .nav__hamburger { display: flex; }

  /* Hero */
  .hero { padding: 48px 0 40px; }
  .hero__inner { flex-direction: column; gap: 40px; text-align: center; }
  .hero__subtitle { margin: 0 auto 32px; }
  .hero__actions { justify-content: center; }
  .hero__visual { display: none; }

  /* Steps */
  .steps { flex-direction: column; gap: 32px; }
  .steps::before { display: none; }

  /* Footer */
  .footer__inner { flex-direction: column; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }

  /* Features grid */
  .features__grid { grid-template-columns: 1fr; }
}

/* =========================================
   COOKIE CONSENT BANNER
   ========================================= */
.cookie-banner {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 200; width: calc(100% - 48px); max-width: 640px;
  background: var(--color-text); color: rgba(255,255,255,0.85);
  border-radius: var(--radius); padding: 20px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { flex: 1; font-size: 14px; line-height: 1.5; min-width: 200px; }
.cookie-banner__text a { color: #fff; text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner__btn { padding: 9px 18px; font-size: 14px; }
.btn-outline.cookie-banner__btn { color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.3); }
.btn-outline.cookie-banner__btn:hover { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.6); }

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero__actions { flex-direction: column; align-items: center; }
  .download__badges { flex-direction: column; align-items: center; }
}

/* =========================================
   HOST SIGNUP (biker accommodation)
   ========================================= */
.host-page .nav__links { display: none; }
.host-page .nav__hamburger { display: none; }

.host-hero {
  padding: 72px 0 56px;
  background: linear-gradient(135deg, #fff 0%, var(--color-primary-light) 55%, #fff 100%);
}
.host-hero__inner {
  display: flex;
  align-items: center;
  gap: 48px;
}
.host-hero__content { flex: 1; max-width: 620px; }
.host-hero__title {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}
.host-hero__title span { color: var(--color-primary); }
.host-hero__lead {
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.host-hero__highlight {
  font-size: 17px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--color-primary-light);
  margin-bottom: 28px;
  line-height: 1.5;
}
.host-hero__highlight strong { color: var(--color-primary); }

.host-hero__card { flex: 0 0 280px; display: flex; justify-content: center; }
.host-preview {
  width: 100%;
  max-width: 280px;
  padding: 28px 24px;
  border-radius: var(--radius);
  background: var(--color-text);
  color: #fff;
  box-shadow: var(--shadow);
}
.host-preview__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 10px;
  border-radius: 20px;
  background: var(--color-primary);
  margin-bottom: 16px;
}
.host-preview__title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.host-preview__meta { font-size: 14px; opacity: 0.75; }

.host-benefits { padding: 64px 0; background: var(--color-bg-secondary); }
.host-benefits__grid { margin-top: 0; }

.host-apply {
  padding: 72px 0 88px;
  background: var(--color-bg);
}
.host-apply__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.host-apply__intro .section-title { text-align: left; margin-bottom: 16px; }
.host-apply__text {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}
.host-apply__checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.host-apply__checks li {
  font-size: 15px;
  color: var(--color-text);
  padding-left: 28px;
  position: relative;
}
.host-apply__checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
}

.host-form {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.host-form__status {
  font-size: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.host-form__status--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}
.host-form__status--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* Success overlay (full screen) */
body.host-success-open { overflow: hidden; }

.host-success-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}
.host-success-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}
.host-success-overlay__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.72);
  backdrop-filter: blur(4px);
}
.host-success-overlay__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 40px 32px 32px;
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.28s ease;
}
.host-success-overlay.is-visible .host-success-overlay__card {
  transform: scale(1) translateY(0);
}
.host-success-overlay__icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: flex;
  align-items: center;
  justify-content: center;
}
.host-success-overlay__title {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.2;
}
.host-success-overlay__message {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.host-success-overlay__btn {
  width: 100%;
  justify-content: center;
  font-size: 16px;
  padding: 14px 24px;
}

.host-form__field { margin-bottom: 18px; }
.host-form__field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.host-form__required { color: var(--color-primary); }
.host-form__field input,
.host-form__field select,
.host-form__field textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--font);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  transition: var(--transition);
}
.host-form__field input:focus,
.host-form__field select:focus,
.host-form__field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.host-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.host-form__row .host-form__field { margin-bottom: 0; }
.host-form__row { margin-bottom: 18px; }
.host-form__consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 22px;
  cursor: pointer;
}
.host-form__consent input { margin-top: 3px; flex-shrink: 0; }
.host-form__consent a { color: var(--color-primary); text-decoration: underline; }
.host-form__submit { width: 100%; justify-content: center; font-size: 16px; padding: 14px 24px; }
.host-form__submit:disabled { opacity: 0.7; cursor: not-allowed; }
.host-form__footnote {
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}
.host-form__footnote a { color: var(--color-primary); text-decoration: underline; }
.host-form__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  .host-apply__inner { grid-template-columns: 1fr; }
  .host-hero__inner { flex-direction: column; text-align: center; }
  .host-hero__card { flex: none; width: 100%; }
  .host-apply__intro .section-title { text-align: center; }
  .host-apply__checks { max-width: 400px; margin: 0 auto; }
}

@media (max-width: 600px) {
  .host-form__row { grid-template-columns: 1fr; gap: 0; }
  .host-form__row .host-form__field { margin-bottom: 18px; }
  .host-hero__card { display: none; }
  .host-page .nav__cta { display: none; }
}
