@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@600;700;800&display=swap");

:root {
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-heading: "Playfair Display", Georgia, serif;

  --color-text: #151515;
  --color-soft: #2b2b2b;
  --color-muted: #666;
  --color-accent: #f26363;
  --color-accent-dark: #dd4f4f;
  --color-panel: #f2f2f2;

  --page-width: 1180px;
  --header-height: 76px;
}

/* =========================================================
   Base
   ========================================================= */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: -0.01em;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration: none;
}

p {
  margin: 0 0 1.15rem;
  color: var(--color-soft);
  font-size: 1rem;
  line-height: 1.72;
}

ul {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

li {
  margin-bottom: 0.4rem;
  color: var(--color-soft);
  font-size: 1rem;
  line-height: 1.65;
}

h1,
h2,
h3 {
  margin: 0 0 1rem;
  color: #0f0f0f;
  font-family: var(--font-heading);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  font-weight: 700;
}

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

strong,
b {
  font-weight: 800;
}

/* =========================================================
   Header / navigation
   ========================================================= */

.site-header,
#headers {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-scrolled,
#headers.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.site-header-inner {
  max-width: var(--page-width);
  height: var(--header-height);
  margin: 0 auto;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo img,
#logopanel img {
  width: 200px;
  height: auto;
}

.topmenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.topmenu li {
  display: inline-block;
  margin: 0;
}

.topmenu a {
  display: inline-block;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: none;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.topmenu a:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

.site-header.is-scrolled,
#headers.is-scrolled {
  background: rgba(8, 8, 8, 0.82);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(14px);
}

.site-header.is-scrolled .topmenu a,
#headers.is-scrolled .topmenu a {
  background: var(--color-accent);
  color: #fff;
  box-shadow: 0 10px 24px rgba(242, 99, 99, 0.25);
}

.site-header.is-scrolled .topmenu a:hover,
#headers.is-scrolled .topmenu a:hover {
  background: var(--color-accent-dark);
  color: #fff;
  box-shadow: 0 14px 30px rgba(242, 99, 99, 0.34);
}

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

.stage,
.site-main {
  width: 100%;
}

.page-layout,
.cols {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 38px;
}

.page-content,
.col-wmn {
  width: 100%;
}

.contentwrapper {
  margin: 0 0 6.5rem;
  padding: 0;
}

.contentwrapper::after,
.cols::after {
  content: "";
  display: table;
  clear: both;
}

.lead {
  max-width: 860px;
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  line-height: 1.55;
  color: #181818;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* =========================================================
   Hero
   ========================================================= */

.hero-index {}

.citatindex {
  min-height: 100vh;
  margin: 0 0 6rem;
  padding: var(--header-height) 1.5rem 0;

  background:
    linear-gradient(rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.55)),
    url("/images/imagedesk/screensshots/bg18.jpg") center center / cover no-repeat;

  color: #fff;
  text-align: center;

  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  width: 100%;
  margin: 0 auto;
  transform: translateY(-2vh);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 100px;
}

.hero-content h1,
.citatindex h1 {
  max-width: 760px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.8vw, 5.4rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.38);
}

.try-button {
  margin: 2.4rem 0 0;
  display: flex;
  justify-content: center;
}

.try-button a,
.button,
.button-primary {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(242, 99, 99, 0.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.try-button a:hover,
.button:hover,
.button-primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(242, 99, 99, 0.34);
}

/* =========================================================
   Cards / grids
   ========================================================= */

.split-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3.2rem;
}

.feature-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.2rem 2.6rem;
  margin-top: 2.7rem;
}

.contact-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.content-card,
.feature-card,
.contact-card {
  min-width: 0;
}

.content-card h1 {
  margin-bottom: 1.3rem;
}

.feature-card h2,
.contact-card h2 {
  margin-bottom: 0.55rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.feature-card p,
.contact-card p {
  color: var(--color-muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.section-link {
  margin-top: 2.2rem;
  font-weight: 700;
}

/* Backwards-compatible old boxes */

.box-2col {
  width: calc(50% - 24px);
  float: left;
  margin-right: 48px;
}

.box-2col:nth-of-type(2n) {
  margin-right: 0;
}

.box {
  min-width: 0;
}

/* =========================================================
   Images / media panels
   ========================================================= */

.media-panel,
.functionsbox.images {
  margin: 5.5rem 0 5rem;
  background: var(--color-panel);
  border-radius: 22px;
  overflow: hidden;
}

.media-panel img,
.functionsbox.images img {
  margin: 0 auto;
}

.agency-image {
  margin-top: 4rem;
}

/* =========================================================
   Sections
   ========================================================= */

.section-intro {
  max-width: 930px;
}

.section-functions {
  margin-top: 4rem;
}

.section-own-domain {
  margin-top: 5rem;
}

.section-agency {
  margin-top: 5rem;
}

.section-contact {
  margin-top: 5rem;
  margin-bottom: 7rem;
}

.company-note {
  max-width: 850px;
  margin-top: 2.8rem;
  color: var(--color-muted);
  font-size: 0.9rem;
}

/* =========================================================
   Generic document/news pages
   ========================================================= */

.document-main {
  padding-top: calc(var(--header-height) + 3rem);
}

.document-layout {
  max-width: 980px;
}

.document-article {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.document-article img {
  margin: 2rem auto;
}

.document-article h1 {
  margin-bottom: 1.5rem;
}

.document-article h2 {
  margin-top: 2.4rem;
}

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

.site-footer,
.footers {
  margin-top: 4rem;
  background: #fff;
}

.site-footer-inner,
.footers-stage {
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 3rem 38px;
}

.footer {
  min-height: 1px;
}

/* =========================================================
   Legacy cleanup / compatibility
   ========================================================= */

.two-col::after,
.functionsbox::after {
  content: "";
  display: table;
  clear: both;
}

table {
  border-collapse: collapse;
}

td {
  vertical-align: top;
}

br + br {
  line-height: 1;
}

/* =========================================================
   Trial page
   ========================================================= */

.trial-main {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 4rem);
  background:
    linear-gradient(rgba(255,255,255,0.92), rgba(255,255,255,0.98)),
    url("/images/imagedesk/screensshots/bg18.jpg") center center / cover fixed no-repeat;
}

.trial-hero {
  max-width: var(--page-width);
  margin: 0 auto 3rem;
  padding: 0 38px;
}

.trial-hero-content {
  max-width: 760px;
}

.trial-hero h1 {
  margin-bottom: 1rem;
}

.trial-hero p {
  max-width: 640px;
  font-size: 1.15rem;
  color: var(--color-soft);
}

.trial-wrapper {
  max-width: 920px;
  margin: 0 auto 6rem;
}

.trial-card {
  padding: clamp(2rem, 5vw, 4rem);
  background: rgba(255, 255, 255, 0.94);
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px);
}

.trial-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.trial-card-header h1 {
  margin-bottom: 0.5rem;
}

.trial-close {
  flex: 0 0 auto;
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.trial-close:hover {
  background: var(--color-accent);
  color: #fff;
}

.trial-form-section {
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.trial-form-section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.trial-form-section h2 {
  margin-bottom: 1.4rem;
}

.trial-card table {
  width: 100%;
  border-collapse: collapse;
}

.trial-card td {
  padding: 0.45rem 0.8rem 0.45rem 0;
  vertical-align: middle;
}

.trial-card label,
.trial-card td:first-child {
  color: #111;
  font-size: 0.92rem;
  font-weight: 700;
}

.trial-card input[type="text"],
.trial-card input[type="email"],
.trial-card input[type="password"],
.trial-card select,
.trial-card textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  background: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.4;
}

.trial-card input:focus,
.trial-card select:focus,
.trial-card textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px rgba(242, 99, 99, 0.14);
}

.trial-terms {
  min-height: 260px;
  resize: vertical;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #333;
}

.explanation {
  margin-top: 1rem;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  display: none;
}

.trial-accept table,
.trial-captcha table {
  width: auto;
}

.trial-accept td,
.trial-captcha td {
  padding-right: 1rem;
}

.trial-actions {
  margin-top: 2.5rem;
}

.trial-actions input[type="submit"],
.trial-submit,
.slimbutton {
  display: inline-block;
  cursor: pointer;
  border: 0;
  padding: 0.8rem 1.65rem;
  border-radius: 999px;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(242, 99, 99, 0.25);
}

.trial-actions input[type="submit"]:hover,
.trial-submit:hover,
.slimbutton:hover {
  background: var(--color-accent-dark);
}

.form-error,
.error {
  margin: 0 0 2rem;
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: rgba(242, 99, 99, 0.1);
  color: #8c2424;
  font-weight: 600;
}

.trial-note {
  margin-top: 2rem;
}

/* checkbox + label på samma rad */
#trial .aoform td {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  }

/* flytta checkbox först visuellt */
#trial .aoform input[type="checkbox"] {
  order: -1;
  margin: 0;
  }

/* ta bort radbrytningens effekt */
#trial .aoform br {
  display: none;
  }

/* snyggare label */
#trial .aoform-label {
  margin: 0;
  font-weight: 500;
  }
  
/* =========================================================
     Footer modern
     ========================================================= */
  
.light-footer {
       background: #fff;
       border-top: 1px solid #eee;
     }
     
     .light-footer .site-footer-inner {
       padding: 3rem 38px 2rem;
     }
     
     .footer-simple {
       display: flex;
       justify-content: space-between;
       align-items: flex-start;
       gap: 2rem;
     }
     
     .footer-logo {
       width: 100px;
       margin-bottom: 0.8rem;
     }
     
     .footer-text {
       max-width: 260px;
       font-size: 0.9rem;
       color: var(--color-muted);
     }
     
     .footer-right {
       display: flex;
       gap: 1.8rem;
       flex-wrap: wrap;
     }
     
     .footer-right a {
       font-size: 0.9rem;
       font-weight: 600;
       color: var(--color-accent);
     }
     
     .footer-right a:hover {
       color: var(--color-accent-dark);
     }
     
     .footer-bottom {
       margin-top: 2rem;
       font-size: 0.8rem;
       color: #999;
     }

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  :root {
    --header-height: 66px;
  }

  .site-header,
  #headers {
    height: var(--header-height);
  }

  .site-header-inner {
    height: var(--header-height);
    padding: 0 24px;
  }

  .page-layout,
  .cols {
    padding: 0 24px;
  }

  .hero-index,
  .citatindex {
    min-height: 100vh;
    margin-bottom: 4rem;
  }

  .split-grid,
  .feature-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .media-panel,
  .functionsbox.images {
    margin: 3.5rem 0;
  }

  .box-2col {
    width: 100%;
    float: none;
    margin-right: 0;
  }

  .contentwrapper {
    margin-bottom: 4.5rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .footer-simple {
    flex-direction: column;
  }

  .footer-right {
    margin-top: 1rem;
    gap: 1.2rem;
  }

  .light-footer .site-footer-inner {
    padding: 2.5rem 20px 2rem;
  }
}

@media (max-width: 520px) {
  .site-logo img,
  #logopanel img {
    width: 100px;
  }

  .topmenu a {
    padding: 0.5rem 0.9rem;
    font-size: 0.78rem;
  }

  .hero-index,
  .citatindex {
    min-height: 100vh;
  }

  .hero-content {
    transform: translateY(-1vh);
  }

  .page-layout,
  .cols {
    padding: 0 20px;
  }

  .contentwrapper {
    margin-bottom: 3.5rem;
  }

  .lead {
    font-size: 1.05rem;
  }
  
  .trial-card {
    padding: 1.5rem;
    border-radius: 22px;
  }
  
  .trial-hero {
    padding: 0 20px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .site-footer-inner {
    padding: 3rem 20px 2rem;
  }
  
}