/* ═══════════════════════════════════════════════════════════════════════
   public/css/how-it-works.css
   All classes prefixed hiw- to avoid collisions with global styles.
═══════════════════════════════════════════════════════════════════════ */

/* ── SHARED UTILITIES ────────────────────────────────────────────── */
.hiw-label{font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;font-weight:500}
.hiw-label-dim{color:rgba(255,255,255,.4)}
.hiw-rule{width:32px;height:2px;background:var(--red);display:inline-block}
.hiw-red{color:var(--red);font-weight:600}

.hiw-h1{
  font-family:'Instrument Serif',serif;
  font-size:clamp(2.4rem,5vw,4rem);
  font-weight:400;line-height:1.15;
  max-width:700px;margin-bottom:24px;
}
.hiw-h1 em{font-style:italic;color:rgba(255,255,255,.6)}
.hiw-h2{
  font-family:'Instrument Serif',serif;
  font-size:clamp(1.8rem,3vw,2.6rem);
  font-weight:400;line-height:1.2;margin-bottom:12px;
}
.hiw-section-header{margin-bottom:64px}
.hiw-section-header .hiw-label{color:var(--ink-3);margin-bottom:12px;display:block}
.hiw-section-sub{font-size:.95rem;color:var(--ink-3);max-width:540px;line-height:1.7}

/* ── BUTTONS ─────────────────────────────────────────────────────── */
.hiw-btn-primary{
  background:var(--red);color:#fff;
  font-size:.78rem;font-weight:600;letter-spacing:.08em;
  text-transform:uppercase;padding:13px 28px;
  text-decoration:none;display:inline-block;
  transition:background .2s;
}
.hiw-btn-primary:hover{background:var(--red-lt)}
.hiw-btn-ghost{
  background:transparent;color:rgba(255,255,255,.6);
  font-size:.78rem;font-weight:500;letter-spacing:.06em;
  text-transform:uppercase;padding:13px 28px;
  text-decoration:none;border:1px solid rgba(255,255,255,.15);
  display:inline-block;transition:all .2s;
}
.hiw-btn-ghost:hover{color:#fff;border-color:rgba(255,255,255,.4)}
.hiw-btn-red{
  background:var(--red);color:#fff;
  font-size:.75rem;font-weight:600;letter-spacing:.08em;
  text-transform:uppercase;padding:11px 24px;
  text-decoration:none;display:inline-block;
  transition:background .2s;
}
.hiw-btn-red:hover{background:var(--red-lt)}
.hiw-link-quiet{
  font-size:.8rem;color:var(--ink-3);
  text-decoration:none;letter-spacing:.02em;
  transition:color .2s;
}
.hiw-link-quiet:hover{color:var(--ink)}

/* ── HERO ────────────────────────────────────────────────────────── */
.hiw-hero{
  background:var(--ink);color:var(--white);
  padding:100px 0 80px;position:relative;overflow:hidden;
}
.hiw-hero::before{
  content:'';position:absolute;inset:0;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.03) 0 1px,transparent 1px 80px),
    repeating-linear-gradient(0deg,rgba(255,255,255,.03) 0 1px,transparent 1px 80px);
}
.hiw-hero-inner{position:relative;z-index:1}
.hiw-hero-eyebrow{display:flex;align-items:center;gap:12px;margin-bottom:28px}
.hiw-hero-eyebrow .hiw-label{color:rgba(255,255,255,.45)}
.hiw-hero-sub{
  font-size:1.05rem;color:rgba(255,255,255,.55);
  max-width:520px;line-height:1.7;margin-bottom:40px;
}
.hiw-hero-actions{display:flex;gap:16px;flex-wrap:wrap}

/* ── INTRO STRIP ─────────────────────────────────────────────────── */
.hiw-intro-strip{
  border-bottom:1px solid var(--rule);
  padding:48px 0;background:var(--bg);
}
.hiw-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:0}
.hiw-stat{padding:0 40px;border-right:1px solid var(--rule)}
.hiw-stat:first-child{padding-left:0}
.hiw-stat:last-child{border-right:none}
.hiw-stat-num{
  font-family:'Instrument Serif',serif;
  font-size:2.4rem;font-weight:400;
  color:var(--red);line-height:1;margin-bottom:6px;
}
.hiw-stat-text{font-size:.82rem;color:var(--ink-3);line-height:1.5}

/* ── PROCESS ─────────────────────────────────────────────────────── */
.hiw-process{padding:96px 0;background:var(--white)}
.hiw-steps{
  display:grid;grid-template-columns:repeat(4,1fr);
  gap:0;position:relative;
}
.hiw-steps::before{
  content:'';position:absolute;
  top:28px;left:calc(25%/2);
  width:calc(100% - 25%);height:1px;
  background:var(--rule);z-index:0;
}
.hiw-step{padding:0 24px 0 0;position:relative;z-index:1}
.hiw-step:last-child{padding-right:0}
.hiw-step-num{
  width:56px;height:56px;background:var(--white);
  border:1px solid var(--rule);
  display:flex;align-items:center;justify-content:center;
  font-family:'Instrument Serif',serif;
  font-size:1.4rem;color:var(--ink-3);
  margin-bottom:24px;position:relative;z-index:1;
  transition:border-color .3s,color .3s,background .3s;
}
.hiw-step:hover .hiw-step-num{
  border-color:var(--red);color:var(--red);background:rgba(192,39,45,.04);
}
.hiw-step-icon{font-size:1.1rem;margin-bottom:16px;color:var(--red)}
.hiw-step-title{font-size:.95rem;font-weight:600;color:var(--ink);margin-bottom:8px}
.hiw-step-body{font-size:.82rem;color:var(--ink-3);line-height:1.65}
.hiw-step-tag{
  margin-top:12px;display:inline-block;
  font-size:.65rem;letter-spacing:.12em;text-transform:uppercase;
  font-weight:600;color:var(--red);
  padding:3px 8px;border:1px solid rgba(192,39,45,.2);
  background:rgba(192,39,45,.04);
}

/* ── WHY RFQ ─────────────────────────────────────────────────────── */
.hiw-why{
  padding:96px 0;background:var(--bg);
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
}
.hiw-why-grid{
  display:grid;grid-template-columns:repeat(3,1fr);
  gap:1px;background:var(--rule);margin-top:48px;
}
.hiw-why-card{background:var(--white);padding:40px 36px;transition:background .2s}
.hiw-why-card:hover{background:var(--bg)}
.hiw-why-icon{
  width:40px;height:40px;border:1px solid var(--rule);
  display:flex;align-items:center;justify-content:center;
  margin-bottom:20px;font-size:.9rem;color:var(--red);
}
.hiw-why-card h3{font-size:1rem;font-weight:600;margin-bottom:10px;color:var(--ink)}
.hiw-why-card p{font-size:.82rem;color:var(--ink-3);line-height:1.65}

/* ── PROPOSAL ─────────────────────────────────────────────────────── */
.hiw-proposal{padding:96px 0;background:var(--white)}
.hiw-proposal-inner{
  display:grid;grid-template-columns:1fr 1fr;
  gap:80px;align-items:start;
}
.hiw-proposal-items{display:flex;flex-direction:column}
.hiw-pi{
  display:flex;align-items:flex-start;gap:16px;
  padding:20px 0;border-bottom:1px solid var(--rule);
}
.hiw-pi:first-child{border-top:1px solid var(--rule)}
.hiw-pi-icon{
  width:32px;height:32px;min-width:32px;
  background:rgba(192,39,45,.06);
  display:flex;align-items:center;justify-content:center;
  font-size:.8rem;color:var(--red);margin-top:2px;
}
.hiw-pi strong{display:block;font-size:.88rem;font-weight:600;color:var(--ink);margin-bottom:2px}
.hiw-pi span{font-size:.8rem;color:var(--ink-3);line-height:1.5}

.hiw-sample{
  border:1px solid var(--rule);background:var(--bg);padding:32px;
}
.hiw-sample-header{
  display:flex;align-items:center;justify-content:space-between;
  margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--rule);
}
.hiw-sample-badge{
  font-size:.65rem;letter-spacing:.1em;text-transform:uppercase;
  font-weight:600;color:var(--white);background:var(--nova);padding:4px 10px;
}
.hiw-sample-row{
  display:flex;justify-content:space-between;align-items:baseline;
  padding:10px 0;border-bottom:1px solid var(--rule);font-size:.82rem;
}
.hiw-sample-row:last-of-type{border-bottom:none}
.hiw-sample-row span:first-child{color:var(--ink-3)}
.hiw-sample-row span:last-child{font-weight:500;color:var(--ink)}
.hiw-sample-total{
  display:flex;justify-content:space-between;align-items:baseline;
  padding:16px 0 0;border-top:2px solid var(--ink);margin-top:8px;
}
.hiw-sample-total span:first-child{
  font-size:.78rem;text-transform:uppercase;letter-spacing:.1em;
  font-weight:600;color:var(--ink-3);
}
.hiw-sample-total span:last-child{
  font-family:'Instrument Serif',serif;font-size:1.5rem;color:var(--ink);
}
.hiw-sample-note{font-size:.72rem;color:var(--ink-3);margin-top:16px;line-height:1.5}

/* ── TIMELINE ─────────────────────────────────────────────────────── */
.hiw-timeline{
  background:var(--nova);padding:64px 0;
  color:var(--white);overflow:hidden;position:relative;
}
.hiw-timeline::before{
  content:'';position:absolute;inset:0;
  background:repeating-linear-gradient(
    90deg,rgba(255,255,255,.04) 0 1px,transparent 1px 120px
  );
}
.hiw-timeline .hiw-label{
  color:rgba(255,255,255,.4);margin-bottom:32px;display:block;
  position:relative;z-index:1;
}
.hiw-timeline-track{
  display:flex;align-items:flex-start;
  position:relative;z-index:1;
}
.hiw-timeline-track::before{
  content:'';position:absolute;
  top:14px;left:0;right:0;height:1px;
  background:rgba(255,255,255,.15);
}
.hiw-tnode{flex:1;position:relative;padding-top:36px;padding-right:24px}
.hiw-tnode:last-child{padding-right:0}
.hiw-tdot{
  position:absolute;top:8px;left:0;
  width:12px;height:12px;border-radius:50%;
  background:rgba(255,255,255,.25);
  border:2px solid rgba(255,255,255,.4);
}
.hiw-tnode-active .hiw-tdot{
  background:var(--red);border-color:var(--red-lt);
  box-shadow:0 0 0 4px rgba(192,39,45,.3);
}
.hiw-ttime{
  font-size:.65rem;letter-spacing:.15em;text-transform:uppercase;
  font-weight:600;color:rgba(255,255,255,.4);margin-bottom:6px;
}
.hiw-ttext{font-size:.85rem;color:rgba(255,255,255,.8);line-height:1.55}
.hiw-tnode-active .hiw-ttext{color:#fff}

/* ── ACCOUNT ─────────────────────────────────────────────────────── */
.hiw-account{
  padding:80px 0;background:var(--bg);
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
}
.hiw-account-inner{
  display:grid;grid-template-columns:1fr 1fr;
  gap:80px;align-items:center;
}
.hiw-account-links{display:flex;align-items:center;gap:20px;flex-wrap:wrap}
.hiw-benefits{display:flex;flex-direction:column}
.hiw-benefit{
  display:flex;align-items:flex-start;gap:14px;
  padding:16px 0;border-bottom:1px solid var(--rule);
}
.hiw-benefit:first-child{border-top:1px solid var(--rule)}
.hiw-benefit-check{
  width:20px;height:20px;min-width:20px;
  display:flex;align-items:center;justify-content:center;
  color:var(--red);font-size:.7rem;margin-top:3px;
}
.hiw-benefit strong{display:block;font-size:.85rem;font-weight:600;color:var(--ink);margin-bottom:1px}
.hiw-benefit span{font-size:.78rem;color:var(--ink-3)}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.hiw-faq{padding:96px 0;background:var(--white)}
.hiw-faq-grid{
  display:grid;grid-template-columns:1fr 1fr;
  gap:0;margin-top:48px;border:1px solid var(--rule);
}
.hiw-faq-item{border-bottom:1px solid var(--rule);border-right:1px solid var(--rule)}
.hiw-faq-item:nth-child(even){border-right:none}
.hiw-faq-item:nth-last-child(-n+2){border-bottom:none}
.hiw-faq-q{
  width:100%;text-align:left;background:none;border:none;
  padding:28px 32px;
  display:flex;justify-content:space-between;align-items:center;
  gap:16px;cursor:pointer;
  font-family:'Geist',sans-serif;
}
.hiw-faq-qtext{font-size:.9rem;font-weight:500;color:var(--ink);text-align:left;line-height:1.4}
.hiw-faq-chev{
  width:20px;height:20px;min-width:20px;
  border:1px solid var(--rule);
  display:flex;align-items:center;justify-content:center;
  color:var(--ink-3);font-size:.65rem;
  transition:transform .25s,border-color .2s,color .2s;
}
.hiw-faq-item.open .hiw-faq-chev{
  transform:rotate(45deg);border-color:var(--red);color:var(--red);
}
.hiw-faq-a{max-height:0;overflow:hidden;transition:max-height .3s ease}
.hiw-faq-abody{
  padding:0 32px 24px;
  font-size:.83rem;color:var(--ink-3);line-height:1.7;
}

/* ── CTA FOOTER ──────────────────────────────────────────────────── */
.hiw-cta{
  background:var(--ink);padding:80px 0;
  color:var(--white);position:relative;overflow:hidden;
}
.hiw-cta::before{
  content:'';position:absolute;inset:0;
  background:repeating-linear-gradient(
    135deg,rgba(255,255,255,.02) 0 1px,transparent 1px 48px
  );
}
.hiw-cta-inner{
  position:relative;z-index:1;
  display:grid;grid-template-columns:1fr auto;
  gap:48px;align-items:center;
}
.hiw-cta-h2{
  font-family:'Instrument Serif',serif;
  font-size:clamp(1.6rem,2.5vw,2.2rem);
  font-weight:400;line-height:1.25;margin-bottom:8px;
}
.hiw-cta-sub{font-size:.88rem;color:rgba(255,255,255,.5)}
.hiw-cta-actions{display:flex;gap:12px;flex-direction:column;align-items:flex-end}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media(max-width:900px){
  .hiw-steps{grid-template-columns:1fr 1fr;gap:40px}
  .hiw-steps::before{display:none}
  .hiw-why-grid{grid-template-columns:1fr}
  .hiw-proposal-inner{grid-template-columns:1fr}
  .hiw-account-inner{grid-template-columns:1fr}
  .hiw-faq-grid{grid-template-columns:1fr}
  .hiw-faq-item{border-right:none}
  .hiw-faq-item:nth-last-child(-n+2){border-bottom:1px solid var(--rule)}
  .hiw-faq-item:last-child{border-bottom:none}
  .hiw-cta-inner{grid-template-columns:1fr}
  .hiw-cta-actions{align-items:flex-start}
  .hiw-stats{grid-template-columns:1fr;gap:0}
  .hiw-stat{border-right:none;padding:0 0 24px;border-bottom:1px solid var(--rule)}
  .hiw-stat:last-child{border-bottom:none;padding-bottom:0}
  .hiw-timeline-track{flex-direction:column;gap:32px}
  .hiw-timeline-track::before{display:none}
  .hiw-tdot{top:0}
  .hiw-tnode{padding-top:0;padding-left:28px;padding-right:0}
}