/* Sylenss — shared design system (Swiss premium light) */
:root {
  --paper: #faf8f5;
  --paper-2: #f3efe8;
  --surface: #ffffff;
  --ink: #1a1714;
  --muted: #6b6258;
  --hairline: #e5dfd5;
  --orange: #ff6b35;
  --ink-text: #f5f1ea;
  --ink-muted: #a89f93;
  --success: #2f6b4f;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection {
  background: var(--ink);
  color: var(--paper);
}
[id] {
  scroll-margin-top: 5rem;
}

.tnum {
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}
.eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.font-serif {
  font-optical-sizing: auto;
  letter-spacing: -0.015em;
}
h1 em,
h2 em,
h3 em,
.serif-em em {
  font-style: italic;
  font-weight: 400;
}

/* rubber stamp */
.stamp {
  position: absolute;
  top: -14px;
  right: -10px;
  transform: rotate(-7deg);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 4px;
  padding: 0.3rem 0.55rem;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0.9;
}

/* section marker on a hairline */
.marker {
  border-top: 1px solid var(--hairline);
  padding-top: 0.875rem;
}

a.txt {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hairline);
  transition: text-decoration-color 0.2s ease;
}
a.txt:hover {
  text-decoration-color: var(--orange);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.875rem 1.75rem;
  border-radius: 6px;
  min-height: 44px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    transform 0.05s ease,
    box-shadow 0.05s ease;
}
.btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 1px 2px rgba(26, 23, 20, 0.25);
}
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.btn-ink {
  background: var(--ink);
  color: var(--paper);
}
.btn-ink:hover {
  background: #2e2823;
}
.btn-orange {
  background: var(--orange);
  color: var(--ink);
}
.btn-orange:hover {
  background: #ff7c4d;
}

/* receipt motif */
.receipt {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-bottom: 0;
  font-family: "IBM Plex Mono", monospace;
  position: relative;
}
.receipt::after {
  content: "";
  display: block;
  position: absolute;
  top: 100%;
  left: -1px;
  right: -1px;
  height: 8px;
  background:
    linear-gradient(
      45deg,
      transparent 33.333%,
      var(--surface) 33.333%,
      var(--surface) 66.667%,
      transparent 66.667%
    ),
    linear-gradient(
      -45deg,
      transparent 33.333%,
      var(--surface) 33.333%,
      var(--surface) 66.667%,
      transparent 66.667%
    );
  background-size: 14px 16px;
  background-position: 0 -8px;
}
.dashed {
  border: 0;
  border-top: 1px dashed #c9c0b2;
}

/* dotted leaders */
.ledger-row {
  display: flex;
  align-items: baseline;
  gap: 0.625rem;
}
.dots {
  flex: 1;
  min-width: 1.5rem;
  border-bottom: 2px dotted #cfc7b9;
  transform: translateY(-4px);
}

/* screenshot mounts: matted print */
.mount {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--surface);
  padding: 4px;
}
.crop {
  overflow: hidden;
  border-radius: 5px;
  position: relative;
  background: #f6f7f9;
}
.crop img {
  display: block;
  max-width: none;
}

/* hero mockup */
.mock {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow:
    0 1px 2px rgba(26, 23, 20, 0.06),
    0 24px 48px -24px rgba(26, 23, 20, 0.22);
}
.tile {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.12s ease,
    border-color 0.12s ease;
  text-align: left;
}
.tile:hover {
  border-color: #cfc7b9;
}
.tile.pressed {
  background: var(--paper-2);
  border-color: var(--ink);
}
.tile:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e63;
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}
#tk-newline {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease 0.1s;
}
#tk-newline.show {
  max-height: 2.5rem;
  opacity: 1;
}
#hero-receipt {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
#hero-receipt.fed {
  transform: translateY(14px);
}

/* peppol schematic (on ink panel) */
.ppl-line {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(245, 241, 234, 0.25);
  overflow: visible;
}
.ppl-line::after {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 26px;
  height: 3px;
  background: var(--orange);
  animation: travel 4s linear infinite;
}
@keyframes travel {
  from {
    left: -26px;
  }
  to {
    left: 100%;
  }
}
.ppl-node {
  border: 1px solid rgba(245, 241, 234, 0.3);
  padding: 0.625rem 1rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* FAQ */
details.faq summary {
  cursor: pointer;
  list-style: none;
  min-height: 44px;
}
details.faq summary::-webkit-details-marker {
  display: none;
}
details.faq summary .ind {
  font-family: "IBM Plex Mono", monospace;
  color: var(--muted);
  transition: transform 0.2s ease;
  display: inline-block;
}
details.faq[open] summary .ind {
  transform: rotate(45deg);
}

/* form */
.f-label {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.375rem;
}
.f-input {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 0.75rem 0.875rem;
  min-height: 44px;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.f-input:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

#siteHeader {
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
  border-bottom: 1px solid transparent;
}
#siteHeader.scrolled {
  background: rgba(250, 248, 245, 0.96);
  border-bottom-color: var(--hairline);
}

/* prose for legal pages */
.prose-legal h2 {
  font-family: Newsreader, Georgia, serif;
  font-weight: 500;
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
}
.prose-legal p,
.prose-legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.prose-legal li {
  margin-left: 1.25rem;
  list-style: none;
  position: relative;
}
.prose-legal li::before {
  content: "—";
  position: absolute;
  left: -1.25rem;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pulse-dot,
  .ppl-line::after {
    animation: none;
  }
  #tk-newline,
  #hero-receipt {
    transition: none;
  }
}
