/* otmo7 — Scandinavian Swiss Modernist Design System */
:root {
  color-scheme: light dark;

  /* Swiss Modernist Light Palette */
  --bg-light: #fafafa;
  --bg-card-light: #ffffff;
  --bg-card-subtle-light: #f4f4f5;
  --border-light: #e4e4e7;
  --border-subtle-light: #d4d4d8;
  --text-light: #09090b;
  --text-muted-light: #52525b;
  --primary-light: #18181b;
  --primary-hover-light: #27272a;
  --primary-text-light: #fafafa;
  --accent-light: #0284c7;
  --accent-subtle-light: #f0f9ff;
  --accent-border-light: #bae6fd;
  --success-light: #047857;
  --success-subtle-light: #ecfdf5;
  --card-shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);

  /* Swiss Modernist Dark Palette */
  --bg-dark: #09090b;
  --bg-card-dark: #121215;
  --bg-card-subtle-dark: #18181b;
  --border-dark: #27272a;
  --border-subtle-dark: #3f3f46;
  --text-dark: #fafafa;
  --text-muted-dark: #a1a1aa;
  --primary-dark: #f4f4f5;
  --primary-hover-dark: #e4e4e7;
  --primary-text-dark: #09090b;
  --accent-dark: #38bdf8;
  --accent-subtle-dark: #082f49;
  --accent-border-dark: #0369a1;
  --success-dark: #34d399;
  --success-subtle-dark: #064e3b;
  --card-shadow-dark: 0 1px 3px 0 rgba(0, 0, 0, 0.4);

  /* Default assignment */
  --bg: var(--bg-light);
  --bg-card: var(--bg-card-light);
  --bg-card-subtle: var(--bg-card-subtle-light);
  --border: var(--border-light);
  --border-subtle: var(--border-subtle-light);
  --text: var(--text-light);
  --text-muted: var(--text-muted-light);
  --primary: var(--primary-light);
  --primary-hover: var(--primary-hover-light);
  --primary-text: var(--primary-text-light);
  --accent: var(--accent-light);
  --accent-subtle: var(--accent-subtle-light);
  --accent-border: var(--accent-border-light);
  --success: var(--success-light);
  --success-subtle: var(--success-subtle-light);
  --card-shadow: var(--card-shadow-light);

  @media (prefers-color-scheme: dark) {
    --bg: var(--bg-dark);
    --bg-card: var(--bg-card-dark);
    --bg-card-subtle: var(--bg-card-subtle-dark);
    --border: var(--border-dark);
    --border-subtle: var(--border-subtle-dark);
    --text: var(--text-dark);
    --text-muted: var(--text-muted-dark);
    --primary: var(--primary-dark);
    --primary-hover: var(--primary-hover-dark);
    --primary-text: var(--primary-text-dark);
    --accent: var(--accent-dark);
    --accent-subtle: var(--accent-subtle-dark);
    --accent-border: var(--accent-border-dark);
    --success: var(--success-dark);
    --success-subtle: var(--success-subtle-dark);
    --card-shadow: var(--card-shadow-dark);
  }

  @supports (color: light-dark(#fff, #000)) {
    --bg: light-dark(var(--bg-light), var(--bg-dark));
    --bg-card: light-dark(var(--bg-card-light), var(--bg-card-dark));
    --bg-card-subtle: light-dark(var(--bg-card-subtle-light), var(--bg-card-subtle-dark));
    --border: light-dark(var(--border-light), var(--border-dark));
    --border-subtle: light-dark(var(--border-subtle-light), var(--border-subtle-dark));
    --text: light-dark(var(--text-light), var(--text-dark));
    --text-muted: light-dark(var(--text-muted-light), var(--text-muted-dark));
    --primary: light-dark(var(--primary-light), var(--primary-dark));
    --primary-hover: light-dark(var(--primary-hover-light), var(--primary-hover-dark));
    --primary-text: light-dark(var(--primary-text-light), var(--primary-text-dark));
    --accent: light-dark(var(--accent-light), var(--accent-dark));
    --accent-subtle: light-dark(var(--accent-subtle-light), var(--accent-subtle-dark));
    --accent-border: light-dark(var(--accent-border-light), var(--accent-border-dark));
    --success: light-dark(var(--success-light), var(--success-dark));
    --success-subtle: light-dark(var(--success-subtle-light), var(--success-subtle-dark));
    --card-shadow: light-dark(var(--card-shadow-light), var(--card-shadow-dark));
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Visible to screen readers, invisible on screen. Used for form labels that would
   otherwise crowd the input they describe. */
.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 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  background-color: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  accent-color: var(--accent);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Bilingual switcher rules */
html[lang="en"] [data-lang="fr"],
html:not([lang="fr"]) [data-lang="fr"] {
  display: none !important;
}

html[lang="fr"] [data-lang="en"] {
  display: none !important;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top Status Bar */
.status-bar {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
}

.status-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.status-tag {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.status-location {
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}

.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.brand-divider {
  color: var(--border-subtle);
  font-weight: 300;
}

.brand-sub {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

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

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

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0.2rem 0.35rem;
  border-radius: 4px;
}

.lang-btn[aria-pressed="true"] {
  color: var(--text);
  font-weight: 700;
}

.lang-separator {
  color: var(--border-subtle);
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-header-meta {
  margin-bottom: 1.25rem;
}

.meta-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-border);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 1.25rem;
  max-width: 900px;
}

.hero .lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 780px;
  margin-bottom: 2.5rem;
}

/* Interactive Scanner Hero Box */
.scanner-hero-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: var(--card-shadow);
  margin-bottom: 2.5rem;
  max-width: 820px;
}

.scanner-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.scanner-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.scanner-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.scanner-input-group {
  display: flex;
  align-items: stretch;
  background-color: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.scanner-input-group:focus-within {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.input-prefix {
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background-color: var(--bg-card-subtle);
  border-right: 1px solid var(--border);
  user-select: none;
}

.scanner-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  outline: none;
  font-family: inherit;
}

.scanner-input-group input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 0;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

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

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

.btn-outline {
  background-color: transparent;
  color: var(--text);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
}

.btn-outline:hover {
  background-color: var(--bg-card-subtle);
  border-color: var(--text);
}

.btn-block {
  width: 100%;
}

.scanner-help-text {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.6rem;
}

/* Dynamic Scanner Results Box */
.scanner-results {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.results-loading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--border);
  border-top-color: var(--text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.results-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.results-domain {
  font-size: 1.05rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.results-grade-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.results-grade-warning {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.results-stat {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.75rem;
  border-radius: 4px;
}

.results-stat-num {
  font-size: 1.25rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.results-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.results-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.results-action-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Compliance Ribbon */
.compliance-ribbon {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 960px;
}

.ribbon-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: 6px;
}

.ribbon-icon {
  font-size: 1.25rem;
}

.ribbon-item strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.ribbon-item span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Brand Story Section */
.section-story {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-card);
}

.section-header {
  max-width: 780px;
  margin-bottom: 3rem;
}

.section-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.section-header h2 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.section-header p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.story-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
}

.story-card-seven {
  background-color: var(--accent-subtle);
  border-color: var(--accent-border);
}

.story-letter {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.story-card-seven .story-letter {
  color: var(--accent);
}

.story-stage {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.story-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.story-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Institutional Comparison Table */
#comparison {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background-color: var(--bg-card);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background-color: var(--bg-card-subtle);
  font-weight: 700;
  color: var(--text);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.comparison-table th.col-highlight {
  background-color: var(--accent-subtle);
  color: var(--accent);
  border-left: 1px solid var(--accent-border);
}

.comparison-table td.dim-good {
  background-color: rgba(2, 132, 199, 0.03);
  border-left: 1px solid var(--border);
  font-weight: 500;
  color: var(--text);
}

.comparison-table td.dim-bad {
  color: var(--text-muted);
}

/* Offer Ladder */
#offer {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-card);
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.offer-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}

.offer-card.featured {
  border: 2px solid var(--text);
  box-shadow: var(--card-shadow);
  position: relative;
}

.offer-step {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.offer-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.offer-price {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  margin-bottom: 1rem;
}

.offer-price span {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.offer-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  min-height: 4rem;
}

.offer-features {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.offer-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.offer-features svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--success);
}

/* Proof Section */
#proof {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
}

.proof-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3rem 2rem;
}

.proof-header {
  max-width: 700px;
  margin-bottom: 2.5rem;
}

.proof-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--success);
  margin-bottom: 0.5rem;
  display: inline-block;
}

.proof-header h2 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.proof-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.proof-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.stat-item {
  background-color: var(--bg);
  border: 1px solid var(--border);
  padding: 1.25rem;
  border-radius: 6px;
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.proof-guarantee {
  background-color: var(--bg-card-subtle);
  border-left: 3px solid var(--primary);
  padding: 1rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.proof-guarantee strong {
  color: var(--text);
  margin-right: 0.35rem;
}

/* Contact Section */
.contact-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg-card);
}

.contact-wrap {
  max-width: 780px;
}

.contact-wrap h2 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.contact-wrap p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-card {
  background-color: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
}

.contact-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.contact-email-link {
  font-size: 1.75rem;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.contact-meta {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  padding: 3.5rem 0 2.5rem;
  background-color: var(--bg);
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.footer-brand .brand-mark {
  margin-bottom: 0.5rem;
  display: inline-block;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
}

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

.footer-col span {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }

  .main-nav {
    display: none;
  }

  .scanner-input-group {
    flex-direction: column;
    border-radius: 6px;
  }

  .input-prefix {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.6rem 0.85rem;
  }

  .btn {
    border-radius: 0 0 6px 6px;
  }
}
