.tech-pack-page {
  min-height: 80vh;
  padding-bottom: 4rem;
  color: #0f172a;
  background: #f4f6fa;
  font-family: "Outfit", "Segoe UI", sans-serif;
}

.tp-container {
  width: min(100% - 2rem, 82rem);
  margin: 0 auto;
}

.tp-hero {
  padding: 3.75rem 0 4.5rem;
  color: #eef2ff;
  background:
    radial-gradient(ellipse at 85% 10%, rgba(245, 166, 35, .18), transparent 34rem),
    linear-gradient(120deg, #08111f, #111e32);
}

.tp-eyebrow,
.tp-kicker {
  color: #d89013;
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.tp-hero .tp-eyebrow {
  margin-bottom: .85rem;
  color: #f5a623;
}

.tp-hero h1 {
  max-width: 46rem;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.04;
}

.tp-hero-copy {
  max-width: 43rem;
  margin-top: 1rem;
  color: rgba(238, 242, 255, .76);
  font-size: 1.05rem;
  line-height: 1.7;
}

.tp-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-top: 1.5rem;
}

.tp-hero-points span {
  padding: .45rem .75rem;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px;
  color: rgba(238, 242, 255, .88);
  background: rgba(255, 255, 255, .06);
  font-size: .8rem;
}

.tp-workspace {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(19rem, .75fr);
  align-items: start;
  gap: 1.5rem;
  margin-top: -1.75rem;
}

.tp-form,
.tp-preview,
.tp-templates {
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 35px rgba(15, 23, 42, .06);
}

.tp-form {
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.tp-form-heading {
  margin-bottom: 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid #e8edf3;
}

.tp-form-heading h2,
.tp-preview h2,
.tp-templates h2 {
  margin-top: .35rem;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

.tp-form-heading > p:last-child,
.tp-preview-intro,
.tp-templates > p:not(.tp-kicker) {
  margin-top: .45rem;
  color: #64748b;
  font-size: .9rem;
  line-height: 1.6;
}

.tp-form-section {
  min-width: 0;
  margin: 0;
  padding: 1.45rem 0;
  border: 0;
  border-bottom: 1px solid #e8edf3;
}

.tp-form-section legend {
  float: left;
  width: 100%;
  margin-bottom: 1rem;
  color: #182235;
  font-size: .97rem;
  font-weight: 800;
}

.tp-form-section legend + * {
  clear: both;
}

.tp-form-section legend span {
  display: inline-grid;
  width: 1.75rem;
  height: 1.75rem;
  margin-right: .4rem;
  place-items: center;
  border-radius: 50%;
  color: #111827;
  background: #f5a623;
  font-size: .75rem;
}

.tp-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  clear: both;
}

.tp-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .45rem;
  color: #253247;
  font-size: .84rem;
  font-weight: 700;
}

.tp-field > span b {
  color: #dc2626;
}

.tp-field small {
  color: #8290a3;
  font-size: .75rem;
  font-weight: 500;
}

.tp-field-wide {
  grid-column: 1 / -1;
}

.tp-field input,
.tp-field select,
.tp-field textarea {
  width: 100%;
  min-height: 2.85rem;
  padding: .7rem .8rem;
  border: 1px solid #d8e0ea;
  border-radius: .55rem;
  outline: none;
  color: #172033;
  background: #fbfcfe;
  font-size: .88rem;
  font-weight: 500;
  transition: border-color .15s, box-shadow .15s, background .15s;
}

.tp-field textarea {
  min-height: 6rem;
  resize: vertical;
  line-height: 1.55;
}

.tp-field input::placeholder,
.tp-field textarea::placeholder {
  color: #98a3b2;
}

.tp-field input:focus,
.tp-field select:focus,
.tp-field textarea:focus {
  border-color: #e5a02a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(245, 166, 35, .14);
}

.tp-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .55rem;
  margin-top: .2rem;
}

.tp-choice-grid label {
  display: flex;
  min-height: 2.7rem;
  align-items: center;
  gap: .55rem;
  padding: .55rem .65rem;
  border: 1px solid #e0e6ee;
  border-radius: .55rem;
  color: #475569;
  background: #fbfcfe;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
}

.tp-choice-grid input {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: #e79a1b;
}

.tp-fields-order {
  margin-top: 1rem;
}

.tp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.tp-button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .85rem;
  font-weight: 800;
  transition: transform .15s, background .15s, border-color .15s;
}

.tp-button:hover {
  transform: translateY(-1px);
}

.tp-button-primary {
  color: #101827;
  background: #f5a623;
}

.tp-button-primary:hover {
  background: #ffba43;
}

.tp-button-secondary {
  border-color: #d8e0ea;
  color: #263449;
  background: #fff;
}

.tp-button-secondary:hover {
  border-color: #aeb9c8;
  background: #f8fafc;
}

.tp-form-note {
  margin-top: .75rem;
  color: #758398;
  font-size: .77rem;
  line-height: 1.5;
}

.tp-side {
  position: sticky;
  top: 125px;
  display: grid;
  gap: 1rem;
}

.tp-preview,
.tp-templates {
  padding: 1.35rem;
}

.tp-preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.tp-preview-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: .7rem;
  color: #f5a623;
  background: #101827;
  font-size: .72rem;
  font-weight: 900;
}

.tp-preview h2 {
  margin-top: .75rem;
}

.tp-summary {
  display: grid;
  gap: .7rem;
  margin: 1.25rem 0;
}

.tp-summary > div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: .5rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid #edf0f4;
  font-size: .78rem;
  line-height: 1.45;
}

.tp-summary dt {
  color: #78869a;
  font-weight: 700;
}

.tp-summary dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #253247;
  font-weight: 600;
  white-space: pre-wrap;
}

.tp-contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding-top: .9rem;
  border-top: 1px solid #edf0f4;
  color: #9a620e;
  font-size: .82rem;
  font-weight: 800;
}

.tp-contact-link:hover {
  color: #c47a09;
}

.tp-templates h2 {
  font-size: 1.15rem;
}

.tp-templates ul {
  display: grid;
  gap: .4rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tp-templates li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .75rem;
  border: 1px solid #e6ebf1;
  border-radius: .5rem;
  color: #344256;
  background: #fbfcfe;
  font-size: .82rem;
  font-weight: 700;
  transition: border-color .15s, background .15s;
}

.tp-templates li a:hover {
  border-color: #f1c36f;
  background: #fffbf2;
}

.tp-templates li span {
  flex-shrink: 0;
  color: #9a620e;
  font-size: .7rem;
  font-weight: 800;
}

@media (max-width: 900px) {
  .tp-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-side {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .tp-container {
    width: min(100% - 1.25rem, 82rem);
  }

  .tp-hero {
    padding: 2.75rem 0 3.5rem;
  }

  .tp-hero-copy {
    font-size: .95rem;
  }

  .tp-workspace {
    gap: .85rem;
    margin-top: -1.25rem;
  }

  .tp-form {
    padding: 1rem;
  }

  .tp-form-section {
    padding: 1.15rem 0;
  }

  .tp-fields,
  .tp-side,
  .tp-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tp-field-wide {
    grid-column: auto;
  }

  .tp-actions {
    flex-direction: column;
  }

  .tp-button {
    width: 100%;
  }
}

@media print {
  body.site-shell-active {
    padding-top: 0 !important;
  }

  .site-shell-topbar,
  .site-shell-nav,
  .site-shell-footer,
  .tp-hero,
  .tp-templates,
  .tp-actions,
  .tp-form-note,
  .tp-contact-link {
    display: none !important;
  }

  .tech-pack-page {
    padding: 0;
    background: #fff;
  }

  .tp-workspace {
    display: block;
    width: 100%;
    margin: 0;
  }

  .tp-form,
  .tp-preview {
    border: 0;
    box-shadow: none;
  }

  .tp-side {
    position: static;
    display: block;
    margin-top: 1rem;
  }
}
