@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;300;400;500;600;700&display=swap');

/* ========== Core ========== */

body,
button {
  font-family: 'Inter', sans-serif;
}

.page-background {
  background: linear-gradient(0deg, #e9e7ff 0%, transparent 100%);
  height: 100vh;
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

a {
  color: #7d71f4;
}

/* ========== Utility ========== */

.d-flex {
  display: flex;
}

.gap-4 {
  gap: 16px;
}

.spacer {
  flex-grow: 1 !important;
}

/* ========== Tooltip ========== */

.tooltip {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.tooltip img {
  max-height: 20px;
  opacity: 0.3;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 140px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 7px 12px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  transform: translateX(-65%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 12px;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

/* ========== Footer ========== */

.footer {
  text-align: center;
  margin: 20px 0;
  color: white;
  z-index: 9;
  position: relative;
}

.footer a {
  color: black;
  font-size: 14px;
  opacity: 0.6;
}

/* ========== Content Wrapper ========== */

.content-wrapper {
  display: flex;
  flex-direction: column;
  border: 1px solid #edecf2;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  background: white;
  max-width: 1000px;
  margin: auto;
  padding: 30px 40px 36px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  z-index: 2;
  min-height: 360px;
}

.content-wrapper .content-block {
  flex: 1;
  z-index: 2;
  text-align: center;
}

.content-wrapper .content-block .title {
  font-size: 1.4em;
  font-weight: 500;
  line-height: 1.4;
}

.content-wrapper .content-block p {
  font-size: 0.95em;
  font-weight: 300;
  color: #666;
  line-height: 1.5;
  margin: 10px auto 34px;
  max-width: 90%;
}

/* CTA */

.cta-primary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid #edecf2;
  background: white;
  border-radius: 10px;
  font-weight: 500;
  min-width: 40%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.cta-primary img {
  height: 35px;
  background: white;
  padding: 2px;
  border-radius: 40px;
  border: 1px solid #eae9ed;
  display: flex;
}

.cta-primary .text-wrapper {
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 3px;
}

.cta-primary .text-wrapper .pre-title {
  font-size: 12px;
  font-weight: 400;
  color: #666;
}

.cta-primary .text-wrapper .title {
  font-size: 15px;
  font-weight: 500;
  color: #000;
  display: block;
  min-width: max-content;
}

.button-wrapper {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ========== Misc ========== */

.disclaimer {
  font-size: 13px;
  line-height: 1.4;
  color: #555;
  max-width: 400px;
  margin: 20px auto 0;
  text-align: center;
}

.error-occured {
  background: #fff4f6;
  text-align: center;
  color: #9c0030;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.4;
  padding: 10px 20px;
  border-radius: 14px;
  border: 1px solid #eab8c5;
  margin: 16px;
  width: auto;
}

/* ========== Layout ========== */

.container {
  max-width: 1100px;
  margin: auto;
}

.container .logo {
  display: flex;
  justify-content: center;
  margin: 30px auto;
}

.container .logo img {
  height: 30px;
  margin: auto;
  display: flex;
}

.hero-backdrop-image {
  z-index: 1;
  position: absolute;
  right: 0;
  bottom: 0;
  opacity: 0.4;
  max-height: 600px;
}

/* ========== Stegkomponenter ========== */

.system-wrapper {
  display: flex;
  align-items: center;
  flex-direction: row;
  margin: 0 auto 26px;
  justify-content: center;
}

.system-wrapper .logo-wrapper {
  border: 2px solid #948efb;
  border-radius: 34px;
  padding: 6px;
  position: relative;
}

.system-wrapper .logo-wrapper.inactive {
  border-color: #e6e6ec;
}

.system-wrapper .separator-line {
  display: flex;
  align-items: center;
  position: relative;
  height: 2px;
  width: 50px;
  background-color: #948efb;
}

.system-wrapper .separator-line .node {
  position: absolute;
  right: -4px;
  width: 12px;
  height: 12px;
  background: #948efb;
  border-radius: 50%;
  z-index: 9;
}

.system-wrapper .logo-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  width: 60px;
  background: white;
  border: 1px solid #dedede;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.system-wrapper .logo-wrapper img {
  max-width: 90%;
}

/* ========== Loaders ========== */

.loader-full {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: 100%;
  margin: 40px auto 0;
}

.loader-full .title-label {
  font-size: 1.1em;
  font-weight: 400;
  line-height: 1.4;
  max-width: 80%;
}

.loader-full .byline-label {
  font-size: 0.95em;
  font-weight: 400;
  line-height: 1.4;
  color: #666;
  max-width: 80%;
}

.loader-full .button-loader {
  width: 42px;
  height: 42px;
  margin: 20px auto;
}

.loading-button {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #007533;
  border-radius: 30px;
  color: #007533;
  font-weight: 500;
  font-size: 15px;
  min-width: 270px;
  height: 48px;
  max-width: max-content;
  margin: 0 auto 20px;
  padding: 0;
}

.button-loader {
  width: 22px;
  height: 22px;
  margin-left: 10px;
  border: 3px solid #000;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotate 1s linear infinite;
  transition: all 0.5s ease-in;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.plan-wrapper {
  border: 1px solid #eee;
  max-width: 380px;
  margin: 2em auto;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 9;
  background: white;
  overflow: hidden;
}

.plan-wrapper .plan-content {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.plan-wrapper .plan-header {
  padding: 12px 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.plan-wrapper .plan-header .text-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.plan-wrapper .plan-header .title {
  font-size: 1em;
  font-weight: 500;
  line-height: 1.4;
}

.plan-wrapper .plan-header .byline {
  font-size: 13px;
  font-weight: 300;
  color: #666;
  line-height: 1.4;
  text-align: left;
}

.plan-wrapper .plan-header img {
  width: 46px;
}

.plan-wrapper .plan-header .branding-block {
  display: flex;
  gap: 16px;
}

.plan-wrapper .features {
  padding: 1em;
}

.plan-wrapper .features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.plan-wrapper .features .checkmark {
  background: #f8f8f8;
  color: #444;
  padding: 3px;
  display: inline-flex;
  border-radius: 20px;
}

.plan-wrapper .features .checkmark .check {
  display:inline-block;
  width: 16px;
  height: 16px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="none" stroke="%23008000" stroke-width="3" stroke-linecap="round" stroke-linejoin="round" d="M4 12l5 5L20 6"/></svg>');
  background-repeat:no-repeat;
  background-size:contain;
  filter: grayscale(100%);
}

.plan-wrapper button {
  background-color: #7d71f4;
  width: 100%;
  height: 44px;
  border: none;
  padding: 13px;
  font-weight: 500;
  font-size: 16px;
  color: white;
  border-radius: 10px;
  margin-top: 1em;
  cursor: pointer;
}

.plan-wrapper button .button-loader {
  display: flex;
  justify-self: center;
  border: 3px solid #fff;
  border-right-color: transparent;
  border-bottom-color: transparent;
  width: 15px;
  height: 15px;
}

.plan-wrapper ul {
  padding: 6px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 0.95em;
  line-height: 1.4;
  opacity: 0.7;
  margin: 0;
}

.plan-pricing {
  display: flex;
  flex-direction: column;
  text-align: left;
  padding: 1em 1.5em 1.2em 1.5em;
}

.plan-pricing .pricing-amount-wrapper {
  display: flex;
  align-items: start;
  flex-direction: column;
  gap: 6px;
}

.plan-pricing .pricing-amount-wrapper .separator {
  height: 60px;
  width: 1px;
  background: #dedede;
  display: block;
}

.plan-pricing .pricing-amount {
  font-size: 2em;
  font-weight: 600;
  flex: 1;
  position: relative;
  padding: 4px 0;
  max-width: max-content;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: center;
}

.plan-pricing .pricing-period {
  font-size: 14px;
  padding: 0 6px 10px;
  font-weight: 400;
  opacity: 0.6;
  align-content: flex-end;
}

.button-wrapper.button-wrapper-vertical {
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 0;
}

.button-wrapper.button-wrapper-vertical .tooltiptext {
  left: -200%;
}

.button-wrapper.button-wrapper-vertical .vertical-buttons .cta-primary {
  background-color: #7d71f4;
  min-height: 38px;
  flex: 1;
  justify-content: center;
}

.button-wrapper.button-wrapper-vertical .vertical-buttons .cta-primary .title {
  color: white;
  font-size: 17px;
}

.button-wrapper.button-wrapper-vertical .vertical-buttons {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin: 0;
}

.button-wrapper.button-wrapper-vertical p {
  padding: 0;
  text-align: center;
  margin: 0;
  font-size: 14px;
  opacity: 0.6;
}

.button-wrapper.button-wrapper-vertical h2 {
  margin: 14px 0 4px;
  font-size: 17px;
  font-weight: 500;
  text-align: center;
}

.button-wrapper.button-wrapper-vertical a {
  background-color: white;
  border: 1px solid #dedede;
  padding: 10px;
  text-decoration: none;
}

.button-wrapper.button-wrapper-vertical .text-wrapper {
  flex-direction: column;
  text-align: left;
  gap: 2px;
  align-items: start;
  padding-left: 4px;
}

.cta-primary.cta-outlined {
  background: white !important;
  text-align: left;
  padding: 0 10px !important;
  min-height: 33px !important;
  border-color: #eee !important;
}

.cta-primary.cta-outlined .title {
  font-size: 14px !important;
  font-weight: 400;
  color: #676767 !important;
  display: block;
  min-width: max-content;
}

.button-wrapper.button-wrapper-vertical .separator {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.5;
  text-align: center;
  position: relative;
  padding: 0.1rem 0;
}

.button-wrapper.button-wrapper-vertical .separator:before,
.button-wrapper.button-wrapper-vertical .separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #ddd;
}
.button-wrapper.button-wrapper-vertical .separator::before { left: 0; transform: translateY(-50%); }
.button-wrapper.button-wrapper-vertical .separator::after  { right: 0; transform: translateY(-50%); }


.horizontal-buttons {
  display: flex;
  gap: 16px;
}

.button-wrapper.button-wrapper-vertical .cta-primary img {
  height: 14px !important;
  background: none;
  padding: 0;
  border-radius: 40px;
  border: none;
  display: flex;
  filter: invert(1);
  opacity: 0.4 !important;
}

.horizontal-buttons .cta-primary img {
  display: flex;
  filter: none !important;
  opacity: 0.4 !important;
}

.test-instructions-wrapper {
  border: 1px solid #eee;
  display: flex;
  margin-bottom: 16px;
  background: #fafafa;
  border-radius: 16px;
  padding: 20px 30px;
  gap: 16px;
  text-align: left;
  max-width: 82%;
  margin: 0 auto 1.2em;
}

.test-instructions-wrapper div {
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-instructions-wrapper div h3 {
  font-size: 15px;
  font-weight: 500;
  color: #111;
  margin: 0;
}

.test-instructions-wrapper div p {
  font-size: 14px !important;
  color: #666 !important;
  padding: 0 !important;
  margin: 0 !important;
}

.test-instructions-wrapper ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 14px;
  margin-top: 20px
}

.test-instructions-wrapper ul li {
  color: #111;
}

.test-instructions-wrapper ul span {
  min-width: 130px;
  display: inline-block;
  color: #666;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.loading-card {
  position: relative;
  width: 300px;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.line-loader {
  width: 100%;
  height: 6px;
  background: #e0e0e0;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
}

.line-loader::before {
  content: "";
  position: absolute;
  left: -40%;
  width: 40%;
  height: 100%;
  background: #7d71f4;
  animation: loading 1s infinite;
}

@keyframes loading {
  0% { left: -40%; }
  100% { left: 100%; }
}