/* Page-scoped styles for the German conversion landing at /de/app/.
   Shared base (reset, .skip-link, .sr-only) comes from ../lovable-home.css; everything visible is defined here. */

.dl-page {
  --dl-navy: #1d2a5e;
  --dl-blue: #2f4bc7;
  --dl-blue-dark: #253da6;
  --dl-text: #1b1f33;
  --dl-muted: #5b6075;
  --dl-line: #e3e6ef;
  --dl-tint: #f4f6fc;
  --dl-sticky-height: 72px;
  margin: 0;
  color: var(--dl-text);
  background: #fff;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
html { scroll-padding-bottom: 110px; }
.dl-page h1, .dl-page h2, .dl-page h3 { font-family: inherit; font-weight: 700; letter-spacing: -.01em; hyphens: manual; overflow-wrap: normal; }
.dl-page a:focus-visible { outline: 3px solid var(--dl-blue); outline-offset: 3px; }
.dl-wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.dl-narrow { max-width: 720px; }
.dl-sticky-ready { padding-bottom: calc(var(--dl-sticky-height) + env(safe-area-inset-bottom, 0px)); }

/* Header */
.dl-header { border-bottom: 1px solid var(--dl-line); background: #fff; }
.dl-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; min-height: 56px; padding-block: 6px; }
.dl-brand { display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: var(--dl-navy); font-weight: 700; font-size: 1.05rem; }
.dl-brand img { width: 32px; height: 32px; border-radius: 8px; }
.dl-header-note { min-width: 0; color: var(--dl-muted); font-size: .9rem; }

/* Hero */
.dl-hero { padding: 48px 0 40px; }
.dl-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.dl-audience { margin: 0 0 14px; color: var(--dl-blue); font-size: .95rem; font-weight: 600; }
.dl-hero h1 { max-width: 14ch; margin: 0 0 16px; font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.1; color: var(--dl-navy); }
.dl-lead { max-width: 560px; margin: 0; font-size: 1.15rem; line-height: 1.55; color: var(--dl-text); }
.dl-cta-row { margin: 26px 0 0; }
.dl-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  color: #fff;
  background: var(--dl-blue);
  border: 1px solid var(--dl-blue);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 6px 18px rgba(47, 75, 199, .25);
  transition: background .15s ease;
}
.dl-cta:hover { background: var(--dl-blue-dark); }
.dl-cta-note { margin: 12px 0 0; color: var(--dl-muted); font-size: .9rem; }
.dl-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
/* Desktop only: same download action, continued on the phone */
.dl-qr { display: none; align-items: center; gap: 12px; color: var(--dl-muted); font-size: .84rem; font-weight: 600; text-decoration: none; }
.dl-qr img { width: 96px; height: 96px; border: 1px solid var(--dl-line); border-radius: 8px; }

.dl-preview { margin: 0; justify-self: center; text-align: center; }
.dl-preview-crop { width: 232px; height: 400px; margin-inline: auto; overflow: hidden; border-radius: 22px; border: 1px solid var(--dl-line); box-shadow: 0 14px 36px rgba(29, 42, 94, .14); background: #f7f7fc; }
/* Crop: the top of the unmodified screenshot, no transforms */
.dl-preview-crop img { display: block; width: 100%; height: auto; }
.dl-preview figcaption { margin-top: 10px; color: var(--dl-muted); font-size: .82rem; }

/* Sections */
.dl-section { padding: 52px 0; }
.dl-section h2 { margin: 0 0 22px; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.2; color: var(--dl-navy); }

/* Benefits */
.dl-benefits { background: var(--dl-tint); }
.dl-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.dl-benefit-grid li { padding: 22px 22px 24px; background: #fff; border: 1px solid var(--dl-line); border-radius: 12px; }
.dl-benefit-grid h3 { margin: 0 0 8px; font-size: 1.08rem; color: var(--dl-navy); }
.dl-benefit-grid p { margin: 0; font-size: .98rem; line-height: 1.5; }
.dl-example-note { max-width: 720px; margin: 18px 0 0; color: var(--dl-muted); font-size: .84rem; line-height: 1.5; }

/* FAQ */
.dl-faq-list details { border-top: 1px solid var(--dl-line); }
.dl-faq-list details:last-child { border-bottom: 1px solid var(--dl-line); }
.dl-faq-list summary { position: relative; min-height: 48px; padding: 14px 36px 14px 0; cursor: pointer; font-weight: 600; list-style: none; }
.dl-faq-list summary::-webkit-details-marker { display: none; }
.dl-faq-list summary::after { content: "+"; position: absolute; right: 2px; top: 8px; color: var(--dl-blue); font-size: 1.6rem; font-weight: 400; }
.dl-faq-list details[open] summary::after { content: "–"; }
.dl-faq-list p { margin: 0 0 16px; padding-right: 24px; color: var(--dl-muted); line-height: 1.5; }
.dl-faq-list a { color: var(--dl-blue); }

/* Final call */
.dl-final { background: var(--dl-navy); color: #fff; }
.dl-final h2 { max-width: 22ch; margin: 0; color: #fff; }
.dl-final .dl-cta { background: #fff; color: var(--dl-navy); border-color: #fff; box-shadow: none; }
.dl-final .dl-cta:hover { background: #eef1fb; }
.dl-final .dl-cta-note { color: #c4cae6; }

/* Footer */
.dl-footer { padding: 24px 0; color: var(--dl-muted); font-size: .84rem; border-top: 1px solid var(--dl-line); }
.dl-footer p { margin: 0 0 8px; }
.dl-footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.dl-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--dl-navy); overflow-wrap: anywhere; }

/* Sticky download bar: only rendered once landing.js adds .dl-sticky-ready, mobile only */
.dl-sticky { display: none; }
.dl-sticky-ready .dl-sticky {
  position: fixed;
  z-index: 30;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .95);
  border-top: 1px solid var(--dl-line);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, visibility .25s;
}
.dl-sticky .dl-cta { width: 100%; min-height: 52px; }
.dl-sticky.dl-sticky-off { transform: translateY(110%); visibility: hidden; }

@media (min-width: 901px) {
  .dl-qr { display: flex; }
}

@media (max-width: 900px) {
  .dl-hero { padding: 32px 0 36px; }
  .dl-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .dl-hero h1 { max-width: none; }
  .dl-preview-crop { width: 220px; height: 300px; }
  .dl-benefit-grid { grid-template-columns: 1fr; gap: 14px; }
  .dl-final-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  /* The shared stylesheet enlarges the root font on phones; this page sizes itself. */
  html { font-size: 100%; }
  .dl-page { font-size: 16px; }
  .dl-wrap { width: min(100% - 32px, 600px); }
  .dl-hero { padding-top: 24px; }
  .dl-hero h1 { font-size: clamp(1.85rem, 8vw, 2.4rem); }
  .dl-lead { font-size: 1.05rem; }
  .dl-cta-row { margin-top: 22px; }
  .dl-cta { width: 100%; }
  .dl-section { padding: 40px 0; }
  .dl-sticky-ready .dl-sticky { display: block; }
}

@media (min-width: 721px) {
  .dl-sticky-ready { padding-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .dl-sticky, .dl-cta { transition: none; }
}
