/* RoboCan — local static site. No tracking, no third-party fonts. */
:root {
  --bg: #f7f6f4;
  --bg-elev: #ffffff;
  --ink: #1a141c;
  --muted: #5c5660;
  --line: #e4e0dc;
  --accent: #240848;
  --accent-hover: #180530;
  --accent-soft: #f3ecf8;
  --on-accent: #ffffff;
  --focus: #1a73e8;
  --danger: #8a2f2f;
  --radius: 14px;
  --wrap: 1040px;
  --shadow: 0 1px 2px rgba(36, 8, 72, 0.05), 0 10px 28px rgba(36, 8, 72, 0.07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::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-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

.t-fr { display: none !important; }
html[lang="fr-CA"] .t-en { display: none !important; }
html[lang="fr-CA"] .t-fr { display: revert !important; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 200;
  background: var(--accent);
  color: var(--on-accent);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(100% - 32px, var(--wrap));
  margin-inline: auto;
}

/* Top bar */
.topbar {
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.85rem;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  flex-wrap: wrap;
  padding-block: 6px;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 4px 10px;
  cursor: pointer;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  font-weight: 600;
}
.lang-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--accent);
}

/* Header */
.site-header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 80;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.brand-mark {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.92rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.95rem;
}
.brand-sub {
  margin-top: 3px;
  font-weight: 500;
  letter-spacing: 0.16em;
  font-size: 0.62rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-weight: 650;
  font-size: 0.9rem;
}

nav[aria-label="Main"] {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
  justify-content: flex-end;
}
nav[aria-label="Main"] a {
  text-decoration: none;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
}
nav[aria-label="Main"] a:hover,
nav[aria-label="Main"] a:focus-visible {
  background: var(--accent-soft);
}
nav[aria-label="Main"] a[aria-current="page"] {
  background: var(--accent);
  color: var(--on-accent);
}

/* Buttons */
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.button:hover { background: var(--accent-hover); color: var(--on-accent); border-color: var(--accent-hover); }
.button-outline {
  background: transparent;
  color: var(--accent);
}
.button-outline:hover { background: var(--accent-soft); color: var(--accent); }
.button-light {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
}
.button-light:hover { background: var(--accent-soft); color: var(--accent); }

/* Hero */
.hero {
  padding: 56px 0 28px;
  text-align: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
  margin: 0 0 10px;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand-orange);
}
.hero .lead {
  margin: 0 auto 28px;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.15rem;
}
.hero-figure {
  margin: 36px auto 0;
  max-width: 920px;
}
.hero-figure img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 16/9;
}
.caption, figcaption {
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}

/* Sections */
.section { padding: 56px 0; }
.section.tinted { background: #efeaf3; }
.section-heading {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 32px;
}
.section-heading h2, .split h2, .page-intro h1, .form-aside h2, .form-panel h2, .legal-copy h2 {
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 650;
}
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); margin: 0 0 12px; }
h3 { font-size: 1.08rem; margin: 0 0 8px; font-weight: 650; }
.lead { font-size: 1.15rem; color: var(--ink); }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 800px) {
  .cards.thirds { grid-template-columns: repeat(3, 1fr); }
  .cards.halves, .cards.steps { grid-template-columns: repeat(2, 1fr); }
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.card-number {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--muted);
}
.card .text-link, .card .button { margin-top: auto; align-self: flex-start; }
.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}
.text-link:hover { text-decoration: underline; }

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; gap: 48px; }
  .split.reverse > .copy { order: 2; }
}
.editorial-image { margin: 0; }
.editorial-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.page-intro {
  padding: 48px 0 8px;
  text-align: center;
}
.page-intro h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.4rem);
}
.intro-copy {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}
.steps li {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  counter-increment: step;
}
.steps { counter-reset: step; }
.steps li h3::before {
  content: counter(step, decimal-leading-zero) "  ";
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.cta-band {
  background: var(--accent);
  color: var(--on-accent);
  padding: 48px 0;
  text-align: center;
}
.cta-band .eyebrow, .cta-band p { color: rgba(255,255,255,0.82); }
.cta-band h2 { margin-bottom: 10px; }
.cta-inner { display: grid; gap: 22px; justify-items: center; }
.cta-inner p { max-width: 32rem; }

/* Forms */
.form-layout {
  display: grid;
  gap: 28px;
}
@media (min-width: 880px) {
  .form-layout { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr); align-items: start; }
}
.form-panel, .form-aside {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.form-note, .form-status { font-size: 0.92rem; color: var(--muted); }
.form-status { margin-top: 14px; }
.form-status.visible { color: var(--ink); }
.form-status a { font-weight: 600; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0;
}
@media (min-width: 640px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field.full { grid-column: 1 / -1; }
}
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
.optional { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #cfcbc3;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  min-height: 44px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
  border-color: var(--focus);
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.95rem;
  margin: 8px 0 16px;
}
.consent input { margin-top: 4px; width: 18px; height: 18px; flex: 0 0 auto; }
.contact-detail { margin: 0 0 14px; }
.contact-detail span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 2px;
}
.contact-detail a, .contact-detail address { color: inherit; text-decoration: none; font-weight: 600; }
.contact-detail a:hover { text-decoration: underline; color: var(--accent); }
.check-list { margin: 0 0 16px; padding-left: 1.15rem; }
.check-list li { margin: 0 0 8px; }
.aside-contact { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.aside-contact a { display: block; font-weight: 600; margin-top: 6px; text-decoration: none; }
.aside-contact a:hover { text-decoration: underline; }

.legal-copy { max-width: 42rem; margin: 0 auto; }
.legal-copy h2 { margin-top: 28px; font-size: 1.25rem; }

/* QR */
.qr-block {
  padding: 56px 0 24px;
  text-align: center;
}
.qr-card {
  margin: 0 auto;
  max-width: 420px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 22px 24px;
  box-shadow: var(--shadow);
}
.qr-card img {
  width: min(100%, 280px);
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 8px;
}
.qr-url {
  font-size: 0.98rem;
  font-weight: 650;
  word-break: break-all;
  margin: 0 0 18px;
}
.qr-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.qr-btns .button { min-height: 44px; padding: 8px 14px; font-size: 0.92rem; }

.qr-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 13, 0.88);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 24px;
}
.qr-overlay.open { display: grid; }
.qr-overlay-inner {
  text-align: center;
  color: #fff;
  width: min(100%, 520px);
}
.qr-overlay img {
  width: min(92vw, 72vh, 480px);
  height: auto;
  margin: 0 auto 16px;
  background: #fff;
  border-radius: 12px;
  padding: 12px;
}
.qr-overlay .qr-url { color: #fff; font-size: 1.05rem; }
.qr-overlay .button { margin-top: 8px; }

/* Footer */
.site-footer {
  background: #160528;
  color: #eceae4;
  padding: 42px 0 24px;
  margin-top: 8px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
}
.footer-brand {
  display: inline-block;
  color: inherit;
  text-decoration: none;
  font-weight: 750;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.footer-brand span { display: block; font-weight: 500; letter-spacing: 0.16em; font-size: 0.7rem; color: #c5c8c4; margin-top: 4px; }
.site-footer h2 {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c5c8c4;
  margin: 0 0 10px;
}
.site-footer a { color: inherit; text-decoration: none; display: block; margin: 0 0 8px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer p, .site-footer address { color: #c5c8c4; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-size: 0.88rem;
  color: #b7bbb7;
}
.footer-bottom a { display: inline; color: inherit; }
.powered { font-weight: 650; }
.powered a { color: #fff; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

/* Mobile nav */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  nav[aria-label="Main"] {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 8px 16px 16px;
    box-shadow: var(--shadow);
  }
  .site-header { position: sticky; }
  .site-header.open nav[aria-label="Main"] { display: flex; }
  nav[aria-label="Main"] a { padding: 12px 12px; }
  .hero { padding-top: 36px; }
  .section { padding: 40px 0; }
}

@media print {
  .topbar, .site-header, .nav-toggle, form, .qr-btns, .cta-band .button, .skip-link { display: none !important; }
  body { background: #fff; }
  .qr-card { box-shadow: none; }
  .site-footer { background: #fff; color: #000; }
}

/* RoboCan logo */
.brand-logo {
  display: block;
  height: 36px;
  width: auto;
  max-width: min(58vw, 280px);
  object-fit: contain;
  object-position: left center;
}
.footer-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
}

/* Featured + catalog product cards */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
.product-grid.featured {
  max-width: 1040px;
  margin: 0 auto;
}
.product-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  text-align: center;
}
.product-card .thumb {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 14px;
  padding: 14px;
}
.product-card .thumb img {
  max-height: 170px;
  width: auto;
  max-width: 100%;
  margin: 0 auto;
  object-fit: contain;
}
.product-card h3 { margin: 0 0 6px; }
.product-card .brand-line {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 650;
  margin: 0 0 4px;
}
.product-card p { color: var(--muted); font-size: 0.95rem; }
.image-note, .sample-note {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
  margin: 16px 0 0;
}

.hero-robots {
  margin: 36px auto 0;
  max-width: 920px;
}
