/* Lëtz Incorporate — landing + login (marketing surfaces) */
:root {
  --bg: #e8eef5;
  --bg-deep: #0b2a4a;
  --panel: #f8fafc;
  --fg: #132033;
  --muted: #5a6a7e;
  --line: #c8d4e3;
  --accent: #0f5fa8;
  --accent-2: #1a7ac4;
  --accent-fg: #ffffff;
  --good: #177a42;
  --display: "Fraunces", Georgia, serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box }
html { scroll-behavior: smooth }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  *, *::before, *::after { animation: none !important; transition: none !important }
}
body {
  margin: 0;
  font: 17px/1.5 var(--body);
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
}
a { color: var(--accent) }
a:hover { color: var(--accent-2) }
img, svg { max-width: 100%; display: block }
.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;
}

/* ----- Top bar ----- */
.m-nav {
  position: absolute; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: flex-end;
  flex-wrap: nowrap;
  padding: 18px clamp(16px, 4vw, 48px);
  gap: 10px;
}
.m-nav a.brand {
  font: 700 1.15rem/1 var(--display);
  color: #fff; text-decoration: none; letter-spacing: -0.02em;
  text-shadow: 0 1px 12px rgba(0,0,0,.25);
  margin-right: auto; /* push controls to the right */
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-nav .lang { flex: 0 0 auto }
.m-nav .link-quiet { flex: 0 0 auto }
.m-nav .nav-start { flex: 0 0 auto; white-space: nowrap }
@media (max-width: 720px) {
  .m-nav { padding: 12px 10px; gap: 6px }
  .m-nav .link-quiet { display: none !important } /* same destination as Commencer */
  .m-nav a.brand { font-size: .9rem; max-width: calc(100% - 140px) }
  .m-nav .lang { padding: 5px 6px; font-size: 12px }
  .m-nav .nav-start {
    padding: 7px 10px; font-size: 12.5px; min-height: 34px;
  }
}
@media (max-width: 380px) {
  .m-nav a.brand { font-size: .8rem; max-width: calc(100% - 120px) }
  .m-nav .lang { padding: 4px; font-size: 11px }
  .m-nav .nav-start { padding: 6px 8px; font-size: 12px; min-height: 32px }
}
.m-nav .lang {
  font: 500 13px var(--body);
  color: #fff;
  background: rgba(11, 42, 74, .9);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 8px;
  padding: 6px 10px;
}
/* Native <option> lists use a light system panel — force dark text so FR/EN/… stay readable */
.m-nav .lang option {
  color: #132033;
  background: #fff;
}
.m-nav .link-quiet {
  color: #e8eef5; text-decoration: none; font-weight: 500; font-size: 14px;
  padding: 8px 10px;
}
.m-nav .link-quiet:hover { color: #fff }

.btn {
  font: 600 15px var(--body);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
}
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent) }
.btn.primary:hover { background: var(--accent-2); color: #fff }
.btn.ghost {
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(6px);
}
.btn.ghost:hover { background: rgba(255,255,255,.22); color: #fff }
.btn.block { width: 100% }
.btn.google {
  background: #fff; color: #1f1f1f; border-color: var(--line); font-weight: 600;
}
.btn.google:hover { background: #f3f6fa }
.btn.google svg { width: 18px; height: 18px }

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(88px, 14vh, 120px) clamp(16px, 4vw, 48px) clamp(120px, 22vh, 200px);
  color: #f4f7fb;
  overflow: hidden;
  background:
    linear-gradient(165deg, rgba(8, 28, 52, .55) 0%, rgba(11, 42, 74, .72) 45%, rgba(15, 95, 168, .55) 100%),
    radial-gradient(120% 80% at 70% 20%, #3d8fd4 0%, transparent 55%),
    linear-gradient(180deg, #0b2a4a 0%, #164a78 55%, #0f5fa8 100%);
}
.hero-sky {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 50% 30% at 20% 15%, rgba(255,255,255,.14), transparent 60%),
    radial-gradient(ellipse 40% 25% at 85% 10%, rgba(255,220,160,.12), transparent 50%);
  animation: skyDrift 28s ease-in-out infinite alternate;
}
@keyframes skyDrift {
  from { transform: translate3d(0, 0, 0) scale(1) }
  to { transform: translate3d(-2%, 1%, 0) scale(1.04) }
}
.hero-skyline {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; max-width: none; /* override global svg { max-width:100% } aspect shrink */
  height: min(42vh, 380px);
  pointer-events: none; opacity: .9;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 40rem;
  opacity: 1; /* no fade-in — mid-animation looks washed out on screenshots/phones */
}
.hero-brand {
  font: 700 clamp(2.6rem, 8vw, 4.25rem)/1.02 var(--display);
  margin: 0 0 14px;
  letter-spacing: -0.03em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0,0,0,.55);
}
.hero-lead {
  margin: 0 0 28px;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.45;
  color: #fff;
  max-width: 32rem;
  text-wrap: pretty;
  text-shadow: 0 1px 14px rgba(0,0,0,.45);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center }
.hero-cta .btn.primary {
  background: #fff; color: var(--bg-deep); border-color: #fff;
  font-size: 1rem; padding: 13px 22px;
}
.hero-cta .btn.primary:hover { background: #e8eef5; color: var(--bg-deep) }
.hero-note {
  margin: 18px 0 0;
  font-size: 13.5px;
  color: rgba(244, 247, 251, .72);
}

/* ----- Sections ----- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px) }
.section { padding: clamp(56px, 10vh, 96px) 0 }
.section h2 {
  font: 700 clamp(1.6rem, 3.5vw, 2.15rem)/1.15 var(--display);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section .lead { margin: 0 0 36px; color: var(--muted); max-width: 36rem; font-size: 1.05rem }
.eyebrow {
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 8px;
}
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  counter-reset: step;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 36px }
}
.step { counter-increment: step }
.step::before {
  content: counter(step, decimal-leading-zero);
  font: 700 1.75rem/1 var(--display);
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}
.step h3 { font: 650 1.15rem/1.25 var(--display); margin: 0 0 8px }
.step p { margin: 0; color: var(--muted); font-size: .98rem }

.feature-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 18px;
}
@media (min-width: 720px) {
  .feature-list { grid-template-columns: 1fr 1fr; gap: 22px 40px }
}
.feature-list li {
  padding: 0 0 0 0;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.feature-list strong {
  display: block;
  font: 650 1.05rem/1.3 var(--display);
  margin-bottom: 4px;
}
.feature-list span { color: var(--muted); font-size: .95rem }

.band {
  background: var(--bg-deep);
  color: #e8eef5;
}
.band .lead { color: rgba(232, 238, 245, .78) }
.band .feature-list li { border-top-color: rgba(255,255,255,.15) }
.band .feature-list span { color: rgba(232, 238, 245, .72) }
.band a { color: #9ec9f0 }

.langs {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px;
}
.langs span {
  font: 600 13px var(--mono);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.cta-final {
  text-align: center;
  padding-bottom: clamp(64px, 12vh, 110px);
}
.cta-final .hero-cta { justify-content: center }

.m-footer {
  border-top: 1px solid var(--line);
  padding: 28px clamp(16px, 4vw, 48px) 40px;
  font-size: 13.5px;
  color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  justify-content: space-between;
}
.m-footer a { color: var(--muted); text-decoration: none }
.m-footer a:hover { color: var(--accent) }

/* ----- Login shell ----- */
.auth-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(180deg, #0b2a4a 0%, #0f5fa8 38%, var(--bg) 38%);
}
.auth-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 40px);
}
.auth-top a.brand {
  font: 700 1.2rem/1 var(--display);
  color: #fff; text-decoration: none;
}
.auth-top a.back { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px }
.auth-main {
  display: flex; justify-content: center; align-items: flex-start;
  padding: 8px 16px 48px;
}
.auth-panel {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px 24px;
  margin-top: 8px;
  box-shadow: 0 18px 40px rgba(11, 42, 74, .18);
}
.auth-panel h1 {
  font: 700 1.55rem/1.2 var(--display);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.auth-panel .sub { margin: 0 0 22px; color: var(--muted); font-size: 14.5px }
.auth-panel label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 14px; font-weight: 600; margin-bottom: 12px;
}
.auth-panel input {
  font: inherit; font-size: 16px; color: var(--fg);
  background: #fff; border: 1px solid var(--line);
  border-radius: 9px; padding: 11px 12px; width: 100%;
}
.auth-panel input:focus {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--muted); font-size: 13px;
}
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.tabs {
  display: flex; gap: 0; margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  flex: 1; background: none; border: 0; border-bottom: 2px solid transparent;
  padding: 10px 8px; font: 600 14px var(--body); color: var(--muted); cursor: pointer;
  margin-bottom: -1px;
}
.tabs button[aria-selected="true"] {
  color: var(--accent); border-bottom-color: var(--accent);
}
.msg {
  min-height: 1.3em; margin: 0 0 12px; font-size: 13.5px; color: #b3261e;
}
.msg.ok { color: var(--good) }
.auth-alt {
  margin-top: 18px; text-align: center; font-size: 13.5px; color: var(--muted);
}
.auth-alt a { font-weight: 600 }
.auth-foot {
  margin-top: 16px; font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.4;
}
[hidden] { display: none !important }
