/* ManagerSense Software Inc. - company site
   One family (Archivo, variable width + weight): wide for headings, normal for text. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  /* SoccerRefManager's colours: deep teal, its green, and the logo's ink */
  --teal: #0d4e53;
  --teal-soft: #146168;
  --paper: #ffffff;
  --ground: #eff6f4;
  --ink: #10303c;
  --pencil: #4e666b;      /* secondary text */
  --rule: #d5e3e1;
  --green: #06b178;
  --green-bright: #34d6a0; /* the green on the teal ground */
  --mint: #bfefdb;         /* highlight behind an answer */
  --on-teal: #cfe5e3;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

h1, h2, h3, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
p, dd { text-wrap: pretty; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 3px; }
.top :focus-visible, .foot :focus-visible { outline-color: var(--green-bright); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--mint); color: var(--ink); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 0; }

/* ---------- Top: bar + hero on the navy ground ---------- */

.top { background: var(--teal); color: #fff; overflow: hidden; }

.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; }

.brand { display: inline-block; }
.brand img { display: block; height: 40px; width: auto; }

.nav { display: flex; gap: clamp(16px, 3vw, 32px); }
.nav a { color: var(--on-teal); text-decoration: none; font-weight: 500; padding: 6px 0; }
.nav a:hover { color: #fff; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--green-bright); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-top: clamp(36px, 7vw, 96px);
  padding-bottom: clamp(56px, 9vw, 128px);
}

.hero h1 {
  font-size: clamp(2.4rem, 1.2rem + 4.4vw, 4.25rem);
  line-height: 1.03;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.hero__lede { margin-top: 24px; max-width: 33em; color: var(--on-teal); font-size: 1.1875rem; line-height: 1.55; }

.hero__actions { margin-top: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; }

.button {
  display: inline-block;
  background: var(--green);
  color: #04262a;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 6px;
  line-height: 1.2;
}
.button:hover { background: var(--green-bright); }
.button--ink { background: var(--teal); color: #fff; }
.button--ink:hover { background: var(--teal-soft); }

.textlink { font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--green-bright); }
.textlink:hover { text-decoration-color: #fff; }

/* ---------- The note: a manager's questions, answered ---------- */

.note {
  background: var(--paper);
  color: var(--ink);
  border-radius: 4px;
  padding: 26px 28px 12px;
  box-shadow: 0 1px 0 #083a3e, 0 24px 48px -18px rgba(2, 24, 27, 0.7);
  transform: rotate(-1.2deg);
}

.note__head { padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-size: 1.0625rem; font-weight: 600; color: var(--pencil); }

.ask { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.ask:last-child { border-bottom: 0; }

.ask dt { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.ask dd { font-size: 1.25rem; font-weight: 800; line-height: 1.3; white-space: nowrap; }

.answer {
  display: inline-block;
  padding: 1px 8px 2px;
  border-radius: 2px;
  background-image: linear-gradient(var(--mint), var(--mint));
  background-repeat: no-repeat;
  background-position: 0 50%;
  background-size: 100% 100%;
}

/* script.js hides the answers, then gives them one by one */
.answer.is-waiting { background-size: 0% 100%; color: transparent; }
.answer.is-given { transition: background-size 0.4s cubic-bezier(0.3, 0.7, 0.2, 1), color 0.15s 0.12s; }

/* ---------- Bands below the hero ---------- */

.band { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper); }
.band--plain { background: var(--ground); }

h2 {
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 2.9rem);
  line-height: 1.08;
  font-weight: 700;
  font-stretch: 112%;
  letter-spacing: -0.02em;
}

.products { margin-top: 32px; }

.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px 40px; align-items: center; padding: 28px 0; border-top: 1px solid var(--rule); }
.product:last-child { border-bottom: 1px solid var(--rule); }

.product__name { font-size: 1.5rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.product__what { color: var(--pencil); max-width: 34em; }
.product__go { margin-top: 8px; }

.contact__mail { margin-top: 22px; }
.contact__mail a {
  font-size: clamp(1.35rem, 0.9rem + 2.4vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
  text-decoration-color: var(--green);
  text-decoration-thickness: 0.14em;
  text-underline-offset: 0.2em;
}
.contact__mail a:hover { background: var(--mint); }

.foot { background: var(--teal); color: var(--on-teal); padding: 28px 0; font-size: 0.9375rem; }

/* ---------- Wider screens ---------- */

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; }
  .product { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) auto; }
  .product__go { margin-top: 0; }
}

@media (max-width: 480px) {
  .note { padding: 20px 18px 6px; transform: none; }
  .ask dt, .ask dd { font-size: 1.125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .answer.is-given { transition: none; }
}
