/* ===========================================================================
   ITSGRADED WEBSITE STYLES (style.css)
   One stylesheet for every page of the site.

   The look: Montserrat, gray body text, black headings and buttons, square
   corners, small uppercase menu links, a gray photo band behind each page
   title, light gray bands between sections and a black footer. No accent
   color.

   Sections, in order (search for the number to jump there):
     1. FONT, COLORS AND SIZES   every font, color and size, named once
     2. BASICS                   page, text, links, focus ring, helpers
     3. TOP BAR AND HEADER       contact bar, logo, menu links, phone menu
     4. BUTTONS
     5. ROWS AND TITLES          section spacing, headings, photo title band,
                                 photo-and-text rows, photo pairs, lists,
                                 fact lists
     6. HOME: VIDEO HEADER       the product video behind the headline
     7. HOME: PICTURE AND FACTS  the road condition map, material reports
                                 and repair coordinator: a picture, a facts
                                 panel and the map legend
     8. HOME: FREE FOOTAGE TEST  two columns of plain lists
     9. PEORIA TRIAL             the frame that holds the full dashboard
    10. FORM                     the free footage test request form
    11. TEXT PAGES               data handling, privacy, accessibility, thanks, 404
    12. FOOTER
    13. LAPTOPS, TABLETS AND PHONES
    14. LESS MOTION
    15. PRINTING
   =========================================================================== */


/* ===========================================================================
   1. FONT, COLORS AND SIZES
   Change a value here and the whole site follows.
   =========================================================================== */

/* Montserrat, stored with the site (assets/fonts). Its license is in
   assets/fonts/OFL.txt. "100 900" means one file covers every weight. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;   /* show text at once in the backup font, then switch */
  src: url("assets/fonts/montserrat-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;
}

/* Backup font while Montserrat loads: Arial, scaled to take up about the
   same room, so the page doesn't jump when Montserrat arrives.
   (Measured against Montserrat at weight 500.) */
@font-face {
  font-family: "Montserrat Backup";
  src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica");
  size-adjust: 114.35%;
  ascent-override: 84.66%;
  descent-override: 21.95%;
  line-gap-override: 0%;
}

:root {
  /* Colors */
  --accent: #000000;        /* headings, buttons, focus ring */
  --text: #616970;          /* body text: mid gray */
  --soft: #333333;          /* small headings and labels: dark gray */
  --hover: #444444;         /* black buttons when pointed at */
  --meta: #6d6d6d;          /* notes and hints: still 4.5 to 1 on the gray band */
  --band: #f8f7f7;          /* light gray bands between white sections */
  --topbar: #fbfbfb;        /* the thin bar with the email at the very top */
  --line: #eeeeee;          /* thin lines between rows */
  --frame: #d9d9d9;         /* borders around pictures and panels */
  --field: #f9f9f9;         /* form field background */
  --field-edge: #e2e2e2;    /* form field border */
  --field-line: #8c8c8c;    /* form field bottom line: darker, so the field is easy to see */
  --required: #790000;      /* "(required)" and error messages: dark red */
  --error-bg: #fbf3f3;      /* pale red behind the error list */
  --footer: #000000;        /* footer: black */
  --bottom: #121313;        /* copyright bar under the footer */
  --bottom-line: #2a2a2a;
  --footer-soft: #bdbdbd;   /* gray text in the footer */
  --white: #ffffff;

  /* Typefaces. The monospace font is only for finding IDs and timestamps. */
  --font: "Montserrat", "Montserrat Backup", Arial, Helvetica, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Spacing: most gaps are one of these steps */
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 32px;
  --s5: 48px;
  --s6: 60px;

  /* Widths and heights */
  --page: 1200px;      /* width of the content column (smaller screens: section 13) */
  --prose: 760px;      /* comfortable width for paragraphs */
  --gutter: 24px;      /* smallest space between the content and the screen edge */
  --header-h: 80px;    /* height of the white header bar */
}


/* ===========================================================================
   2. BASICS
   =========================================================================== */
* { box-sizing: border-box; }
html {
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  /* Jumping to a section (for example "Damage map") stops below the header */
  scroll-padding-top: calc(var(--header-h) + var(--s2));
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd, fieldset { margin: 0; }
h1, h2, h3, h4 { color: var(--accent); font-weight: 700; line-height: 1.3; text-wrap: balance; }
ul, ol { padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
*, *::before, *::after { border-radius: 0; }   /* square corners everywhere */

/* Links inside text are black and underlined. Menu, footer and button links
   turn the underline off in their own sections. */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.14s linear;
}
a:hover { color: var(--hover); }

/* Bold text inside paragraphs is dark gray */
strong { color: var(--soft); font-weight: 700; }

/* Anything with the "hidden" attribute stays hidden, even if a rule below
   gives it a display value */
[hidden] { display: none !important; }

/* One keyboard focus ring for every link, button and field */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
main:focus { outline: none; }   /* the skip link moves focus to <main>; no ring needed there */

/* Monospace text: finding IDs and timestamps only */
.mono { font-family: var(--mono); font-size: 0.92em; }

/* Hidden on screen, still read by screen readers */
.srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* The centered column that holds the content of every band.
   It is --page wide (1200 px on big screens, less on smaller ones, see
   section 13), but always leaves at least --gutter free on each side. */
.container {
  width: var(--page);
  max-width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
}
.muted { color: var(--meta); }

/* "Skip to content" link: invisible until a keyboard user presses Tab */
.skipLink {
  position: fixed;
  top: var(--s1);
  left: var(--s1);
  z-index: 100;
  padding: 12px 18px;
  background: var(--white);
  color: var(--accent);
  font-size: 14px;
  text-decoration: none;
  transform: translateY(-200%);
}
.skipLink:focus { transform: none; }


/* ===========================================================================
   3. TOP BAR AND HEADER
   Top bar: a thin light gray strip with the contact email (computers and
   tablets only). It scrolls away with the page.
   Header: white bar that stays at the top of the screen while the page
   scrolls. Wordmark on the left, small uppercase links on the right.
   Narrower screens: a three-bar Menu button opens the links (section 13).
   =========================================================================== */
.topBar { background: var(--topbar); border-bottom: 1px solid var(--line); }
.topBarInner { display: flex; align-items: center; min-height: 37px; }
/* "Contact us" link in the top bar: opens the contact form */
.topBarLink {
  display: inline-flex;
  align-items: center;
  gap: var(--s1);
  color: #555555;
  font-size: 13px;
  text-decoration: none;
}
.topBarLink:hover { color: var(--accent); }
.topBarIcon { width: 16px; height: 12px; flex: none; }

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);   /* a hairline under the bar */
}
.headerInner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  height: var(--header-h);
}

/* The logo in the header (assets/logo/itsgraded-logo.svg): the turn arrow
   with the word under it. Change "height" to make it bigger or smaller;
   the width follows. On phones it is smaller (section 13). */
.logoLink { display: flex; align-items: center; flex: none; }
.logo { display: block; width: auto; height: 48px; }

/* The menu links: small, uppercase and gray, the full height of the bar */
.mainNav { align-self: stretch; }
.mainNav ul { display: flex; align-items: stretch; height: 100%; list-style: none; }
.mainNav li { display: flex; align-items: center; }
.navLink {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
  padding: 4px 15px 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.navLink:hover { color: var(--accent); }
.navLink:focus-visible { outline-offset: -2px; }
/* A short black line at the bottom of the bar grows under the link you point
   at. It stays under the link of the page you are on. */
.navLink::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 35%;
  width: 30%;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: left 0.3s ease, width 0.3s ease, opacity 0.3s ease;
}
.navLink:hover::after,
.navLink:focus-visible::after,
.navLink[aria-current="page"]::after { left: 15px; width: calc(100% - 30px); opacity: 1; }
.navCtaItem { margin-left: 15px; }

/* The Menu button: three bars (shown only on narrower screens, section 13).
   When the menu is open, the bars turn into an X. */
.menuButton {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--soft);
  cursor: pointer;
}
.menuIcon,
.menuIcon::before,
.menuIcon::after {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  transition: transform 0.3s ease, background-color 0.3s ease;
}
.menuIcon { position: relative; }
.menuIcon::before,
.menuIcon::after { content: ""; position: absolute; left: 0; }
.menuIcon::before { top: -7px; }
.menuIcon::after { top: 7px; }
.menuButton[aria-expanded="true"] .menuIcon { background: transparent; }
.menuButton[aria-expanded="true"] .menuIcon::before { transform: translateY(7px) rotate(45deg); }
.menuButton[aria-expanded="true"] .menuIcon::after { transform: translateY(-7px) rotate(-45deg); }
.menuButton:focus-visible { outline-offset: -2px; }

/* The phone menu: a dark list that opens under the header */
.phoneMenu { background: #121212; }
.phoneMenu ul { list-style: none; padding-bottom: var(--s2); }
.phoneMenu li a:not(.btn) {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 var(--gutter);
  background: #222222;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  color: #cccccc;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
}
.phoneMenu li a:not(.btn):hover { background: #2a2a2a; color: #eeeeee; }
.phoneMenu li a[aria-current="page"] { color: var(--white); }
.phoneMenu .btn { margin: var(--s2) var(--gutter) 0; width: calc(100% - 2 * var(--gutter)); }
.phoneMenu :focus-visible { outline-color: var(--white); outline-offset: -2px; }


/* ===========================================================================
   4. BUTTONS
   Square, uppercase, with a 2 px border.
   .btnPrimary    black button with white words (the main action)
   .btnSecondary  black outline (the second action)
   .btnLight      white button with black words (on dark backgrounds)
   .btnOnDark     white outline (second action on dark backgrounds)
   .btnSmall      a shorter button (header)
   =========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 22px;
  border: 2px solid var(--accent);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btnPrimary { background: var(--accent); color: var(--white); }
.btnPrimary:hover { background: var(--hover); border-color: var(--hover); color: var(--white); }
.btnSecondary { background: transparent; color: var(--accent); }
.btnSecondary:hover { background: var(--accent); color: var(--white); }
.btnLight { border-color: var(--white); background: var(--white); color: var(--accent); }
.btnLight:hover { border-color: #dddddd; background: #dddddd; color: var(--accent); }
.btnOnDark { border-color: var(--white); background: transparent; color: var(--white); }
.btnOnDark:hover { background: var(--white); color: var(--accent); }
.btnSmall { min-height: 44px; padding: 10px 16px; font-size: 12px; }
.btn:disabled { opacity: 0.6; cursor: progress; }

/* A row of buttons under a section */
.buttonRow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }


/* ===========================================================================
   5. ROWS AND TITLES
   Every band of a page is a .row. .grayBand gives it the light gray
   background, so white and gray bands alternate.
   =========================================================================== */
.row { padding: var(--s6) 0; }
.grayBand { background: var(--band); }
.rowTitle { margin-bottom: 10px; font-size: 27px; }
.rowText { max-width: var(--prose); margin-bottom: 20px; }
.rowText:last-child { margin-bottom: 0; }

/* Photo title band at the top of every page except home: a gray, blurred
   road photo under a 45% black layer, with the page title in white.
   To change the photo, replace assets/img/title-band.jpg (any wide photo;
   it is already gray and blurred, so no filter is needed here). */
.titleBand {
  position: relative;
  background: #3a3a3a url("assets/img/title-band.jpg") center / cover no-repeat;
}
.titleBand::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.titleBand .container { position: relative; z-index: 1; }   /* in front of the black layer */
.titleBand h1 {
  padding: 90px 0 100px;
  color: var(--white);
  font-size: 36px;
  text-align: center;
  overflow-wrap: break-word;
}

/* Photo on one side, heading and text on the other */
.imageText { display: flex; align-items: center; gap: 35px; }
.imageTextPhoto { flex: 0 0 calc(50% - 17.5px); }
.imageTextPhoto img { width: 100%; border: 1px solid var(--frame); }
.imageTextBody { flex: 1 1 auto; min-width: 0; }

/* Two photos side by side, each with its name under it (home page:
   dashcam and reverse camera, and the Itsgraded hardware). Each photo keeps
   its own shape, so nothing is cut off. On phones the photos stack
   (section 13). */
.photoPair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; margin-top: 30px; }
.photoRowTitle + .photoPair { margin-top: 20px; }   /* under a small heading: the same gap as .photoTrio */
.photoFigure img { width: 100%; border: 1px solid var(--frame); background: var(--white); }
.photoName { padding-top: 12px; color: var(--accent); font-weight: 700; line-height: 1.5; }   /* the camera's name under its photo */

/* Three photos in a row (home page: police SUVs and a fleet pickup seen
   from behind), with a small heading above them. Same frame and name
   style as .photoPair. On phones the photos stack (section 13). */
.photoRowTitle { margin-top: var(--s5); color: var(--soft); font-size: 17px; }   /* the small heading above a row of photos */
.photoTrio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 20px; }

/* A list with small black squares */
.squareList { margin: 0 0 20px; padding-left: 20px; list-style: square; }
.squareList li { margin-bottom: 6px; padding-left: 4px; }
.squareList li::marker { color: var(--accent); }

/* Home page Benefits list (index.html, section 2): bigger and darker than
   body text, so the benefits stand out right under the video */
.benefitList { font-size: 19px; color: var(--soft); }
.benefitList li { margin-bottom: 10px; }

/* Label and value pairs, one per line, with thin lines between them.
   Used for the facts of a finding or a block (home page). */
.factList { border-top: 1px solid var(--line); font-size: 15px; }
.factList div { padding: 7px 0; border-bottom: 1px solid var(--line); }
.factList dt { color: var(--soft); font-size: 13px; font-weight: 700; }
.factList dd { overflow-wrap: anywhere; }
/* .sideBySide: the label on the left and its value on the right (home page) */
.factList.sideBySide div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--s2); align-items: baseline; }
.factList.sideBySide dt { font-size: 15px; font-weight: 600; }


/* ===========================================================================
   6. HOME: VIDEO HEADER
   Three layers, back to front:
     .heroVideo   the product video, filling the whole area
     .heroShade   an even black layer, so the white words stay readable
     .heroInner   the headline, text and buttons
   The bar in the bottom corner (.videoBar) holds "Play video". It opens
   .videoPlayer (end of this section): the whole video, full frame, with
   nothing over it.
   =========================================================================== */
.hero {
  position: relative;          /* the layers below are placed inside it */
  overflow: hidden;
  background: #111111;         /* shows while the video loads */
  color: var(--white);
}
.heroVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;           /* fill the area; the video's edges may be cut off */
}
/* 60% black over the whole video. Even over the brightest frame, white text
   keeps a contrast of more than 4.5 to 1. */
.heroShade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.heroInner {
  position: relative;          /* in front of the video and the shade */
  padding-block: 100px 128px;  /* the extra room at the bottom is for the video bar */
}
.heroCopy { max-width: 640px; }
.heroTitle { margin-bottom: 20px; color: var(--white); font-size: 36px; }
.heroText { color: var(--white); font-size: 17px; }
.heroButtons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* A white focus ring, so it shows against the dark video */
.hero :focus-visible { outline-color: var(--white); }

/* Bottom corner: "Play video", with its own dark background so it stays
   readable over any frame. The bar is as wide as .container, so the button
   lines up with the right edge of the content. */
.videoBar {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  width: var(--page);
  max-width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
  padding: var(--s2) 0 var(--s3);
}
/* "Play video" and the player's Close and Play / Pause buttons share one look */
.videoButton, .videoClose, .videoToggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--white);
  background: rgba(0, 0, 0, 0.7);
  color: var(--white);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}
.videoButton:hover, .videoClose:hover, .videoToggle:hover { background: var(--white); color: var(--accent); }
.videoButton[hidden] { display: none; }
.buttonIcon { fill: currentColor; }

/* THE VIDEO PLAYER (opens from "Play video")
   It covers the whole screen in black, in three bars, top to bottom:
     .videoPlayerBar  the Close button
     .videoFull       the video. It keeps its own shape (object-fit: contain),
                      so the full picture always shows, never cut off.
     .videoControls   Play / Pause, the position slider and the time
   The buttons sit above and below the picture, so nothing covers it. */
.videoPlayer {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000000;
  color: var(--white);
}
.videoPlayer[open] { display: flex; flex-direction: column; }
.videoPlayer::backdrop { background: #000000; }
.videoPlayerBar {
  display: flex;
  flex: none;
  justify-content: flex-end;
  padding: 12px var(--gutter);
}
.videoFull {
  flex: 1;
  width: 100%;
  min-height: 0;               /* lets the video shrink to fit the screen height */
  object-fit: contain;         /* the whole picture, never cut off */
  background: #000000;
}
.videoFull { cursor: pointer; }
.videoControls {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
  padding: 12px var(--gutter) 16px;
}
.videoToggle { min-width: 88px; }
.videoSeek { flex: 1; min-width: 0; accent-color: var(--white); cursor: pointer; }
.videoTime { flex: none; font-size: 14px; font-variant-numeric: tabular-nums; }
.videoPlayer :focus-visible { outline-color: var(--white); }
/* The page behind the player stays still while it is open */
html:has(.videoPlayer[open]) { overflow: hidden; }


/* ===========================================================================
   7. HOME: PICTURE AND FACTS
   One layout for three sections of the home page: the road condition map,
   the material reports and the repair coordinator.
   Computers: the picture on the left, a panel of facts on the right and a
   line (or a line and a button) under the picture. Laptops: the picture
   across the full width, then the facts in two columns. Phones: everything
   in one column (section 13).
   =========================================================================== */
/* The names in quotes are areas of the grid: "picture" (the picture),
   "facts" (the facts panel) and "after" (the line under the picture). */
.pictureFacts {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  grid-template-areas: "picture facts" "after facts";
  grid-template-rows: auto 1fr;   /* any extra height goes under the line */
  gap: 30px;
  align-items: start;
  margin-top: 30px;
}
.pictureFrame { grid-area: picture; background: var(--white); border: 1px solid var(--frame); }
.pictureFrame img { width: 100%; }

/* Two pictures in one frame (material reports, repair coordinator): the
   .wideOnly picture shows on screens wider than 600 px and the .phoneOnly
   picture on 600 px and narrower (the switch is in section 13). Both load
   lazily, so each screen downloads only the picture it shows. */
.phoneOnly { display: none; }

/* The legend under the map: three small groups of color samples and words */
.mapKey {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s4);
  padding: var(--s2) 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.keyTitle { margin-bottom: 4px; color: var(--soft); font-weight: 700; }
.keyList { display: flex; flex-wrap: wrap; gap: 4px var(--s2); list-style: none; }
.keyList li { display: inline-flex; align-items: center; gap: var(--s1); }
/* A short thick line in each block color. The colors match the map picture. */
.keyLine { width: 28px; height: 6px; flex: none; }
.idx1 { background: #1e9143; }   /* wear index 0 to 10: green */
.idx2 { background: #a8d466; }   /* 10 to 25: light green */
.idx3 { background: #f3ad66; }   /* 25 to 50: light orange */
.idx4 { background: #f07142; }   /* 50 to 75: orange */
.idx5 { background: #db161f; }   /* 75 to 100: red */
.keySeen { background: repeating-linear-gradient(90deg, #50545b 0 6px, transparent 6px 10px); }  /* gray dashes */
.keyNever { background: #50545b; }                                                               /* solid gray */
/* A round marker like the camera frames on the map */
.keyDot { width: 14px; height: 14px; flex: none; border: 2px solid #17201c; border-radius: 50%; background: #5dd2ec; }
/* A thin line like the pavement survey ratings on side streets */
.keyThin { width: 28px; height: 2px; flex: none; background: linear-gradient(90deg, #db161f, #f3ad66, #1e9143); }

/* The facts beside the picture: a plain white panel with a small heading,
   a fact list and a short note in gray */
.factPanel { grid-area: facts; padding: 22px; background: var(--white); border: 1px solid var(--frame); }
.factPanel h3 { margin-bottom: 12px; color: var(--soft); font-size: 17px; }
.factNote { margin-top: 12px; color: var(--meta); font-size: 14px; }

/* The line (and the Peoria trial button) under the picture */
.pictureAfter { grid-area: after; }


/* ===========================================================================
   8. HOME: FREE FOOTAGE TEST
   Two plain columns, each under a thin line: what the department receives
   and how its footage is kept.
   =========================================================================== */
.columnPair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin: 30px 0 10px; }
.column { padding-top: 20px; border-top: 1px solid var(--line); }
.column h3 { margin-bottom: 12px; color: var(--soft); font-size: 17px; }
.column p { margin-bottom: 20px; }

/* Short notes two by two, each under a thin line (Peoria trial) */
.noteGrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; }
.note { padding: 20px 0; border-top: 1px solid var(--line); }
.note h3 { margin-bottom: 8px; color: var(--soft); font-size: 17px; }


/* ===========================================================================
   9. PEORIA TRIAL
   The full dashboard sits in a frame (sample-survey/dashboard/), almost as
   wide as the screen.
   Wide screens: the frame is as tall as the screen under the header, so
   the whole dashboard shows at once. Its own columns scroll inside it.
   Narrower screens (1100 px and less inside the frame): the dashboard's
   columns stack, and assets/js/peoria-trial.js grows the frame to the
   dashboard's full height, so the page scrolls as one.
   The how-to notes above the frame use the .noteGrid layout (section 8).
   =========================================================================== */
.trialIntro { padding-bottom: var(--s4); }
/* How to use the dashboard: the gray band above the frame. The white gap
   under it keeps the band and the frame apart. */
.trialApp { padding-block: var(--s5); }
.trialWrap { padding-inline: var(--gutter); }
.trialFrame {
  display: block;
  width: 100%;
  max-width: 1680px;
  height: calc(100vh - var(--header-h) - 2 * var(--s2));
  min-height: 640px;
  max-height: 980px;
  margin-inline: auto;
  border: 1px solid var(--frame);
  background: #16191d;   /* the dashboard's own dark background, while it loads */
}
/* The link under the frame: right-aligned */
.trialOpen { margin-top: 12px; font-size: 14px; text-align: right; }


/* ===========================================================================
   10. FORM
   Fields are pale gray boxes with a darker bottom line, with bold labels
   above them.
   =========================================================================== */
.formGrid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 35px 50px; align-items: start; margin-top: 30px; }
.field { display: grid; gap: 6px; margin-bottom: var(--s3); }
.field label, .fieldLabel { color: var(--text); font-weight: 700; }
.required { color: var(--required); font-size: 13px; font-weight: 500; }
.optional { color: var(--meta); font-size: 13px; font-weight: 500; }
.hint { color: var(--meta); font-size: 14px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid var(--field-edge);
  border-bottom-color: var(--field-line);
  background: var(--field);
  color: var(--soft);
  font-size: 16px;   /* 16 px stops phones from zooming in on the field */
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); }
.field textarea { min-height: 140px; resize: vertical; }
.field [aria-invalid="true"] { border: 2px solid var(--required); }
.fieldError { color: var(--required); font-size: 14px; font-weight: 600; }
.checkField { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; }
.checkField input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); }
.twoUp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s2); }

/* The list of problems at the top of the form */
.errorSummary { margin-bottom: var(--s3); padding: var(--s2) 20px; border: 2px solid var(--required); background: var(--error-bg); }
.errorSummary h2 { margin-bottom: var(--s1); color: var(--required); font-size: 17px; }
.errorSummary ul { padding-left: 20px; }
.errorSummary a { color: var(--required); font-weight: 600; }

.submitRow { display: grid; gap: var(--s2); margin-top: var(--s1); }
.submitRow .btn { justify-self: start; }
.formPrivacy { color: var(--meta); font-size: 14px; }
.formStatus:empty { display: none; }
.formStatus { padding: var(--s2) 20px; background: var(--band); }
/* A failed send looks like the error list at the top of the form */
.formStatus.isError { border: 2px solid var(--required); background: var(--error-bg); }

/* The side column next to the form, under a thin line */
.sideNote { padding-top: 20px; border-top: 1px solid var(--line); }
.sideNote h2 { margin-bottom: 12px; color: var(--soft); font-size: 17px; }
.sideNote p + p { margin-top: 12px; }

/* A gray box for messages, for example "this page needs JavaScript" */
.notice { padding: var(--s2) 20px; background: var(--band); border: 1px solid var(--frame); }


/* ===========================================================================
   11. TEXT PAGES
   Data handling, privacy, accessibility, thanks and the 404 page share one
   readable column under the photo title band.
   =========================================================================== */
.textPage { padding: var(--s6) 0; }
/* The text column: a comfortable reading width, centered under the page
   title. min() keeps it no wider than the content column on tablets.
   (This replaces the width from .container; the side space stays.) */
.textBody { width: min(var(--prose), var(--page)); }
.textBody p { margin-bottom: 20px; }
.textBody h2 { margin: 40px 0 12px; font-size: 20px; }
.textBody h2:first-child { margin-top: 0; }
.textBody h3 { margin: var(--s3) 0 4px; color: var(--soft); font-size: 17px; }
.textBody ul { margin: 0 0 20px; padding-left: 24px; list-style: square; }
.textBody li { margin-bottom: 8px; }
.textBody li::marker { color: var(--accent); }
.updated { color: var(--meta); font-size: 14px; }


/* ===========================================================================
   12. FOOTER
   Black band: logo, page links, policies and contact, then a darker bar
   with the copyright line.
   =========================================================================== */
.siteFooter { background: var(--footer); color: var(--white); font-size: 14px; line-height: 1.5; }
.siteFooter a { color: var(--white); text-decoration: none; }
.siteFooter a:hover { color: var(--white); text-decoration: underline; }
.siteFooter :focus-visible { outline-color: var(--white); }
.footerGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) max-content; gap: 0 3%; padding-top: 52px; padding-bottom: 16px; }
.footerGrid > * { min-width: 0; margin-bottom: 30px; }
/* The white logo in the footer (assets/logo/itsgraded-logo-white.svg) */
.footerLogo img { display: block; width: auto; height: 42px; }
.footerTag { margin-top: 12px; color: var(--footer-soft); }
.footerHeading { margin-bottom: 18px; color: var(--white); font-size: 14px; font-weight: 500; text-transform: uppercase; }
.footerList { list-style: none; }
.footerList a { display: inline-block; padding: 4px 0; }
.footerContact a { overflow-wrap: anywhere; }
.footerBottom { background: var(--bottom); border-top: 1px solid var(--bottom-line); }
.footerBottomInner { display: grid; gap: 6px; padding-top: 20px; padding-bottom: 20px; }


/* ===========================================================================
   13. LAPTOPS, TABLETS AND PHONES
   The content column (.container) gets narrower in steps, so the page
   always keeps a clear margin at the left and right:
     wider than 1280 px     1200 px column (set in section 1)
     1018 to 1280 px         940 px column
     769 to 1017 px          720 px column, the menu links fold into the
                             Menu button
     768 px and narrower     the screen width, less 24 px on each side
     600 px and narrower     the dashboard pictures switch to their phone
                             versions
   =========================================================================== */

/* Laptops */
@media (max-width: 1280px) {
  :root { --page: 940px; }

  /* Picture and facts (map, material reports, repair coordinator): the
     picture across the full width, then the facts in two columns, then
     the line under the picture */
  .pictureFacts { grid-template-columns: minmax(0, 1fr); grid-template-areas: "picture" "facts" "after"; grid-template-rows: auto; }
  .factPanel .factList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 30px; border-top: 0; }
  .factPanel .factList div:nth-child(-n+2) { border-top: 1px solid var(--line); }   /* top line over each column */
}

/* Tablets and small laptops: the menu links fold into the Menu button (the
   main button stays in the header), and side-by-side parts stack */
@media (max-width: 1017px) {
  :root { --page: 720px; }
  .mainNav li:not(.navCtaItem) { display: none; }
  .menuButton { display: inline-flex; }
  .headerInner { gap: var(--s2); }
  .mainNav { margin-left: auto; }
  .navCtaItem { margin-left: 0; }

  .imageText { flex-direction: column; align-items: stretch; gap: var(--s3); }
  .imageTextPhoto { flex: none; }
  /* Picture and facts: the facts back in one column */
  .factPanel .factList { display: block; border-top: 1px solid var(--line); }
  .factPanel .factList div:nth-child(-n+2) { border-top: 0; }
  .formGrid { grid-template-columns: minmax(0, 1fr); }
  .footerGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones and small tablets: the column is the full screen width, less the
   24 px gutter on each side */
@media (max-width: 768px) {
  :root { --page: 100%; --header-h: 64px; --s6: 48px; }
  .topBar { display: none; }
  .logo { height: 40px; }   /* a smaller logo in the shorter phone header */
  .mainNav .navCtaItem { display: none; }   /* the main button moves into the menu */
  .rowTitle { font-size: 22px; }
  .titleBand h1 { padding: 56px 0 64px; font-size: 28px; }
  .heroInner { padding-block: 56px 112px; }
  .heroTitle { font-size: 28px; }
  .heroText { font-size: 16px; }
  .benefitList { font-size: 17px; }
  .heroButtons .btn { width: 100%; }
  .twoUp, .columnPair, .noteGrid, .photoPair, .photoTrio { grid-template-columns: minmax(0, 1fr); }
  .factPanel { padding: 20px var(--s2); }
  .factList.sideBySide div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 12px; }
  .submitRow .btn { justify-self: stretch; }
  .footerGrid { grid-template-columns: minmax(0, 1fr); padding-top: 40px; }

  /* Peoria trial: the frame runs to the screen edges */
  .trialWrap { padding-inline: 0; }
  .trialFrame { border-inline: 0; }
}

/* Phones: the dashboard pictures (material reports, repair coordinator)
   switch to their phone versions, which are narrow enough to read */
@media (max-width: 600px) {
  .wideOnly { display: none; }
  .phoneOnly { display: block; }
}


/* ===========================================================================
   14. LESS MOTION
   People who ask their device for less motion get no smooth scrolling and
   no animated changes.
   =========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}


/* ===========================================================================
   15. PRINTING
   =========================================================================== */
@media print {
  .topBar, .siteHeader, .skipLink, .phoneMenu, .videoBar, .videoPlayer, .trialApp { display: none; }
  .row, .textPage { padding: 24px 0; }
  .heroVideo, .heroShade { display: none; }
  .hero, .heroTitle, .heroText { background: none; color: #000000; }
  .heroInner { padding-block: 24px; }
  .titleBand { background: none; }
  .titleBand::after { display: none; }
  .titleBand h1 { padding: 24px 0 0; color: #000000; text-align: left; }
  .btnLight, .btnOnDark { border-color: #000000; color: #000000; }
  .siteFooter, .footerBottom { background: none; color: #000000; }
  .siteFooter a { color: #000000; }
}
