@import url("./theme.css?v=20260625-shell-final");

/* ==================================================================
   APP SHELL
   - Navbar-only public shell
   - Smart-hide sticky topbar
   ================================================================== */

.dp-shell {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 100vh;
}

[data-app-shell] {
  display: none;
}

/* ---------- Sidebar (desktop) ---------- */
.dp-sidebar {
  display: none;
}
.dp-sidebar::-webkit-scrollbar { width: 6px; }
.dp-sidebar::-webkit-scrollbar-thumb { background: var(--muted-3); border-radius: 3px; }

.dp-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 4px;
  text-decoration: none;
}
.dp-brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 14px;
  color: #1A0E04;
}
.dp-brand strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.16em;
  color: var(--text);
}
.dp-brand span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

.dp-nav-group { display: grid; gap: 2px; margin-top: 4px; }
.dp-nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  padding: 10px 12px 4px;
}
.dp-nav { display: grid; gap: 2px; align-content: start; }
.dp-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: var(--soft);
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.dp-nav a:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
  text-decoration: none;
}
.dp-nav a.active {
  background: var(--accent-soft);
  border-color: var(--accent-ring);
  color: var(--accent-hover);
}
.dp-nav a .ico {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}
.dp-nav a:hover .ico, .dp-nav a.active .ico { color: currentColor; }
.dp-nav-trail {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: var(--surface);
}

.dp-sidebar-spacer { flex: 1; }
.dp-sidebar-footer {
  align-self: end;
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.dp-sidebar-note { color: var(--muted); font-size: 12px; line-height: 1.5; padding: 0 8px; }
.dp-version {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.10em;
  padding: 0 8px;
}
.dp-socials { display: flex; flex-wrap: wrap; gap: 10px; padding: 0 8px; }
.dp-socials a { color: var(--soft); font-size: 12px; font-weight: 600; }

/* ---------- Main ---------- */
.dp-main { display: flex; flex-direction: column; min-width: 0; width: min(1440px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- Topbar (sticky + smart-hide) ---------- */
.dp-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transform: translateY(0);
  transition: transform var(--t-med) var(--ease);
}
.dp-topbar.is-hidden { transform: translateY(-100%); }
/* On mobile, the topbar is too important to ever hide — search and nav must always be reachable */
/* ---------- Site Footer (injected by app-shell) ---------- */
.dp-footer {
  margin-top: 48px;
  padding: 28px 24px 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}
.dp-footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 14px; margin-bottom: 10px;
}
.dp-footer-brand { display: flex; align-items: center; gap: 10px; }
.dp-footer-tagline { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-top: 2px; }
.dp-footer-links { display: flex; gap: 14px; }
.dp-footer-links a { color: var(--soft); font-weight: 700; text-decoration: none; }
.dp-footer-links a:hover { color: var(--accent); }
.dp-footer-waitlist {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: var(--soft);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.dp-footer-waitlist:hover { color: var(--accent); }
.dp-footer-social { display: flex; gap: 12px; }
.dp-footer-social a { color: var(--muted); font-weight: 600; text-decoration: none; }
.dp-footer-social a:hover { color: var(--accent); }
.dp-footer-copy { color: var(--muted-2); }

@media (max-width: 760px) {
  .dp-footer-row { flex-direction: column; align-items: flex-start; }
  .dp-footer-links, .dp-footer-social { gap: 10px; flex-wrap: wrap; }
}

/* ---------- Explorer Tier Card — Hero integrated (right column, compact) ---------- */
/* ---------- Academy Tier Card — Hero integrated (right column, compact) ---------- */
[data-page="academy"] .dp-hero {
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: center;
  max-width: 1100px;
}
[data-page="academy"] .dp-academy-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
[data-page="academy"] .dp-academy-hero-card:hover {
  border-color: var(--accent-ring);
  box-shadow: 0 0 24px rgba(76, 201, 240, 0.08);
}
[data-page="academy"] .dp-academy-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.12) 0%, rgba(10, 14, 20, 0.92) 55%);
  z-index: 0;
}
[data-page="academy"] .dp-academy-card-body {
  position: relative;
  z-index: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dp-academy-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4cc9f0;
  background: rgba(76, 201, 240, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.dp-academy-card-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.dp-academy-card-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.dp-academy-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: #4cc9f0;
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: rgba(76, 201, 240, 0.1);
  border: 1px solid rgba(76, 201, 240, 0.2);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.dp-academy-card-cta:hover {
  background: rgba(76, 201, 240, 0.18);
  border-color: #4cc9f0;
}

/* Academy bottom tier card */
.dp-academy-tier-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 32px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.dp-academy-tier-card:hover {
  border-color: rgba(76, 201, 240, 0.4);
  box-shadow: 0 0 28px rgba(76, 201, 240, 0.08);
}
.dp-academy-tier-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.15) 0%, rgba(10, 14, 20, 0.94) 60%);
  z-index: 0;
}
.dp-academy-tier-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
}
.dp-academy-tier-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #4cc9f0;
  background: rgba(76, 201, 240, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.dp-academy-tier-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  display: block;
  margin-top: 8px;
}
.dp-academy-tier-desc {
  margin: 0;
  font-size: 13px;
  color: var(--soft);
  line-height: 1.45;
  max-width: 52ch;
}
.dp-academy-tier-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: #4cc9f0;
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: rgba(76, 201, 240, 0.1);
  border: 1px solid rgba(76, 201, 240, 0.25);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.dp-academy-tier-cta:hover {
  background: rgba(76, 201, 240, 0.18);
  border-color: #4cc9f0;
}

@media (max-width: 760px) {
  [data-page="academy"] .dp-hero { grid-template-columns: 1fr; gap: 18px; }
  .dp-academy-tier-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 16px;
  }
  .dp-academy-tier-heading { font-size: 1rem; }
  .dp-academy-tier-cta { align-self: stretch; text-align: center; justify-content: center; }
}

/* ---------- Secondary plan cards (Plans page) ---------- */
.dp-plan-grid--secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.dp-plan-card--secondary {
  padding: 16px 18px;
  text-align: left;
  opacity: 0.82;
}
.dp-plan-card--secondary h3 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 4px;
}
.dp-plan-card--secondary p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 8px;
}
.dp-plan-card--secondary a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}
.dp-plan-card--secondary a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  .dp-plan-grid--secondary { grid-template-columns: 1fr; }
}
.dp-explorer-hero-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.dp-explorer-hero-card:hover {
  border-color: var(--accent-ring);
  box-shadow: 0 0 24px rgba(255, 107, 53, 0.08);
}
.dp-explorer-hero-card .dp-explorer-card-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12) 0%, rgba(10, 14, 20, 0.92) 55%);
  z-index: 0;
}
.dp-explorer-hero-card .dp-explorer-card-body {
  position: relative;
  z-index: 1;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dp-explorer-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 107, 53, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.dp-explorer-card-heading {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.dp-explorer-card-desc {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.dp-explorer-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.dp-explorer-card-cta:hover {
  background: rgba(255, 107, 53, 0.18);
  border-color: var(--accent);
}

/* ---------- Explorer Tier Card — Bottom horizontal variant ---------- */
.dp-explorer-tier-card {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  margin-top: 32px;
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.dp-explorer-tier-card:hover {
  border-color: var(--accent-ring);
  box-shadow: 0 0 28px rgba(255, 107, 53, 0.08);
}
.dp-explorer-tier-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.15) 0%, rgba(10, 14, 20, 0.94) 60%);
  z-index: 0;
}
.dp-explorer-tier-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
}
.dp-explorer-tier-card .dp-explorer-tier-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 107, 53, 0.12);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}
.dp-explorer-tier-heading {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}
.dp-explorer-tier-desc {
  margin: 0;
  font-size: 13px;
  color: var(--soft);
  line-height: 1.45;
  max-width: 52ch;
}
.dp-explorer-tier-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.25);
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.dp-explorer-tier-cta:hover {
  background: rgba(255, 107, 53, 0.18);
  border-color: var(--accent);
}

@media (max-width: 760px) {
  .dp-explorer-tier-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 16px;
  }
  .dp-explorer-tier-heading { font-size: 1rem; }
  .dp-explorer-tier-cta { align-self: stretch; text-align: center; justify-content: center; }
}
/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .dp-topbar { transform: translateY(0) !important; }
  .dp-subnav { transform: translateY(0) !important; }
}

.dp-topbar-hamburger {
  display: none;
  appearance: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.dp-topbar-hamburger:hover { background: var(--surface); }
.dp-topbar-hamburger svg { width: 16px; height: 16px; }
@media (max-width: 920px) {
  .dp-topbar-hamburger { display: inline-flex; }
}

.dp-topbar-brand {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
  white-space: nowrap;
}
.dp-topbar-brand:hover { color: var(--accent); }

.dp-topbar-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0 auto;
}
.dp-topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.dp-topbar-link:hover {
  color: var(--text);
  background: var(--surface);
  border-color: var(--border);
}
.dp-topbar-link.active {
  color: var(--accent);
  background: rgba(255, 107, 53, 0.12);
  border-color: var(--accent-ring);
}

.dp-topbar-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.dp-topbar-crumb .sep { color: var(--muted-3); }
.dp-topbar-crumb .cur { color: var(--text); }

.dp-topbar-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.dp-topbar-search:focus-within { border-color: var(--accent); background: var(--surface); }
.dp-topbar-search svg { color: var(--muted); flex-shrink: 0; }
.dp-topbar-search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13.5px;
}
.dp-topbar-search input::placeholder { color: var(--muted); }
.dp-topbar-search kbd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.dp-topbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }

/* Topbar marketing / ad slot */
.dp-topbar-ad-slot {
  flex: 1;
  max-width: 380px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 12px;
  padding: 0 16px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: default;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.dp-topbar-ad-slot:hover { border-color: var(--accent); color: var(--soft); }
@media (max-width: 920px) {
  .dp-topbar-ad-slot { max-width: 200px; font-size: 10px; padding: 0 10px; }
  .dp-topbar-links { display: none; }
  .dp-topbar-brand { font-size: 12px; letter-spacing: 0.13em; }
}
@media (max-width: 760px) {
  .dp-topbar-ad-slot { display: none; }
  .dp-topbar { padding: 8px 12px; gap: 8px; }
  .dp-topbar-actions { gap: 6px; }
  .dp-topbar-actions .dp-btn.primary.small { display: none; }
  .dp-avatar-btn { max-width: 116px; }
  .dp-avatar-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.dp-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--soft);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  position: relative;
}
.dp-icon-btn:hover { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.dp-icon-btn[data-dot]::after {
  content: ""; position: absolute; top: 6px; right: 6px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 2px var(--bg);
}

.dp-avatar-btn {
  height: 36px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.dp-avatar-btn:hover { background: var(--surface); border-color: var(--border-strong); }
.dp-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #FF8550 0%, #FF6B35 35%, #2A3441 100%);
  display: inline-block;
  border: 1px solid var(--border-strong);
}

/* ---------- Compact filter rail (sits directly under topbar) ---------- */
.dp-subnav {
  position: sticky;
  top: 60px; /* under the topbar */
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 24px;
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transform: translateY(0);
  transition: transform var(--t-med) var(--ease);
  overflow-x: hidden;
}
.dp-subnav.is-hidden { transform: translateY(-160%); }
.dp-subnav .label-mini {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.dp-subnav .dp-chip-rail { flex: 1; min-width: 0; }

/* ---------- Page content padding ---------- */
.dp-main > :not(.dp-topbar):not(.dp-subnav) {
  padding: 24px clamp(16px, 4vw, 36px);
}
.dp-main > section + section,
.dp-main > div + section,
.dp-main > section + div { margin-top: 32px; }

.dp-hero {
  display: grid;
  gap: 12px;
  max-width: 880px;
  padding-top: 8px !important;
}
/* Explore page: 2-col hero with tier card */
[data-page="explore"] .dp-hero {
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: center;
  max-width: 1100px;
}
.dp-hero-text { min-width: 0; }
.dp-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.dp-hero h1 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.85rem, 4.4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.018em;
}
.dp-hero p {
  margin: 0;
  max-width: 64ch;
  color: var(--soft);
  font-size: 1rem;
  line-height: 1.55;
}

.dp-section { display: grid; gap: 16px; }
.dp-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.dp-section-head h2 {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dp-section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.dp-section-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 4px;
}

.dp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .dp-shell { grid-template-columns: 1fr; }
  .dp-sidebar { display: none; }
  .dp-grid { grid-template-columns: 1fr 1fr; }
  .dp-subnav { top: 56px; padding: 8px 14px; }
  .dp-topbar-crumb { display: none; }
}

@media (max-width: 760px) {
  .dp-main > :not(.dp-topbar):not(.dp-subnav) { padding: 18px 14px; }
  .dp-topbar { padding: 10px 14px; }
  [data-page="explore"] .dp-hero { grid-template-columns: 1fr; gap: 18px; }
  .dp-hero h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
  .dp-grid { grid-template-columns: 1fr; }
  .dp-section-head { align-items: start; flex-direction: column; gap: 8px; }
}

/* ---------- Tease launch navbar-only overrides ---------- */
[data-app-shell] {
  display: none !important;
}

.dp-shell {
  display: block !important;
}

.dp-main {
  width: min(1440px, calc(100% - 48px));
  max-width: 100%;
  margin: 0 auto;
}

.dp-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  width: 100vw;
  min-height: 60px;
  margin-inline-start: calc(50% - 50vw);
  margin-inline-end: 0;
  padding: 0 2rem;
  background: rgba(8, 8, 8, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.dp-avatar-btn,
.dp-topbar-search,
.dp-topbar-ad-slot,
.dp-topbar-crumb {
  display: none !important;
}

.dp-topbar-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
}

.dp-topbar-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.dp-topbar-brand .is-white { color: var(--text); }
.dp-topbar-brand .is-accent { color: var(--accent); }

.dp-topbar-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
  justify-self: center;
}

.dp-topbar-link {
  color: var(--text-soft);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.dp-topbar-link--button {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--text-soft);
}

.dp-topbar-link:hover,
.dp-topbar-link.active,
.dp-topbar-link--button:hover {
  color: var(--text);
  background: var(--surface-3);
}

.dp-topbar-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  padding: 0.45rem 1.1rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.dp-topbar-cta:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
}

.dp-topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
}

.dp-topbar-account {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.dp-topbar-account:hover {
  color: var(--text);
  border-color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.dp-topbar-mobile {
  display: none;
}

.dp-scroll-band {
  overflow: hidden;
  margin: 18px 0 8px;
  width: 100vw;
  margin-inline-start: calc(50% - 50vw);
  margin-inline-end: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.95rem 0;
  background: var(--surface);
  white-space: nowrap;
}

.dp-scroll-band.dp-scroll-band--top {
  margin-top: 0;
}

.dp-scroll-band.dp-scroll-band--bottom {
  margin-top: 34px;
  margin-bottom: 0;
}

.dp-scroll-band-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
  min-width: max-content;
  will-change: transform;
  animation-name: dp-scroll-left;
  animation-duration: 28s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  transform: translate3d(0, 0, 0);
}

.dp-scroll-band-inner span {
  display: inline-flex;
  align-items: center;
  padding: 0 2rem;
  font-family: var(--font-head);
  font-size: 0.84rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dp-scroll-band-inner .hot {
  color: var(--accent-2);
}

@keyframes dp-scroll-left {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .dp-scroll-band-inner {
    animation: none;
  }
}

.dp-footer {
  padding: 28px 0 20px;
}

.dp-launch-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 0 6px;
}

.dp-launch-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.dp-launch-eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
  opacity: 0.8;
}

.dp-launch-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3.8vw, 3rem);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.028em;
  text-transform: uppercase;
  max-width: 12ch;
}

.dp-launch-title em {
  display: block;
  font-style: normal;
  color: var(--accent);
}

.dp-launch-copy {
  margin: 12px 0 0;
  max-width: 54ch;
  color: var(--soft);
  font-size: 0.96rem;
  line-height: 1.6;
}

.dp-launch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dp-launch-band {
  margin: 16px 0 0;
  padding: 26px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.dp-launch-band-inner {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.dp-launch-band-label {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

.dp-launch-band-title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.dp-launch-band-copy {
  margin: 14px auto 0;
  max-width: 58ch;
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.65;
}

.dp-launch-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.dp-launch-input {
  min-width: min(100%, 320px);
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
}

.dp-launch-input::placeholder {
  color: var(--muted);
}

.dp-launch-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.dp-launch-section-head h2 {
  margin: 6px 0 0;
  font-family: var(--font-head);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.dp-launch-section-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.dp-waitlist-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(3, 5, 8, 0.82);
  backdrop-filter: blur(12px);
}

body.dp-waitlist-open {
  overflow: hidden;
}

.dp-waitlist-modal.is-open {
  display: flex;
}

.dp-waitlist-dialog {
  width: min(100%, 540px);
  max-height: min(92vh, 760px);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 23, 31, 0.98), rgba(10, 14, 20, 1));
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(255, 138, 61, 0.04);
  overflow: auto;
}

/* Public localization: Arabic is the first RTL locale; rules remain locale-generic. */
.dp-language-switch {
  min-height: 36px;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--soft);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.dp-language-switch:hover {
  border-color: var(--accent);
  color: var(--text);
}

html[dir="rtl"] body {
  font-family: var(--font-ar-body), var(--font-body), sans-serif;
  text-align: start;
}

html[dir="rtl"] .dp-topbar-brand,
html[dir="rtl"] .dp-footer-brand,
html[dir="rtl"] [dir="ltr"] {
  direction: ltr;
}

html[dir="rtl"] .dp-topbar-link,
html[dir="rtl"] .dp-topbar-cta,
html[dir="rtl"] .dp-btn,
html[dir="rtl"] .dp-launch-title,
html[dir="rtl"] .dp-launch-band-title,
html[dir="rtl"] .dp-hero h1,
html[dir="rtl"] .dp-section-head h2,
html[dir="rtl"] .dp-launch-section-head h2,
html[dir="rtl"] .dp-waitlist-heading {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .dp-topbar-cta {
  margin-inline-start: 0.5rem;
  margin-left: 0;
}

html[dir="rtl"] .dp-launch-eyebrow::before {
  order: 2;
}

html[dir="rtl"] .dp-launch-copy,
html[dir="rtl"] .dp-hero p {
  max-width: 62ch;
}

html[dir="rtl"] .dp-launch-hero,
html[dir="rtl"] .dp-hero,
html[dir="rtl"] .dp-section,
html[dir="rtl"] .dp-launch-band-inner,
html[dir="rtl"] .dp-article {
  text-align: start;
}

html[dir="rtl"] .dp-launch-actions,
html[dir="rtl"] .dp-board-card-actions,
html[dir="rtl"] .dp-board-tags,
html[dir="rtl"] .dp-board-indicators {
  justify-content: flex-start;
}

html[dir="rtl"] .dp-footer-row,
html[dir="rtl"] .dp-footer-links,
html[dir="rtl"] .dp-footer-social {
  direction: rtl;
}

html[dir="rtl"] .dp-footer-brand {
  align-items: flex-start;
}

html[dir="rtl"] .dp-waitlist-close {
  right: auto;
  inset-inline-end: 14px;
}

html[dir="rtl"] .dp-waitlist-header {
  padding-right: 0;
  padding-inline-end: 42px;
}

html[dir="rtl"] .dp-waitlist-field > span small {
  margin-left: 0;
  margin-inline-start: 5px;
}

html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="tel"],
html[dir="rtl"] input[name="whatsapp"],
html[dir="rtl"] .dp-mono {
  direction: ltr;
  text-align: left;
}

html[dir="rtl"] canvas,
html[dir="rtl"] .dp-detail-canvas,
html[dir="rtl"] .dp-detail-viewer-mount {
  direction: ltr;
}

@media (max-width: 920px) {
  .dp-topbar-actions .dp-language-switch {
    display: none;
  }

  html[dir="rtl"] .dp-topbar-mobile-link,
  html[dir="rtl"] .dp-topbar-mobile-account {
    justify-content: flex-start;
    text-align: start;
  }
}

.dp-waitlist-dialog-body {
  padding: 28px;
}

.dp-waitlist-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.dp-waitlist-close:hover {
  border-color: rgba(255, 138, 61, 0.5);
  background: rgba(255, 138, 61, 0.1);
  transform: rotate(4deg);
}

.dp-waitlist-header {
  padding-right: 42px;
}

.dp-waitlist-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.dp-waitlist-heading {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.dp-waitlist-copy {
  margin: 14px 0 0;
  color: var(--soft);
  font-size: 0.95rem;
  line-height: 1.6;
}

.dp-waitlist-fields {
  display: grid;
  gap: 14px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.dp-waitlist-section-label,
.dp-waitlist-context-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dp-waitlist-field-grid,
.dp-waitlist-context-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dp-waitlist-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.dp-waitlist-field > span {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.dp-waitlist-field > span b {
  color: var(--accent);
}

.dp-waitlist-field > span small {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.dp-waitlist-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--bg-2);
  color: var(--text);
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.dp-waitlist-input:focus {
  border-color: rgba(255, 138, 61, 0.75);
  background: rgba(20, 26, 35, 0.98);
  box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.1);
}

.dp-waitlist-input.is-error {
  border-color: var(--danger);
}

.dp-waitlist-context-fields[hidden],
.dp-waitlist-registration-context[hidden],
[data-registration-media][hidden],
[data-registration-hide][hidden],
[data-registration-success-value][hidden],
[data-registration-success-actions][hidden],
[data-registration-socials][hidden],
[data-waitlist-tag][hidden],
[data-waitlist-note][hidden],
[data-default-context-field][hidden] {
  display: none;
}

.dp-waitlist-registration-context {
  position: relative;
  display: block;
  min-height: 112px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 138, 61, 0.34);
  border-radius: 14px;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 138, 61, 0.14), transparent 48%),
    linear-gradient(135deg, rgba(255, 138, 61, 0.1), rgba(13, 18, 25, 0.94) 58%);
}

.dp-waitlist-context-media {
  position: absolute;
  inset: 0;
}

.dp-waitlist-context-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.68;
  filter: saturate(0.86) contrast(1.08);
}

.dp-waitlist-context-media span {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.98) 0%, rgba(8, 12, 18, 0.83) 46%, rgba(8, 12, 18, 0.28) 100%),
    linear-gradient(0deg, rgba(8, 12, 18, 0.72), transparent 68%);
}

.dp-waitlist-context-body {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
}

.dp-waitlist-registration-context strong {
  max-width: 82%;
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.25;
  text-wrap: balance;
}

.dp-waitlist-context-meta {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.dp-waitlist-registration-context.has-thumbnail .dp-waitlist-context-label,
.dp-waitlist-registration-context.has-thumbnail .dp-waitlist-context-meta {
  color: rgba(255, 255, 255, 0.74);
}

@media (max-width: 520px) {
  .dp-waitlist-modal {
    align-items: stretch;
    justify-content: center;
    overflow-y: auto;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .dp-waitlist-dialog {
    width: 100%;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    margin: auto 0;
    border-radius: 18px;
  }

  .dp-waitlist-dialog-body {
    padding: 22px 16px 20px;
  }

  .dp-waitlist-header {
    padding-right: 38px;
  }

  .dp-waitlist-field-grid,
  .dp-waitlist-context-fields {
    grid-template-columns: 1fr;
  }
}

.dp-waitlist-textarea {
  min-height: 110px;
  resize: vertical;
}

.dp-waitlist-submit {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

html[dir="rtl"] .dp-waitlist-submit {
  font-family: var(--font-body);
  letter-spacing: 0;
  text-transform: none;
}

.dp-waitlist-status {
  margin-top: 10px;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
}

.dp-waitlist-status[data-state="error"] {
  color: var(--danger);
}

.dp-waitlist-status[data-state="success"] {
  color: var(--success);
}

.dp-waitlist-success {
  display: none;
  text-align: center;
  padding: 18px 8px 8px;
}

.dp-waitlist-success.is-visible {
  display: grid;
  justify-items: center;
  animation: dpWaitlistSuccessIn 260ms ease both;
}

.dp-waitlist-success-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 138, 61, 0.5);
  border-radius: 50%;
  color: #fff;
  background: radial-gradient(circle at 35% 30%, #ff9a5c, var(--accent) 58%, #c94f12);
  box-shadow: 0 0 0 8px rgba(255, 138, 61, 0.08), 0 14px 40px rgba(255, 92, 24, 0.24);
  font-size: 24px;
  font-weight: 900;
}

.dp-waitlist-success-value {
  margin: 18px 0 0;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dp-waitlist-success-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 22px;
}

.dp-waitlist-success-actions .dp-btn {
  justify-content: center;
}

.dp-waitlist-success-socials {
  display: grid;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.dp-waitlist-success-socials > span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dp-waitlist-success-socials > div {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.dp-waitlist-success-socials a {
  color: var(--soft);
  font-size: 12px;
  font-weight: 700;
}

.dp-waitlist-success-socials a:hover {
  color: var(--accent);
}

@keyframes dpWaitlistSuccessIn {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 520px) {
  .dp-waitlist-success-actions {
    grid-template-columns: 1fr;
  }
}

.dp-waitlist-note {
  margin-top: 10px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 920px) {
  .dp-main {
    width: min(100%, calc(100% - 24px));
  }

  .dp-topbar {
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    padding: 0 1rem;
  }

  .dp-topbar-hamburger {
    display: inline-flex;
    flex-shrink: 0;
    justify-self: end;
  }

  .dp-topbar-links {
    display: none;
  }
  
  .dp-topbar-actions {
    justify-self: end;
  }

  .dp-topbar-account {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 0.9rem;
    border-radius: 999px;
  }

  .dp-topbar-mobile {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.35rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  }

  .dp-topbar.is-mobile-open .dp-topbar-mobile {
    display: grid;
  }

  .dp-topbar-mobile-link,
  .dp-topbar-mobile-account {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 42px;
    padding: 0.45rem 0.9rem;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .dp-topbar-mobile-link--button {
    cursor: pointer;
  }

  .dp-topbar-mobile-link:hover,
  .dp-topbar-mobile-link.active,
  .dp-topbar-mobile-account:hover,
  .dp-topbar-mobile-link--button:hover {
    background: var(--surface-3);
    color: var(--text);
  }

  .dp-scroll-band {
    margin-top: 14px;
    margin-inline-start: calc(50% - 50vw);
    margin-inline-end: 0;
  }
}

@media (max-width: 760px) {
  .dp-main {
    width: 100%;
  }

  .dp-main > :not(.dp-topbar):not(.dp-subnav):not(.dp-scroll-band) {
    padding-inline: clamp(14px, 4vw, 20px);
  }

  .dp-launch-title {
    font-size: clamp(1.45rem, 8vw, 2.2rem);
  }

  .dp-launch-band {
    padding: 22px 14px;
  }

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

  .dp-launch-input,
  .dp-launch-form .dp-btn {
    width: 100%;
  }

  .dp-launch-actions .dp-btn {
    flex: 1 1 100%;
  }

  .dp-launch-section-head,
  .dp-section-head,
  .dp-strip-head {
    align-items: stretch;
  }

  .dp-launch-section-head > *,
  .dp-section-head > *,
  .dp-strip-head > * {
    min-width: 0;
  }

  html[dir="rtl"] .dp-footer-row,
  html[dir="rtl"] .dp-footer-links,
  html[dir="rtl"] .dp-footer-social {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* Final shell lock: locale changes labels, never brand typography or shell placement. */
.dp-topbar {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  margin-left: calc(50% - 50vw);
  margin-right: 0;
  padding-left: clamp(16px, 2.4vw, 32px);
  padding-right: clamp(16px, 2.4vw, 32px);
}

.dp-topbar-brand {
  grid-column: 1;
  justify-self: start;
}

.dp-topbar-links {
  grid-column: 2;
}

.dp-topbar-actions {
  grid-column: 3;
}

.dp-topbar-hamburger {
  grid-column: 4;
  justify-self: end;
}

.dp-topbar,
.dp-topbar-links,
.dp-topbar-actions,
.dp-footer,
.dp-footer-row,
.dp-footer-brand,
.dp-footer-links,
.dp-footer-social {
  direction: ltr;
}

.dp-footer {
  width: 100%;
  padding: 28px clamp(16px, 2.4vw, 32px) 20px;
}

.dp-footer-row {
  width: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}

.dp-footer-row:last-child {
  justify-content: flex-start;
}

.dp-footer-brand,
.dp-footer-links,
.dp-footer-social {
  align-items: center;
  justify-content: flex-start;
}

.dp-topbar-brand,
.dp-footer .dp-topbar-brand,
html[dir="rtl"] .dp-topbar-brand,
html[dir="rtl"] .dp-footer .dp-topbar-brand {
  direction: ltr;
  font-family: "Sora", "Space Grotesk", Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  word-spacing: normal;
  text-transform: uppercase;
}

html[dir="rtl"] .dp-topbar-link,
html[dir="rtl"] .dp-topbar-cta,
html[dir="rtl"] .dp-footer-links a,
html[dir="rtl"] .dp-footer-copy {
  direction: rtl;
  font-family: var(--font-ar-body), system-ui, sans-serif;
}

html[dir="rtl"] .dp-language-switch,
html[dir="rtl"] .dp-footer-social a {
  direction: ltr;
  font-family: Inter, system-ui, sans-serif;
  letter-spacing: normal;
  word-spacing: normal;
}

@media (max-width: 920px) {
  .dp-topbar,
  html[dir="rtl"] .dp-topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    direction: ltr;
    padding-left: 14px;
    padding-right: 14px;
  }

  .dp-topbar-brand {
    grid-column: 1;
  }

  .dp-topbar-actions {
    grid-column: 2;
    justify-self: end;
  }

  .dp-topbar-hamburger {
    grid-column: 3;
    justify-self: end;
  }

  .dp-topbar-mobile {
    grid-column: 1 / -1;
  }

  html[dir="rtl"] .dp-topbar-mobile {
    direction: rtl;
  }

  html[dir="rtl"] .dp-topbar-mobile-link,
  html[dir="rtl"] .dp-topbar-mobile-account {
    direction: rtl;
    font-family: var(--font-ar-body), system-ui, sans-serif;
  }
}

@media (max-width: 760px) {
  .dp-footer {
    padding: 24px 16px 18px;
  }

  .dp-footer-row,
  html[dir="rtl"] .dp-footer-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .dp-footer-brand {
    flex-wrap: wrap;
  }

  .dp-footer-links,
  .dp-footer-social,
  html[dir="rtl"] .dp-footer-links,
  html[dir="rtl"] .dp-footer-social {
    justify-content: flex-start;
  }
}

/* Shared public chrome container: stable physical placement in LTR and RTL. */
.dp-site-shell {
  width: min(100%, 1570px);
  min-width: 0;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 48px);
  box-sizing: border-box;
}

.dp-topbar {
  width: auto;
  max-width: none;
  margin-inline: calc((100vw - 100%) / -2);
  padding: 0;
  overflow: visible;
}

.dp-topbar-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  min-height: 60px;
  direction: ltr;
}

.dp-topbar-inner > * {
  min-width: 0;
}

.dp-topbar-brand {
  grid-column: 1;
  justify-self: start;
  max-width: 100%;
  flex-shrink: 0;
}

.dp-topbar-links {
  grid-column: 2;
  justify-self: center;
}

.dp-topbar-actions {
  grid-column: 3;
  justify-self: end;
}

.dp-topbar-hamburger {
  grid-column: 4;
  justify-self: end;
}

.dp-footer {
  width: auto;
  max-width: none;
  margin-inline: calc((100vw - 100%) / -2);
  padding: 28px 0 20px;
}

.dp-footer-inner {
  display: grid;
  gap: 10px;
  direction: ltr;
}

.dp-footer-row {
  margin: 0;
  align-items: center;
  justify-content: space-between;
}

.dp-footer-brand {
  flex-wrap: wrap;
}

.dp-footer-copy {
  flex-basis: 100%;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 920px) {
  .dp-topbar-inner,
  html[dir="rtl"] .dp-topbar-inner {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    gap: 10px;
    direction: ltr;
  }

  .dp-topbar-actions {
    grid-column: 3;
  }

  .dp-topbar-hamburger {
    grid-column: 4;
  }

  .dp-topbar-mobile {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .dp-footer-row,
  html[dir="rtl"] .dp-footer-row {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .dp-site-shell {
    padding-inline: 16px;
  }

  .dp-topbar-inner,
  html[dir="rtl"] .dp-topbar-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 8px;
  }

  .dp-topbar-brand {
    font-size: clamp(1rem, 5.5vw, 1.25rem);
    overflow: visible;
  }

  .dp-topbar-actions {
    grid-column: 2;
  }

  .dp-topbar-hamburger {
    grid-column: 3;
  }

  .dp-footer-row,
  html[dir="rtl"] .dp-footer-row {
    width: 100%;
  }
}

/* Footer lock: physical layout stays consistent across LTR/RTL.
   Desktop = logo/copy left, socials middle, page links right.
   Mobile = stacked vertically. */
.dp-footer-inner {
  direction: ltr;
}

.dp-footer-row,
html[dir="rtl"] .dp-footer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(18px, 4vw, 56px);
  direction: ltr;
  text-align: left;
}

.dp-footer-brand,
html[dir="rtl"] .dp-footer-brand {
  display: grid;
  justify-items: start;
  justify-self: start;
  gap: 8px;
  min-width: 0;
  direction: ltr;
}

.dp-footer-social,
html[dir="rtl"] .dp-footer-social {
  display: flex;
  justify-content: center;
  justify-self: center;
  gap: 14px;
  min-width: max-content;
  padding: 0;
  direction: ltr;
}

.dp-footer-links,
html[dir="rtl"] .dp-footer-links {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
  gap: 16px;
  min-width: 0;
  direction: ltr;
}

html[dir="rtl"] .dp-footer-links a {
  direction: rtl;
}

.dp-footer-copy,
html[dir="rtl"] .dp-footer-copy {
  flex-basis: auto;
  direction: rtl;
  text-align: left;
}

@media (max-width: 760px) {
  .dp-footer-row,
  html[dir="rtl"] .dp-footer-row {
    grid-template-columns: 1fr;
    justify-items: start;
    align-items: start;
    gap: 14px;
    width: 100%;
  }

  .dp-footer-brand,
  .dp-footer-social,
  .dp-footer-links,
  html[dir="rtl"] .dp-footer-brand,
  html[dir="rtl"] .dp-footer-social,
  html[dir="rtl"] .dp-footer-links {
    justify-self: start;
    justify-content: flex-start;
  }

  .dp-footer-links,
  html[dir="rtl"] .dp-footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }
}
