:root {
  --accent: #2C55A8;
  --accent-soft: color-mix(in oklab, var(--accent), white 45%);
  --bg: #F6F4EE;
  --ink: #131311;
  --line: #E3DDCE;
  --muted: #5A5850;
  --faded: #8B887C;
  --header-offset: 88px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Familjen Grotesk', sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

section[id] { scroll-margin-top: var(--header-offset); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floatY { 0%, 100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-12px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@keyframes growUp { from { transform: scaleY(0); } }
@keyframes popIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: scale(1); } }

/* ---------- Shared ---------- */

.kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin: 0 0 16px;
}

.kicker-on-dark { color: var(--accent-soft); }

.section-title {
  font-size: clamp(38px, 4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.section-lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 56px;
  max-width: 600px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: inline-flex;
  align-items: center;
  background: var(--ink);
  color: #FFFFFF;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(19,19,17,.3);
}

a.logo:hover { color: #FFFFFF; }

/* ---------- Header ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-link {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
}

.nav-link:hover { color: var(--accent); }

.nav-cta {
  background: var(--ink);
  color: var(--bg);
  font-size: 17px;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 999px;
}

.nav-cta:hover { background: var(--accent); color: var(--bg); }

/* ---------- Hero ---------- */

.hero {
  background: var(--ink);
  color: var(--bg);
  padding: 96px 40px 110px;
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(52px, 6.2vw, 86px);
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 26px;
}

.hero h1 em {
  color: var(--accent-soft);
  font-style: italic;
  font-weight: 500;
}

.hero-kicker {
  display: block;
  margin-bottom: 26px;
  font-weight: 400;
  line-height: 1.5;
  text-transform: uppercase;
}

.hero-lead {
  font-size: 20px;
  line-height: 1.6;
  color: rgba(246,244,238,.72);
  max-width: 560px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.btn {
  display: inline-block;
  font-size: 18px;
  border-radius: 999px;
  cursor: pointer;
}

.btn-light {
  background: var(--bg);
  color: var(--ink);
  font-weight: 600;
  padding: 17px 32px;
}

.btn-light:hover {
  background: color-mix(in oklab, var(--accent), white 55%);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--bg);
  font-weight: 500;
  padding: 16px 30px;
  border: 1px solid rgba(246,244,238,.3);
}

.btn-ghost:hover { border-color: var(--bg); color: var(--bg); }

.hero-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.06em;
  color: rgba(246,244,238,.55);
}

.fade-1 { animation: fadeUp .7s ease both; }
.fade-2 { animation: fadeUp .7s ease .1s both; }
.fade-3 { animation: fadeUp .7s ease .2s both; }
.fade-4 { animation: fadeUp .7s ease .3s both; }
.fade-5 { animation: fadeUp .7s ease .4s both; }
.fade-visual { animation: fadeUp .8s ease .25s both; }

/* ---------- Ledger card ---------- */

.hero-visual { position: relative; }

.ledger-card {
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 16px;
  padding: 30px 30px 26px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  transform: rotate(2deg);
  animation: floatY 7s ease-in-out infinite;
}

.ledger-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--faded);
  border-bottom: 1px solid #E9E5DA;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.ledger-bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 78px;
  margin-bottom: 22px;
}

.bar {
  flex: 1;
  border-radius: 4px 4px 2px 2px;
  transform-origin: bottom;
  animation: growUp .9s cubic-bezier(.2,.8,.3,1) both;
}

.bar-1 { height: 38px; background: color-mix(in oklab, var(--accent), white 75%); animation-delay: .5s; }
.bar-2 { height: 52px; background: color-mix(in oklab, var(--accent), white 62%); animation-delay: .6s; }
.bar-3 { height: 44px; background: color-mix(in oklab, var(--accent), white 50%); animation-delay: .7s; }
.bar-4 { height: 60px; background: color-mix(in oklab, var(--accent), white 36%); animation-delay: .8s; }
.bar-5 { height: 55px; background: color-mix(in oklab, var(--accent), white 20%); animation-delay: .9s; }
.bar-6 { height: 74px; background: var(--accent); animation-delay: 1s; }

.ledger-row {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  padding: 9px 0;
}

.ledger-row-line { border-bottom: 1px solid #E9E5DA; }

.ledger-label { color: var(--muted); }

.ledger-value {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 500;
}

.ledger-total {
  align-items: center;
  font-size: 16px;
  padding: 13px 0 4px;
}

.ledger-total-label { font-weight: 600; }

.ledger-total-value {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  color: var(--accent);
}

.ledger-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: color-mix(in oklab, var(--accent), white 88%);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  animation: popIn .5s ease 1.5s both;
}

.hero-badge {
  position: absolute;
  top: -34px;
  right: -20px;
  width: 118px;
  height: 118px;
  animation: spin 22s linear infinite;
}

.hero-badge svg {
  display: block;
  width: 100%;
  height: 100%;
}

.badge-ring {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10.5px;
  fill: var(--ink);
}

.badge-letter {
  font-family: 'Familjen Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  fill: var(--ink);
}

/* ---------- Marquee ---------- */

.marquee {
  background: var(--accent);
  color: var(--bg);
  overflow: hidden;
  padding: 13px 0;
  white-space: nowrap;
}

.marquee-track {
  display: inline-flex;
  animation: marquee 26s linear infinite;
}

.marquee-track span {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.25em;
  padding-right: 48px;
}

/* ---------- Services ---------- */

.services {
  background: var(--bg);
  padding: 100px 40px;
}

.services .section-title { max-width: 640px; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-card {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 36px rgba(19,19,17,.1);
}

.service-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 17px;
  color: var(--accent);
  margin-bottom: 18px;
}

.service-card h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 10px;
}

.service-card p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

/* ---------- Why ---------- */

.why {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 100px 40px;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.why .section-lead { margin-bottom: 48px; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.stat-value {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 42px;
  font-weight: 600;
  color: var(--ink);
}

.stat-label {
  font-size: 16px;
  color: var(--faded);
  margin-top: 6px;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature {
  display: flex;
  gap: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 26px;
}

.feature-check {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}

.feature-title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-text {
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Customers ---------- */

.customers {
  background: var(--bg);
  padding: 100px 40px;
  overflow: hidden;
}

.customers .section-title { max-width: 640px; }

.customer-marquees {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin: 0 -40px;
}

.cm-row {
  overflow: hidden;
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}

.cm-track { display: inline-flex; }

.cm-left { animation: marquee 52s linear infinite; }
.cm-right { animation: marquee-rev 62s linear infinite; }

.cm-row:hover .cm-track { animation-play-state: paused; }

.cm-group {
  display: inline-flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
}

.cm-dot {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  opacity: .45;
}

.wm {
  white-space: nowrap;
  color: var(--ink);
  opacity: .72;
}

.wm-bold { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.wm-italic { font-size: 22px; font-weight: 600; font-style: italic; }
.wm-light { font-size: 22px; font-weight: 500; }
.wm-caps { font-size: 16px; font-weight: 600; letter-spacing: 0.14em; }
.wm-mono { font-family: 'IBM Plex Mono', monospace; font-size: 14px; font-weight: 500; letter-spacing: 0.2em; }

/* ---------- FAQ ---------- */

.faq {
  background: #FFFFFF;
  border-top: 1px solid var(--line);
  padding: 100px 40px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.faq .section-lead { margin-bottom: 0; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  transition: transform .2s ease;
}

.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 14px;
}

.faq-answer {
  padding: 0 24px 22px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--muted);
}

.faq-answer p { margin: 0; }

/* ---------- Contact ---------- */

.contact {
  background: var(--ink);
  color: var(--bg);
  padding: 100px 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}

.contact-lead {
  color: rgba(246,244,238,.72);
  margin-bottom: 48px;
  max-width: 480px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 17px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.contact-detail a { color: inherit; }

.contact-detail a:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-detail-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(246,244,238,.5);
  width: 76px;
  flex-shrink: 0;
}

.contact-card {
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 16px;
  padding: 38px 36px;
  box-shadow: 0 30px 60px rgba(0,0,0,.4);
}

#contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field-wide { grid-column: 1 / -1; }

.field label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--faded);
}

.field input,
.field textarea {
  width: 100%;
  padding: 13px 15px;
  background: #FBFAF7;
  border: 1px solid #D8D3C6;
  border-radius: 9px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}

.field textarea { resize: vertical; }

.field input:focus,
.field textarea:focus {
  border-color: var(--accent);
}

.submit-btn {
  grid-column: 1 / -1;
  background: var(--ink);
  color: var(--bg);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  padding: 17px;
  border-radius: 999px;
  margin-top: 4px;
}

.submit-btn:hover { background: var(--accent); }

.form-note {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--faded);
  text-align: center;
}

.form-error {
  grid-column: 1 / -1;
  font-size: 15px;
  line-height: 1.5;
  color: #A3271D;
  text-align: center;
}

.honey-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.submit-btn:disabled {
  opacity: .7;
  cursor: default;
}

.form-success {
  text-align: center;
  padding: 48px 20px;
  animation: popIn .45s ease both;
}

.form-success-check {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: var(--accent);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  margin: 0 auto 22px;
}

.form-success-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
}

.form-success-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(246,244,238,.55);
  border-top: 1px solid rgba(246,246,238,.12);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 14px;
}

.logo-inverted {
  background: var(--bg);
  color: var(--ink);
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 15px;
  box-shadow: none;
}

.footer-meta {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

@media (max-width: 560px) {
  .footer-meta { text-align: center; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .site-header { padding: 16px 20px; }
  .site-nav { gap: 20px; }

  .hero { padding: 72px 24px 84px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  /* Calm the hero card when the layout stacks: no float, no tilt,
     smaller badge kept inside the viewport */
  .hero-visual {
    max-width: 460px;
    width: 100%;
    margin: 0 auto;
  }
  .ledger-card {
    animation: none;
    transform: none;
  }
  .hero-badge {
    width: 96px;
    height: 96px;
    top: -26px;
    right: -4px;
  }

  .services, .why, .customers, .faq, .contact { padding: 72px 24px; }
  .why-grid, .faq-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .customer-marquees { margin: 0 -24px; gap: 26px; }

  .site-footer { padding: 26px 24px; }
}

@media (max-width: 560px) {
  .nav-link { display: none; }
  .nav-cta { padding: 11px 20px; font-size: 16px; }
  .logo { font-size: 13px; padding: 10px 14px; letter-spacing: 0.24em; text-indent: 0.24em; }

  .hero { padding: 56px 20px 68px; }
  .hero h1 { font-size: clamp(38px, 11.5vw, 48px); line-height: 1.05; }
  .hero-lead { font-size: 18px; }
  .hero-badge {
    width: 82px;
    height: 82px;
    top: -20px;
    right: 0;
  }

  .contact-card { padding: 28px 22px; }
  #contact-form { grid-template-columns: 1fr; }

  .customer-marquees { gap: 20px; }
  .faq-item summary { padding: 18px 18px; font-size: 16.5px; }
  .faq-answer { padding: 0 18px 20px; font-size: 16px; }
  .cm-group { gap: 22px; padding-right: 22px; }
  .wm-bold { font-size: 19px; }
  .wm-italic { font-size: 18px; }
  .wm-light { font-size: 18px; }
  .wm-caps { font-size: 14px; }
  .wm-mono { font-size: 12.5px; }

  .stats { gap: 14px; }
  .stat-value { font-size: 34px; }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .fade-1, .fade-2, .fade-3, .fade-4, .fade-5, .fade-visual,
  .bar, .ledger-chip, .form-success {
    animation: none;
  }

  .ledger-card, .hero-badge, .marquee-track,
  .cm-left, .cm-right {
    animation: none;
  }
}
