:root {
  --ink: #1a1a2e;
  --muted: #5d6778;
  --line: #e4e9f0;
  --soft: #f6f8fb;
  --blue: #2563eb;
  --blue-dark: #194fbf;
  --green: #16a34a;
  --orange: #ff6b35;
  --white: #ffffff;
  --shadow: 0 14px 38px rgba(26, 26, 46, 0.055);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--white);
  font-family: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 30px 18px 44px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 720;
}

.hero {
  display: grid;
  gap: 18px;
  margin-top: 22px;
}

.hero-copy,
.hero-panel,
.content-panel,
.related-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-panel,
.content-panel {
  padding: 24px 20px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: #fff;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 18px;
  font-size: clamp(34px, 7.6vw, 58px);
  line-height: 1.08;
  font-weight: 780;
}

.lead {
  margin-top: 12px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 560;
}

.answer {
  margin-top: 22px;
  color: var(--green);
  font-size: clamp(44px, 12vw, 84px);
  line-height: 0.95;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
}

.answer-note {
  margin-top: 14px;
  color: #435063;
  font-size: 16px;
  line-height: 1.58;
  font-weight: 650;
}

.hero-visual {
  margin-top: 20px;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #10203d;
}

.hero-visual img,
.related-card img {
  display: block;
  width: 100%;
  height: auto;
}

.section-title {
  margin: 0 0 14px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 760;
}

.section-copy {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 560;
}

.quick-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.quick-launch {
  min-height: 50px;
  border: 1px solid #d8dee8;
  border-radius: var(--radius);
  background: var(--soft);
  color: #33405a;
  cursor: pointer;
  padding: 10px 12px;
  text-align: left;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
}

.converter {
  display: grid;
  gap: 12px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field-wrap {
  display: grid;
  gap: 8px;
}

.sr-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field,
.select {
  width: 100%;
  height: 64px;
  border: 1px solid #d7deea;
  border-radius: var(--radius);
  background-color: #fff;
  color: var(--ink);
  font-size: 18px;
  font-weight: 620;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field {
  padding: 0 18px;
}

.field::placeholder {
  color: #8b93a1;
  opacity: 1;
}

.select {
  appearance: none;
  padding: 0 48px 0 18px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 28px) 28px,
    calc(100% - 20px) 28px;
  background-size: 9px 9px, 9px 9px;
  background-repeat: no-repeat;
}

.field:focus,
.select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.convert-line {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.label-pill {
  min-height: 64px;
  border-radius: var(--radius);
  background: var(--soft);
  color: #5d6676;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  text-align: center;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 650;
}

.arrow {
  color: var(--orange);
  margin: 0 8px;
  font-weight: 760;
}

.button {
  width: 100%;
  min-height: 64px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-size: 19px;
  font-weight: 760;
  box-shadow: 0 10px 18px rgba(37, 99, 235, 0.19);
  transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

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

.button:active {
  transform: translateY(1px);
}

.secondary-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.secondary-button {
  min-height: 48px;
  border: 1px solid #d8dee8;
  border-radius: var(--radius);
  background: #fff;
  color: #33405a;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
}

.result-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border: 1px solid #dfe6f1;
  border-radius: var(--radius);
  background: #fbfcfe;
}

.result-summary {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.42;
  font-weight: 650;
}

.result-summary strong {
  color: var(--green);
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #e3e9f2;
  border-radius: var(--radius);
  background: #fff;
  padding: 12px 14px;
}

.result-item span {
  color: #536073;
  font-size: 14px;
  font-weight: 650;
}

.result-item strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 760;
  text-align: right;
}

.copy-fallback {
  position: absolute;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.info-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.info-item {
  border: 1px solid #e6ebf2;
  border-radius: var(--radius);
  padding: 14px;
  background: #fbfcfe;
}

.info-item h3,
.related-body h3 {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.28;
  font-weight: 760;
}

.info-item p,
.related-body p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.58;
  font-weight: 560;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.related-card {
  display: block;
  overflow: hidden;
  transition: transform 150ms ease, border-color 150ms ease;
}

.related-card:hover {
  transform: translateY(-1px);
  border-color: #ccd6e4;
}

.related-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.related-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.related-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.related-meta strong {
  color: var(--green);
  font-size: 18px;
  font-weight: 780;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 54px;
  margin-top: 34px;
  color: #60697a;
  font-size: 16px;
  font-weight: 720;
}

.footer span {
  color: var(--orange);
  padding: 0 12px;
}

@media (min-width: 760px) {
  .page {
    padding: 56px 42px 58px;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
    align-items: start;
  }

  .quick-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .input-row,
  .convert-line {
    grid-template-columns: 1fr 230px;
    gap: 16px;
  }

  .secondary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-grid,
  .info-list,
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field,
  .select,
  .button {
    height: 72px;
    font-size: 20px;
  }

  .label-pill {
    min-height: 72px;
    justify-content: flex-start;
    padding: 0 22px;
    text-align: left;
    font-size: 18px;
    white-space: nowrap;
  }
}
