:root {
  --ink: #1b3a4b;
  --paper: #f7f4ef;
  --line: #1b3a4b;
  --screen-h: min(68vh, 640px);
  --screen-w: calc(var(--screen-h) * 1280 / 2856);
  --bezel: 14px;
  --shot-h: calc(var(--screen-h) + (var(--bezel) * 2));
  --shot-w: calc(var(--shot-h) * 1332 / 2748);
  --copy-w: 28.9rem;
  --hero-w: calc(var(--shot-w) * 1.9 + 2.25rem + var(--copy-w));
  --rule-w: calc(var(--hero-w) * 1.18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

.site-header {
  padding: 1.25rem 1.5rem 0;
}

.logo {
  display: block;
  width: min(280px, 70vw);
  height: auto;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1.5rem 0;
}

.feature {
  width: max-content;
  max-width: 100%;
  margin-inline: auto;
  text-align: center;
}

.hero-row {
  position: relative;
  display: grid;
  grid-template-columns: auto max-content;
  column-gap: 2.25rem;
  align-items: center;
}

.hero-row::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(var(--shot-h) * 0.8);
  width: 118%;
  transform: translateX(-50%);
  border-top: 2px solid var(--line);
  z-index: 3;
}

.shot-block {
  position: relative;
  width: calc(var(--shot-w) * 1.9);
  margin-inline: auto;
}

.shots {
  position: relative;
  width: 100%;
  height: calc(var(--shot-h) * 0.8);
  overflow: hidden;
}

.shots .iphone {
  position: absolute;
  width: var(--shot-w);
  height: var(--shot-h);
}

.phone {
  position: absolute;
  height: var(--shot-h);
  width: var(--shot-w);
  padding: var(--bezel);
  border-radius: 38px;
  background:
    linear-gradient(180deg, #4a4a4e 0%, #2a2a2e 8%, #161618 18%, #1c1c1f 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    inset 0 0 0 2px #0a0a0c,
    0 14px 32px rgba(27, 58, 75, 0.18);
}

.phone-screen {
  height: 100%;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.65);
}

.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-button {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #6d6d72, #2c2c30);
}

.phone-volume {
  left: 2px;
  top: 22%;
  height: 18%;
}

.phone-power {
  right: 2px;
  top: 28%;
  height: 11%;
}

.shot-left {
  left: 0;
  top: 0;
  z-index: 1;
}

.shot-right {
  left: calc(var(--shot-w) * 0.9);
  top: calc(var(--shot-h) * 0.2);
  z-index: 2;
}

.portal-logo {
  display: block;
  grid-column: 1 / -1;
  justify-self: center;
  height: 64px;
  width: auto;
  margin: 0.85rem auto 0;
}

.how {
  width: min(1180px, 100%);
  margin: 6rem 0 0;
  display: grid;
  grid-template-columns: minmax(220px, 0.62fr) minmax(0, 1.55fr);
  gap: 1.5rem 1.75rem;
  align-items: stretch;
  font-family: "Inconsolata", ui-monospace, monospace;
  color: var(--ink);
  text-align: left;
}

.how > h2 {
  grid-column: 1 / -1;
  margin: 0 0 0.35rem;
  font-family: inherit;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.how-tiles {
  position: relative;
  min-height: 100%;
}

.how-tile {
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fff;
  color: #009aa8;
  border-radius: 28px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.how-tile svg {
  width: 52%;
  height: 52%;
}

.how-tile:nth-child(1) {
  left: 6%;
  top: 0;
  z-index: 3;
}

.how-tile:nth-child(2) {
  right: 0;
  top: 28%;
  z-index: 2;
}

.how-tile:nth-child(3) {
  left: 0;
  bottom: 0;
  z-index: 1;
}

.how ul {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  box-sizing: border-box;
  min-height: 379px;
  margin: 0;
  padding: 1.35rem 1.6rem 1.35rem 1.15rem;
  list-style: none;
  background: #aed7dc;
  border-radius: 18px;
}

.how li {
  padding: 0 0 0 1.45rem;
  font-size: 1.22rem;
  line-height: 1.5;
  position: relative;
}

.how li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0.05rem;
  font-size: 1.45rem;
  line-height: 1;
}

.section-rule {
  width: var(--rule-w);
  max-width: 100%;
  height: 0;
  margin: 3.75rem 0 0;
  border: 0;
  border-top: 2px solid var(--line);
}

.highlights {
  width: min(1180px, 100%);
  margin: 5.5rem 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  font-family: "Inconsolata", ui-monospace, monospace;
  color: var(--ink);
}

.highlights article {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.highlights h3 {
  margin: 0;
  padding: 0 0.4rem;
  background: none;
  font-family: inherit;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.highlight-shot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.highlight-shot .iphone {
  position: absolute;
  top: 0;
  left: 50%;
  height: 125%;
  aspect-ratio: 1332 / 2748;
  transform: translateX(-50%);
}

.iphone-screen {
  position: absolute;
  left: 4.72973%;
  top: 2.29258%;
  width: 90.54054%;
  height: 95.41485%;
  overflow: hidden;
  border-radius: 15.4229% / 7.0938%;
  background: #000;
}

.iphone-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.iphone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.app-copy {
  align-self: end;
  margin-bottom: 0.85rem;
  font-family: "Inconsolata", ui-monospace, monospace;
  text-align: left;
  color: var(--ink);
}

.app-copy h2 {
  margin: 0 0 0.65rem;
  font-family: inherit;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
}

.app-copy p {
  margin: 0;
  line-height: 1.45;
}

.store-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.1rem;
}

.store-badges img {
  display: block;
  height: 40px;
  width: auto;
}

.store-badges .play-badge {
  height: 58px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  background: #fc9e26;
  color: #fff;
  padding: 1.75rem 2.5rem 2rem;
  font-family: "Inconsolata", ui-monospace, monospace;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.footer-logo {
  display: block;
  width: min(220px, 80%);
  height: auto;
  filter: brightness(0) invert(1);
}

.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.85rem;
}

.socials img {
  display: block;
  width: 26px;
  height: 26px;
}

.footer-links {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 4.5rem;
  width: 100%;
}

.footer-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.footer-col h2 {
  margin: 0 0 0.2rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.footer-col a {
  color: #fff;
  font-size: 0.875rem;
  text-decoration: none;
}

.legal-header {
  display: grid;
  align-items: center;
}

.legal-header a,
.legal-header h1 {
  grid-area: 1 / 1;
}

.legal-header a {
  justify-self: start;
}

.legal-header h1 {
  justify-self: center;
  margin: 0;
  font-family: "Inconsolata", ui-monospace, monospace;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.home {
  display: flex;
  align-items: center;
  justify-content: center;
}

.home main {
  gap: 0;
  padding: 2.5rem 1.5rem;
}

.home-logo {
  display: block;
  width: min(300px, 68vw);
  height: auto;
}

.home-rule {
  width: 75vw;
  margin: 1.65rem 0 1.9rem;
  border: 0;
  border-top: 2px solid var(--line);
}

.app-launch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.05rem;
  color: #002648;
  text-decoration: none;
}

.app-launch-icon {
  display: block;
  width: 134px;
  height: 134px;
  background: transparent;
}

.app-launch-label {
  font-family: "Noto Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}

.app-launch:hover,
.app-launch:focus-visible {
  background: transparent;
}

.app-launch:focus-visible {
  outline: 2px solid #009aa8;
  outline-offset: 8px;
  border-radius: 12px;
}

@media (max-width: 1100px) {
  .section-rule {
    width: min(100%, calc(var(--shot-w) * 1.9 * 1.18));
  }

  .hero-row {
    grid-template-columns: auto;
    justify-content: center;
  }

  .app-copy {
    grid-row: 3;
    margin-top: 1.5rem;
  }
}

@media (max-width: 800px) {
  .highlights {
    grid-template-columns: 1fr;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.5rem;
  }

  :root {
    --screen-h: min(58vh, 480px);
    --bezel: 10px;
  }

  .phone {
    border-radius: 28px;
  }

  .phone-screen {
    border-radius: 20px;
  }
}
