/* Clutch page only. Shared Gearly styles remain in style.css. */

.clutch-hero {
  padding: 48px 0 30px;
}

.clutch-hero .back-link {
  display: inline-block;
  margin-bottom: 30px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.clutch-hero .back-link:hover {
  color: var(--text);
}

.clutch-hero .badge {
  display: inline-flex;
  padding: 7px 12px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.clutch-hero h1 {
  max-width: 700px;
  margin: 0 0 18px;
  font-size: clamp(43px, 7vw, 68px);
  line-height: .98;
  letter-spacing: -3.5px;
}

.clutch-hero .hero-text {
  max-width: 650px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.calculator-card {
  max-width: 900px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 32px rgba(17, 24, 39, .06);
}

.calculator-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}

.calculator-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  letter-spacing: -.8px;
}

.calculator-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.unit-pill {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.field-grid label,
.target-field {
  display: block;
}

.field-grid label > span,
.target-field > span {
  display: block;
  margin-bottom: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
}

.field-grid input,
.input-unit input {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: var(--text);
}

.field-grid input:focus,
.input-unit input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--soft);
}

.input-unit {
  position: relative;
}

.input-unit input {
  padding-right: 48px;
}

.input-unit b {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
}

.optional-box {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding: 18px;
  border-radius: 14px;
  background: #fafafa;
}

.optional-box strong {
  display: block;
  margin-bottom: 5px;
  font-size: 14px;
}

.optional-box p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.target-field {
  width: 190px;
  flex: 0 0 190px;
}

.calculate-button {
  width: 100%;
  min-height: 50px;
  margin-top: 20px;
  border: 0;
  border-radius: 11px;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.calculate-button:hover {
  background: var(--accent-dark);
}

.calculator-result {
  display: none;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.calculator-result.show {
  display: block;
}

.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 15px;
}

.result-heading h3 {
  margin: 0;
  font-size: 19px;
}

.result-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.result-box {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
}

.result-box small {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
}

.result-box strong {
  font-size: 21px;
}

.clearance-result {
  margin-top: 14px;
  padding: 15px 17px;
  border-radius: 13px;
  background: var(--blue-bg);
  color: #1e3a8a;
  font-size: 13px;
  line-height: 1.5;
}

.clearance-result.warning {
  background: #fff7ed;
  color: #9a3412;
}

.simple-info {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.info-icon {
  display: flex;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-bg);
  color: var(--blue);
  font-weight: 800;
}

.simple-info h2 {
  margin: 0 0 7px;
  font-size: 18px;
}

.simple-info p {
  max-width: 800px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.example-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
}

.example-card span {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.example-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
}

.example-card small {
  color: var(--muted);
  font-size: 12px;
}

.example-card.total {
  background: #111827;
  color: #fff;
}

.example-card.total span,
.example-card.total small {
  color: #b8c0cc;
}

@media (max-width: 700px) {
  .clutch-hero {
    padding-top: 35px;
  }

  .clutch-hero h1 {
    letter-spacing: -2.5px;
  }

  .calculator-card {
    padding: 20px;
  }

  .field-grid,
  .result-grid,
  .example-grid {
    grid-template-columns: 1fr;
  }

  .optional-box {
    align-items: stretch;
    flex-direction: column;
  }

  .target-field {
    width: 100%;
    flex-basis: auto;
  }

  .result-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
