/* Larsen Commerce – V4 "nordisk glass". Light, airy, frosted glass, scroll story. */

:root {
  --bg: #f4f7fb;
  --ink: #0e1726;
  --muted: #58677c;
  --line: rgba(14, 23, 38, 0.1);
  --teal: #0e7490;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --radius: 18px;
  --shadow: 0 18px 50px rgba(14, 23, 38, 0.1);
  --shadow-soft: 0 6px 22px rgba(14, 23, 38, 0.07);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, .price, .wordmark {
  font-family: "Schibsted Grotesk", "Inter", sans-serif;
}

h1 {
  font-size: clamp(2.3rem, 5.6vw, 3.7rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
}

h2 {
  font-size: clamp(1.6rem, 3.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 0.5em;
}

h3 { font-size: 1.13rem; font-weight: 700; margin: 0 0 0.45em; }

p { margin: 0 0 1em; }

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

/* Scroll progress bar */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 70;
  background: linear-gradient(90deg, #0ea5e9, #0e7490, #2dd4bf);
  transition: width 0.08s linear;
}

/* Mesh background */

.mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.mesh-blob {
  position: absolute;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}

.mesh-a { background: #c7e3ff; top: -180px; left: -120px; }
.mesh-b { background: #d4f7ee; top: 240px; right: -180px; }
.mesh-c { background: #e7e3ff; top: 900px; left: 30%; opacity: 0.38; }

/* Reveal animations */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: none; }

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .progress { display: none; }
}

/* Floating pill header */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 0 16px;
}

.pill-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 9px 10px 9px 22px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled .pill-nav { box-shadow: var(--shadow); }

.wordmark {
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.site-nav { display: flex; gap: 20px; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover { color: var(--ink); }

/* Buttons */

.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: "Inter", sans-serif;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-ink:hover {
  background: var(--teal);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(14, 116, 144, 0.3);
}

.btn-glass {
  background: var(--glass-strong);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
  backdrop-filter: blur(8px);
}

.btn-glass:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.btn-small { padding: 9px 20px; font-size: 0.88rem; }

.btn-block { display: block; width: 100%; text-align: center; }

.text-link {
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

/* Hero */

.hero {
  padding: 92px 0 26px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(14, 116, 144, 0.09);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
}

.lead {
  font-size: 1.16rem;
  color: var(--muted);
  max-width: 56ch;
  margin: 0 auto 1em;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

/* Before/after showcase */

.showcase { padding: 56px 0 30px; }

.showcase-hint {
  text-align: center;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 22px;
}

.compare {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  aspect-ratio: 16 / 9.6;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.65);
  touch-action: none;
}

.pane { position: absolute; inset: 0; }

.pane-after {
  clip-path: inset(0 0 0 var(--pos));
}

.pane-label {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(14, 23, 38, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 13px;
  border-radius: 999px;
}

.label-after {
  background: var(--teal);
  left: auto;
  right: 14px;
}

.compare-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2.5px;
  background: #fff;
  box-shadow: 0 0 14px rgba(14, 23, 38, 0.35);
  transform: translateX(-50%);
}

.handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(14, 23, 38, 0.3);
}

.compare input[type="range"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* "Before" mock – deliberately dated */

.pane-before { background: #d6d2c8; }

.old-site {
  position: absolute;
  inset: 0;
  font-family: "Times New Roman", Times, serif;
  color: #222;
  display: flex;
  flex-direction: column;
}

.old-header {
  background: #1a3c8f;
  color: #ffec3d;
  font-size: clamp(0.9rem, 2.4vw, 1.4rem);
  font-weight: 700;
  text-align: center;
  padding: 12px 8px;
  text-shadow: 1px 1px 0 #000;
}

.old-menu {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #c0c0c0;
  border-top: 2px outset #fff;
  border-bottom: 2px inset #888;
  padding: 5px 8px;
  font-size: clamp(0.62rem, 1.6vw, 0.85rem);
}

.old-menu span { color: #00009c; text-decoration: underline; }

.old-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  padding: 14px 16px;
  background: #efede6;
}

.old-text { font-size: clamp(0.66rem, 1.7vw, 0.92rem); margin: 0 0 10px; }

.old-link {
  color: #c00;
  font-weight: 700;
  font-size: clamp(0.66rem, 1.7vw, 0.92rem);
  text-decoration: underline;
  margin: 0;
}

.old-img {
  display: grid;
  place-items: center;
  background: #cfcabb;
  border: 2px inset #999;
  color: #777;
  font-size: clamp(0.6rem, 1.4vw, 0.78rem);
  height: 44%;
  margin-bottom: 8px;
}

.old-footer {
  background: #c0c0c0;
  border-top: 2px outset #fff;
  text-align: center;
  font-size: clamp(0.6rem, 1.5vw, 0.8rem);
  padding: 5px;
  color: #333;
}

/* "After" mock – clean and modern */

.pane-after { background: linear-gradient(165deg, #ffffff 0%, #eef6fa 100%); }

.new-site {
  position: absolute;
  inset: 0;
  padding: clamp(12px, 3vw, 26px) clamp(14px, 3.6vw, 32px);
  display: flex;
  flex-direction: column;
}

.new-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: clamp(14px, 3vw, 26px);
}

.new-logo {
  width: clamp(40px, 6vw, 60px);
  height: clamp(9px, 1.5vw, 13px);
  border-radius: 5px;
  background: var(--ink);
}

.new-link {
  width: clamp(22px, 4vw, 36px);
  height: clamp(6px, 1vw, 9px);
  border-radius: 4px;
  background: rgba(14, 23, 38, 0.14);
}

.new-link:first-of-type { margin-left: auto; }

.new-cta {
  width: clamp(34px, 6vw, 58px);
  height: clamp(14px, 2.4vw, 22px);
  border-radius: 999px;
  background: var(--teal);
}

.new-hero { display: grid; gap: clamp(7px, 1.4vw, 11px); margin-bottom: clamp(14px, 3vw, 26px); }

.new-title {
  width: 58%;
  height: clamp(13px, 2.4vw, 20px);
  border-radius: 6px;
  background: rgba(14, 23, 38, 0.85);
}

.new-text { width: 84%; height: clamp(6px, 1.2vw, 10px); border-radius: 4px; background: rgba(14, 23, 38, 0.12); }
.new-text.short { width: 52%; }

.new-btn {
  width: clamp(78px, 13vw, 120px);
  height: clamp(18px, 3.2vw, 28px);
  border-radius: 999px;
  background: var(--teal);
  margin-top: 4px;
}

.new-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(8px, 1.6vw, 13px);
  margin-top: auto;
}

.new-card {
  height: clamp(34px, 7vw, 62px);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(14, 23, 38, 0.08);
  box-shadow: 0 4px 14px rgba(14, 23, 38, 0.06);
}

/* Trust chips */

.trust-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
}

.trust-chips li {
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
}

.trust-chips li::before { content: "✓ "; color: var(--teal); }

/* Demo note */

.demo-note { padding: 38px 0 0; }

.demo-note p {
  margin: 0;
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow-soft);
  color: var(--muted);
  font-size: 0.98rem;
}

.demo-note strong { color: var(--ink); }

/* Sections */

.section { padding: 84px 0; }

.section-intro {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 42px;
}

/* Glass cards */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.glass-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.glass-card p { color: var(--muted); margin: 0; font-size: 0.97rem; }

.card-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 1.45rem;
  border-radius: 13px;
  margin-bottom: 16px;
  background: rgba(14, 116, 144, 0.1);
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-soft);
}

.step p { color: var(--muted); margin: 0; font-size: 0.93rem; }

.step-dot {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 700;
  margin-bottom: 14px;
}

/* Pricing */

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

.price-card.featured {
  background: var(--glass-strong);
  border: 1.5px solid var(--teal);
  box-shadow: 0 18px 50px rgba(14, 116, 144, 0.16);
}

.badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 999px;
  margin: 0;
  white-space: nowrap;
}

.price {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 2px 0 16px;
}

.price-features {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  flex: 1;
}

.price-features li {
  padding: 7px 0 7px 26px;
  position: relative;
  color: var(--muted);
  font-size: 0.94rem;
  border-bottom: 1px solid var(--line);
}

.price-features li:last-child { border-bottom: 0; }

.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 700;
}

.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  margin: 28px 0 0;
}

/* References */

.reference-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.reference-card p { margin-bottom: 1em; }

.reference-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.reference-header h3 { margin: 0; }

.reference-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-family: "Schibsted Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.reference-mark.accent { background: var(--teal); }

.reference-tag {
  margin: 2px 0 0;
  font-size: 0.84rem;
  color: var(--muted);
}

/* About */

.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  display: grid;
  place-items: center;
  width: 184px;
  height: 184px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: "Schibsted Grotesk", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}

.about-copy p { color: var(--muted); max-width: 58ch; }

/* Contact */

.section-contact { padding-bottom: 100px; }

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 48px;
}

.contact-copy p { color: var(--muted); }

.contact-details {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.contact-details li { display: grid; gap: 2px; }

.contact-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
}

.contact-details a,
.contact-details span:not(.contact-label) {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.02rem;
}

.contact-details a:hover { color: var(--teal); }

.contact-form { display: grid; gap: 15px; }

.contact-form label {
  display: grid;
  gap: 6px;
  font-size: 0.87rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  font-size: 0.96rem;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 0;
  border-color: var(--teal);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
}

/* Responsive */

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-panel { grid-template-columns: 1fr; gap: 38px; padding: 36px 28px; }
}

@media (max-width: 640px) {
  .section { padding: 58px 0; }
  .hero { padding: 64px 0 16px; }

  .site-nav { display: none; }
  .pill-nav { gap: 14px; }

  .card-grid, .steps, .reference-grid { grid-template-columns: 1fr; }

  .compare { aspect-ratio: 4 / 4.4; }

  .about-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about-copy p { text-align: left; }

  .mesh-blob { width: 380px; height: 380px; filter: blur(90px); }
}
