/* LIVRAISON RIKI — Vitrine
   Mobile-first • Accessible • Zero dependency
   Colors: inspired by Québec blue (#1B4A6B) + Rimouski river teal (#2E8B8B) + warm orange (#F39C3E)
*/

* { box-sizing: border-box; }

:root {
  --c-bg: #ffffff;
  --c-bg-muted: #F6F9FC;
  --c-text: #0F1C2E;
  --c-text-muted: #4A5A6E;
  --c-primary: #1B4A6B;
  --c-primary-dark: #123A56;
  --c-accent: #F39C3E;
  --c-accent-2: #2E8B8B;
  --c-border: #E3EAF2;
  --c-success: #0F8B4E;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 28, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 28, 46, 0.08);
  --shadow-lg: 0 20px 60px rgba(27, 74, 107, 0.18);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;
  --max: 1140px;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--c-border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--c-text);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand__logo { width: 32px; height: 32px; }
.brand__text { white-space: nowrap; }
.brand__accent { color: var(--c-accent); }
.nav__links {
  display: none;
  gap: 24px;
  align-items: center;
}
.nav__links a {
  color: var(--c-text-muted);
  font-weight: 500;
  font-size: 15px;
}
.nav__links a:hover { color: var(--c-primary); text-decoration: none; }
@media (min-width: 820px) {
  .nav__links { display: inline-flex; }
}

/* ---------- HERO ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 20px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    padding: 72px 32px 48px;
    gap: 60px;
  }
}
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  background: #FFF2DE;
  color: #B5620A;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 18px;
}
.hero h1 {
  font-size: clamp(34px, 6.5vw, 60px);
  line-height: 1.05;
  margin: 0 0 20px;
  letter-spacing: -0.025em;
  font-weight: 800;
}
.hl {
  background: linear-gradient(135deg, var(--c-accent) 0%, #D97706 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: var(--c-text-muted);
  margin: 0 0 28px;
  max-width: 560px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  min-height: 48px;
  transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--c-primary);
  color: white;
  box-shadow: var(--shadow-md);
}
.btn--primary:hover { background: var(--c-primary-dark); text-decoration: none; }
.btn--ghost {
  background: white;
  color: var(--c-primary);
  border-color: var(--c-border);
}
.btn--ghost:hover { background: var(--c-bg-muted); text-decoration: none; }

.trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.trust li {
  font-size: 14px;
  color: var(--c-text-muted);
}

/* Phone mock */
.hero__visual {
  display: flex;
  justify-content: center;
}
.phone {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 9 / 18;
  background: linear-gradient(145deg, var(--c-primary) 0%, var(--c-accent-2) 100%);
  border-radius: 44px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.phone__screen {
  background: white;
  width: 100%;
  height: 100%;
  border-radius: 32px;
  padding: 44px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.phone__screen::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 20px;
  background: var(--c-primary);
  border-radius: 999px;
}
.phone__order { display: flex; flex-direction: column; gap: 12px; margin-top: 10px; }
.phone__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: var(--c-bg-muted);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
}
.phone__eta {
  margin-top: auto;
  padding: 14px;
  background: #E7F7EE;
  color: var(--c-success);
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-align: center;
}
.phone__cta {
  padding: 14px;
  background: var(--c-primary);
  color: white;
  border-radius: 12px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

/* ---------- SECTION LAYOUTS ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 20px;
}
.section--muted {
  background: var(--c-bg-muted);
  max-width: none;
  padding: 70px 20px;
}
.section--muted > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section h2 {
  font-size: clamp(26px, 4vw, 38px);
  margin: 0 0 32px;
  letter-spacing: -0.02em;
}

.grid { display: grid; gap: 20px; }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: white;
  padding: 28px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--c-text-muted); font-size: 15px; }

.role {
  background: white;
  padding: 32px 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
}
.role__badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--c-bg-muted);
  color: var(--c-primary);
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 16px;
}
.role h3 { margin: 0 0 14px; font-size: 22px; }
.role ul {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--c-text-muted);
}
.role li {
  padding: 7px 0 7px 24px;
  position: relative;
  font-size: 15px;
}
.role li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--c-success);
  font-weight: 700;
}

/* ---------- SPLIT (TAXES) ---------- */
.section--split {
  max-width: var(--max);
  margin: 0 auto;
  padding: 70px 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .section--split { grid-template-columns: 1.1fr 0.9fr; gap: 60px; }
}
.section--split h2 { margin-top: 0; }
.checklist { list-style: none; padding: 0; margin: 18px 0 0; color: var(--c-text-muted); }
.checklist li { padding: 6px 0 6px 28px; position: relative; }
.checklist li::before {
  content: "🔏";
  position: absolute;
  left: 0;
}
.receipt {
  background: white;
  border: 1px dashed var(--c-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.receipt__header {
  text-align: center;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--c-primary);
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--c-border);
  margin-bottom: 16px;
}
.receipt__row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--c-text-muted);
}
.receipt__total {
  font-weight: 800;
  color: var(--c-text);
  border-top: 1px dashed var(--c-border);
  margin-top: 12px;
  padding-top: 14px;
  font-size: 17px;
}
.receipt__sig {
  text-align: center;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--c-border);
  color: var(--c-success);
  font-weight: 700;
  font-size: 12px;
}

/* ---------- CTA SECTION ---------- */
.section--cta {
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #E8F3FB 0%, white 70%);
  max-width: none;
}
.section--cta > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin: 32px 0 24px;
}
.store-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px 24px;
  background: var(--c-text);
  color: white;
  border-radius: 12px;
  min-width: 200px;
  text-align: left;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.2s ease;
}
.store-badge:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.store-badge__eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}
.store-badge__store {
  font-size: 20px;
  font-weight: 700;
  margin-top: 2px;
}
.store-badge--apple::before { content: ""; }
.store-badge--google { background: #0F1C2E; }

/* ---------- LEGAL ---------- */
.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}
.legal-link {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  background: white;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-primary);
  font-weight: 600;
  font-size: 14px;
}
.legal-link:hover { background: var(--c-bg-muted); text-decoration: none; }

/* ---------- UTILITIES ---------- */
.muted { color: var(--c-text-muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--c-text);
  color: #B4C2D4;
  padding: 60px 20px 40px;
}
.footer__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 720px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer h4 { color: white; margin: 0 0 14px; font-size: 15px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 4px 0; font-size: 14px; }
.footer a { color: #B4C2D4; }
.footer a:hover { color: white; }
.brand--footer .brand__text { color: white; }

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
