/* ============================================================
   CONTACT PAGE
   Scoped to .ct-* — inherits tokens from index.css
   ============================================================ */

/* ---------- HERO ---------- */
.ct-hero {
  position: relative;
  min-height: calc(100svh - 76px);
  display: flex;
  align-items: center;
  padding: 80px 0 90px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}

.ct-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}

.ct-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.42;
  animation: ctBlobDrift 16s ease-in-out infinite alternate;
}

.ct-hero__blob--a {
  width: 560px; height: 560px;
  top: -14%; right: -8%;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.22), transparent 70%);
}
.ct-hero__blob--b {
  width: 480px; height: 480px;
  bottom: -12%; left: -10%;
  background: radial-gradient(circle, rgba(58, 158, 146, 0.16), transparent 70%);
  animation-delay: -6s;
}
.ct-hero__blob--c {
  width: 340px; height: 340px;
  top: 40%; left: 45%;
  background: radial-gradient(circle, rgba(242, 169, 59, 0.08), transparent 70%);
  animation-delay: -11s;
}

@keyframes ctBlobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(32px, -28px) scale(1.08); }
  100% { transform: translate(-18px, 22px) scale(0.96); }
}

.ct-hero__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 45%, black, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, black, transparent 72%);
}

.ct-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}

.ct-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 22px;
}

.ct-hero__tag-line {
  width: 32px;
  height: 1px;
  background: var(--signal);
  flex-shrink: 0;
}

.ct-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.ct-hero__title .accent { color: var(--signal); }

.ct-hero__lede {
  font-size: 1.06rem;
  color: var(--paper-dim);
  max-width: 540px;
  line-height: 1.75;
  margin-bottom: 34px;
}

.ct-hero__points {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ct-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.ct-point__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.2);
  margin-top: 2px;
}

.ct-point__icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-point strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--paper);
  margin-bottom: 2px;
}

.ct-point span {
  font-size: 0.86rem;
  color: var(--paper-dim);
  line-height: 1.5;
}

/* ---------- Mini terminal preview ---------- */
.ct-hero__preview {
  position: relative;
  opacity: 0;
  transform: scale(0.94);
}

.ct-mini {
  background: rgba(15, 20, 28, 0.85);
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.85), 0 0 80px rgba(94, 234, 212, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}

.ct-mini__bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #1B2330;
  border-bottom: 1px solid #1E2530;
}

.ct-mini__bar > span:not([class]) {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2A3342;
}
.ct-mini__bar > span:nth-child(1) { background: #FF6159; }
.ct-mini__bar > span:nth-child(2) { background: #FEBC2E; }
.ct-mini__bar > span:nth-child(3) { background: #28C840; }

.ct-mini__title {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #9CA7B5;
  letter-spacing: 0.04em;
  flex: 1;
}

.ct-mini__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  color: #86EFAC;
}

.ct-mini__live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #86EFAC;
  box-shadow: 0 0 10px rgba(134, 239, 172, 0.7);
  animation: ctPulse 1.6s ease-in-out infinite;
}

.ct-mini__body {
  padding: 20px 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  line-height: 1.75;
  color: #E9EDF2;
  background: #070b10;
}

.ct-mini__line {
  white-space: pre-wrap;
  word-break: break-word;
}

.ct-mini__line--dim { color: #9CA7B5; opacity: 0.8; padding-left: 16px; }
.ct-mini__line--out { padding-left: 0; }

.ct-mini__prompt { color: #5EEAD4; margin-right: 6px; }
.ct-mini__cmd    { color: #E9EDF2; }

.ct-mini__spacer { height: 10px; }

.ct-mini__tag { font-weight: 600; margin-right: 8px; }
.ct-mini__tag--ok   { color: #86EFAC; }
.ct-mini__tag--info { color: #5EEAD4; }

.ct-mini__caret {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: #5EEAD4;
  vertical-align: -0.15em;
  animation: ctCaret 1s steps(1) infinite;
}

.ct-mini__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 16px;
  background: #1B2330;
  border-top: 1px solid #1E2530;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  color: #9CA7B5;
}

.ct-mini__footer b { color: #E9EDF2; font-weight: 500; }

.ct-mini__pulse {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
  animation: ctPulse 1.4s ease-in-out infinite;
}

@keyframes ctCaret { 50% { opacity: 0; } }
@keyframes ctPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.15); }
}

/* ---------- Section shell ---------- */
.ct-block {
  position: relative;
  z-index: 1;
  padding: 96px 0;
}

.ct-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.ct-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.ct-head--center .ct-head__tag { justify-content: center; }

.ct-head__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 14px;
}

.ct-head__tag-line {
  width: 32px;
  height: 1px;
  background: var(--signal);
  flex-shrink: 0;
}

.ct-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.18;
  margin-bottom: 16px;
}

.ct-head h2 .accent { color: var(--signal); }

.ct-head p {
  color: var(--paper-dim);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* ---------- Shared field primitives (reused by the wizard steps) ---------- */
.ct-form__req { color: var(--signal); font-weight: 700; }

.ct-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ct-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ct-field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.ct-field input[type="text"],
.ct-field input[type="email"],
.ct-field input[type="tel"],
.ct-field input[type="url"],
.ct-field select,
.ct-field textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.94rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.ct-field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1l5 5 5-5' stroke='%235EEAD4' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

.ct-field textarea {
  resize: vertical;
  min-height: 160px;
  font-family: var(--font-body);
}

.ct-field input::placeholder,
.ct-field textarea::placeholder {
  color: var(--paper-dim);
  opacity: 0.45;
}

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  outline: none;
  border-color: var(--signal);
  background: rgba(94, 234, 212, 0.03);
  box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.12);
}

.ct-field__error {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: #FF6159;
  min-height: 1em;
}

.ct-field__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.ct-field__count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--paper-dim);
  opacity: 0.6;
  white-space: nowrap;
}

.ct-field.is-invalid input,
.ct-field.is-invalid select,
.ct-field.is-invalid textarea {
  border-color: rgba(255, 97, 89, 0.7);
  background: rgba(255, 97, 89, 0.03);
}

.ct-field.is-invalid input:focus,
.ct-field.is-invalid select:focus,
.ct-field.is-invalid textarea:focus {
  box-shadow: 0 0 0 3px rgba(255, 97, 89, 0.15);
  border-color: #FF6159;
}

/* ============================================================
   DEPARTMENT PICKER
   ============================================================ */
.ct-deptgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.ct-deptcard {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.ct-deptcard:hover,
.ct-deptcard:focus-visible {
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(94, 234, 212, 0.03);
  transform: translateY(-3px);
}

.ct-deptcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(94, 234, 212, 0.08);
  border: 1px solid rgba(94, 234, 212, 0.2);
}

.ct-deptcard__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--signal);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ct-deptcard__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--paper);
}

.ct-deptcard__tagline {
  font-size: 0.86rem;
  color: var(--paper-dim);
  line-height: 1.5;
}

.ct-deptcard__email {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--signal-dim);
}

/* ============================================================
   WIZARD SHELL
   ============================================================ */
.ct-wiz {
  max-width: 720px;
  margin: 0 auto;
  padding: 36px 40px 34px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
}

.ct-wiz__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.ct-wiz__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--paper-dim);
  cursor: pointer;
  transition: color 0.2s ease;
}

.ct-wiz__back:hover { color: var(--signal); }
.ct-wiz__back svg { width: 14px; height: 14px; }

.ct-wiz__dept {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--signal);
  text-transform: uppercase;
}

.ct-wiz__progress {
  height: 3px;
  border-radius: 3px;
  background: var(--line-soft);
  overflow: hidden;
  margin-bottom: 30px;
}

.ct-wiz__progress::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--pct, 0%);
  background: linear-gradient(90deg, var(--signal), var(--signal-dim));
  border-radius: inherit;
  transition: width 0.4s ease;
}

.ct-wiz__body {
  display: flex;
  flex-direction: column;
}

.ct-wiz__mount {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 120px;
}

.ct-wiz__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}

.ct-wiz__prev[hidden] { display: none; }

/* ---------- Step content ---------- */
.ct-step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3rem;
  color: var(--paper);
  margin-bottom: 4px;
}

.ct-step__subtitle {
  font-size: 0.9rem;
  color: var(--paper-dim);
  margin-bottom: 6px;
}

/* ---------- Radio cards ---------- */
.ct-radio-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.ct-radio-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ct-radio-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ct-radio-card__label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--paper);
}

.ct-radio-card__hint {
  font-size: 0.78rem;
  color: var(--paper-dim);
  line-height: 1.4;
}

.ct-radio-card:hover { border-color: rgba(94, 234, 212, 0.35); }

.ct-radio-card.is-checked {
  border-color: var(--signal);
  background: rgba(94, 234, 212, 0.06);
  box-shadow: 0 0 0 1px var(--signal);
}

.ct-radio-card.is-checked .ct-radio-card__label { color: var(--signal); }

/* ---------- Review step ---------- */
.ct-review__to {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--paper-dim);
  margin-bottom: 18px;
}

.ct-review__to b { color: var(--signal); font-weight: 600; }

.ct-review__section {
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}

.ct-review__section:first-of-type { border-top: none; padding-top: 0; }

.ct-review__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.ct-review__section-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--paper-dim);
}

.ct-review__edit {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--signal);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ct-review__row {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--paper);
  line-height: 1.5;
  margin-bottom: 4px;
}

.ct-review__row span:first-child {
  color: var(--paper-dim);
  flex-shrink: 0;
  min-width: 110px;
}

.ct-review__message {
  white-space: pre-wrap;
  font-size: 0.9rem;
  color: var(--paper);
  line-height: 1.6;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px 14px;
}

/* ---------- Urgent state (cybersecurity active incident) ---------- */
.ct-wiz.is-urgent {
  border-color: rgba(242, 169, 59, 0.5);
  box-shadow: 0 0 0 1px rgba(242, 169, 59, 0.15);
}

.ct-wiz.is-urgent .ct-wiz__progress::after {
  background: linear-gradient(90deg, var(--amber), #F2A93B);
}

.ct-radio-card.is-checked.ct-radio-card--urgent {
  border-color: var(--amber);
  background: rgba(242, 169, 59, 0.08);
  box-shadow: 0 0 0 1px var(--amber);
}

.ct-radio-card--urgent.is-checked .ct-radio-card__label { color: var(--amber); }

/* ============================================================
   PROCESSING OVERLAY
   ============================================================ */
.ct-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 11, 16, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: inherit;
}

.ct-mini--loading {
  width: 100%;
  max-width: 460px;
}

.ct-mini--loading .ct-mini__body { min-height: 168px; }

.ct-mini__line--enter { animation: ctLineIn 0.3s ease both; }

@keyframes ctLineIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   POST-HANDOFF PANEL
   ============================================================ */
.ct-handoff {
  text-align: center;
  padding: 12px 4px 4px;
}

.ct-handoff__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.3);
  color: var(--signal);
}

.ct-handoff h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--paper);
  margin-bottom: 8px;
}

.ct-handoff p {
  font-size: 0.92rem;
  color: var(--paper-dim);
  max-width: 420px;
  margin: 0 auto 22px;
  line-height: 1.55;
}

.ct-handoff__fallback {
  text-align: left;
  margin: 0 auto 20px;
  max-width: 480px;
}

.ct-handoff__fallback summary {
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--signal);
  list-style: none;
  text-align: center;
}

.ct-handoff__fallback summary::-webkit-details-marker { display: none; }

.ct-handoff__copy {
  margin-top: 16px;
  padding: 18px;
  background: var(--ink);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ct-handoff__copy-row {
  display: flex;
  gap: 10px;
  font-size: 0.82rem;
}

.ct-handoff__copy-row span {
  color: var(--paper-dim);
  flex-shrink: 0;
  width: 60px;
}

.ct-handoff__copy-row code {
  font-family: var(--font-mono);
  color: var(--paper);
  word-break: break-word;
}

.ct-handoff__copy textarea {
  width: 100%;
  background: #070b10;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  resize: vertical;
}

.ct-handoff__copy-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ct-handoff__restart { margin-top: 4px; }

/* ============================================================
   DIRECT CONTACT STRIP
   ============================================================ */
.ct-directbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
  padding: 16px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 0.86rem;
  text-align: center;
}

.ct-directbar__label { color: var(--paper-dim); }

.ct-directbar__value {
  font-family: var(--font-mono);
  color: var(--signal);
  text-decoration: none;
}

a.ct-directbar__value:hover { color: var(--paper); }

.ct-directbar__value--muted { color: var(--paper-dim); font-family: var(--font-body); }

.ct-directbar__sep { color: var(--paper-dim); opacity: 0.5; }

/* `hidden` must win over the explicit `display` these use for their visible state */
.ct-deptgrid[hidden],
.ct-wiz__body[hidden],
.ct-loading[hidden] { display: none; }

/* ---------- FAQ ---------- */
.ct-faq {
  background: var(--ink-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.ct-faq__grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 880px;
  margin: 0 auto;
}

.ct-faq__item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.ct-faq__item[open] { border-color: rgba(94, 234, 212, 0.3); }

.ct-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--paper);
  transition: color 0.2s ease;
}

.ct-faq__item summary::-webkit-details-marker { display: none; }

.ct-faq__item summary:hover { color: var(--signal); }

.ct-faq__icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.ct-faq__icon::before,
.ct-faq__icon::after {
  content: '';
  position: absolute;
  background: var(--signal);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.ct-faq__icon::before {
  top: 50%; left: 0;
  width: 100%; height: 1.5px;
  transform: translateY(-50%);
}

.ct-faq__icon::after {
  top: 0; left: 50%;
  width: 1.5px; height: 100%;
  transform: translateX(-50%);
}

.ct-faq__item[open] .ct-faq__icon::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

.ct-faq__body {
  padding: 0 22px 20px;
}

.ct-faq__body p {
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--paper-dim);
  margin: 0;
}

/* ---------- Closing ---------- */
.ct-closing {
  padding: 100px 0;
}

.ct-closing__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 56px 48px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.ct-closing__tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 16px;
}

.ct-closing__tag-line {
  width: 32px;
  height: 1px;
  background: var(--signal);
  flex-shrink: 0;
}

.ct-closing__content h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.ct-closing__content h2 .accent { color: var(--signal); }

.ct-closing__content p {
  color: var(--paper-dim);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 500px;
}

.ct-closing__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.ct-closing__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ct-closing__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ct-closing__code {
  width: 100%;
  padding: 30px 34px;
  background: #0A0E14;
  border: 1px solid #1E2530;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  line-height: 2.05;
  position: relative;
}

.ct-closing__code-comment {
  display: block;
  color: #9CA7B5;
  opacity: 0.5;
  margin-bottom: 6px;
}

.ct-closing__code-line { display: block; color: #E9EDF2; }

.ct-closing__code-keyword { color: #5EEAD4; }
.ct-closing__code-op      { color: #9CA7B5; }
.ct-closing__code-str     { color: #F2A93B; }

.ct-closing__code-cursor {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: #5EEAD4;
  vertical-align: -0.15em;
  animation: ctCaret 1s steps(1) infinite;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .ct-hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .ct-hero__preview { max-width: 620px; margin: 0 auto; width: 100%; }

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

  .ct-closing__card {
    grid-template-columns: 1fr;
    padding: 40px 32px;
  }
  .ct-closing__visual { order: -1; }
}

@media (max-width: 768px) {
  .ct-hero { padding: 40px 0 60px; min-height: auto; }
  .ct-hero__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
  .ct-hero__lede { font-size: 0.96rem; }

  .ct-block { padding: 64px 0; }

  .ct-deptgrid { grid-template-columns: 1fr; }
  .ct-wiz { padding: 24px 20px 22px; }

  .ct-row { grid-template-columns: 1fr; gap: 18px; }

  .ct-faq__item summary { font-size: 0.95rem; padding: 16px 18px; }
  .ct-faq__body { padding: 0 18px 18px; }

  .ct-closing__card { padding: 32px 24px; }
  .ct-closing__actions { flex-direction: column; }
  .ct-closing__actions .btn { width: 100%; justify-content: center; }
  .ct-closing__code { font-size: 0.72rem; padding: 22px 20px; }
}

@media (max-width: 480px) {
  .ct-mini__body { font-size: 0.66rem; padding: 14px 14px 16px; }
  .ct-mini__footer { flex-wrap: wrap; gap: 6px; font-size: 0.54rem; }
  .ct-closing__code { font-size: 0.64rem; }
  .ct-field input,
  .ct-field select,
  .ct-field textarea { font-size: 0.92rem; }

  .ct-wiz { padding: 20px 16px 18px; }
  .ct-deptcard { padding: 20px 18px; }
  .ct-radio-cards { grid-template-columns: 1fr; }
  .ct-wiz__nav { flex-direction: column-reverse; align-items: stretch; }
  .ct-wiz__nav .btn { width: 100%; justify-content: center; }
  .ct-review__row { flex-direction: column; gap: 2px; }
  .ct-review__row span:first-child { min-width: 0; }
  .ct-handoff__copy-actions .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-hero__blob,
  .ct-mini__live-dot,
  .ct-mini__pulse,
  .ct-mini__caret,
  .ct-closing__code-cursor,
  .ct-mini__line--enter { animation: none !important; }
}

/* Prevent horizontal overflow on small screens */
html, body { overflow-x: hidden; }
.ct-hero__inner,
.ct-deptgrid,
.ct-wiz { max-width: 100%; min-width: 0; }