/* Copied from ellie-os apps/web/src/styles.css (2026-10-25): the tokens, the lattice, the card and the
   wordmark of the signed-out screens. A copy, not a link: this site shares nothing with the app. */

@font-face {
  font-family: "Satoshi";
  src: url("/fonts/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --surface: #ffffff;
  --surface-3: #f5f5f5;
  --ink: #242424;
  --on-ink: #ffffff;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --line-strong: #767676;
  --volt: #d8fe52;
  --on-volt: #242424;
  --volt-soft: #f1f9d2;
  --danger: #c81e1e;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #242424;
    --surface-3: #333333;
    --ink: #f2f2f2;
    --on-ink: #242424;
    --muted: #aaaaaa;
    --line: #3a3a3a;
    --line-strong: #8f8f8f;
    --volt-soft: #2f3519;
    --danger: #f78585;
    color-scheme: dark;
  }
}

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

html,
body {
  margin: 0;
  background: var(--surface);
}

body {
  position: relative;
  display: flex;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  padding: max(2.5rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right))
    max(2.5rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
  color: var(--ink);
  font-family: "Satoshi", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

.lattice {
  pointer-events: none;
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, black 30%, transparent 85%);
}

main {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 24rem;
  flex-direction: column;
  gap: 1.5rem;
}

main.wide {
  max-width: 40rem;
}

.brand {
  align-self: center;
  color: var(--ink);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand span {
  border-radius: 0.375rem;
  corner-shape: round;
  background: var(--volt);
  padding: 0.125rem 0.375rem;
  color: var(--on-volt);
}

.card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--surface);
  padding: 1.5rem;
}

h1 {
  margin: 0;
  font-size: 1.875rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0.5rem 0 0;
  font-size: 1.125rem;
  font-weight: 800;
}

p {
  margin: 0;
}

.lede {
  color: var(--muted);
}

a {
  color: var(--ink);
  text-underline-offset: 4px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

label {
  font-size: 0.875rem;
  font-weight: 600;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

/* 44px tall and 16px text, so Safari does not zoom into the field on a phone. */
input {
  min-height: 2.75rem;
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: var(--surface);
  padding: 0.5rem 0.875rem;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

input:focus-visible {
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 2px var(--volt);
}

input[aria-invalid="true"] {
  border-color: var(--danger);
}

.error {
  color: var(--danger);
  font-size: 0.875rem;
}

button {
  min-height: 3rem;
  cursor: pointer;
  border: 0;
  border-radius: 0.75rem;
  background: var(--ink);
  padding: 0 1.5rem;
  color: var(--on-ink);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
}

button:hover {
  opacity: 0.9;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* The honeypot: off screen, not display:none, which some bots skip. */
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fine {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
}

.fine a {
  color: var(--muted);
}

.tick {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  corner-shape: round;
  background:
    no-repeat center / 1.5rem
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23242424' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"),
    var(--volt);
}

.sign {
  font-weight: 700;
}

.legal {
  gap: 0.875rem;
}

.legal p {
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 2.25rem;
  }

  .card {
    padding: 2rem;
  }
}
