:root {
  /* values from apps/marketing/app/globals.css */
  --ground: #0a0a0b;
  --surface: #141416;
  --surface-2: rgba(242, 239, 233, 0.05);
  --line: rgba(242, 239, 233, 0.1);
  --line-strong: rgba(242, 239, 233, 0.18);
  --card: rgba(242, 239, 233, 0.03);
  /* --muted and --dim equal the foreground on purpose. The brand leaves no
       grey text on the page; hierarchy comes from size and weight alone. */
  --text: #f2efe9;
  --muted: #f2efe9;
  --dim: #f2efe9;
  --yellow: #bbe509;
  --yellow-ink: #0a0a0b;
  --amber: #e8a849;
  --red: #ff5a4d;
  --display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 16px;
  --max: 1120px;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
h1,
h2,
h3 {
  font-family: var(--display);
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.022em;
}
h1 {
  font-weight: 600;
  font-size: clamp(38px, 5.2vw, 60px);
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--text);
}
h1 span {
  color: var(--yellow);
}
h2 {
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  letter-spacing: -0.03em;
}
h3 {
  font-weight: 600;
  font-size: clamp(19px, 2vw, 24px);
  letter-spacing: -0.015em;
}
p {
  margin: 0;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow);
}
.measure {
  max-width: 62ch;
}
.muted {
  color: var(--muted);
}
code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--surface-2);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}
.big {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.028em;
}
.ph {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.cap {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-top: 10px;
}

/* top strip */
.strip {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 10, 11, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}
.strip .lead {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.wordmark .mark {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: none;
}
/* Keep the header compact on phones. */
@media (max-width: 620px) {
  .strip .live {
    display: none;
  }
}
@media (max-width: 460px) {
  .strip .lead {
    gap: 10px;
  }
  .wordmark {
    font-size: 17px;
  }
}
@media (max-width: 345px) {
  .wordmark {
    font-size: 15px;
    gap: 8px;
  }
  .wordmark .mark {
    width: 24px;
    height: 24px;
  }
}
.strip nav {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 14px;
}
.strip nav a {
  text-decoration: none;
  color: var(--muted);
}
.strip nav a:hover {
  color: var(--text);
}
@media (max-width: 760px) {
  .strip nav a {
    display: none;
  }
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  white-space: nowrap;
}
.live b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(187, 229, 9, 0.6);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(187, 229, 9, 0.6);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(187, 229, 9, 0);
  }
}

.btn {
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition:
    transform 0.2s,
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}
.btn:hover {
  border-color: var(--text);
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--yellow);
  color: var(--yellow-ink);
  border-color: var(--yellow);
}
.btn.primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(187, 229, 9, 0.3);
}
.btn.primary:hover {
  background: #d6ff66;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* minmax(0,1fr), not 1fr: a grid track sized by its content grew to 372px
     inside a 325px console on a phone - one unbreakable URL in the identity
     card was enough - and overflow:hidden then clipped the right edge of
     every bubble and action button. Measured, not guessed. */
.console {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  margin-top: 40px;
}
.chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-height: min(78vh, 760px);
}
.chat .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.chat .bar .st {
  color: var(--yellow);
}
.log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.log:not(:has(*)) {
  padding: 0;
}
.log:has(.msg) {
  min-height: 320px;
}
/* on a phone the console flows in the page. A capped, clipped chat put the
     identity form's last field and its button outside overflow:hidden -
     unreachable, with nothing to scroll. Measured: 907px form, 633px cap. */
@media (max-width: 899px) {
  .chat {
    max-height: none;
  }
  .log {
    overflow: visible;
    flex: none;
  }
  .log:has(.msg) {
    min-height: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .log {
    scroll-behavior: auto;
  }
}
.msg {
  max-width: min(92%, 66ch);
  padding: 12px 16px;
  line-height: 1.5;
  font-size: 16px;
  border-radius: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* preview only: the English under each Czech line, removed with PREVIEW */
.tr {
  display: block;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--line-strong);
  font-size: 13.5px;
  font-style: italic;
}
.msg.bot {
  align-self: flex-start;
  background: var(--surface-2);
  border-left: 3px solid var(--yellow);
}
.msg.me {
  align-self: flex-end;
  background: #232b36;
  border-right: 3px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 14px;
}
.msg pre {
  margin: 10px 0 0;
  padding: 12px;
  background: var(--ground);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre;
}
.msg .q {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--yellow);
  margin-bottom: 6px;
}
.typing {
  align-self: flex-start;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.compose {
  border-top: 1px solid var(--line);
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  background: var(--surface);
}
.compose textarea {
  border-radius: 10px;
  width: 100%;
  resize: none;
  background: var(--ground);
  color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.5;
  min-height: 48px;
  max-height: 220px;
  border-radius: 2px;
}
.compose textarea::placeholder {
  color: var(--dim);
}
.compose .hint {
  grid-column: 1/-1;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
  letter-spacing: 0.06em;
}
.compose .btn {
  font-size: 17px;
  padding: 12px 18px;
}

/* board */
.board {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.recovery {
  padding: 18px;
  border-top: 1px solid var(--line);
}
.recovery summary {
  font-size: 14px;
  cursor: pointer;
  text-underline-offset: 3px;
}
.idform {
  display: grid;
  gap: 14px 16px;
  padding: 20px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  margin: 0;
}
@media (min-width: 680px) {
  .idform {
    grid-template-columns: 1fr 1fr;
  }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  background: var(--ground);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  padding: 11px 13px;
  width: 100%;
}
.field input:focus {
  outline: none;
  border-color: var(--yellow);
}
.field input[aria-invalid="true"] {
  border-color: var(--red);
}
.field .err {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--red);
  min-height: 13px;
  line-height: 1.25;
}
.idactions {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 2px;
}
.disclose {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--dim);
  line-height: 1.5;
  grid-column: 1/-1;
  margin: 0;
}
.idcard {
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 14px 16px;
  margin: 10px 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}
.idcard b {
  color: var(--text);
  font-weight: 600;
}
.recovery .actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.recovery .btn {
  font-size: 16px;
  padding: 11px 16px;
  justify-content: center;
}
.recovery textarea {
  width: 100%;
  margin-top: 12px;
  height: 120px;
  background: var(--ground);
  color: var(--muted);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  padding: 10px;
  resize: vertical;
}

.assessment-header .wrap {
  max-width: 800px;
}
.assessment-header .back-link {
  font-size: 14px;
  white-space: nowrap;
  text-underline-offset: 4px;
}
.assessment-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 20px 56px;
}
.assessment-page h1 {
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.1;
  margin: 0;
}
.assessment-meta {
  font-size: 14px;
  line-height: 1.5;
  margin-top: 10px;
}
.console {
  margin-top: 24px;
}
.chat:has(.idform:not([hidden])) {
  max-height: none;
}
.chat .bar {
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  padding: 14px 18px;
}
.idform {
  border-top: 0;
  gap: 16px;
}
.field label {
  font-family: var(--body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.field input {
  font-size: 16px;
  min-height: 46px;
}
.field .err:empty {
  display: none;
}
.application-privacy {
  grid-column: 1/-1;
  font-size: 13px;
  line-height: 1.5;
  padding-top: 4px;
}
.application-privacy > p {
  margin: 0 0 8px;
}
.application-privacy summary {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.application-privacy details p {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.idactions .btn {
  width: 100%;
  justify-content: center;
  min-height: 50px;
}
.idactions .hint {
  font-family: var(--body);
  font-size: 12px;
}
.role-choice {
  display: grid;
  gap: 20px;
}
.role-choice .btn {
  justify-content: center;
}
@media (max-width: 380px) {
  .assessment-header .wordmark {
    font-size: 15px;
  }
  .assessment-header .back-link {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}

.submission {
  padding: 22px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.submission h2 {
  font-size: 24px;
  line-height: 1.2;
  text-wrap: pretty;
}
.submission p {
  font-size: 15px;
  line-height: 1.5;
  margin-top: 10px;
}
.submission.saved h2 {
  color: var(--yellow);
}
.submission.failed h2 {
  color: var(--red);
}
.submission .btn {
  width: 100%;
  justify-content: center;
  margin-top: 18px;
}

.submission .reference {
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.submission .back-link {
  display: inline-block;
  font-size: 14px;
  margin-top: 24px;
  text-underline-offset: 4px;
}
.submission h2:focus {
  outline: none;
}

.draft-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 20px;
  font-size: 13px;
}
.draft-controls p {
  flex: 1 1 240px;
}
.draft-controls button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 10px 0;
  text-decoration: underline;
  cursor: pointer;
}
.draft-resume,
.load-error {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
}
.draft-resume h2 {
  font-size: 26px;
}
.draft-resume p,
.load-error p {
  margin: 16px 0;
}
.draft-resume .btn {
  margin: 4px 8px 4px 0;
}
