:root {
  color-scheme: light;
  --ink: #202622;
  --muted: #68716a;
  --line: #e2e7e2;
  --paper: #f7f8f6;
  --white: #fff;
  --green: #247454;
  --green-dark: #18583d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.site-header,
main,
.site-footer {
  width: min(1160px, calc(100% - 64px));
  margin-inline: auto;
}

.site-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 30px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
}

.header-link {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 160ms ease;
}

.header-link:hover {
  color: var(--green-dark);
}

.header-link span {
  padding-left: 5px;
  color: var(--green);
}

.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 70px 0 46px;
}

.eyebrow,
.app-topline {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eyebrow-dot {
  width: 7px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #d26849;
}

h1 {
  margin: 18px 0 12px;
  font-size: 52px;
  font-weight: 650;
  line-height: 1.04;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.apps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 76px;
}

.app {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgb(32 35 31 / 7%);
  border-radius: 8px;
}

.app-epub {
  --app-tint: #f3e8df;
  --app-accent: #a75a36;
  --app-accent-hover: #824329;
}

.app-gdp {
  --app-tint: #e7eee7;
  --app-accent: #376d57;
  --app-accent-hover: #285340;
}

.app-currency {
  --app-tint: #e8edf2;
  --app-accent: #456c83;
  --app-accent-hover: #34566a;
}

.app-topline {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
}

.app-symbol {
  color: var(--app-accent);
  font-size: 15px;
  font-weight: 700;
}

.app-visual {
  height: auto;
  overflow: hidden;
  background: var(--app-tint);
  line-height: 0;
}

.app-visual img {
  display: block;
  width: 100%;
  height: auto;
}

.app-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 20px 20px;
  background: var(--white);
}

.app-info h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.25;
}

.app-tagline {
  margin: 0;
  color: var(--app-accent);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.app-description {
  margin: 11px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.app-description a {
  color: var(--app-accent);
  text-decoration-color: currentColor;
  text-underline-offset: 2px;
}

.app-features {
  display: grid;
  gap: 7px;
  margin: 0 0 20px;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
  list-style: none;
}

.app-features li {
  position: relative;
  padding-left: 13px;
}

.app-features li::before {
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 5px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--app-accent);
  content: "";
}

.store-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 12px;
  padding: 0 13px;
  border: 1px solid var(--app-accent);
  border-radius: 6px;
  background: var(--app-accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 650;
  text-decoration: none;
  margin-top: auto;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.store-link span {
  color: var(--white);
  font-size: 14px;
}

.store-link:hover {
  border-color: var(--app-accent-hover);
  background: var(--app-accent-hover);
}

.store-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

.site-footer {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
}

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

.footer-links a,
.legal-nav a {
  color: var(--muted);
  font-size: 11px;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.footer-links a:hover,
.legal-nav a:hover {
  color: var(--green-dark);
  text-decoration-color: currentColor;
}

.legal-main {
  max-width: 800px;
  padding-top: 62px;
  padding-bottom: 76px;
}

.legal-title {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 42px;
  line-height: 1.12;
}

.legal-updated {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.legal-content {
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-content h2 {
  margin: 30px 0 8px;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.35;
}

.legal-content p {
  margin: 0 0 14px;
  color: #555b54;
  font-size: 14px;
  line-height: 1.8;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  margin: 0 0 18px;
  padding-left: 22px;
  color: #555b54;
  font-size: 14px;
  line-height: 1.7;
}

.legal-content a {
  color: var(--green-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-nav {
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-wordmark {
  font-size: 10px;
}

.footer-wordmark .wordmark-mark {
  width: 25px;
  font-size: 15px;
}

.site-footer p,
.footer-year {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 820px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 40px, 600px);
  }

  .intro {
    padding: 54px 0 34px;
  }

  h1 {
    font-size: 44px;
  }

  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .app-info {
    min-height: 0;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-block: 14px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 64px;
  }

  .wordmark {
    gap: 8px;
    font-size: 10px;
  }

  .wordmark-mark {
    width: 27px;
  }

  .header-link {
    font-size: 12px;
  }

  .intro {
    align-items: start;
    padding: 45px 0 28px;
  }

  h1 {
    margin-top: 16px;
    font-size: 40px;
  }

  .intro-copy {
    max-width: 330px;
    font-size: 14px;
  }

  .intro-note {
    display: none;
  }

  .apps {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 48px;
  }

  .app-info {
    min-height: 0;
  }

  .site-footer {
    min-height: 72px;
  }

  .site-footer p {
    display: none;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    padding-block: 14px;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-links a {
    font-size: 10px;
  }

  .legal-main {
    padding-top: 44px;
    padding-bottom: 56px;
  }

  .legal-title {
    font-size: 36px;
  }

  .legal-content {
    margin-top: 28px;
    padding-top: 20px;
  }

  .legal-content p {
    font-size: 13px;
  }

  .legal-content ul {
    font-size: 13px;
  }

  .legal-nav {
    gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* App showcase */
body {
  background: var(--paper);
}

.site-header,
main,
.site-footer {
  width: min(1200px, calc(100% - 80px));
}

.site-header {
  min-height: 80px;
}

.wordmark {
  gap: 11px;
  font-size: 11px;
  letter-spacing: 0;
}

.wordmark-mark {
  width: 32px;
  border-radius: 8px;
  background: #247454;
}

.header-link {
  font-size: 13px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: 64px;
  padding: 56px 0 82px;
}

.intro-copy-block {
  max-width: 520px;
}

.eyebrow,
.app-topline {
  font-size: 10px;
  letter-spacing: 0;
}

.eyebrow-dot {
  width: 8px;
  background: #d36a4a;
}

.intro h1 {
  max-width: 560px;
  margin: 22px 0 18px;
  font-size: 62px;
  font-weight: 650;
  line-height: 1.02;
  letter-spacing: 0;
}

.intro-copy {
  max-width: 465px;
  color: #5e6861;
  font-size: 16px;
  line-height: 1.75;
}

.intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
}

.intro-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 20px;
  padding: 0 17px;
  border: 1px solid #247454;
  border-radius: 6px;
  background: #247454;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.intro-button:hover {
  transform: translateY(-1px);
  background: #18583d;
}

.intro-button:focus-visible,
.store-link:focus-visible {
  outline: 3px solid #202622;
  outline-offset: 3px;
}

.intro-button span {
  font-size: 16px;
}

.intro-note {
  color: var(--muted);
  font-size: 12px;
}

.hero-gallery {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.18;
  overflow: hidden;
  border-radius: 8px;
  background: #e8efe9;
}

.gallery-caption {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 24px;
  color: #60766a;
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0;
}

.hero-device {
  position: absolute;
  overflow: hidden;
  border: 5px solid #202321;
  border-radius: 25px;
  background: #fff;
  line-height: 0;
  box-shadow: 0 18px 40px rgb(24 40 30 / 18%);
}

.hero-device img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-device-left {
  z-index: 1;
  top: 20%;
  left: 7%;
  width: 31%;
  transform: rotate(-8deg);
}

.hero-device-main {
  z-index: 2;
  top: 12%;
  left: 32%;
  width: 36%;
}

.hero-device-right {
  z-index: 1;
  top: 23%;
  right: 5%;
  width: 30%;
  transform: rotate(8deg);
}

.apps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 88px;
}

.apps-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 0 0 4px;
}

.apps-heading h2 {
  margin: 13px 0 0;
  font-size: 30px;
  font-weight: 650;
  line-height: 1.2;
}

.apps-heading > p {
  max-width: 330px;
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.app {
  border-color: #e1e5e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 14px rgb(32 38 34 / 3%);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.app:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgb(32 38 34 / 8%);
}

.app-epub {
  --app-tint: #f3e9e2;
  --app-accent: #a75a36;
  --app-accent-hover: #824329;
}

.app-gdp {
  --app-tint: #e7eee8;
  --app-accent: #286b4e;
  --app-accent-hover: #1d5039;
}

.app-currency {
  --app-tint: #e8edf2;
  --app-accent: #416d80;
  --app-accent-hover: #34566a;
}

.app-topline {
  min-height: 48px;
  padding-inline: 20px;
}

.app-symbol {
  font-size: 15px;
}

.app-visual {
  display: grid;
  height: 520px;
  place-items: center;
  padding: 14px;
}

.app-visual img {
  width: auto;
  height: 100%;
  max-width: 90%;
  border: 5px solid #202321;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(32 38 34 / 16%);
  object-fit: contain;
}

.app-info {
  padding: 22px 22px 22px;
}

.app-info h2 {
  font-size: 21px;
}

.app-tagline {
  font-size: 13px;
}

.app-description {
  margin: 13px 0 16px;
  font-size: 12px;
  line-height: 1.7;
}

.app-features {
  gap: 8px;
  margin-bottom: 20px;
  padding-top: 15px;
  font-size: 11px;
}

.store-link {
  min-height: 42px;
  justify-content: space-between;
  padding-inline: 14px;
  border-radius: 6px;
  font-size: 12px;
}

.site-footer {
  min-height: 82px;
}

.footer-links a,
.site-footer p,
.footer-year {
  font-size: 11px;
}

@media (max-width: 900px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 48px, 700px);
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 54px 0 64px;
  }

  .intro-copy-block {
    max-width: 630px;
  }

  .intro h1 {
    max-width: 610px;
    font-size: 58px;
  }

  .hero-gallery {
    width: 100%;
    aspect-ratio: 1.45;
  }

  .hero-device-main {
    top: 8%;
    width: 30%;
    left: 35%;
  }

  .hero-device-left {
    top: 16%;
    left: 17%;
    width: 27%;
  }

  .hero-device-right {
    top: 18%;
    right: 15%;
    width: 27%;
  }

  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding-bottom: 68px;
  }

  .apps-heading {
    grid-column: 1 / -1;
  }

  .app-visual {
    height: 480px;
  }

  .site-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-block: 16px;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: calc(100% - 32px);
  }

  .site-header {
    min-height: 66px;
  }

  .wordmark {
    gap: 8px;
    font-size: 10px;
  }

  .wordmark-mark {
    width: 28px;
  }

  .header-link {
    font-size: 12px;
  }

  .intro {
    gap: 28px;
    padding: 44px 0 52px;
  }

  .intro h1 {
    margin: 18px 0 14px;
    font-size: 43px;
    line-height: 1.06;
  }

  .intro-copy {
    font-size: 14px;
    line-height: 1.7;
  }

  .intro-actions {
    gap: 14px;
    margin-top: 22px;
  }

  .intro-button {
    min-height: 44px;
  }

  .intro-note {
    font-size: 11px;
  }

  .hero-gallery {
    aspect-ratio: 1.1;
  }

  .gallery-caption {
    top: 15px;
    left: 16px;
    font-size: 8px;
  }

  .hero-device {
    border-width: 4px;
    border-radius: 19px;
  }

  .hero-device-main {
    top: 13%;
    left: 34%;
    width: 35%;
  }

  .hero-device-left {
    top: 23%;
    left: 7%;
    width: 31%;
  }

  .hero-device-right {
    top: 25%;
    right: 5%;
    width: 30%;
  }

  .apps {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-bottom: 52px;
  }

  .apps-heading {
    align-items: start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 4px;
  }

  .apps-heading h2 {
    max-width: 330px;
    font-size: 27px;
  }

  .apps-heading > p {
    max-width: 340px;
    font-size: 12px;
  }

  .app-visual {
    height: 500px;
  }

  .app-info {
    padding: 21px 19px 20px;
  }

  .site-footer {
    min-height: 72px;
    justify-content: space-between;
    gap: 12px;
    padding-block: 14px;
  }

  .site-footer p {
    display: none;
  }

  .footer-links {
    gap: 12px;
  }

  .footer-links a {
    font-size: 10px;
  }

  .footer-year {
    font-size: 10px;
  }
}
