/* ============================================================
   Imapsync × BarthStudio — Design 2026
   Offered free by barthstudio.com
   ============================================================ */

/* ---- Design Tokens (BarthStudio brand) ---- */
:root {
  --bg:           #fdfbf5;
  --surface:      #ffffff;
  --surface-2:    #f5f3ec;
  --text:         #000000;
  --muted:        #333333;
  --muted-2:      #666666;
  --line:         #111111;
  --line-soft:    #e6e3da;
  --btn-bg:       #000000;
  --btn-fg:       #ffffff;
  --font-heading: "Syne", sans-serif;
  --font-body:    "Plus Jakarta Sans", sans-serif;
  --frame:        1170px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 66px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ---- Accessibility ---- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; border-radius: 2px; }

/* ---- Shared layout ---- */
.section-inner {
  width: min(var(--frame), calc(100% - 32px));
  margin: 0 auto;
  padding: 0 48px;
}

section { border-bottom: 1px solid var(--line); padding: 80px 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text);
  text-align: center;
  margin-bottom: 14px;
  line-height: 1.08;
}

.section-desc {
  text-align: center;
  color: var(--muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto 52px;
  line-height: 1.75;
}
.section-desc strong { color: var(--text); }

.eyebrow {
  font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 14px;
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: min(var(--frame), calc(100% - 32px));
  margin: 0 auto; padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}

.logo-link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-link:hover { text-decoration: none; }

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem; font-weight: 700; color: var(--text);
  letter-spacing: -0.01em;
}

.logo-by {
  font-size: 0.7rem; font-weight: 500; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.08em;
  padding-left: 10px; margin-left: 10px;
  border-left: 1px solid var(--line-soft);
}

.header-nav { display: flex; align-items: center; gap: 28px; }

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted-2); text-decoration: none; transition: color 0.2s;
}
.nav-link:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  font-family: var(--font-heading);
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  padding: 9px 18px; border-radius: 3px;
  text-decoration: none; transition: opacity 0.2s;
}
.nav-cta:hover { opacity: 0.75; text-decoration: none; }

/* ============================================================
   HERO
============================================================ */
.hero { padding: 88px 0 80px; background: var(--bg); }

.hero-inner { text-align: center; }

.hero-badge {
  display: inline-flex; align-items: center;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-2); border: 1px solid var(--line-soft);
  padding: 5px 16px; border-radius: 100px; margin-bottom: 32px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  font-weight: 700; letter-spacing: -0.03em; line-height: 1.04;
  color: var(--text); max-width: 900px; margin: 0 auto 24px;
}

.hero-title-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}

.hero-subtitle {
  font-size: 1.05rem; color: var(--muted);
  max-width: 580px; margin: 0 auto 44px; line-height: 1.75;
}
.hero-subtitle strong { color: var(--text); }

.hero-stats {
  display: flex; justify-content: center; align-items: stretch;
  border: 1px solid var(--line-soft); width: fit-content;
  margin: 0 auto 48px; overflow: hidden;
}

.stat {
  display: flex; flex-direction: column; align-items: center;
  gap: 5px; padding: 18px 32px;
  border-right: 1px solid var(--line-soft);
}
.stat:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.35rem; font-weight: 700;
  color: var(--text); letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.67rem; font-weight: 500;
  color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.1em;
}

.stat-divider { display: none; }

.cta-button {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-heading);
  font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 3px; text-decoration: none; transition: opacity 0.2s;
}
.cta-button:hover { opacity: 0.75; text-decoration: none; }

/* ============================================================
   WHAT IS IMAPSYNC
============================================================ */
.what-is { background: var(--surface); }

.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0; border: 1px solid var(--line-soft); overflow: hidden;
}

.info-card {
  padding: 30px 26px; border-right: 1px solid var(--line-soft);
  background: var(--surface); transition: background 0.2s;
}
.info-card:last-child { border-right: none; }
.info-card:hover { background: var(--surface-2); }

.info-card-icon { font-size: 1.5rem; margin-bottom: 14px; }

.info-card h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.03em;
}
.info-card p { font-size: 0.875rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   SYNC FORM SECTION
============================================================ */
#sync-form { background: var(--bg); }

.form-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; align-items: start; margin-bottom: 20px;
}

/* ---- Account Cards ---- */
.account-card {
  border: 1px solid var(--line-soft);
  padding: 28px 24px; background: var(--surface);
}

.account-card--source      { border-top: 3px solid #2563eb; }
.account-card--destination { border-top: 3px solid #059669; }

.account-card-header {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 24px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.account-badge {
  font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 100px;
}
.source-badge { background: #dbeafe; color: #1d4ed8; }
.dest-badge   { background: #d1fae5; color: #047857; }

.account-card-title {
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: 7px;
}

.account-fieldset { border: none; padding: 0; display: flex; flex-direction: column; gap: 18px; }

/* ---- Form Fields ---- */
.field-group { display: flex; flex-direction: column; gap: 7px; }

.field-label {
  font-size: 0.74rem; font-weight: 600; color: var(--text);
  text-transform: uppercase; letter-spacing: 0.1em;
}
.field-hint { font-size: 0.72rem; color: var(--muted-2); font-weight: 400; text-transform: none; letter-spacing: 0; }

.field-label-row { display: flex; justify-content: space-between; align-items: center; }

.input-wrapper { position: relative; display: flex; align-items: center; }

.input-icon { position: absolute; left: 0; color: var(--muted-2); pointer-events: none; flex-shrink: 0; }

.form-input {
  width: 100%; padding: 10px 8px 10px 28px;
  background: transparent; border: none;
  border-bottom: 1px solid var(--line);
  color: var(--text); font-family: var(--font-body);
  font-size: 0.9rem; outline: none;
  transition: border-color 0.2s; border-radius: 0;
}
.form-input::placeholder { color: var(--muted-2); }
.form-input:focus { border-bottom-color: #2563eb; }

.toggle-password {
  font-size: 0.75rem; color: var(--muted-2);
  display: flex; align-items: center; gap: 4px;
  cursor: pointer; user-select: none;
}
.toggle-password input { cursor: pointer; }

.toggle-label {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 0.82rem; color: var(--muted); cursor: pointer; line-height: 1.5;
}
.toggle-checkbox { cursor: pointer; margin-top: 2px; }

/* ---- Middle Params Column ---- */
.params-column {
  display: flex; flex-direction: column; align-items: center;
  gap: 16px; padding-top: 44px;
}

.swap-area { display: flex; flex-direction: column; align-items: center; gap: 8px; }

.sync-arrow { color: var(--muted-2); }

.btn-swap {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; background: transparent;
  border: 1px solid var(--line-soft); color: var(--muted);
  font-family: var(--font-heading);
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-swap:hover { background: var(--text); color: var(--btn-fg); border-color: var(--text); }

.options-panel {
  width: 100%; border: 1px solid var(--line-soft);
  padding: 16px; background: var(--surface);
}

.options-title {
  font-family: var(--font-heading); font-size: 0.63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--muted-2); margin-bottom: 12px;
}

.option-label {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; font-size: 0.8rem; color: var(--muted); cursor: pointer;
  border-bottom: 1px solid var(--line-soft); transition: color 0.2s;
}
.option-label:last-child { border-bottom: none; }
.option-label:hover { color: var(--text); }
.option-hint { font-size: 0.72rem; color: var(--muted-2); }
.option-checkbox { cursor: pointer; flex-shrink: 0; accent-color: var(--text); }

.extra-param-wrap { width: 100%; }

.btn-extra {
  width: 100%; padding: 9px 14px; background: transparent;
  border: 1px solid var(--line-soft); color: var(--muted-2);
  font-family: var(--font-body); font-size: 0.75rem; cursor: pointer;
  transition: border-color 0.2s, color 0.2s; text-align: center;
}
.btn-extra:hover { border-color: var(--text); color: var(--text); }

/* ---- Action Buttons ---- */
.action-buttons {
  display: flex; justify-content: center; gap: 12px;
  margin-top: 8px; margin-bottom: 44px; flex-wrap: wrap;
}

.btn-sync {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 40px; background: var(--btn-bg); border: none;
  color: var(--btn-fg); font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; transition: opacity 0.2s; border-radius: 3px;
}
.btn-sync:hover:not(:disabled) { opacity: 0.78; }
.btn-sync:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-abort {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; background: transparent;
  border: 1px solid #dc2626; color: #dc2626;
  font-family: var(--font-heading);
  font-size: 0.9rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer; transition: background 0.2s, color 0.2s, opacity 0.2s;
  border-radius: 3px;
}
.btn-abort:hover:not(:disabled) { background: #dc2626; color: #fff; }
.btn-abort:disabled { opacity: 0.3; cursor: not-allowed; }

/* ============================================================
   PROGRESS SECTION
============================================================ */
.progress-section { margin-top: 8px; }

.eta-display {
  text-align: center; font-family: "Courier New", monospace;
  font-size: 0.95rem; color: var(--muted); padding: 10px;
  min-height: 44px; margin-bottom: 12px;
  border: 1px solid var(--line-soft); background: var(--surface-2);
}

.progress-track {
  height: 5px; background: var(--line-soft); overflow: hidden;
  display: flex; margin-bottom: 24px;
}
.progress-fill { height: 100%; font-size: 0; transition: width 0.6s ease; }
.progress-fill--done { background: var(--text); }
.progress-fill--left { background: var(--line-soft); }

.consoles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.console-panel {
  border: 1px solid var(--line-soft); background: var(--surface);
  display: flex; flex-direction: column;
}

.console-header {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 14px; background: var(--surface-2);
  border-bottom: 1px solid var(--line-soft); flex-shrink: 0;
}

.console-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.console-dot--red    { background: #ef4444; }
.console-dot--yellow { background: #f59e0b; }
.console-dot--green  { background: #22c55e; }

.console-title {
  font-size: 0.72rem; color: var(--muted-2);
  font-family: "Courier New", monospace; margin-left: 5px; flex: 1;
}

.console-link { font-size: 0.72rem; color: var(--muted-2); text-decoration: none; }
.console-link:hover { color: var(--text); text-decoration: none; }

.console-body {
  padding: 14px 16px; min-height: 140px; max-height: 380px;
  overflow-y: auto; font-family: "Courier New", monospace;
  font-size: 0.76rem; color: var(--muted); line-height: 1.65;
  white-space: pre-wrap; word-break: break-all; flex: 1;
}

.console-footer-link {
  display: block; padding: 7px 14px; font-size: 0.72rem; color: var(--muted-2);
  border-top: 1px solid var(--line-soft); text-align: right; text-decoration: none;
}
.console-footer-link:hover { color: var(--text); text-decoration: none; }

/* ---- Full Log ---- */
.log-section { padding: 28px 0 60px; border-bottom: 1px solid var(--line); }

.full-log {
  background: var(--surface-2); border: 1px solid var(--line-soft);
  padding: 18px; font-family: "Courier New", monospace;
  font-size: 0.76rem; color: var(--muted);
  max-height: 540px; overflow-y: auto;
  white-space: pre-wrap; line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
============================================================ */
.how-it-works { background: var(--surface-2); }

.steps-grid {
  display: flex; align-items: stretch; justify-content: center;
  border: 1px solid var(--line-soft); overflow: hidden;
}

.step-card {
  flex: 1; padding: 36px 28px; text-align: center;
  border-right: 1px solid var(--line-soft);
  background: var(--surface); transition: background 0.2s;
}
.step-card:last-child { border-right: none; }
.step-card:hover { background: var(--bg); }

.step-connector { display: none; }

.step-number {
  width: 42px; height: 42px; background: var(--text); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700;
  color: var(--btn-fg); margin: 0 auto 16px;
}

.step-card h3 {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px;
}
.step-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   USE CASES
============================================================ */
.use-cases { background: var(--bg); }

.usecases-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0; border: 1px solid var(--line-soft); overflow: hidden;
}

.usecase-card {
  padding: 28px 24px; border-right: 1px solid var(--line-soft);
  background: var(--surface); transition: background 0.2s;
}
.usecase-card:last-child { border-right: none; }
.usecase-card:hover { background: var(--surface-2); }
.usecase-card h3 {
  font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600;
  color: var(--text); margin-bottom: 10px; letter-spacing: 0.01em;
}
.usecase-card p { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }

/* ============================================================
   SERVER STATS (vnstati)
============================================================ */
.stats-section { background: var(--surface); }

.stats-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-bottom: 24px;
}

.stat-chart {
  border: 1px solid var(--line-soft); background: var(--bg);
  overflow: hidden; margin: 0;
}

.stat-chart img {
  display: block; width: 100%; height: auto;
  max-height: 180px; object-fit: contain;
  background: #1a1a2e;
}

.stat-chart figcaption {
  padding: 8px 14px;
  font-family: var(--font-heading); font-size: 0.7rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted-2); border-top: 1px solid var(--line-soft);
}

.stats-note {
  text-align: center; font-size: 0.8rem; color: var(--muted-2);
  padding: 10px 0;
}
.stats-note a { color: var(--muted); text-decoration: underline; }
.stats-note a:hover { color: var(--text); }
.stats-note code {
  font-family: "Courier New", monospace; font-size: 0.78rem;
  background: var(--surface-2); padding: 2px 6px;
  border: 1px solid var(--line-soft); border-radius: 2px;
}

/* ============================================================
   FAQ
============================================================ */
.faq-section { background: var(--surface-2); }

.faq-list {
  max-width: 720px; margin: 0 auto;
  border: 1px solid var(--line-soft); overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.faq-item:last-child { border-bottom: none; }
.faq-item[open] { background: var(--bg); }

.faq-question {
  padding: 18px 22px; font-family: var(--font-heading);
  font-size: 0.92rem; font-weight: 600; color: var(--text);
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  transition: background 0.15s; user-select: none;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: '+'; font-size: 1.2rem; color: var(--muted-2);
  flex-shrink: 0; transition: transform 0.2s; line-height: 1;
  font-weight: 300;
}
.faq-item[open] .faq-question::after { transform: rotate(45deg); }
.faq-question:hover { background: var(--surface-2); }

.faq-answer { padding: 0 22px 16px; border-top: 1px solid var(--line-soft); }
.faq-answer p { padding-top: 14px; font-size: 0.875rem; color: var(--muted); line-height: 1.72; }

/* ============================================================
   HEADER ACTIONS (lang switcher + hamburger)
============================================================ */
.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 1px solid var(--line-soft); cursor: pointer; flex-shrink: 0;
}
.nav-toggle__line {
  display: block; width: 18px; height: 1.5px; background: var(--text);
  transition: transform 0.24s ease, opacity 0.18s ease;
  transform-origin: center;
}
.nav-toggle--open .nav-toggle__line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle--open .nav-toggle__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle--open .nav-toggle__line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ---- Mobile Nav Drawer ---- */
.mobile-nav {
  display: none;
  position: fixed; top: 66px; left: 0; right: 0;
  background: var(--bg); border-bottom: 2px solid var(--line);
  z-index: 99; flex-direction: column;
  padding: 8px 0 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.mobile-nav--open { display: flex; }

.mobile-nav__link {
  font-family: var(--font-heading); font-size: 0.82rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text); text-decoration: none;
  padding: 16px 24px; border-bottom: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.15s;
}
.mobile-nav__link::after { content: '\2192'; color: var(--muted-2); font-size: 1rem; }
.mobile-nav__link:hover { background: var(--surface-2); text-decoration: none; color: var(--text); }

.mobile-nav__cta {
  margin: 16px 24px 0;
  background: var(--text); color: var(--btn-fg);
  font-family: var(--font-heading); font-size: 0.82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  text-decoration: none; padding: 15px 24px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: opacity 0.2s;
}
.mobile-nav__cta:hover { opacity: 0.85; text-decoration: none; color: var(--btn-fg); }
.mobile-nav__cta::after { content: '\2193'; }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--text); }

/* Top area */
.footer-top { padding: 56px 0 40px; }

.footer-inner {
  width: min(var(--frame), calc(100% - 32px));
  margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}

.footer-brand { display: grid; gap: 16px; }

.footer-logo-link { display: inline-flex; align-items: center; }
.footer-logo-link:hover { text-decoration: none; }

.footer-logo-text {
  font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700;
  color: #fff; letter-spacing: -0.01em;
}

.footer-tagline {
  font-family: var(--font-heading); font-size: 1.25rem; font-weight: 400;
  color: rgba(255,255,255,0.7); line-height: 1.45;
}

.footer-imapsync { display: grid; gap: 8px; padding-top: 4px; }

.footer-imapsync-label {
  font-size: 0.67rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.14em; color: rgba(255,255,255,0.3);
}

.footer-imapsync-note { font-size: 0.8rem; color: rgba(255,255,255,0.45); line-height: 1.6; }
.footer-imapsync-note a { color: rgba(255,255,255,0.7); text-decoration: underline; }
.footer-imapsync-note a:hover { color: #fff; }

/* Nav band */
.footer-nav-band {
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-nav-inner {
  width: min(var(--frame), calc(100% - 32px));
  margin: 0 auto; padding: 0 48px;
}

.footer-nav-links { display: flex; flex-wrap: wrap; }

.footer-nav-links a {
  font-family: var(--font-heading); font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.45); text-decoration: none;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 16px 20px;
  border-left: 1px solid rgba(255,255,255,0.1);
  transition: color 0.2s, background 0.2s;
}
.footer-nav-links a:first-child { border-left: none; padding-left: 0; }
.footer-nav-links a:hover { color: #fff; background: rgba(255,255,255,0.04); text-decoration: none; }

/* Bottom bar */
.footer-bottom {
  padding: 16px 0;
}

.footer-bottom-inner {
  width: min(var(--frame), calc(100% - 32px));
  margin: 0 auto; padding: 0 48px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}

.footer-copy { font-size: 0.73rem; color: rgba(255,255,255,0.3); }
.footer-copy a { color: rgba(255,255,255,0.5); text-decoration: underline; }
.footer-copy a:hover { color: #fff; }

.footer-top-link {
  font-size: 0.73rem; font-weight: 600; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: color 0.2s; letter-spacing: 0.04em;
}
.footer-top-link:hover { color: #fff; text-decoration: none; }

/* ============================================================
   BOOTSTRAP 3 — TOOLTIP (no Bootstrap CSS needed)
============================================================ */
.tooltip {
  position: absolute; z-index: 200; display: block;
  font-size: 0.73rem; line-height: 1.35;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s linear;
}
.tooltip.in { opacity: 1; }
.tooltip.top    { margin-top:  -3px; padding: 5px 0; }
.tooltip.right  { margin-left:  3px; padding: 0 5px; }
.tooltip.bottom { margin-top:   3px; padding: 5px 0; }
.tooltip.left   { margin-left: -3px; padding: 0 5px; }
.tooltip-inner {
  max-width: 220px; padding: 5px 10px;
  color: #fff; background: #111; border-radius: 2px;
  font-family: var(--font-body); font-size: 0.73rem; text-align: left;
}
.tooltip-arrow {
  position: absolute; width: 0; height: 0;
  border-color: transparent; border-style: solid;
}
.tooltip.top    .tooltip-arrow { bottom: 0;   left: 50%; margin-left: -5px; border-width: 5px 5px 0;     border-top-color:    #111; }
.tooltip.right  .tooltip-arrow { top:    50%; left:  0;  margin-top:  -5px; border-width: 5px 5px 5px 0; border-right-color:  #111; }
.tooltip.bottom .tooltip-arrow { top:    0;   left: 50%; margin-left: -5px; border-width: 0 5px 5px;     border-bottom-color: #111; }
.tooltip.left   .tooltip-arrow { top:    50%; right: 0;  margin-top:  -5px; border-width: 5px 0 5px 5px; border-left-color:   #111; }
/* Disable tooltips on touch-only devices (they block first tap) */
@media (hover: none) { .tooltip { display: none !important; } }

/* ============================================================
   SCROLLBAR
============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--line-soft); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* ============================================================
   BOOTSTRAP COLLAPSE COMPAT
============================================================ */
.collapse     { display: none; }
.collapse.in  { display: block; }
.collapsing   { position: relative; height: 0; overflow: hidden; transition: height 0.32s ease; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .header-inner { padding-left: 24px; padding-right: 24px; }
  .section-inner { padding-left: 24px; padding-right: 24px; }
  .footer-inner, .footer-nav-inner, .footer-bottom-inner { padding-left: 24px; padding-right: 24px; }
}

@media (max-width: 900px) {
  /* Form */
  .form-grid { grid-template-columns: 1fr; }
  .form-options-bar { flex-direction: column; align-items: stretch; }
  .fob-swap { border-right: none; border-bottom: 1px solid var(--line-soft); justify-content: flex-start; }
  .fob-options { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .fob-options .option-label { padding: 10px 12px; font-size: 0.82rem; }
  /* Console */
  .consoles-grid { grid-template-columns: 1fr; }
  /* Steps */
  .steps-grid { flex-direction: column; }
  .step-card { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .step-card:last-child { border-bottom: none; }
  /* Cards */
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .info-card { border-bottom: 1px solid var(--line-soft); }
  .info-card:last-child { border-bottom: none; }
  /* Use cases */
  .usecases-grid { grid-template-columns: 1fr 1fr; }
  .usecase-card { border-bottom: 1px solid var(--line-soft); }
  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 36px; }
  .footer-tagline { font-size: 1.05rem; }
}

@media (max-width: 600px) {
  /* Layout */
  section { padding: 48px 0; }
  .section-inner { padding-left: 20px; padding-right: 20px; }
  .header-inner { padding-left: 16px; padding-right: 16px; height: 58px; }
  /* Header: show hamburger, hide desktop nav + logo sub-label */
  .header-nav { display: none; }
  .nav-toggle { display: flex; }
  .logo-by { display: none; }
  .logo-text { font-size: 1rem; }
  /* Mobile nav top must match header height */
  .mobile-nav { top: 59px; }
  /* Hero */
  .hero { padding: 44px 0 36px; }
  .hero-badge { font-size: 0.65rem; padding: 4px 12px; }
  .hero-title { font-size: clamp(1.75rem, 7.5vw, 2.8rem); }
  .hero-subtitle { font-size: 0.9rem; }
  .hero-stats { flex-direction: column; width: 100%; }
  .stat { border-right: none; border-bottom: 1px solid var(--line-soft); width: 100%; padding: 12px 20px; }
  .stat:last-child { border-bottom: none; }
  .cta-button { width: 100%; justify-content: center; text-align: center; }
  /* Cards */
  .cards-grid { grid-template-columns: 1fr; }
  .info-card { border-right: none; }
  .usecases-grid { grid-template-columns: 1fr; }
  .usecase-card { border-right: none; }
  /* Stats */
  .stats-grid { grid-template-columns: 1fr; }
  /* Form */
  .account-card { padding: 20px 16px; }
  .form-grid { gap: 12px; }
  .action-buttons { flex-direction: column; align-items: stretch; }
  .btn-sync, .btn-abort { justify-content: center; width: 100%; }
  /* Footer */
  .footer-top { padding: 40px 0 28px; }
  .footer-inner { padding-left: 20px; padding-right: 20px; }
  .footer-tagline { font-size: 1rem; }
  .footer-nav-links { flex-direction: column; }
  .footer-nav-links a { border-left: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 14px 0; }
  .footer-nav-links a:first-child { padding-left: 0; }
  .footer-nav-links a:last-child { border-bottom: none; }
  .footer-nav-inner { padding-left: 20px; padding-right: 20px; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; padding-left: 20px; padding-right: 20px; }
  /* FAQ */
  .faq-question { font-size: 0.85rem; padding: 14px 16px; }
}

@media (max-width: 380px) {
  .logo-text { font-size: 0.92rem; }
  .lang-btn { padding: 6px 9px; font-size: 0.63rem; }
  .nav-toggle { width: 36px; height: 36px; }
}

/* ---- Language Switcher ---- */
.lang-switcher {
  display: flex; align-items: center;
  border: 1px solid var(--line-soft); overflow: hidden; flex-shrink: 0;
}
.lang-btn {
  font-family: var(--font-heading); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 12px; line-height: 1;
  background: transparent; border: none; color: var(--muted-2);
  cursor: pointer; transition: background 0.18s, color 0.18s;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--line-soft); }
.lang-btn--active { background: var(--text); color: var(--btn-fg); }

/* ---- i18n block visibility ---- */
html[lang="en"] .i18n-fr { display: none !important; }
html[lang="fr"] .i18n-en { display: none !important; }

/* ---- Form Options Bar ---- */
.form-options-bar {
  display: flex; align-items: stretch; flex-wrap: wrap;
  border: 1px solid var(--line-soft); background: var(--surface);
  margin-bottom: 28px;
}
.fob-swap {
  display: flex; align-items: center; justify-content: center;
  padding: 12px 20px; flex-shrink: 0;
  border-right: 1px solid var(--line-soft);
}
.fob-options {
  flex: 1; display: flex; flex-wrap: wrap; align-items: center;
  border-right: 1px solid var(--line-soft); min-width: 0;
}
.fob-options .option-label {
  border-bottom: none; padding: 12px 16px;
  border-right: 1px solid var(--line-soft);
}
.fob-options .option-label:last-child { border-right: none; }
.fob-extra {
  display: flex; align-items: center; padding: 10px 16px; flex-shrink: 0;
}
.fob-extra .btn-extra { width: auto; white-space: nowrap; }


