/* ============================================================
   Rykkerportalen redesign preview - v2
   Direction: Danish law-firm / financial institution
   Anchored on the existing brand blue #254698
   ============================================================ */

:root {
  /* Surfaces */
  --bg:        #FFFFFF;
  --bg-soft:   #F4F6FB;   /* very pale brand-blue tint for section breaks */
  --surface:   #FFFFFF;

  /* Ink */
  --ink:       #1F3260;   /* existing brand text color */
  --ink-deep:  #0E1A36;
  --muted:     #5B6580;
  --muted-soft:#8A93A8;

  /* Borders / dividers */
  --border:    #E2E6EF;
  --border-strong: #C8CFDC;

  /* Brand (kept from existing site) */
  --brand:     #254698;
  --brand-deep:#1B3373;
  --brand-darker:#13265A;
  --brand-tint:#EEF2FA;   /* a very pale blue used for soft fills */

  /* Status */
  --success:   #1F6E50;
  --success-soft:#E6F1EC;
  --warn:      #B45309;

  /* Radii */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadows - very restrained, no big drops */
  --shadow-sm: 0 1px 1px rgba(15,26,54,.04), 0 1px 2px rgba(15,26,54,.04);
  --shadow:    0 1px 2px rgba(15,26,54,.05), 0 6px 18px rgba(15,26,54,.06);

  /* Type stack: a serious editorial serif + neutral grotesk */
  --serif: "Source Serif 4", "Tiempos Headline", Georgia, "Iowan Old Style", serif;
  --sans:  "Inter", "Söhne", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", "Geist Mono", ui-monospace, monospace;

  --container: 1200px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   Typography
   ============================================================ */

.h-display, h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink-deep);
  margin: 0 0 0.4em;
}

h1, .h-display {
  font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink-deep);
}
h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);
  line-height: 1.15;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.3;
}

p { margin: 0 0 1em; }

.lead {
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.18rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.eyebrow .rule {
  display: inline-block;
  width: 24px; height: 1px;
  background: var(--border-strong);
}

/* Authorization chip - small, restrained */
.auth-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  background: var(--brand-tint);
  border: 1px solid #DAE2F1;
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  letter-spacing: 0.01em;
}
.auth-chip .seal {
  width: 14px; height: 14px;
  border-radius: 999px;
  background: var(--brand);
  color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  flex-shrink: 0;
}

.mono { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.muted { color: var(--muted); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

section { padding: 88px 0; }
section.tight { padding: 56px 0; }

@media (max-width: 720px) {
  section { padding: 56px 0; }
  section.tight { padding: 36px 0; }
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease, backdrop-filter .3s ease;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 96px;
  transition: height .3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav.scrolled .nav-row { height: 64px; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink-deep);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; color: var(--ink-deep); }
.brand img {
  display: block;
  height: 52px;
  width: auto;
  transition: height .3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav.scrolled .brand img { height: 28px; }

@media (max-width: 880px) {
  .nav-row { height: 80px; }
  .nav.scrolled .nav-row { height: 60px; }
  .brand img { height: 42px; }
  .nav.scrolled .brand img { height: 26px; }
}
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 450;
  position: relative;
}
.nav-links a:hover { color: var(--brand); text-decoration: none; }
.nav-links a.active { color: var(--brand); }

.nav-cta { display: flex; gap: 8px; margin-left: auto; align-items: center; }

.nav-burger {
  display: none;
  background: none;
  border: 0;
  width: 40px; height: 40px;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}
.nav-burger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink-deep);
  margin: 5px auto;
  transition: transform .2s, opacity .2s;
}

@media (max-width: 880px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
}

.mobile-sheet {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 100;
  padding: 24px;
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(0.2,0.7,0.2,1);
  display: flex; flex-direction: column;
}
.mobile-sheet.open { transform: translateX(0); }
.mobile-sheet header {
  display: flex; justify-content: flex-end;
  margin-bottom: 32px;
}
.mobile-sheet .close {
  background: none; border: 0;
  width: 40px; height: 40px;
  font-size: 22px; cursor: pointer;
  color: var(--ink-deep);
}
.mobile-sheet ul { list-style: none; padding: 0; margin: 0 0 32px; }
.mobile-sheet li a {
  display: flex;
  justify-content: space-between;
  padding: 18px 4px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink-deep);
  border-bottom: 1px solid var(--border);
}
.mobile-sheet .actions {
  display: flex; flex-direction: column; gap: 10px;
  margin-top: auto;
}
.mobile-sheet .footer-info {
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14.5px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.005em;
}
.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--brand);
  color: #FFFFFF;
  border-color: var(--brand);
}
.btn-primary:hover {
  background: var(--brand-deep);
  border-color: var(--brand-deep);
  color: #FFFFFF;
}

.btn-secondary {
  background: transparent;
  color: var(--ink-deep);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-soft);
  border-color: var(--ink);
  color: var(--ink-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink-deep);
  padding: 9px 14px;
}
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink-deep); }

.btn-light {
  background: #FFFFFF;
  color: var(--brand);
  border-color: #FFFFFF;
}
.btn-light:hover {
  background: #FFFFFF;
  color: var(--brand-deep);
}

.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn-block { width: 100%; }

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

.hero {
  padding: 80px 0 88px;
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.hero .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.11;
  filter: saturate(0.85);
}
/* Brand-blue wash on the photo */
.hero .bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(37, 70, 152, 0.10);
  mix-blend-mode: multiply;
  pointer-events: none;
}
/* Soft white gradient on top so content stays readable, with a hint of blue at the top */
.hero .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(238, 242, 250, 0.55) 0%,
    rgba(248, 250, 253, 0.78) 45%,
    rgba(255, 255, 255, 0.94) 100%
  );
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.hero h1 { color: var(--ink-deep); }
.hero .lead { margin-top: 18px; max-width: 50ch; }

.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.hero-checks {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.hero-checks span::before {
  content: "✓";
  color: var(--brand);
  font-weight: 600;
  margin-right: 10px;
}

/* Product card preview - looks like a real case file */
.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pc-top {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pc-top .pc-id { font-family: var(--mono); color: var(--ink); font-weight: 500; }
.pc-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand);
  font-weight: 600;
}
.pc-status .pulse {
  width: 6px; height: 6px; border-radius: 999px; background: var(--brand);
}
.pc-body { padding: 24px; }
.pc-customer {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink-deep);
  font-weight: 500;
  margin-bottom: 4px;
}
.pc-meta {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 18px;
}
.pc-amount {
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink-deep);
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}
.pc-amount-label { font-size: 12px; color: var(--muted); margin-bottom: 18px; }

.pc-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.pc-step .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
}
.pc-step.pending .dot { background: transparent; border: 1.5px solid var(--muted-soft); }
.pc-step .label { flex: 1; color: var(--ink); }
.pc-step .meta { color: var(--muted); font-size: 12px; font-family: var(--mono); }

.pc-foot {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.pc-foot .recovered {
  font-family: var(--mono);
  color: var(--success);
  font-weight: 500;
  font-size: 14px;
}

/* ============================================================
   Logo marquee (integrations slider)
   ============================================================ */

.logo-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 0 30px;
  background: var(--bg);
  overflow: hidden;
}
.logo-strip-label {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 22px;
}

.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  align-items: center;
  will-change: transform;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  width: 220px;
  padding: 0 36px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
  box-sizing: border-box;
}
.marquee-item + .marquee-item { margin-left: 32px; }
.marquee-item:hover { background: var(--bg-soft); transform: translateY(-2px); text-decoration: none; }
.marquee-item img {
  max-height: 44px;
  width: auto;
  max-width: 100%;
  filter: grayscale(1);
  opacity: .5;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
  object-fit: contain;
}
.marquee-item:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.04);
}

/* The track contains 3 identical sets so the loop point is invisible.
   We translate by exactly 1/3 of the total width to land on a duplicate. */
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-100% / 3), 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .marquee-item + .marquee-item { margin-left: 0; }
}

/* ============================================================
   How it works
   ============================================================ */

.section-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  padding: 36px 32px 36px 0;
  border-right: 1px solid var(--border);
  position: relative;
}
.step:last-child { border-right: 0; }
@media (max-width: 880px) {
  .step { border-right: 0; border-bottom: 1px solid var(--border); padding-right: 0; }
  .step:last-child { border-bottom: 0; }
}
.step:not(:first-child) { padding-left: 32px; }
@media (max-width: 880px) {
  .step:not(:first-child) { padding-left: 0; }
}
.step-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  font-weight: 500;
}
.step h3 { margin-bottom: 10px; color: var(--ink-deep); }
.step p { color: var(--muted); margin: 0; font-size: 15px; line-height: 1.65; }

/* ============================================================
   Channels block (rykker delivery channels)
   ============================================================ */

.channels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
@media (max-width: 880px) {
  .channels { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .channels { grid-template-columns: 1fr; }
}
.channel {
  padding: 24px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.channel:last-child { border-right: 0; }
@media (max-width: 880px) {
  .channel:nth-child(2n) { border-right: 0; }
  .channel { border-bottom: 1px solid var(--border); }
}
.channel-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--brand-tint);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.channel-icon svg { width: 18px; height: 18px; }
.channel-name {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink-deep);
  font-weight: 500;
}
.channel-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   Process (rykker process timeline)
   ============================================================ */

.process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 56px 0 24px;
}
@media (max-width: 880px) {
  .process { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
}

/* Horizontal connecting rail behind the dots */
.process::before {
  content: "";
  position: absolute;
  top: 56px;
  left: calc(100% / 8);
  right: calc(100% / 8);
  height: 2px;
  background: var(--border);
  border-radius: 999px;
  z-index: 0;
}
/* Filling progress on the rail (animates when section enters viewport) */
.process::after {
  content: "";
  position: absolute;
  top: 56px;
  left: calc(100% / 8);
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
  border-radius: 999px;
  transition: width 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
  z-index: 1;
}
.process.lit::after { width: calc(100% - (100% / 4)); }

@media (max-width: 880px) {
  .process::before, .process::after { display: none; }
}

.process-step {
  position: relative;
  padding: 24px 12px 0;
  text-align: left;
  z-index: 2;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease;
}
.process.lit .process-step { opacity: 1; transform: none; }
.process.lit .process-step:nth-child(1) { transition-delay: 0.05s; }
.process.lit .process-step:nth-child(2) { transition-delay: 0.30s; }
.process.lit .process-step:nth-child(3) { transition-delay: 0.55s; }
.process.lit .process-step:nth-child(4) { transition-delay: 0.80s; }

@media (max-width: 880px) {
  .process-step {
    padding: 20px 0 20px 36px;
    border-left: 2px solid var(--border);
    margin-left: 12px;
  }
  .process-step:not(:last-child) { padding-bottom: 28px; }
}

/* The dot on the rail */
.process-step .dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--bg);
  border: 2px solid var(--border);
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background .4s ease, border-color .4s ease, box-shadow .4s ease, transform .4s ease;
  z-index: 3;
}
.process.lit .process-step .dot {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,70,152,.10);
}
.process.lit .process-step:nth-child(1) .dot { transition-delay: 0.20s; }
.process.lit .process-step:nth-child(2) .dot { transition-delay: 0.45s; }
.process.lit .process-step:nth-child(3) .dot { transition-delay: 0.70s; }
.process.lit .process-step:nth-child(4) .dot { transition-delay: 0.95s; }

/* Last dot pulses to suggest "ongoing process" */
.process.lit .process-step:last-child .dot {
  animation: pulseDot 2.4s ease-in-out 1.4s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(37,70,152,.10); }
  50%      { box-shadow: 0 0 0 10px rgba(37,70,152,0); }
}

@media (max-width: 880px) {
  .process-step .dot {
    top: 26px;
    left: -2px;
    transform: translateX(-50%);
  }
  .process.lit .process-step:last-child .dot { animation: none; }
}

.process-day {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 600;
}
.process-step h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: var(--ink-deep);
  font-weight: 500;
}
.process-step p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .process-step { opacity: 1; transform: none; transition: none; }
  .process::after { transition: none; }
  .process.lit .process-step:last-child .dot { animation: none; }
}

/* ============================================================
   Pricing
   ============================================================ */

.pricing-section { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.fee-table {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.fee-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
}
.fee-row:last-child { border-bottom: 0; }
.fee-row .val { font-family: var(--mono); }
.fee-row.total {
  background: var(--bg-soft);
  font-weight: 500;
  color: var(--ink-deep);
}
.fee-row.highlight {
  background: var(--success-soft);
  font-weight: 500;
  color: var(--ink-deep);
}
.fee-row.highlight .val { color: var(--success); }

.pricing-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; }
}

.calculator {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.calculator h3 { margin-top: 0; color: var(--ink-deep); }
.calc-field { margin-bottom: 16px; }
.calc-field label {
  display: block;
  font-size: 12px;
  color: var(--ink);
  margin-bottom: 6px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.calc-field input {
  width: 100%;
  padding: 11px 14px;
  font-family: var(--mono);
  font-size: 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink-deep);
  transition: border-color .15s, box-shadow .15s;
}
.calc-field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,70,152,.12);
}
.calc-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 500;
}
.calc-result strong {
  display: block;
  font-family: var(--mono);
  font-size: 26px;
  color: var(--brand);
  margin-top: 4px;
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 500;
}

/* ============================================================
   Testimonials & metrics
   ============================================================ */

.testimonials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 880px) {
  .testimonials { grid-template-columns: 1fr; }
}
.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.quote-mark {
  display: block;
  font-family: var(--serif);
  font-size: 48px;
  color: var(--brand);
  line-height: 0.6;
  margin-bottom: 20px;
  font-weight: 500;
}
.quote p {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--ink-deep);
  margin: 0 0 24px;
  letter-spacing: -0.005em;
  font-weight: 400;
}
.quote .author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.quote .avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--brand);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.quote .author strong { display: block; color: var(--ink-deep); font-weight: 500; }
.quote .author span { color: var(--muted); font-size: 12.5px; }

.metrics {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .metrics { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
}
.metric .num {
  font-family: var(--serif);
  font-size: clamp(1.85rem, 1.4rem + 1.4vw, 2.5rem);
  font-weight: 500;
  color: var(--ink-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.metric .lbl {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.02em;
}

/* ============================================================
   Trust band
   ============================================================ */

.trust-band {
  background: var(--brand-darker);
  color: #FFFFFF;
  padding: 80px 0;
}
.trust-band h2 { color: #FFFFFF; }
.trust-band .lead { color: rgba(255,255,255,.72); }
.trust-band .eyebrow { color: rgba(255,255,255,.6); }
.trust-band .eyebrow .rule { background: rgba(255,255,255,.3); }

.trust-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.15);
  border-bottom: 1px solid rgba(255,255,255,.15);
}
@media (max-width: 880px) { .trust-list { grid-template-columns: 1fr; } }

.trust-item {
  padding: 28px 28px 28px 0;
  border-right: 1px solid rgba(255,255,255,.15);
}
.trust-item:nth-child(3n) { border-right: 0; }
.trust-item:not(:nth-child(3n+1)) { padding-left: 28px; }
@media (max-width: 880px) {
  .trust-item { padding: 24px 0 !important; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .trust-item:last-child { border-bottom: 0; }
}
.trust-item h4 {
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0 0 8px;
  color: #FFFFFF;
  font-weight: 500;
}
.trust-item p {
  color: rgba(255,255,255,.7);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}

/* Authorization seal block */
.auth-seal {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  margin-top: 40px;
  max-width: 560px;
}
.auth-seal .seal-mark {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 600; font-size: 13px;
  text-align: center;
  line-height: 1.05;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.auth-seal .seal-text {
  font-size: 13.5px;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
}
.auth-seal .seal-text strong { color: #FFFFFF; display: block; font-weight: 500; }

/* ============================================================
   FAQ
   ============================================================ */

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--ink-deep);
  font-weight: 500;
}
.faq-q .plus {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--brand);
  transition: transform .2s;
  flex-shrink: 0;
  margin-left: 16px;
  font-weight: 400;
}
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, margin .25s ease;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item.open .faq-a { max-height: 400px; margin-top: 14px; }

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  text-align: center;
}
.final-cta h2 { color: var(--ink-deep); }
.final-cta p { color: var(--muted); max-width: 56ch; margin: 0 auto 28px; }

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

.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  font-size: 14px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer h5 {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-deep);
  margin: 0 0 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer li a { color: var(--muted); }
.footer li a:hover { color: var(--brand); text-decoration: none; }
.footer-brand { font-family: var(--serif); font-size: 18px; color: var(--ink-deep); margin-bottom: 14px; font-weight: 500; }
.footer-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}
.footer-cred {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-cred .pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.footer-cred .pill .seal {
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #FFFFFF;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 700;
}

/* ============================================================
   Integration detail pages
   ============================================================ */

.int-hero {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.int-hero .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.int-hero .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.10;
  filter: saturate(0.85);
}
.int-hero .bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(37, 70, 152, 0.10);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.int-hero .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(238, 242, 250, 0.55) 0%,
    rgba(248, 250, 253, 0.80) 45%,
    rgba(255, 255, 255, 0.95) 100%
  );
  pointer-events: none;
}
.int-hero > .container { position: relative; z-index: 1; }
.int-hero .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.int-hero .copy { flex: 1 1 520px; max-width: 720px; }
.int-hero .logo-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  min-width: 240px;
  flex: 0 0 auto;
}
.int-hero .logo-frame img { max-height: 64px; max-width: 220px; width: auto; height: auto; object-fit: contain; }
.int-hero h1 { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem); margin-top: 12px; }
.int-hero .lead { margin-top: 14px; }
.int-hero .actions { margin-top: 28px; display: flex; gap: 10px; flex-wrap: wrap; }

.int-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.int-back:hover { color: var(--brand); text-decoration: none; }

.int-body {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 56px;
  padding: 64px 0;
  align-items: start;
}
@media (max-width: 880px) {
  .int-body { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
}
.int-content h2 {
  font-size: 1.6rem;
  margin-top: 40px;
}
.int-content h2:first-child { margin-top: 0; }
.int-content h3 {
  font-size: 1.15rem;
  margin-top: 24px;
  margin-bottom: 10px;
}
.int-content p { color: var(--ink); line-height: 1.7; }
.int-content ul, .int-content ol {
  margin: 0 0 1em;
  padding-left: 22px;
  color: var(--ink);
  line-height: 1.7;
}
.int-content ul li, .int-content ol li { margin-bottom: 6px; }
.int-content ul li::marker { color: var(--brand); }
.int-content ol li::marker { color: var(--brand); font-weight: 500; }

.int-callout {
  background: var(--brand-tint);
  border: 1px solid #DAE2F1;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14.5px;
  color: var(--ink-deep);
  line-height: 1.6;
}
.int-callout strong { display: block; font-weight: 500; margin-bottom: 4px; color: var(--ink-deep); }

.int-mode {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin: 16px 0;
}
.int-mode-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink-deep);
  margin: 0 0 6px;
  font-weight: 500;
}
.int-mode-title .tag {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.int-mode p { margin: 8px 0 12px; color: var(--muted); font-size: 14.5px; }
.int-mode ul { margin: 0; padding-left: 20px; font-size: 14.5px; }
.int-mode ul li { color: var(--ink); margin-bottom: 4px; }

.int-aside {
  position: sticky;
  top: 88px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.int-aside h4 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 14px;
  color: var(--ink-deep);
  font-weight: 500;
}
.int-aside .row {
  display: flex; justify-content: space-between;
  padding: 10px 0; font-size: 13.5px;
  border-top: 1px solid var(--border);
  color: var(--ink);
}
.int-aside .row:first-of-type { border-top: 0; }
.int-aside .row span:last-child { color: var(--muted); font-size: 13px; }
.int-aside .other-logos {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.int-aside .other-logos h5 {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin: 0 0 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.int-aside .other-logos a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  margin: 0 -10px;
  transition: background .15s;
}
.int-aside .other-logos a:hover { background: var(--bg-soft); text-decoration: none; }
.int-aside .other-logos img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  flex-shrink: 0;
}
.int-aside .other-logos span {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
}

/* Placeholder ribbon for the Flatpay logo */
.placeholder-ribbon {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px dashed var(--border-strong);
  border-radius: 999px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  margin-top: 12px;
}

/* ============================================================
   Auth pages (login / register)
   ============================================================ */

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

/* Back button at top of the form pane */
.auth-back {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 8px 14px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.auth-back:hover {
  background: var(--surface);
  color: var(--ink-deep);
  border-color: var(--border-strong);
  transform: translateX(-3px);
  text-decoration: none;
}
.auth-back svg { transition: transform .2s ease; }
.auth-back:hover svg { transform: translateX(-2px); }

/* Logo at top of auth form - clearly clickable */
.auth-form-wrap > .brand {
  cursor: pointer;
  transition: opacity .2s ease, transform .2s ease;
  align-self: flex-start;
}
.auth-form-wrap > .brand:hover { opacity: 0.85; }
.auth-form-wrap > .brand:hover img { transform: translateX(-2px); }
.auth-form-wrap > .brand img { transition: transform .2s ease; }

/* Footer link to switch between login and register */
.auth-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--brand);
  font-weight: 500;
  position: relative;
}
.auth-switch::after {
  content: "→";
  display: inline-block;
  margin-left: 2px;
  transition: transform .2s ease;
}
.auth-switch:hover::after { transform: translateX(3px); }

/* ============================================================
   AUTH TRANSITIONS
   Strategy: cross-document View Transitions API for modern browsers,
   smooth CSS fallback for the rest.
   ============================================================ */

/* 1) Enable cross-document view transitions for same-origin nav */
@view-transition { navigation: auto; }

/* 2) Default page transition - soft crossfade for any nav */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 360ms;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
  mix-blend-mode: normal;
}
::view-transition-old(root) { animation-name: vt-fade-out; }
::view-transition-new(root) { animation-name: vt-fade-in; animation-delay: 60ms; }
@keyframes vt-fade-out { to { opacity: 0; } }
@keyframes vt-fade-in  { from { opacity: 0; } }

/* 3) Tag the auth panes so they get their OWN transition */
.auth-form-wrap { view-transition-name: auth-form; }
.auth-aside     { view-transition-name: auth-aside; }

/* 3a) Form pane: directional slide (default = "forward" / coming from left side of nav order) */
::view-transition-old(auth-form) {
  animation: 320ms cubic-bezier(0.4, 0, 1, 1) both auth-form-out-left;
}
::view-transition-new(auth-form) {
  animation: 480ms cubic-bezier(0.16, 1, 0.3, 1) 60ms both auth-form-in-right;
}

/* 3b) Reverse direction when navigating "back" (register -> login) */
[data-auth-direction="back"] ::view-transition-old(auth-form) {
  animation: 320ms cubic-bezier(0.4, 0, 1, 1) both auth-form-out-right;
}
[data-auth-direction="back"] ::view-transition-new(auth-form) {
  animation: 480ms cubic-bezier(0.16, 1, 0.3, 1) 60ms both auth-form-in-left;
}

@keyframes auth-form-out-left  { to { opacity: 0; transform: translate3d(-40px, 0, 0); } }
@keyframes auth-form-out-right { to { opacity: 0; transform: translate3d(40px, 0, 0); } }
@keyframes auth-form-in-right  { from { opacity: 0; transform: translate3d(40px, 0, 0); } }
@keyframes auth-form-in-left   { from { opacity: 0; transform: translate3d(-40px, 0, 0); } }

/* 3c) Aside pane: gentle crossfade so it feels like a stable anchor */
::view-transition-old(auth-aside),
::view-transition-new(auth-aside) {
  animation-duration: 540ms;
  animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1);
}
::view-transition-old(auth-aside) { animation-name: vt-fade-out; }
::view-transition-new(auth-aside) { animation-name: aside-pan-in;  animation-delay: 100ms; }
@keyframes aside-pan-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(0.995); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   CSS-only fallback (browsers without View Transitions API)
   These run via JS adding body classes when clicking the auth-switch link.
   ============================================================ */

/* Page-load entrance (default, no direction) */
.auth-form-wrap {
  animation: authIn 600ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.auth-aside {
  animation: asideIn 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 80ms both;
}
@keyframes authIn {
  from { opacity: 0; transform: translate3d(0, 16px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes asideIn {
  from { opacity: 0; transform: translate3d(0, 24px, 0) scale(0.995); }
  to   { opacity: 1; transform: none; }
}

/* Directional entrance: arriving from the auth-switch link */
body.auth-from-forward .auth-form-wrap { animation: authInFromRight 600ms cubic-bezier(0.16, 1, 0.3, 1) both; }
body.auth-from-back    .auth-form-wrap { animation: authInFromLeft  600ms cubic-bezier(0.16, 1, 0.3, 1) both; }
body.auth-from-forward .auth-aside,
body.auth-from-back    .auth-aside     { animation: asideFlash 600ms ease-out both; }

@keyframes authInFromLeft  { from { opacity: 0; transform: translate3d(-40px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes authInFromRight { from { opacity: 0; transform: translate3d( 40px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes asideFlash      { from { opacity: 0; } to { opacity: 1; } }

/* Exit animation when clicking auth-switch */
body.auth-leaving-forward .auth-form-wrap {
  animation: authOutLeft 320ms cubic-bezier(0.5, 0, 0.75, 0) forwards;
}
body.auth-leaving-back .auth-form-wrap {
  animation: authOutRight 320ms cubic-bezier(0.5, 0, 0.75, 0) forwards;
}
body.auth-leaving-forward .auth-aside,
body.auth-leaving-back .auth-aside {
  animation: asideOut 280ms ease-in forwards;
}

@keyframes authOutLeft  { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d(-40px, 0, 0); } }
@keyframes authOutRight { from { opacity: 1; transform: none; } to { opacity: 0; transform: translate3d( 40px, 0, 0); } }
@keyframes asideOut     { from { opacity: 1; } to { opacity: 0.6; } }

@media (prefers-reduced-motion: reduce) {
  .auth-form-wrap, .auth-aside,
  body.auth-from-forward .auth-form-wrap,
  body.auth-from-back .auth-form-wrap,
  body.auth-leaving-forward .auth-form-wrap,
  body.auth-leaving-back .auth-form-wrap,
  body.auth-leaving-forward .auth-aside,
  body.auth-leaving-back .auth-aside { animation: none; }

  ::view-transition-old(root),
  ::view-transition-new(root),
  ::view-transition-old(auth-form),
  ::view-transition-new(auth-form),
  ::view-transition-old(auth-aside),
  ::view-transition-new(auth-aside) {
    animation: none !important;
  }
}
@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
.auth-form-wrap {
  padding: 64px 48px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 540px;
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
}
.auth-form-wrap h1 { font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.1rem); margin-bottom: 8px; }
.auth-form-wrap > p { color: var(--muted); margin-bottom: 32px; }

/* Two-column field row that collapses to single column on small screens */
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* Tablet/mobile auth padding */
@media (max-width: 720px) {
  .auth-form-wrap {
    padding: 80px 24px 32px;
    max-width: 440px;
  }
  .auth-form-wrap > .brand { margin-bottom: 32px !important; }
  .auth-form-wrap > .brand img { height: 36px; }
  .auth-form-wrap h1 { font-size: 1.6rem; }
  .auth-form-wrap > p { margin-bottom: 24px; font-size: 14.5px; }
  .auth-back {
    top: 16px;
    left: 16px;
    font-size: 12.5px;
    padding: 7px 12px;
  }
}
@media (max-width: 420px) {
  .auth-form-wrap { padding: 76px 18px 28px; }
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field input {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: var(--sans);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink-deep);
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,70,152,.12);
}
.field .help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.field .input-wrap { position: relative; }
.field .chip {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: var(--success-soft);
  color: var(--success);
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.strength {
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  margin-top: 8px;
  overflow: hidden;
}
.strength i {
  display: block;
  height: 100%;
  width: 70%;
  background: var(--success);
  border-radius: 999px;
}
.strength-label { font-size: 12px; color: var(--success); margin-top: 6px; font-weight: 500; }

.auth-aside {
  background: var(--brand-darker);
  color: #FFFFFF;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside h2 { color: #FFFFFF; position: relative; }
.auth-aside p { color: rgba(255,255,255,.72); position: relative; }
.auth-aside .eyebrow { color: rgba(255,255,255,.6); }
.auth-aside .eyebrow .rule { background: rgba(255,255,255,.3); }

.aside-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
.aside-card .pc-top { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); color: rgba(255,255,255,.6); }
.aside-card .pc-top .pc-id { color: rgba(255,255,255,.85); }
.aside-card .pc-status { color: #FFFFFF; }
.aside-card .pc-status .pulse { background: #FFFFFF; }
.aside-card .pc-customer { color: #FFFFFF; }
.aside-card .pc-meta { color: rgba(255,255,255,.6); }
.aside-card .pc-amount { color: #FFFFFF; }
.aside-card .pc-amount-label { color: rgba(255,255,255,.6); }
.aside-card .pc-step { border-color: rgba(255,255,255,.10); }
.aside-card .pc-step .label { color: rgba(255,255,255,.95); }
.aside-card .pc-step .meta { color: rgba(255,255,255,.6); }
.aside-card .pc-step .dot { background: #FFFFFF; }
.aside-card .pc-step.pending .dot { background: transparent; border-color: rgba(255,255,255,.4); }
.aside-card .pc-foot { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); color: rgba(255,255,255,.7); }
.aside-card .pc-foot .recovered { color: #FFFFFF; }

.auth-bottom {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ============================================================
   About page (Om os) components
   ============================================================ */

/* Hero with full-bleed facade photo */
.about-hero {
  position: relative;
  padding: 96px 0 88px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}
.about-hero .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.about-hero .bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.12;
  filter: saturate(0.85);
}
.about-hero .bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(37, 70, 152, 0.10);
  mix-blend-mode: multiply;
  pointer-events: none;
}
.about-hero .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(238, 242, 250, 0.55) 0%,
    rgba(248, 250, 253, 0.80) 45%,
    rgba(255, 255, 255, 0.95) 100%
  );
  pointer-events: none;
}
.about-hero .container { position: relative; z-index: 1; }
.about-hero .copy { max-width: 720px; }

/* Inline stat row under the hero copy */
.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 48px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
  max-width: 720px;
}
@media (max-width: 720px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
}
.about-stats .num {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1.1rem + 0.8vw, 1.8rem);
  font-weight: 500;
  color: var(--ink-deep);
  line-height: 1;
  letter-spacing: -0.02em;
}
.about-stats .lbl {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

/* Story / two-column copy block */
.story-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 880px) {
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
}
.story-grid h2 { margin: 0; }
.story-grid .body p { color: var(--ink); line-height: 1.75; font-size: 1.02rem; margin-bottom: 1em; }
.story-grid .body p:last-child { margin-bottom: 0; }

/* Values: 3 cards, editorial style */
.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .values { grid-template-columns: 1fr; }
}
.value {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}
.value-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  font-weight: 500;
}
.value h3 { margin: 0 0 10px; }
.value p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* Team grid */
.team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 880px) {
  .team { grid-template-columns: 1fr; }
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.team-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 999px;
  margin: 0 auto 18px;
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  position: relative;
}
.team-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.team-card:hover .team-photo img { transform: scale(1.04); }
.team-card h4 {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin: 0 0 4px;
  color: var(--ink-deep);
  font-weight: 500;
}
.team-card .role {
  font-size: 13px;
  color: var(--brand);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 14px;
}
.team-card .bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

/* Partners list */
.partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
@media (max-width: 880px) { .partners { grid-template-columns: 1fr; } }
.partner {
  padding: 28px;
  border-right: 1px solid var(--border);
}
.partner:last-child { border-right: 0; }
@media (max-width: 880px) {
  .partner { border-right: 0; border-bottom: 1px solid var(--border); }
  .partner:last-child { border-bottom: 0; }
}
.partner h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 8px;
  color: var(--ink-deep);
  font-weight: 500;
}
.partner p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.partner .role-chip {
  display: inline-block;
  font-size: 11px;
  font-family: var(--mono);
  color: var(--brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ============================================================
   Photography
   ============================================================ */

.photo-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.photo-frame:hover img { transform: scale(1.03); }

/* Tag floating over a photo (e.g. "Kunde · Tømrer") */
.photo-frame .photo-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-deep);
  letter-spacing: 0.02em;
}
.photo-frame .photo-tag .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--brand);
}

/* Two-up section: copy on one side, photo on the other */
.split-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) {
  .split-photo { grid-template-columns: 1fr; gap: 36px; }
}
.split-photo .photo-frame { aspect-ratio: 4 / 3; }
.split-photo.flip > .photo-frame { order: -1; }
@media (max-width: 880px) {
  .split-photo.flip > .photo-frame { order: 0; }
}

/* Wide hero-style photo (used in trust band etc.) */
.wide-photo {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 21 / 9;
  background: var(--bg-soft);
  border: 1px solid rgba(255,255,255,.10);
}
.wide-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wide-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(14,26,54,.55));
  pointer-events: none;
}
.wide-photo .caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  z-index: 1;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}
.wide-photo .caption strong { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; }
.wide-photo .caption span { color: rgba(255,255,255,.75); font-size: 13px; }

/* Photo-on-dark blends gently with the trust band */
.trust-band .wide-photo { border-color: rgba(255,255,255,.10); }

/* Final CTA with background photo */
.final-cta.with-photo {
  position: relative;
  background: var(--ink-deep);
  color: #FFFFFF;
  overflow: hidden;
}
.final-cta.with-photo .bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.final-cta.with-photo .bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.22;
  filter: saturate(0.9);
}
.final-cta.with-photo .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(80% 60% at 30% 50%, rgba(14,26,54,0.6), rgba(14,26,54,0.92)),
    linear-gradient(180deg, rgba(14,26,54,0.65), rgba(14,26,54,0.92));
}
.final-cta.with-photo .container { position: relative; z-index: 1; }
.final-cta.with-photo h2 { color: #FFFFFF; }
.final-cta.with-photo p { color: rgba(255,255,255,.78); }
.final-cta.with-photo .btn-secondary {
  border-color: rgba(255,255,255,.35);
  color: #FFFFFF;
  background: transparent;
}
.final-cta.with-photo .btn-secondary:hover { background: rgba(255,255,255,.08); border-color: #FFFFFF; }

/* ============================================================
   Reveal animations (scroll-triggered)
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(0.2, 0.7, 0.2, 1), transform .7s cubic-bezier(0.2, 0.7, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Stagger child reveals when parent has [data-stagger] */
[data-stagger].visible > * {
  animation: rise .7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
[data-stagger].visible > *:nth-child(1) { animation-delay: 0.05s; }
[data-stagger].visible > *:nth-child(2) { animation-delay: 0.15s; }
[data-stagger].visible > *:nth-child(3) { animation-delay: 0.25s; }
[data-stagger].visible > *:nth-child(4) { animation-delay: 0.35s; }
[data-stagger].visible > *:nth-child(5) { animation-delay: 0.45s; }
[data-stagger].visible > *:nth-child(6) { animation-delay: 0.55s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Hero load-in (runs once on page load, no scroll needed) */
.hero h1, .hero .lead, .hero .auth-chip, .hero .hero-cta, .hero .hero-checks, .hero .product-card {
  opacity: 0;
  animation: heroIn .8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero .auth-chip   { animation-delay: 0.08s; }
.hero h1           { animation-delay: 0.18s; }
.hero .lead        { animation-delay: 0.30s; }
.hero .hero-cta    { animation-delay: 0.42s; }
.hero .hero-checks { animation-delay: 0.54s; }
.hero .product-card{ animation-delay: 0.30s; animation-name: heroInRight; }

@keyframes heroIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroInRight {
  from { opacity: 0; transform: translateX(20px) translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* Stronger hover for the product card */
.product-card { transition: transform .3s ease, box-shadow .3s ease; }
.hero .product-card:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(15,26,54,.05), 0 18px 38px rgba(15,26,54,.08); }

/* The status pulse on the case-card header */
.pc-status .pulse {
  position: relative;
}
.pc-status .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--brand);
  animation: ringPulse 2s ease-out infinite;
}
@keyframes ringPulse {
  0%   { transform: scale(1);   opacity: .55; }
  80%  { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

/* Numbered metric reveal */
.metric .num { transition: color .3s ease; }
.metric.counted .num { color: var(--ink-deep); }

/* Step cards lift on hover */
.step { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.step:hover { transform: translateY(-2px); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }

/* Channel tiles soft hover */
.channel { transition: background .2s ease; }
.channel:hover { background: var(--bg-soft); }

/* Quote cards hover */
.quote { transition: transform .25s ease, box-shadow .25s ease; }
.quote:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* Trust list items underline-hover */
.trust-item h4 { transition: color .2s ease; }
.trust-item:hover h4 { color: #FFFFFF; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,.4); }

@media (prefers-reduced-motion: reduce) {
  .reveal, [data-stagger].visible > * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero h1, .hero .lead, .hero .auth-chip, .hero .hero-cta, .hero .hero-checks, .hero .product-card {
    opacity: 1; animation: none;
  }
  .pc-status .pulse::after { animation: none; opacity: 0; }
}

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

.hidden { display: none !important; }
.text-center { text-align: center; }
.row-gap { display: flex; gap: 12px; flex-wrap: wrap; }
