/* =========================================================
   Eco Pulse — conversor (complementa style.css)
   ========================================================= */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; animation: hero-in .8s var(--ease) .5s backwards; }
.jump a {
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: #fff;
  text-decoration: none; font-weight: 500; font-size: .92rem; transition: background-color .25s, border-color .25s, color .25s;
}
.jump a:hover { background: #fff; border-color: #fff; color: var(--navy); }

.step-k { font-size: .76rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: .6rem; }
.hint { font-size: .84rem; color: var(--text-2); margin-top: .8rem; }

/* campos */
.num-unit { position: relative; }
.num-unit span { position: absolute; right: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-2); font-weight: 600; pointer-events: none; }
.alt input[type="text"], .conv-card input[type="text"], .conv-card select {
  width: 100%; padding: .8rem 1rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface);
  font: 600 1.05rem var(--font-body); color: var(--text); transition: border-color .25s, box-shadow .25s;
}
.num-unit input[type="text"] { padding-right: 3rem; }
.conv-card select { appearance: none; padding-right: 2.6rem; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 6l4 4 4-4' fill='none' stroke='%23063E70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right .9rem center/16px no-repeat; }
.alt input[type="text"]:focus, .conv-card input:focus, .conv-card select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(32, 118, 65, .14); }
.conv-card label, .conv-card legend, .alt-input label { color: var(--navy); }

/* ---------- Altitude ---------- */
.alt { background: var(--surface); }
.alt-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.alt h2 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); color: var(--navy); }
.alt .lead { margin-top: .9rem; }
.alt-input { margin-top: 2rem; }
.alt-row { display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; align-items: center; }
.alt input[type="range"] { accent-color: var(--green); }
.chips-light { margin-top: 1rem; }
.chips-light button {
  padding: .5rem .9rem; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  font: 500 .88rem var(--font-body); color: var(--navy); cursor: pointer; transition: background-color .25s, border-color .25s, color .25s;
}
.chips-light button:hover { border-color: var(--green); }
.chips-light button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.alt-out { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 1.8rem 0 0; }
.alt-out div { background: var(--bg); border-radius: 12px; padding: 1rem 1.1rem; }
.alt-out dt { font-size: .82rem; color: var(--text-2); }
.alt-out dd { margin: .2rem 0 0; color: var(--navy); font-weight: 600; }
.alt-out b { font-family: var(--font-display); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.alt-out small { display: block; font-size: .82rem; font-weight: 500; color: var(--text-2); }
.alt-example { margin-top: 1rem; padding: 1rem 1.15rem; border-radius: 12px; border: 1px solid rgba(32, 118, 65, .3); background: var(--green-soft); font-size: .95rem; }
.alt-example b { color: var(--navy); }

/* montanha */
.mountain { margin: 0; }
.mountain svg { width: 100%; height: auto; border-radius: 16px; box-shadow: var(--shadow); }
.mt-scale path { stroke: rgba(6, 62, 112, .14); stroke-width: 1; stroke-dasharray: 4 6; }
.mt-scale text { font: 500 11px var(--font-body); fill: var(--text-2); text-anchor: end; }
.mt-back { fill: #8FB0CF; opacity: .55; }
.mt-rock { fill: url(#gRock); }
.mt-snow { fill: #fff; }
.mt-sea { fill: #2D6FA8; }
.mt-wave { fill: none; stroke: rgba(255, 255, 255, .55); stroke-width: 2; stroke-linecap: round; }
.mt-marker { transform: translateY(340px); transition: transform .7s var(--ease); }
.mt-line { stroke: var(--green-bright); stroke-width: 2; stroke-dasharray: 6 5; }
.mt-dot { fill: var(--green-bright); stroke: #fff; stroke-width: 3; }
.mt-tag { fill: var(--navy-ink); }
.mt-tag-t { font: 600 12.5px var(--font-body); fill: #fff; text-anchor: middle; font-variant-numeric: tabular-nums; }
.mt-bubble { fill: rgba(255, 255, 255, .85); stroke: var(--navy); stroke-width: 2; }
.mt-p { fill: var(--green); transition: opacity .45s var(--ease); }
.mt-p.is-off { opacity: .1; }
.mt-bubble-t { font: 500 11.5px var(--font-body); fill: var(--text-2); text-anchor: middle; }
.mt-bubble-v { font: 600 13px var(--font-body); fill: var(--navy); }

/* ---------- Conversores ---------- */
.conv { background: var(--bg); }
.conv-alt { background: var(--surface); }
.conv-alt .conv-card { background: var(--bg); }
.conv-head { margin-bottom: 1.6rem; }
.conv-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); max-width: 26ch; }
.conv-head .lead { margin-top: .7rem; }
.conv-head .lead b { color: var(--text); }
.alt-pill { display: inline-block; padding: .05rem .6rem; border-radius: 999px; background: var(--navy); color: #fff; font-size: .88em; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.conv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.3rem, 3vw, 2rem); box-shadow: var(--shadow); }
.conv-input { display: grid; grid-template-columns: 1fr 1.2fr 1.2fr; gap: 1rem 1.2rem; align-items: end; margin-bottom: 1.4rem; }
.conv-input-2 { grid-template-columns: 1fr 1fr; }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg); }
.seg label { position: relative; margin: 0; cursor: pointer; display: block; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; text-align: center; padding: .62rem .5rem; border-radius: 8px; font-weight: 600; font-size: .93rem; color: var(--text-2); transition: background-color .25s, color .25s; }
.seg input:checked + span { background: var(--navy); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--green-bright); outline-offset: 2px; }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .7rem; }
.tiles-3 { grid-template-columns: repeat(3, 1fr); }
.tile {
  position: relative; display: grid; gap: .15rem; text-align: left; padding: .9rem 1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); cursor: copy; font-family: var(--font-body); color: var(--text);
  transition: border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.tile:hover { border-color: rgba(32, 118, 65, .45); transform: translateY(-2px); box-shadow: var(--shadow); }
.tile-u { font-size: .84rem; font-weight: 600; color: var(--text-2); }
.tile-v { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; color: var(--navy); font-variant-numeric: tabular-nums; line-height: 1.2; word-break: break-all; }
.tile-v small { font: 500 .75rem var(--font-body); color: var(--text-2); }
.tile-s { font-size: .8rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tile.is-input { border-color: var(--green); background: var(--green-soft); }
.tile.is-input .tile-u { color: var(--green); }
.tile::after {
  content: "Copiado"; position: absolute; top: .6rem; right: .7rem; font-size: .72rem; font-weight: 600; color: #fff;
  background: var(--green); padding: .15rem .45rem; border-radius: 6px; opacity: 0; transform: translateY(4px); transition: opacity .2s, transform .2s;
}
.tile.is-copied::after { opacity: 1; transform: none; }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3rem); }
.duo .conv-head h2 { max-width: none; }
.duo .conv-head .lead { min-height: 3.3em; }

/* ---------- Referências ---------- */
.refs { background: var(--navy-ink); color: var(--text-inv-2); }
.refs-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.refs h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-bottom: 1.2rem; }
.refs-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .8rem; font-size: .93rem; }
.refs-list li { padding-left: 1.1rem; border-left: 2px solid var(--line-dark); }
.refs-list b { color: #fff; font-weight: 600; }
.refs-cta { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-dark); border-radius: 16px; padding: 1.6rem; }
.refs-cta p { color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; line-height: 1.35; margin-bottom: 1.3rem; }

/* ---------- Responsivo ---------- */
@media (max-width: 940px) {
  .alt-grid, .duo, .refs-grid { grid-template-columns: 1fr; }
  .mountain { order: -1; }
  .duo .conv-head .lead { min-height: 0; }
}
@media (max-width: 700px) {
  .conv-input { grid-template-columns: 1fr 1fr; }
  .conv-input > :last-child { grid-column: 1 / -1; }
  .conv-input-2 > :last-child { grid-column: auto; }
  .alt-row { grid-template-columns: 120px 1fr; }
  .alt-out { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tiles-3 { grid-template-columns: repeat(3, 1fr); }
  .tiles-3 .tile-v { font-size: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .jump { animation: none; }
  .mt-marker, .mt-p, .tile, .tile::after { transition: none; }
  .tile:hover { transform: none; }
}
