.hs-ig-calculator {
  --hsig-accent: #2563eb;
  --hsig-bg: #ffffff;
  --hsig-text: #101828;
  --hsig-muted: #667085;
  --hsig-border: rgba(16, 24, 40, 0.10);
  --hsig-soft: #f8fafc;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--hsig-text);
}

.hs-ig-calculator * { box-sizing: border-box; }

.hsig-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--hsig-accent) 14%, transparent), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid var(--hsig-border);
  border-radius: 28px;
  padding: clamp(22px, 4vw, 36px);
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.12);
}

.hsig-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.hsig-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hsig-accent);
  background: color-mix(in srgb, var(--hsig-accent) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--hsig-accent) 20%, transparent);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  margin-bottom: 14px;
}

.hsig-header h3 {
  margin: 0 0 8px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.hsig-header p {
  margin: 0;
  max-width: 760px;
  color: var(--hsig-muted);
  font-size: 16px;
  line-height: 1.65;
}

.hsig-icon {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(135deg, var(--hsig-accent), color-mix(in srgb, var(--hsig-accent) 70%, #111827));
  box-shadow: 0 14px 30px color-mix(in srgb, var(--hsig-accent) 28%, transparent);
}
.hsig-icon svg { width: 30px; height: 30px; }

.hsig-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.hsig-field,
.hsig-result {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 170px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--hsig-border);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.hsig-field span,
.hsig-result span,
.hsig-details span {
  color: var(--hsig-muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hsig-field input {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--hsig-accent) 26%, var(--hsig-border));
  background: #fff;
  border-radius: 16px;
  padding: 17px 18px;
  font-size: clamp(28px, 5vw, 46px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--hsig-text);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hsig-field input:focus {
  border-color: var(--hsig-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--hsig-accent) 16%, transparent);
}

.hsig-field small,
.hsig-result small {
  margin-top: 10px;
  color: var(--hsig-muted);
  font-size: 13px;
}

.hsig-result {
  background: linear-gradient(135deg, var(--hsig-accent), color-mix(in srgb, var(--hsig-accent) 72%, #0f172a));
  color: #fff;
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 18px 36px color-mix(in srgb, var(--hsig-accent) 24%, transparent);
}

.hsig-result span,
.hsig-result small { color: rgba(255,255,255,.78); }
.hsig-result strong {
  font-size: clamp(34px, 5vw, 56px);
  line-height: .95;
  letter-spacing: -0.055em;
  font-weight: 900;
}

.hsig-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.hsig-details > div {
  padding: 18px;
  border-radius: 18px;
  background: var(--hsig-soft);
  border: 1px solid var(--hsig-border);
}

.hsig-details span {
  display: block;
  margin-bottom: 8px;
}

.hsig-details strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.hsig-note {
  margin-top: 18px;
  color: var(--hsig-muted);
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 820px) {
  .hsig-header { flex-direction: column; }
  .hsig-grid { grid-template-columns: 1fr; }
  .hsig-details { grid-template-columns: 1fr; }
  .hsig-card { border-radius: 22px; }
}
