/* RESET */

/* https://github.com/hankchizljaw/modern-css-reset */

/* Box sizing rules */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remove default padding */

ul[class],
ol[class] {
  padding: 0;
}

/* Remove default margin */

body,
h1,
h2,
h3,
h4,
p,
ul[class],
ol[class],
li,
figure,
figcaption,
blockquote,
dl,
dd {
  margin: 0;
}

/* Set core body defaults */

body {
  /* min-height: 100vh; */
  scroll-behavior: smooth;
  /* text-rendering: optimizeSpeed; */
  line-height: 1.5;
}

/* Remove list styles on ul, ol elements with a class attribute */

ul[class],
ol[class] {
  list-style: none;
}

/* A elements that don't have a class get default styles */

a {
  color: inherit;
  cursor: pointer;
}

a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Make images easier to work with */

img {
  max-width: 100%;
  display: block;
}

/* Natural flow and rhythm in articles by default */

article > * + * {
  margin-top: 1em;
}

/* Inherit fonts for inputs and buttons */

input,
button,
textarea,
select {
  font: inherit;
}

/* Remove all animations and transitions for people that prefer not to see them */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* https://css-tricks.com/the-hidden-attribute-is-visibly-weak/ */

[hidden] {
  display: none !important;
}

script,
style {
  display: none !important;
}

/* hi—op— */

/* Font */

html {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", "Roboto",
    "Helvetica", "Arial", sans-serif;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2em;
}

h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2em;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  opacity: 0.8;
}

/* Variables, Colors & Dark Mode */

:root {
  --body-width: 860px;
  --body-width-margin: 1rem;
  --section-margin: 8rem;
  --media-xs: 200px;
  --media-s: 240px;
  --media-m: 360px;
  --media-l: 420px;
  --media-hero: 400px;
  --media-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),
    0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07),
    0 16px 32px rgba(0, 0, 0, 0.07);
  --media-radius: 6px;
  --img-filter: contrast(0) brightness(0);
  --site-bg: rgb(255, 255, 255);
  --site-fg: rgb(5, 5, 5);
  --header-bg: rgba(255, 255, 255, 0.8);
  --header-fg: rgb(5, 5, 5);
  --footer-bg: rgba(0, 0, 0, 0.05);
  --footer-fg: rgb(5, 5, 5);
  --white: rgb(255, 255, 255);
  --blue: rgb(36, 134, 255);
  --green: rgb(47, 177, 47);
}

@media (prefers-color-scheme: dark) {
  :root {
    --media-shadow: 0 1px 2px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.07),
      0 4px 8px rgba(0, 0, 0, 0.07), 0 8px 16px rgba(0, 0, 0, 0.07);
    --img-filter: contrast(0) brightness(2);
    /* #1e1f21 */
    --site-bg: rgb(30, 31, 33);
    --site-fg: rgb(250, 250, 250);
    --header-bg: rgba(30, 31, 33, 0.8);
    --header-fg: rgb(250, 250, 250);
    --footer-bg: rgba(255, 255, 255, 0.05);
    --footer-fg: rgb(250, 250, 250);
  }
  .ph-embed {
    content: url("https://api.producthunt.com/widgets/embed-image/v1/top-post-badge.svg?post_id=157214&theme=dark&period=daily");
  }
  body {
    -webkit-font-smoothing: antialiased;
  }
}

html {
  /* Header Overscroll (on Chrome) */
  background-color: var(--site-bg);
  color: var(--site-fg);
}

body {
  background-color: var(--site-bg);
}

/* Structure */

body {
  display: grid;
  grid-gap: var(--section-margin);
}

body > * {
  padding: 0 env(safe-area-inset-right) 0 env(safe-area-inset-left);
  display: flex;
  justify-content: center;
}

body > * > * {
  flex: auto;
  max-width: var(--body-width);
  margin: 0 var(--body-width-margin);
}

header {
  background: var(--header-bg);
  color: var(--header-fg);
  /* Filter needs transparent background color, does not work with opacity */
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

header > * {
  display: grid;
  grid-auto-flow: column;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
}

footer > * {
  display: grid;
  grid-auto-flow: column;
  grid-gap: 1rem;
  justify-content: space-between;
  justify-items: center;
  align-items: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Layout */

.stack {
  display: grid;
  grid-gap: 4em;
  justify-content: space-between;
  justify-items: center;
  align-items: center;
}

.stack--mt {
  grid-template-areas: "media text";
  justify-content: start;
}

.stack--tm {
  grid-template-areas: "text media";
}

.stack-media {
  display: grid;
  grid-area: media;
}

.stack-text {
  grid-area: text;
  justify-self: start;
  display: grid;
  grid-gap: 1em;
}

.media-xs > * {
  width: var(--media-xs);
  max-width: var(--media-xs);
}

.media-s > * {
  width: var(--media-s);
  max-width: var(--media-s);
}

.media-m > * {
  width: var(--media-m);
  max-width: var(--media-m);
}

.media-l > * {
  width: var(--media-l);
  max-width: var(--media-l);
}

.media-hero > * {
  width: var(--media-hero);
  max-width: var(--media-hero);
}

/* Responsive */

@media (max-width: 900px) {
  :root {
    --body-width: 700px;
    --section-margin: 6rem;
    --media-xs: 200px;
    --media-s: 240px;
    --media-m: 320px;
    --media-l: 360px;
    --media-hero: 360px;
  }
}

@media (max-width: 740px) {
  :root {
    --body-width: 540px;
    --media-m: 360px;
    /* Full width on iPhone X */
  }
  .stack {
    max-width: var(--media-m);
    grid-gap: 2em;
    grid-template-areas: "media" "text";
    justify-content: stretch;
  }
  .stack-media > * {
    width: 100%;
  }
  /* .swish-logotype {
    display: none;
  } */
}

@media (max-width: 580px) {
  footer > * {
    grid-auto-flow: row;
    justify-content: center;
  }
}

@media (max-width: 340px) {
  html {
    font-size: 13px;
  }
}

@media (min-height: 620px) {
  header {
    top: 0;
    z-index: 1000;
    position: sticky;
  }
}

/* Blocks */

.intro {
  display: grid;
  grid-gap: 2em;
}

.intro-text {
  display: grid;
  grid-gap: 1em;
}

.intro-buttons {
  display: grid;
  grid-gap: 0.5em;
  justify-items: start;
}

.message {
  display: grid;
  grid-gap: 0.5em;
}

.message-left {
  justify-items: left;
}

.message-right {
  justify-items: right;
}

.testimonial {
  display: grid;
  grid-gap: 1em;
}

.testimonial h2,
.testimonial h4 {
  text-align: center;
}

.customers {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
}

.customers > * {
  margin: 0.5em 0.5em;
}

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

.reviews > * {
  margin: 0.5em 2em;
}

.action {
  display: grid;
  grid-gap: 1.5em;
}

.action h2 {
  text-align: center;
}

.youtube {
  display: grid;
  grid-gap: 1em;
  grid-auto-flow: column;
}

@media (max-width: 600px) {
  .youtube {
    grid-auto-flow: row;
  }
}

.youtube-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.youtube-container iframe,
.youtube-container object,
.youtube-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.faq {
  display: grid;
  grid-gap: 1.5em;
}

.faq > div {
  display: grid;
  grid-gap: 0.5em;
}

.footer-links {
  display: grid;
  grid-gap: 0.8em;
  grid-auto-flow: column;
}

.legal {
  display: grid;
  grid-gap: 1.5em;
}

.legal > * {
  display: grid;
  grid-gap: 0.5em;
}

/* Elements */

.pointer {
  cursor: pointer;
}

.media-element {
  box-shadow: var(--media-shadow);
  border-radius: var(--media-radius);
}

.hiop-logo {
  height: 1.5rem;
}

.hiop-logo > circle {
  stroke: var(--header-fg);
  fill: none;
}

.hiop-logo > path,
.hiop-logo > rect {
  fill: var(--header-fg);
}

.swish-logo {
  height: 2rem;
  fill: var(--header-fg);
}

.swish-logotype {
  height: 1.5rem;
  fill: var(--header-fg);
  margin: 0.5rem 0;
}


.text-button-header {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.0rem;
  text-decoration: none;
  border-radius: 1em;
  padding: 0.2em 0.8em;
  padding-left: 0em;
  color: var(--white);
  background-color: var(--blue);
  transition: all 200ms;
}

.text-button-header:hover {
  padding-left: 1.2em;
}

.text-button-header-text {
  margin-left: -0.8em;
}

.text-button-header .text-button-icon {
  color: var(--white);
  transform: translateX(0em);
  opacity: 0;
  transition: all 200ms;

}

.text-button-header:hover .text-button-icon {
  color: var(--white);
  transform: translateX(-0.6em);
  opacity: 1
}

.text-button {
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  font-size: 1.5rem;
  text-decoration: none;
  border-radius: 1em;
  padding-right: 0.6em;
}

.text-button-text {
  color: var(--blue);
}

.text-button:hover {
  color: var(--white);
  background-color: var(--blue);
}

.text-button-icon {
  width: 1.6em;
  transition: transform 200ms;
}

.text-button:hover .text-button-icon {
  color: var(--white);
  transform: translateX(0.4em);
}

.text-button:hover .text-button-text {
  color: var(--white);
}

.mute-overlay-container {
  position: relative;
}

.mute-overlay {
  position: absolute;
  height: 30px;
  width: 30px;
  bottom: 5px;
  right: 5px;
  opacity: 0;
  transition: opacity 200ms;
}

.mute-overlay-container:hover .mute-overlay {
  opacity: 1;
}

.message-bubble {
  z-index: 1;
  font-size: 14px;
  width: auto;
  color: var(--white);
  background-color: var(--blue);
  padding: 0.5em;
  padding-left: 1em;
  padding-right: 1em;
  line-height: 1em;
  border-radius: 1em;
}

.message-bubble-blue {
  background-color: var(--blue);
}

.message-bubble-green {
  background-color: var(--green);
}

.customer-bubble {
  display: grid;
  grid-gap: 0.5em;
  justify-items: end;
  width: 140px;
}

.customer-bubble > div {
  font-size: 0.9rem;
  color: var(--white);
  padding: 0.5em 1em;
  line-height: 1.2em;
  background-color: var(--blue);
  border-radius: 1em;
  box-shadow: var(--media-shadow);
}

.customer-bubble > p {
  font-size: 0.8rem;
}

.customer-bubble > p::before {
  content: "— ";
}

.review > img {
  max-height: 2em;
  opacity: 0.7;
  filter: var(--img-filter);
  transition: opacity 200ms;
}

.review > img:hover {
  opacity: 1;
}

/* Setapp */

section.setapp {
  background-color: #3a3844;
  color: var(--white);
  padding: 2rem 0rem;
}

.setapp * {
  font-family: Avenir Next, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell,
    Fira Sans, Droid Sans, sans-serif;
}

.setapp-stack {
  grid-gap: 1.5em;
}

.setapp-logo {
  /* max-height: 2.5em; */
  display: grid;
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
  grid-gap: 12px;
}

.setapp-text {
  display: grid;
  grid-gap: 0.5em;
}

.setapp-text > * {
  font-size: 1.2rem;
  font-weight: 500;
}

.setapp-logo-icon {
  fill: #e6c3a5;
}

.setapp-logo-text {
  fill: white;
}

.setapp-button {
  padding: 0.5rem 2rem;
  color: black;
  background-color: white;
  border-radius: 4px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}
