/* ══════════════════════════════════════════
   WHY MODAL
══════════════════════════════════════════ */

.why-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(8, 8, 8, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.why-modal.visible {
  display: flex;
}

.why-modal-inner {
  border: 1px solid var(--border);
  background: var(--bg2);
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 40px;
}

@media (max-width: 600px) {
  .why-modal-inner {
    padding: 24px 18px;
  }
}

.why-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-size: 18px;
  cursor: none;
  transition: all 0.2s;
}

.why-close:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.why-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--white-dim);
  display: block;
  margin-bottom: 8px;
}

.why-heading {
  font-family: var(--cond);
  font-size: 46px;
  font-weight: 900;
  margin-bottom: 28px;
  color: var(--white);
}

.why-heading span {
  color: var(--pink);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
}

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

.why-card {
  background: var(--bg2);
  padding: 20px;
  transition: background 0.2s;
}

.why-card:hover {
  background: var(--bg3);
}

.why-icon {
  font-size: 18px;
  color: var(--pink);
  margin-bottom: 10px;
}

.why-card h3 {
  font-family: var(--cond);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 8px;
}

.why-card p {
  font-size: 13px;
  color: var(--white-dim);
  line-height: 1.75;
  font-weight: 300;
}

.why-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.why-cta-btn {
  font-family: var(--cond);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--pink);
  color: var(--white);
  border: none;
  padding: 12px 36px;
  text-decoration: none;
  cursor: none;
  transition: all 0.2s;
  clip-path: polygon(0 0, 95% 0, 100% 25%, 100% 100%, 5% 100%, 0 75%);
}

.why-cta-btn:hover {
  background: var(--white);
  color: var(--bg);
}

/* ══════════════════════════════════════════
   TERMS MODAL
══════════════════════════════════════════ */

.terms-modal {
  position: fixed;
  inset: 0;
  z-index: 800;
  background: rgba(8, 8, 8, 0.97);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.terms-modal.visible {
  display: flex;
}

.terms-modal-inner {
  border: 1px solid var(--border);
  background: var(--bg2);
  max-width: 780px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Cyan top accent bar — mirrors HUD panel strip */
.terms-modal-inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
}

/* Header row */
.terms-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 28px 32px 20px;
  border-bottom: var(--grid);
  flex-shrink: 0;
}

.terms-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--white-dim);
  display: block;
  margin-bottom: 8px;
}

.terms-heading {
  font-family: var(--cond);
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: 0.02em;
  line-height: 1;
}

.terms-heading span {
  color: var(--cyan);
}

.terms-close {
  width: 34px;
  height: 34px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--white-dim);
  font-size: 18px;
  cursor: none;
  transition: all 0.2s;
  flex-shrink: 0;
  margin-top: 4px;
}

.terms-close:hover {
  color: var(--pink);
  border-color: var(--pink);
}

@media (max-width: 768px) {
  .terms-close {
    cursor: default;
  }
}

/* Meta strip */
.terms-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: var(--grid);
  flex-shrink: 0;
}

@media (max-width: 560px) {
  .terms-meta {
    grid-template-columns: repeat(2, 1fr);
  }
}

.terms-meta-item {
  padding: 12px 20px;
  border-right: var(--grid);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.terms-meta-item:last-child {
  border-right: none;
}

.terms-meta-key {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--cyan);
  text-transform: uppercase;
}

.terms-meta-val {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--white-dim);
}

/* Scrollable body */
.terms-body {
  overflow-y: auto;
  flex: 1;
  padding: 0;
}

.terms-section {
  padding: 18px 32px;
  border-bottom: var(--grid);
  position: relative;
  overflow: hidden;
  transition: background 0.2s;
}

.terms-section:last-child {
  border-bottom: none;
}

.terms-section:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Left accent bar on hover — same pattern as .svc-item, .about-principle-item */
.terms-section::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--cyan);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.terms-section:hover::before {
  transform: scaleY(1);
}

.terms-section-head {
  font-family: var(--cond);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.terms-num {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--cyan);
  flex-shrink: 0;
}

.terms-section p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--white-dim);
  font-weight: 300;
}

/* Footer row */
.terms-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-top: var(--grid);
  flex-shrink: 0;
  gap: 16px;
  flex-wrap: wrap;
}

.terms-footer-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--white-dim);
}

.terms-dl-btn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-decoration: none;
  border: 1px solid var(--cyan);
  padding: 7px 16px;
  transition: all 0.2s;
  white-space: nowrap;
  clip-path: polygon(0 0, 93% 0, 100% 30%, 100% 100%, 7% 100%, 0 70%);
}

.terms-dl-btn:hover {
  background: var(--cyan);
  color: var(--bg);
}