section.hero {
  min-height: calc(100vh - 72px);
}

.decorated {
  min-height: 500px;
  min-width: 400px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.decorated::before,
.decorated::after {
  content: "";
  position: absolute;
  z-index: 1;
  width: 250px;
  height: 250px;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: .85;
}

.decorated::before {
  top: 0;
  right: 0;
  background-image: url("../assets/corner-right.png");
}

.decorated::after {
  bottom: 0;
  left: 0;
  background-image: url("../assets/corner-left.png");
}

.hero-grid,
.roman-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 80px;
}

.hero-grid > div,
.roman-grid > div {
  display: flex;
  flex-direction: column;
}

.hero p,
.roman-grid p {
  max-width: 650px;
}

.hero-maths {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: clamp(12pt, 4.4vw, 16pt);
  text-align: center;
}

.hero-art {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 20px;
}

.hero-rules {
  margin-top: -24px;
  text-align: center;
}

.hero-maths .line {
  font-family: var(--font-display);
}

body .strike {
  text-decoration: line-through;
}

.hero-maths b {
  margin: 7px;
  font-size: 20px;
  font-weight: normal;
}

.hero-maths strong {
  color: var(--orange);
  font-size: clamp(16pt, 4.4vw, 20pt);
  font-weight: normal;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-top: 45px;
}

.compare div {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.compare div.compare-card {
  position: relative;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
  border-radius: 22px;
  padding: 20px 45px 45px;
  box-shadow: 0 10px 34px rgba(200, 116, 58, 0.22);
}

.compare h3 {
  font-family: var(--font-display);
}

.compare-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-list li {
  position: relative;
  padding-left: 24px;
}

.compare-list li::before {
  position: absolute;
  left: 0;
  font-weight: 600;
}

.compare-list.old li {
  text-decoration: line-through;
}

.compare-list.old li::before {
  content: "✕";
}

.compare-list.new li {
  padding-left: 40px;
}

.compare-list.new li::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  font-size: 12px;
  font-weight: 600;
  top: 50%;
  transform: translateY(-50%);
}

.compare-card .compare-list {
  gap: 22px;
}

.equation {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--brown);
  font-family: var(--font-display);
  font-size: 48px;
  text-align: center;
}

.equation .decorated {
  width: 100%;
  padding: 60px;
}

.equation-content {
  position: relative;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 52px 28px 44px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 10px 34px rgba(200, 116, 58, 0.22);
  overflow: hidden;
  z-index: 1;
}

.equation-content > span {
  display: block;
  font-size: clamp(44px, 5vw, 64px);
  line-height: 1;
  letter-spacing: .05em;
}

.equation-content small {
  display: block;
  margin-top: 16px;
  display: block;
  color: var(--olive);
  font-family: var(--font-display);
  font-size: 12pt;
  font-style: italic;
}

.features,
.roadmap,
.products {
  display: grid;
  gap: 38px;
  margin-top: 45px;
  text-align: center;
}

.features {
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.features article {
  min-width: 0;
  background: #fff;
  border-radius: 22px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 10px 34px rgba(200, 116, 58, 0.2);
}

.features img {
  display: block;
  width: 55%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto;
  border-radius: 50%;
  border: 5px solid #f0e0cc;
}

.features h3 {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--olive);
}

.features p {
  margin: 12px 0 0;
  font-size: 14px;
}

.roadmap {
  position: relative;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 76px;
  gap: 24px;
}

.roadmap-path {
  position: absolute;
  left: 10%;
  width: 80%;
  top: 26px;
  height: 120px;
  pointer-events: none;
}

.roadmap article {
  position: relative;
  z-index: 1;
  min-width: 0;
  text-align: center;
}

.roadmap img {
  display: block;
  width: 170px;
  height: 170px;
  border: 4px solid #fff;
  box-sizing: border-box;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto;
  box-shadow: 0 16px 36px rgba(200, 116, 58, 0.28);
}

.roadmap h3 {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--olive);
}

.roadmap p {
  margin: 6px auto 0;
  max-width: 250px;
  font-size: 14px;
}

.intro {
  max-width: 760px;
}

.products {
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.products img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(200, 116, 58, 0.22);
  padding-bottom: 24px;
}

.products h3,
.products p,
.products span {
  margin-left: 12px;
  margin-right: 12px;
}

.products h3 {
  margin-top: 20px;
  margin-bottom: 4px;
  color: var(--olive);
  font-size: 11pt;
  font-weight: 500;
  line-height: 1.4;
}

.products p {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: clamp(11px, 3.2vw, 13px);
  line-height: 1.6;
}

.products span {
  display: block;
  margin-top: 15px;
  color: var(--brown);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}

.product:hover span {
  color: var(--orange);
}

.faq {
  text-align: center;
}

.faq-card {
  margin-top: 40px;
  background: #fff;
  border-radius: 22px;
  padding: 12px 40px;
  box-shadow: 0 10px 34px rgba(200, 116, 58, 0.2);
  overflow: hidden;
}

.faq details {
  padding: 24px 0;
  border-bottom: 1px solid #f0dfc8;
  text-align: left;
}

.faq details:last-child {
  border-bottom: none;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  color: #3d5230;
  font-weight: 600;
  font-size: 17px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "▸";
  color: #c8743a;
  transition: transform 0.2s ease;
}

.faq details[open] summary::before {
  transform: rotate(90deg);
}

.faq details p {
  margin: 14px 0 0 32px;
  font-size: 14px;
  line-height: 1.6;
}

.faq details a {
  color: var(--brown);
  font-weight: 600;
  text-decoration: none;
}

.faq details a:hover {
  color: var(--orange);
}

.join {
  background: var(--olive);
  color: #fff;
  padding: 90px 0;
  text-align: left;
}

.join-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  align-items: center;
  gap: 80px;
}

.join-copy {
  max-width: 440px;
}

.join h2 {
  color: #f7eee2;
}

.join .light {
  color: #ead79a;
}

.join-card {
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 40px;
  border-radius: 22px;
  background: #ffe7cc;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 40px 70px rgba(0, 0, 0, 0.3);
}

.join-card form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.join-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.join-field label {
  font-size: 14px;
  font-weight: 600;
}

.join-field label:first-of-type {
  margin-top: 0;
}

.join-field label b {
  color: #c0392b;
}

.join-field input {
  box-sizing: border-box;
  width: 100%;
  padding: 0 18px;
  min-height: 54px;
  border: 1.5px solid #e8cfae;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}

.join-field input:focus {
  outline: 2px solid var(--olive);
  outline-offset: 2px;
}

.join-submit {
  min-height: 42px;
  margin: 4px 0 0;
  padding: 8px 22px;
  font-size: 11px;
}

.join-success {
  padding: 24px 0;
  text-align: center;
}

.join-success h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 28px;
  color: var(--heading);
}

.join-success p {
  margin: 0;
  color: var(--ink);
}

#status {
  display: none;
  padding: 12px;
  border-radius: 5px;
  background: #fff;
  color: #244c34;
}

@media (max-width: 700px) {

  section.hero {
    min-height: calc(100vh - 60px);
  }

  .hero-grid,
  .roman-grid,
  .compare {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-top: 16px;
  }

  .hero-grid > \*,
  .roman-grid > \*,
  .compare > \* {
    min-width: 0;
  }

  .decorated {
    min-height: 25vh;
  }

  .decorated {
    min-width: 0;
  }

  .decorated::before,
  .decorated::after {
    width: 250px;
    height: 250px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 16px;
  }

  .features img {
    width: 120px;
    height: 120px;
  }

  .roadmap,
  .products {
    grid-template-columns: 1fr;
  }

  .roadmap {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .roadmap-path {
    display: none;
  }

  .roadmap img {
    width: 145px;
    height: 145px;
  }

  .products {
    gap: 30px;
  }

  .products img {
    width: min(360px, 100%);
    margin: auto;
  }

  .equation small {
    margin-top: 45px;
  }

  .join form {
    padding: 20px;
  }

  .join-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

}
