/* Lower homepage sections. Shared tokens, font, container and buttons come from style.css. */
.lower-templates,
.lower-pricing,
.lower-faq,
.lower-final-cta,
.lower-footer {
  color: var(--ink);
  min-width: 0;
}
.lower-templates .section-head,
.lower-pricing .section-head {
  margin-bottom: 36px;
}
.lower-templates h2,
.lower-pricing h2,
.lower-faq h2 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.04em;
  font-weight: 500;
  margin: 17px 0 0;
}
.lower-templates .section-head > p,
.lower-pricing .section-head > p {
  max-width: 320px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.template-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.filter-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  padding: 11px 17px;
  border-radius: 100px;
  min-height: 42px;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
}
.filter-button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.filter-button:hover {
  color: var(--ink);
  background: var(--soft);
}
.filter-button[aria-pressed="true"]:hover {
  background: #262829;
  color: #fff;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.template-card {
  min-width: 0;
}
.template-card[hidden] {
  display: none !important;
}
.template-preview {
  display: block;
  position: relative;
  width: 100%;
  padding: 22px 18px 0;
  border: 0;
  border-radius: 16px;
  background: var(--soft);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1.27;
  text-align: left;
}
.template-card:nth-child(2) .template-preview {
  background: #edf3f2;
}
.template-card:nth-child(3) .template-preview {
  background: #f4eff1;
}
.template-window {
  display: block;
  width: 100%;
  border-radius: 7px 7px 0 0;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 22px #1011120b;
  transition: transform 0.24s;
}
.template-window-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 17px;
  padding: 0 9px;
  background: #fff;
  border-bottom: 1px solid #f1f2f4;
}
.template-window-bar i {
  display: block;
  width: 4px;
  height: 4px;
  background: #d9dde2;
  border-radius: 50%;
}
.template-window img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}
.template-open {
  position: absolute;
  right: 15px;
  bottom: 15px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid var(--line);
  background: #fffffff2;
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s;
}
.template-open .icon {
  width: 16px;
  height: 16px;
}
.template-preview:hover .template-window {
  transform: translateY(-5px);
}
.template-preview:hover .template-open {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.template-card-caption {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-top: 17px;
}
.template-card-caption h3 {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.template-card-caption p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 4px 0 0;
}
.template-card-caption > span {
  font-size: 10px;
  line-height: 1.5;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px 8px;
  white-space: nowrap;
  margin-top: 2px;
}
.lower-pricing {
  background: #fff;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.plan {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 26px 24px 22px;
}
.plan-heading {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  min-height: 51px;
  position: relative;
}
.plan-symbol {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
}
.plan-symbol .icon {
  width: 17px;
  height: 17px;
}
.plan-heading h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0;
}
.plan-heading p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 4px 0 0;
}
.plan-recommended {
  position: absolute;
  right: 0;
  top: -39px;
  font-size: 10px;
  line-height: 1.5;
  padding: 5px 11px;
  border-radius: 100px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 5px;
  row-gap: 0;
  margin: 27px 0 0;
  font-size: 36px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.plan-price > span {
  font-size: 24px;
  letter-spacing: -0.02em;
}
.plan-price > small {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 4px;
}
.plan-caption {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0 25px;
  min-height: 19px;
}
.plan-includes {
  border-top: 1px solid var(--line);
  padding-top: 21px;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 14px;
}
.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 27px;
  padding: 0;
}
.plan-features li {
  position: relative;
  padding-left: 19px;
  font-size: 12px;
  line-height: 1.65;
  color: #40474f;
  overflow-wrap: anywhere;
}
.plan-features li:before {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  left: 0;
  top: 4px;
  border: 1px solid #a3adb7;
  border-radius: 50%;
  background: transparent;
}
.plan-features li:after {
  content: "";
  position: absolute;
  width: 4px;
  height: 2px;
  left: 4px;
  top: 8px;
  border-left: 1px solid #78838f;
  border-bottom: 1px solid #78838f;
  transform: rotate(-45deg);
}
.plan > .button {
  width: 100%;
  justify-content: space-between;
  margin-top: auto;
  min-height: 45px;
  font-size: 12px;
  padding: 13px 18px;
  gap: 12px;
  white-space: nowrap;
}
.plan > .button .icon {
  width: 15px;
  height: 15px;
}
.plan-featured {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.plan-featured .plan-symbol {
  background: #fff;
  color: var(--ink);
}
.plan-featured .plan-price,
.plan-featured .plan-features li {
  color: #fff;
}
.plan-featured .plan-heading p,
.plan-featured .plan-caption,
.plan-featured .plan-price > small,
.plan-featured .plan-includes {
  color: #c1c6cd;
}
.plan-featured .plan-includes {
  border-color: #ffffff26;
}
.plan-featured .plan-features li:before {
  border-color: #9098a2;
}
.plan-featured .plan-features li:after {
  border-color: #e9edf2;
}
.plan-featured > .button {
  background: #fff;
  color: var(--ink);
}
.plan-featured > .button:hover {
  background: #eaf1f6;
}
.pricing-note {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
  margin: 24px 0 0;
}
.lower-faq {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
  align-items: start;
}
.faq-intro > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 19px 0 0;
}
.faq-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 31px;
  font-size: 12px;
  line-height: 1.6;
  border-bottom: 1px solid #c6ccd3;
  padding-bottom: 6px;
}
.faq-more .icon {
  width: 14px;
  height: 14px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}
.faq-list details {
  background: var(--soft);
  border-radius: 10px;
  overflow: hidden;
}
.faq-list summary {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 18px 20px;
  min-height: 60px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.65;
}
.faq-list summary::-webkit-details-marker {
  display: none;
}
.faq-number {
  align-self: flex-start;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted);
  padding-top: 2px;
}
.faq-list summary > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.faq-list summary > .icon {
  width: 15px;
  height: 15px;
  color: #75808b;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-list details[open] summary > .icon {
  transform: rotate(45deg);
}
.faq-list details > p {
  font-size: 13px;
  line-height: 1.85;
  color: var(--muted);
  padding: 0 48px 20px 54px;
  margin: 0;
}
.lower-final-cta {
  padding: 64px 40px;
  margin-top: 0;
  margin-bottom: 80px;
  border-radius: 19px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
}
.lower-final-cta .eyebrow {
  display: inline-flex;
  background: #ffffffad;
  border-color: #d5e1ea;
}
.lower-final-cta h2 {
  font-size: clamp(28px, 3.25vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 21px 0 0;
}
.lower-final-cta > p {
  font-size: 14px;
  line-height: 1.8;
  color: #556575;
  margin: 18px 0 0;
}
.final-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.final-cta-actions > .button {
  font-size: 13px;
  min-height: 46px;
  padding: 13px 21px;
  gap: 17px;
}
.final-cta-actions > .button-outline {
  background: #ffffff75;
  border-color: #bccbd7;
}
.lower-footer {
  padding-bottom: 28px;
}
.footer-main {
  display: flex;
  align-items: center;
  gap: 27px;
  padding: 0 0 29px;
}
.footer-brand {
  display: block;
  width: 105px;
  flex-shrink: 0;
}
.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.footer-main > p {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}
.footer-main nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 15px 23px;
  margin-left: auto;
  font-size: 12px;
  line-height: 1.6;
}
.footer-main nav > a:hover,
.footer-bottom > a:hover,
.faq-more:hover {
  color: #36749f;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}
.footer-bottom > a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.footer-bottom .icon {
  width: 12px;
  height: 12px;
}
.template-dialog {
  width: min(840px, calc(100vw - 48px));
  max-height: calc(100dvh - 56px);
  padding: 28px;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: auto;
  box-shadow: 0 30px 80px #10111230;
}
.template-dialog::backdrop {
  background: #11182079;
  backdrop-filter: blur(5px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}
.dialog-heading h2 {
  font-size: 29px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.04em;
  margin: 14px 0 0;
}
.dialog-close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--soft);
  color: var(--ink);
  cursor: pointer;
}
.dialog-close .icon {
  width: 18px;
  height: 18px;
}
.dialog-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.dialog-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-top: 21px;
}
.dialog-bottom > p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 360px;
  margin: 0;
}
.dialog-bottom > .button {
  font-size: 12px;
  min-height: 44px;
  padding: 12px 18px;
  gap: 15px;
  flex-shrink: 0;
}
@media (max-width: 1050px) {
  .lower-faq {
    gap: 42px;
  }
  .plan {
    padding: 23px 18px 20px;
  }
  .plan-heading {
    gap: 8px;
  }
  .plan-heading h3 {
    font-size: 16px;
  }
  .plan-heading p {
    font-size: 10px;
  }
  .plan-price {
    font-size: 31px;
  }
  .plan-price > span {
    font-size: 21px;
  }
  .plan-price > small {
    font-size: 10px;
    margin-left: 1px;
  }
  .plan-features li {
    font-size: 11px;
  }
  .plan > .button {
    font-size: 11px;
    padding-inline: 14px;
  }
  .footer-main {
    flex-wrap: wrap;
    gap: 14px 24px;
  }
  .footer-main nav {
    width: 100%;
    justify-content: flex-start;
    margin: 8px 0 0;
  }
}
@media (max-width: 800px) {
  .lower-templates,
  .lower-faq,
  .lower-final-cta,
  .lower-footer,
  .lower-pricing > .container {
    width: calc(100% - 56px);
  }
  .lower-templates,
  .lower-pricing,
  .lower-faq {
    padding-block: 76px;
  }
  .lower-templates .section-head,
  .lower-pricing .section-head {
    gap: 26px;
    align-items: flex-end;
  }
  .lower-templates .section-head > p,
  .lower-pricing .section-head > p {
    max-width: 245px;
    font-size: 13px;
  }
  .template-grid {
    gap: 16px;
  }
  .template-preview {
    padding: 15px 11px 0;
    aspect-ratio: 1.1;
  }
  .template-card-caption {
    gap: 8px;
  }
  .template-card-caption > span {
    display: none;
  }
  .template-card-caption h3 {
    font-size: 14px;
  }
  .template-card-caption p {
    font-size: 11px;
  }
  .template-open {
    width: 31px;
    height: 31px;
    right: 10px;
    bottom: 10px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 490px;
    margin-inline: auto;
    gap: 24px;
  }
  .plan {
    padding: 28px;
  }
  .plan-heading {
    min-height: 44px;
    gap: 11px;
  }
  .plan-heading h3 {
    font-size: 19px;
  }
  .plan-heading p {
    font-size: 12px;
  }
  .plan-price {
    font-size: 39px;
    margin-top: 23px;
  }
  .plan-price > span {
    font-size: 25px;
  }
  .plan-price > small {
    font-size: 12px;
    margin-left: 5px;
  }
  .plan-caption {
    font-size: 12px;
  }
  .plan-features li {
    font-size: 14px;
  }
  .plan-includes {
    font-size: 11px;
  }
  .plan > .button {
    font-size: 14px;
    min-height: 48px;
    padding-inline: 20px;
  }
  .plan-recommended {
    position: static;
    align-self: flex-start;
    margin-left: auto;
    font-size: 10px;
    padding: 4px 9px;
    white-space: nowrap;
  }
  .plan-heading > div {
    min-width: 0;
  }
  .lower-faq {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .faq-intro h2 br {
    display: none;
  }
  .faq-intro > p br {
    display: none;
  }
  .faq-intro > p {
    margin-top: 14px;
  }
  .faq-more {
    margin-top: 16px;
  }
  .faq-list summary {
    font-size: 14px;
  }
  .faq-list details > p {
    font-size: 14px;
  }
  .lower-final-cta {
    padding: 50px 25px;
    margin-bottom: 60px;
  }
  .lower-final-cta h2 {
    font-size: 35px;
  }
  .footer-main > p {
    font-size: 12px;
  }
}
@media (max-width: 540px) {
  .lower-templates,
  .lower-faq,
  .lower-final-cta,
  .lower-footer,
  .lower-pricing > .container {
    width: calc(100% - 36px);
  }
  .lower-templates,
  .lower-pricing,
  .lower-faq {
    padding-block: 62px;
  }
  .lower-templates .section-head,
  .lower-pricing .section-head {
    display: block;
    margin-bottom: 27px;
  }
  .lower-templates h2,
  .lower-pricing h2,
  .lower-faq h2 {
    font-size: 31px;
    margin-top: 15px;
  }
  .lower-templates .section-head > p,
  .lower-pricing .section-head > p {
    margin-top: 17px;
    max-width: 320px;
    font-size: 14px;
  }
  .filter-button {
    font-size: 11px;
    padding: 10px 13px;
    min-height: 40px;
  }
  .template-filters {
    gap: 6px;
  }
  .template-grid {
    grid-template-columns: 1fr;
    gap: 29px;
  }
  .template-preview {
    padding: 22px 17px 0;
    aspect-ratio: 1.3;
  }
  .template-card-caption h3 {
    font-size: 17px;
  }
  .template-card-caption p {
    font-size: 12px;
  }
  .template-card-caption > span {
    display: inline;
    font-size: 10px;
  }
  .template-open {
    width: 37px;
    height: 37px;
    right: 15px;
    bottom: 15px;
  }
  .plan {
    padding: 26px 23px;
  }
  .plan-heading h3 {
    font-size: 18px;
  }
  .plan-heading p {
    font-size: 11px;
  }
  .plan-recommended {
    font-size: 9px;
    padding: 4px 7px;
  }
  .plan-symbol {
    width: 29px;
    height: 29px;
  }
  .plan-price {
    font-size: 37px;
  }
  .plan-price > small {
    font-size: 11px;
  }
  .plan-features li {
    font-size: 13px;
  }
  .pricing-note {
    font-size: 12px;
    margin-top: 22px;
  }
  .faq-intro > p {
    font-size: 14px;
  }
  .faq-list summary {
    padding: 16px;
    gap: 12px;
    font-size: 13px;
    min-height: 65px;
  }
  .faq-number {
    font-size: 10px;
  }
  .faq-list details > p {
    padding: 0 18px 18px 42px;
    font-size: 13px;
  }
  .faq-list summary > .icon {
    width: 15px;
    height: 15px;
  }
  .lower-final-cta {
    padding: 39px 22px;
    border-radius: 15px;
    margin-bottom: 49px;
  }
  .lower-final-cta h2 {
    font-size: 29px;
    line-height: 1.22;
  }
  .lower-final-cta h2 br {
    display: none;
  }
  .lower-final-cta > p {
    font-size: 13px;
  }
  .final-cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 24px;
  }
  .final-cta-actions > .button {
    font-size: 13px;
    min-height: 47px;
    padding-inline: 19px;
  }
  .final-cta-actions > .button-outline {
    background: #ffffff84;
  }
  .footer-main {
    gap: 8px 15px;
    padding-bottom: 25px;
  }
  .footer-brand {
    width: 104px;
  }
  .footer-main > p {
    font-size: 11px;
  }
  .footer-main nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px 16px;
    margin-top: 17px;
    font-size: 12px;
  }
  .footer-bottom {
    font-size: 10px;
    gap: 12px;
    padding-top: 19px;
  }
  .footer-bottom > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  .footer-bottom > a {
    margin-left: auto;
  }
  .lower-footer {
    padding-bottom: 24px;
  }
  .template-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 32px);
    padding: 18px;
    border-radius: 16px;
  }
  .dialog-heading {
    gap: 15px;
    margin-bottom: 17px;
  }
  .dialog-heading h2 {
    font-size: 24px;
  }
  .dialog-heading .eyebrow {
    font-size: 10px;
  }
  .dialog-bottom {
    display: block;
    margin-top: 17px;
  }
  .dialog-bottom > p {
    font-size: 13px;
  }
  .dialog-bottom > .button {
    width: 100%;
    margin-top: 18px;
    font-size: 13px;
    min-height: 46px;
    justify-content: space-between;
  }
}
@media (max-width: 360px) {
  .plan {
    padding: 24px 20px;
  }
  .plan-recommended {
    display: none;
  }
  .plan-price {
    font-size: 35px;
  }
  .plan-price > small {
    font-size: 10px;
  }
  .plan-heading h3 {
    font-size: 18px;
  }
  .lower-final-cta {
    padding-inline: 18px;
  }
  .lower-final-cta h2 {
    font-size: 27px;
  }
  .footer-main > p {
    width: 100%;
    margin-top: 4px;
  }
  .lower-templates h2,
  .lower-pricing h2,
  .lower-faq h2 {
    font-size: 29px;
  }
  .filter-button {
    padding-inline: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .template-window,
  .template-open,
  .filter-button,
  .faq-list summary > .icon {
    transition: none;
  }
}
