/* ============== Landing layout (in addition to master.css) ============== */

/* Override page styles for landing */
html, body {
  font-family: 'Cairo', sans-serif;
  background: var(--cream);
  color: var(--ink);
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}
body[data-active-lang="de"] {
  font-family: 'Inter', sans-serif;
}

/* Sticky topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--purple);
  color: white;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}
.topbar .brand img {
  height: 26px;
  width: auto;
  background: white;
  padding: 4px 10px;
  border-radius: 5px;
  display: block;
}
.topbar .lang-switch {
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 4px;
}
.topbar .lang-switch button {
  background: transparent;
  border: none;
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.15s;
}
.topbar .lang-switch button.active {
  background: white;
  color: var(--purple);
}
.topbar .dl-btn {
  background: white;
  color: var(--purple);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* Language sections */
.lang-section { padding: 0; }
body[data-active-lang="ar"] .lang-section[data-lang="de"] { display: none; }
body[data-active-lang="de"] .lang-section[data-lang="ar"] { display: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 60px 24px 40px;
  background: var(--cream);
}
.hero .logo-wrap {
  background: white;
  display: inline-block;
  padding: 18px 40px;
  border-radius: 18px;
  margin-bottom: 24px;
}
.hero .logo-wrap img {
  height: 60px; width: auto; display: block;
}
.hero h1 {
  font-size: 38px;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 8px;
  line-height: 1.2;
}
.lang-section[data-lang="de"] .hero h1 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.6px;
}
.hero .sub {
  font-size: 18px;
  color: var(--purple);
  font-weight: 500;
}
.lang-section[data-lang="de"] .hero .sub { font-family: 'Inter', sans-serif; }

.hero .url {
  font-family: monospace, sans-serif;
  background: var(--lavender-light);
  color: var(--purple-dark);
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  display: inline-block;
  margin-top: 20px;
  direction: ltr;
}

/* Step blocks */
.step {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 24px;
  border-bottom: 1px solid var(--light-grey);
}
.step:last-child { border-bottom: none; }
.step .step-pill {
  display: inline-block;
  background: var(--purple);
  color: white;
  padding: 7px 18px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h2 {
  font-size: 30px;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 8px;
  line-height: 1.25;
}
.lang-section[data-lang="de"] .step h2 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.5px;
}
.step .accent {
  width: 80px; height: 4px; background: var(--purple);
  border-radius: 2px;
  margin: 0 0 22px;
  position: relative;
}
.lang-section[data-lang="ar"] .step .accent { margin-right: 0; margin-left: auto; }
.step .accent::after {
  content: ''; position: absolute;
  width: 12px; height: 12px;
  background: var(--lavender); border-radius: 50%;
  top: -4px;
}
.lang-section[data-lang="ar"] .step .accent::after { right: -12px; }
.lang-section[data-lang="de"] .step .accent::after { left: -12px; }

.step-body {
  display: flex;
  gap: 50px;
  align-items: center;
}
.lang-section[data-lang="ar"] .step-body { flex-direction: row-reverse; }
.step.lefty .step-body { flex-direction: row-reverse; }
.lang-section[data-lang="ar"] .step.lefty .step-body { flex-direction: row; }

.step-phone-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}
.step-caption {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-caption p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
}
.lang-section[data-lang="de"] .step-caption p {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}
.step-caption p strong { color: var(--purple-dark); font-weight: 700; }

.step-caption .url-tag {
  display: inline-block;
  font-family: monospace, sans-serif;
  background: var(--lavender-light);
  color: var(--purple-dark);
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  direction: ltr;
}
.step-caption ol, .step-caption ul {
  font-size: 17px;
  line-height: 1.9;
  color: var(--ink);
}
.lang-section[data-lang="ar"] .step-caption ol, .lang-section[data-lang="ar"] .step-caption ul {
  padding-right: 30px;
}
.lang-section[data-lang="de"] .step-caption ol, .lang-section[data-lang="de"] .step-caption ul {
  padding-left: 30px;
  font-family: 'Inter', sans-serif;
}
.step-caption ol li, .step-caption ul li { margin-bottom: 4px; }

.step-caption .tip {
  background: var(--lavender-light);
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 15px;
  color: var(--ink);
  line-height: 1.6;
}
.lang-section[data-lang="ar"] .step-caption .tip { border-right: 4px solid var(--purple); }
.lang-section[data-lang="de"] .step-caption .tip {
  border-left: 4px solid var(--purple);
  font-family: 'Inter', sans-serif;
}
.step-caption .tip::before { content: '💡 '; }

/* Footer */
.site-footer {
  background: var(--purple-dark);
  color: white;
  text-align: center;
  padding: 28px 24px;
  font-size: 14px;
  letter-spacing: 0.5px;
}
.site-footer .url {
  color: var(--lavender);
  font-family: monospace, sans-serif;
  font-weight: 700;
  display: block;
  margin-top: 4px;
}

/* ============== Responsive — mobile ============== */
@media (max-width: 800px) {
  .topbar {
    padding: 10px 14px;
    gap: 8px;
  }
  .topbar .brand img { height: 22px; }
  .topbar .lang-switch button { padding: 5px 12px; font-size: 13px; }
  .topbar .dl-btn { padding: 6px 10px; font-size: 13px; }

  .hero { padding: 40px 20px 30px; }
  .hero h1 { font-size: 28px; }
  .hero .sub { font-size: 16px; }
  .hero .logo-wrap { padding: 14px 30px; }
  .hero .logo-wrap img { height: 48px; }

  .step { padding: 32px 20px; }
  .step h2 { font-size: 24px; }
  .step-body {
    flex-direction: column !important;
    gap: 28px;
  }
  .step-caption p { font-size: 16px; }
  .step-caption ol, .step-caption ul { font-size: 15px; }
  .step-caption .tip { font-size: 14px; }
}

/* ============== Welcome screen ============== */
.welcome {
  text-align: center;
  padding: 60px 24px 80px;
  max-width: 900px;
  margin: 0 auto;
}
.welcome .logo-wrap {
  background: white;
  display: inline-block;
  padding: 18px 40px;
  border-radius: 18px;
  margin-bottom: 30px;
}
.welcome .logo-wrap img {
  height: 60px; width: auto; display: block;
}
.welcome h1 {
  font-size: 36px;
  font-weight: 700;
  color: var(--purple-dark);
  margin-bottom: 18px;
  line-height: 1.4;
  text-wrap: balance;
}
.lang-section[data-lang="de"] .welcome h1 {
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.4px;
  font-size: 30px;
}
.welcome .heart {
  color: var(--purple);
  display: inline-block;
}
.welcome .lead {
  font-size: 19px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 14px;
}
.lang-section[data-lang="de"] .welcome .lead { font-family: 'Inter', sans-serif; }
.welcome .prompt {
  font-size: 17px;
  color: var(--grey);
  line-height: 1.6;
  margin-top: 30px;
  margin-bottom: 26px;
}
.lang-section[data-lang="de"] .welcome .prompt { font-family: 'Inter', sans-serif; }

.device-picker {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.device-card {
  background: white;
  border: 3px solid var(--lavender);
  border-radius: 22px;
  padding: 32px 36px;
  width: 280px;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-family: inherit;
  color: var(--ink);
}
.device-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  box-shadow: 0 12px 30px rgba(107,33,168,0.12);
}
.device-card .icon {
  font-size: 56px;
  line-height: 1;
}
.device-card .name {
  font-size: 24px;
  font-weight: 800;
  color: var(--purple-dark);
}
.lang-section[data-lang="de"] .device-card .name {
  font-family: 'Inter', sans-serif;
}
.device-card .browser {
  font-size: 14px;
  color: var(--grey);
  font-family: monospace, sans-serif;
}

/* ============== Device-based filtering ============== */
/* Hide all steps when no device chosen */
body:not([data-active-device]) .steps-container { display: none; }
/* Hide welcome when device chosen */
body[data-active-device] .welcome { display: none; }
/* Hide non-matching device steps */
body[data-active-device="ios"] .step[data-device="android"] { display: none; }
body[data-active-device="android"] .step[data-device="ios"] { display: none; }

/* "Change device" button — only visible after device chosen */
.topbar .device-toggle {
  display: none;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  font-family: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 18px;
  cursor: pointer;
  white-space: nowrap;
}
body[data-active-device] .topbar .device-toggle { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 800px) {
  .welcome { padding: 30px 18px 50px; }
  .welcome h1 { font-size: 24px; line-height: 1.5; }
  .welcome .lead { font-size: 16px; }
  .welcome .prompt { font-size: 14px; }
  .welcome .logo-wrap { padding: 14px 30px; }
  .welcome .logo-wrap img { height: 48px; }
  .device-card { width: 100%; max-width: 320px; padding: 24px 28px; }
  .device-card .icon { font-size: 48px; }
  .device-card .name { font-size: 20px; }
}
