/* ==========================================================================
   Globe Car & Truck Rentals / Globe Location d'Autos & Camions
   Live virtual pickup pages: go.globecar.com/fr/ and go.globecar.com/en/

   Contents
    1. Fonts            9. Help box
    2. Base            10. Pickup steps (Onfido, WeProov, Returning)
    3. Header          11. Footnote (recording notice)
    4. Hero            12. Footer
    5. Live status     13. Test windows (camera/mic/connection, Wi-Fi, location), checklist windows
    6. START RENTAL    14. Bottom START RENTAL bar (phones)
    7. Info line       15. Responsive adjustments
    8. Booking line    16. Reduced motion
       & checklist     17. Windows contrast themes

   Colours and the font live in the :root variables (section 2); since v2.27 every colour does,
   named by what it is for (tools/check_colours.py checks that none is typed anywhere else).
   After editing, change the ?v= number on the styles.css line in both
   fr/index.html and en/index.html so browsers load the new version.
   ========================================================================== */

/* ==========================================================================
   1. Fonts
   ========================================================================== */

/* Roboto (self-hosted, variable weight 100–900). License: /fonts/OFL.txt */
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/roboto-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Roboto;
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 100%;
  font-display: swap;
  src: url("/fonts/roboto-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Base
   ========================================================================== */

[hidden] { display: none !important; }

:root {
  color-scheme: only light; /* the light look; the dark values are further down (v2.28) */
  /* Vertical rhythm, the same five steps in every part of the page:
     8 label -> its list · 12 paragraph -> paragraph · 16 heading -> content, closely related items
     24 content -> action or note, a new group · 40 section -> section */
  --space-xs: 8px;
  --space-s: 12px;
  --space-m: 16px;
  --space-l: 24px;
  --space-xl: 40px;   /* 32px on phones, see below */
  --orange: #FF6C00;
  --orange-light: #FF8F3A;
  --orange-deep: #E25A00;
  --yellow: #FFD412;
  --red: #C8102E;
  --ink: #000000;
  --text: #3B3B3B;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --panel: #F5F5F5;
  --panel-hover: #ECECEC;      /* every hover in the top bar and burger menu */
  --line-hover: #D6D6D6;
  --link-hover: #9A3C00;       /* links on orange or sand backgrounds */
  --ok: #137333;               /* a check that passed */
  --ok-soft: #E6F4EA;
  --callout: #FFF3EA;          /* the two highlighted notes */
  --disabled: #E4E4E4;
  --paper: #FFFFFF;
  /* Every other colour on the page, named by what it is for (v2.27). A colour is typed only here:
     tools/check_colours.py fails if one appears anywhere else in the stylesheets. */
  /* text and fills */
  --text-disabled: #5F5F5F;    /* START RENTAL while loading or closed */
  --on-accent: #FFFFFF;        /* text and icons on orange, burnt orange, red, green, purple and grey controls */
  --inverse: #000000;          /* solid black buttons and badges that carry text (FR/EN, Test, numbered steps) */
  --on-inverse: #FFFFFF;       /* their text */
  --inverse-hover: #2A2A2A;
  /* surfaces */
  --card: #FFFFFF;             /* raised white boxes: cards, fields, test windows, the phone menu (--paper is the page) */
  --sand: #F6F3EF;             /* About, reviews and recording-notice band */
  --sand-line: #E8E1D9;
  --footer-bg: #FFF0E3;
  --footer-text: #4A3B30;
  --footer-muted: #6F5B4C;     /* version number */
  --glass: rgba(255, 255, 255, 0.28);        /* frosted START RENTAL bar on phones */
  --glass-solid: rgba(255, 255, 255, 0.96);  /* the same bar where frosting isn't supported */
  --dlg-close-bg: rgba(255, 255, 255, 0.94); /* round close button over the camera picture */
  --dlg-close-ring: #FFFFFF;
  --dlg-close-x: #000000;
  --video-bg: #1F1F1F;         /* camera preview frame */
  --video-empty-text: #BDBDBD;
  --flash: #FFF1C2;            /* the recording notice lights up when its asterisk is tapped */
  /* lines */
  --line-strong: #C9C9C9;
  --field-line: #CFCFCF;       /* dropdowns and the section arrows */
  --callout-line: #FFD2B0;
  --attention-line: #FFB27A;   /* Wi-Fi box when the connection needs it */
  --tc-empty: #C9C9C9;         /* the empty circle of a quick check not done yet */
  /* controls */
  --control-bg: rgba(70, 70, 70, 0.75);      /* carousel arrows */
  --dot: rgba(74, 59, 48, 0.62);             /* carousel dots */
  --dot-hover: rgba(74, 59, 48, 0.8);
  --flag-ring: rgba(0, 0, 0, 0.12);
  --flag-ring-on-inverse: rgba(255, 255, 255, 0.35);
  /* accents */
  --orange-hover: #E05E00;     /* START RENTAL buttons */
  --accent-hover: #C84E00;     /* other buttons that turn orange */
  --accent-active: #B04400;
  --totop-bg: #A62E2E;         /* back-to-top button */
  --totop-ring: transparent;   /* ...its ring (orange in dark mode) */
  --stripe-red: #C8102E;       /* the right end of the top stripe (brand red in both looks) */
  --burnt-fill: #9A3C00;       /* burnt orange behind white: carousel arrows on hover (--link-hover is text) */
  --dot-current: #9A3C00;      /* the current carousel dot */
  --weproov: #7B61D9;          /* WeProov GO app button */
  --weproov-shadow: rgba(123, 97, 217, 0.16);
  /* outlined buttons (v2.29): the light look keeps each one's colours; in dark mode all of them share
     the Test buttons' style, an orange outline with light text that fills deep orange on hover */
  --faq-line: #000000;         /* Visit our FAQ: outline */
  --view-text: #9A3C00;        /* VIEW on the vehicle cards */
  --view-hover: #FF6C00;       /* ...its fill when the card is hovered */
  --more-line: #9A3C00;        /* MORE on the location cards: outline */
  --more-text: #9A3C00;
  --more-hover: #9A3C00;       /* ...fill on hover and keyboard focus */
  /* status */
  --ok-fill: #137333;          /* green behind white: passed checks, "Copied!" (--ok is green text) */
  --red-fill: #C8102E;         /* red behind white: a failed test (--red is red text; --stripe-red the top stripe) */
  --ok-bright: #1E8E3E;        /* microphone level, passed checks */
  --ok-line: #BFD8C6;
  --ok-tint: #F3FAF5;
  --ok-pulse: rgba(19, 115, 51, 0.45);       /* the "open" dot's pulse */
  --ok-pulse-fade: rgba(19, 115, 51, 0);
  --red-soft: #FDE7EA;         /* closed status, "Required" badges */
  --red-ink: #A50E24;
  --grace-soft: #FFF1DC;       /* "closing soon" status */
  --grace-ink: #8A4B00;
  --holiday-soft: #FFF4CC;
  --holiday-ink: #6B4B00;
  /* notices from notice.json (v2.41): blue information, amber warning, red urgent */
  --notice-info-bg: #EAF2FD;
  --notice-info-line: #B9D3F5;
  --notice-info-icon: #1A5FB4;
  --notice-warning-bg: #FFF3EA;
  --notice-warning-line: #FFB27A;
  --notice-warning-icon: #C84E00;
  --notice-urgent-bg: #FDECEE;
  --notice-urgent-line: #F2B8C0;
  --notice-urgent-icon: #C8102E;
  --notice-glyph: #FFFFFF;     /* the ! and i inside the notice icons */
  --notice-close-hover: rgba(0, 0, 0, 0.07);
  /* the drawn credit card in the credit card window (v2.46) */
  --cc-face: #4A4A4A;          /* top-left of the card */
  --cc-face-end: #2B2B2B;      /* bottom-right of the card */
  --cc-text: #F2F2F2;          /* number and name printed on the card */
  --cc-faint: #BDBDBD;         /* CREDIT and the expiry date */
  --cc-chip: #D9B45B;
  --cc-chip-line: #B38F3A;
  --cc-name-ring: #FF6C00;     /* dashed ring around the cardholder's name */
  --cc-callout: #9A3C00;       /* "Your name printed on the card" */
  --cc-shadow: rgba(0, 0, 0, 0.22);
  /* the drawn proof of coverage, driver's licence and photo ID in the other checklist windows (v2.47) */
  --info-pic-shadow: rgba(0, 0, 0, 0.15);
  --ins-paper: #FFFFFF;        /* proof of coverage: the sheet */
  --ins-paper-line: #D9D9D9;
  --ins-bar: #E6E6E6;          /* ...its lines of text */
  --ins-badge: #137333;        /* ...the green tick */
  --ins-badge-glyph: #FFFFFF;
  --info-opt-icon-bg: #FFF3EA; /* the round icon of each way to be covered */
  --info-opt-icon: #C84E00;
  --lic-face: #EEF3F8;         /* driver's licence */
  --lic-face-end: #DCE6F0;
  --lic-band: #1A5FB4;
  --lic-band-text: #FFFFFF;
  --lic-text: #22303C;
  --lic-faint: #5B6B78;
  --lic-photo: #C9D5E0;
  --lic-photo-glyph: #8A9BAA;
  --id2-face: #F3F0EA;         /* second piece of ID (photo ID) */
  --id2-face-end: #E6E0D5;
  --id2-band: #4A3B30;
  --id2-band-text: #FFFFFF;
  --id2-text: #2E2620;
  --id2-faint: #6F5B4C;
  --id2-photo: #D8CFC2;
  --id2-photo-glyph: #9A8B7C;
  --id2-bar: #D8CFC2;
  --info-ring-ok: #137333;     /* green dashed ring: the expiry date, the photo */
  --warn: #B06000;             /* test results */
  --pending: #BDBDBD;
  --idle: #6B6B6B;
  /* shadows and glows */
  --shadow-xs: rgba(0, 0, 0, 0.05);
  --shadow-s: rgba(0, 0, 0, 0.08);
  --shadow-m: rgba(0, 0, 0, 0.16);
  --shadow-l: rgba(0, 0, 0, 0.22);
  --shadow-dialog: rgba(0, 0, 0, 0.3);
  --backdrop: rgba(0, 0, 0, 0.55);          /* behind the test windows */
  --orange-shadow-30: rgba(255, 108, 0, 0.3);
  --orange-shadow-35: rgba(255, 108, 0, 0.35);
  --orange-shadow-40: rgba(255, 108, 0, 0.4);
  --orange-shadow-45: rgba(255, 108, 0, 0.45);
  --orange-shadow-50: rgba(255, 108, 0, 0.5);
  --orange-shadow-55: rgba(255, 108, 0, 0.55);
  --stage-glow-yellow: rgba(255, 212, 18, 0.22);   /* the glow behind START RENTAL */
  --stage-glow-orange: rgba(255, 108, 0, 0.08);
  --sticky-glow-yellow: rgba(255, 212, 18, 0.14);  /* the same behind the phone bar's button */
  --sticky-glow-orange: rgba(255, 108, 0, 0.06);
  --footer-glow-orange: rgba(255, 108, 0, 0.3);
  --footer-glow-orange-2: rgba(255, 108, 0, 0.26);
  --footer-glow-orange-fade: rgba(255, 108, 0, 0);  /* a glow fades to its own colour, not to grey, in older Safari */
  --footer-glow-red: rgba(166, 46, 46, 0.16);
  --footer-glow-red-fade: rgba(166, 46, 46, 0);
  --footer-glow-yellow: rgba(255, 212, 18, 0.26);
  --footer-glow-yellow-fade: rgba(255, 212, 18, 0);
  /* pictures that come in a light and a dark version (v2.28) */
  --footer-swoosh: url("/images/footer-swoosh.svg");
  --select-arrow: url("/images/select-arrow.svg");
  /* the phone pictures in "How it works": in dark mode a thin rim, so their black frames don't vanish,
     and screens a touch dimmer (v2.29) */
  --phone-pic-filter: none;
  /* the switcher shows the moon in light mode (press for dark) and the sun in dark mode (v2.28) */
  --theme-icon-moon: block;
  --theme-icon-sun: none;
  --mask-solid: #000000;       /* masks use only the opacity (the same in any look) */
  --logo-backing: #FFFFFF;     /* Windows contrast themes: the logo keeps a backing that suits its lettering
                                  (white here; dark behind the white-lettering logo in dark mode) */
  --font: Roboto, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
/* Phones: sections sit a little closer together; every section gap follows */
@media (max-width: 480px) {
  :root { --space-xl: 32px; }
}

/* --------------------------------------------------------------------------
   Dark mode (v2.28). The same names with their dark values, twice, word for word:
   1. the visitor's choice with the sun/moon switcher (theme.js sets data-theme="dark", always together with
      data-auto-dark, so nothing else that marks <html> can turn the page dark);
   2. the device's own dark setting, when the page follows it (data-auto-dark on <html>) and the visitor
      hasn't chosen light. tools/check_colours.py fails if the two blocks ever differ, or if a colour
      has no dark value. Screens only: pages always print in their light colours.
   Every name is listed, also where the value stays the same, so each one was decided.
   -------------------------------------------------------------------------- */
@media screen {
  :root[data-auto-dark][data-theme="dark"] {
  color-scheme: dark;
  --orange: #FF6C00;
  --orange-light: #FF8F3A;
  --orange-deep: #FF9A52;
  --yellow: #FFD412;
  --red: #FF6B7D;
  --ink: #FAF7F3;
  --text: #E8E3DD;
  --muted: #ABA39A;
  --line: #36312C;
  --panel: #1F1C19;
  --panel-hover: #2B2723;
  --line-hover: #45413C;
  --link-hover: #FFB27A;
  --ok: #6DD58C;
  --ok-soft: #15291C;
  --callout: #2B1D12;
  --disabled: #2E2B28;
  --paper: #141210;
  --text-disabled: #A39C94;
  --on-accent: #FFFFFF;
  --inverse: #F2EEE9;
  --on-inverse: #141210;
  --inverse-hover: #D9D3CC;
  --card: #1E1B18;
  --sand: #1C1814;
  --sand-line: #2E2822;
  --footer-bg: #231710;
  --footer-text: #E6D9CC;
  --footer-muted: #B5A393;
  --glass: rgba(20, 18, 16, 0.55);
  --glass-solid: rgba(20, 18, 16, 0.96);
  --dlg-close-bg: rgba(255, 255, 255, 0.94);
  --dlg-close-ring: #FFFFFF;
  --dlg-close-x: #000000;
  --video-bg: #0B0A09;
  --video-empty-text: #BDBDBD;
  --flash: #4A3A10;
  --line-strong: #4A443E;
  --field-line: #4A443E;
  --callout-line: #5A3A20;
  --attention-line: #B86A30;
  --tc-empty: #7A736B;
  --control-bg: rgba(70, 70, 70, 0.75);
  --dot: rgba(232, 227, 221, 0.45);
  --dot-hover: rgba(232, 227, 221, 0.7);
  --flag-ring: rgba(255, 255, 255, 0.18);
  --flag-ring-on-inverse: rgba(0, 0, 0, 0.25);
  --orange-hover: #E05E00;
  --accent-hover: #C84E00;
  --accent-active: #B04400;
  --totop-bg: #2B2723;
  --totop-ring: #FF6C00;
  --stripe-red: #C8102E;
  --burnt-fill: #9A3C00;
  --dot-current: #FF8F3A;
  --weproov: #7B61D9;
  --weproov-shadow: rgba(123, 97, 217, 0.3);
  --faq-line: #FF6C00;
  --view-text: #FAF7F3;
  --view-hover: #C84E00;
  --more-line: #FF6C00;
  --more-text: #FAF7F3;
  --more-hover: #C84E00;
  --ok-fill: #1A8539;
  --red-fill: #C8102E;
  --ok-bright: #3FB65F;
  --ok-line: #2F5A3C;
  --ok-tint: #13261A;
  --ok-pulse: rgba(109, 213, 140, 0.45);
  --ok-pulse-fade: rgba(109, 213, 140, 0);
  --red-soft: #3A1419;
  --red-ink: #FF8A98;
  --grace-soft: #3A2610;
  --grace-ink: #FFC27A;
  --holiday-soft: #3A3210;
  --holiday-ink: #FFE07A;
  --notice-info-bg: #14233A;
  --notice-info-line: #2F5384;
  --notice-info-icon: #8AB8FF;
  --notice-warning-bg: #2D1D10;
  --notice-warning-line: #7A4517;
  --notice-warning-icon: #FF8F3A;
  --notice-urgent-bg: #32141A;
  --notice-urgent-line: #7D2A33;
  --notice-urgent-icon: #FF7A88;
  --notice-glyph: #121212;
  --notice-close-hover: rgba(255, 255, 255, 0.1);
  --cc-face: #57514B;
  --cc-face-end: #3A3632;
  --cc-text: #F2EEE9;
  --cc-faint: #C4BCB3;
  --cc-chip: #D9B45B;
  --cc-chip-line: #B38F3A;
  --cc-name-ring: #FF8F3A;
  --cc-callout: #FF8F3A;
  --cc-shadow: rgba(0, 0, 0, 0.45);
  --info-pic-shadow: rgba(0, 0, 0, 0.45);
  --ins-paper: #2A2622;
  --ins-paper-line: #4A443E;
  --ins-bar: #3C3631;
  --ins-badge: #4CC27A;
  --ins-badge-glyph: #10261A;
  --info-opt-icon-bg: #3A2614;
  --info-opt-icon: #FF8F3A;
  --lic-face: #2B3540;
  --lic-face-end: #222B34;
  --lic-band: #2F5384;
  --lic-band-text: #F2F6FA;
  --lic-text: #E8EEF3;
  --lic-faint: #A9B6C2;
  --lic-photo: #3C4855;
  --lic-photo-glyph: #7D8C9A;
  --id2-face: #34302B;
  --id2-face-end: #2A2622;
  --id2-band: #5A4A3D;
  --id2-band-text: #F6F1EA;
  --id2-text: #EFE8DF;
  --id2-faint: #BFB2A3;
  --id2-photo: #4A433B;
  --id2-photo-glyph: #8C8072;
  --id2-bar: #4A433B;
  --info-ring-ok: #4CC27A;
  --warn: #B06000;
  --pending: #7A736B;          /* the same grey as the quick-check circles (v2.30) */
  --idle: #7A736B;
  --shadow-xs: rgba(0, 0, 0, 0.25);
  --shadow-s: rgba(0, 0, 0, 0.35);
  --shadow-m: rgba(0, 0, 0, 0.45);
  --shadow-l: rgba(0, 0, 0, 0.5);
  --shadow-dialog: rgba(0, 0, 0, 0.6);
  --backdrop: rgba(0, 0, 0, 0.7);
  --orange-shadow-30: rgba(255, 108, 0, 0.3);
  --orange-shadow-35: rgba(255, 108, 0, 0.35);
  --orange-shadow-40: rgba(255, 108, 0, 0.4);
  --orange-shadow-45: rgba(255, 108, 0, 0.45);
  --orange-shadow-50: rgba(255, 108, 0, 0.5);
  --orange-shadow-55: rgba(255, 108, 0, 0.55);
  --stage-glow-yellow: rgba(255, 212, 18, 0.1);
  --stage-glow-orange: rgba(255, 108, 0, 0.06);
  --sticky-glow-yellow: rgba(255, 212, 18, 0.08);
  --sticky-glow-orange: rgba(255, 108, 0, 0.05);
  --footer-glow-orange: rgba(255, 108, 0, 0.18);
  --footer-glow-orange-2: rgba(255, 108, 0, 0.15);
  --footer-glow-orange-fade: rgba(255, 108, 0, 0);
  --footer-glow-red: rgba(166, 46, 46, 0.14);
  --footer-glow-red-fade: rgba(166, 46, 46, 0);
  --footer-glow-yellow: rgba(255, 212, 18, 0.1);
  --footer-glow-yellow-fade: rgba(255, 212, 18, 0);
  --footer-swoosh: url("/images/footer-swoosh-dark.svg");
  --select-arrow: url("/images/select-arrow-light.svg");
  --phone-pic-filter: drop-shadow(0 0 0.7px #8C857D) drop-shadow(0 0 0.7px #8C857D) brightness(0.92);
  --theme-icon-moon: none;
  --theme-icon-sun: block;
  --mask-solid: #000000;
  --logo-backing: #141210;
  }
}
@media screen and (prefers-color-scheme: dark) {
  :root[data-auto-dark]:not([data-theme="light"]) {
  color-scheme: dark;
  --orange: #FF6C00;
  --orange-light: #FF8F3A;
  --orange-deep: #FF9A52;
  --yellow: #FFD412;
  --red: #FF6B7D;
  --ink: #FAF7F3;
  --text: #E8E3DD;
  --muted: #ABA39A;
  --line: #36312C;
  --panel: #1F1C19;
  --panel-hover: #2B2723;
  --line-hover: #45413C;
  --link-hover: #FFB27A;
  --ok: #6DD58C;
  --ok-soft: #15291C;
  --callout: #2B1D12;
  --disabled: #2E2B28;
  --paper: #141210;
  --text-disabled: #A39C94;
  --on-accent: #FFFFFF;
  --inverse: #F2EEE9;
  --on-inverse: #141210;
  --inverse-hover: #D9D3CC;
  --card: #1E1B18;
  --sand: #1C1814;
  --sand-line: #2E2822;
  --footer-bg: #231710;
  --footer-text: #E6D9CC;
  --footer-muted: #B5A393;
  --glass: rgba(20, 18, 16, 0.55);
  --glass-solid: rgba(20, 18, 16, 0.96);
  --dlg-close-bg: rgba(255, 255, 255, 0.94);
  --dlg-close-ring: #FFFFFF;
  --dlg-close-x: #000000;
  --video-bg: #0B0A09;
  --video-empty-text: #BDBDBD;
  --flash: #4A3A10;
  --line-strong: #4A443E;
  --field-line: #4A443E;
  --callout-line: #5A3A20;
  --attention-line: #B86A30;
  --tc-empty: #7A736B;
  --control-bg: rgba(70, 70, 70, 0.75);
  --dot: rgba(232, 227, 221, 0.45);
  --dot-hover: rgba(232, 227, 221, 0.7);
  --flag-ring: rgba(255, 255, 255, 0.18);
  --flag-ring-on-inverse: rgba(0, 0, 0, 0.25);
  --orange-hover: #E05E00;
  --accent-hover: #C84E00;
  --accent-active: #B04400;
  --totop-bg: #2B2723;
  --totop-ring: #FF6C00;
  --stripe-red: #C8102E;
  --burnt-fill: #9A3C00;
  --dot-current: #FF8F3A;
  --weproov: #7B61D9;
  --weproov-shadow: rgba(123, 97, 217, 0.3);
  --faq-line: #FF6C00;
  --view-text: #FAF7F3;
  --view-hover: #C84E00;
  --more-line: #FF6C00;
  --more-text: #FAF7F3;
  --more-hover: #C84E00;
  --ok-fill: #1A8539;
  --red-fill: #C8102E;
  --ok-bright: #3FB65F;
  --ok-line: #2F5A3C;
  --ok-tint: #13261A;
  --ok-pulse: rgba(109, 213, 140, 0.45);
  --ok-pulse-fade: rgba(109, 213, 140, 0);
  --red-soft: #3A1419;
  --red-ink: #FF8A98;
  --grace-soft: #3A2610;
  --grace-ink: #FFC27A;
  --holiday-soft: #3A3210;
  --holiday-ink: #FFE07A;
  --notice-info-bg: #14233A;
  --notice-info-line: #2F5384;
  --notice-info-icon: #8AB8FF;
  --notice-warning-bg: #2D1D10;
  --notice-warning-line: #7A4517;
  --notice-warning-icon: #FF8F3A;
  --notice-urgent-bg: #32141A;
  --notice-urgent-line: #7D2A33;
  --notice-urgent-icon: #FF7A88;
  --notice-glyph: #121212;
  --notice-close-hover: rgba(255, 255, 255, 0.1);
  --cc-face: #57514B;
  --cc-face-end: #3A3632;
  --cc-text: #F2EEE9;
  --cc-faint: #C4BCB3;
  --cc-chip: #D9B45B;
  --cc-chip-line: #B38F3A;
  --cc-name-ring: #FF8F3A;
  --cc-callout: #FF8F3A;
  --cc-shadow: rgba(0, 0, 0, 0.45);
  --info-pic-shadow: rgba(0, 0, 0, 0.45);
  --ins-paper: #2A2622;
  --ins-paper-line: #4A443E;
  --ins-bar: #3C3631;
  --ins-badge: #4CC27A;
  --ins-badge-glyph: #10261A;
  --info-opt-icon-bg: #3A2614;
  --info-opt-icon: #FF8F3A;
  --lic-face: #2B3540;
  --lic-face-end: #222B34;
  --lic-band: #2F5384;
  --lic-band-text: #F2F6FA;
  --lic-text: #E8EEF3;
  --lic-faint: #A9B6C2;
  --lic-photo: #3C4855;
  --lic-photo-glyph: #7D8C9A;
  --id2-face: #34302B;
  --id2-face-end: #2A2622;
  --id2-band: #5A4A3D;
  --id2-band-text: #F6F1EA;
  --id2-text: #EFE8DF;
  --id2-faint: #BFB2A3;
  --id2-photo: #4A433B;
  --id2-photo-glyph: #8C8072;
  --id2-bar: #4A433B;
  --info-ring-ok: #4CC27A;
  --warn: #B06000;
  --pending: #7A736B;          /* the same grey as the quick-check circles (v2.30) */
  --idle: #7A736B;
  --shadow-xs: rgba(0, 0, 0, 0.25);
  --shadow-s: rgba(0, 0, 0, 0.35);
  --shadow-m: rgba(0, 0, 0, 0.45);
  --shadow-l: rgba(0, 0, 0, 0.5);
  --shadow-dialog: rgba(0, 0, 0, 0.6);
  --backdrop: rgba(0, 0, 0, 0.7);
  --orange-shadow-30: rgba(255, 108, 0, 0.3);
  --orange-shadow-35: rgba(255, 108, 0, 0.35);
  --orange-shadow-40: rgba(255, 108, 0, 0.4);
  --orange-shadow-45: rgba(255, 108, 0, 0.45);
  --orange-shadow-50: rgba(255, 108, 0, 0.5);
  --orange-shadow-55: rgba(255, 108, 0, 0.55);
  --stage-glow-yellow: rgba(255, 212, 18, 0.1);
  --stage-glow-orange: rgba(255, 108, 0, 0.06);
  --sticky-glow-yellow: rgba(255, 212, 18, 0.08);
  --sticky-glow-orange: rgba(255, 108, 0, 0.05);
  --footer-glow-orange: rgba(255, 108, 0, 0.18);
  --footer-glow-orange-2: rgba(255, 108, 0, 0.15);
  --footer-glow-orange-fade: rgba(255, 108, 0, 0);
  --footer-glow-red: rgba(166, 46, 46, 0.14);
  --footer-glow-red-fade: rgba(166, 46, 46, 0);
  --footer-glow-yellow: rgba(255, 212, 18, 0.1);
  --footer-glow-yellow-fade: rgba(255, 212, 18, 0);
  --footer-swoosh: url("/images/footer-swoosh-dark.svg");
  --select-arrow: url("/images/select-arrow-light.svg");
  --phone-pic-filter: drop-shadow(0 0 0.7px #8C857D) drop-shadow(0 0 0.7px #8C857D) brightness(0.92);
  --theme-icon-moon: none;
  --theme-icon-sun: block;
  --mask-solid: #000000;
  --logo-backing: #141210;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth; /* smooth jump to a section, e.g. #id-verification */
  scrollbar-gutter: stable; /* the scrollbar's space stays when it hides, so locking the page (below) doesn't shift it */
}
/* While any window is open the page behind it doesn't scroll (v2.49): the wheel, a trackpad or a finger
   moves only the window. Unlocks by itself when the window closes; browsers without :has() scroll as before. */
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: inherit; }
a[href^="tel:"] { white-space: nowrap; } /* a phone number never splits over two lines */

.brand-stripe {
  height: 6px;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--orange) 55%, var(--stripe-red) 100%);
}

/* Page column: 760px for the content; the top bar and footer line up with
   globecar.com's wider 1080px layout. Phones use the full screen width. */
.wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 22px;
}
.site-header .wrap,
.site-footer .wrap { max-width: 1080px; }

/* ==========================================================================
   3. Header
   ========================================================================== */

.site-header {
  padding: 14px 0 8px;
}
.lang-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px; /* space between the top bar and the logo */
}

/* "Return to GlobeCar.com" (top left) */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.back-link:hover { background: var(--panel-hover); border-color: var(--line-hover); }
.back-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.back-arrow {
  width: 8px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(2px) rotate(45deg);
}
.back-short { display: none; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--line);
}
.lang-switch a {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 44px;   /* comfortable for thumbs */
  padding: 11px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}
/* small flag before FR (Quebec) and EN (Canada) */
.lang-switch .flag {
  width: auto;
  height: 12px;
  flex-shrink: 0;
  display: block;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--flag-ring); /* keeps the white parts visible */
}
.lang-switch a[aria-current="page"] .flag { box-shadow: 0 0 0 1px var(--flag-ring-on-inverse); }
/* same hover feedback as the "Return to GlobeCar.com" link (mouse only, no stuck hover after a tap) */
@media (hover: hover) {
  .lang-switch a:not([aria-current="page"]):hover {
    background: var(--panel-hover);
    color: var(--ink);
  }
}
.lang-switch a[aria-current="page"] {
  background: var(--inverse);
  color: var(--on-inverse);
}
.lang-switch a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
/* Light / dark switcher (v2.28), next to FR/EN and in the same pill style; theme.js runs it.
   It shows a moon in light mode (press for dark) and a sun in dark mode. */
.nav-prefs {
  display: flex;
  align-items: center;
}
.nav-prefs .theme-toggle { margin-left: 8px; } /* not flex gap: Safari before 14.1 ignores it */
.theme-toggle {
  display: inline-grid;
  flex-shrink: 0;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .theme-icon-moon { display: var(--theme-icon-moon); }
.theme-toggle .theme-icon-sun { display: var(--theme-icon-sun); }
@media (hover: hover) {
  .theme-toggle:hover { background: var(--panel-hover); }
}
.theme-toggle:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}
/* Top bar: back link on the left; BOOK NOW and FR/EN on the right.
   On phones everything moves into the burger menu (see "Phones: burger menu"). */
.site-header .wrap { position: relative; }
/* Text for screen readers and search engines only */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0); /* stylelint-disable-line property-no-deprecated -- iPhones before iOS 13.4 */
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.nav-menu {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Quiet text link in the header (not a button): jumps to the branches in the footer */
.nav-about,
.nav-vehicles,
.nav-locations {
  border-radius: 999px;
  transition: background-color 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 4px;
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.nav-about i,
.nav-vehicles i,
.nav-locations i { color: var(--orange); font-size: 0.95em; }
@media (hover: hover) {
  .nav-about:hover,
  .nav-vehicles:hover,
  .nav-locations:hover { background: var(--panel-hover); } /* same grey as the back link and the switcher */
}
.nav-about:focus-visible,
.nav-vehicles:focus-visible,
.nav-locations:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 8px; }

/* Landscape phones and small tablets: the full top bar is shown but is too tight for
   this extra link, and wrapping it would push START RENTAL below the fold. The branches
   are still one scroll away, and below 641px the link is in the burger menu. */


#locations { scroll-margin-top: 20px; }
#help, #aide { scroll-margin-top: 20px; }
#about, #a-propos { scroll-margin-top: 20px; }
#vehicles, #vehicules { scroll-margin-top: 20px; }

/* Customer reviews (Trustindex widget). Two things are set here rather than in the widget:
   the band colour (the widget's own background comes through transparent) and the width,
   because the widget places its arrows at the edges of whatever box it is given. */
.reviews { display: flow-root; background: var(--sand); }   /* same band as About, whose 40px already separates them */
/* The recording notice sits in its own band right after the reviews, same colour, so it looks like part of them;
   it is outside .footer, so it stays when .footer is hidden (the Median app). */
.notes-band { display: flow-root; background: var(--sand); padding: 0 0 16px; }
.notes-band .wrap { max-width: 900px; }   /* lines up with the reviews above */
.notes-band .footnotes { margin: var(--space-l) 0 0; }   /* the band ends just below the notice */
/* ?footer=off in the address (v2.40): theme.js puts .no-footer on <html> and this does what the app's own style
   does (README §4.10); the rules below then give the notice its room, as in the app */
.no-footer .footer { display: none !important; }

/* .footer hidden (body.footer-hidden, set by pickup.js): the page ends with this band, so give it room below,
   and on phones enough to clear the START RENTAL bar (the footer used to provide that room) */
body.footer-hidden .notes-band { padding-bottom: 40px; }
body.footer-hidden.has-sticky-cta .notes-band { padding-bottom: 104px; }
/* phones: the round back-to-top button (47px, 26px from the right edge) floats over this last text; keep the text clear of it */
@media (max-width: 640px) {
  body.footer-hidden .notes-band .footnotes p { padding-right: 56px; }
}
.reviews .wrap { max-width: 900px; }   /* a little wider than the text column, so the arrows sit near the card */
/* Dark mode (v2.31): Trustindex's dark widget, loaded by theme.js; the band stays the page's own */
/* The widget puts its own arrows at the card's edges, over long review text, at every screen width
   (30px wide, near each edge), so keep the TEXT clear of them. Only the text: padding the whole card
   squeezed the row of reviewer pictures and pushed the last one onto a second line (Trustindex
   support pointed this out). Checked by tools/reviews_widget_test.py. */
.reviews .ti-widget .ti-review-item .ti-review-content,
.reviews .ti-widget .ti-review-item .ti-read-more,
.reviews .ti-widget .ti-review-item .ti-profile-details {
  padding-left: 50px !important;
  padding-right: 50px !important;
}

/* ---------------------------------------------------------------------------
   Vehicle categories above the About section (the five from globecar.com)
   --------------------------------------------------------------------------- */
.fleet { padding: var(--space-xl) 0 10px; }
/* wider than the reading column: these are pictures, not text */
.fleet .wrap { max-width: 1120px; }
.fleet-title {
  margin: 0 0 var(--space-m);
  text-align: center;
  font-size: 1.375rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fleet-card {
  flex: 0 0 calc((100% - 32px) / 3);   /* three across at most, so the cards stay large */
  scroll-snap-align: start;
}
.fleet-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 8px 14px;
  border-radius: 14px;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.fleet-link img { width: 100%; height: auto; }
.fleet-name {
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fleet-price { color: var(--muted); font-size: 0.9375rem; white-space: nowrap; }
.fleet-choose {
  margin-top: 8px;
  padding: 8px 16px;
  border: 2px solid var(--orange);
  border-radius: 6px;
  color: var(--view-text);    /* darker than the brand orange: readable on white */
  font-size: 0.8125rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.18s ease, color 0.18s ease;
}
@media (hover: hover) {
  .fleet-link:hover { background: var(--panel); }
  .fleet-link:hover .fleet-choose { background: var(--view-hover); color: var(--on-accent); }
}
.fleet-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.fleet-arrow[disabled] { opacity: 0; pointer-events: none; }

@media (max-width: 700px) {
  .fleet-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 480px) {
  .fleet-title { font-size: 1.1875rem; }
  .fleet-card { flex-basis: 100%; }       /* one whole card, never a sliced one */
}
@media (prefers-reduced-motion: reduce) {
  .fleet-link, .fleet-choose { transition: none; }
}

/* Back-to-top button, matching globecar.com: 72px dark-red circle with a white chevron,
   fading in once the page is scrolled and sliding off to the right when hidden.
   Sits above and left of the Intercom launcher so it never covers it.
   Note: the page has [hidden]{display:none!important}, which would kill the fade, so the
   button is shown and hidden with a class instead of the hidden attribute. */
.totop {
  position: fixed;
  right: -80px;              /* parked off-screen until the page is scrolled */
  bottom: 120px;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--totop-bg);
  box-shadow: inset 0 0 0 2px var(--totop-ring);
  color: var(--on-accent);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1s, right 0s 1s, width 0.15s ease, height 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.totop.is-visible {
  right: 80px;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1s, width 0.15s ease, height 0.15s ease;
}
@media (hover: hover) {
  .totop.is-visible:hover { width: 80px; height: 80px; }
}
.totop:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

@media (max-width: 640px) {
  /* globecar.com puts it at 78px, but the Intercom launcher sits there on this site:
     lift it just above so both stay reachable */
  .totop { right: -47px; bottom: 96px; width: 47px; height: 47px; font-size: 26px; }
  .totop.is-visible { right: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .totop, .totop.is-visible { transition: none; }
}

/* Phone button in the top bar: jumps to the help box with the number */
.nav-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  border-radius: 999px;
  color: var(--orange);
  font-size: 1.0625rem;
  text-decoration: none;
  transition: background-color 0.18s ease;
}
.nav-help-text { display: none; } /* the icon alone in the top bar; the words show in the burger menu */
@media (hover: hover) {
  .nav-help:hover { background: var(--panel-hover); }
}
.nav-help:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* "Before you start:": the items that open something (ID verification, and since v2.46/v2.47 the licence, second
   ID, credit card and insurance windows, and the branch check) are links, in the list's normal weight so they
   don't shout; the dotted underline says they can be clicked. Their touch area reaches 2px above and below the
   words, no further: the rows are only 4px apart, so a taller area would cover part of the link on the next row. */
.ready-doc-link {
  display: inline-block;
  color: inherit;
  font: inherit;
  background: none;
  border: 0;
  padding: 2px 4px;                /* a touch area a little larger than the words... */
  margin: -2px -4px;               /* ...that takes no extra room */
  cursor: pointer;
  text-decoration: none;
}
.ready-doc-link .link-text {
  text-decoration: underline dotted var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.ready-doc-link:hover .link-text { text-decoration-style: solid; }
.ready-doc-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

/* "Trouble starting your rental?": the quick checks (the same buttons that used to sit under START RENTAL,
   so a passed test still shows "Passed"), one per row, then a way to reach a person. */
/* The three checks as a checklist (v2.9): an empty circle, the question with "Not tested yet", and an outlined
   "Test" button; once a test passes (.is-passed, set by markChip) the circle fills green with a tick, the note says
   "Passed" and the button "Test again". Each whole row is the button, so it's easy to tap. */
.step--trouble .trouble-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.step--trouble .trouble-checks li { border-bottom: 1px solid var(--line); }
.step--trouble .trouble-checks .chip-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 12px 4px;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.step--trouble .trouble-checks .chip-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: -3px; }
.tc-status {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--tc-empty);
  border-radius: 50%;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.is-passed .tc-status { background: var(--ok-fill); border-color: var(--ok-fill); }
.is-passed .tc-status::after {       /* the tick */
  content: "";
  width: 6px;
  height: 11px;
  border: solid var(--on-accent);
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.step--trouble .trouble-checks .chip-label {
  flex: 1;
  min-width: 0;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
}
.tc-note { display: block; margin-top: 2px; color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.tc-done, .is-passed .tc-idle { display: none; }
.is-passed .tc-done { display: inline; color: var(--ok); font-weight: 700; }
.step--trouble .trouble-checks .chip-action {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border: 2px solid var(--orange);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
/* Hover, as elsewhere on the site: the row gets the vehicle cards' grey, and the button fills like the other
   outlined buttons, in the deep orange of the help buttons (white text 4.6:1; the brand orange gives 2.8:1).
   Keyboard focus shows the same fill. Only where hovering exists. */
@media (hover: hover) {
  .step--trouble .trouble-checks .chip-btn:hover { background: var(--panel); }
  .step--trouble .trouble-checks .chip-btn:hover .chip-action,
  .step--trouble .trouble-checks .chip-btn.is-passed:hover .chip-action {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    color: var(--on-accent);
  }
}
.step--trouble .trouble-checks .chip-btn:focus-visible .chip-action,
.step--trouble .trouble-checks .chip-btn.is-passed:focus-visible .chip-action {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--on-accent);
}
.step--trouble .trouble-checks .chip-btn.is-passed .chip-action {   /* the older chip design filled it green */
  border-color: var(--line-hover);
  background: var(--card);
  color: var(--ink);
}
@media (prefers-reduced-motion: reduce) { .tc-status, .step--trouble .trouble-checks .chip-action { transition: none; } }
.step--trouble .trouble-still {       /* scoped: section paragraphs are justified 17px with no top margin */
  margin: var(--space-m) 0 0;
  max-width: none;                   /* full section width, like the checklist above it */
  color: var(--muted);
  font-size: 0.95rem;
  text-align: left;
  hyphens: manual;
}
.step--trouble .trouble-still a { color: var(--ink); font-weight: 700; white-space: nowrap; }   /* the number stays whole */
.step--trouble .trouble-still a,
.step--trouble .trouble-still .wifi-link--inline {
  display: inline-block;
  padding: 13px 2px;               /* 44px-tall touch areas that take no extra room */
  margin: -13px -2px;
}
.step--trouble .wifi-link--inline {   /* a link inside the sentence, not the big Wi-Fi button */
  min-height: 0;
  font-size: inherit;
  vertical-align: baseline;
}

/* "How Live Virtual Pickup Works": steps on the left, the matching picture on the right, with previous / next
   arrows under it. It moves through the steps by itself; hovering (or tabbing to) a step shows that step.
   See initHowSteps in pickup.js. */
.how-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  align-items: stretch;            /* the picture column is exactly as tall as the steps list... */
  gap: 28px;
}
.how-steps { align-self: center; }
/* ...because the picture fills whatever height the list leaves after the arrows (no empty bands above
   and below the steps, in either language). The pictures sit on top of each other (absolute) while one
   replaces another, so they add no height of their own. */
.how-visual {
  display: flex;
  flex-direction: column;
}
.how-figure {
  position: relative;
  margin: 0;
  flex: 1 1 auto;
  min-height: 220px;
  /* short screens (phones and small tablets held sideways): the picture and its arrows fit together */
  max-height: min(400px, calc(100vh - 60px));
  max-height: min(400px, calc(100dvh - 60px));
}
.how-figure picture { display: contents; }
/* the phone pictures (not the key machine) get a rim and a slight dimming in dark mode (v2.29) */
.how-steps li:not([data-how-step="3"]) .sc-pic img,
[data-how-image]:not([data-how-image="3"]) { filter: var(--phone-pic-filter); }
.how-figure img {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
}
/* With JavaScript every picture is present; only the current one is visible. Changing step slides the old one
   out and the new one in (direction follows the step order), about half a second. */
.how-figure.is-animated img {
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.how-figure.is-animated img.is-shown { opacity: 1; }

/* Previous / next under the picture: small 32px circles (the carousels' arrows, scaled down), each in an
   invisible 44px touch area, so they take little room but stay easy to tap on a tablet. */
.how-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 4px;
}
.how-controls .carousel-arrow {
  width: 44px;
  height: 44px;
  background: transparent;
  isolation: isolate;              /* keeps the circle (::after) behind the chevron (::before) */
}
.how-controls .carousel-arrow::after {
  content: "";
  position: absolute;
  inset: 6px;                      /* 44 - 2 x 6 = a 32px circle */
  z-index: -1;
  border-radius: 50%;
  background: var(--control-bg);
  transition: background-color 0.2s ease;
}
.how-controls .carousel-arrow::before { width: 8px; height: 8px; border-top-width: 2px; border-right-width: 2px; }
.how-controls .carousel-arrow:hover { background: transparent; }
.how-controls .carousel-arrow:hover::after { background: var(--burnt-fill); }
.how-controls .carousel-arrow:focus-visible { outline-offset: -2px; }
/* "2 / 4" between the arrows */
.how-counter {
  min-width: 3.4em;                /* same width for every step: the arrows don't shift */
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  white-space: nowrap;
}
.how-controls[hidden] { display: none; }
/* The step being pointed at (or tapped on a phone) is highlighted, and its number turns orange,
   so it's clear which step the picture belongs to. */
.how-steps li {
  border-radius: 12px;
  transition: background-color 0.18s ease;
}
/* the step whose picture is showing */
.how-steps li.is-current { background: var(--panel); color: var(--ink); }
.how-steps li.is-current .sc-num { background: var(--orange); color: var(--on-accent); transform: scale(1.12); }

@media (hover: hover) {
  .how-steps li:hover { cursor: default; }
}
@media (prefers-reduced-motion: reduce) {
  .how-steps li { transition: none; }
}


@media (prefers-reduced-motion: reduce) {
  .how-figure.is-animated img { transition: none; }
}


/* "Your pickup branch" panel in the Location check window (when ?branch=… names one,
   or once the check confirms which branch you're at) */
.loc-branch {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel);
}
.loc-branch p { margin: 0; }
.loc-branch-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.loc-branch-name {
  margin-top: 4px !important;
  font-weight: 700;
  line-height: 1.3;
}
.loc-branch-name i { color: var(--orange); margin-right: 6px; }
.loc-branch-address {
  margin-top: 2px !important;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.4;
}
.loc-branch-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px !important;
}
.loc-branch-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink);
  text-decoration: none;   /* the underline goes on the words (.link-text), not under the icon */
}
.loc-branch-link .link-text,
.wifi-link .link-text,
.how-hint-link .link-text {
  text-decoration: underline dotted var(--orange);   /* same as every link in the pickup section */
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.loc-branch-link i { color: var(--orange); }
@media (hover: hover) {
  .loc-branch-link:hover { color: var(--orange-deep); }
  .loc-branch-link:hover .link-text { text-decoration-style: solid; text-decoration-color: var(--orange-deep); }
}
.loc-branch-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* links inside the return steps: comfortable to tap without changing the line spacing
   (the how-steps links already have their own padding further down) */
.return-steps a { padding: 5px 0; }

/* the car icon in this button comes from Font Awesome (<i class="fa-solid fa-car-side">) */
.nav-book i { flex: none; margin-right: 9px; font-size: 0.95em; }
.nav-book {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--orange); /* var(--orange) */
  color: var(--on-accent); /* option B chosen: white on var(--orange) (2.8:1, below the WCAG AA 4.5:1 minimum) */
  font-size: 0.875rem;
  font-weight: 900; /* extra bold */
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px var(--orange-shadow-30);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.nav-book:hover,
.nav-book:focus-visible {
  background: var(--orange-light);
  box-shadow: 0 8px 20px var(--orange-shadow-45);
  transform: translateY(-2px);
}
.nav-book:active {
  background: var(--orange);
  box-shadow: 0 2px 6px var(--orange-shadow-35);
  transform: translateY(0);
}
.nav-book:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Burger button (phones only) */
.nav-toggle {
  display: none;   /* shown by the burger breakpoint below */
  place-items: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.nav-toggle:hover { background: var(--panel-hover); border-color: var(--line-hover); }
.nav-toggle:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.nav-toggle-lines {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
}
.nav-toggle-lines span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}
.nav-toggle-lines span:nth-child(1) { top: 0; }
.nav-toggle-lines span:nth-child(2) { top: 7px; }
.nav-toggle-lines span:nth-child(3) { top: 14px; }
/* open: the three lines turn into an X */
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.site-header picture { display: block; }
.site-header picture img {
  width: min(320px, 78vw);
  margin: 0 auto;
}

/* ==========================================================================
   4. Hero (title and subtitle)
   ========================================================================== */

/* "Page not found": notice above the title, added by language.php on a 404 (v2.23) */
.notfound-notice p {
  max-width: 46ch;
  margin: var(--space-m) auto 0;
  padding: 12px 16px;
  border: 1px solid var(--callout-line);
  border-radius: 12px;
  background: var(--callout);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}
.notfound-notice strong { display: block; margin-bottom: 2px; }

.hero {
  position: relative;
  text-align: center;
  padding: 24px 0 var(--space-l); /* space under the logo; 24px under the links at the bottom, as above them (v2.36) */
  isolation: isolate;
  overflow-x: clip;
}

h1 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

/* v2.38: the tagline alone ("Skip the counter, not the service!"), a second headline: larger than the
   sentence it replaced, clearly smaller than the title (about 60% of it at every size) */
.hero-subtitle {
  max-width: 48ch;
  margin: var(--space-m) auto 0;
  text-wrap: balance;
  color: var(--ink);
  font-weight: 700;
  font-size: clamp(1.5rem, 5vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
/* "New here? See how it works": its own line between the subtitle and the status pill */
.how-hint {
  margin: var(--space-s) auto 0;   /* 12: a closely related line; the pill keeps its 24 below */
  text-align: center;
  color: var(--muted);
  text-wrap: balance;
}
.how-hint-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;           /* the underline goes on the words (.link-text), not under the arrow */
  white-space: nowrap;             /* the link never breaks in two: on narrow phones it moves to its own line */
  display: inline-block;
  padding: 12px 4px;               /* a 44px-tall tap target... */
  margin: -12px -4px;              /* ...that takes no extra room */
}
.how-hint-link i { margin-left: 5px; color: var(--orange); font-size: 0.85em; }
@media (max-width: 319px) {        /* narrower than an iPhone SE (folded phones): the French link is wider than the screen, so let it wrap */
  .how-hint-link { white-space: normal; }
}

/* ==========================================================================
   5. Live status (open / closed / holiday)
   ========================================================================== */

.live-status {
  /* inline text (not flex), centred: when a longer message wraps onto two or three lines they stay centred,
     with the dot at the start of the first line; 18px corners are fully round on one line, soft on several */
  display: inline-block;
  max-width: 100%;
  margin: var(--space-l) 0 0;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
  text-wrap: balance;
}
.live-status.is-open { background: var(--ok-soft); color: var(--ok); }
.live-status.is-closed { background: var(--red-soft); color: var(--red-ink); }
.live-status.is-grace { background: var(--grace-soft); color: var(--grace-ink); }   /* past the hours, but you can still go ahead */
.live-status.is-holiday { background: var(--holiday-soft); color: var(--holiday-ink); }
.live-status.is-holiday .live-dot { display: none; }
.live-dot {
  display: inline-block;
  margin-right: 8px;
  vertical-align: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}
.live-status.is-open .live-dot { animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 var(--ok-pulse); }
  70% { box-shadow: 0 0 0 7px var(--ok-pulse-fade); }
  100% { box-shadow: 0 0 0 0 var(--ok-pulse-fade); }
}
.live-status:not([hidden]) + .cta-stage { margin-top: var(--space-m); }
.live-status.is-pending { visibility: hidden; }
/* Until the real Montreal time is confirmed (max ~1.5 s), START RENTAL shows as a grey
   "Loading…" placeholder. The whole look lives in 3-second animations, so if the script
   never runs the button turns back into a normal, clickable START RENTAL by itself. */
.cta-stage.is-settling::before { animation: cta-loading-glow 3s step-end forwards; }
.cta-stage.is-settling #pickupcarnowbtn {
  scroll-margin-top: 120px;  /* room above it when reached from a link */
  position: relative;
  animation: cta-loading 3s step-end forwards;
}
.cta-stage.is-settling #pickupcarnowbtn .cta-label { animation: cta-loading-hide 3s step-end forwards; }
.cta-stage.is-settling #pickupcarnowbtn::after {
  content: attr(data-loading-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: cta-loading-text 3s step-end forwards;
}
/* The empty `to {}` steps are deliberate: the style applies only while the animation runs. */
/* stylelint-disable block-no-empty -- see just above */
@keyframes cta-loading {
  from { background-color: var(--disabled); color: var(--text-disabled); box-shadow: none; pointer-events: none; cursor: default; }
  to {}
}
@keyframes cta-loading-hide { from { visibility: hidden; } to {} }
@keyframes cta-loading-text { from { visibility: visible; } to { visibility: hidden; } }
@keyframes cta-loading-glow { from { opacity: 0; } to {} }
/* stylelint-enable block-no-empty */
.cta-stage.is-settled #pickupcarnowbtn .cta-label { animation: settle-in 0.25s ease-out; }
.live-status:not(.is-pending) { animation: settle-in 0.25s ease-out; }
@keyframes settle-in { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================================================
   6. START RENTAL button
   ========================================================================== */

.cta-stage {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: center;
  margin: 44px 0 30px;
}

#pickupcarnowbtn {
  display: inline-block;
  appearance: none;
  border: none;
  cursor: pointer;
  max-width: 100%;
  padding: clamp(20px, 3.6vw, 30px) clamp(32px, 6vw, 72px);
  border-radius: 999px;
  background-color: var(--orange);
  color: var(--on-accent);
  font-family: var(--font);
  font-size: clamp(2rem, 8vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  text-wrap: balance;
  text-decoration: none;
  box-shadow: 0 12px 40px var(--orange-shadow-45);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
#pickupcarnowbtn:hover {
  background-color: var(--orange-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 56px var(--orange-shadow-55);
}
#pickupcarnowbtn:active {
  transform: translateY(0);
  box-shadow: 0 8px 26px var(--orange-shadow-40);
}
#pickupcarnowbtn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 4px;
}
#pickupcarnowbtn[aria-busy="true"] {
  cursor: progress;
  opacity: 0.85;
}

/* Button while live video pickup is closed */
#pickupcarnowbtn:disabled,
#pickupcarnowbtn:disabled:hover,
#pickupcarnowbtn:disabled:active {
  background-color: var(--disabled);
  color: var(--text-disabled);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* warm glow centred on the START RENTAL button */
.cta-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(620px, 150vw);
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--stage-glow-yellow), var(--stage-glow-orange) 55%, transparent 100%);
  z-index: -1;
  pointer-events: none;
}

/* glow only suits the orange button: hide it while closed */
.cta-stage.is-closed::before { display: none; }

/* Fallback message when Zoom doesn't load */
.cta-fallback {
  max-width: 44ch;
  margin: -12px auto 22px;
  padding: 10px 14px;
  border: 1px solid var(--callout-line);
  border-radius: 12px;
  background: var(--callout);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}
/* Message shown instead of START RENTAL when JavaScript is turned off */
.cta-noscript {
  max-width: 46ch;
  margin: 0 auto;
  text-align: center;
}
.cta-noscript strong { display: block; margin-bottom: 4px; }
.cta-fallback a {
  display: inline-block;
  padding: 12px 0; /* comfortable tap area */
  margin: -12px 0;
}

/* ==========================================================================
   7. Info line under the button (live video, recorded*)
   ========================================================================== */

.pickup-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: -14px auto 18px; /* sits right under the START RENTAL button */
  padding: 0;
  list-style: none;
}
.fact {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.fact-icon {
  font-size: 0.95rem;
  line-height: 1;
}
/* Font Awesome icons that replaced emoji: colours the emoji used to carry themselves */
.fact-icon.fa-video { color: var(--ink); }
.fact-icon.fa-circle { color: var(--red); font-size: 0.6rem; vertical-align: 0.15em; } /* the "recording" dot */
.ready-list i,
.wifi-link i,
.help p > i,
.dt-wifi-title > i,
.wifitest h2 > i,
[data-dt-sound-start] i { color: var(--orange); }
.ready-list li > a i.fa-circle-check { color: var(--ok); } /* done = green, as the tick was */
.loc-privacy > i { color: var(--muted); }
.chip-btn.is-passed .chip-label i { color: var(--ok); }
.fact-text { color: var(--muted); }
.fact-value,
.fact-label {
  font-size: 0.875rem;
  line-height: 1.4;
}
.fact-value {
  color: var(--text);
  font-weight: 500;
}

/* Asterisk after "are recorded" */
.footnote-ref {
  position: relative;
  margin-left: 1px;
  color: var(--orange-deep);
  font-weight: 700;
  text-decoration: none;
}
.footnote-ref::after {
  content: "";
  position: absolute;
  inset: -12px -14px; /* bigger tap area, same look */
}
.footnote-ref:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 2px; }

/* ==========================================================================
   8. "Before you start" checklist
   ========================================================================== */

/* Shared link look: the help phone number, the "video call isn't loading" phone number
   and the branch phone numbers */
.help p a,
.cta-fallback a,
.loc-phone a,
.about a,
.how-steps a { color: var(--ink); font-weight: 700; }
.how-steps a .sc-title {
  text-decoration: underline dotted var(--orange);   /* same as every link in this part of the page */
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.help p a:hover,
.cta-fallback a:hover,
.how-steps a:hover .sc-title { color: var(--orange-deep); text-decoration-style: solid; text-decoration-color: var(--orange-deep); }
.about a,
.about a:hover { color: var(--link-hover); }
.loc-phone a:hover { color: var(--link-hover); } /* readable on the orange footer */
.help p a:focus-visible,
.cta-fallback a:focus-visible,
.about a:focus-visible,
.how-steps a:focus-visible,
.loc-phone a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.ready-check {
  margin: var(--space-l) auto 0;
}
.ready-title {
  margin: 0 0 8px;
  line-height: 1.6;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
}
/* Documents to bring: one compact wrapped list */
.ready-docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
}
.ready-docs li { white-space: nowrap; }
/* Tablets and computers: 3 items on the first line, 2 on the second */
@media (min-width: 701px) {
  .ready-docs { row-gap: 2px; } /* the invisible line break below adds its own gap */
  .ready-docs .ready-doc-link { padding-block: 1px; margin-block: -1px; }   /* rows only 2px apart here */
  .ready-docs li:nth-child(n+4) { order: 2; }
  .ready-docs::after {
    content: "";
    order: 1;
    flex-basis: 100%;
    height: 0;
  }
}
.ready-title--then { margin-top: 16px; }

/* "Then check": the action items, a 2 × 2 grid (one centred column of chips on phones) */
.ready-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr; /* all items the same height as the tallest one */
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ready-list li {
  display: flex;
  min-width: 0;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.3;
}
/* Interactive checklist items: the ID verification link and the camera/mic test */
.ready-list li:has(> a),
.ready-list li:has(> .chip-btn) {
  padding: 0;
  border-color: var(--ok-line);
  background: var(--ok-tint);
}
.ready-list a {
  position: relative;
  display: block;
  padding: 7px 12px;
  border-radius: 16px;
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}
.ready-list a::after {
  content: "";
  position: absolute;
  inset: -7px -2px; /* bigger tap area, same look */
}
.ready-list a:hover { background: var(--ok-soft); }
.ready-list a:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Camera/mic chip is a button styled like the link chip */
.chip-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;   /* comfortable for thumbs */
  padding: 7px 8px 7px 12px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font);
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}
.chip-btn::after {
  content: "";
  position: absolute;
  inset: -7px -2px; /* bigger tap area, same look */
}
.chip-action {
  flex-shrink: 0;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
}
.chip-btn:hover { background: var(--ok-soft); }
.chip-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.ready-list li > a,
.ready-list li > .chip-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  text-align: left;
}
.ready-list li > span { align-self: center; padding: 0 2px; } /* plain text when a test isn't supported */

/* ---------- Checklist: passed tests ---------- */
.chip-btn.is-passed .chip-action { background: var(--ok-fill); color: var(--on-accent); } /* white text: 5.9:1 contrast */
.ready-list li:has(> .chip-btn.is-passed) {
  border-color: var(--ok-bright);
  background: var(--ok-soft);
}

/* ==========================================================================
   9. Help box (phone number and FAQ)
   ========================================================================== */

.help {
  background: var(--panel);
  border-radius: 18px;
  padding: 22px 24px;
}
.help p { margin: 0; }
.help p a {
  display: inline-block;
  padding: 12px 0; /* comfortable tap area */
  margin: -12px 0;
}

.help-faq {
  display: flex;
  align-items: center;
  gap: 12px 20px;
  margin-top: var(--space-m);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.help-faq p {
  flex: 1;
  margin: 0;
  color: var(--text);
  font-size: 0.975rem;
  line-height: 1.45;
}
/* Same look as the ID verification button (section 10), outline version:
   size, text, arrow and hover are shared */
.help-faq .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 0.95rem 1.6rem;
  border: 2px solid var(--faq-line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

/* ==========================================================================
   10. Pickup steps (Onfido, WeProov, Returning your vehicle)
   ========================================================================== */

.section-rule {
  height: 0;
  margin: calc(var(--space-xl) - 1px) 0 0;   /* 40px from the help box, line included */
  border: 0;
  border-top: 1px solid var(--line);
}
/* v2.36: the help box moved into "Need help or having trouble…", so the sections start right under the
   checklist: the line sits where the help box started (the hero's own bottom space above it) */
.section-rule--first { margin-top: 0; }

/* The help box inside that section: first in it, above the quick checks, its text as before (ragged,
   full width), not justified like the section's body text */
.step--trouble .help { margin: 4px 0 var(--space-l); }
.step--trouble .help p {
  max-width: none;
  margin: 0;
  text-align: left;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.step {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-of-type { border-bottom: 0; }
#id-verification { scroll-margin-top: 16px; }

/* Heading with an inline partner logo: normal text flow so the title wraps beside the logo */
.step h2.title-with-logo {
  display: block;
}
/* the logo's picture wrapper (it has a white version for dark mode) takes no part in the layout */
.title-with-logo picture { display: contents; }
.partner-logo {
  display: inline-block;
  width: auto;
  height: 1.1em;
  margin: 0 0.3em 0 0;
  vertical-align: -0.2em;
}
/* "Required" badge: outside the heading (clean heading text), right after the title */
.acc-summary .badge {
  margin-left: 0.2em; /* plus the normal space before it */
  vertical-align: 0.3em;
  white-space: nowrap;
}

.step h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
}
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.4;
}
.badge--ok { background: var(--ok-soft); color: var(--ok); }   /* green: good news, e.g. "Available 24/7" */

/* Body text: justified (hyphenation keeps word spacing even), left-aligned on very narrow screens */
.step p {
  max-width: 72ch; /* comfortable reading line */
  margin: 0 0 12px;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}
.step p.deadline {
  max-width: none; /* a callout box, not body text: match the boxes around it whatever the font */
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.deadline {
  margin-top: var(--space-l) !important;
  padding: 12px 16px;
  border-left: 4px solid var(--orange);
  background: var(--callout);
  border-radius: 0 10px 10px 0;
  color: var(--ink);
  font-weight: 500;
}

.btn-secondary {
  display: flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  margin: var(--space-l) auto 0;
  padding: 0.95rem 1.6rem;
  border: 2px solid var(--inverse);
  border-radius: 999px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
/* Shared by the ID verification and FAQ buttons */
/* small arrow that slides on hover (decorative: not read by screen readers) */
.btn-secondary::after,
.help-faq .btn-outline::after {
  content: "→";
  content: "→" / "";
  display: inline-block;
  margin-left: 0.5em;
  transition: transform 0.2s ease;
}
/* hover: deep brand orange (white text 4.6:1), slight lift and warm glow */
.btn-secondary:hover,
.btn-secondary:focus-visible,
.help-faq .btn-outline:hover,
.help-faq .btn-outline:focus-visible {
  border-color: var(--accent-hover);
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--orange-shadow-35);
}
.btn-secondary:hover::after,
.btn-secondary:focus-visible::after,
.help-faq .btn-outline:hover::after,
.help-faq .btn-outline:focus-visible::after { transform: translateX(4px); }
.btn-secondary:active,
.help-faq .btn-outline:active {
  border-color: var(--accent-active);
  background: var(--accent-active);
  color: var(--on-accent);
  transform: translateY(0);
  box-shadow: 0 3px 8px var(--orange-shadow-30);
}
.btn-secondary:focus-visible,
.help-faq .btn-outline:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.app-download {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: var(--space-l);
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.app-download:hover {
  border-color: var(--weproov);
  box-shadow: 0 6px 18px var(--weproov-shadow);
}
.app-download:focus-visible { outline: 3px solid var(--weproov); outline-offset: 3px; }
.app-download img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  flex-shrink: 0;
}
.app-download .app-text { flex: 1; min-width: 0; }
.app-download strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.3;
}
.app-download .app-text > span { color: var(--muted); font-size: 0.95rem; } /* not the app's name in the title (v2.29) */
.app-download .app-go {
  flex-shrink: 0;
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  background: var(--weproov);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Foldable sections */
.acc-summary {
  position: relative;
  display: block; /* title and "Required" badge flow on the same line */
  min-height: 52px;
  padding: 11px 52px 11px 0; /* room for the arrow on the right */
  list-style: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.acc-summary::-webkit-details-marker { display: none; }
.acc-summary::marker { content: ""; }
.step .acc-summary h2 { display: inline; margin: 0; }
.acc-chevron {
  position: absolute;
  top: calc(50% - 18px);
  right: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--card);
  transition: transform 0.28s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.acc-chevron::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateY(-2px) rotate(45deg);
}
.acc[open] > .acc-summary .acc-chevron { transform: rotate(180deg); }
.acc-summary:hover .acc-chevron { background: var(--panel); border-color: var(--field-line); }
.acc-summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
  border-radius: 10px;
}
.acc-body { padding-top: var(--space-m); }
.acc-body > :last-child { margin-bottom: 4px; }
.acc-body.is-animating { overflow: hidden; } /* clips the content while a section opens or closes */

/* Returning your vehicle: numbered steps with a thin connecting line */
.return-steps,
.how-steps {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.return-steps { counter-reset: return-step; }
.return-steps li,
.how-steps li {
  position: relative;
  padding: 8px 12px 12px; /* room for the highlight around the text */
  margin-bottom: 4px;
  color: var(--text);
  line-height: 1.5;
}
/* one set of markup serves both layouts: on wide screens the picture and arrow are hidden
   and each step reads as a title with a line of detail under it */
.step-card { display: flex; gap: 10px; align-items: flex-start; color: inherit; text-decoration: none; }
.how-steps .sc-pic, .how-steps .sc-go { display: none; }
.sc-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sc-head { display: flex; align-items: center; gap: 10px; }
.sc-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.18s ease, transform 0.18s ease;
}
.sc-title { font-weight: 700; color: var(--ink); }
a.step-card .sc-title {
  text-decoration: underline dotted var(--orange);   /* same as every link in this part of the page */
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.sc-sub { color: var(--muted); font-size: 0.9375rem; font-weight: 700; padding-left: 36px; }
a.step-card:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }

/* Phones: each step becomes a card with its own picture (no hover on a phone) */
@media (max-width: 820px) {
  .how-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-visual { display: none; }            /* the cards carry the pictures instead */
  .how-steps { display: grid; gap: 12px; }
  .how-steps li { padding: 0; margin: 0; background: none !important; }
  .how-steps li::after { display: none; } /* the connecting line belongs to the desktop list only */
  .step-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    box-shadow: 0 1px 3px var(--shadow-xs);
  }
  .how-steps .sc-pic {
    display: grid;
    place-items: center;
    height: 104px;
    margin: 0;
    border-radius: 12px;
    background: var(--panel);
    overflow: hidden;
  }
  .how-steps .sc-pic img { max-height: 96px; width: auto; height: auto; }
  .how-steps .sc-go { display: block; color: var(--orange); justify-self: end; }
  .step-card--plain .sc-go { visibility: hidden; }
  .sc-num { width: 24px; height: 24px; background: var(--orange); color: var(--on-accent); }
  .sc-title { font-size: 0.9375rem; font-weight: 900; letter-spacing: 0.03em; text-transform: uppercase; }
  .sc-sub { padding-left: 34px; font-size: 0.875rem; line-height: 1.35; } /* badge 24px + 10px gap: lines up with the title */
  a.step-card .sc-title { text-decoration: none; }
}
.return-steps li:last-child,
.how-steps li:last-child { padding-bottom: 0; }
.return-steps li {
  counter-increment: return-step;
  padding: 1px 0 14px 40px;  /* room for the number badge */
  margin-bottom: 0;
}
.return-steps li::before {
  content: counter(return-step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
}

.return-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 12.5px;
  top: 30px;
  bottom: 2px;
  width: 1px;
  background: var(--line-hover);
}
.how-steps li:not(:last-child)::after { /* badge sits inside the step, so the line is further in */
  content: "";
  position: absolute;
  left: 24.5px;
  top: 40px;
  bottom: 2px;
  width: 1px;
  background: var(--line-hover);
}
/* "How live virtual pickup works": step links use the shared link look (the list's bottom margin is
   already 0, from the Returning steps' rule above) */
.how-steps strong { color: var(--ink); }
/* START RENTAL keeps some room above it when reached from a link */

/* Steps on the left, key drop box photo on the right (below the steps on phones) */
.return-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 227px; /* photo at its real size (225 × 300) + 1px border */
  align-items: center;
  gap: 28px;
}
.return-photo {
  margin: 0;
  text-align: center;
}
.return-photo img {
  width: 100%;
  max-width: 227px; /* 225 × 300 image + 1px border: never enlarged */
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 14px var(--shadow-s);
}
.return-photo figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.4;
}

/* Not a step: what happens after the keys are dropped */
/* same callout look as the 30-minute deadline in the inspection section */
.step p.return-note {
  display: flex;
  gap: 10px;
  max-width: none;   /* same width as the box below, not the 72ch reading limit for body text */
  margin: var(--space-l) 0 0;  /* clear space after the last step */
  padding: 12px 16px;
  border-left: 4px solid var(--orange);
  border-radius: 0 10px 10px 0;
  background: var(--callout);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}
.step p.return-note > span { text-align: left; } /* the section justifies text; this short note reads better ragged */
.step p.return-note > i {
  flex: none;
  margin-top: 0.22em;
  color: var(--orange);
}

.return-after-hours {
  margin-top: var(--space-l);
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--panel);
}
.step .return-after-hours p {
  margin: 0;
  text-align: left;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.step .return-after-hours .return-after-hours-title {
  margin: 0;
  color: var(--ink);
  font-size: inherit;
  font-weight: 700;
  line-height: inherit;
}

/* ==========================================================================
   11. Footnote: recording notice (Law 25)
   ========================================================================== */

/* "Sessions are recorded*" links here; the note gets a short highlight when reached */
.footnotes {
  position: relative;
  margin: 4px 0 36px;
  padding-top: 14px;
}
.footnotes::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  border-top: 1px solid var(--line-strong);
}
.footnotes p {
  position: relative;
  max-width: none; /* one line on computers when the text fits */
  margin: 0;
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.5;
  scroll-margin-top: 24px;
  scroll-margin-bottom: 120px; /* stays clear of the START RENTAL bar on phones */
  border-radius: 6px;
}
.fn-sym {
  position: absolute;
  left: 0;
  color: var(--orange-deep);
  font-weight: 700;
}
/* Soft highlight that fades out after tapping the asterisk */
.footnotes p:target { animation: fn-flash 2.4s ease-out; }
@keyframes fn-flash {
  0%, 35% { background: var(--flash); color: var(--ink); box-shadow: 0 0 0 6px var(--flash); }
  100% { background: transparent; color: var(--muted); box-shadow: 0 0 0 6px transparent; }
}

/* ==========================================================================
   11b. Our locations (carousel above the footer, built from settings.js)
   ========================================================================== */
.locations { padding: 4px 0 8px; } /* inside the footer, under the swoosh */
.locations .wrap { max-width: 1080px; }
.locations-title {
  margin: 0 auto var(--space-m);
  color: var(--link-hover); /* burnt orange: readable on the orange footer */
  font-size: clamp(1.5rem, 4.5vw, 1.875rem);
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}
/* One carousel used twice (branches and vehicles): same grid, arrows, dots and behaviour.
   Only the cards inside the track differ. */
.carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "prev track next"
    ".    dots  .";
  align-items: center;
  gap: 4px 12px;
}
.carousel-prev { grid-area: prev; }
.carousel-next { grid-area: next; }
.carousel-arrow[hidden] { display: none; }
/* navigation dots under the cards (24px tap targets, smaller visible dots) */
.carousel-dots {
  grid-area: dots;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px;
}
.carousel-dot {
  position: relative;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.carousel-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--dot); /* visible on the orange footer */
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, background-color 0.2s ease;
}
.carousel-dot:hover::before { background: var(--dot-hover); }
.carousel-dot[aria-current="true"]::before { width: 20px; background: var(--dot-current); } /* current position: wider, burnt orange */
.carousel-dot:focus-visible { outline: 3px solid var(--ink); outline-offset: -2px; border-radius: 8px; }
.carousel-track {
  grid-area: track;
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 4px 0 8px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.loc-card {
  position: relative; /* keeps the hidden link text inside the card (and inside the carousel) */
  flex: 0 0 calc((100% - 32px) / 3); /* 3 cards on computers */
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px 12px;
  text-align: center;
}
.loc-name {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.3;
}
.loc-name a { color: var(--ink); text-decoration: none; }
.loc-name a:hover { color: var(--link-hover); }
.loc-name span { display: block; }
.loc-address,
.loc-phone {
  margin: 0;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.45;
}
.loc-address span { display: block; }
/* pin and phone icons come from Font Awesome; keep them in the brand orange */
.loc-address i,
.loc-phone a i {
  color: var(--orange);
  margin-right: 6px;   /* a space character here would be underlined with the phone number */
  font-size: 0.95em;
}
.loc-phone { margin-top: 4px; margin-bottom: 8px; font-weight: 700; }
/* "Directions" under the phone number: opens the phone's maps app at the branch */
.loc-directions { margin: 0 0 10px; font-weight: 700; }
.loc-directions a { display: inline-block; padding: 10px 6px; margin: -10px -6px; }  /* 44px tall */
.loc-directions i { color: var(--orange); margin-right: 6px; font-size: 0.95em; }
.loc-phone a {
  display: inline-block;
  padding: 12px 6px; /* 44px tall: comfortable for thumbs */
  margin: -12px -6px;
}

.loc-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: auto; /* buttons line up at the bottom of the cards */
  padding: 0 18px;
  border: 2px solid var(--more-line);
  color: var(--more-text);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.loc-more::after {
  content: "→";
  content: "→" / "";
  transition: transform 0.2s ease;
}
.loc-more:hover,
.loc-more:focus-visible { background: var(--more-hover); color: var(--on-accent); }
.loc-more:hover::after,
.loc-more:focus-visible::after { transform: translateX(3px); }
.loc-name a:focus-visible,
.loc-more:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.carousel-arrow {
  position: relative;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--control-bg); /* white arrow: good contrast on the white page */
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.carousel-arrow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-top: 3px solid var(--on-accent);
  border-right: 3px solid var(--on-accent);
}
.carousel-prev::before { transform: translate(-30%, -50%) rotate(-135deg); }
.carousel-next::before { transform: translate(-70%, -50%) rotate(45deg); }
.carousel-arrow:hover { background: var(--burnt-fill); }
.carousel-arrow:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ==========================================================================
   11c. About GlobeCar (separate sand-coloured band between the page and the footer)
   ========================================================================== */
.about {
  margin-top: 8px;
  padding: calc(var(--space-xl) - 1px) 0 var(--space-xl);   /* 40px from the band's top line */
  border-top: 1px solid var(--sand-line);
  background: var(--sand);
}
/* v2.39: wider than the rest of the page's text (900px of text instead of 716), so the four paragraphs take
   fewer lines on computers and tablets; phones already use the full width */
.about .wrap { max-width: 944px; }
.about-title {
  margin: 0 auto var(--space-m);
  color: var(--ink);
  font-size: clamp(1.4rem, 4vw, 1.875rem);
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}
.about p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.65;
  /* justified like the rest of the page (hyphenation keeps word spacing even) */
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
  hyphenate-limit-chars: 7 3 3;
}
.about p:last-child { margin-bottom: 0; }
/* the footer swoosh sits on the sand colour (no white gap) */
.site-footer--after-about { background: linear-gradient(var(--sand), var(--sand)) top / 100% 90px no-repeat; }

/* ==========================================================================
   12. Footer
   ========================================================================== */

.site-footer {
  position: relative;
  isolation: isolate;
  padding: 92px 0 40px; /* top room for the brand swoosh */
  text-align: center;
  color: var(--footer-text); /* dark warm grey: readable on the orange tint */
  font-size: 0.9rem;
  line-height: 1.7;
}
/* Brand swoosh: layered waves in the logo colours (yellow, orange, red) */
.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  z-index: -1;
  background: var(--footer-swoosh) center bottom / 100% 100% no-repeat;
  pointer-events: none;
}
/* Warm footer background with soft orange and red glows */
.site-footer::after {
  content: "";
  position: absolute;
  top: 86px;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  background:
    radial-gradient(55% 90% at 8% 100%, var(--footer-glow-orange), var(--footer-glow-orange-fade) 72%),
    radial-gradient(45% 85% at 92% 100%, var(--footer-glow-orange-2), var(--footer-glow-orange-fade) 72%),
    radial-gradient(30% 70% at 99% 100%, var(--footer-glow-red), var(--footer-glow-red-fade) 70%),
    radial-gradient(30% 65% at 50% 100%, var(--footer-glow-yellow), var(--footer-glow-yellow-fade) 70%),
    var(--footer-bg);
  pointer-events: none;
}
.site-footer > .wrap > p { margin: 0; } /* copyright lines (not the location cards) */
/* build number, discreet, bottom right of the footer */
.site-footer > .wrap > p.site-version,
.site-version {
  margin: var(--space-xs) 0 0;
  text-align: right;
  color: var(--footer-muted);
  font-size: 0.75rem;
  line-height: 1.4;
  opacity: 0.75;
}
.locations + .wrap { margin-top: calc(var(--space-xl) - 8px); }   /* 40px with the carousel's 8px below it */ /* space between the carousel and the copyright */
/* footer links keep the look but get a comfortable tap area */
.footer-links a {
  display: inline-block;
  padding: 10px 2px;   /* 44px tall */
  margin: -10px -2px;
  font-weight: 400;    /* colour and underline: see "Link styles" at the end of this file */
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 20px;
  margin-top: var(--space-m);
}

/* ==========================================================================
   13. Test windows (camera / microphone / connection, Wi-Fi picker, location) and the checklist's windows
   ========================================================================== */

.devicetest {
  width: min(420px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--card);
  color: var(--text);
  box-shadow: 0 20px 60px var(--shadow-dialog);
  overflow-y: auto;
  overscroll-behavior: contain; /* scrolling past a tall window's end never carries on to the page (v2.49) */
  scroll-padding-bottom: 72px; /* a button reached with Tab stops above the "More below" fade (v2.50) */
}
.devicetest::backdrop { background: var(--backdrop, rgba(0, 0, 0, 0.55)); } /* fallback: older browsers give ::backdrop no :root names */
.devicetest-inner { padding: 22px; }

/* "More below" (v2.50, pickup.js initMoreCue): while a window has more to scroll, its bottom edge fades out
   and, until it is scrolled, a pill says so. Both take no room (negative margins), so the window's height and
   scrolling are the same with or without them; both let taps through when hidden. */
.devicetest::after {
  content: "";
  position: sticky;
  bottom: 0;
  display: block;
  height: 72px;
  margin-top: -72px;
  background: linear-gradient(to bottom, transparent, var(--card) 70%);
  pointer-events: none; /* a tap on the fade reaches what is under it (never the backdrop's "close") */
  opacity: 0;
  transition: opacity 0.25s ease;
}
.devicetest.has-more::after { opacity: 1; }
.dlg-more {
  position: sticky;
  bottom: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: calc(100% - 32px);
  height: 40px;
  margin: -54px auto 14px; /* 40 px high, -54 + 14 around it: takes no room */
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--shadow-l);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.dlg-more svg { flex: none; width: 16px; height: 16px; fill: currentcolor; animation: more-nudge 1.6s ease-in-out infinite; }
@keyframes more-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.devicetest.has-more .dlg-more.is-shown { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) { .dlg-more:hover { background: var(--inverse-hover); } }
@media (prefers-reduced-motion: reduce) {
  .devicetest::after, .dlg-more { transition: none; }
  .dlg-more svg { animation: none; }
}

/* "No Internet?" link under the checklist, and its free Wi-Fi window */
.wifi-link-row { margin: var(--space-l) 0 0; text-align: center; }   /* 24px above and below (v2.36) */
/* "Trouble starting your rental?" sits beside the Wi-Fi link on wide screens, on its own line on phones */
.link-sep { margin: 0 6px; color: var(--muted); }
a.wifi-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
@media (max-width: 600px) {
  .link-sep { display: none; }
  .trouble-link { display: flex; justify-content: center; margin: 4px auto 0; }
}
.wifi-link {
  min-height: 44px;   /* comfortable for thumbs */
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  text-decoration: none;   /* the underline goes on the words (.link-text), not under the icon */
}
@media (hover: hover) {
  .wifi-link:hover { color: var(--orange-deep); }
  .wifi-link:hover .link-text { text-decoration-style: solid; text-decoration-color: var(--orange-deep); }
  .how-hint-link:hover { color: var(--orange-deep); }
  .how-hint-link:hover .link-text { text-decoration-style: solid; text-decoration-color: var(--orange-deep); }
}
.how-hint-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.wifi-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }
.wifitest h2 { padding-right: 44px; }

/* Close button (✕), top right of both test windows; stays visible while the window scrolls */
.dlg-close {
  position: sticky;
  top: 12px;
  z-index: 2;
  float: right;
  width: 44px;
  height: 44px;
  margin: 12px 12px -56px 0; /* doesn't push the content down */
  padding: 0;
  border: 3px solid var(--dlg-close-ring); /* white ring: separates the button from the content it floats over */
  border-radius: 50%;
  background: var(--dlg-close-bg);
  box-shadow: 0 2px 10px var(--shadow-l);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.dlg-close::before,
.dlg-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--dlg-close-x);
}
.dlg-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.dlg-close::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (hover: hover) { .dlg-close:hover { background: var(--panel-hover); } } /* no sticky hover after a tap on phones */
.dlg-close:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.devicetest h2:focus { outline: none; }
.devicetest h2 {
  margin: 0 0 14px;
  padding-right: 44px; /* room for the close button */
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}
.dt-video-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  background: var(--video-bg);
}
.dt-video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1); /* mirror, like a selfie camera */
}
.dt-video-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--video-empty-text);
  font-size: 0.9rem;
}
.dt-meter {
  height: 8px;
  margin: 12px 0 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--panel);
}
.dt-meter span {
  display: block;
  height: 100%;
  background: var(--ok-bright);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.08s linear;
}
.dt-results {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.dt-results li {
  position: relative;
  padding: 4px 0 4px 30px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.dt-results li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
}
.dt-results .is-pending::before { background: var(--pending); }
.dt-results .is-ok::before { content: "✓"; content: "✓" / ""; background: var(--ok-fill); }
.dt-results .is-fail::before { content: "✕"; content: "✕" / ""; background: var(--red-fill); }
.dt-results .is-warn::before { content: "!"; content: "!" / ""; background: var(--warn); }
.dt-results .is-idle::before { content: "?"; content: "?" / ""; background: var(--idle); }

/* Sound test (speaker): buttons and tips under the results */
.dt-sound { margin: 6px 0 0 30px; }
.dt-sound-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dt-btn--small { min-height: 44px; padding: 0.45rem 1.05rem; font-size: 0.875rem; }
.dt-sound-help {
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--callout);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.45;
}
.dt-help {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--callout);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}
.dt-help.is-success { background: var(--ok-soft); color: var(--ok); }

/* Free Wi-Fi branch picker */
/* invisible helper used to copy the Wi-Fi password on older browsers */
.copy-helper {
  position: fixed;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
}
.dt-wifi {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
/* in the Wi-Fi window the section is the whole content: no inner box */
.dt-wifi.dt-wifi--plain { margin-top: 0; padding: 0; border: 0; background: transparent; }

.dt-wifi.is-needed {
  border-color: var(--attention-line);
  background: var(--callout);
}
.dt-wifi-title {
  position: relative;
  margin: 0;
  padding-right: 48px;   /* the 36px arrow button plus a gap: the heading wraps instead of running under it */
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none; /* no default triangle */
}
.dt-wifi-title::-webkit-details-marker { display: none; }
.dt-wifi[open] .dt-wifi-title { margin-bottom: 8px; }
.dt-wifi-title:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.dt-wifi-title .acc-chevron {
  position: absolute;
  top: 50%;
  right: 0;
  margin: 0;
  transform: translateY(-50%);
}
.dt-wifi[open] .dt-wifi-title .acc-chevron { transform: translateY(-50%) rotate(180deg); }
.dt-wifi-label {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
  font-size: 0.875rem;
}
.dt-select {
  width: 100%;
  min-height: 44px;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--field-line);
  border-radius: 10px;
  background: var(--card) var(--select-arrow) no-repeat right 12px center;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem; /* 16px avoids the iPhone zoom-in */
  -webkit-appearance: none;
  appearance: none;
}
.dt-select:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.dt-wifi-creds { margin-top: 10px; }
.dt-wifi-none {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.45;
}
.dt-cred {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "label  button"
    "value  button";
  align-items: center;
  column-gap: 10px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
}
.dt-cred:first-child { border-top: 0; }
.dt-cred-label {
  grid-area: label;
  color: var(--muted);
  font-size: 0.8125rem;
}
.dt-cred-value {
  grid-area: value;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  user-select: all;
  -webkit-user-select: all;
}
.dt-copy {
  grid-area: button;
  min-width: 72px;
  min-height: 36px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
}
.dt-copy:hover { border-color: var(--inverse); background: var(--inverse); color: var(--on-inverse); }
.dt-copy.is-copied { border-color: var(--ok-fill); background: var(--ok-fill); color: var(--on-accent); }
.dt-copy:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
.dt-wifi-hint {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 0.85rem;
  line-height: 1.45;
}

/* Location check window */
.loctest .dt-results { margin-top: 4px; }
.loc-privacy {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}


/* Window buttons */
.dt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}
.dt-btn {
  min-height: 44px;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dt-btn--solid { border: 2px solid var(--inverse); background: var(--inverse); color: var(--on-inverse); }
@media (hover: hover) { .dt-btn--solid:hover:not(:disabled) { background: var(--inverse-hover); } }
.dt-btn--outline { border: 2px solid var(--ink); background: var(--card); color: var(--ink); }
@media (hover: hover) { .dt-btn--outline:hover:not(:disabled) { border-color: var(--inverse); background: var(--inverse); color: var(--on-inverse); } }
.dt-btn:disabled { opacity: 0.55; cursor: default; }
.dt-btn:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

/* Find my branch, in the free Wi-Fi window (v2.34): the outline of the page's other outlined buttons
   (black, orange in dark mode), filling deep orange on hover like them */
.wifi-find { margin-top: 12px; }
.wifi-find-btn { display: inline-flex; align-items: center; gap: 8px; border-color: var(--faq-line); }
@media (hover: hover) {
  .wifi-find-btn:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--accent-hover); color: var(--on-accent); }
}
.wifi-find-note { margin: 8px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.dt-results.wifi-find-result { margin: 12px 0 0; }

/* "Before you start" windows (v2.46 credit card, v2.47 driver's licence, second piece of ID, proof of insurance):
   what to bring. Opened from their item in the checklist. Each one: a sentence, a drawn example (drawn here, not
   a picture, so it follows the light and dark looks), then lists with a green ✓ or a red ✕ like the test results. */
.info-lead { margin: 0 0 var(--space-m); line-height: 1.5; }
.info-figure { max-width: 320px; margin: 0 auto var(--space-s); }
.info-callout {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0 12px;
  color: var(--cc-callout);
  font-size: 0.875rem;
  font-weight: 700;
}
.info-callout--right { justify-content: flex-end; margin: 8px 18px 0 0; color: var(--info-ring-ok); }
.info-arrow-left { transform: scaleX(-1); }   /* the arrow points up and to the left */
.info-heading { margin: var(--space-m) 0 var(--space-xs); font-weight: 700; }
.info-sub { margin: calc(var(--space-xs) * -0.5) 0 var(--space-xs); color: var(--muted); font-size: 0.9375rem; }
.dt-results.info-list { margin: 0; }
.info-tip {
  margin: var(--space-m) 0 0;
  padding: 10px 12px;
  border: 1px solid var(--callout-line);
  border-radius: 8px;
  background: var(--callout);
  font-size: 0.875rem;
  line-height: 1.45;
}
.info-warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: var(--space-m) 0 0;
  padding: 10px 12px;
  border: 1px solid var(--notice-warning-line);
  border-radius: 8px;
  background: var(--notice-warning-bg);
  font-size: 0.9rem;
  line-height: 1.45;
}
.info-warn > i { margin-top: 3px; color: var(--notice-warning-icon); }
.info-note { margin: var(--space-s) 0 0; color: var(--muted); font-size: 0.875rem; line-height: 1.45; }
/* proof of insurance: the two ways to be covered, with "or" between them */
.info-opt { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.info-opt-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--info-opt-icon-bg);
  color: var(--info-opt-icon);
}
.info-opt-title { display: block; margin-bottom: 2px; font-weight: 700; line-height: 1.3; }
.info-opt-text { display: block; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }
.info-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
}
.info-or::before, .info-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* the drawn credit card, the cardholder's name ringed */
.cc-card {
  position: relative;
  container-type: inline-size; /* its text scales with its width (cqw), down to the narrowest phones */
  aspect-ratio: 85.6 / 54;     /* a real card's proportions */
  border-radius: 14px;
  background: linear-gradient(135deg, var(--cc-face), var(--cc-face-end) 60%);
  color: var(--cc-text);
  box-shadow: 0 8px 22px var(--cc-shadow);
  font-family: ui-monospace, Menlo, Consolas, "Roboto Mono", monospace;
}
.cc-type {
  position: absolute;
  top: 9%;
  right: 6%;
  color: var(--cc-faint);
  font: 700 0.75rem/1 var(--font);
  font-size: min(0.75rem, 3.9cqw);
  letter-spacing: 0.12em;
}
.cc-chip {
  position: absolute;
  top: 24%;
  left: 7%;
  width: 13%;
  height: 17%;
  border-radius: 6px;
  background: var(--cc-chip);
  box-shadow: inset 0 0 0 1px var(--cc-chip-line);
}
.cc-chip::before, .cc-chip::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  height: 1px;
  background: var(--cc-chip-line);
}
.cc-chip::before { top: 34%; }
.cc-chip::after { top: 66%; }
.cc-number { position: absolute; bottom: 31%; left: 7%; font-size: 1rem; font-size: min(1rem, 5.2cqw); letter-spacing: 0.08em; white-space: nowrap; }
.cc-exp { position: absolute; right: 6%; bottom: 10%; color: var(--cc-faint); font-size: 0.6875rem; font-size: min(0.6875rem, 3.6cqw); line-height: 1.3; text-align: right; }
.cc-name {
  position: absolute;
  bottom: 9%;
  left: 4%;
  padding: 3px 8px;
  border: 2px dashed var(--cc-name-ring);
  border-radius: 6px;
  font-size: 0.9375rem;
  font-size: min(0.9375rem, 4.9cqw);
  letter-spacing: 0.1em;
  white-space: nowrap;
}
.cc-brands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cc-brands li { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.cc-logo { width: 44px; height: 39px; fill: currentcolor; }
.cc-brands span { color: var(--muted); font-size: 0.75rem; line-height: 1.25; }

/* the drawn driver's licence and photo ID (same layout, the photo on opposite sides) */
.lic-card, .id2-card {
  position: relative;
  container-type: inline-size; /* the text scales with the card's width (cqw), down to the narrowest phones */
  aspect-ratio: 85.6 / 54;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 22px var(--info-pic-shadow);
}
.lic-card { background: linear-gradient(135deg, var(--lic-face), var(--lic-face-end)); color: var(--lic-text); }
.id2-card { background: linear-gradient(135deg, var(--id2-face), var(--id2-face-end)); color: var(--id2-text); }
.lic-band, .id2-band {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  height: 22%;
  padding: 0 6%;
  font-size: 0.75rem;
  font-size: min(0.75rem, 3.9cqw);
  font-weight: 800;
  letter-spacing: 0.1em;
}
.lic-band { background: var(--lic-band); color: var(--lic-band-text); }
.id2-band { background: var(--id2-band); color: var(--id2-band-text); }
.lic-photo, .id2-photo {
  position: absolute;
  top: 30%;
  display: grid;
  place-items: end center;
  width: 24%;
  height: 56%;
  overflow: hidden;
  border-radius: 6px;
  font-size: 3.4rem;
  line-height: 0.9;
}
.lic-photo { left: 6%; background: var(--lic-photo); color: var(--lic-photo-glyph); }
.id2-photo { right: 6%; background: var(--id2-photo); color: var(--id2-photo-glyph); outline: 2px dashed var(--info-ring-ok); outline-offset: 3px; }
.lic-fields, .id2-fields { position: absolute; top: 30%; display: grid; gap: 1.6cqw; font-size: 0.75rem; font-size: min(0.75rem, 3.9cqw); }
.lic-fields { right: 6%; left: 36%; }
.id2-fields { right: 36%; left: 6%; gap: 1.9cqw; }
.lic-field b, .id2-field b { display: block; font-size: 0.75em; font-weight: 700; letter-spacing: 0.08em; }
.lic-field b { color: var(--lic-faint); }
.id2-field b { color: var(--id2-faint); }
.lic-field span, .id2-field span { font-weight: 700; letter-spacing: 0.04em; }
.lic-exp { justify-self: start; margin: -3px -6px; padding: 2px 6px; border: 2px dashed var(--info-ring-ok); border-radius: 6px; }
.id2-bar { display: block; width: 80%; height: 6px; border-radius: 3px; background: var(--id2-bar); }
.id2-bar--short { width: 60%; }

/* the drawn proof of coverage, a little tilted, with a green tick */
.ins-doc {
  position: relative;
  width: 210px;
  margin: 4px auto var(--space-m);
  padding: 14px 16px 16px;
  border: 1px solid var(--ins-paper-line);
  border-radius: 8px;
  background: var(--ins-paper);
  box-shadow: 0 6px 18px var(--info-pic-shadow);
  transform: rotate(-2deg);
}
.ins-doc-title { display: block; margin-bottom: 10px; font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.1em; }
.ins-doc-bar { display: block; height: 7px; margin: 0 0 7px; border-radius: 4px; background: var(--ins-bar); }
.ins-doc-bar:nth-child(3) { width: 80%; }
.ins-doc-bar:nth-child(4) { width: 60%; }
.ins-doc-bar:nth-child(5) { width: 70%; }
.ins-doc-badge {
  position: absolute;
  right: -14px;
  bottom: -14px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ins-badge);
  color: var(--ins-badge-glyph);
  font-size: 1.3rem;
  box-shadow: 0 0 0 4px var(--card);
}

/* ==========================================================================
   14. Bottom START RENTAL bar (phones, only while open)
   ========================================================================== */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  isolation: isolate; /* keeps the halo (::before, below) behind the button but inside the bar */
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--glass-solid);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px var(--shadow-s);
  transform: translateY(110%);
  visibility: hidden; /* fully invisible when out of view, even during iPhone bounce scrolling */
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
}
.sticky-cta.is-visible {
  transform: translateY(0);
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s;
}
/* Where the browser can blur what's behind it, the bar is see-through frosted glass instead of solid white, so it takes
   on the colour of whatever it floats over (white page, beige notice band, orange-tinted footer) and doesn't read as
   a separate white strip. Browsers without it keep the solid bar above. (-webkit- for Safari/iOS before 18.) */
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .sticky-cta {
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border-top-color: transparent;
    box-shadow: none;
    /* the glass fades in over its top 10px (above the button), so there is no edge line where it starts */
    -webkit-mask-image: linear-gradient(to bottom, transparent, var(--mask-solid) 10px);
    mask-image: linear-gradient(to bottom, transparent, var(--mask-solid) 10px);
  }
}
.sticky-cta-btn {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--on-accent);
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 6px 18px var(--orange-shadow-35);
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
/* A soft warm halo behind the button, like the big START RENTAL button's glow but much fainter */
.sticky-cta::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: min(520px, 120%);
  height: 120px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, var(--sticky-glow-yellow), var(--sticky-glow-orange) 55%, transparent 100%);
  pointer-events: none;
}
/* Hover (mouse or trackpad only, so a tap never leaves it stuck): same as the big button, scaled down */
@media (hover: hover) {
  .sticky-cta-btn:not(:disabled):hover {
    background-color: var(--orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px var(--orange-shadow-50);
  }
}
.sticky-cta-btn:not(:disabled):active {
  background-color: var(--orange-hover);
  transform: translateY(0);
  box-shadow: 0 4px 12px var(--orange-shadow-35);
}
.sticky-cta-btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.sticky-cta:has(.sticky-cta-btn:disabled)::before { display: none; }
.sticky-cta-btn:disabled {
  background: var(--disabled);
  color: var(--text-disabled);
  box-shadow: none;
  cursor: not-allowed;
}
/* leave room so the bar never hides the footer */
body.has-sticky-cta .site-footer { padding-bottom: 96px; }
/* Keyboard users: while the bar shows, the browser scrolls each focused link or button far enough
   to clear the bar and the back-to-top button above it (v2.23) */
@media (max-width: 700px) {
  html:has(.sticky-cta.is-visible) { scroll-padding-bottom: 204px; }
}
@media (max-width: 640px) {
  html:has(.sticky-cta.is-visible) { scroll-padding-bottom: 156px; }
}
@media (min-width: 701px) {
  .sticky-cta { display: none !important; }
  body.has-sticky-cta .site-footer { padding-bottom: 36px; }
  body.footer-hidden.has-sticky-cta .notes-band { padding-bottom: 40px; }
}

/* ==========================================================================
   15. Responsive adjustments
   ========================================================================== */

@media (max-width: 480px) {
  .back-link { padding: 0 12px 0 10px; font-size: 0.8125rem; }
  /* phones: one item per row, all the same width, Test tags lined up on the right */
  .ready-list { grid-template-columns: 1fr; gap: 6px; }
  /* these open the test windows, so keep them thumb-sized even on small phones */
  .ready-list li > a,
  .ready-list li > .chip-btn { min-height: 44px; }
  .hero { padding-top: 16px; }
  .hero-subtitle { font-size: 1.5rem; }
  .help-faq { flex-direction: column; align-items: stretch; }
  .help-faq .btn-outline { width: 100%; }
  /* status: a little smaller, and each part of a two-part message on its own line */
  .live-status { font-size: 0.875rem; }
  .live-status .live-dot { margin-right: 7px; }
  .live-status .live-part { display: block; text-wrap: balance; }
  .live-status .live-part:first-child { display: inline; } /* first line sits next to the dot */
  .ready-list li { font-size: 0.8125rem; }
  .dt-actions .dt-btn { flex: 1; }
  .pickup-facts { gap: 4px 14px; }
  .fact { gap: 5px; }
  .fact-value, .fact-label { font-size: 0.8125rem; }

  #pickupcarnowbtn { width: 100%; padding-left: 16px; padding-right: 16px; font-size: clamp(1.3rem, 6.8vw, 2rem); letter-spacing: 0.02em; }
  .btn-secondary { width: 100%; }
  .app-download { flex-wrap: wrap; }
  .app-download .app-go { width: 100%; text-align: center; }
}

/* Tablets and computers: the recording notice fits on one line (EN and FR) */
@media (min-width: 701px) {
  .footnotes p { font-size: 0.78rem; }
}

/* Phones: burger menu (the top bar items don't fit on one line) */
/* The top bar can only hold every link on a wide screen. Measured with the icons loaded and the
   short labels (VEHICLES / LOCATIONS): English fits to about 920px, French to about 960px, so the
   burger takes over below 1000px with room to spare. Nothing is ever hidden without the burger. */
@media (max-width: 999px) {
  /* one row: logo on the left, burger on the right */
  .site-header .wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "logo bar";
    align-items: center;
    column-gap: 16px;
  }
  .site-header { padding-top: 18px; } /* a little room under the orange stripe */
  .site-header picture { grid-area: logo; }
  .site-header picture img { width: min(260px, 100%); margin: 0; }
  .site-header .lang-bar { grid-area: bar; justify-content: flex-end; margin: 0; }
  .nav-toggle { display: grid; }
  .nav-menu {
    position: absolute;
    top: calc(100% + 10px); /* just below the logo row */
    left: auto;
    right: 16px;
    /* only as wide as the longest row needs (about 285px with padding), never wider
       than the screen: it hangs under the burger rather than spanning the page */
    width: min(320px, calc(100vw - 32px));
    z-index: 30;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 18px 40px var(--shadow-m);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .nav-menu.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s;
  }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 14px; }
  .nav-book { justify-content: center; min-height: 48px; font-size: 0.9375rem; }
  /* the three navigation rows look the same: grey pill, dark text, orange icon */
  /* display is set on its own, at the lowest priority (:where), so a site override such as
     .footer { display: none; } still hides About us / Vehicles / Locations in the burger menu */
  :where(.nav-menu) .back-link,
  :where(.nav-menu) .nav-about,
  :where(.nav-menu) .nav-vehicles,
  :where(.nav-menu) .nav-locations,
  :where(.nav-menu) .nav-help { display: flex; }
  .nav-menu .back-link,
  .nav-menu .nav-about,
  .nav-menu .nav-vehicles,
  .nav-menu .nav-locations,
  .nav-menu .nav-help {
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--ink);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
  }
  .nav-menu .back-link i,
  .nav-menu .nav-about i,
  .nav-menu .nav-vehicles i,
  .nav-menu .nav-locations i,
  .nav-menu .nav-help i { color: var(--orange); font-size: 0.95em; }
  /* same feedback as the "Return to GlobeCar.com" link on the desktop top bar.
     Applied on touch devices too (not wrapped in a hover query), so a tap shows it as well. */
  .nav-menu .back-link:hover,
  .nav-menu .nav-about:hover,
  .nav-menu .nav-vehicles:hover,
  .nav-menu .nav-locations:hover,
  .nav-menu .nav-help:hover,
  .nav-menu .back-link:active,
  .nav-menu .nav-about:active,
  .nav-menu .nav-vehicles:active,
  .nav-menu .nav-locations:active,
  .nav-menu .nav-help:active { background: var(--panel-hover); border-color: var(--line-hover); }
  .nav-menu .back-arrow { border-color: var(--orange); }
  .nav-menu .nav-help-text { display: inline; }
  .nav-menu .back-long { display: inline; }
  .nav-menu .back-short { display: none; }
  .nav-menu .nav-prefs { align-self: center; } /* FR/EN and the switcher, side by side */
  /* same grey as the rows above it, on touch devices too */
  .nav-menu .lang-switch a:not([aria-current="page"]) { transition: background-color 0.2s ease, color 0.2s ease; }
  .nav-menu .lang-switch a:not([aria-current="page"]):hover,
  .nav-menu .lang-switch a:not([aria-current="page"]):active { background: var(--panel-hover); color: var(--ink); }
}

/* Our locations: 2 cards on tablets, 1 on phones */
@media (max-width: 900px) {
  .loc-card { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
  /* phones: the card uses the full width, arrows sit side by side below it */
  .carousel {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "track track track"
      "prev  dots  next";
    gap: 8px 6px;
  }
  .loc-card { flex-basis: 100%; padding: 12px 8px 8px; }
  .carousel-arrow { width: 44px; height: 44px; }
  .carousel-arrow::before { width: 10px; height: 10px; }
}

/* Very narrow phones (folded phones): dots on their own row, arrows below */
@media (max-width: 310px) {
  .carousel {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "track track"
      "dots  dots"
      "prev  next";
    gap: 6px 16px;
  }
  .carousel-prev { justify-self: end; }
  .carousel-next { justify-self: start; }
}

/* Phones and small tablets: the photo goes below the steps */
@media (max-width: 640px) {
  .return-layout { grid-template-columns: 1fr; gap: 18px; }
  .return-photo { width: 100%; max-width: 227px; margin: 0 auto; }
}

/* Wide but short windows (a 1366x768 laptop leaves about 650px for the page; tablets held sideways):
   the desktop sizes are made for tall screens, and in French START RENTAL fell up to 70px below the first
   screen. A proportionate step down keeps it in view in every status and both languages. */
@media (min-width: 821px) and (max-height: 740px) {
  .hero h1 { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.65rem; }
  #pickupcarnowbtn { font-size: 2.1rem; }
}

/* Small, short phones (e.g. first iPhone SE): keep START RENTAL on the first screen */
@media (max-width: 360px) and (max-height: 600px) {
  .hero { padding-top: 8px; }
  h1 { font-size: 1.9rem; }        /* 2.4rem is the smallest otherwise: one line fewer in French */
  .hero-subtitle { margin-top: 8px; }
  .how-hint { margin-top: 6px; font-size: 0.9rem; line-height: 1.35; }   /* French takes two lines here */
  .live-status { margin-top: 10px; }
}

@media (max-width: 360px) {
  .back-long { display: none; }
  .back-short { display: inline; }
  .step p, .about p { text-align: left; } /* very narrow screens: justified text leaves big gaps */
  .devicetest-inner { padding: 18px 16px; }
  .dt-wifi { padding: 12px; }
  .dt-cred-value { font-size: 0.95rem; }
  .dt-copy { min-width: 64px; padding: 6px 10px; }
}

@media (max-height: 500px) and (orientation: landscape) {
  /* test window: a smaller camera preview, so the results stay in view */
  .dt-video-wrap { width: min(100%, calc(40vh * 4 / 3)); margin: 0 auto; }
  .pickup-facts { margin: -10px auto 12px; }
  .site-header { padding-top: 8px; }
  .lang-bar { margin-bottom: 10px; }
  .site-header picture img { width: 200px; }
  .hero { padding: 8px 0 var(--space-l); }
  h1 { font-size: 2rem; }
  .hero-subtitle { max-width: 74ch; margin-top: 4px; font-size: 1.2rem; }
  .cta-stage { margin: 12px 0 24px; }
  #pickupcarnowbtn { padding: 12px 64px; font-size: 1.75rem; }
  .live-status:not([hidden]) + .cta-stage { margin-top: 8px; }
}

/* Very short landscape screens (e.g. first-generation iPhone SE): keep START RENTAL on screen */
@media (max-height: 340px) and (orientation: landscape) {
  h1 { font-size: 1.75rem; }
  .hero-subtitle { font-size: 1.05rem; }
}

/* ==========================================================================
   16. Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .nav-menu, .nav-toggle-lines span, .nav-book { transition: none !important; }
  .nav-book:hover, .nav-book:focus-visible { transform: none; }
  .carousel-dot::before { transition: none; }
  .carousel-track { scroll-behavior: auto; }
  .loc-more::after { transition: none; transform: none !important; }
  .cta-stage.is-settled #pickupcarnowbtn .cta-label, .live-status:not(.is-pending) { animation: none; }
  .back-link { transition: none !important; }
  .acc-chevron { transition: none !important; }
  .footnotes p:target { animation: none; color: var(--ink); }
  .sticky-cta { transition: none !important; }
  html { scroll-behavior: auto; }
  .live-dot { animation: none !important; }
  *, *::before, *::after { transition: none !important; }
  #pickupcarnowbtn:hover, .sticky-cta-btn:hover, .btn-secondary:hover, .btn-secondary:focus-visible,
  .help-faq .btn-outline:hover, .help-faq .btn-outline:focus-visible { transform: none; }
  .btn-secondary::after, .help-faq .btn-outline::after { transition: none; transform: none !important; }
}

/* ==========================================================================
   Link styles, one per part of the page
   ========================================================================== */
/* 1. Pickup (hero to the vehicles): dark bold text with a dotted orange underline; on hover the
      text turns orange and the underline becomes solid */
.help p a,
.cta-fallback a,
.step p a,
.step li a:not(.btn-secondary):not(.app-download):not(.step-card) {
  color: var(--ink);
  font-weight: 700;
  text-decoration: underline dotted var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.help p a:hover,
.cta-fallback a:hover,
.step p a:hover,
.step li a:not(.btn-secondary):not(.app-download):not(.step-card):hover {
  color: var(--orange-deep);
  text-decoration-style: solid;
  text-decoration-color: var(--orange-deep);
}

/* 2. About and reviews: burnt orange on the sand band, with the same underline finish */
.about p a {
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* 3. Locations and footer: one colour, size and underline for every underlined link; bold on the
      branch cards, regular in the legal row */
.loc-phone a,
.loc-directions a,
.footer-links a {
  color: var(--footer-text);
  font-size: 0.875rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.loc-phone a,
.loc-directions a { font-weight: 700; }
.loc-phone a:hover,
.loc-directions a:hover,
.footer-links a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }

/* ==========================================================================
   17. Windows contrast themes (forced colours, v2.23)
   The browser swaps every colour for the visitor's own and drops backgrounds, so anything drawn
   only with a background disappears. Give those shapes a border in the theme's colours and keep
   the logo and the menu icon visible. Nothing changes for anyone else.
   ========================================================================== */

@media (forced-colors: active) {
  #pickupcarnowbtn,
  .sticky-cta-btn,
  .nav-book,
  .btn-secondary,
  .chip-action,
  .carousel-arrow,
  .totop { border: 2px solid ButtonText; }
  .live-status,
  .sc-num { border: 1px solid CanvasText; }
  /* the three lines of the menu button are drawn with a background */
  .nav-toggle-lines span { forced-color-adjust: none; background: ButtonText; }
  /* the ✕ of every window is two bars drawn with a background (v2.46: it was invisible here) */
  .dlg-close::before, .dlg-close::after { forced-color-adjust: none; background: ButtonText; }
  /* "More below" (v2.50): the theme removes the fade's colours, so the fade goes; the pill gets an outline */
  .devicetest::after { display: none; }
  .dlg-more { border: 2px solid ButtonText; }
  /* the drawn card, licence, photo ID and their photos (v2.46, v2.47) */
  .cc-card, .cc-chip, .lic-card, .id2-card, .lic-photo, .id2-photo, .lic-band, .id2-band { border: 1px solid CanvasText; }
  .ins-doc-bar, .ins-doc-badge, .id2-bar, .info-opt-icon { border: 1px solid CanvasText; }
  /* the logo keeps its own backing: white behind the black lettering, dark behind the white (dark mode) */
  .site-header picture img {
    forced-color-adjust: none;
    background: var(--logo-backing);
    border-radius: 10px;
    padding: 6px 10px;
  }
  /* the open/closed dot keeps its colour */
  .live-dot { forced-color-adjust: none; }
}

/* ==========================================================================
   Notices (v2.41): banners under the logo, posted in notice.json (README "Notices and pause").
   Written by pickup.js; the section stays hidden while there is nothing to show.
   ========================================================================== */
.site-notices { padding-top: var(--space-s); }
.site-notices-list { display: grid; gap: 10px; }
.site-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px 12px 14px;
  border: 1px solid var(--notice-info-line);
  border-left: 5px solid var(--notice-info-icon);
  border-radius: 12px;
  background: var(--notice-info-bg);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: left;
}
.site-notice--warning { border-color: var(--notice-warning-line); border-left-color: var(--notice-warning-icon); background: var(--notice-warning-bg); }
.site-notice--urgent { border-color: var(--notice-urgent-line); border-left-color: var(--notice-urgent-icon); background: var(--notice-urgent-bg); }
/* ?preview-time= (the check page's previews): says the page isn't showing the real time */
.site-notice--preview { border-style: dashed; border-left-style: solid; }
.site-notice-icon { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--notice-info-icon); }
.site-notice--warning .site-notice-icon { color: var(--notice-warning-icon); }
.site-notice--urgent .site-notice-icon { color: var(--notice-urgent-icon); }
.site-notice-icon .glyph { fill: var(--notice-glyph); }
.site-notice-text { flex: 1; min-width: 0; margin: 0; padding: 1px 0; overflow-wrap: anywhere; }
.site-notice-link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.site-notice-link:hover { text-decoration-thickness: 2px; }
.site-notice-link:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 3px; }
.site-notice-close {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: -5px 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  opacity: 0.75;
  font: inherit;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.site-notice-close:hover { opacity: 1; background: var(--notice-close-hover); }
.site-notice-close:focus-visible { opacity: 1; outline: 3px solid var(--orange); outline-offset: 1px; }
@media (prefers-reduced-motion: no-preference) {
  .site-notice { animation: settle-in 0.25s ease-out; }
}
@media print {
  .site-notice-close { display: none; }
}
