/* Global site stylesheet.
   Per requirements, keep pure HTML/CSS and use a single entrypoint. */

@import url("./design-kit.css");
@import url("./landing.css");
@import url("./landing-v2.css");

/* ---------- Global helpers for multi-page site ---------- */
:root {
  --site-max: 1120px;
  --site-page-pad: clamp(22px, 4vw, 44px);
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  overflow-x: hidden;
}

.is-navOpen {
  overflow: hidden;
}

.is-navOpen body {
  overflow: hidden;
}

.s-navToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.78);
  color: var(--color-text);
  box-shadow: 0 12px 28px rgba(1, 2, 6, 0.08);
}

.s-navToggle__icon {
  width: 20px;
  height: 14px;
  display: grid;
  gap: 4px;
  align-content: center;
  opacity: 0.9;
}

.s-navToggle__bar {
  height: 2px;
  width: 100%;
  background: currentColor;
  border-radius: 999px;
  transform-origin: 50% 50%;
  transition: transform var(--dur-3) var(--ease-out), opacity var(--dur-2) var(--ease-out), width var(--dur-3) var(--ease-out);
}

.is-navOpen .s-navToggle__icon {
  gap: 0;
}

.is-navOpen .s-navToggle__bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.is-navOpen .s-navToggle__bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.is-navOpen .s-navToggle__bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.s-navOverlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 2, 6, 0.46);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out);
  z-index: 60;
}

.s-navPanel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(340px, calc(100% - 48px));
  background: rgba(255, 255, 255, 0.96);
  border-left: 1px solid rgba(1, 2, 6, 0.12);
  box-shadow: -24px 0 60px rgba(1, 2, 6, 0.16);
  transform: translateX(102%);
  transition: transform var(--dur-3) var(--ease-out);
  z-index: 61;
  padding: 16px 14px;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.s-navClose {
  justify-self: end;
  border: 1px solid rgba(1, 2, 6, 0.12);
  background: rgba(244, 245, 252, 0.8);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--color-text);
  display: grid;
  place-items: center;
}

.s-navClose__icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: inline-block;
}

.s-navClose__bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform-origin: 50% 50%;
  transition: transform var(--dur-3) var(--ease-out);
}

.s-navClose__bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.s-navClose__bar:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.s-navClose:hover .s-navClose__bar:nth-child(1) {
  transform: translate(-50%, -50%) rotate(52deg);
}

.s-navClose:hover .s-navClose__bar:nth-child(2) {
  transform: translate(-50%, -50%) rotate(-52deg);
}
.s-navList {
  display: grid;
  gap: 8px;
  align-content: start;
}

.s-navLink {
  display: flex;
  align-items: center;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(1, 2, 6, 0.1);
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-text);
  text-decoration: none;
}

/* Header nav image-icons (when using png instead of svg) */
.l-nav .dk-navIcon {
  width: 18px;
  height: 18px;
  display: inline-block;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: -3px;
  /* Match SVG icon tint: default = muted, hover = text */
  filter: brightness(0) saturate(100%);
  opacity: 0.66; /* ~= --color-muted */
  transition: opacity var(--dur-2) var(--ease-out);
}

.l-nav a:hover .dk-navIcon {
  opacity: 1; /* ~= --color-text */
}

.s-navCta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(1, 2, 6, 0.12);
  background: var(--color-primary-900);
  color: white;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(1, 2, 6, 0.16);
}

.is-navOpen .s-navOverlay {
  opacity: 1;
  pointer-events: auto;
}

.is-navOpen .s-navPanel {
  transform: translateX(0);
}

@media (min-width: 860px) {
  .s-navToggle,
  .s-navOverlay,
  .s-navPanel {
    display: none !important;
  }
}

.s-container {
  width: min(var(--site-max), calc(100% - 40px));
  margin-inline: auto;
}

.s-page {
  padding: var(--site-page-pad) 0;
}

.s-heroMini {
  padding: calc(var(--site-page-pad) * 0.85) 0;
}

.s-heroMini__title {
  margin: 0;
  letter-spacing: -0.03em;
}

.s-heroMini__lead {
  margin: 10px 0 0;
  color: var(--color-muted);
  max-width: 72ch;
}

.s-cardGrid {
  display: grid;
  gap: 12px;
}

@media (min-width: 860px) {
  .s-cardGrid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .s-cardGrid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.s-card {
  border-radius: 28px;
  border: 1px solid rgba(1, 2, 6, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(1, 2, 6, 0.08);
  padding: 16px;
}

.s-card__title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.s-card__text {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: var(--text-small);
  line-height: 1.45;
}

.s-form {
  display: grid;
  gap: 12px;
}

.s-formRow {
  display: grid;
  gap: 10px;
}

/* ---------- Contact page layout ---------- */
body[data-page="contact"] .s-contactLayout {
  display: grid;
  gap: 14px;
  align-items: stretch;
}

@media (min-width: 860px) {
  body[data-page="contact"] .s-contactLayout {
    grid-template-columns: 1fr 1.15fr;
    gap: 18px;
    align-items: start;
  }
}

body[data-page="contact"] .s-contactMedia {
  min-height: 280px;
  display: grid;
  place-items: center;
  padding: 0;
}

body[data-page="contact"] .s-contactMedia img {
  width: min(360px, 92%);
  height: auto;
  display: block;
}

body[data-page="contact"] .s-contactRight {
  display: grid;
  gap: 12px;
}

body[data-page="contact"] .s-contactBadges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

body[data-page="contact"] .s-contactBadges .dk-badge {
  border-color: rgba(255, 76, 0, 0.26);
  background: rgba(255, 76, 0, 0.1);
}

@media (min-width: 860px) {
  .s-formRow--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.s-legalLinks a,
.s-footer a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.s-legalLinks a:hover,
.s-footer a:hover {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.s-legalLinks a:focus-visible,
.s-footer a:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(255, 76, 0, 0.28);
  border-radius: 10px;
}

.s-tableWrap {
  overflow-x: auto;
  border-radius: 22px;
  border: 1px solid rgba(1, 2, 6, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 44px rgba(1, 2, 6, 0.06);
}

.s-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.s-table th,
.s-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(1, 2, 6, 0.08);
  text-align: left;
  font-size: var(--text-small);
}

.s-table th {
  color: rgba(1, 2, 6, 0.82);
  font-weight: var(--fw-semibold);
  background: rgba(244, 245, 252, 0.9);
}

.s-table tr:last-child td {
  border-bottom: 0;
}

/* ---------- Simple pages header variant ---------- */
.s-headerSimple {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(1, 2, 6, 0.08);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
}

.s-headerSimple__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

/* Header brand: hide tagline line */
.l-header .dk-brand__tagline,
.s-headerSimple .dk-brand__tagline {
  display: none;
}

/* ---------- Footer (all pages) ---------- */
.s-footer {
  margin-top: 48px;
  background: linear-gradient(180deg, rgba(1, 2, 6, 0.96), rgba(1, 2, 6, 0.98));
  color: rgba(255, 255, 255, 0.82);
  padding: 44px 0 28px;
}

/* Footer brand alignment (icon + CBW-Cash) */
.s-footer .dk-brand {
  align-items: center;
}

.s-footer .dk-brand__tagline {
  display: none;
}

.s-footer .dk-brand__text {
  position: relative;
  top: -1px;
}

.s-footer__top {
  display: grid;
  gap: 18px;
}

@media (min-width: 860px) {
  .s-footer__top {
    grid-template-columns: 1.25fr 1fr;
    gap: 26px;
    align-items: start;
  }
}

.s-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (min-width: 860px) {
  .s-footer__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.s-footer__colTitle {
  margin: 0 0 10px;
  color: white;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.02em;
}

.s-footer__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: var(--text-small);
}

.s-footer__disclaimer {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 0;
}

.s-footer__disclaimer p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.45;
}

.s-footer__ssl {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-weight: var(--fw-semibold);
  font-size: var(--text-caption);
}

.s-footer__bottom {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.62);
}

.s-successIcon {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.32);
  color: rgb(34, 197, 94);
}

/* ---------- Legal content typography ---------- */
.s-legal {
  max-width: none;
  width: 100%;
}

/* Avoid "stuck" first block */
.s-legal > :first-child {
  margin-top: 0 !important;
}

.s-legal hr {
  border: 0;
  margin: 18px 0;
}

.s-legal h2,
.s-legal h3 {
  margin: 20px 0 10px;
  letter-spacing: -0.02em;
}

.s-legal p {
  margin: 10px 0;
  line-height: 1.55;
}

.s-legal ul,
.s-legal ol {
  margin: 10px 0 10px 20px;
  line-height: 1.55;
}

.s-legal code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.95em;
  background: rgba(244, 245, 252, 0.9);
  padding: 0.1em 0.35em;
  border-radius: 8px;
}

/* Give legal cards more breathing room */
section.s-card.s-legal {
  padding: 18px;
}

@media (min-width: 860px) {
  section.s-card.s-legal {
    padding: 22px;
  }
}

/* ---------- Form fields: match app-like UI ---------- */
:root {
  --field-bg: rgba(244, 245, 252, 0.92);
  --field-border: rgba(1, 2, 6, 0.08);
  --field-radius: 20px;
  --field-h: 54px;
}

.dk-field {
  display: grid;
  gap: 8px;
}

.dk-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-small);
  color: rgba(1, 2, 6, 0.72);
  font-weight: var(--fw-semibold);
}

.dk-input,
.dk-select,
textarea.dk-input {
  width: 100%;
  border-radius: var(--field-radius);
  border: 1px solid var(--field-border);
  background: var(--field-bg);
  color: var(--color-text);
  padding: 14px 16px;
  font-size: 16px;
  line-height: 1.2;
  outline: none;
  box-shadow: none;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out);
}

input.dk-input,
select.dk-select {
  height: var(--field-h);
}

textarea.dk-input {
  min-height: 140px;
  resize: vertical;
}

.dk-input::placeholder {
  color: rgba(1, 2, 6, 0.38);
}

.dk-input:focus,
.dk-select:focus,
textarea.dk-input:focus {
  border-color: rgba(255, 76, 0, 0.28);
  box-shadow: 0 0 0 4px rgba(255, 76, 0, 0.14);
}

.dk-input:active,
.dk-select:active,
textarea.dk-input:active {
  transform: translateY(0.5px);
}

@media (prefers-reduced-motion: reduce) {
  .dk-input,
  .dk-select,
  textarea.dk-input {
    transition: none;
  }
}

