/*
 * COULTER_HUB_QUAD (cq-foot)
 * Compact hub medal · four chip furrows · stacked hopper · wrapping apron.
 */

.cq-foot {
  --cq-gap: var(--ag-space-3);
  position: relative;
  margin-top: var(--ag-space-7);
  color: var(--ag-text);
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 55% 36% at 50% 8%, rgba(94, 234, 212, 0.1), transparent 58%),
    linear-gradient(180deg, var(--ag-void-2), var(--ag-void));
  border-top: var(--ag-border);
  padding: var(--ag-space-6) 0 var(--ag-space-5);
}

.cq-foot__stage {
  display: grid;
  gap: var(--ag-space-5);
  min-width: 0;
  width: 100%;
}

.cq-foot__rig {
  display: grid;
  gap: var(--cq-gap);
  min-width: 0;
  grid-template-columns: 1fr;
}

.cq-foot__hub { grid-area: auto; }
.cq-foot__hopper { grid-area: auto; }
.cq-foot__furrow--shop { grid-area: auto; }
.cq-foot__furrow--help { grid-area: auto; }
.cq-foot__furrow--account { grid-area: auto; }
.cq-foot__furrow--rules { grid-area: auto; }

@media (min-width: 640px) {
  .cq-foot__rig {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "hub hub"
      "shop help"
      "account rules"
      "hopper hopper";
    align-items: start;
  }

  .cq-foot__hub { grid-area: hub; }
  .cq-foot__hopper { grid-area: hopper; }
  .cq-foot__furrow--shop { grid-area: shop; }
  .cq-foot__furrow--help { grid-area: help; }
  .cq-foot__furrow--account { grid-area: account; }
  .cq-foot__furrow--rules { grid-area: rules; }
}

@media (min-width: 1080px) {
  .cq-foot__rig {
    grid-template-columns: minmax(0, 1fr) minmax(14.5rem, 17rem) minmax(0, 1fr);
    grid-template-areas:
      "shop hub help"
      "account hub rules"
      "hopper hopper hopper";
    gap: var(--ag-space-4);
    align-items: stretch;
  }

  .cq-foot__hub {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: var(--ag-space-5) var(--ag-space-4);
  }

  .cq-foot__furrow {
    height: 100%;
    align-self: stretch;
  }
}

/* —— Hub medal —— */

.cq-foot__hub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--ag-space-4);
  min-width: 0;
  padding: var(--ag-space-4);
  border: var(--ag-border);
  border-radius: var(--ag-radius-lg);
  background: var(--ag-glass);
  backdrop-filter: blur(var(--ag-blur));
  -webkit-backdrop-filter: blur(var(--ag-blur));
  box-shadow: var(--ag-shadow-glass);
}

@media (min-width: 1080px) {
  .cq-foot__id {
    justify-items: center;
  }
}

.cq-foot__disk {
  flex: 0 0 auto;
  width: 5.5rem;
  height: 5.5rem;
  display: grid;
  place-items: center;
  padding: 5px;
  border-radius: 50%;
  background: conic-gradient(
    from 210deg,
    var(--ag-cyan),
    var(--ag-violet),
    var(--ag-amber),
    var(--ag-rose),
    var(--ag-cyan)
  );
  box-shadow: var(--ag-shadow-glass);
}

.cq-foot__disk-acronym {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.12), transparent 55%),
    var(--ag-void-2);
  font-family: var(--ag-font-display);
  font-size: 1.65rem;
  letter-spacing: 0.04em;
  color: var(--ag-text);
  line-height: 1;
}

.cq-foot__id {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

@media (min-width: 1080px) {
  .cq-foot__id {
    justify-items: center;
  }
}

.cq-foot__brand {
  display: grid;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--ag-text);
  min-width: 0;
}

.cq-foot__brand strong,
.cq-foot__brand em {
  font-family: var(--ag-font-display);
  font-weight: 400;
  font-style: normal;
  line-height: 1.1;
}

.cq-foot__brand strong {
  font-size: var(--ag-type-xl);
}

.cq-foot__brand em {
  font-size: var(--ag-type-lg);
  color: var(--ag-cyan);
}

.cq-foot__gst {
  margin: 0;
  font-size: var(--ag-type-xs);
  color: var(--ag-text-muted);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

/* —— Furrows —— */

.cq-foot__furrow {
  min-width: 0;
  padding: var(--ag-space-4);
  border: var(--ag-border);
  border-radius: var(--ag-radius-lg);
  background: var(--ag-glass);
  backdrop-filter: blur(var(--ag-blur));
  -webkit-backdrop-filter: blur(var(--ag-blur));
}

.cq-foot__furrow--cyan { border-color: rgba(94, 234, 212, 0.32); }
.cq-foot__furrow--violet { border-color: rgba(196, 181, 253, 0.36); }
.cq-foot__furrow--amber { border-color: rgba(252, 211, 77, 0.36); }
.cq-foot__furrow--rose { border-color: rgba(251, 113, 133, 0.36); }

.cq-foot__furrow-title {
  display: flex;
  align-items: center;
  gap: var(--ag-space-2);
  margin: 0 0 var(--ag-space-3);
  font-size: var(--ag-type-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
}

.cq-foot__furrow--cyan .cq-foot__furrow-title { color: var(--ag-cyan); }
.cq-foot__furrow--violet .cq-foot__furrow-title { color: var(--ag-violet); }
.cq-foot__furrow--amber .cq-foot__furrow-title { color: var(--ag-amber); }
.cq-foot__furrow--rose .cq-foot__furrow-title { color: var(--ag-rose); }

.cq-foot__pip {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.cq-foot__chips-nav {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .cq-foot__chips-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cq-foot__chips-nav .cq-foot__chip:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

.cq-foot__hopper {
  display: grid;
  gap: var(--ag-space-4);
  min-width: 0;
  padding: var(--ag-space-4);
  border: var(--ag-border);
  border-radius: var(--ag-radius-lg);
  background: linear-gradient(160deg, rgba(94, 234, 212, 0.1), rgba(196, 181, 253, 0.07));
  backdrop-filter: blur(var(--ag-blur));
  -webkit-backdrop-filter: blur(var(--ag-blur));
  box-shadow: var(--ag-shadow-glass);
}

@media (min-width: 800px) {
  .cq-foot__hopper {
    grid-template-columns: minmax(0, 1.15fr) minmax(12rem, 0.85fr);
    align-items: start;
    padding: var(--ag-space-5);
    gap: var(--ag-space-5);
  }
}

.cq-foot__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  min-width: 0;
  width: 100%;
  padding: 0.4rem 0.7rem;
  border-radius: var(--ag-radius-md);
  border: 1px solid var(--ag-glass-border);
  background: rgba(0, 0, 0, 0.28);
  color: var(--ag-text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--ag-type-sm);
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  transition: color var(--ag-transition), border-color var(--ag-transition), background var(--ag-transition);
}

.cq-foot__chip:hover {
  color: var(--ag-cyan);
  border-color: rgba(94, 234, 212, 0.45);
  background: rgba(94, 234, 212, 0.08);
}

.cq-foot__chip:focus-visible {
  outline: none;
  box-shadow: var(--ag-focus);
}

.cq-foot__hopper-copy,
.cq-foot__hopper-meta {
  min-width: 0;
}

.cq-foot__hopper-title {
  margin: 0 0 var(--ag-space-2);
  font-family: var(--ag-font-display);
  font-size: var(--ag-type-lg);
  font-weight: 400;
  line-height: 1.2;
}

.cq-foot__hopper-lede {
  margin: 0 0 var(--ag-space-4);
  font-size: var(--ag-type-sm);
  color: var(--ag-text-muted);
  line-height: 1.45;
}

.cq-foot__form {
  display: grid;
  gap: var(--ag-space-2);
  min-width: 0;
}

.cq-foot__mail-label {
  font-size: var(--ag-type-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow-wrap: anywhere;
}

.cq-foot__form .ds-input,
.cq-foot__form .ds-btn {
  min-height: 2.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cq-foot__form .ds-btn {
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  height: auto;
  padding-block: 0.55rem;
}

.cq-foot__desk {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
  font-size: var(--ag-type-sm);
  color: var(--ag-text-muted);
}

.cq-foot__desk a {
  color: var(--ag-cyan);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cq-foot__desk a:hover {
  text-decoration: underline;
}

.cq-foot__desk a:focus-visible {
  outline: none;
  box-shadow: var(--ag-focus);
  border-radius: var(--ag-radius-sm);
}

.cq-foot__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ag-space-2);
  list-style: none;
  margin: var(--ag-space-3) 0 0;
  padding: 0;
}

.cq-foot__channels {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ag-space-2);
  margin-top: var(--ag-space-3);
}

.cq-foot__channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  border-radius: 50%;
  border: var(--ag-border);
  background: var(--ag-glass-strong);
  color: var(--ag-text-muted);
  transition: color var(--ag-transition), box-shadow var(--ag-transition), border-color var(--ag-transition);
}

.cq-foot__channel:hover {
  color: var(--ag-cyan);
  border-color: rgba(94, 234, 212, 0.4);
  box-shadow: var(--ag-shadow-glow);
}

.cq-foot__channel:focus-visible {
  outline: none;
  box-shadow: var(--ag-focus);
}

/* —— Apron —— */

.cq-foot__apron {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--ag-space-3);
  padding-top: var(--ag-space-4);
  border-top: 1px solid var(--ag-glass-border);
  font-size: var(--ag-type-sm);
  color: var(--ag-text-muted);
}

.cq-foot__copy {
  margin: 0;
  flex: 1 1 10rem;
  min-width: 0;
}

.cq-foot__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  flex: 2 1 14rem;
  min-width: 0;
}

.cq-foot__legal a {
  color: var(--ag-text);
  text-decoration: none;
  font-weight: 600;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
}

.cq-foot__legal a:hover {
  color: var(--ag-cyan);
}

.cq-foot__legal a:focus-visible {
  outline: none;
  box-shadow: var(--ag-focus);
  border-radius: var(--ag-radius-sm);
}

.cq-foot__rise {
  flex: 0 0 auto;
  min-height: 2.75rem;
  min-width: 2.75rem;
  width: auto;
  padding-inline: 1rem;
}

.cq-foot__rise:focus-visible {
  outline: none;
  box-shadow: var(--ag-focus);
}

.cq-foot.is-in .cq-foot__disk {
  filter: saturate(1.12);
}

@media (prefers-reduced-motion: reduce) {
  .cq-foot__chip,
  .cq-foot__channel,
  .cq-foot__disk {
    transition: none;
    filter: none;
  }
}
