:root {
  --ink: #0E1116;
  --ink-2: #4A5361;
  --line: #D9DEE3;
  --bg: #F6F8F9;
  --grid: rgba(14, 17, 22, 0.045);
  --card: #FFFFFF;
  --blue: #0FA6DB;       /* 1PXL light blue */
  --blue-deep: #0A7FB3;  /* 1PXL deep blue: text and buttons (AA contrast) */
  --teal: #0FD0CA;       /* 1PXL teal: accents only */
  --error: #C2362B;
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  line-height: 1.5;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  min-height: 100vh;
}

.wrap {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
}

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 20px; }
.logo { display: inline-flex; }
.logo img { display: block; height: 20px; width: auto; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-2); background: var(--card); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 999px; white-space: nowrap;
}
.dot { width: 7px; height: 7px; background: var(--teal); border-radius: 1px; }

/* Hero */
.hero { text-align: center; padding: 8px 0 20px; }
.avatar {
  display: block; margin: 0 auto;
  width: 132px; height: 132px; border-radius: 50%; object-fit: cover;
  border: 3px solid var(--card);
  box-shadow: 0 0 0 3px var(--blue), 0 12px 30px rgba(10, 127, 179, 0.18);
}
.avatar.sm { width: 72px; height: 72px; }
h1 {
  font-size: clamp(30px, 8.6vw, 42px); line-height: 1.08; letter-spacing: -0.02em;
  font-weight: 800; margin: 20px 0 10px;
}
.accent { color: var(--blue-deep); }
.cursor {
  display: inline-block; width: 0.42em; height: 0.86em; margin-left: 0.1em;
  vertical-align: -0.04em; background: var(--blue);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.lede { color: var(--ink-2); font-size: 16px; margin: 0 auto; max-width: 42ch; }
.gets {
  list-style: none; padding: 0; margin: 16px 0 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
}
.gets li {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 5px 9px;
}

/* Card + form */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: 0 1px 2px rgba(14, 17, 22, 0.04);
}
.field { margin-bottom: 16px; }
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--ink-2); }

input[type="text"], input[type="email"], select {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: inherit; font-size: 16px; /* 16px stops iOS zooming on focus */
  color: var(--ink); background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px;
  -webkit-appearance: none; appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A5361' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
select:invalid { color: #8A93A0; }
input::placeholder { color: #8A93A0; }
input:focus, select:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 166, 219, 0.25);
}
[aria-invalid="true"] { border-color: var(--error) !important; }
.err { color: var(--error); font-size: 13px; margin: 6px 0 0; }
.err:empty { display: none; }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue-deep); }

/* Honeypot: off-screen, not display:none (some bots skip hidden fields) */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.ts { margin: 0 0 12px; }
.ts:empty { display: none; }

.form-error {
  color: var(--error); font-size: 14px; margin: 0 0 12px;
  background: #FCEDEB; border-radius: 8px; padding: 10px 12px;
}
.form-error:empty { display: none; }

button {
  width: 100%; min-height: 52px; border: 0; border-radius: 10px;
  font: inherit; font-size: 17px; font-weight: 700; color: #fff;
  background: var(--blue-deep); cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
button:hover { background: #086C99; }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
button[disabled] { opacity: 0.65; cursor: progress; }

.fine { font-size: 12px; color: var(--ink-2); margin: 12px 0 0; text-align: center; }
.fine a { color: var(--blue-deep); }

/* Success */
.success { text-align: center; padding: 28px 20px; }
.success h2 { font-size: 24px; letter-spacing: -0.01em; margin: 16px 0 6px; }
.success p { margin: 0; color: var(--ink-2); }
.success:focus { outline: none; }

footer {
  text-align: center; margin-top: 24px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ink-2);
}

@media (min-width: 560px) {
  .wrap { padding-top: 32px; }
  .card { padding: 24px; }
}
