/* Trial sign-up page. Same look as checkout.html. No inline styles are used anywhere on the page. */
:root {
  color-scheme: dark;
  --bg: #020617;
  --card: #0f172a;
  --line: #1e293b;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #3b82f6;
  --ok-bg: #052e16;
  --ok-text: #bbf7d0;
  --err-bg: #451a03;
  --err-text: #fde68a;
  --info-bg: #172554;
  --info-text: #bfdbfe;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  padding: 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-wrap: anywhere;
}
a { color: #93c5fd; }
a:focus-visible, input:focus-visible, button:focus-visible, .notice:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
.card {
  width: 100%;
  max-width: 32rem;
  margin-top: 4vh;
  padding: 24px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.brand { margin: 0 0 20px; font-weight: 700; font-size: 1.125rem; }
.brand a { display: inline-block; color: var(--text); text-decoration: none; }
.brand img { display: block; width: auto; height: 44px; }
h1 { margin: 0 0 8px; font-size: 1.5rem; line-height: 1.25; }
.lead { margin: 0 0 8px; color: var(--muted); }
.fine { margin: 8px 0 0; font-size: 0.8125rem; color: var(--muted); }
.field-label { display: block; margin: 24px 0 6px; font-size: 0.9375rem; font-weight: 600; }
input[type="email"] {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid #334155;
  border-radius: 12px;
  font: inherit; /* 16px, so phones do not zoom in */
}
input[type="email"]::placeholder { color: #64748b; }
.turnstile {
  /* Room for the widget before it loads, so the page does not jump. The widget is at least 300px wide; the
     container never lets it push the page sideways. */
  min-height: 65px;
  max-width: 100%;
  margin-top: 20px;
  overflow: hidden;
}
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  cursor: pointer;
  font-size: 0.9375rem;
}
.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.consent-optional { margin-top: 12px; }
#submit {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#submit:hover:not(:disabled) { background: var(--accent-hover); }
#submit:disabled { opacity: 0.45; cursor: not-allowed; }
.notice {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--info-bg);
  color: var(--info-text);
  font-size: 0.9375rem;
}
.notice:empty { display: none; } /* an empty live region stays in the page so that changes to it are announced */
.notice-ok { background: var(--ok-bg); color: var(--ok-text); }
.notice-error { background: var(--err-bg); color: var(--err-text); }
/* After a successful request. .btn matches the button on checkout-success.html. */
.btn {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
}
.btn:hover { background: var(--accent-hover); }
/* The quiet button under the form: leave without requesting a trial. */
.btn-secondary { margin-top: 16px; background: transparent; border: 1px solid #334155; }
.btn-secondary:hover { background: var(--line); }
.link-btn {
  padding: 6px 0;
  border: 0;
  background: none;
  color: #93c5fd;
  font: inherit; /* the size of the .fine line it sits in */
  text-decoration: underline;
  cursor: pointer;
}
footer { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
footer .fine { margin: 0; }
/* Language links in the footer. The i18n build fills in the hrefs. */
.langs { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; }
.langs a[aria-current="page"] { color: var(--text); font-weight: 600; text-decoration: none; }
/* Descriptive text under the form: what the trial is, for people who arrive from a search and for search engines. */
.about { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.about h2 { margin: 20px 0 6px; font-size: 1.0625rem; line-height: 1.3; }
.about h2:first-child { margin-top: 0; }
.about p, .about li { color: var(--muted); font-size: 0.9375rem; }
.about p { margin: 0 0 8px; }
.about ul { margin: 8px 0; padding-left: 20px; }
.about li { margin: 6px 0; }
.about strong { color: var(--text); }
