@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap");

html {
  min-height: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  color: #18231e;
  background: #f5f7f4;
  font-family: "DM Sans", sans-serif;
}
.shortener-shell {
  box-sizing: border-box;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 22px 24px;
  background: radial-gradient(
    ellipse at 50% 12%,
    #fff 0,
    #f7f9f6 48%,
    #eff4ef 100%
  );
}
.hero {
  width: min(100%, 540px);
  text-align: center;
}
.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 26px;
  border-radius: 15px;
  color: white;
  background: #227a54;
  font:
    800 30px "Manrope",
    sans-serif;
  box-shadow: 0 8px 20px #227a5433;
}
.eyebrow {
  color: #33845e;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.17em;
  margin: 0 0 13px;
}
h1 {
  margin: 0;
  font:
    800 clamp(34px, 8vw, 48px)/1.13 "Manrope",
    sans-serif;
  letter-spacing: -0.045em;
}
h1 span {
  color: #278359;
}
.intro {
  margin: 15px 0 30px;
  color: #69766f;
  font-size: 15px;
}
.shortener-form {
  padding: 27px;
  border: 1px solid #e4eae5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 55px #2948320d;
  text-align: left;
}
.shortener-form label {
  display: block;
  margin: 0 0 8px;
  color: #27352d;
  font-size: 13px;
  font-weight: 700;
}
.shortener-form input {
  box-sizing: border-box;
  width: 100%;
  height: 49px;
  margin-bottom: 18px;
  padding: 0 14px;
  border: 1px solid #dce4de;
  border-radius: 9px;
  outline: none;
  color: #1d2a23;
  background: #fff;
  font: inherit;
  font-size: 14px;
}
.shortener-form input:focus {
  border-color: #38956b;
  box-shadow: 0 0 0 3px #38956b1c;
}
.optional,
.hint {
  color: #89958e;
  font-size: 12px;
  font-weight: 400;
}
.prefix-input {
  display: flex;
  align-items: center;
  margin-bottom: 4px;
  padding-left: 13px;
  border: 1px solid #dce4de;
  border-radius: 9px;
}
.prefix-input:focus-within {
  border-color: #38956b;
  box-shadow: 0 0 0 3px #38956b1c;
}
.prefix-input span {
  color: #32835c;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.prefix-input input {
  height: 47px;
  margin: 0;
  padding-left: 5px;
  border: 0;
  box-shadow: none !important;
}
.hint {
  display: block;
  margin: 4px 0 19px;
}
.challenge-label {
  margin-top: 4px !important;
}
.shortener-form button {
  width: 100%;
  height: 51px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: #247b54;
  font:
    700 15px "DM Sans",
    sans-serif;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
.shortener-form button:hover {
  background: #1d6847;
  transform: translateY(-1px);
}
.shortener-form button span {
  font-size: 20px;
}
.field-error,
.validation-summary {
  display: block;
  margin: -13px 0 12px;
  color: #b23c36;
  font-size: 12px;
}
.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.validation-summary ul {
  margin: 0;
  padding-left: 18px;
}
.notice,
.result-card {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px solid #dce9df;
  border-radius: 10px;
  color: #355d45;
  background: #f1f8f2;
  font-size: 13px;
}
.result-card span,
.result-card a {
  display: block;
}
.result-card span {
  margin-bottom: 5px;
  color: #77857c;
  font-size: 11px;
}
.result-card a {
  color: #18784c;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.result-card .create-another {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 9px;
  color: #fff;
  background: #247b54;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.result-card .create-another:hover {
  color: #fff;
  background: #1d6847;
  transform: translateY(-1px);
}
.create-another span {
  font-size: 20px !important;
}
.trust-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-top: 24px;
  color: #7a877f;
  font-size: 12px;
}
.trust-note span {
  color: #31875c;
  font-weight: 700;
}
.trust-note i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #b6c0b9;
}
.shortener-shell footer {
  margin-top: auto;
  padding-top: 35px;
  color: #96a199;
  font-size: 11px;
  text-align: center;
}
@media (max-width: 520px) {
  .shortener-shell {
    padding: 35px 16px 20px;
  }
  .brand-mark {
    margin-bottom: 20px;
  }
  .shortener-form {
    padding: 21px 18px;
  }
  .intro {
    margin-bottom: 22px;
  }
}
html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow:
    0 0 0 0.1rem white,
    0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}
