/* The request and invite pages (src/page.js betaPage), in the website's look (trafficdesigner.ai): DM Sans, ink on
   white, the TD red for actions. DM Sans is self-hosted (fonts/DMSans-OFL.txt) because the page's CSP allows only 'self'. */
@font-face {
  font-family: "DM Sans";
  src: url("/join/assets/dmsans.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/join/assets/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #FFFFFF;
  --soft: #F6F6F4;
  --card: #FFFFFF;
  --ink: #070707;
  --body: #3D3D3D;
  --muted: #6B6B6B;
  --line: #E6E6E6;
  --field: #D6D6D6;
  --red: #DB2818;
  --red-dark: #BE2012;
  --focus: rgba(219, 40, 24, .22);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body {
  font: 16px/1.5 "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--ink); }
a:hover { color: var(--red); }

/* header and footer, as on the website */
.top { border-bottom: 1px solid #EFEFEF; }
.top-in, .foot-in { max-width: 1152px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand img { display: block; width: 34px; height: 34px; }
/* the wordmark, as in the logo: Archivo, "Traffic" 800 + "Designer" 500 */
.wordmark { font-family: "Archivo", system-ui, sans-serif; font-size: 23px; letter-spacing: -.01em; line-height: 1; }
.wordmark .w1 { font-weight: 800; }
.wordmark .w2 { font-weight: 500; }
.back { font-size: 15px; color: var(--body); text-decoration: none; }
.foot { margin-top: auto; border-top: 1px solid #ECECEC; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--red); }

/* the content: one centred card, or (request page, step 1) the intro column beside the card */
.page { width: 100%; max-width: 1152px; margin: 0 auto; padding: 64px 24px 96px; display: flex; justify-content: center; align-items: flex-start; gap: 64px; }
.page.split { justify-content: space-between; }
.later-step .page.split { justify-content: center; }
.card {
  width: 100%; max-width: 560px; background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 36px 40px; box-shadow: 0 30px 80px rgba(7, 7, 7, .08);
}

.intro-col { flex: 1 1 0; max-width: 470px; padding-top: 24px; }
.lead { margin: 0 0 28px; font-size: 52px; line-height: 1.08; letter-spacing: -.01em; font-weight: 500; color: var(--ink); }
.points { list-style: none; margin: 0 0 32px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.points li { display: flex; align-items: center; gap: 12px; font-size: 17px; color: var(--body); margin: 0; }
.points svg { flex: none; width: 26px; height: 26px; padding: 4px; border-radius: 8px; background: #FBEAE8; color: var(--red); }
.demo { margin: 0; font-size: 15px; color: var(--muted); }
.demo a { color: var(--ink); text-underline-offset: 3px; }

.kicker { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
h1 { font-size: 32px; line-height: 1.15; letter-spacing: -.025em; font-weight: 500; margin: 0 0 10px; }
h2 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
h3 { font-size: 16px; font-weight: 600; margin: 18px 0 6px; }
p { margin: 0 0 12px; color: var(--body); }
strong { color: var(--ink); font-weight: 600; }
ol { margin: 0 0 12px; padding-left: 22px; }
li { margin: 0 0 6px; }
.intro { color: var(--muted); margin-bottom: 26px; }
.small { font-size: 14px; color: var(--muted); }
.note { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; }

form { display: flex; flex-direction: column; gap: 16px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
label { font-size: 14px; font-weight: 500; color: var(--ink); }
.optional { font-weight: 400; color: var(--muted); }
input, select {
  font: inherit; font-size: 16px; width: 100%; padding: 11px 13px; border: 1.5px solid var(--field); border-radius: 10px; background: #fff; color: inherit;
  transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; padding-right: 34px; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
input:hover, select:hover { border-color: #BDBDBD; }
input:focus, select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--focus); }
[aria-invalid="true"] { border-color: var(--red); }
#code { font-size: 24px; letter-spacing: 6px; font-variant-numeric: tabular-nums; max-width: 260px; }

.terms { border: 1px solid var(--line); border-radius: 10px; background: var(--soft); font-size: 14px; }
.terms summary { cursor: pointer; padding: 11px 14px; font-weight: 500; color: var(--ink); }
.terms ol { max-height: 220px; overflow: auto; margin: 0; padding: 0 16px 12px 34px; color: var(--body); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 400; color: var(--body); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--red); flex: none; }

.button {
  display: inline-block; text-align: center; font: inherit; font-size: 17px; font-weight: 500; padding: 14px 26px; border-radius: 10px; cursor: pointer;
  background: var(--red); border: 1.5px solid var(--red); color: #fff; text-decoration: none; box-shadow: 0 6px 18px rgba(219, 40, 24, .22);
  transition: background .15s, border-color .15s;
}
.button:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.button:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--focus); }
.button:disabled { opacity: .6; cursor: default; }
form .button { width: 100%; margin-top: 4px; }
.link { color: var(--muted); font-size: 15px; align-self: flex-start; }

.status { min-height: 0; margin: 0; color: var(--muted); font-size: 14px; }
.status:empty { display: none; }
.status.error { color: var(--red-dark); }

/* step 2 centred; step 3: the download buttons side by side, this computer's first and red */
#step-code, #step-done { text-align: center; }
#code-form { align-items: center; }
#code-form .field { align-items: center; width: 100%; }
#code-form #code { text-align: center; }
#code-form .button { max-width: 320px; }
#code-form .link { align-self: center; }
.get { margin: 22px 0 24px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.button.dl { display: inline-flex; align-items: center; justify-content: center; gap: 9px; flex: 1 1 200px; padding: 14px 18px; }
.button.dl.alt { background: #fff; color: var(--ink); border-color: var(--field); box-shadow: none; }
.button.dl.alt:hover { background: var(--soft); }
.help { border: 1px solid var(--line); border-radius: 10px; background: var(--soft); margin: 4px 0 16px; font-size: 14px; text-align: left; }
.help summary { cursor: pointer; padding: 11px 14px; font-weight: 500; }
.help p { margin: 0 14px 10px; }

@media (max-width: 960px) {
  .page.split { flex-direction: column; align-items: center; gap: 36px; padding-top: 40px; }
  .intro-col { max-width: 560px; width: 100%; padding-top: 0; }
  .lead { font-size: 40px; margin-bottom: 22px; }
  .points { margin-bottom: 20px; }
}
@media (max-width: 560px) {
  .top-in, .foot-in { padding: 14px 16px; }
  .back { display: none; }
  .page { padding: 28px 16px 64px; }
  .lead { font-size: 34px; }
  .card { padding: 26px 20px; border-radius: 14px; box-shadow: 0 12px 40px rgba(7, 7, 7, .07); }
  h1 { font-size: 28px; }
  .two { grid-template-columns: 1fr; }
  .button.dl { flex-basis: 100%; }
}
