/* ============================================================
   priyamraj.com — resource pages (/voice, and the next ones)
   Instagram "comment KEYWORD" pages. Loaded after home.css, which
   supplies the tokens, masthead, footer and toast.

   New page: copy voice/index.html to <keyword>/index.html, swap the
   copy and the link, add it to sitemap.xml. The building blocks are:
     .kw-hero   eyebrow chip, headline, lead, CTA row, disclosure
     .kw-facts  three "what you need" figures
     .kw-steps  numbered steps, each with an optional .kw-tip
     .kw-check  a checklist
     .kw-faq    <details> questions
     .kw-cta    closing call to action
   ============================================================ */

.kw {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.kw section { padding-top: clamp(56px, 8vw, 96px); }

/* ---------- hero ---------- */

.kw-hero { padding-top: clamp(120px, 16vw, 180px) !important; }

.kw .kw-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.kw-chip b {
  font-weight: 600;
  color: var(--ink);
}

.kw-chip svg { width: 14px; height: 14px; flex: none; }

.kw-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.kw-hero h1 em { font-style: italic; }

.kw .kw-lead {
  max-width: 60ch;
  margin: 26px 0 0;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
}

.kw-lead strong { color: var(--ink); font-weight: 500; }

.kw-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin: 34px 0 0;
}

.kw-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease;
}

.kw-btn:hover { background: #fff; transform: translateY(-1px); }

.kw-btn span { transition: transform 0.2s ease; }
.kw-btn:hover span { transform: translateX(3px); }

.kw-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.kw-link:hover { color: var(--ink); border-color: var(--ink); }

.kw .kw-disclose {
  margin: 18px 0 0;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ---------- facts ---------- */

.kw-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.kw-facts div {
  padding: 22px 18px 22px 20px;
  border-left: 1px solid var(--rule);
}

.kw-facts div:first-child { border-left: 0; padding-left: 0; }

.kw-facts dd {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.kw-facts dt {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- prose ---------- */

.kw h2 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.kw h2 em { font-style: italic; }

.kw p { margin: 0 0 14px; }

.kw-body { color: var(--ink-soft); max-width: 62ch; }
.kw-body strong { color: var(--ink); font-weight: 500; }

.kw a.inline {
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color 0.2s ease;
}

.kw a.inline:hover { border-color: var(--ink); }

/* ---------- steps ---------- */

.kw-steps {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  counter-reset: step;
}

.kw-steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 0 18px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}

.kw-steps > li:last-child { border-bottom: 1px solid var(--rule); }

.kw-steps > li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  font-size: 34px;
  line-height: 1;
  color: var(--ink-faint);
}

.kw-steps h3 {
  margin: 2px 0 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.kw-steps p,
.kw-steps ul { color: var(--ink-soft); }

.kw-steps p:last-child { margin-bottom: 0; }

.kw-steps ul {
  margin: 0 0 14px;
  padding-left: 18px;
}

.kw-steps ul li { margin: 4px 0; }

.kw-steps strong { color: var(--ink); font-weight: 500; }

.kw-tip {
  margin: 16px 0 0 !important;
  padding: 14px 16px;
  border-left: 2px solid var(--ink);
  background: var(--bg-2);
  font-size: 14.5px;
  color: var(--ink) !important;
}

.kw-tip b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- checklist ---------- */

.kw-check {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
}

.kw-check li {
  position: relative;
  padding: 14px 0 14px 30px;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 15px;
}

.kw-check li strong { color: var(--ink); font-weight: 500; }

.kw-check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(-45deg);
}

/* ---------- faq ---------- */

.kw-faq { margin-top: 26px; }

.kw-faq details {
  border-top: 1px solid var(--rule);
}

.kw-faq details:last-child { border-bottom: 1px solid var(--rule); }

.kw-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 20px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.3;
}

.kw-faq summary::-webkit-details-marker { display: none; }

.kw-faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--ink-faint);
  transition: transform 0.2s ease;
}

.kw-faq details[open] summary::after { transform: rotate(45deg); }

.kw-faq details > div {
  padding: 0 0 20px;
  max-width: 62ch;
  color: var(--ink-soft);
}

/* ---------- closing cta ---------- */

.kw-cta {
  margin-top: clamp(56px, 8vw, 96px);
  padding: clamp(32px, 5vw, 52px);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--bg-2);
}

.kw section.kw-cta { padding-top: clamp(32px, 5vw, 52px); }

.kw-cta h2 { margin-bottom: 12px; }

.kw-cta .kw-body { margin-bottom: 0; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .kw-facts { grid-template-columns: minmax(0, 1fr); }
  .kw-facts div { border-left: 0; padding: 18px 0; border-top: 1px solid var(--rule); }
  .kw-facts div:first-child { border-top: 0; }

  .kw-steps > li { grid-template-columns: minmax(0, 1fr); }
  .kw-steps > li::before { margin-bottom: 12px; font-size: 28px; }

  .kw-check { grid-template-columns: minmax(0, 1fr); }

  .kw-actions { flex-direction: column; align-items: flex-start; }
}
