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;
}

/* Brand */
.brand-logo {
  height: 2rem;
  width: auto;
}

.hero-logo {
  max-width: 240px;
  width: 60%;
  height: auto;
}

.home-hero {
  --phone-ink: #294640;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 34rem;
  padding: 2.5rem;
  border-radius: 6px;
}

.home-intro {
  grid-column: 2;
  grid-row: 1;
  text-align: center;
}

.home-intro .hero-logo {
  max-width: 200px;
}

.home-intro h1 {
  margin: 0 auto 1rem;
  color: var(--phone-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.08;
}

.home-intro .lead {
  max-width: 42rem;
  margin-inline: auto;
  color: #3d4d47;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
  margin-bottom: 0;
}

.home-actions .btn-primary {
  border-color: var(--phone-ink);
  background-color: var(--phone-ink);
}

.phone-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .8rem;
  align-items: center;
}

.phone-gallery--left {
  grid-column: 1;
  grid-row: 1;
}

.phone-gallery--right {
  grid-column: 3;
  grid-row: 1;
}

.phone-photo {
  aspect-ratio: 1;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(41, 70, 64, .12);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(39, 50, 42, .12);
}

.phone-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.phone-photo--teal {
  grid-area: 1 / 1;
  transform: rotate(-4deg);
}

.phone-photo--pink {
  grid-area: 2 / 2;
  transform: rotate(3deg);
}

.phone-photo--clear {
  grid-area: 3 / 1;
  transform: rotate(-2deg);
}

.phone-photo--vintage {
  grid-area: 1 / 1;
  transform: rotate(-3deg);
}

.phone-photo--panasonic {
  grid-area: 1 / 2;
  transform: rotate(3deg);
}

.phone-photo--buttons {
  grid-area: 2 / 1;
  transform: rotate(2deg);
}

.phone-photo--yellow {
  grid-area: 2 / 2;
  transform: rotate(-3deg);
}

.phone-photo--caller-id {
  grid-area: 3 / 1;
  transform: rotate(-2deg);
}

.phone-photo--answering {
  grid-area: 3 / 2;
  transform: rotate(3deg);
}

.faq-page {
  max-width: 68rem;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.faq-header {
  padding-bottom: 2rem;
  border-bottom: 1px solid #dce5e2;
}

.faq-kicker {
  margin-bottom: .6rem;
  color: #078f98;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.faq-header h1 {
  margin-bottom: .75rem;
  color: #123864;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  line-height: 1.1;
}

.faq-header > p:last-child {
  max-width: 43rem;
  margin-bottom: 0;
  color: #4a5b57;
  font-size: 1.1rem;
}

.faq-warning {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  border: 2px solid #a83532;
  border-left-width: 8px;
  border-radius: 4px;
  background: #fff0ed;
  color: #54201e;
}

.faq-warning h2 {
  margin-bottom: .5rem;
  color: #812522;
  font-size: 1.2rem;
  font-weight: 750;
}

.faq-warning p {
  margin-bottom: .5rem;
}

.faq-warning p:last-child {
  margin-bottom: 0;
}

.faq-layout {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: 3rem;
  padding-top: 2rem;
}

.faq-nav {
  position: sticky;
  top: 1.5rem;
  display: grid;
  align-content: start;
  gap: .4rem;
  height: max-content;
}

.faq-nav a {
  padding: .5rem .65rem;
  border-left: 2px solid #dce5e2;
  color: #38524e;
  text-decoration: none;
}

.faq-nav a:hover,
.faq-nav a:focus-visible {
  border-left-color: #078f98;
  color: #123864;
}

.faq-section + .faq-section {
  margin-top: 2.5rem;
}

.faq-section h2 {
  margin-bottom: .8rem;
  color: #123864;
  font-size: 1.35rem;
  font-weight: 700;
}

.faq-item {
  border-top: 1px solid #dce5e2;
}

.faq-item:last-child {
  border-bottom: 1px solid #dce5e2;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  color: #263f3a;
  cursor: pointer;
  font-weight: 650;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: #078f98;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "-";
}

.faq-answer {
  max-width: 48rem;
  padding: 0 2rem 1.1rem 0;
  color: #4a5b57;
  line-height: 1.65;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 680px) {
  .faq-page {
    padding-top: 1rem;
  }

  .faq-header h1 {
    font-size: 2.2rem;
  }

  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .faq-nav {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
    gap: .9rem;
    min-height: 30rem;
    padding: 1.5rem;
  }

  .home-intro h1 {
    font-size: 2.4rem;
  }

  .phone-gallery {
    gap: .5rem;
  }
}

@media (max-width: 680px) {
  .home-hero {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    min-height: 0;
    padding: 1.5rem .85rem;
  }

  .home-intro {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: .5rem;
  }

  .home-intro h1 {
    font-size: 2rem;
  }

  .home-intro .lead {
    font-size: 1rem;
  }

  .phone-gallery {
    display: contents;
  }

  .phone-photo {
    grid-area: auto;
    width: 100%;
    transform: none;
  }

  .phone-photo--answering {
    grid-column: 2 / span 2;
    width: 50%;
    justify-self: center;
  }
}