/* Moto Like M26. One motif: the M26 tail light, a hexagon with pointed ends. */
:root {
  --ground: #F3F5F1;
  --field-1: #E2EAE3;
  --field-2: #E9ECE6;
  --field-3: #CFE2D4;
  --ink: #0C1A13;
  --muted: #3B4842;
  --accent: #12803A;
  --accent-deep: #0C6A2E;
  --accent-soft: #E3F1E7;
  --on-accent: #FFFFFF;
  --wa: #25D366;
  --cut: 16px;
  --hex: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% 50%, calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 50%);
  --hex-photo: polygon(0 50%, 13% 0, 87% 0, 100% 50%, 87% 100%, 13% 100%);
  --font: "Pilcrow Rounded", ui-rounded, "SF Pro Rounded", system-ui, sans-serif;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3.2vw, 4.25rem);
  --step-display: clamp(3.25rem, 1rem + 6.6vw, 7.25rem);
  --bar-h: 72px;
  --margin: clamp(16px, 2.6vw, 40px);
  --section: clamp(96px, 7vw + 48px, 176px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--step-body)/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul { margin: 0; }
h1, h2 { font-weight: 700; letter-spacing: -0.05em; line-height: 0.92; }
h3 { font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--on-accent); }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--margin); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 16px; background: var(--ink); color: var(--on-accent); }
.skip:focus { top: 12px; }

/* The one button shape: the tail light */
.cut {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px; padding: 0 40px;
  background: var(--accent); color: var(--on-accent);
  font: 500 var(--step-body)/1 var(--font); text-decoration: none; white-space: nowrap;
  clip-path: var(--hex); border: 0; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease;
}
.cut:hover { background: var(--ink); }
.cut:active { transform: translateY(2px); }
.cut:focus-visible { outline: none; background: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.cut--sm { --cut: 12px; min-height: 46px; padding: 0 26px; font-size: var(--step-small); }
.cut--ink { background: var(--ink); }
.cut--ink:hover, .cut--ink:focus-visible { background: var(--accent); }
.ico { width: 22px; height: 22px; flex-shrink: 0; }
.ico--wa { fill: currentColor; }
.link { font-size: var(--step-body); color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; transition: color .2s ease; }
.link:hover { color: var(--accent); }

/* Bar */
.bar { position: sticky; top: 0; z-index: 50; height: var(--bar-h); background: var(--ground); transition: background-color .25s ease; }
.bar.is-scrolled { background: var(--field-2); }
.bar__row { height: 100%; display: flex; align-items: center; gap: 32px; }
.mark { display: inline-flex; align-items: center; gap: 12px; font-size: 1.625rem; font-weight: 700; letter-spacing: -0.05em; text-decoration: none; }
.mark__hex { --cut: 7px; width: 30px; height: 20px; background: var(--accent); clip-path: var(--hex); transition: transform .3s ease; }
.mark:hover .mark__hex { transform: scaleX(1.25); }
.nav { display: flex; gap: 32px; margin-left: auto; }
.nav a { font-size: var(--step-body); font-weight: 500; text-decoration: none; transition: color .2s ease; }
.nav a:hover { color: var(--accent); }
.burger { display: none; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: calc(100svh - var(--bar-h)); display: grid; align-items: center; padding: 32px 0 72px; }
.hero__shape {
  position: absolute; top: -8%; right: -22vw; width: 66vw; height: 116%;
  background: var(--accent);
  clip-path: polygon(0 50%, 20% 0, 80% 0, 100% 50%, 80% 100%, 20% 100%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.12fr .88fr; gap: 48px; align-items: center; }
.hero h1 { font-size: var(--step-display); }
.hero__lead { margin-top: 32px; max-width: 30ch; font-size: var(--step-lead); line-height: 1.35; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 44px; }
.hero__media { justify-self: center; width: min(100%, 500px); aspect-ratio: 4 / 5; clip-path: var(--hex-photo); background: var(--ink); }
.hero__media picture, .hero__media img { width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 50% 62%; transform-origin: 50% 70%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.12) translateY(-2%); } }

/* Showcase */
.show { background: var(--field-1); padding: var(--section) 0; }
.show__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; min-height: 72svh; }
.show__plate { display: grid; place-items: center; aspect-ratio: 1; background: var(--ink); clip-path: polygon(0 50%, 10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%); transition: background-color .5s ease; }
.show__plate[data-color="blanc"] { background: #FFFFFF; }
.show__plate img { width: 82%; height: 82%; object-fit: cover; object-position: 50% 45%; clip-path: polygon(0 50%, 10% 0, 90% 0, 100% 50%, 90% 100%, 10% 100%); }
.show__text { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; align-self: stretch; padding: 8px 0; }
.tabs { display: flex; gap: 32px; }
.tab {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 0;
  background: none; border: 0; cursor: pointer;
  font: 400 var(--step-lead)/1 var(--font); color: var(--muted);
  transition: color .2s ease;
}
.tab::before { --cut: 5px; content: ""; width: 18px; height: 12px; background: transparent; clip-path: var(--hex); transition: background-color .2s ease; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); font-weight: 700; }
.tab[aria-selected="true"]::before { background: var(--accent); }
.show__panel h2 { font-size: var(--step-head); }
.show__panel p { margin-top: 28px; max-width: 40ch; }
.show__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cell {
  --cut: 20px; display: flex; align-items: center; justify-content: center; min-height: 76px; padding: 0 28px;
  text-align: center; font-weight: 500; text-decoration: none; clip-path: var(--hex);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.cell:active { transform: translateY(2px); }
.cell--ink { background: var(--ink); color: var(--on-accent); }
.cell--ink:hover, .cell--ink:focus-visible { background: var(--accent); }
.cell--soft { background: var(--field-3); color: var(--ink); }
.cell--soft:hover, .cell--soft:focus-visible { background: var(--ink); color: var(--on-accent); }
.cell:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 5px; }

/* Details */
.details { padding: var(--section) 0; }
.details__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.details__head { grid-column: 1 / span 3; }
.details__head h2 { font-size: var(--step-head); }
.details__head p { margin-top: 24px; max-width: 30ch; }
.tiles { grid-column: 4 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 10px; padding: 0; list-style: none; }
.tile--wide { grid-column: span 2; }
.tile__plate { display: grid; place-items: center; aspect-ratio: 4 / 5; overflow: hidden; }
.tile--wide .tile__plate { aspect-ratio: 8 / 5; }
.tile__plate img { width: 84%; height: 72%; object-fit: cover; clip-path: var(--hex-photo); transition: transform .5s ease; }
.tile:hover .tile__plate img { transform: scale(1.04); }
.tile__plate--a { background: var(--field-1); }
.tile__plate--b { background: var(--ink); }
.tile__plate--c { background: var(--field-3); }
.tile h3 { margin-top: 16px; font-size: var(--step-lead); }
.tile p { margin-top: 6px; color: var(--muted); }

/* Band: the fuel calculator, the motif at full width */
.band {
  --cut: clamp(20px, 4vw, 64px);
  background: var(--accent); color: var(--on-accent);
  clip-path: var(--hex);
  padding: clamp(80px, 8vw, 144px) 0;
}
.band__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 112px); align-items: start; padding: 0 var(--cut); }
.band h2 { font-size: var(--step-head); }
.band__head p { margin-top: 24px; max-width: 34ch; }
.calc { display: grid; gap: 28px; }
.calc__field { display: grid; gap: 10px; }
.calc label { font-weight: 500; }
.calc__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc input[type="number"] {
  width: 100%; min-height: 60px; padding: 0 18px; border: 0;
  background: var(--accent-deep); color: var(--on-accent);
  font: 700 var(--step-lead)/1 var(--font);
}
.calc input[type="number"]:focus-visible { outline: 3px solid var(--on-accent); outline-offset: 2px; }
.calc__range { display: flex; align-items: center; gap: 20px; }
.calc__range output { min-width: 80px; font-size: var(--step-lead); font-weight: 700; text-align: right; }
.calc input[type="range"] { flex: 1; height: 40px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.calc input[type="range"]::-webkit-slider-runnable-track { height: 10px; background: var(--accent-deep); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 24px; margin-top: -7px; background: var(--on-accent); clip-path: polygon(6px 0, 28px 0, 100% 50%, 28px 100%, 6px 100%, 0 50%); }
.calc input[type="range"]::-moz-range-track { height: 10px; background: var(--accent-deep); }
.calc input[type="range"]::-moz-range-thumb { width: 34px; height: 24px; border: 0; border-radius: 0; background: var(--on-accent); clip-path: polygon(6px 0, 28px 0, 100% 50%, 28px 100%, 6px 100%, 0 50%); }
.calc input[type="range"]:focus-visible { outline: 3px solid var(--on-accent); outline-offset: 4px; }
.calc__out { display: grid; gap: 6px; padding-top: 8px; }
.calc__out p:first-child strong { display: block; font-size: var(--step-display); font-weight: 700; letter-spacing: -0.05em; line-height: .95; }
.calc__out p:last-child strong { font-weight: 700; }
.calc__note { font-size: var(--step-small); line-height: 1.5; max-width: 52ch; }

/* Steps */
.steps { padding: var(--section) 0; }
.steps h2 { font-size: var(--step-head); }
.steps__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 64px; padding: 0; list-style: none; }
.steps__list h3 { display: flex; align-items: center; gap: 14px; font-size: var(--step-lead); font-weight: 700; }
.steps__list h3::before { --cut: 7px; content: ""; width: 28px; height: 18px; flex-shrink: 0; background: var(--accent); clip-path: var(--hex); }
.steps__list p { margin-top: 12px; max-width: 30ch; }

/* FAQ */
.faq { background: var(--field-2); padding: var(--section) 0; }
.faq__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.faq__head { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--bar-h) + 32px); font-size: var(--step-head); }
.faq__list { grid-column: 5 / -1; display: grid; gap: 8px; }
.faq details { background: var(--ground); transition: background-color .25s ease, color .25s ease; }
.faq summary {
  position: relative; display: flex; align-items: center; min-height: 76px; padding: 22px 72px 22px 28px;
  font-size: var(--step-lead); font-weight: 500; line-height: 1.25; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 18px; height: 3px; margin-top: -1.5px; background: currentColor; transition: transform .25s ease; }
.faq summary::after { transform: rotate(90deg); }
.faq details:hover { background: var(--field-3); }
.faq details[open] { background: var(--accent); color: var(--on-accent); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; }
.faq details p { max-width: 52ch; padding: 0 28px 28px; }

/* Contact: the coupon */
.contact { padding: var(--section) 0; }
.coupon { position: relative; display: grid; grid-template-columns: 46fr 54fr; background: var(--accent); color: var(--on-accent); }
.coupon__left { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(32px, 4vw, 64px); border-right: 5px dotted var(--ground); }
.coupon__left::before, .coupon__left::after { content: ""; position: absolute; right: -17px; width: 30px; height: 30px; border-radius: 50%; background: var(--ground); }
.coupon__left::before { top: -15px; }
.coupon__left::after { bottom: -15px; }
.coupon h2 { font-size: var(--step-head); }
.coupon__lines { display: grid; gap: 20px; }
.coupon__lines a { font-size: var(--step-lead); font-weight: 700; text-decoration: none; }
.coupon__lines a:hover { text-decoration: underline; text-underline-offset: 5px; }
.coupon__form { display: grid; gap: 10px; padding: clamp(32px, 4vw, 64px); }
.coupon__form input[type="text"], .coupon__form input[type="tel"], .coupon__form textarea {
  width: 100%; min-height: 56px; padding: 0 18px; border: 0;
  background: var(--accent-soft); color: var(--ink);
  font: 400 var(--step-body)/1.3 var(--font);
}
.coupon__form textarea { padding: 16px 18px; min-height: 92px; resize: vertical; }
.coupon__form ::placeholder { color: var(--muted); opacity: 1; }
.coupon__form input:focus-visible, .coupon__form textarea:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.coupon__form [aria-invalid="true"] { outline: 3px solid #FFD84D; outline-offset: 0; }
.coupon__color { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; border: 0; }
.coupon__legend { width: 100%; padding: 0; margin: 0 0 2px; font-size: 15px; font-weight: 500; color: var(--on-accent); }
.coupon__color label { position: relative; cursor: pointer; }
.coupon__color input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.coupon__color span {
  --cut: 14px; display: inline-flex; align-items: center; min-height: 48px; padding: 0 26px;
  background: var(--accent-soft); color: var(--ink); font-weight: 500; clip-path: var(--hex);
  transition: background-color .2s ease, color .2s ease;
}
.coupon__color input:checked + span { background: var(--ink); color: var(--on-accent); }
@media (max-width: 420px) { .coupon__color span { padding: 0 18px; font-size: 15px; } }
.coupon__color input:focus-visible + span { text-decoration: underline; text-underline-offset: 5px; }
.coupon__error { padding: 12px 16px; background: var(--ink); color: var(--on-accent); font-weight: 500; }
.coupon__send {
  --cut: 18px; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; margin-top: 6px;
  background: var(--ink); color: var(--on-accent); border: 0; clip-path: var(--hex);
  font: 500 var(--step-body)/1 var(--font); cursor: pointer; transition: background-color .2s ease, transform .2s ease;
}
.coupon__send:hover { background: #1F3A2B; }
.coupon__send:active { transform: translateY(2px); }
.coupon__send:focus-visible { outline: none; text-decoration: underline; text-underline-offset: 5px; background: #1F3A2B; }
.coupon__hint { font-size: var(--step-small); }

/* Footer: the mark, built from blocks */
.foot { background: var(--field-1); padding: clamp(72px, 7vw, 120px) 0 40px; }
.blocks { display: flex; align-items: flex-end; gap: 4px; height: clamp(170px, 34svh, 340px); }
.blocks span {
  flex: 1; display: flex; align-items: flex-end; justify-content: center; overflow: hidden;
  background: var(--accent); color: var(--field-1);
  font-size: clamp(2.5rem, 10.5vw, 10rem); font-weight: 700; line-height: .8; letter-spacing: -0.04em; padding-bottom: .08em;
}
.blocks span:nth-child(1) { height: 100%; }
.blocks span:nth-child(2) { height: 74%; background: var(--ink); }
.blocks span:nth-child(3) { height: 88%; }
.blocks span:nth-child(4) { height: 64%; background: var(--accent-deep); }
.blocks span:nth-child(5) { height: 96%; background: var(--ink); }
.blocks span:nth-child(6) { height: 70%; }
.blocks span:nth-child(7) { height: 84%; background: var(--ink); }
.blocks span:nth-child(8) { height: 62%; background: var(--accent-deep); }
.foot__cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; margin-top: 56px; }
.foot__links { grid-column: 1 / span 8; display: flex; flex-wrap: wrap; gap: 12px 36px; }
.foot__links a { font-weight: 500; text-decoration: none; transition: color .2s ease; }
.foot__links a:hover { color: var(--accent); }
.foot__contact { grid-column: 9 / -1; font-size: var(--step-lead); font-weight: 700; line-height: 1.4; }
.foot__contact a { text-decoration: none; }
.foot__contact a:hover { color: var(--accent); }
.foot__last { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 56px; }
.foot__last p { font-size: var(--step-small); color: var(--muted); }

/* WhatsApp float: a real overlay */
.wa-float {
  --cut: 14px; position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: grid; place-items: center; width: 68px; height: 56px;
  background: var(--wa); color: #FFFFFF; clip-path: var(--hex);
  transition: transform .2s ease, opacity .25s ease, visibility .25s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float:hover { transform: scale(1.06); }
.wa-float:focus-visible { outline: none; background: var(--ink); }
.wa-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Entrances: only when main.js has run, so content shows without script */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rise.is-in { opacity: 1; transform: none; }
.js .rise.d1 { transition-delay: 80ms; }
.js .rise.d2 { transition-delay: 160ms; }
.js .rise.d3 { transition-delay: 240ms; }
.js .rise.d4 { transition-delay: 320ms; }
.js .rise.d5 { transition-delay: 400ms; }

/* Tablet and phone: each its own composition */
@media (max-width: 1100px) {
  .details__head { grid-column: 1 / -1; }
  .tiles { grid-column: 1 / -1; }
  .faq__head { grid-column: 1 / span 5; }
  .faq__list { grid-column: 6 / -1; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; top: var(--bar-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--margin) 28px;
    background: var(--field-2);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a { padding: 14px 0; font-size: var(--step-lead); }
  .bar__cta { display: none; }
  .burger {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 48px; height: 48px; margin-left: auto; padding: 0 12px;
    background: var(--field-1); border: 0; cursor: pointer;
  }
  .burger span { display: block; height: 3px; background: var(--ink); transition: transform .25s ease; }
  .burger[aria-expanded="true"] span:first-child { transform: translateY(5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:last-child { transform: translateY(-5px) rotate(-45deg); }

  .hero { min-height: 0; padding: 16px 0 72px; }
  .hero__shape { top: -2%; right: -46vw; width: 120vw; height: 50svh; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__media { order: -1; width: 100%; height: 50svh; aspect-ratio: auto; }
  .hero h1 { font-size: clamp(3rem, 13.4vw, 5.5rem); }
  .hero__lead { margin-top: 24px; }
  .hero__actions { margin-top: 32px; }

  .show__grid { grid-template-columns: 1fr; min-height: 0; }
  .show__text { gap: 32px; }
  .show__actions { grid-template-columns: 1fr; }
  .cell { min-height: 62px; }

  .tiles { grid-template-columns: 1fr 1fr; gap: 28px 8px; }
  .tile--wide { order: -1; grid-column: 1 / -1; }

  .band { --cut: 22px; }
  .band__grid { grid-template-columns: 1fr; }

  .steps__list { grid-template-columns: 1fr; gap: 32px; margin-top: 40px; }

  .faq__head, .faq__list { grid-column: 1 / -1; }
  .faq__head { position: static; }
  .faq summary { min-height: 64px; padding: 18px 60px 18px 20px; font-size: var(--step-body); }
  .faq summary::before, .faq summary::after { right: 22px; }
  .faq details p { padding: 0 20px 22px; }

  .coupon { grid-template-columns: 1fr; }
  .coupon__left { border-right: 0; border-bottom: 5px dotted var(--ground); }
  .coupon__left::before, .coupon__left::after { top: auto; bottom: -17px; }
  .coupon__left::before { left: -15px; right: auto; }
  .coupon__left::after { right: -15px; }

  .blocks { height: 22svh; min-height: 140px; gap: 3px; }
  .foot__links { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .foot__contact { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .wa-float { --cut: 12px; width: 58px; height: 48px; right: 12px; bottom: 12px; }
  .wa-float svg { width: 26px; height: 26px; }
  .calc__pair { grid-template-columns: 1fr; }
  .hero__actions .cut { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
  .js .rise { opacity: 1; transform: none; }
}
