/* The look of the ExplorerFocus site (intrepidparallel.com/explorerfocus/), for the pages the payment service serves:
   the offer pages, the answer after the email, and the private tracking link.
   Served from the same origin as the pages, like the fonts: no third parties, no scripts, no cookies.
   CSP: add style-src 'self' and font-src 'self'. The logo is an inline SVG with attributes, so it needs nothing.
   Fonts: SIL Open Font License 1.1 (fonts/OFL.txt), the same files the site serves. */

@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url(fonts/cormorant-garamond-normal-latin.woff2) format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 300 700; font-display: swap;
  src: url(fonts/cormorant-garamond-italic-latin.woff2) format("woff2"); }
@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(fonts/geist-normal-latin.woff2) format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-normal-latin.woff2) format("woff2"); }

:root {
  --bg-0: #0E0F11; --bg-1: #16181B; --bg-2: #1A1C1F;
  --border-1: #2A2722; --border-2: #3A3530;
  --accent: #E0A458; --accent-dim: #B6884B; --accent-soft: #5C401E;
  --fg-0: #E8E5DF; --fg-1: #C8C5BF; --fg-2: #8E8B86; --fg-3: #5E5C58;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Geist", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg-0); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg-0); color: var(--fg-1);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--fg-0); }
::selection { background: var(--accent-soft); color: var(--fg-0); }

/* The top bar: the logo and the name, as on the site. */
.topbar { border-bottom: 1px solid var(--border-1); }
.topbar-inner { max-width: 760px; margin: 0 auto; padding: 14px 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--fg-0); }
.brand:hover { color: var(--fg-0); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: 0.02em; }
.brand-name em { font-style: italic; color: var(--accent); font-weight: 500; }

main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: 56px 24px 48px; }

/* The title, with the short amber line the site puts before its sections. */
h1 {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(34px, 6vw, 50px); line-height: 1.1; letter-spacing: -0.005em;
  color: var(--fg-0); margin: 0 0 28px;
}
h1::before { content: ""; display: block; width: 36px; height: 2px; background: var(--accent); margin-bottom: 22px; }
p { margin: 0 0 18px; max-width: 64ch; }
strong { color: var(--fg-0); font-weight: 600; }

/* The download link, as the site's second button. */
a.download {
  display: inline-flex; align-items: center; gap: 9px; margin: 6px 0 4px;
  padding: 12px 20px; border-radius: 6px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  background: var(--bg-2); color: var(--fg-0); border: 1px solid var(--border-2);
}
a.download:hover { border-color: var(--accent-dim); color: var(--accent); }

/* The email box. */
form { margin: 30px 0 22px; padding: 22px; background: var(--bg-1); border: 1px solid var(--border-1); border-radius: 10px; }
form p { margin: 0; max-width: none; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
label {
  display: flex; flex-direction: column; gap: 8px; flex: 1 1 260px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-2);
}
input[type="email"] {
  width: 100%; padding: 12px 14px; border-radius: 6px;
  font: 400 16px/1.3 var(--font-body); letter-spacing: normal; text-transform: none;
  color: var(--fg-0); background: var(--bg-2); border: 1px solid var(--border-2);
}
input[type="email"]:focus { outline: 1.5px solid var(--accent); outline-offset: 1px; border-color: var(--accent-dim); }
button {
  padding: 13px 22px; border-radius: 6px; border: 1px solid transparent; cursor: pointer;
  font: 600 14px/1.2 var(--font-body); letter-spacing: 0.01em;
  background: var(--accent); color: #1a1408; box-shadow: 0 8px 24px -10px var(--accent);
}
button:hover { background: #ecb066; }

/* The small print under the box. */
small { display: block; font-size: 13px; line-height: 1.6; color: var(--fg-2); }

/* The notices: not started yet, ended, done, the errors. */
.notice {
  margin: 0 0 22px; padding: 16px 18px; max-width: none;
  background: var(--bg-1); border: 1px solid var(--border-1); border-left: 2px solid var(--accent); border-radius: 6px;
  color: var(--fg-0);
}

/* The tracking link: the table of totals. */
table { width: 100%; border-collapse: collapse; margin: 8px 0 22px; font-family: var(--font-mono); font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--border-1); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--fg-2); font-weight: 500; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; white-space: normal; }
td { color: var(--fg-1); }
tfoot td, tr.total td { color: var(--fg-0); font-weight: 600; border-top: 1px solid var(--border-2); }
.table-wrap { overflow-x: auto; }

footer { border-top: 1px solid var(--border-1); }
footer p {
  max-width: 760px; margin: 0 auto; padding: 18px 24px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--fg-3);
}
footer a { color: var(--fg-2); }
footer a:hover { color: var(--accent); }

@media (max-width: 520px) {
  main { padding: 36px 16px 36px; }
  .topbar-inner, footer p { padding-left: 16px; padding-right: 16px; }
  form { padding: 16px; }
  button { width: 100%; }
}
