/* Swiss Core Systems - components: nav, footer, buttons, cards, tables, forms
   Calm and institutional: 1px hairlines, soft warm shadows, rounded corners from
   the radius scale, one accent colour. Light theme only. */

/* Navbar: solid surface, 4px red signature bar at the very top */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-white);
  border-top: 4px solid var(--color-accent);
  border-bottom: 1px solid var(--color-divider);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0;
  color: var(--color-text);
}

.nav-brand:hover {
  text-decoration: none;
}

.nav-brand img {
  height: 34px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Nav items: muted, turning ink on hover. The active item carries a 3px red
   underline that grows from the centre. */
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text-muted);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  padding: 8px 0;
  transition: color 160ms var(--ease-smooth);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 9999px;
  background: var(--color-border);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 300ms var(--ease-smooth), background-color 160ms var(--ease-smooth);
}

.nav-links a:hover {
  text-decoration: none;
  color: var(--color-text);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--color-text);
}

.nav-links a.active::after {
  background: var(--color-accent);
  transform: scaleX(1);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-select {
  background: var(--color-white);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0 10px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  cursor: pointer;
  min-height: 44px;
  transition: border-color 160ms var(--ease-smooth), background-color 160ms var(--ease-smooth);
}

.lang-select:hover {
  border-color: var(--color-ink);
  background: var(--color-sand);
}

.nav-burger {
  display: none;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 160ms var(--ease-smooth), background-color 160ms var(--ease-smooth);
}

.nav-burger:hover {
  border-color: var(--color-ink);
  background: var(--color-sand);
}

/* Buttons: 44px high, 15/600, 10px radius, centred label */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 8px 18px;
  min-height: 44px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 160ms var(--ease-smooth), border-color 160ms var(--ease-smooth),
    color 160ms var(--ease-smooth), box-shadow 160ms var(--ease-smooth);
}

.btn:hover {
  text-decoration: none;
}

/* One primary per view: the main call to action, with wider padding. */
.btn-primary {
  background: var(--color-accent-hover);
  color: var(--color-white);
  padding-inline: 24px;
}

.btn-primary:hover {
  background: var(--color-accent-active);
}

.btn-primary:active {
  background: var(--color-accent-active);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-text);
  border-color: var(--color-ink);
}

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

/* The generic .btn-secondary above is already correct against the band's --color-surface in both
   themes. The old override here painted the label --color-paper (#F3F2F2) on a #FFFFFF band, i.e.
   invisible in the light theme — a leftover from when the band had an ink background. Nothing
   rendered it until the CTA bands gained an on-site secondary action. */

/* The band's two actions are inline siblings, not a flex row: match the hero's 12px gap. */
.cta-band .btn + .btn {
  margin-left: 12px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Cards: white, 1px hairline, 14px radius, soft warm shadow */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow 200ms var(--ease-smooth), transform 200ms var(--ease-smooth);
}

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

.card h3 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 8px;
}

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

/* Icon tile: rounded square, sand fill, red glyph. */
.card-icon {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-md);
  background: var(--color-sand);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

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

.step {
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.step-num {
  font-size: 40px;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--color-accent-active);
  line-height: 1;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 3px solid var(--color-accent);
  border-radius: 0 0 2px 2px;
  width: -moz-fit-content;
  width: fit-content;
  min-width: 40px;
}

/* Badges: rectangular chips, never pills */
.badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  min-height: 44px;
  border: 1px solid var(--color-divider);
  border-radius: 9999px;
  background: var(--color-white);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  transition: border-color 160ms var(--ease-smooth);
}

.badge:hover {
  border-color: var(--color-ink);
}

/* BETA marker: chip geometry from the spec's inactive state, in ink — never red, because the
   red in these views belongs to the primary action next to it. */
.tag-beta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--color-ink);
  border-radius: 9999px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
}

/* Demo disclosure: the on-premise claims are about the shipped product, so every place that
   offers the hosted demo carries this note. Ink rule, muted small print, no accent. */
.note {
  max-width: var(--prose);
  margin: 24px 0 0;
  padding-left: 16px;
  border-left: 3px solid var(--color-accent);
  border-radius: 2px;
}

.note p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* In the footer the whole column is already small print: drop the rule and the width cap */
.footer .note {
  max-width: none;
  margin: 12px 0 0;
  padding-left: 0;
  border-left: 0;
}

.footer .note p {
  margin: 0;
  color: var(--color-text-subtle);
}

/* Comparison table */
.compare-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
}

.compare {
  width: 100%;
  border-collapse: collapse;
  /* Five columns now: us, ChatGPT, Swiss sovereign cloud, Italian cloud, plus the row label.
     Below this width .compare-wrap scrolls horizontally rather than crushing the cells. */
  min-width: 820px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* The comparison table's caption carries the data-processing statement. A UA-default caption is
   centred; the brand is flush-left. */
.compare caption {
  caption-side: top;
  text-align: left;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px;
  max-width: var(--prose);
}

.compare th,
.compare td {
  padding: 10px 12px;
  text-align: left;
  font-size: 15px;
}

.compare thead th {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--color-text-subtle);
  background: var(--color-paper);
  border-bottom: 1px solid var(--color-border);
}

.compare thead .col-us {
  color: var(--color-accent-text);
}

.compare tbody th {
  font-weight: 600;
  color: var(--color-text);
}

.compare tbody tr {
  border-bottom: 1px solid var(--color-divider);
}

.compare td {
  color: var(--color-text-muted);
}

.compare .col-us {
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-sand);
}

.compare .yes {
  color: var(--color-text);
  font-weight: 600;
}

.compare .no {
  color: var(--color-text-subtle);
}

/* Pricing */
.price-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.price-card {
  background: var(--color-white);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 24px;
  transition: box-shadow 200ms var(--ease-smooth), transform 200ms var(--ease-smooth);
}

.price-card:hover {
  box-shadow: var(--shadow-raised);
  transform: translateY(-2px);
}

.price-card.featured {
  border-color: var(--color-accent);
}

/* Active chip: solid red fill, paper text */
.price-tag {
  display: inline-flex;
  align-items: center;
  background: var(--color-ink);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  border-radius: 9999px;
  padding: 4px 10px;
  margin-bottom: 20px;
  white-space: nowrap;
}

.price-value {
  /* This slot usually holds words ("On request"), not a numeral, so it sits a
     step below the 48px figure scale. */
  font-size: 30px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--color-accent-active);
  margin: 8px 0;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.price-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  color: var(--color-text-muted);
  font-size: 15px;
  border-bottom: 1px solid var(--color-divider);
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent);
  border-radius: 1px;
  transform: rotate(-45deg);
}

/* Emphasis block: sand callout with the red accent rule, never a red fill */
.highlight-block {
  background: var(--color-sand);
  border: 0;
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: var(--measure-wide);
  margin: 0;
}

.highlight-block h2 {
  color: var(--color-text);
}

.highlight-block p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: var(--prose);
}

.highlight-block p + p {
  margin-top: 16px;
}

/* Team */
.avatar {
  width: 84px;
  height: 84px;
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  background: var(--color-sand);
  color: var(--color-accent-active);
  font-size: 26px;
  font-weight: 300;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.team-role {
  color: var(--color-text-subtle);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin-bottom: 12px;
}

.team-contact {
  font-size: 14px;
  line-height: 1.9;
}

.team-contact a {
  color: var(--color-text-muted);
}

.team-contact a:hover {
  color: var(--color-text);
}

/* Contact form */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--color-text-subtle);
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  min-height: 44px;
  transition: border-color 160ms var(--ease-smooth);
}

.form-field input:hover,
.form-field select:hover,
.form-field textarea:hover {
  border-color: var(--color-ink);
}

.form-field ::placeholder {
  color: var(--color-text-subtle);
}

.form-field textarea {
  resize: vertical;
  min-height: 130px;
}

/* The border darkens and the global 3px red focus ring does the rest */
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--color-ink);
}

.form-error {
  color: var(--color-accent-active);
  font-size: 14px;
  font-weight: 600;
  min-height: 1.2em;
  margin: 0;
}

.form-status {
  font-weight: 600;
  margin: 0 0 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
}

.status-success {
  color: var(--color-text);
  background: var(--color-sand);
  border: 1px solid var(--color-divider);
}

.status-error {
  color: var(--color-accent-active);
  background: var(--color-sand);
  border: 1px solid var(--color-accent);
}

/* Honeypot: visually removed, invisible to humans but filled by bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Legal pages */
.legal-body {
  max-width: var(--prose);
  margin: 0;
}

.legal-body h2 {
  font-size: 24px;
  letter-spacing: -0.005em;
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
}

.legal-body p {
  color: var(--color-text-muted);
}

/* Map embed: grayscale imagery per brand */
.map-embed {
  width: 100%;
  max-width: var(--prose);
  height: 380px;
  margin: 32px 0 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(1);
}

/* Footer */
.footer {
  background-color: var(--color-paper);
  border-top: 1px solid var(--color-divider);
  padding: 48px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 48px;
}

.footer h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer li {
  margin-bottom: 10px;
}

.footer a {
  color: var(--color-text-muted);
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer a:hover {
  color: var(--color-text);
}

.footer-bottom {
  border-top: 1px solid var(--color-divider);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-subtle);
}

.footer-slogan {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--color-text-subtle);
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 78px; /* 76px bar + 2px border */
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-divider);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-links.open {
    max-height: 420px;
  }

  .nav-links a {
    display: flex;
    padding: 12px 20px;
    min-height: 44px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a.active {
    color: var(--color-accent);
  }

  .nav-burger {
    display: flex;
  }

  .steps,
  .price-flow {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Visible breadcrumb. .kicker already supplies the 11px / 700 / .18em uppercase treatment; these
   rules only strip the UA list chrome (markers and the ~40px indent) and lay the crumbs on one
   line. Required: the BreadcrumbList in each page's JSON-LD has to describe something visible. */
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  margin: 0;
  padding: 0;
}

/* In-content links. The sitewide anchor is undecorated (nav and cards carry their own affordance),
   so a link inside prose needs a visible affordance that does not rely on colour alone (WCAG 1.4.1).
   Red appears only on hover, as a functional state. */
.inline-link,
.legal-body a,
.prose a {
  color: var(--color-accent-active);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.inline-link:hover,
.legal-body a:hover,
.prose a:hover {
  text-decoration-thickness: 2px;
}
