* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #1b2130;
  --muted: #69728a;
  --primary: #1f4bff;
  --primary-dark: #1739c8;
  --border: #e6ebf3;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.hero {
  text-align: center;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 42px);
  color: #1e3a8a;
  margin-bottom: 8px;
}

.hero p {
  color: #4a5568;
  font-size: 15px;
}

.calculator {
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin: 0 auto 26px;
}

.calculator__content label {
  color: #e6ecff;
  font-size: 13px;
  font-weight: 600;
  display: block;
  margin-bottom: 10px;
}

.calculator__content input {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 22px;
  font-weight: 600;
  color: #1f2f6b;
  outline: none;
}

.calculator__hint {
  display: block;
  margin-top: 10px;
  color: #dbe4ff;
  font-size: 12px;
}

.partner-section {
  margin-bottom: 24px;
}

.section-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #e9f0ff;
  color: #1d2a6b;
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  font-weight: 600;
}

.section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #dbe6ff;
  font-size: 14px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.card__logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f2f5ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.card__header h4 {
  font-size: 15px;
  font-weight: 600;
}

.card__header span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.ratio-pill {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
}

.ratio-pill--good {
  background: #ecfdf3;
  color: #16a34a;
}

.ratio-pill--warn {
  background: #fff7ed;
  color: #f97316;
}

.card__transfer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #eef1f6;
  border-radius: 10px;
  padding: 12px 14px;
}

.transfer span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 4px;
}

.transfer strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 2px;
}

.transfer small {
  font-size: 11px;
  color: var(--muted);
}

.transfer--from strong {
  color: #1f4bff;
}

.transfer--to strong {
  color: #16a34a;
}

.card__arrow {
  font-size: 18px;
  color: #a0a8bd;
}

.note {
  margin-top: 18px;
  background: #fff7e0;
  border-left: 4px solid #f2b705;
  padding: 12px 14px;
  border-radius: 8px;
  color: #8a5d00;
  font-size: 12px;
}

@media (max-width: 720px) {
  .page {
    padding: 32px 16px 50px;
  }

  .calculator {
    padding: 18px;
  }
}
