*,
*::before,
*::after {
  box-sizing: border-box;
  font: inherit;
}
:root {
  --teal: #92D0D1;
  --teal-light: #b9ebeb;
  --teal-lightest: #f3ffff;
  --teal-solid: #3db4b6;
}
html {
  height: 100%;
}
body {
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100%;
  margin: 0;
}
h1, .h1, h2, .h2, h3, .h3, h4, .h4 {
  font-family: 'Titillium Web', sans-serif;
  font-weight: 700;
}
h1, .h1 {
  font-size: 2rem;
  line-height: 1.1;
  text-align: center;
  padding: 3rem;
  margin: 0;
}
.hero time {
  font-size: 1.2rem;
  text-align: center;
  display: block;
}
h2, .h2 {
  font-size: 1.5rem;
  line-height: 1.2;
}
h3, .h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}
h4, .h4 {
  font-size: 1.1rem;
  line-height: 1.4;
}
img {
  max-width: 100%;
  height: auto;
}
video {
  max-width: 100%;
  height: auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 3rem 1.5rem;
}
.hero h1 {
  padding: 0;
}
.hero-content {
  font-size: 1.2rem;
  text-align: center;
  max-width: 40rem;
}
.hero--image {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 60vh;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}



/*************/
/* Nav etc */
/* *************/




.topnav {
  padding: .75rem 1.5rem;
  background: #2b2b2b;
  color: #e8e8e8;
  display: grid;
  grid-template: "left center right" /1fr 2fr 1fr;
  place-items: center;
  > :first-child {
    place-self: center start;
  }
  > :last-child {
    place-self: center end;
  }
}
:is(nav, footer) a {
  color: inherit;
}
nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0;
  margin: 0;
}
.topnav > ul:last-child {
  margin-left: auto;
}
nav a {
  text-decoration: none;
}
nav a:hover {
  text-decoration: underline;
}
nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Mobile nav */
.topnav-mobile {
  display: none;
}
@media (max-width: 50rem) {
  .topnav-desktop {
    display: none;
  }
  .topnav-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .nav-mobile-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .nav-toggle {
    background: none;
    border: 1px solid #888;
    border-radius: 0.25rem;
    color: inherit;
    cursor: pointer;
    padding: 0.25rem 0.75rem;
  }
  .nav-toggle:hover {
    border-color: #ccc;
    background: rgba(255, 255, 255, 0.1);
  }
  .nav-toggle:active {
    background: rgba(255, 255, 255, 0.2);
  }
  .nav-toggle-chevron {
    display: inline-block;
    transition: transform 0.2s;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle-chevron {
    transform: rotate(180deg);
  }
  .nav-toggle[aria-expanded="true"] {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.25);
  }
  .nav-mobile-panel {
    width: 100%;
    padding: 1rem 0;
  }
  .nav-mobile-panel ul {
    flex-direction: column;
    gap: 0;
  }
  .nav-mobile-panel a {
    display: block;
    padding: 0.5rem 0;
  }
}
section {
  display: flow-root;
  padding-block: 0;
  padding-inline: 1.5rem;
}
section > section {
  margin-inline: -1.5rem;
}
section > :not(section) {
  display: block;
  width: 100%;
  max-width: 40rem;
  margin-inline: auto;
  padding-inline: 0;
}
section.bg-white { background: #fff; }
section.bg-light-gray { background: #f0f0f0; }
section.bg-gray { background: #e0e0e0; }
section.bg-light { background: #f8f8f8; }
section.card-3d {
  background: linear-gradient(to bottom, #FBFBFD, #F5F5F7);
  border-radius: 1.5rem;
  border-top: 1px solid white;
  border-bottom: 3px solid #E7E7EC;
  box-shadow: 0 5px 8px -5px rgb(0 78 129 / 20%), 0 7px 18px rgb(0 20 27 / 30%);
  margin-block: 3rem;
  max-width: 40rem;
  margin-inline: 1rem;
  padding: 1rem 1rem;
}
@media (min-width: 42rem) {
  section.card-3d { margin-inline: auto; }
}

main img {
  width: 100%;
}
main :is(ul, ol) {
  padding-left: 1.5rem;
  list-style: none;
}
main li::before {
  text-align: center;
  content: "•";
  margin-right: 0.25rem;
  margin-left: -1.75rem;
  display: inline-block;
  width: 1rem;
}
ul.checklist {
  padding-left: 1.5rem;
}
ul.checklist li::before {
  content: "✓";
  color: #2e7d32;
}
section > blockquote {
  font-size: 1.1rem;
  font-style: italic;
  margin-inline: auto;
  padding: .1px 0 .1px 2rem;
  position: relative;
}
blockquote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: .5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--teal);
  font-style: normal;
}
blockquote cite {
  font-style: normal;
  font-size: 1rem;
  margin-top: 0.5rem;
}
blockquote cite::before {
  content: "\2014\00a0";
}



.product-card {
  background: linear-gradient(to bottom, #FBFBFD, #F5F5F7);
  border-radius: 1.5rem;
  border-top: 1px solid white;
  border-bottom: 3px solid #E7E7EC;
  box-shadow: 0 5px 8px -5px rgb(0 78 129 / 20%), 0 7px 18px rgb(0 20 27 / 30%);
  margin-block: 2rem;
  max-width: 40rem;
  margin-inline: auto;
  padding: 1.5rem 2rem;
}
.product-image {
  float: left;
  width: 5rem;
  height: auto;
  margin-right: 1.5rem;
  margin-bottom: 0.5rem;
}
.product-title {
  margin: 0 0 0 6.5rem;
}
.product-meta {
  display: block;
  margin: 0 0 0 6.5rem;
  color: #666;
}

footer {
  background: #2b2b2b;
  color: #e8e8e8;
}
.footer-layout {
  display: grid;
  grid-template:
    "meta pages terms socials"
    "loppukaneetti loppukaneetti loppukaneetti loppukaneetti"
    / auto auto auto 0
  ;
  place-items: stretch;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}
.footer-layout > * {
  display: flex;
  flex-direction: column;
}
.footer-layout h2 {
  margin-top: 0;
}
.footer-layout .meta {
  grid-area: meta;
}
.footer-layout .pages {
  grid-area: pages;
}
.footer-layout .terms {
  grid-area: terms;
}
.footer-layout .socials {
  grid-area: socials;
  display: none;
}
.footer-layout .loppukaneetti {
  grid-area: loppukaneetti;
  text-align: center;
}
.footer-layout ul {
  list-style-type: '';
  padding: 0;
  margin: 0;
}
@media (max-width: 50rem) {
  .footer-layout {
    grid-template:
      "meta"
      "pages"
      "terms"
      "socials"
      "loppukaneetti"
    ;
  }
}





/*************/
/* Components */
/* *************/

hr {
  border: none;
  border-top: 2px solid var(--teal);
  border-radius: 2rem;
  box-shadow: 0rem .5rem 1rem -.5rem var(--teal);
  margin: 0 0;
}

iframe.embedded-form {
  width: 100%;
  height: 80vh;
  min-height: 600px;
  max-height: 1200px;
  border: none;
  border-radius: 0.5rem;
}

details {
  border-bottom: 1px solid #e0e0e0;
}
details summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 1.125rem;
  list-style: none;
  &:hover {
    background: var(--teal-lightest);
  }
  &:active {
    background: var(--teal-light);
  }
}
details summary::marker,
details summary::-webkit-details-marker {
  display: none;
}
details summary::after {
  content: "+";
  color: var(--teal-solid);
  float: right;
  font-size: 1.5rem;
  line-height: 1;
  transition: transform 0.2s;
}
details[open] summary::after {
  content: "\2212";
}
details:not(:has(+ details)) {
  margin-bottom: 2rem;
}
details > :not(summary) {
  padding-bottom: 1rem;
}

i.dot {
  display: inline-block;
  width: 0.75em;
  height: 0.75em;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--teal-light), var(--teal));
  border-top: 1px solid white;
  border-bottom: 1px solid #6ab8b9;
  box-shadow: 0 2px 4px -1px rgb(0 78 129 / 20%);
  vertical-align: baseline;
  font-style: normal;
}

.blog-list-item a {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 1.25rem .5rem;
  border-bottom: 1px solid #e0e0e0;
}
.blog-list-item a:hover {
  background: var(--teal-lightest);
}
.blog-list-item a:active {
  background: var(--teal-light);
}
.blog-list-item:last-child {
  margin-bottom: 2rem;
}
.blog-list-item h2 {
  margin: 0 0 .5rem 0;
  color: var(--teal-dark);
  text-decoration: underline;
}
.blog-list-item time {
  color: #666;
  font-size: 0.875rem;
  white-space: nowrap;
}

/* Guide page */
.guide section > :not(section) {
  max-width: 60rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 1rem;
}
th, td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #d0d0d0;
  text-align: left;
}
th {
  background: #f0f0f0;
  font-weight: 600;
}
tr:nth-child(even) {
  background: #fafafa;
}

a.cta {
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  color: inherit;
  background: transparent;
  border: 2px solid var(--teal);
  border-radius: 2rem;
  box-shadow: 0rem .5rem 1rem -.5rem var(--teal);
  &:hover {
    background: var(--teal-lightest);
  }
  &:active {
    background: var(--teal-light);
  }
}






