/* starthomeloans.com/credit-101 (resources/views/websites/starthomeloans/credit-101.blade.php). */

:root {
  --green: #81c341;
  --navy: #183765;
  --text: #444444;
  --antonio: 'Antonio', Helvetica, Arial, sans-serif;
  --poppins: 'Poppins', Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #ffffff;
  color: var(--text);
  font-family: var(--poppins);
  font-size: 14px;
  line-height: 1.8;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

.c1-row {
  width: 80%;
  max-width: 1080px;
  margin: 0 auto;
}

.c1-pattern-light {
  background-image: url("data:image/svg+xml,%3Csvg fill='rgba(255,255,255,0.04)' height='11' width='11' viewBox='0 0 11 11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.41,0,0,1.41V0ZM11,0H9.59L0,9.59V11H1.41L11,1.41Zm0,9.59L9.59,11H11Z'/%3E%3C/svg%3E");
}

.c1-pattern-green {
  background-image: url("data:image/svg+xml,%3Csvg fill='rgba(129,195,65,0.09)' height='11' width='11' viewBox='0 0 11 11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.41,0,0,1.41V0ZM11,0H9.59L0,9.59V11H1.41L11,1.41Zm0,9.59L9.59,11H11Z'/%3E%3C/svg%3E");
}

/* Hero */
.c1-hero {
  padding: 170px 0 150px;
  overflow: hidden;
  background: radial-gradient(ellipse at right, rgba(96, 193, 0, 0.57) 0%, rgba(255, 255, 255, 0) 72%), #ffffff;
}

.c1-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5.5%;
  align-items: center;
}

.c1-eyebrow {
  color: var(--green);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 8px;
  line-height: 1.5;
  text-transform: uppercase;
  padding-bottom: 10px;
}

.c1-hero h1 {
  color: var(--text);
  font-family: var(--antonio);
  font-size: 76px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  margin-bottom: 20px;
}

.c1-hero-text {
  max-width: 500px;
}

.c1-hero-img {
  transform: scale(1.25);
  transform-origin: left center;
}

/* How is your score calculated? */
.c1-score {
  padding: 120px 0;
  background-color: var(--navy);
  color: rgba(255, 255, 255, 0.75);
}

.c1-score h2 {
  color: #ffffff;
  font-family: var(--antonio);
  font-size: 68px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 20px;
}

.c1-score-text {
  font-size: 15px;
}

.c1-score-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 5.5%;
  align-items: center;
  margin-top: 40px;
}

.c1-bars {
  list-style: none;
  margin: 0;
  padding: 0;
}

.c1-bars li + li {
  margin-top: 12px;
}

.c1-bar-label {
  display: block;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.4;
}

.c1-bar {
  display: block;
  background: rgba(255, 255, 255, 0.15);
}

.c1-bar-fill {
  display: block;
  width: 0;
  min-width: 0;
  overflow: hidden;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
  white-space: nowrap;
  transition: width 1.2s ease;
}

.c1-bars.is-visible .c1-bar-fill {
  width: var(--w);
}

/* Why is it important? / Soft pull vs hard pull */
.c1-why {
  padding: 110px 0 0;
  overflow: hidden;
}

.c1-why-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 5.5%;
  align-items: center;
  margin-top: 60px;
}

.c1-why-text {
  max-width: 560px;
  font-size: 15px;
}

.c1-why h2,
.c1-tip h2 {
  color: var(--green);
  font-family: var(--antonio);
  font-size: 60px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 10px;
}

/* 5 Steps to Better Credit */
.c1-steps {
  position: relative;
  padding: 80px 0 150px;
  background: radial-gradient(ellipse at top, #155487 1%, var(--navy) 80%);
  color: #ffffff;
}

.c1-arc {
  position: relative;
  width: min(1000px, 80%);
  margin: 0 auto;
}

.c1-arc svg {
  display: block;
  width: 100%;
  height: auto;
}

.c1-arc h2 {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  font-family: var(--antonio);
  font-size: 5em;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

.c1-arc h2 span {
  color: var(--green);
}

.c1-slider {
  --progress: 0px;
  width: 90%;
  margin-top: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.c1-tabs {
  display: flex;
  justify-content: space-between;
  padding: 40px 6% 0;
}

.c1-tab {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 15px;
  padding: 10px 0 0;
  border: 0;
  background: none;
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  font-family: var(--antonio);
  font-size: 31px;
  font-weight: 700;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.c1-tab:hover,
.c1-tab.is-active {
  color: #ffffff;
}

.c1-tab.is-active {
  font-size: 34px;
}

.c1-tick {
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.22);
}

.c1-tab.is-active .c1-tick {
  background: #ffffff;
}

.c1-track {
  position: relative;
  height: 5px;
  margin: 0 6% 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.29);
}

.c1-track-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  border-radius: 10px;
  background: var(--green);
  transition: width 0.5s ease;
}

.c1-pin {
  position: absolute;
  top: 50%;
  left: var(--progress);
  width: 29px;
  height: 29px;
  border: 7px solid #ffffff;
  border-radius: 50%;
  background: #e09900;
  transform: translate(-50%, -50%);
  transition: left 0.5s ease;
}

.c1-panel {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: center;
  padding: 40px 6%;
  background: rgba(0, 0, 0, 0.2);
}

.c1-panel[hidden] {
  display: none;
}

.c1-panel h3 {
  color: var(--green);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
}

.c1-panel p {
  font-size: 20px;
  font-weight: 300;
}

.c1-check {
  justify-self: center;
  width: 110px;
  color: var(--green);
}

.c1-divider {
  position: absolute;
  left: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 90px;
}

/* Tips */
.c1-tips {
  position: relative;
  padding: 110px 0 215px;
  background: radial-gradient(ellipse at right, rgba(96, 193, 0, 0.57) 0%, rgba(255, 255, 255, 0) 72%), #ffffff;
}

.c1-tips .c1-divider {
  height: 105px;
}

.c1-tips-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5.5%;
}

.c1-tip {
  font-size: 16px;
}

.c1-tip h2 {
  font-size: 50px;
  font-weight: 700;
  letter-spacing: 0;
}

.c1-checkbox {
  width: 40px;
  margin: 0 auto 20px;
  display: block;
  color: var(--text);
}

/* Just starting out? */
.c1-starting {
  padding: 10vw 0;
  margin-top: -1px;
  background:
    linear-gradient(180deg, var(--navy) 0%, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0) 80%, var(--navy) 100%),
    var(--eye) center / contain no-repeat,
    var(--navy);
}

.c1-card {
  padding: 60px 8%;
  border-radius: 20px;
  background: var(--green);
  box-shadow: 0 50px 80px -10px rgba(98, 41, 214, 0.45);
  color: #ffffff;
  text-align: center;
}

.c1-card h2 {
  font-size: 75px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 20px;
}

/* Footer */
.c1-footer {
  padding: 20px 8% 30px;
  background: var(--navy);
  color: #ffffff;
  font-size: 9px;
  line-height: 1.6;
  text-align: center;
}

.c1-footer img {
  height: 80px;
  width: auto;
  margin: 0 auto 20px;
}

.c1-footer hr {
  max-width: 800px;
  margin: 0 auto 10px;
  border: 0;
  border-top: 1px solid #1a5684;
}

.c1-footer a {
  color: var(--green);
  font-family: 'Montserrat', Helvetica, Arial, sans-serif;
  font-weight: 600;
  text-decoration: none;
}

.c1-copyright {
  margin-top: 11px;
  font-size: 10px;
}

/* "Mortgage Websites powered by Etrafficers" line, as on the other sites. */
.c1-credit {
  margin-top: 6px;
  font-size: 12px;
}

.c1-credit a {
  text-decoration: underline;
}

/* Tablet */
@media (max-width: 980px) {
  .c1-hero {
    padding: 100px 0 80px;
  }

  .c1-hero-row,
  .c1-score-row,
  .c1-why-row,
  .c1-tips-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .c1-hero-img {
    transform: none;
    max-width: 480px;
    margin: 0 auto;
  }

  .c1-score-row > a img {
    max-width: 360px;
    margin: 0 auto;
  }

  .c1-why h2,
  .c1-tip h2 {
    font-size: 32px;
  }

  .c1-why-text,
  .c1-tip,
  .c1-score-text {
    font-size: 15px;
  }

  .c1-arc h2 {
    font-size: 2.8em;
  }

  .c1-tab {
    font-size: 20px;
  }

  .c1-tab.is-active {
    font-size: 22px;
  }

  .c1-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .c1-panel p {
    font-size: 16px;
  }

  .c1-check {
    display: none;
  }

  .c1-card h2 {
    font-size: 44px;
  }
}

/* Phone */
@media (max-width: 767px) {
  .c1-row {
    width: auto;
    margin: 0 16px;
  }

  .c1-hero h1 {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .c1-score h2 {
    font-size: 40px;
  }

  .c1-bar-label {
    font-size: 18px;
  }

  .c1-arc {
    width: auto;
    margin: 0 16px;
  }

  .c1-arc h2 {
    font-size: 2em;
  }

  .c1-tabs {
    padding: 24px 4% 0;
  }

  .c1-tab,
  .c1-tab.is-active {
    font-size: 15px;
  }

  .c1-track {
    margin: 0 4% 20px;
  }

  .c1-panel h3 {
    font-size: 22px;
  }

  .c1-card {
    padding: 40px 20px;
  }

  .c1-card h2 {
    font-size: 34px;
  }

  .c1-footer {
    padding: 20px 16px 30px;
  }
}
