:root {
  --ink: #0f1f3d;
  --navy: #12284c;
  --text: #34445e;
  --muted: #4a5a73;
  --line: #dbe4f0;
  --bg: #fff;
  --tint: #f3f7fc;
  --accent: #2b5bd7;
  --accent-soft: #e6eeff;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-badge: 6px;
  --cta-width: 16rem;
  --shadow: 0 1px 2px rgb(15 31 61 / 6%), 0 8px 24px rgb(15 31 61 / 7%);
  --font:
    system-ui, -apple-system, "Segoe UI", roboto, "Helvetica Neue", arial,
    sans-serif;
  --header-h: 4rem;
  --sidebar-w: 15rem;
  --navy-hover: #1b3866;
}

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

html {
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

a {
  color: var(--accent);
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: min(100% - 2.5rem, 70rem);
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 2.5rem, 46rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 94%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
}

/* The supplied SVG has transparent padding around the logo; offset it with
   layout margins so the visible logo aligns with the page edge and the
   header height is unchanged. */
.brand-logo {
  --logo-h: 4.5rem;

  display: block;
  width: auto;
  height: var(--logo-h);
  margin-block: calc((var(--header-h) - var(--logo-h)) / 2);
  margin-left: calc(var(--logo-h) * -0.592);
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  cursor: pointer;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

.menu-toggle-bars {
  position: relative;
}

.menu-toggle-bars::before,
.menu-toggle-bars::after {
  position: absolute;
  left: 0;
  content: "";
}

.menu-toggle-bars::before {
  top: -6px;
}

.menu-toggle-bars::after {
  top: 6px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-lang,
.nav-cta {
  display: none;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Compact EN | DE language switch */
.lang-switch {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
}

.lang-link,
.lang-current {
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-badge);
}

.lang-current {
  color: var(--ink);
  background: var(--tint);
}

.lang-link {
  color: var(--muted);
  text-decoration: none;
}

.lang-link:hover {
  color: var(--ink);
  background: var(--tint);
}

.lang-sep {
  color: #b9c8dc;
}

.status-badge {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: var(--radius-badge);
}

.status-glyph {
  flex: none;
  width: auto;
  height: 1rem;
}

.status-badge-lg {
  justify-content: center;
  min-height: 3rem;
  padding: 0.6rem 1.25rem;
  font-size: 1rem;
}

.status-badge-block {
  display: flex;
  justify-content: center;
  width: 100%;
  border-radius: var(--radius-badge);
}

.status-badge-dark {
  border-color: rgb(255 255 255 / 40%);
}

.status-badge:hover {
  background: var(--navy-hover);
}

.status-badge-dark:hover {
  background: rgb(255 255 255 / 14%);
}

.status-badge-dark:focus-visible {
  outline-color: #fff;
}

:lang(de) .header-actions .status-badge {
  white-space: nowrap;
}

/* Mobile navigation (progressively enhanced by JS) */
@media (width < 56rem) {
  .header-actions {
    display: none;
  }

  .nav-lang,
  .nav-cta {
    display: block;
    padding: 0.5rem 0.9rem;
  }

  .nav-lang {
    padding-inline: 0.4rem;
  }

  .js .menu-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    padding: 0.5rem 1.25rem 1rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .js .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  html:not(.js) .header-inner {
    flex-wrap: wrap;
    padding-block: 0.5rem;
  }

  html:not(.js) .nav-list {
    flex-flow: row wrap;
  }
}

/* From tablet up the header actions are shown inline instead of the menu */
@media (width >= 56rem) {
  .site-nav {
    display: none;
  }
}

/* Site layout with sidebar navigation (Home / Privacy / Terms + sections) */
.site-sidebar {
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.side-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.65rem 0.9rem;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.side-toggle::after {
  width: 0.55rem;
  height: 0.55rem;
  margin-left: 0.75rem;
  content: "";
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-20%) rotate(45deg);
}

.side-toggle[aria-expanded="true"]::after {
  transform: translateY(20%) rotate(-135deg);
}

.side-nav {
  padding-top: 0.5rem;
}

.side-list,
.side-sub {
  display: grid;
  gap: 0.25rem;
}

.side-link {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.side-link:hover {
  background: var(--tint);
}

.side-link[aria-current="page"] {
  font-weight: 700;
  color: var(--navy);
  background: var(--accent-soft);
}

.side-sub {
  gap: 0.125rem;
  padding-left: 0.75rem;
  margin: 0.25rem 0 0.75rem 0.75rem;
  border-left: 1px solid var(--line);
}

.side-sublink {
  display: block;
  padding: 0.3rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-badge);
}

.side-sublink:hover {
  color: var(--ink);
  background: var(--tint);
}

/* Below desktop the sidebar is a compact, collapsible panel above the page */
@media (width < 64rem) {
  .js .side-toggle {
    display: flex;
  }

  .js .side-nav {
    display: none;
  }

  .js .side-nav.is-open {
    display: block;
  }
}

@media (width >= 64rem) {
  .site-layout {
    display: grid;
    grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  }

  .site-sidebar {
    padding: 0;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .side-nav {
    position: sticky;
    top: calc(var(--header-h) + 1px);
    max-height: calc(100vh - var(--header-h) - 1px);
    padding: 1.5rem 1rem 2rem;
    overflow-y: auto;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
}

.btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: #b9c8dc;
}

.btn-secondary:hover {
  background: var(--tint);
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
  background: linear-gradient(180deg, #eef4fc 0%, #fff 100%);
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

/* Reusable Shopify badge (pale green, uppercase) */
.badge-shopify {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.3rem 0.85rem 0.3rem 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: #3f7a2b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #eef7e9;
  border: 1px solid #cfe5c2;
  border-radius: 999px;
}

.badge-shopify-glyph {
  flex: none;
  width: auto;
  height: 1.15rem;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: -0.03em;
}

.lead {
  max-width: 36rem;
  margin-top: 1.25rem;
  font-size: 1.15rem;
  color: var(--text);
}

.hero-copy {
  container: hero-copy / inline-size;
}

.cta-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* Equal-width CTA controls sized from the space the hero copy actually has:
   full width stacked on small screens, stacked at --cta-width when narrow,
   side by side when there is room for two. */
@container hero-copy (min-width: 24rem) {
  .cta-row {
    grid-template-columns: minmax(0, var(--cta-width));
  }
}

@container hero-copy (min-width: 33rem) {
  .cta-row {
    grid-template-columns: repeat(2, minmax(0, var(--cta-width)));
  }
}

/* German status text is longer. Size the German CTA pair from its content
   (equal widths, one line, no font-size change) instead of the shared token:
   side by side when the hero copy is wide enough, otherwise stacked. */
@container hero-copy (min-width: 24rem) {
  :lang(de) .cta-row {
    grid-template-columns: 1fr;
    width: max-content;
  }

  :lang(de) .cta-row .status-badge-lg {
    white-space: nowrap;
  }
}

@container hero-copy (min-width: 35rem) {
  :lang(de) .cta-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trust-line {
  margin-top: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

@media (width >= 64rem) {
  .hero {
    padding: 4rem 0 4.5rem;
  }
}

/* Two-column hero once the content column (viewport minus sidebar) is wide */
@media (width >= 80rem) {
  .hero-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 3.5rem;
  }
}

/* Product preview */
.app {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.app-shot {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Sections */
.section {
  padding: 3rem 0;
}

.section-tint {
  background: var(--tint);
}

.section-head {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.section-head-center {
  margin-inline: auto;
  text-align: center;
}

.section-head h2,
.final-cta h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

.section-head p {
  margin-top: 1rem;
  font-size: 1.1rem;
}

@media (width >= 64rem) {
  .section {
    padding: 4.5rem 0;
  }
}

/* Cards */
.card-grid,
.trust-grid {
  display: grid;
  gap: 1.25rem;
}

.card,
.trust-item {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(15 31 61 / 4%);
}

.card {
  display: flex;
  flex-direction: column;
}

.card h3,
.trust-item h3 {
  margin-top: 1rem;
  font-size: 1.2rem;
}

.card p,
.trust-item p {
  margin-top: 0.5rem;
  font-size: 1rem;
}

/* Let the description take the free space so badges align at the bottom. */
.card-text {
  flex: 1;
}

.card-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 12px;
  place-items: center;
}

.card-icon img {
  width: auto;
  height: 1.5rem;
}

.pill {
  display: inline-block;
  padding: 0.15rem 0.7rem;
  margin-top: 0.9rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--accent-soft);
  border-radius: var(--radius-badge);
}

.card .pill {
  align-self: flex-start;
  margin-top: 0.9rem;
}

.text-link {
  font-weight: 600;
}

@media (width >= 40rem) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width >= 64rem) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (width >= 80rem) {
  .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (width >= 48rem) and (width < 64rem) {
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Steps */
.steps {
  display: grid;
  gap: 2rem;
}

.step {
  position: relative;
  text-align: center;
}

.step-number {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  margin-inline: auto;
  font-weight: 700;
  color: #fff;
  background: var(--navy);
  border-radius: 50%;
  box-shadow: 0 0 0 5px var(--accent-soft);
  place-items: center;
}

/* Connector between steps: vertical when stacked */
.step:not(:last-child)::after {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  width: 2px;
  height: 1rem;
  content: "";
  background: linear-gradient(var(--accent), #c3d4f5);
  transform: translateX(-50%);
}

.step h3 {
  margin-top: 1.25rem;
  font-size: 1.2rem;
}

.step p {
  margin-top: 0.5rem;
}

@media (width >= 48rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }

  /* Horizontal connector from this circle to the next one */
  .step:not(:last-child)::after {
    top: 1.3rem;
    right: calc(-0.625rem - 50%);
    left: calc(50% + 1.875rem);
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), #c3d4f5);
    transform: none;
  }
}

/* Pricing */
.pricing-grid {
  display: grid;
  gap: 1.5rem;
  max-width: 52rem;
  margin-inline: auto;
}

.plan {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.plan h3 {
  font-size: 1.4rem;
}

.plan-price {
  margin-top: 0.5rem;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.plan-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.plan-head .pill {
  margin-top: 0;
}

.plan-text {
  margin-top: 0.75rem;
}

.plan-pro {
  background: linear-gradient(180deg, #f1f6ff 0%, #fff 70%);
  border-color: #9db8f0;
  box-shadow: var(--shadow);
}

.plan-pro .pill {
  color: #fff;
  background: var(--accent);
}

.check-list {
  display: grid;
  flex: 1;
  gap: 0.7rem;
  margin: 1.5rem 0 2rem;
}

.check-list li {
  position: relative;
  padding-left: 1.75rem;
}

.check-list li::before {
  position: absolute;
  top: 0.45em;
  left: 0.15rem;
  width: 0.6rem;
  height: 0.3rem;
  content: "";
  border-bottom: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pricing-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  color: var(--muted);
}

@media (width >= 48rem) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.faq summary {
  position: relative;
  padding: 1.1rem 3rem 1.1rem 1.25rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 1.35rem;
  width: 0.55rem;
  height: 0.55rem;
  content: "";
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}

.faq[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq p {
  padding: 0 1.25rem 1.25rem;
}

/* Final CTA */
.final-cta {
  padding: 3rem 0;
  color: #dbe6f7;
  background: var(--navy);
}

.final-cta h2 {
  color: #fff;
}

.final-cta p {
  margin-top: 1rem;
}

.final-cta a {
  color: #fff;
}

.final-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.final-action {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
}

.final-action p {
  margin-top: 0.5rem;
  font-size: 0.95rem;
}

@media (width >= 56rem) {
  .final-inner {
    grid-template-columns: 1.6fr 1fr;
  }

  .final-action {
    justify-items: end;
    text-align: right;
  }
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
  background: var(--tint);
  border-top: 1px solid var(--line);
}

.footer-main {
  display: grid;
  gap: 1.5rem;
}

.footer-about {
  display: grid;
  gap: 0.5rem;
}

.footer-logo {
  --logo-h: 4.5rem;

  display: block;
  width: auto;
  height: var(--logo-h);
  margin-block: -1.25rem -1rem;
  margin-left: calc(var(--logo-h) * -0.592);
}

.copyright {
  padding-top: 1.25rem;
  margin-top: 2rem;
  font-size: 0.875rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer-links a {
  font-weight: 500;
  color: var(--ink);
}

@media (width >= 48rem) {
  .footer-main {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
}

/* Legal pages (e.g. privacy) */
.legal-hero {
  padding: 2.5rem 0 2.25rem;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.legal-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal-hero h1 {
  margin-top: 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.03em;
}

.legal-updated {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.legal-hero .lead {
  max-width: none;
}

.legal-body {
  padding: 2.5rem 0 4rem;
}

.legal-content {
  line-height: 1.75;
}

.legal-content h2 {
  padding-top: 2rem;
  margin-top: 2.75rem;
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  border-top: 1px solid var(--line);
}

.legal-content h2:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.legal-content p {
  margin-top: 1rem;
}

.legal-content h2 + p {
  margin-top: 0.9rem;
}

.legal-content ul {
  padding-left: 1.4rem;
  margin-top: 1rem;
  list-style: disc;
}

.legal-content li {
  padding-left: 0.25rem;
  margin-top: 0.5rem;
}

.legal-content li::marker {
  color: var(--accent);
}

.legal-content strong {
  color: var(--ink);
}

@media (width >= 64rem) {
  .legal-hero {
    padding: 3.5rem 0 3rem;
  }

  .legal-body {
    padding: 3.5rem 0 5rem;
  }
}
