@font-face { font-family: "Schibsted Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/source-serif-4-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }

:root {
  --bg: #f1f3f6;
  --surface: #ffffff;
  --ink: #0e1726;
  --ink-2: #4a5568;
  --rule: #d3d9e1;
  --link: #1f5fbf;
  --button-bg: #1f5fbf;
  --button-ink: #ffffff;
  --blue: #2a78d6;
  --blue-strong: #1f5fbf;
  --navy: #0e1726;
  --navy-ink: #e8ecf1;
  --navy-ink-2: #aebbd0;
  --orange: #eb6834;
  --green: #1baf7a;
  --ok: #0f7a52;
  --error: #b42318;
  --error-bg: #fdecea;
  --font-head: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Serif 4", Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #151b23;
    --ink: #e8ecf1;
    --ink-2: #a9b3c1;
    --rule: #2b3440;
    --link: #6ea8fe;
    --button-bg: #3987e5;
    --button-ink: #0d1117;
    --blue: #3987e5;
    --blue-strong: #3987e5;
    --navy: #151b23;
    --orange: #d95926;
    --green: #199e70;
    --ok: #4cc9a0;
    --error: #f97066;
    --error-bg: #3a1a18;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(36px, 5.4vw, 56px); line-height: 1.05; font-weight: 700; margin: 0 0 20px; }
h2 { font-size: 22px; line-height: 1.2; font-weight: 600; margin: 0 0 14px; }
p { margin: 0 0 16px; max-width: 62ch; }

.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }

.site-top { background: var(--navy); }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: var(--navy-ink); text-decoration: none; }
.brand svg { width: 28px; height: 28px; display: block; }
.site-nav a { font-family: var(--font-head); font-size: 15px; font-weight: 500; margin-left: 20px; color: var(--navy-ink-2); }
.site-nav a:hover { color: #fff; }
.stripe { display: flex; height: 5px; }
.stripe span:nth-child(1) { flex: 20; background: var(--blue); }
.stripe span:nth-child(2) { flex: 9; background: var(--orange); }
.stripe span:nth-child(3) { flex: 14; background: var(--green); }

.layout { display: grid; gap: 48px; padding-block: 24px 80px; align-items: start; }
@media (min-width: 920px) { .layout { grid-template-columns: 1.5fr 1fr; gap: 72px; padding-block: 40px 104px; } }
.lede { font-size: 20px; color: var(--ink-2); max-width: 54ch; margin-bottom: 32px; }

.dropzone {
  position: relative;
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 28px clamp(18px, 3vw, 28px);
  background: color-mix(in srgb, var(--blue) 7%, var(--surface));
  border: 2px dashed var(--blue);
  border-radius: 10px;
  transition: background-color .15s;
}
.dropzone:hover, .dropzone.is-over { background: color-mix(in srgb, var(--blue) 14%, var(--surface)); }
.dropzone:focus-within { outline: 3px solid var(--blue); outline-offset: 2px; }
.dropzone input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dz-title { font-family: var(--font-head); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; }
.dz-hint { color: var(--ink-2); font-size: 16px; max-width: 52ch; }
.dz-action { font-family: var(--font-head); font-weight: 600; font-size: 15px; margin-top: 8px; padding: 9px 16px; border-radius: 6px; background: var(--button-bg); color: var(--button-ink); }

.files { list-style: none; margin: 20px 0 0; padding: 0; border-top: 1px solid var(--rule); }
.files li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: baseline; padding-block: 14px; border-bottom: 1px solid var(--rule); }
.file-name { font-family: var(--font-head); font-weight: 600; font-size: 16px; overflow-wrap: anywhere; }
.file-kind { grid-column: 1; font-size: 15px; color: var(--ink-2); }
.file-state { grid-row: 1 / span 2; grid-column: 2; font-family: var(--font-head); font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--ok); }
.file-state.bad { color: var(--error); }

.days { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 14px; margin-top: 22px; }
.day-bars { display: flex; gap: 4px; }
.day-bars span { width: 34px; height: 10px; border-radius: 2px; background: var(--rule); transition: background-color .25s; }
.day-bars span.on:nth-child(1) { background: var(--blue); }
.day-bars span.on:nth-child(2) { background: var(--orange); }
.day-bars span.on:nth-child(3) { background: var(--green); }
.days.over .day-bars span { background: var(--error); }
.day-label { font-family: var(--font-head); font-weight: 600; font-size: 16px; }
.day-range { grid-column: 2; font-size: 15px; color: var(--ink-2); margin: 0; }

.status { font-family: var(--font-head); font-size: 16px; margin: 20px 0 0; min-height: 1.5em; max-width: none; }
.problems { margin: 14px 0 0; padding: 14px 18px 14px 36px; background: var(--error-bg); border-left: 4px solid var(--error); border-radius: 0 6px 6px 0; font-size: 16px; }
.problems li + li { margin-top: 6px; }
.clean-link { margin: 14px 0 0; padding: 14px 18px; border: 1px solid var(--rule); border-radius: 6px; background: var(--surface); font-size: 16px; max-width: none; }

.button, input[type=submit] {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 600;
  background: var(--button-bg);
  color: var(--button-ink);
  border: 0;
  border-radius: 6px;
  padding: 14px 24px;
  margin-top: 24px;
  cursor: pointer;
  text-decoration: none;
}
.button:hover, input[type=submit]:hover:not(:disabled) { filter: brightness(1.12); }
input[type=submit]:disabled { opacity: .4; cursor: not-allowed; }

.how { background: var(--navy); color: var(--navy-ink); border-radius: 10px; padding: 28px clamp(20px, 3vw, 32px) 32px; }
.how h2 { color: var(--navy-ink); }
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 26px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; }
.steps li::before {
  content: counter(step);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  width: 34px; height: 34px;
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  grid-row: span 2;
}
.steps li:nth-child(1)::before { background: var(--blue); }
.steps li:nth-child(2)::before { background: var(--orange); }
.steps li:nth-child(3)::before { background: var(--green); }
.steps h3 { font-size: 18px; margin: 3px 0 0; font-weight: 600; color: var(--navy-ink); }
.steps p { margin: 0; color: var(--navy-ink-2); font-size: 16px; }

.prose { max-width: 680px; padding-block: 24px 96px; }
.prose h2 { margin-top: 36px; }
.back { margin-top: 36px; }

.site-footer { border-top: 1px solid var(--rule); padding-block: 32px 56px; font-size: 15px; color: var(--ink-2); }
.site-footer p { margin: 0 0 8px; max-width: 70ch; }
.site-footer p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media (max-width: 520px) { body { font-size: 17px; } .site-nav a:first-child { display: none; } }
