/* Jogandopra — Tiles Hop editorial (unique v21) */
:root {
  --dd-bg: #ffffff;
  --dd-bg-soft: #f8fafc;
  --dd-line: #e2e8f0;
  --dd-ink: #0f172a;
  --dd-muted: #475569;
  --dd-faint: #64748b;
  --dd-accent: #0369a1;
  --dd-accent-soft: #e0f2fe;
  --dd-radius: 14px;
  --dd-radius-lg: 20px;
  --dd-max: 1200px;
  --dd-font-display: "Syne", system-ui, sans-serif;
  --dd-font-body: "Source Sans 3", system-ui, sans-serif;
  --dd-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
  --dd-shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--dd-font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--dd-ink);
  background: var(--dd-bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
}

body.dd-nav-open {
  overflow: hidden;
}

@supports selector(:has(*)) {
  body:has(.dd-nav-toggle:checked) {
    overflow: hidden;
    touch-action: none;
  }
}

/* Tile motif — very subtle */
.dd-page-bg {
  background-color: var(--dd-bg);
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(148, 163, 184, 0.07) 0,
      rgba(148, 163, 184, 0.07) 1px,
      transparent 1px,
      transparent 11px
    ),
    radial-gradient(
      ellipse 80% 55% at 50% -15%,
      rgba(56, 189, 248, 0.09),
      transparent 58%
    );
}

a {
  color: var(--dd-accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: #075985;
}

.dd-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 2px solid var(--dd-ink);
  border-radius: 8px;
}

.dd-skip:focus {
  left: 1rem;
  top: 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.dd-max {
  max-width: var(--dd-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* Header — light corporate bar (white site) */
/* Sem backdrop-filter no header: em WebKit/Chromium, backdrop-filter no ancestral
   cria bloco de contenção e quebra position:fixed do menu (links ficam em faixa horizontal). */
.dd-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--dd-line);
  padding-top: env(safe-area-inset-top, 0px);
}

.dd-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.dd-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--dd-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--dd-ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.dd-brand img {
  display: block;
  flex-shrink: 0;
}

/* Nav desktop */
.dd-nav-toggle {
  display: none;
}

.dd-burger {
  display: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--dd-line);
  background: #fff;
}

.dd-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dd-ink);
  margin: 5px 0;
  border-radius: 2px;
  transition:
    transform 0.2s,
    opacity 0.2s;
}

.dd-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
}

.dd-nav a {
  color: var(--dd-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
}

.dd-nav a:hover,
.dd-nav a:focus-visible {
  color: var(--dd-ink);
  background: var(--dd-bg-soft);
  outline: none;
}

.dd-nav a[aria-current="page"] {
  color: var(--dd-ink);
  background: var(--dd-accent-soft);
}

.dd-store {
  flex-shrink: 0;
}

.dd-store img {
  display: block;
  height: auto;
  width: min(170px, 42vw);
}

/* Mobile overlay nav */
@media (max-width: 980px) {
  .dd-header__inner {
    flex-wrap: wrap;
    row-gap: 0;
    align-items: center;
    min-height: auto;
    padding-block: 0.5rem;
  }

  .dd-brand {
    flex: 1 1 auto;
    min-width: 0;
    z-index: 155;
  }

  .dd-header .dd-store {
    flex: 1 1 100%;
    order: 4;
    display: flex;
    justify-content: center;
    padding-top: 0.6rem;
    margin-top: 0.35rem;
    border-top: 1px solid var(--dd-line);
  }

  .dd-header .dd-store img {
    width: min(200px, 78vw);
    margin-inline: auto;
  }

  .dd-burger {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 160;
    min-width: 44px;
    min-height: 44px;
  }

  .dd-nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }

  .dd-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    min-height: 100%;
    min-height: 100dvh;
    box-sizing: border-box;
    margin: 0;
    z-index: 140;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: calc(4.5rem + env(safe-area-inset-top, 0px)) 1.25rem
      calc(2rem + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    background: #f8fafc;
    border: 0;
    transform: translate3d(0, -100%, 0);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.28s ease,
      opacity 0.28s ease,
      visibility 0.28s;
  }

  .dd-nav-toggle:checked ~ .dd-nav {
    transform: translate3d(0, 0, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .dd-nav a {
    font-size: 1.05rem;
    padding: 0.75rem 0.85rem;
    width: 100%;
    max-width: 360px;
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .dd-nav-toggle:checked ~ .dd-burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .dd-nav-toggle:checked ~ .dd-burger span:nth-child(2) {
    opacity: 0;
  }

  .dd-nav-toggle:checked ~ .dd-burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

/* Hero */
.dd-hero {
  position: relative;
  min-height: min(72vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: clamp(2rem, 6vw, 4rem) 0;
  overflow: hidden;
}

.dd-hero__bg {
  position: absolute;
  inset: 0;
  background: #0f172a;
}

.dd-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}

.dd-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.45) 45%,
    rgba(15, 23, 42, 0.2) 100%
  );
}

.dd-hero .dd-max {
  position: relative;
  z-index: 2;
  width: 100%;
}

.dd-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #bae6fd;
  font-weight: 700;
}

.dd-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--dd-font-display);
  font-size: clamp(1.85rem, 4.5vw, 3.05rem);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.dd-lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 56ch;
}

.dd-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.dd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-family: var(--dd-font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}

.dd-btn:focus-visible {
  outline: 3px solid #38bdf8;
  outline-offset: 2px;
}

.dd-btn--light {
  background: #fff;
  color: var(--dd-ink);
  box-shadow: var(--dd-shadow-soft);
}

.dd-btn--light:hover {
  transform: translateY(-2px);
}

.dd-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.dd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.dd-hero .dd-store img {
  width: 200px;
  max-width: 100%;
}

/* Sections */
.dd-section {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.dd-section--tight {
  padding: clamp(2rem, 5vw, 3.5rem) 0;
}

.dd-section__head {
  margin-bottom: 2rem;
}

.dd-h2 {
  margin: 0 0 0.5rem;
  font-family: var(--dd-font-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.dd-h3 {
  margin: 0 0 0.5rem;
  font-family: var(--dd-font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dd-muted {
  color: var(--dd-muted);
  margin: 0;
}

/* Two columns */
.dd-grid-2 {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

@media (max-width: 900px) {
  .dd-grid-2 {
    grid-template-columns: 1fr;
  }
}

.dd-panel {
  border: 1px solid var(--dd-line);
  border-radius: var(--dd-radius-lg);
  background: #fff;
  box-shadow: var(--dd-shadow-soft);
  padding: 1.5rem 1.75rem;
}

.dd-info-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.dd-info-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dd-faint);
  margin-bottom: 0.2rem;
}

.dd-info-list dd {
  margin: 0;
  font-weight: 700;
  color: var(--dd-ink);
}

/* Feature banner full width */
.dd-banner {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
  border-radius: var(--dd-radius-lg);
  overflow: hidden;
  box-shadow: var(--dd-shadow);
}

.dd-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dd-banner__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 23, 42, 0.88),
    rgba(15, 23, 42, 0.15)
  );
}

.dd-banner .dd-banner__text {
  position: relative;
  z-index: 2;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  max-width: 560px;
}

.dd-banner h2 {
  margin: 0 0 0.5rem;
  font-family: var(--dd-font-display);
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.dd-banner p {
  margin: 0;
  color: #e2e8f0;
}

/* Z rows */
.dd-z {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-bottom: 1px solid var(--dd-line);
}

.dd-z:last-child {
  border-bottom: none;
}

.dd-z--flip .dd-z__media {
  order: 2;
}

.dd-z--flip .dd-z__copy {
  order: 1;
}

@media (max-width: 800px) {
  .dd-z,
  .dd-z--flip {
    grid-template-columns: 1fr;
  }

  .dd-z--flip .dd-z__media,
  .dd-z--flip .dd-z__copy {
    order: unset;
  }
}

.dd-shot {
  border-radius: var(--dd-radius-lg);
  overflow: hidden;
  border: 1px solid var(--dd-line);
  box-shadow: var(--dd-shadow-soft);
  background: #fff;
}

.dd-shot img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

/* Media grid */
.dd-media-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

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

.dd-media-card {
  position: relative;
  border-radius: var(--dd-radius);
  overflow: hidden;
  border: 1px solid var(--dd-line);
  background: var(--dd-bg-soft);
}

.dd-media-card img {
  width: 100%;
  display: block;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.dd-media-card__cap {
  padding: 1rem 1.1rem 1.2rem;
}

.dd-play {
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  display: grid;
  place-items: center;
  box-shadow: var(--dd-shadow);
  pointer-events: none;
}

.dd-play::after {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent var(--dd-ink);
  margin-left: 4px;
}

/* CTA buy strip */
.dd-buy {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 2rem;
  align-items: center;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid var(--dd-line);
  border-radius: var(--dd-radius-lg);
  background: linear-gradient(135deg, #fff, #f8fafc);
  box-shadow: var(--dd-shadow-soft);
}

@media (max-width: 800px) {
  .dd-buy {
    grid-template-columns: 1fr;
  }
}

.dd-buy__art img {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  display: block;
  margin-inline: auto;
  border: 1px solid var(--dd-line);
}

.dd-check {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--dd-muted);
}

.dd-check li {
  margin-bottom: 0.4rem;
}

/* Newsletter */
.dd-news {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--dd-line);
}

.dd-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.25rem;
  max-width: 480px;
  margin-inline: auto;
}

.dd-form input[type="email"] {
  flex: 1 1 220px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--dd-line);
  font: inherit;
  background: #fff;
}

.dd-form .dd-btn {
  background: var(--dd-ink);
  color: #fff;
}

.dd-form .dd-btn:hover {
  transform: translateY(-2px);
}

.dd-legal-note {
  font-size: 0.78rem;
  color: var(--dd-faint);
  max-width: 520px;
  margin: 1rem auto 0;
}

/* Cards list (news) */
.dd-cards {
  display: grid;
  gap: 1rem;
}

.dd-card {
  border: 1px solid var(--dd-line);
  border-radius: var(--dd-radius);
  padding: 1.35rem 1.5rem;
  background: #fff;
  box-shadow: var(--dd-shadow-soft);
}

.dd-card time {
  font-size: 0.8rem;
  color: var(--dd-faint);
  font-weight: 600;
}

/* Legal prose */
.dd-article {
  max-width: 760px;
}

.dd-article h2 {
  font-family: var(--dd-font-display);
  font-size: 1.35rem;
  margin-top: 2rem;
}

.dd-article p,
.dd-article ul {
  color: var(--dd-muted);
}

.dd-article ul {
  padding-left: 1.2rem;
}

/* Footer */
.dd-footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 2rem;
  margin-top: 0;
}

.dd-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.dd-footer a:hover {
  color: #7dd3fc;
}

.dd-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 800px) {
  .dd-footer__cols {
    grid-template-columns: 1fr;
  }
}

.dd-footer h3 {
  font-family: var(--dd-font-display);
  font-size: 0.95rem;
  color: #fff;
  margin: 0 0 0.85rem;
  letter-spacing: 0.02em;
}

.dd-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dd-footer li {
  margin-bottom: 0.55rem;
}

.dd-footer__bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: #94a3b8;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

/* Cookie bar */
.dd-cookie {
  position: fixed;
  z-index: 2000;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem;
  transform: translateY(110%);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.dd-cookie.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

.dd-cookie__inner {
  max-width: var(--dd-max);
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  background: #fff;
  border: 1px solid var(--dd-line);
  border-radius: var(--dd-radius-lg);
  box-shadow: var(--dd-shadow);
}

.dd-cookie p {
  margin: 0;
  color: var(--dd-muted);
  font-size: 0.92rem;
  flex: 1 1 280px;
}

.dd-cookie__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.dd-cookie .dd-btn--ghost-dark {
  border-color: var(--dd-line);
  color: var(--dd-ink);
  background: #fff;
}

.dd-cookie .dd-btn--ghost-dark:hover {
  background: var(--dd-bg-soft);
}

body.dd-pad-cookie {
  padding-bottom: max(110px, calc(5.5rem + env(safe-area-inset-bottom, 0px)));
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
    line-height: 1.6;
  }

  .dd-max {
    padding-inline: clamp(0.85rem, 4.5vw, 1.25rem);
  }

  .dd-panel {
    padding: 1.15rem 1.2rem;
  }

  .dd-card {
    padding: 1.15rem 1.2rem;
  }

  .dd-h3 {
    font-size: 1.15rem;
  }

  .dd-hero {
    min-height: min(85dvh, 560px);
    padding-bottom: clamp(1.5rem, 5vw, 2.5rem);
  }

  .dd-hero h1 {
    max-width: none;
    hyphens: auto;
    word-wrap: break-word;
  }

  .dd-lead {
    font-size: 1rem;
  }

  .dd-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .dd-hero__actions .dd-btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  .dd-hero__actions .dd-store {
    display: flex;
    justify-content: center;
  }

  .dd-hero__actions .dd-store img {
    width: min(240px, 88vw);
  }

  .dd-banner {
    min-height: 240px;
    border-radius: var(--dd-radius);
  }

  .dd-banner .dd-banner__text {
    max-width: none;
    padding: 1.15rem 1.1rem 1.35rem;
  }

  .dd-z {
    padding: 2rem 0;
    gap: 1.25rem;
  }

  .dd-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
  }

  .dd-cookie {
    padding: 0.65rem;
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  }

  .dd-cookie__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1rem;
  }

  .dd-cookie__actions {
    width: 100%;
    flex-direction: column;
  }

  .dd-cookie__actions .dd-btn {
    width: 100%;
    min-height: 48px;
  }

  .dd-form {
    flex-direction: column;
    align-items: stretch;
  }

  .dd-form input[type="email"] {
    width: 100%;
    min-height: 48px;
  }

  .dd-form .dd-btn {
    width: 100%;
    min-height: 48px;
  }
}

@supports not (min-height: 85dvh) {
  @media (max-width: 640px) {
    .dd-hero {
      min-height: min(85vh, 560px);
    }
  }
}
