/* adapted from mappiness2-jsclient: dist/app.css, dist/ui.css, dist/fonts/jost.css */

@font-face {
  font-family: "Jost*";
  src: url("fonts/Jost-VF.ttf");
  font-weight: 100 900;
  font-style: oblique 0deg 20deg;
  font-display: swap;
}

:root {
  color-scheme: light;
  --max-width: 1040px;
  --text-width: 640px;
  --side-margin: 30px;
  --bubble-radius: 2ex;
  --response-bg: #47f;
  --response-bg-active: #3af;
  --bg: #58e;
  --grey: #a0a0a0;
  --text: #222;
  --muted: #666;
  --rule: #e4e4ea;
  --panel: #f4f4f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 18px/1.45 "Jost*", sans-serif;
  font-feature-settings: "ss01" 1;
  /* "ss01" 1 => rounded lowercase a */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

b, strong {
  font-weight: 600;
}

a {
  color: var(--bg);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.email {
  white-space: nowrap;
}

/* thin bar across the top, as in the app's navigation bar */

.top-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #31FFDE 0, #FFD12F 75%);
  z-index: 100;
}

/* hero, with the home screen's blurred spinning gradients behind it */

@property --gradient-angle {
  syntax: "<angle>";
  initial-value: 90deg;
  inherits: false;
}

@keyframes gradient-spin {
  from { --gradient-angle: 90deg; }
  to { --gradient-angle: 450deg; }
}

.hero {
  position: relative;
  isolation: isolate;
  padding: 64px var(--side-margin) 56px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 420px;
  overflow: hidden;
  z-index: -1;
}

.hero-bg .main-gradient,
.hero-bg .additional-gradient {
  position: absolute;
  filter: blur(60px);
  opacity: .5;
}

.hero-bg .main-gradient {
  top: -40px;
  left: -10%;
  right: -10%;
  height: 200px;
  background: linear-gradient(var(--gradient-angle, 90deg), #31FFDE 0, #FFD12F 70%);
  animation: gradient-spin 47s linear infinite;
}

.hero-bg .additional-gradient {
  top: 60px;
  right: -5%;
  width: 60%;
  height: 160px;
  background: linear-gradient(var(--gradient-angle, 90deg), #58e 0, #f66 90%);
  animation: gradient-spin 37s linear infinite reverse;
}

.hero-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 200px;
  background: linear-gradient(rgba(255, 255, 255, 0), #fff);
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg .main-gradient,
  .hero-bg .additional-gradient {
    animation: none;
  }
}

.lang-switch {
  position: absolute;
  top: 20px;
  right: var(--side-margin);
  font-size: 15px;
  font-weight: 500;
}

.lang-switch a {
  display: inline-block;
  padding: .4ex 1.4ex;
  border-radius: var(--bubble-radius);
  background: rgba(255, 255, 255, .7);
  color: var(--text);
}

.lang-switch a:hover {
  background: #fff;
  text-decoration: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}

.hero-text {
  flex: 1;
}

.logo {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  margin: 0 0 32px -6px;
}

h1 {
  font-size: 46px;
  line-height: 1.05;
  font-weight: 560;
  margin: 0 0 20px;
}

.lead {
  font-size: 21px;
  line-height: 1.4;
  margin: 0 0 32px;
  max-width: 34em;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .12);
}

/* button styled like the app's blue response bubbles */
.button {
  display: inline-block;
  padding: 1.1ex 2.4ex;
  border-radius: var(--bubble-radius);
  background: var(--response-bg);
  color: #fff;
  font-weight: 500;
  letter-spacing: .02em;
  transition: background-color .2s;
}

.button:hover {
  background: var(--response-bg-active);
  text-decoration: none;
}

.cta-note {
  flex-basis: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* device frame around the screenshot */

.device {
  flex: none;
  width: 300px;
  padding: 11px;
  border-radius: 54px;
  background: #1b1b1f;
  box-shadow:
    inset 0 0 0 2px #3a3a40,
    0 0 0 1px #0004,
    0 30px 60px -10px rgba(40, 60, 120, .35),
    0 18px 36px -18px rgba(0, 0, 0, .4);
}

.device img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 43px;
}

/* sections */

main {
  padding: 0 var(--side-margin);
}

section {
  max-width: var(--text-width);
  margin: 0 auto;
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}

h2 {
  font-size: 30px;
  line-height: 1.15;
  font-weight: 560;
  margin: 0 0 20px;
}

/* square marker, as on the app's information sheet */
h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 560;
  margin: 28px 0 10px;
}

h3::before {
  content: '';
  display: inline-block;
  width: 1.1ex;
  height: 1.1ex;
  background: var(--text);
  margin-right: 1.4ex;
  vertical-align: .1ex;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

li {
  margin: 0 0 8px;
}

li::marker {
  color: var(--bg);
}

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 48px;
  margin-bottom: 16px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: .05em;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--response-bg);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  line-height: 32px;
  text-align: center;
}

.callout {
  background: var(--panel);
  border-radius: var(--bubble-radius);
  padding: 18px 22px;
  margin: 20px 0;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* FAQ */

details {
  border-bottom: 1px solid var(--rule);
}

details:first-of-type {
  border-top: 1px solid var(--rule);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 32px 14px 0;
  position: relative;
  font-weight: 500;
}

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

summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--grey);
  border-bottom: 2px solid var(--grey);
  transform: translateY(-75%) rotate(45deg);
  transition: transform .2s;
}

details[open] summary::after {
  transform: translateY(-25%) rotate(-135deg);
}

details > p,
details > ul {
  margin-top: 0;
  padding-bottom: 4px;
}

.people {
  margin: 20px 0;
  padding-left: 2ex;
  border-left: 3px solid #ccc;
}

/* footer */

footer {
  margin-top: 24px;
  padding: 32px var(--side-margin) 48px;
  background: var(--panel);
  color: var(--muted);
  font-size: 15px;
}

footer .inner {
  max-width: var(--text-width);
  margin: 0 auto;
}

footer p {
  margin: 0 0 8px;
}

/* narrow screens */

@media (max-width: 820px) {
  .hero {
    padding-top: 48px;
  }

  .hero-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
  }

  .device {
    align-self: center;
    width: min(270px, 72vw);
    border-radius: 48px;
  }

  .device img {
    border-radius: 38px;
  }

  h1 {
    font-size: 36px;
  }

  .lead {
    font-size: 19px;
  }

  h2 {
    font-size: 26px;
  }
}
