/* UDC — laptop layout + consent banner (2026-10-28). Additive overrides only; main.css untouched. */

/* ---------- Laptop / desktop layout ---------- */
@media (min-width: 1024px) {
  /* The File-viewer card caps the whole page at 1040px; let the site use a laptop screen */
  .file-card.udc-card {
    max-width: 1240px;
  }

  /* Widen the single mobile column into a real desktop container */
  .udc-section,
  .udc-footer,
  .udc-end {
    max-width: 1120px;
  }
  .udc-hero-content {
    max-width: 1120px;
  }

  /* Hero: headline fits on one line, lede keeps a readable measure */
  .udc-h1 {
    font-size: 64px;
  }
  .udc-lede {
    max-width: 620px;
  }

  /* "One chat. Five steps." scene card gets room */
  .udc-scene-card {
    max-width: 620px;
    padding: 34px 32px;
  }
  .udc-scene-title {
    font-size: 34px;
  }

  /* "Watch AKIF work a deal": copy left, chat demo right */
  #deal {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    column-gap: 64px;
    align-items: center;
  }
  #deal > .udc-eyebrow,
  #deal > .udc-h2 {
    grid-column: 1;
  }
  #deal > .udc-play {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
    width: 100%;
    max-width: 480px;
    margin: 0;
  }

  /* "Seen, verified, then paid": copy left, timeline right */
  .udc-section:has(> ol.udc-timeline) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    column-gap: 64px;
    align-items: start;
  }
  .udc-section:has(> ol.udc-timeline) > .udc-eyebrow,
  .udc-section:has(> ol.udc-timeline) > .udc-h2,
  .udc-section:has(> ol.udc-timeline) > .udc-section-sub {
    grid-column: 1;
  }
  .udc-section:has(> ol.udc-timeline) > ol.udc-timeline {
    grid-column: 2;
    grid-row: 1 / span 3;
    margin-top: 10px;
  }

  /* AKIF card breathes */
  .udc-akif {
    padding: 96px 60px 84px;
  }

  /* FAQ rows slightly larger on big screens */
  .udc-faq summary {
    font-size: 16.5px;
  }

  /* Cards use the extra width gracefully */
  .udc-trust-grid,
  .udc-compare,
  .udc-join-grid,
  .udc-aud-grid {
    gap: 18px;
  }

  /* Footer: stop the contact email clipping against the card edge */
  .udc-footer2-col a,
  .udc-footer2-col a:link,
  .udc-footer2-col a:visited {
    overflow-wrap: anywhere;
  }
  .udc-footer2 {
    padding: 44px 40px 28px;
  }
}

/* Very wide monitors: keep the measure tidy */
@media (min-width: 1600px) {
  .file-card.udc-card {
    max-width: 1360px;
  }
  .udc-section,
  .udc-footer,
  .udc-end,
  .udc-hero-content {
    max-width: 1240px;
  }
}

/* ---------- Consent banner ---------- */
.udc-consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 560px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  padding: 18px 18px 16px;
  box-sizing: border-box;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: #1a1a1a;
  display: none;
}
.udc-consent.is-open {
  display: block;
  animation: udc-consent-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes udc-consent-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.udc-consent-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #111111;
  margin: 0 0 8px;
}
.udc-consent-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f26a1b;
}
.udc-consent-text {
  font-size: 13px;
  line-height: 1.6;
  color: #4b5560;
  margin: 0 0 14px;
}
.udc-consent-text a,
.udc-consent-text a:link,
.udc-consent-text a:visited {
  color: #111111;
}
.udc-consent-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.udc-consent-btn {
  flex: 1 1 auto;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.25);
  background: #ffffff;
  color: #111111;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.udc-consent-btn:hover {
  transform: translateY(-1px);
}
.udc-consent-btn-primary {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}
@media (min-width: 1024px) {
  .udc-consent {
    left: auto;
    right: 28px;
    bottom: 28px;
    max-width: 400px;
    margin: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .udc-consent.is-open { animation: none; }
  .udc-consent-btn { transition: none; }
}
