.currency-page{
  padding-bottom:56px;
}

.currency-hero{
  padding:38px 0 24px;
}

.currency-back{
  display:inline-block;
  margin-bottom:18px;

  color:var(--muted);

  font-size:12px;
  text-decoration:none;
}

.currency-back:hover{
  color:var(--accent);
}

.currency-kicker{
  display:block;

  margin-bottom:10px;

  color:var(--accent);

  font-size:12px;
  font-weight:700;
  letter-spacing:.12em;
}

.currency-hero h1{
  margin:0;

  font-size:clamp(32px,5vw,48px);
  line-height:1.05;
  letter-spacing:-.045em;
  font-weight:560;
}

.currency-hero p{
  max-width:620px;

  margin:14px 0 0;

  color:var(--muted);

  font-size:13px;
  line-height:1.65;
}


.currency-calculator{
  padding:18px 0 42px;
}

.currency-card{
  padding:24px;

  border:1px solid var(--line);
  border-radius:14px;

  background:var(--surface);
}

.currency-row{
  display:grid;

  grid-template-columns:minmax(180px,1fr) minmax(210px,1fr) 50px minmax(210px,1fr);

  gap:14px;

  align-items:end;
}

.currency-field label{
  display:block;

  margin-bottom:8px;

  font-size:12px;
  font-weight:560;
}

.currency-field input,
.currency-field select{
  width:100%;
  min-height:52px;

  padding:0 14px;

  border:1px solid var(--line);
  border-radius:10px;

  outline:0;

  background:var(--surface-soft);
  color:var(--text);

  font:inherit;
  font-size:14px;
}

.currency-field input{
  font-size:18px;
  font-weight:540;
}

.currency-field input:focus,
.currency-field select:focus{
  border-color:var(--accent);
}

.currency-swap{
  width:50px;
  height:52px;

  padding:0;

  border:1px solid var(--line);
  border-radius:10px;

  background:var(--surface-soft);
  color:var(--accent);

  cursor:pointer;

  font-size:22px;
  font-weight:400;

  transition:
    border-color .15s ease,
    background .15s ease,
    transform .15s ease;
}

.currency-swap:hover{
  border-color:var(--accent);
  background:
    color-mix(in srgb,var(--accent) 7%,var(--surface));
}

.currency-swap:active{
  transform:scale(.96);
}


.currency-result{
  margin-top:26px;
  padding:24px;

  border:1px solid
    color-mix(in srgb,var(--accent) 28%,var(--line));

  border-radius:12px;

  background:
    linear-gradient(
      145deg,
      color-mix(in srgb,var(--accent) 8%,var(--surface)),
      var(--surface)
    );
}

.currency-result-label{
  display:block;

  margin-bottom:8px;

  color:var(--muted);

  font-size:12px;
}

.currency-result > strong{
  display:block;

  font-size:clamp(34px,5vw,48px);
  line-height:1;
  letter-spacing:-.04em;
  font-weight:600;
}

.currency-rate{
  margin:16px 0 0;

  color:var(--muted);

  font-size:12px;
  line-height:1.5;
}

.currency-source{
  margin:5px 0 0;

  color:var(--quiet);

  font-size:12px;
  line-height:1.5;
}


.currency-note{
  margin-top:24px;
  padding-top:22px;

  border-top:1px solid var(--line);
}

.currency-note h2{
  margin:0 0 9px;

  font-size:15px;
  font-weight:550;
}

.currency-note p{
  max-width:760px;

  margin:0;

  color:var(--muted);

  font-size:12px;
  line-height:1.65;
}


.currency-explanation{
  padding:40px 0;

  border-top:1px solid var(--line);
}

.currency-explanation h2{
  margin:0 0 22px;

  font-size:22px;
  font-weight:540;
  letter-spacing:-.03em;
}

.currency-steps{
  display:grid;

  grid-template-columns:repeat(3,1fr);

  gap:14px;
}

.currency-steps article{
  padding:20px;

  border:1px solid var(--line);
  border-radius:12px;

  background:var(--surface);
}

.currency-steps article > span{
  display:flex;

  align-items:center;
  justify-content:center;

  width:28px;
  height:28px;

  margin-bottom:16px;

  border-radius:50%;

  background:
    color-mix(in srgb,var(--accent) 12%,transparent);

  color:var(--accent);

  font-size:12px;
  font-weight:700;
}

.currency-steps h3{
  margin:0 0 7px;

  font-size:14px;
  font-weight:550;
}

.currency-steps p{
  margin:0;

  color:var(--muted);

  font-size:12px;
  line-height:1.65;
}


@media(max-width:980px){

  .currency-row{
    grid-template-columns:1fr 1fr;
  }

  .currency-swap{
    grid-column:1 / -1;

    justify-self:center;

    width:54px;
  }

}


@media(max-width:620px){

  .currency-page{
    padding-bottom:36px;
  }

  .currency-hero{
    padding:26px 0 18px;
  }

  .currency-back{
    margin-bottom:14px;
  }

  .currency-hero h1{
    font-size:31px;
  }

  .currency-hero p{
    font-size:12px;
  }

  .currency-calculator{
    padding:12px 0 30px;
  }

  .currency-card{
    padding:17px;
  }

  .currency-row{
    grid-template-columns:1fr;
    gap:15px;
  }

  .currency-swap{
    grid-column:auto;

    justify-self:center;

    width:48px;
    height:44px;

    transform:rotate(90deg);
  }

  .currency-swap:active{
    transform:rotate(90deg) scale(.96);
  }

  .currency-field input,
  .currency-field select{
    min-height:50px;
  }

  .currency-field input{
    font-size:17px;
  }

  .currency-result{
    margin-top:20px;
    padding:20px;
  }

  .currency-result > strong{
    font-size:36px;
  }

  .currency-rate{
    font-size:12px;
  }

  .currency-explanation{
    padding:30px 0;
  }

  .currency-explanation h2{
    font-size:19px;
  }

  .currency-steps{
    grid-template-columns:1fr;
  }

  .currency-steps article{
    padding:17px;
  }

}
