.pipe-page {
  --pipe-card: #fff;
  --pipe-text: #12202d;
  --pipe-muted: #607080;
  --pipe-line: #d5e2ec;
  --pipe-primary: #0077c8;
  --pipe-primary-dark: #005a99;
  --pipe-cyan: #11c5ef;
  --pipe-soft: #eaf6fc;
}

.pipe-tool,
.pipe-tool * { box-sizing: border-box; }

.pipe-tool {
  width: min(1240px, calc(100% - 28px));
  margin: 0 auto 56px;
  padding-top: 102px;
  color: var(--pipe-text);
}

.pipe-tool h1,
.pipe-tool h2,
.pipe-tool p { margin-top: 0; }

.pipe-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 58px);
  border-radius: 26px;
  color: #fff;
  background: radial-gradient(circle at 88% 15%, rgba(17,197,239,.24), transparent 28rem), linear-gradient(135deg,#03070d 0%,#08131f 56%,#082b45 100%);
  box-shadow: 0 20px 55px rgba(5,28,52,.12);
}

.pipe-hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -130px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(145deg,rgba(17,197,239,.24),rgba(0,119,200,.04));
  pointer-events: none;
}

.pipe-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(260px,.65fr);
  gap: clamp(28px,5vw,70px);
  align-items: center;
}

.pipe-brand { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.pipe-brand img { display: block; width: min(360px,68vw); height: auto; }
.pipe-brand span { max-width: 250px; color: rgba(255,255,255,.72); text-align: right; font-size: 12px; font-weight: 800; line-height: 1.55; letter-spacing: .08em; text-transform: uppercase; }
.pipe-kicker,.pipe-eyebrow { color: var(--pipe-cyan); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pipe-kicker { margin-bottom: 9px; }
.pipe-hero h1 { max-width: 760px; margin-bottom: 17px; color: #fff; font-size: clamp(34px,5vw,62px); line-height: 1.03; letter-spacing: -.04em; }
.pipe-hero h1 span { color: #6fdcff; background: linear-gradient(90deg,#54d7ff,#0098e6); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pipe-lead { max-width: 760px; margin-bottom: 25px; color: rgba(255,255,255,.84); font-size: clamp(16px,2vw,19px); }
.pipe-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pipe-hero-link { display: inline-flex; min-height: 42px; align-items: center; justify-content: center; padding: 9px 15px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; transition: transform .2s,border-color .2s,background .2s; }
.pipe-hero-link--primary { border-color: transparent; background: linear-gradient(135deg,var(--pipe-primary-dark),var(--pipe-primary)); box-shadow: 0 8px 22px rgba(0,111,194,.28); }
.pipe-hero-link:hover { transform: translateY(-1px); border-color: rgba(111,220,255,.7); }
.pipe-hero-link--primary:hover { background: linear-gradient(135deg,#004f87,var(--pipe-primary-dark)); }

.pipe-hero-fact { padding: 26px; border: 1px solid rgba(255,255,255,.13); border-radius: 18px; background: rgba(255,255,255,.065); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.pipe-fact-label { margin-bottom: 13px; color: #9eb8c9; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.pipe-fact-size { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.pipe-fact-size strong { color: #fff; font-size: clamp(36px,4vw,52px); line-height: 1; }
.pipe-fact-size span { color: var(--pipe-cyan); font-size: 17px; font-weight: 800; }
.pipe-hero-fact p:last-child { margin-bottom: 0; color: #c5d5df; font-size: 14px; }

.pipe-jumpnav { position: relative; z-index: 2; display: flex; gap: 8px; width: calc(100% - 44px); margin: -18px auto 0; padding: 10px; overflow-x: auto; border: 1px solid var(--pipe-line); border-radius: 14px; background: rgba(255,255,255,.97); box-shadow: 0 12px 30px rgba(6,24,39,.09); scrollbar-width: thin; }
.pipe-jumpnav a { flex: 0 0 auto; padding: 9px 14px; border-radius: 999px; color: #425469; text-decoration: none; font-size: 13px; font-weight: 700; }
.pipe-jumpnav a:hover { color: var(--pipe-primary-dark); background: var(--pipe-soft); }

.pipe-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 26px; }
.pipe-card { position: relative; padding: clamp(21px,3vw,31px); overflow: hidden; border: 1px solid var(--pipe-line); border-radius: 20px; background: var(--pipe-card); box-shadow: 0 20px 55px rgba(5,28,52,.12); scroll-margin-top: 94px; }
.pipe-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg,var(--pipe-primary),var(--pipe-cyan)); }
.pipe-card--wide { grid-column: 1/-1; }
.pipe-card-heading,.pipe-section-heading { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; }
.pipe-icon { display: grid; width: 45px; height: 45px; flex: 0 0 45px; place-items: center; border: 1px solid #cce9f7; border-radius: 12px; color: var(--pipe-primary-dark); background: var(--pipe-soft); font-size: 12px; font-weight: 900; }
.pipe-card h2 { margin-bottom: 5px; color: #102334; font-size: clamp(21px,2.5vw,30px); letter-spacing: -.02em; }
.pipe-card-heading p,.pipe-section-heading p { margin-bottom: 0; color: var(--pipe-muted); }
.pipe-eyebrow { margin-bottom: 6px !important; }
.pipe-tool label { display: block; margin-bottom: 7px; color: #2a3e4d; font-size: 14px; font-weight: 700; }
.pipe-tool input,.pipe-tool select,.pipe-tool button { width: 100%; min-height: 46px; border-radius: 11px; font: inherit; }
.pipe-tool input,.pipe-tool select { padding: 10px 13px; border: 1px solid #bdcbd6; outline: 0; color: var(--pipe-text); background: #fff; }
.pipe-tool input:focus,.pipe-tool select:focus { border-color: var(--pipe-primary); box-shadow: 0 0 0 4px rgba(0,119,200,.12); }
.pipe-tool button { padding: 9px 14px; border: 0; border-radius: 999px; color: #fff; background: linear-gradient(135deg,var(--pipe-primary-dark),var(--pipe-primary)); box-shadow: 0 8px 22px rgba(0,111,194,.22); cursor: pointer; font-size: 13px; font-weight: 700; transition: transform .2s,filter .2s; }
.pipe-tool button:hover { transform: translateY(-1px); filter: brightness(1.04); }
.pipe-button-space { margin-top: 14px; }
.pipe-form-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(160px,.42fr); gap: 14px; }
.pipe-align-end { align-self: end; }
.pipe-result { min-height: 66px; margin-top: 15px; padding: 15px 17px; border: 1px solid #c7e4f2; border-radius: 12px; color: #233847; background: linear-gradient(135deg,#eef9fd,#f8fcfe); }
.pipe-result strong { color: var(--pipe-primary-dark); }
.pipe-result small { display: block; margin-top: 4px; color: var(--pipe-muted); }
.pipe-match-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pipe-match-item { padding: 12px; border: 1px solid #d5eaf4; border-radius: 10px; background: rgba(255,255,255,.72); }
.pipe-match-item strong { display: block; margin-bottom: 3px; }
.pipe-filter { margin-bottom: 14px; padding-left: 42px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23607080' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.2-3.2'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: 13px center !important; }
.pipe-table-wrap { overflow-x: auto; border: 1px solid var(--pipe-line); border-radius: 12px; background: #fff; }
.pipe-tool table { width: 100%; min-width: 660px; border-collapse: collapse; background: #fff; }
.pipe-tool th,.pipe-tool td { padding: 13px 15px; border-bottom: 1px solid var(--pipe-line); text-align: left; white-space: nowrap; }
.pipe-tool th { position: sticky; top: 0; z-index: 1; color: #eaf5fb; background: #0b263b; font-size: 13px; font-weight: 800; }
.pipe-tool tr:last-child td { border-bottom: 0; }
.pipe-tool tbody tr:nth-child(even) { background: #f7fafc; }
.pipe-tool tbody tr:hover { background: #edf8fd; }
.pipe-badge { display: inline-flex; padding: 4px 9px; border: 1px solid #cce7f4; border-radius: 999px; color: var(--pipe-primary-dark); background: var(--pipe-soft); font-size: 13px; font-weight: 800; }
.pipe-muted { color: var(--pipe-muted); }
.pipe-footnote { margin: 16px 0 0; padding: 13px 15px; border-left: 3px solid #75c8eb; color: var(--pipe-muted); background: #f7fafc; font-size: 13px; }

@media (max-width:900px) { .pipe-hero-grid { grid-template-columns:1fr; } .pipe-hero-fact { max-width:500px; } .pipe-match-list { grid-template-columns:1fr; } }
@media (max-width:820px) { .pipe-grid { grid-template-columns:1fr; } .pipe-card--wide { grid-column:auto; } .pipe-jumpnav { width:calc(100% - 24px); } }
@media (max-width:720px) { .pipe-tool { width:calc(100% - 18px); padding-top:82px; } .pipe-hero { border-radius:18px; } }
@media (max-width:560px) {
  .pipe-hero { padding:25px 20px 38px; }
  .pipe-brand { align-items:flex-start; flex-direction:column; }
  .pipe-brand span { max-width:none; text-align:left; }
  .pipe-hero-actions { display:grid; }
  .pipe-hero-link { width:100%; }
  .pipe-card { padding:21px 17px; border-radius:16px; }
  .pipe-form-grid { grid-template-columns:1fr; }
  .pipe-align-end { align-self:auto; }
  .pipe-tool th,.pipe-tool td { padding:11px 12px; }
}
@media (prefers-reduced-motion:reduce) { .pipe-tool * { transition:none !important; } }
