/* techpulsekey.com — subpages (uses tokens from home.css) */
:root {
  --cf-accent: var(--mint-dk);
  --cf-on: #FFFFFF;
}

/* ---------- Page hero ---------- */
.phero {
  padding: clamp(48px, 7vw, 88px) var(--gutter) clamp(40px, 5vw, 64px);
  background: var(--paper);
}

.phero-in {
  max-width: var(--wrap);
  margin: 0 auto;
}

.phero h1 {
  max-width: 26ch;
  font-size: clamp(2.4rem, 5vw, 3.5rem);
}

.phero h1::after {
  content: "";
  display: block;
  width: 44px;
  height: 2px;
  margin-top: 18px;
  background: var(--mint);
}

.phero p {
  max-width: 56ch;
  margin: 18px 0 0;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
/* ---------- Reading column ---------- */
.prose {
  min-width: 0;
}

.prose-solo {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter);
}

.prose h2 {
  margin: 40px 0 12px;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.prose > h2:first-child,
.prose section:first-child h2 {
  margin-top: 0;
}

.prose p,
.prose li {
  color: var(--ink-soft);
}

.prose ul {
  padding-left: 0;
  list-style: none;
}

.prose li {
  position: relative;
  padding-left: 26px;
  margin-bottom: 10px;
}

.prose li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.8em;
  width: 10px;
  height: 2px;
  background: var(--mint-dk);
}

.prose section {
  scroll-margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}

.prose section:last-of-type {
  border-bottom: 0;
}

.updated {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Legal layout with sticky contents ---------- */
.legal {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 56px;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 80px) var(--gutter);
}

.legal .prose {
  max-width: 760px;
}

.toc {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.toc-title {
  margin: 0 0 12px;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.95rem;
}

.toc li {
  margin-bottom: 6px;
}

.toc a {
  color: var(--ink);
  text-decoration: none;
}

.toc a:hover {
  color: var(--mint-dk);
  text-decoration: underline;
}

/* ---------- Contact ---------- */
.contact-mail {
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 760px;
  margin: clamp(40px, 5vw, 64px) auto 0;
  padding: 0 var(--gutter);
}

.contact-mail svg {
  flex: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linejoin: round;
  background: var(--stone);
  border-radius: var(--radius);
}

.contact-mail p {
  margin: 0;
  font-size: 1.1rem;
}

.contact-mail a {
  font-weight: 700;
  overflow-wrap: anywhere;
}

/* ---------- Contact form ---------- */
.cform {
  padding: 0 var(--gutter);
  margin: 28px 0 clamp(48px, 6vw, 80px);
}

.cform-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--cf-accent);
  border-radius: 4px;
}

.cform-inner h2 {
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 3.6vw, 2.4rem);
}

.cform-intro {
  margin: 0 0 24px;
  color: var(--ink-soft);
}

.cform-form {
  display: grid;
  gap: 18px;
}

.cform-row {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.cform-row label {
  font-weight: 700;
  font-size: 0.95rem;
}

.cform input[type="text"],
.cform input[type="email"],
.cform select,
.cform textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid rgba(34, 34, 47, 0.3);
  border-radius: 4px;
}

.cform textarea {
  resize: vertical;
  min-height: 150px;
}

.cform option {
  color: #111111;
  background: #FFFFFF;
}

.cform input:focus,
.cform select:focus,
.cform textarea:focus,
.cform-btn:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 2px;
}

.cform-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
}

.cform-consent input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cf-accent);
}

.cform-consent a {
  color: inherit;
  text-decoration: underline;
}

.cform-btn {
  justify-self: start;
  min-height: 50px;
  padding: 0 28px;
  font: inherit;
  font-weight: 700;
  color: var(--cf-on);
  background: var(--cf-accent);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}

.cform-btn:hover {
  background: var(--ink);
}

.cform-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cform-status {
  display: none;
  margin: 0 0 20px;
  padding: 14px 16px;
  border-radius: 4px;
  font-weight: 700;
}

.cform-status:target {
  display: block;
}

.cform-ok {
  background: var(--mint-tint);
  border: 1px solid var(--mint-dk);
}

.cform-err {
  background: #FBE7E4;
  border: 1px solid #B2392B;
}

@media (min-width: 720px) {
  .cform-form {
    grid-template-columns: 1fr 1fr;
  }

  .cform-wide,
  .cform-btn {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .legal {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 600px) {
  .cform-btn {
    width: 100%;
  }
}
