/* ======================================================================
   Automata France landing — page chrome (hors DS tokens / FAQ)
   Utilise exclusivement les tokens `--v-*` du design system Vancelian.
   ====================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--v-font-ui);
  color: var(--v-fg);
  background: var(--v-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* VEyebrow default tone=light */
.v-caption {
  color: var(--v-fg-muted);
}

/* ——— Topnav ——— */
.af-topnav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--v-fg-10);
}

.af-topnav__inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}

.af-topnav__actions {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Compact language switch — one horizontal control next to Connect */
.af-lang {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--v-fg-10);
  border-radius: var(--v-radius-pill);
  background: #fff;
}

.af-lang__btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: 2.1rem;
  height: 28px;
  padding: 0 0.55rem;
  border: 0;
  border-radius: var(--v-radius-pill);
  background: transparent;
  font-family: var(--v-font-ui);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  color: var(--v-fg-muted);
  cursor: pointer;
  transition:
    color var(--v-motion-fast) var(--v-ease-out),
    background var(--v-motion-fast) var(--v-ease-out);
}

.af-lang__btn:hover:not(:disabled) {
  color: var(--v-fg);
}

.af-lang__btn.is-active {
  color: #fff;
  background: var(--v-fg);
}

.af-lang__btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.af-topnav__actions .v-btn {
  flex-shrink: 0;
}

.af-logo {
  display: block;
  height: 22px;
  width: auto;
  max-width: min(200px, 52vw);
}

/* Primary CTA weight: DS btn is 500; topnav DS uses semibold feel via font-weight inherit — keep DS */
.af-topnav .v-btn--primary {
  font-weight: 600;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--v-bg);
  min-height: 560px;
}

@media (min-width: 861px) {
  .hero {
    aspect-ratio: 16 / 9;
    max-height: 100vh;
  }
}

.hero-device-stage {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  user-select: none;
  inset: 0;
}

.hero-device-rail {
  position: absolute;
  inset: 0;
}

.hero-device-web {
  animation: af-rise-web 1s var(--v-ease-out) 0.15s both;
}

@media (min-width: 861px) {
  .hero-device-rail {
    inset: auto;
    left: 48%;
    top: 24%;
    width: 52%;
    display: grid;
  }

  .hero-device-rail .hero-device-web {
    position: relative;
    grid-area: 1 / 1;
    left: auto;
    top: auto;
    right: auto;
    width: 94%;
    justify-self: end;
    align-self: start;
  }
}

@media (max-width: 860px) {
  .hero-device-web {
    position: absolute;
    left: 28%;
    right: auto;
    top: auto;
    bottom: -3%;
    width: 72%;
  }

  .hero__inner {
    padding-bottom: 12rem !important;
  }
}

@media (max-width: 520px) {
  .hero-device-web {
    left: 18%;
    bottom: -3%;
    width: 82%;
  }

  .hero__inner {
    padding-bottom: 10rem !important;
  }
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  min-height: inherit;
}

@media (min-width: 861px) {
  .hero__inner {
    min-height: 100%;
    padding-top: 5rem;
    padding-bottom: 5rem;
    align-items: center;
  }
}

.hero__copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 40rem;
}

.hero__copy .lead {
  margin: 0;
  font-family: var(--v-font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--v-fg-body);
  max-width: 28rem;
}

.hero__copy .muted {
  margin: 0;
  font-family: var(--v-font-ui);
  font-size: 12px;
  line-height: 1.5;
  color: var(--v-fg-muted);
  max-width: 28rem;
  opacity: 0.9;
}

.hero__copy .cta-row {
  margin-top: 0.5rem;
}

.ps-browser {
  width: 100%;
  background: #1a1917;
  border-radius: var(--v-radius-modal);
  overflow: hidden;
  box-shadow: var(--v-elev-medium);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-browser__bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  background: #2a2620;
}

.ps-browser__dot {
  width: 10px;
  height: 10px;
  border-radius: var(--v-radius-pill);
  background: rgba(255, 255, 255, 0.3);
}

.ps-browser__addr {
  flex: 1;
  height: 15px;
  margin-left: 12px;
  border-radius: var(--v-radius-pill);
  background: rgba(255, 255, 255, 0.12);
}

.ps-browser__screen {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f0ede8;
}

.ps-browser__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

@keyframes af-rise-web {
  from { opacity: 0; transform: translateY(46px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ——— About ——— */
.about {
  background: var(--v-bg-photo);
  padding: 5rem 0;
}

@media (min-width: 1024px) {
  .about { padding: 7rem 0; }
}

.about__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .about__grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.about li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-family: var(--v-font-ui);
  font-size: 14px;
  line-height: 1.55;
  color: var(--v-fg-body);
}

.about .success {
  display: inline-flex;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--v-fg);
}

.about__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.about__media img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  border-radius: var(--v-radius-2xl);
  box-shadow: var(--v-elev-medium);
}

@media (min-width: 900px) {
  .about__media {
    justify-content: flex-end;
  }
  .about__media img {
    max-width: min(100%, 440px);
  }
}

/* ——— Final CTA ——— */
.final-cta {
  background: var(--v-dark-bg);
  color: var(--v-dark-fg);
  padding: 6rem 0;
  text-align: center;
}

@media (min-width: 1024px) {
  .final-cta { padding: 8rem 0; }
}

.final-cta__inner {
  max-width: 45rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta .v-caption {
  color: var(--v-fg-light);
}

.final-cta .v-title-mixed {
  margin-top: 2rem;
  color: var(--v-dark-fg);
}

.final-cta .body {
  margin: 2rem 0 0;
  max-width: 33.75rem;
  font-family: var(--v-font-ui);
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.final-cta .v-btn {
  margin-top: 3rem;
}

/* ——— Footer (DS: brand left, link columns right) ——— */
.site-footer {
  background: var(--v-dark-bg);
  color: var(--v-dark-fg);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__inner {
  padding-top: 5rem;
  padding-bottom: 2rem;
}

.site-footer__grid {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.5rem;
  text-align: left;
  width: 100%;
}

@media (min-width: 768px) {
  .site-footer__grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 0 1 22rem;
  max-width: 22rem;
}

.site-footer__navs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 2.5rem 4rem;
}

@media (min-width: 768px) {
  .site-footer__navs {
    margin-left: auto;
    justify-content: flex-end;
  }
}

.site-footer__navs nav {
  min-width: 10rem;
}

.site-footer__logo {
  display: block;
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
}

.site-footer__tagline {
  margin: 1.25rem 0 0;
  font-family: var(--v-font-editorial);
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  line-height: 1.5;
  color: var(--v-dark-fg);
}

.site-footer__blurb {
  margin: 1.25rem 0 0;
  font-family: var(--v-font-ui);
  font-size: 12px;
  line-height: 1.5;
  color: rgba(237, 236, 236, 0.5);
}

.site-footer__col-title {
  margin: 0 0 1.25rem;
  font-family: var(--v-font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #8e867a;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.site-footer__links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__links a {
  font-family: var(--v-font-ui);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: #edecec;
  text-decoration: none;
  transition: opacity var(--v-motion-fast) var(--v-ease-out);
}

.site-footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__rule {
  margin: 2.5rem 0 1.5rem;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  font-family: var(--v-font-ui);
  font-size: 11px;
  line-height: 1.5;
  color: rgba(237, 236, 236, 0.4);
  text-align: left;
}

.site-footer__meta p {
  margin: 0;
}

.site-footer__legal {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  font-family: var(--v-font-ui);
  font-size: 10px;
  line-height: 1.5;
  color: rgba(237, 236, 236, 0.3);
  text-align: left;
}

.site-footer__legal p {
  margin: 0;
}

.site-footer__legal a {
  color: rgba(237, 236, 236, 0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__legal a:hover {
  color: #edecec;
}
