.hero {
  position: relative;
  min-height: 690px;
  display: flex;
  align-items: center;
  background: #e4e8e4 url("/images/projects/hero.jpg") center 55% / cover
    no-repeat;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #142a1810;
}
.hero .wrap {
  position: relative;
  padding-block: 56px;
}
.hero-card {
  max-width: 510px;
  background: white;
  padding: 40px 42px;
  border-radius: 2px;
}
.hero-card h1 {
  font-size: 44px;
  font-weight: 400;
}
.hero-card h1 em {
  font-style: normal;
  color: var(--brand);
}
.hero-copy {
  font-size: 15px;
  margin: 20px 0 25px;
  color: #505950;
  line-height: 1.8;
}
.hero-action {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-action .btn {
  padding-inline: 30px;
}
.hero-note {
  margin-top: 18px;
  font-size: 11px;
  color: var(--muted);
}
.hero-note strong {
  color: var(--ink);
  font-weight: 500;
}
.benefit-strip {
  background: var(--canvas);
}
.benefit-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-block: 27px;
}
.benefit {
  padding: 0 26px;
  border-right: 1px solid var(--line);
  display: flex;
  gap: 15px;
  align-items: center;
}
.benefit:first-child {
  padding-left: 0;
}
.benefit:last-child {
  border: 0;
}
.benefit > div {
  align-self: flex-start;
}
.benefit .step-number {
  font-family: var(--heading-font);
  font-size: 28px;
  color: var(--brand);
  font-weight: 400;
}
.benefit strong {
  display: block;
  font-size: 12px;
  font-weight: 600;
}
.benefit small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px 28px;
}
@media (min-width: 801px) {
  .case {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 3;
    row-gap: 0;
  }
}
.case:first-child {
  grid-column: 1/-1;
}
.case-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
}
.case-heading h3 {
  font-size: 25px;
}
.case:first-child h3 {
  font-size: 30px;
}
.case-price {
  font-size: 11px;
  color: var(--brand);
  text-align: right;
  max-width: 320px;
}
.case-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.case-photo {
  position: relative;
  display: block;
  background: var(--canvas);
  border-radius: 8px;
  overflow: hidden;
}
.case-photo img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.3s;
}
.case:first-child .case-photo img {
  height: 340px;
}
.case-photo:hover img {
  transform: scale(1.025);
}
.case-photo span {
  position: absolute;
  left: 12px;
  top: 12px;
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 9px;
  background: #fffe;
  color: var(--ink);
  border-radius: 3px;
}
.case-photo.after span {
  background: var(--brand);
  color: white;
}
.case-caption {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 14px;
  max-width: 850px;
}
.more-projects {
  margin-top: 34px;
}
.more-projects summary {
  list-style: none;
  display: table;
  margin: auto;
  border-bottom: 1px solid var(--brand);
  padding-bottom: 4px;
  font-size: 13px;
  color: var(--brand);
  cursor: pointer;
}
.more-projects .case-grid {
  margin-top: 34px;
}
.more-projects .case:first-child {
  grid-column: auto;
}
.more-projects .case:first-child .case-photo img {
  height: 240px;
}
.more-projects .case:first-child h3 {
  font-size: 25px;
}
.task-section {
  background: var(--canvas);
}
.task-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.task-card {
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.2s;
}
.task-card:hover {
  transform: translateY(-4px);
}
.task-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.task-copy {
  padding: 24px;
}
.task-card h3 {
  font-size: 25px;
  margin-bottom: 10px;
}
.task-card p {
  font-size: 12px;
  color: var(--muted);
  min-height: 60px;
}
.task-card .text-link {
  display: block;
  color: var(--brand);
  margin-top: 20px;
}
.inside-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.inside-points {
  margin-top: 28px;
  display: grid;
  gap: 22px;
}
.inside-point {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 14px;
}
.inside-point span {
  font-family: var(--heading-font);
  font-size: 18px;
  color: var(--brand);
}
.inside-point strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
}
.inside-point p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.library-preview {
  background: var(--canvas);
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--line);
  transform: rotate(1deg);
}
.preview-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  font-size: 11px;
  color: var(--muted);
}
.preview-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}
.preview-caption {
  padding-top: 20px;
}
.preview-caption h3 {
  font-size: 25px;
}
.preview-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  display: flex;
  gap: 12px;
}
.preview-row span {
  color: var(--brand);
}
.preview-note {
  font-size: 10px;
  color: var(--muted);
  margin-top: 18px;
}
.how-section {
  background: var(--brand);
  color: white;
}
.how-section .eyebrow {
  color: #d4e9cf;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
  margin-top: 40px;
}
.how-step {
  border-top: 1px solid #ffffff42;
  padding-top: 18px;
}
.how-step .num {
  display: block;
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 32px;
  color: #cde4cb;
  margin-bottom: 18px;
}
.how-step h3 {
  font-size: 21px;
  margin-bottom: 10px;
}
.how-step p {
  font-size: 12px;
  color: #dbe7dd;
}
.author-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.author-photo {
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: 65% center;
  border-radius: 8px;
}
.author-text p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 20px;
}
.author-quote {
  font-family: var(--heading-font);
  font-size: 25px;
  font-weight: 400;
  color: var(--brand);
  line-height: 1.45;
  margin-top: 28px;
}
.reviews-section {
  background: var(--canvas);
}
.review-carousel {
  min-width: 0;
}
.review-carousel:focus-visible {
  outline: 3px solid #73a780;
  outline-offset: 8px;
  border-radius: 12px;
}
.review-stage {
  position: relative;
  height: 440px;
  overflow: hidden;
  touch-action: pan-y;
  isolation: isolate;
}
.review-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 18px;
  cursor: zoom-in;
}
.review-slide {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(64%, 520px);
  height: 100%;
  transform: translateX(-50%) scale(0.92);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.32s ease,
    opacity 0.32s ease;
}
.review-slide[data-position="current"] {
  transform: translateX(-50%);
  opacity: 1;
  z-index: 3;
  pointer-events: auto;
}
.review-slide[data-position="previous"] {
  transform: translateX(calc(-150% - 24px)) scale(0.92);
  opacity: 0.5;
  z-index: 1;
}
.review-slide[data-position="next"] {
  transform: translateX(calc(50% + 24px)) scale(0.92);
  opacity: 0.5;
  z-index: 1;
}
.review-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.review-navigation {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  max-width: 520px;
  margin: 18px auto 0;
}
.review-navigation > .btn {
  justify-self: start;
  min-height: 44px;
  padding-inline: 14px;
}
.review-navigation > .btn:last-child {
  justify-self: end;
}
.review-count {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  max-width: 960px;
  margin: auto;
}
.price-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 34px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--brand);
  background: #f7fbf7;
}
.price-card .eyebrow {
  margin-bottom: 12px;
}
.price-card h3 {
  font-size: 27px;
}
.price-value {
  font-family: var(--heading-font);
  font-weight: 400;
  font-size: 52px;
  letter-spacing: -1.5px;
  margin-top: 24px;
  line-height: 1.2;
}
.price-value span {
  font-family: var(--body-font);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
  font-weight: 400;
}
.price-card > p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}
.price-card ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 13px;
  font-size: 12px;
  margin: 28px 0 32px;
  flex: 1;
}
.price-card li {
  padding-left: 20px;
  position: relative;
}
.price-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--brand);
}
.price-card .btn {
  width: 100%;
}
.price-note {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  max-width: 650px;
  margin: 25px auto 0;
}
.faq-section {
  background: var(--canvas);
}
.faq-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 70px;
}
.faq-layout .lead {
  font-size: 13px;
}
.faq-list details {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-list details:first-child {
  padding-top: 0;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 500;
  font-size: 14px;
  list-style: none;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 25px;
}
.faq-list summary::after {
  content: "+";
  font-family: var(--heading-font);
  font-size: 24px;
  line-height: 1;
  color: var(--brand);
}
.faq-list details[open] summary::after {
  content: "−";
}
.faq-list details p {
  font-size: 12px;
  color: var(--muted);
  padding-top: 14px;
  max-width: 650px;
}
.closing {
  padding-block: 70px;
  text-align: center;
}
.closing h2 {
  max-width: 650px;
  margin: auto;
}
.closing p {
  color: var(--muted);
  margin: 18px auto 26px;
  font-size: 14px;
}
.closing .btn {
  padding-inline: 35px;
}
@media (max-width: 800px) {
  .hero {
    min-height: 0;
    background-position: 65% center;
  }
  .hero .wrap {
    padding-block: 30px;
  }
  .hero-card {
    max-width: 440px;
    padding: 28px 25px;
  }
  .hero-card h1 {
    font-size: 35px;
  }
  .hero-copy {
    font-size: 13px;
    margin-block: 16px 22px;
  }
  .hero-action {
    gap: 15px;
  }
  .hero-action .btn {
    width: 100%;
    padding-inline: 12px;
  }
  .hero-action .text-link {
    margin: auto;
    font-size: 12px;
  }
  .hero-note {
    font-size: 10px;
  }
  .benefit-row {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-block: 24px;
  }
  .benefit,
  .benefit:first-child {
    padding: 0;
    border: 0;
    gap: 17px;
  }
  .benefit .step-number {
    font-size: 24px;
  }
  .benefit small {
    margin-top: 1px;
  }
  .case-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .case:first-child {
    grid-column: auto;
  }
  .case-heading {
    display: block;
    margin-bottom: 12px;
  }
  .case-heading h3,
  .case:first-child h3 {
    font-size: 25px;
  }
  .case-price {
    text-align: left;
    margin-top: 8px;
    max-width: none;
  }
  .case-photo img,
  .case:first-child .case-photo img,
  .more-projects .case:first-child .case-photo img {
    height: 185px;
  }
  .case-images {
    gap: 8px;
  }
  .case-photo span {
    top: 8px;
    left: 8px;
    font-size: 9px;
    padding: 3px 7px;
  }
  .task-grid {
    grid-template-columns: 1fr;
  }
  .task-card {
    display: grid;
    grid-template-columns: 110px 1fr;
  }
  .task-card img {
    height: 100%;
    min-height: 180px;
  }
  .task-copy {
    padding: 20px;
  }
  .task-card h3 {
    font-size: 23px;
  }
  .task-card p {
    min-height: 0;
  }
  .task-card .text-link {
    margin-top: 12px;
    font-size: 12px;
  }
  .inside-layout,
  .author-layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .library-preview {
    padding: 22px;
    transform: none;
  }
  .preview-image {
    height: 180px;
  }
  .how-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 20px;
  }
  .how-step h3 {
    font-size: 21px;
  }
  .how-step .num {
    font-size: 27px;
    margin-bottom: 12px;
  }
  .author-photo {
    height: 350px;
  }
  .author-layout {
    gap: 30px;
  }
  .review-stage {
    height: 380px;
  }
  .review-slide {
    width: calc(100% - 42px);
    max-width: 440px;
    padding: 14px;
  }
  .review-slide[data-position="previous"] {
    transform: translateX(calc(-150% - 12px)) scale(0.94);
  }
  .review-slide[data-position="next"] {
    transform: translateX(calc(50% + 12px)) scale(0.94);
  }
  .review-navigation > .btn {
    padding-inline: 12px;
    font-size: 12px;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .price-card {
    padding: 28px;
  }
  .price-value {
    font-size: 46px;
  }
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .closing {
    padding-block: 50px;
  }
}

.payment-methods {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 20px 0;
}
.payment-methods legend {
  padding: 0 6px;
  font-weight: 600;
}
.payment-methods label {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 12px 0;
  cursor: pointer;
}
.payment-methods input {
  accent-color: var(--brand);
  width: 18px;
  height: 18px;
}
.payment-method-note {
  margin: 18px 0;
  font-weight: 600;
}
#checkout-dialog {
  padding: 0;
  overflow: hidden;
}
#checkout-dialog[open] {
  display: flex;
  flex-direction: column;
}
.checkout-heading {
  padding: 30px 30px 0;
  flex-shrink: 0;
}
.checkout-field-error {
  margin-top: 6px;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.5;
}
.checkout-fields input[aria-invalid="true"] {
  border-color: var(--danger);
}
#checkout-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.checkout-fields {
  min-height: 0;
  overflow-y: auto;
  padding: 0 30px 8px;
  overscroll-behavior: contain;
}
.checkout-footer {
  padding: 16px 30px 24px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  flex-shrink: 0;
}
@media (max-width: 800px) {
  .checkout-heading {
    padding: 24px 20px 0;
  }
  .checkout-fields {
    padding-inline: 20px;
  }
  .checkout-footer {
    padding: 14px 20px 18px;
  }
}
/* Keep section columns stable between desktop and tablet breakpoints. */
.inside-layout,
.author-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 64px);
}
.library-preview {
  transform: none;
}
.task-card {
  display: flex;
  flex-direction: column;
}
.task-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
}
.task-card p {
  min-height: 0;
  flex: 1;
}
.task-card .text-link {
  margin-top: 24px;
}
@media (max-width: 980px) {
  .inside-layout,
  .author-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }
  .library-preview {
    max-width: 620px;
    width: 100%;
    margin-inline: auto;
  }
}
