@font-face {
    font-family: "Poppins";
    src: url("../../fonts/poppins-light.woff2") format("woff2"),
         url("../../fonts/poppins-light.woff") format("woff");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Poppins";
    src: url("../../fonts/poppins-regular.woff2") format("woff2"),
         url("../../fonts/poppins-regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Poppins";
    src: url("../../fonts/poppins-medium.woff2") format("woff2"),
         url("../../fonts/poppins-medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }
  @font-face {
    font-family: "Poppins";
    src: url("../../fonts/poppins-bold.woff2") format("woff2"),
         url("../../fonts/poppins-bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  :root {
    --bg: #000000;
    --text: #ffffff;
    --text-2: rgba(255,255,255,0.72);
    --text-3: rgba(255,255,255,0.50);
    --accent: #ff00f2;
    --hairline: rgba(255,255,255,0.12);
    --ease: cubic-bezier(0.44, 0, 0.56, 1);
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
    --gutter: 24px;
  }
  * { box-sizing: border-box; }
  html { background: var(--bg); }
  body {
    margin: 0; color: var(--text);
    font-family: "Poppins", system-ui, -apple-system, "Helvetica Neue", sans-serif;
    font-weight: 400; -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }
  a { color: inherit; text-decoration: none; }
  ::selection { background: rgba(255,0,242,0.28); color: #fff; }
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

  .nav { max-width: 1400px; margin: 0 auto; height: 64px; display: flex; align-items: center; padding: 0 var(--gutter); }
  .nav__mark { display: inline-flex; align-items: center; height: 40px; font-size: 22px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
  .nav__mark:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

  .wrap { max-width: 1400px; margin: 0 auto; padding: 48px var(--gutter) 96px; }
  .head { width: min(100%, 760px); margin: 0 auto; text-align: center; }
  h1 { margin: 0; font-size: 44px; font-weight: 300; line-height: 1.08; letter-spacing: -0.035em; text-wrap: balance; }
  .lead { margin: 20px auto 0; max-width: 42ch; font-size: 18px; line-height: 28px; color: var(--text-2); text-wrap: pretty; }   /* 42ch breaks after "ticket size", so line one is what to enter and line two is what comes back */

  /* ---------- the calculator ---------- */
  .est {
    margin: 48px auto 0; width: min(100%, 760px);
    padding: 28px 32px 32px; border-radius: 12px;
    box-shadow: inset 0 0 0 1px var(--hairline);
  }
  .est__label { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; line-height: 20px; color: var(--text-3); }
  .est__label em { font-style: normal; }
  .est__amount { display: flex; align-items: baseline; gap: 2px; margin-top: 6px; font-size: 32px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; }
  .est__amount input {
    min-width: 0; padding: 0 0 2px; margin: 0; background: none; border: 0; outline: none; color: inherit;
    font: inherit; letter-spacing: inherit; font-variant-numeric: tabular-nums;
    border-bottom: 1px solid rgba(255,255,255,0.28); border-radius: 2px;
    transition: border-color 200ms var(--ease);
  }
  .est__amount input:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-bottom-color: rgba(255,255,255,0.6); }
  .est__amount small { font-size: 14px; font-weight: 400; color: var(--text-3); margin-left: 10px; letter-spacing: 0; }
  .est__error { margin: 2px 0 0; min-height: 20px; font-size: 14px; line-height: 20px; color: var(--text-2); }

  .est__range { position: relative; display: block; width: 100%; margin: 4px 0 0; --t: 0.16667; }
  .est__range input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; display: block; background: transparent; cursor: pointer; }
  .est__range input::-webkit-slider-runnable-track {
    height: 2px; border-radius: 1px;
    background: linear-gradient(to right, var(--text-2) calc(10px + (100% - 20px) * var(--t)), rgba(255,255,255,0.24) 0);
  }
  .est__range input::-moz-range-track { height: 2px; border-radius: 1px; background: rgba(255,255,255,0.24); }
  .est__range input::-moz-range-progress { height: 2px; border-radius: 1px; background: var(--text-2); }
  .est__range input::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%;
    background: var(--text); border: 0; transition: transform 100ms var(--ease);
  }
  .est__range input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 0; }
  .est__range input:active::-webkit-slider-thumb { transform: scale(0.92); }
  .est__range input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
  .est__ticks { position: relative; height: 16px; margin-top: 8px; font-size: 12px; line-height: 16px; color: var(--text-3); }
  .est__ticks span { position: absolute; top: 0; transform: translateX(-50%); }
  .est__ticks span:first-child { transform: none; }
  .est__ticks span:last-child { transform: translateX(-100%); }

  .est__second { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--hairline); }
  .est__second .est__amount { font-size: 28px; }

  .est__know { margin: 18px 0 0; font-size: 14px; line-height: 20px; }
  .est__know button {
    background: none; border: 0; padding: 0; margin: 0; font: inherit; color: var(--text-2); cursor: pointer;
    text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.28);
    transition: color 200ms var(--ease);
  }
  .est__know button:hover { color: var(--text); }
  .est__know button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
  .est__paid { margin-top: 18px; }
  .est__paid[hidden] { display: none; }
  .est__paid-clear { margin-left: 14px; font: inherit; font-size: 14px; font-weight: 400; color: var(--text-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.28); }
  .est__paid-clear:hover { color: var(--text); }
  .est__paid-clear:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }

  .est__result { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--hairline); }
  .est__rate { display: none; margin: 0 0 6px; font-size: 16px; line-height: 24px; color: var(--text-2); }
  .est--exact .est__rate { display: block; }
  .est__rate b { color: var(--text); font-weight: 500; }
  .est__lead-in { margin: 0; font-size: 16px; line-height: 24px; color: var(--text-2); }
  .est__big {
    margin-top: 6px; font-size: 52px; font-weight: 300; line-height: 1.05; letter-spacing: -0.03em;
    color: var(--accent); font-variant-numeric: tabular-nums;
  }
  .est__big small { display: block; margin-top: 8px; font-size: 18px; font-weight: 400; letter-spacing: 0; color: var(--text-2); }
  .est__lines { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 16px; line-height: 24px; color: var(--text-2); }
  .est__lines b { font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
  .est__translate { margin: 18px 0 0; font-size: 18px; line-height: 28px; text-wrap: pretty; }
  .est__translate b { font-weight: 500; }
  .est__note { margin: 20px 0 0; font-size: 14px; line-height: 22px; color: var(--text-3); text-wrap: pretty; max-width: 62ch; }

  .foot { max-width: 1400px; margin: 0 auto; padding: 0 var(--gutter) 48px; }
  .foot__inner { width: min(100%, 760px); margin: 0 auto; text-align: left; }
  .foot__link {
    display: inline-block; margin: 0 0 14px; font-size: 14px; line-height: 20px; color: var(--text-2);
    text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.28);
    transition: color 200ms var(--ease);
  }
  .foot__link:hover { color: var(--text); }
  .foot__link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 2px; }
  .foot__legal { margin: 0; font-size: 13px; line-height: 22px; color: var(--text-3); }

  @media (max-width: 809px) {
    :root { --gutter: 16px; }
    .wrap { padding: 32px var(--gutter) 64px; }
    h1 { font-size: 34px; }
    .lead { font-size: 17px; line-height: 26px; }
    .est { padding: 22px 20px 24px; }
    .est__amount { font-size: 28px; }
    .est__range input { height: 44px; }
    .est__range input::-webkit-slider-thumb { margin-top: -9px; }
    .est__big { font-size: 38px; }
    .est__translate { font-size: 17px; line-height: 26px; }
  }
