@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Unbounded:wght@500;600&display=swap");

:root {
  color-scheme: light;
  --ink: #241919;
  --paper: #f3ecdf;
  --wine: #701f2b;
  --acid: #d5e94e;
  --line: rgba(36, 25, 25, 0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 85% 12%, rgba(213, 233, 78, 0.42), transparent 24rem),
    var(--paper);
  font-family: "Manrope", sans-serif;
}

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand { color: inherit; font: 600 15px/1 "Unbounded", sans-serif; text-decoration: none; text-transform: uppercase; }
.brand span { color: var(--wine); }
.live { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.live span { width: 9px; height: 9px; border-radius: 50%; background: var(--wine); box-shadow: 0 0 0 5px rgba(112, 31, 43, 0.12); }

.hero { padding: 68px 0 52px; }
.eyebrow { margin: 0 0 24px; color: var(--wine); font-size: 13px; font-weight: 700; letter-spacing: 0.15em; }
h1 { margin: 0; font: 600 clamp(48px, 8.6vw, 116px)/0.98 "Unbounded", sans-serif; letter-spacing: -0.065em; white-space: nowrap; }
h1 span { color: var(--wine); }
.hero-meta { display: flex; gap: 48px; align-items: center; justify-content: space-between; margin-top: 38px; }
.hero-conversion { display: flex; flex: 0 0 auto; gap: 24px; align-items: center; width: fit-content; padding: 17px 22px; border: 1px solid var(--ink); font: 500 clamp(18px, 2.2vw, 28px)/1.2 "Unbounded", sans-serif; }
.hero-conversion b { color: var(--wine); }
.hero-conversion strong { color: var(--wine); font-weight: 600; }
.intro { max-width: 540px; margin: 0; font-size: clamp(17px, 2vw, 22px); line-height: 1.45; }

.calculator { display: grid; grid-template-columns: 1fr 1fr; min-height: 400px; border: 1px solid var(--ink); }
.entry, .result { padding: clamp(28px, 5vw, 64px); }
.entry { background: rgba(255, 255, 255, 0.22); }
.entry h2 { margin: 0 0 50px; font: 500 14px/1 "Unbounded", sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
.entry label { display: block; margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.input-wrap { display: flex; align-items: baseline; border-bottom: 2px solid var(--ink); }
.input-wrap input { width: 100%; padding: 12px 0; border: 0; outline: 0; color: var(--ink); background: transparent; font: 500 clamp(42px, 6vw, 72px)/1 "Unbounded", sans-serif; letter-spacing: -0.06em; }
.input-wrap:focus-within { border-color: var(--wine); }
.input-wrap span { color: var(--wine); font: 500 36px/1 "Unbounded", sans-serif; }
.error { min-height: 24px; margin: 12px 0 0; color: var(--wine); font-weight: 700; }

.result { display: flex; flex-direction: column; justify-content: center; color: white; background: var(--wine); }
.result-label { margin: 0 0 16px; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.72; }
.result-value { font: 600 clamp(52px, 7vw, 92px)/1 "Unbounded", sans-serif; letter-spacing: -0.06em; }
.result-value small { font-size: 0.45em; color: var(--acid); }
.rate-line { width: fit-content; margin-top: 30px; padding: 11px 15px; color: var(--ink); background: var(--acid); font-size: 16px; }
.status { margin: 28px 0 0; font-size: 13px; opacity: 0.72; }
.status.warning { color: var(--acid); opacity: 1; }

.details { display: grid; grid-template-columns: repeat(3, 1fr); border-right: 1px solid var(--line); }
.details article { min-height: 190px; padding: 28px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); }
.step { color: var(--wine); font: 600 12px/1 "Unbounded", sans-serif; }
.details p { margin: 38px 0 8px; font-size: 14px; }
.details strong { font: 500 clamp(20px, 2.5vw, 30px)/1.2 "Unbounded", sans-serif; }

footer { display: flex; justify-content: space-between; gap: 30px; padding: 34px 0 60px; color: rgba(36, 25, 25, 0.68); font-size: 12px; }
footer p { margin: 0; }
footer a { color: inherit; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1180px); }
  .masthead { min-height: 72px; }
  .live { font-size: 10px; }
  .hero { padding: 52px 0 36px; }
  h1 { font-size: clamp(35px, 10.8vw, 58px); }
  .hero-meta { flex-direction: column; align-items: flex-start; gap: 24px; margin-top: 28px; }
  .hero-conversion { gap: 13px; padding: 14px 15px; font-size: clamp(14px, 4.2vw, 20px); }
  .intro { margin-top: 26px; }
  .calculator { grid-template-columns: 1fr; }
  .entry h2 { margin-bottom: 34px; }
  .result { min-height: 330px; }
  .details { grid-template-columns: 1fr; }
  .details article { min-height: 140px; }
  .details p { margin-top: 24px; }
  footer { flex-direction: column; }
}

@media (max-width: 600px) {
  .live { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .calculator, .details { animation: rise 500ms ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
}
