@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,100..900;1,100..900&family=Petrona:ital,wght@0,100..900;1,100..900&display=swap');

:root {
  --cream: #fbf4e9;
  --sand: #efe1ce;
  --ink: #5c5548;
  --heading: #171411;
  --orange: #c97a4a;
  --brown: #783f04;
  --brown-light: #96522f;
  --olive: #405330;
  --gold: #c89a60;

  --font-body: 'Inter', sans-serif;
  --font-display: 'Petrona', Arial, serif;
}

.color-brown {
  color: var(--brown);
}

.color-orange {
  color: var(--orange);
}

.font-700 {
  font-weight: 700;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 12pt;
  line-height: 1.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 72px;
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand img {
  display: block;
  width: 190px;
  max-height: 46px;
  object-fit: contain;
  object-position: left center;
}

.site-header a {
  color: var(--ink);
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  align-items: center;
}

.main-nav .nav-cta {
  padding: 8px 15px;
  border: 1px solid var(--brown);
  border-radius: 3px;
  background: transparent;
  color: var(--brown);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
}

.main-nav .nav-cta:hover {
  border: 1px solid var(--brown-light);
  color: var(--brown-light);
}

.wrap {
  position: relative;
  z-index: 2;
  width: min(1120px, 90%);
  margin: auto;
}

.narrow {
  width: min(760px, 90%);
}

section {
  position: relative;
  padding: 48px 0;
  overflow: hidden;
}

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

.cream {
  background: var(--cream);
}

.sand {
  background: var(--sand);
}

.decorated {
  min-height: 400px;
  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: 400px;
  height: 400px;
  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');
}

h1,
h2 {
  margin: 10px 0 28px;
  color: var(--heading);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: clamp(27pt, 4.4vw, 36pt);
  font-weight: 700;
  vertical-align: baseline;
}

h2 {
  font-size: clamp(23pt, 3.2vw, 30pt);
  font-weight: 500;
}

h3 {
  font-size: clamp(14pt);
  font-weight: 400;
}

em {
  color: var(--orange);
}

.eyebrow {
  color: var(--orange);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 32px;
}

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

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

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

.button,
button {
  display: inline-block;
  margin: 12px 0 16px;
  padding: 12px 20px;
  border: 0;
  border-radius: 3px;
  background: var(--brown);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .7px;
  text-decoration: none;
  cursor: pointer;
  align-self: start;
}

.button:hover,
button:hover {
  background-color: var(--brown-light);
  color: #fff;
}

.fine {
  font-size: 12px;
}

.hero-maths {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(16pt, 4.4vw, 24pt);
  text-align: center;
}

.hero-maths span,
.hero-maths strong,
.hero-maths b {
  display: block;
}

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

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

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

.hero-maths strong {
  font-size: clamp(20pt, 4.4vw, 28pt);
  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 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::before {
  content: '✕';
}

.compare-list.new li::before {
  content: '✓';
  color: var(--olive);
}

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

.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 small {
  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);
}

.features img {
  width: 100%;
  height: 150px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.features h3,
.roadmap h3 {
  margin: 16px auto;
  color: #4d5b35;
}

.features p,
.roadmap p {
  font-size: 13px;
}

.roadmap {
  grid-template-columns: repeat(3, 1fr);
}

.roadmap img {
  width: 100%;
  height: 200px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.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;
  border-radius: 2px;
}

.product {
  color: inherit;
  text-decoration: none;
}

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

.products p {
  margin: 0 0 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 {
  padding: 48px 0 72px;
  text-align: center;
}

.faq details {
  padding: 18px 6px;
  border-bottom: 1px solid #aaa;
  text-align: left;
}

.faq summary {
  color: #50643b;
  font-weight: bold;
  cursor: pointer;
}

.faq details p {
  font-size: 14px;
}

.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;
  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 form {
  margin: 0;
  padding: 32px;
  border-radius: 4px;
  background: var(--sand);
  color: var(--ink);
  text-align: left;
}

.join label {
  display: block;
  margin: 14px 0 6px;
  font-size: 14px;
  font-weight: bold;
}

.join label b {
  color: #d93025;
}

.join input,
.join select,
.join textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font: inherit;
}

.join textarea {
  min-height: 110px;
  resize: vertical;
}

.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;
}

footer {
  padding: 28px 0 20px;
  background: color-mix(in srgb, var(--olive) 85%, black);
  color: #ead79a;
  font-size: 11px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-social,
.footer-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-social a,
.footer-nav a {
  color: inherit;
  text-decoration: none;
}

.copyright {
  margin: 22px 0 0;
  text-align: center;
  opacity: .75;
}

@media (max-width: 700px) {
  .site-header {
    height: 60px;
  }

  .brand img {
    width: 150px;
  }

  section {
    padding: 24px 0;
  }

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

  .wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-inline: 24px;
  }

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

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

  .button,
  button {
    align-self: center;
  }

  .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 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;
  }

  .footer-top {
    flex-direction: column;
    gap: 18px;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .copyright {
    margin-top: 18px;
  }
}