/* Empirilo website. Tokens match the spec (section 4) and the product mockup. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0A1A2F;          /* brand navy */
  --text-2: #4F5763;       /* supporting text */
  --muted: #7A818C;
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --border: #E6E8EB;
  --green: #2CCB6C;        /* brand green */
  --green-ink: #1D8A5A;
  --green-tint: #DDF5E7;
  --salmon: #FA8072;       /* brand salmon */
  --salmon-ink: #A8402A;
  --salmon-tint: #FDE8E3;
  --under: #F0F1F3;
  --radius: 8px;
  --wrap: 1120px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--green-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -0.025em; }
h2 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.2; margin-bottom: 18px; }
h3 { font-size: 18px; line-height: 1.35; }
p { margin: 0 0 14px; }
p:last-child { margin-bottom: 0; }

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

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: var(--radius);
  transition: background-color .15s ease;
}
.btn:hover { background: #1B3352; color: #fff; }
.btn-small { font-size: 14.5px; padding: 8px 14px; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--green-tint); color: var(--ink); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(250, 250, 250, 0.92);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { width: 152px; height: auto; }

/* Hero */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.lede { font-size: 19px; color: var(--text-2); margin: 22px 0 28px; max-width: 34em; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-note { color: var(--text-2); font-size: 15px; }
.status { margin-top: 26px; font-size: 15px; color: var(--text-2); padding-left: 14px; border-left: 3px solid var(--green); }

/* The one memorable element: the load panel */
.load-panel {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 20px 18px;
  box-shadow: 0 1px 2px rgba(10, 26, 47, 0.04), 0 12px 32px -12px rgba(10, 26, 47, 0.12);
}
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.panel-title { font-weight: 600; font-size: 15px; }
.panel-tag { font-size: 12.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }

.load-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; font-variant-numeric: tabular-nums; }
.load-grid thead th { font-weight: 500; font-size: 12.5px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.load-grid thead th:first-child { width: 31%; }
.load-grid tbody th { text-align: left; font-weight: 500; font-size: 14px; padding-right: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.load-grid td { text-align: center; font-size: 13px; height: 40px; border-radius: 6px; }
.load-grid td.under { background: var(--under); color: var(--text-2); }
.load-grid td.on { background: var(--green-tint); color: #145F3D; }
.load-grid td.over { background: var(--salmon-tint); color: var(--salmon-ink); font-weight: 650; box-shadow: inset 0 0 0 1px #F6C3B8; }
.row-firm th { font-weight: 650; }
.row-firm td { box-shadow: inset 0 -2px 0 rgba(29, 138, 90, 0.35); }

.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--text-2); margin: 12px 4px 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 11px; height: 11px; border-radius: 3px; }
.sw.under { background: var(--under); box-shadow: inset 0 0 0 1px var(--border); }
.sw.on { background: var(--green-tint); }
.sw.over { background: var(--salmon-tint); box-shadow: inset 0 0 0 1px #F6C3B8; }
.load-panel figcaption { margin: 14px 4px 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-2); }

/* Sections */
.section { padding: 80px 0; }
.hero + .section { padding-top: 40px; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section p { max-width: 40em; }

.shows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 56px; margin: 28px 0 0; }
.shows div { border-top: 2px solid var(--ink); padding-top: 16px; }
.shows dt { font-weight: 600; font-size: 18px; margin-bottom: 6px; }
.shows dd { margin: 0; color: var(--text-2); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1.5px solid var(--ink); font-weight: 600; font-size: 15px;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 17px; left: 46px; right: -28px;
  border-top: 1.5px dashed #C8CDD3;
}
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--text-2); }
.support { margin-top: 36px; padding: 16px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); max-width: none !important; }

.team-intro { font-size: 18px; }
.founder { display: flex; gap: 28px; align-items: flex-start; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.founder-photo { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1px var(--border); }
.founder h3 { margin-bottom: 10px; }
.founder p { color: var(--text-2); }

/* CTA band */
.cta-band { background: var(--ink); color: #fff; padding: 80px 0; }
.cta-band p { color: #C9D2DE; font-size: 18px; margin-bottom: 26px; }
.cta-band .cta-note { color: #C9D2DE; }

/* Footer */
.site-footer { padding: 36px 0 44px; font-size: 14.5px; color: var(--text-2); }
.footer-row { display: flex; align-items: center; gap: 24px 32px; flex-wrap: wrap; }
.footer-row img { width: 110px; height: auto; margin-right: auto; }
.footer-row p { margin: 0; }
.footer-row a { color: var(--text-2); }

/* Tablet and phone */
@media (max-width: 920px) {
  .hero { padding: 48px 0 32px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .steps li { padding: 0 0 0 52px; }
  .steps li:not(:last-child)::after { top: 42px; bottom: -22px; left: 17px; right: auto; border-top: 0; border-left: 1.5px dashed #C8CDD3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .section, .cta-band { padding: 56px 0; }
  .shows { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .brand img { width: 124px; }
  .load-panel { padding: 14px 10px 14px; }
  .load-grid { border-spacing: 3px; }
  .load-grid thead th:first-child { width: 27%; }
  .load-grid tbody th { font-size: 12.5px; }
  .load-grid td { font-size: 11.5px; height: 34px; }
  .founder { flex-direction: column; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-row img { margin: 0 0 6px; }
}
