:root {
  color-scheme: dark;
  --bg: #080b0f;
  --panel: #10161d;
  --panel-strong: #151d26;
  --text: #f6f7f2;
  --muted: #aab2b8;
  --line: rgba(255, 255, 255, 0.14);
  --green: #0b8f45;
  --green-strong: #13b85f;
  --teal: #12aaa2;
  --orange: #ff9d2e;
  --yellow: #f7c948;
  --red: #dd2f35;
  --ink: #050608;
  --radius: 8px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body::selection {
  background: var(--yellow);
  color: var(--ink);
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 11, 15, 0.88);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.hero-stats,
.feature-grid,
.login-section,
.dashboard-points,
.customer-display-points,
.footer-links,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  min-width: 0;
}

.site-brand-logo {
  width: 156px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--text);
  color: var(--ink);
  font-weight: 950;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.76rem;
}

.site-nav {
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.site-nav a {
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 800;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text);
  outline: none;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 18px;
  font: inherit;
  font-size: 1rem;
  font-weight: 950;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.btn-primary {
  background: var(--green);
  color: white;
  box-shadow: 0 16px 34px rgba(11, 143, 69, 0.26);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--green-strong);
}

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

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.marketing-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 132px clamp(18px, 5vw, 72px) 72px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.96) 0%, rgba(8, 11, 15, 0.78) 38%, rgba(8, 11, 15, 0.22) 100%),
    url("/site-assets/caisse-vendeur.png") center / cover no-repeat;
}

.marketing-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 26vh;
  background: linear-gradient(0deg, var(--bg), rgba(8, 11, 15, 0));
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
dl,
dd {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 6.8rem;
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-brand-heading {
  width: min(520px, 82vw);
  margin-bottom: 24px;
  line-height: 0;
}

.hero-brand-heading img {
  width: 100%;
  height: auto;
}

h2 {
  margin-bottom: 18px;
  font-size: 3.7rem;
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.18rem;
}

.hero-copy {
  max-width: 660px;
  margin-bottom: 28px;
  color: #dde3e6;
  font-size: 1.28rem;
  line-height: 1.55;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 34px;
}

.hero-stats {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-stats div {
  min-width: 148px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(16, 22, 29, 0.72);
}

.hero-stats dt {
  font-size: 1.35rem;
  font-weight: 950;
}

.hero-stats dd {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.section {
  padding: 80px clamp(18px, 5vw, 72px);
}

.section-heading {
  width: min(880px, 100%);
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.dashboard-copy p,
.login-copy p,
.showcase-card p,
.feature-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.section-bright {
  background: #f7f7f0;
  color: #101418;
}

.section-bright .eyebrow {
  color: #0b7f3f;
}

.section-bright .section-heading p,
.section-bright .showcase-card p {
  color: #53606a;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.showcase-card {
  overflow: hidden;
  border: 1px solid rgba(16, 20, 24, 0.12);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 20px 60px rgba(5, 8, 12, 0.12);
}

.showcase-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid rgba(16, 20, 24, 0.1);
}

.showcase-card div {
  padding: 20px;
}

.feature-band {
  background: #0c1117;
}

.feature-grid {
  align-items: stretch;
  gap: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--panel);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 28px;
  color: var(--yellow);
  font-weight: 950;
}

.shopping-scan-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(8, 11, 15, 0.95) 0%, rgba(8, 11, 15, 0.82) 42%, rgba(8, 11, 15, 0.3) 100%),
    url("/site-assets/scan-ean.png") center / cover no-repeat;
}

.scan-copy {
  display: grid;
  align-content: center;
  max-width: 680px;
}

.scan-copy p:not(.eyebrow),
.scan-steps p,
.time-card span {
  color: #dce4e7;
  line-height: 1.55;
}

.time-card {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  border: 1px solid rgba(19, 184, 95, 0.38);
  border-radius: var(--radius);
  padding: 18px;
  background: rgba(11, 143, 69, 0.18);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.time-card strong {
  color: white;
  font-size: 1.15rem;
}

.scan-steps {
  display: grid;
  gap: 14px;
  align-content: center;
}

.scan-steps article {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(10, 15, 20, 0.82);
  backdrop-filter: blur(12px);
}

.scan-steps span {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--green-strong);
  font-weight: 950;
}

.customer-display-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(520px, 1.2fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  background: #f7f7f0;
  color: #101418;
}

.customer-display-copy {
  max-width: 650px;
}

.customer-display-copy .eyebrow {
  color: #0b7f3f;
}

.customer-display-copy p:not(.eyebrow) {
  color: #53606a;
  line-height: 1.6;
}

.customer-display-points {
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.customer-display-points span {
  border: 1px solid rgba(16, 20, 24, 0.14);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: #ffffff;
  color: #26313a;
  font-size: 0.88rem;
  font-weight: 850;
}

.customer-screen-preview {
  overflow: hidden;
  border: 10px solid #11161c;
  border-radius: var(--radius);
  background: #f8faf9;
  color: #11161c;
  box-shadow: 0 28px 80px rgba(5, 8, 12, 0.22);
}

.customer-screen-topbar {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 22px;
  background: #0a1016;
  color: white;
  font-size: 1rem;
  font-weight: 900;
}

.customer-screen-topbar img {
  width: 170px;
  height: auto;
}

.customer-screen-lines {
  display: grid;
  padding: 8px 22px 2px;
}

.customer-screen-lines div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(92px, auto);
  gap: 18px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid #dce2df;
}

.customer-screen-lines strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.customer-screen-lines span {
  color: #66727a;
  font-size: 0.88rem;
  font-weight: 750;
}

.customer-screen-lines b {
  text-align: right;
  font-size: 1.08rem;
}

.customer-screen-total {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  background: #08773c;
  color: white;
  font-size: 1.25rem;
  font-weight: 900;
}

.customer-screen-total strong {
  font-size: 2.2rem;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: #090d12;
}

.dashboard-copy {
  max-width: 620px;
}

.dashboard-points {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.dashboard-points span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--panel);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
}

.screen-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-strong);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

.screen-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.pricing-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 440px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  background: #f7f7f0;
  color: #101418;
}

.pricing-copy {
  max-width: 720px;
}

.pricing-copy .eyebrow {
  color: #0b7f3f;
}

.pricing-copy p:not(.eyebrow) {
  color: #53606a;
  line-height: 1.55;
}

.pricing-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(16, 20, 24, 0.14);
  border-radius: var(--radius);
  padding: 26px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(5, 8, 12, 0.14);
}

.pricing-kicker,
.pricing-period {
  color: #53606a;
  font-size: 0.92rem;
  font-weight: 900;
}

.pricing-card strong {
  color: #0b8f45;
  font-size: 3rem;
  line-height: 1;
}

.pricing-card p {
  margin: 8px 0 10px;
  color: #53606a;
  line-height: 1.55;
}

.login-section {
  justify-content: space-between;
  gap: clamp(24px, 5vw, 72px);
  align-items: stretch;
  background: #f7f7f0;
  color: #101418;
}

.login-copy {
  width: min(620px, 100%);
}

.login-copy .eyebrow {
  color: #0b7f3f;
}

.login-panel {
  width: min(440px, 100%);
  border: 1px solid rgba(16, 20, 24, 0.12);
  border-radius: var(--radius);
  padding: 22px;
  background: white;
  box-shadow: 0 20px 60px rgba(5, 8, 12, 0.14);
}

.login-panel label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #323c45;
  font-size: 0.88rem;
  font-weight: 850;
}

.login-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ccd4da;
  border-radius: var(--radius);
  padding: 0 13px;
  background: #f8faf9;
  color: #101418;
  font: inherit;
  font-size: 1rem;
  font-weight: 800;
}

.login-panel input:focus {
  border-color: var(--green);
  outline: 3px solid rgba(11, 143, 69, 0.18);
}

.login-panel .btn {
  width: 100%;
  margin-top: 6px;
}

.login-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 850;
}

.login-status.is-ok {
  color: #0b7f3f;
}

.direct-link {
  display: inline-flex;
  margin-top: 14px;
  color: #53606a;
  font-size: 0.9rem;
  font-weight: 850;
}

.direct-link:hover,
.direct-link:focus-visible {
  color: #101418;
  outline: none;
}

.site-footer {
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

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

.site-footer-logo {
  width: 132px;
  height: auto;
}

.footer-links {
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px 20px;
}

.whatsapp-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 20;
  display: grid;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(8, 45, 24, 0.28), 0 2px 6px rgba(8, 45, 24, 0.2);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.whatsapp-button:hover,
.whatsapp-button:focus-visible {
  background: #1fbd5a;
  box-shadow: 0 11px 30px rgba(8, 45, 24, 0.35), 0 3px 8px rgba(8, 45, 24, 0.22);
  color: #ffffff;
  outline: none;
  transform: translateY(-2px) scale(1.02);
}

.whatsapp-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.92), 0 0 0 6px rgba(22, 124, 69, 0.65);
}

.whatsapp-button-icon {
  display: block;
  width: 29px;
  height: 29px;
}

@media (hover: hover) {
  .whatsapp-button::after {
    position: absolute;
    right: 64px;
    top: 50%;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    background: #101418;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    content: attr(data-tooltip);
    font-size: 0.78rem;
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translate(5px, -50%);
    transition: opacity 120ms ease, transform 120ms ease;
    white-space: nowrap;
  }

  .whatsapp-button:hover::after,
  .whatsapp-button:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%);
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .showcase-grid,
  .shopping-scan-section,
  .customer-display-section,
  .pricing-section,
  .split-section {
    grid-template-columns: 1fr;
  }

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

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 2.8rem;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: sticky;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 14px;
  }

  .site-header .btn {
    width: 100%;
    min-height: 42px;
  }

  .marketing-hero {
    min-height: calc(100svh - 116px);
    align-items: flex-end;
    padding: 46px 18px 42px;
    background:
      linear-gradient(180deg, rgba(8, 11, 15, 0.58) 0%, rgba(8, 11, 15, 0.88) 52%, rgba(8, 11, 15, 0.98) 100%),
      url("/site-assets/caisse-vendeur.png") 58% center / cover no-repeat;
  }

  .shopping-scan-section {
    background:
      linear-gradient(180deg, rgba(8, 11, 15, 0.84) 0%, rgba(8, 11, 15, 0.97) 72%),
      url("/site-assets/scan-ean.png") center / cover no-repeat;
  }

  .section {
    padding: 48px 18px;
  }

  .brand {
    gap: 10px;
  }

  .site-brand-logo {
    width: 142px;
  }

  .brand-mark {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: 0.95rem;
  }

  .brand small {
    font-size: 0.72rem;
  }

  h1 {
    margin-bottom: 14px;
    font-size: 3.35rem;
    line-height: 0.96;
  }

  .hero-brand-heading {
    width: min(340px, 84vw);
    margin-bottom: 18px;
  }

  h2 {
    margin-bottom: 14px;
    font-size: 2.05rem;
    line-height: 1.05;
  }

  h3 {
    font-size: 1.05rem;
  }

  .hero-copy {
    margin-bottom: 20px;
    font-size: 1.05rem;
    line-height: 1.5;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    margin-bottom: 20px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    display: grid;
    grid-template-columns: 1fr;
  }

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

  .hero-stats div {
    min-width: 0;
    padding: 12px 14px;
  }

  .login-section {
    display: grid;
  }

  .showcase-card div,
  .feature-grid article,
  .scan-steps article,
  .pricing-card,
  .login-panel {
    padding: 18px;
  }

  .pricing-card strong {
    font-size: 2.4rem;
  }

  .screen-frame img {
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    display: grid;
  }

  .footer-links {
    display: grid;
    justify-content: start;
  }

  .whatsapp-button {
    right: 12px;
    bottom: 12px;
    width: 50px;
    height: 50px;
  }

  .customer-screen-preview {
    border-width: 6px;
  }

  .customer-screen-topbar {
    min-height: 64px;
    padding: 13px 14px;
  }

  .customer-screen-topbar img {
    width: 138px;
  }

  .customer-screen-lines {
    padding-inline: 14px;
  }

  .customer-screen-lines div {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    min-height: 74px;
  }

  .customer-screen-lines span {
    grid-row: 2;
  }

  .customer-screen-lines b {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .customer-screen-total {
    min-height: 78px;
    padding: 16px 14px;
  }

  .customer-screen-total strong {
    font-size: 1.7rem;
  }
}

@media (max-width: 380px) {
  h1 {
    font-size: 2.85rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .marketing-hero {
    padding-inline: 14px;
  }

  .section {
    padding-inline: 14px;
  }
}
