/* Vraxil OÜ — coming soon
   -------------------------------------------------------------
   Amber (--amber) appears in exactly four places and nowhere else:
   the centre bar of the logo, the submit button, and the hover
   state of the two footer links. Scarcity is what makes it read
   as a signal. */

:root {
  --ink:        #2C2C2A;
  --ink-deep:   #1E1E1C;
  --paper:      #FFFFFF;
  --amber:      #EF9F27;
  --grey-mid:   #888780;
  --grey-dark:  #5F5E5A;
  --grey-light: #B4B2A9;

  --font-display: 'Bebas Neue', Impact, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--grey-light);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- layout */

.shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 640px;
  margin-inline: auto;
  padding: 64px 24px;
  text-align: center;
}

/* ------------------------------------------------------------------ logo */

.logo {
  display: block;
  width: min(340px, 70vw);
  height: auto;
}

/* ------------------------------------------------------------- headline */

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: 0.08em;
  color: var(--paper);
  /* letter-spacing adds a trailing gap after the last glyph, which shifts
     centred text left by half of it. Claw it back. */
  margin-right: -0.08em;
}

.lede {
  margin: 0;
  max-width: 52ch;
  color: var(--grey-light);
}

/* ------------------------------------------------------------------ form */

.signup { width: 100%; }

.form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.form label {
  flex: 1 0 100%;
  font-size: 15px;
  line-height: 1.5;
  color: var(--grey-light);
}

.form input,
.form button {
  font: inherit;
  font-size: 16px;      /* 16px stops iOS Safari zooming on focus */
  line-height: 1.4;
  padding: 14px 16px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.form input {
  flex: 1 1 260px;
  min-width: 0;
  background: transparent;
  border-color: var(--grey-dark);
  color: var(--paper);
}

.form input::placeholder { color: var(--grey-light); opacity: 1; }

.form input:focus {
  outline: none;
  border-color: var(--amber);
}

/* Keyboard users still get an unmistakable focus ring; pointer users
   who click into the field just get the amber border. */
.form input:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

.form input:user-invalid { border-color: #E4685B; }

.form button {
  flex: 0 0 auto;
  background: var(--amber);
  color: var(--ink);     /* never white — 1.6:1, contrast fails */
  border-color: var(--amber);
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.form button:hover { background: #F2AC44; border-color: #F2AC44; }

.form button:focus-visible {
  outline: 2px solid var(--paper);
  outline-offset: 2px;
}

.form button:disabled { opacity: 0.6; cursor: default; }

.confirmation,
.form-error {
  margin: 0;
  font-size: 16px;
  color: var(--grey-light);
}

.form-error { color: #E4685B; margin-top: 12px; }

/* ---------------------------------------------------------------- footer */

footer {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--grey-light);
}

footer p { margin: 0; }

footer a {
  color: var(--grey-light);
  text-decoration: none;
  border-bottom: 1px solid var(--grey-dark);
  padding-bottom: 1px;
  transition: color 120ms ease, border-color 120ms ease;
}

footer a:hover,
footer a:focus-visible {
  color: var(--amber);
  border-bottom-color: var(--amber);
}

footer a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 2px;
}

footer span { color: var(--grey-dark); padding-inline: 4px; }

/* --------------------------------------------------------------- utility */

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ------------------------------------------------------------- the pulse */

/* The whole animation budget: the amber centre bar breathes. Opacity only —
   fill and filter don't composite on the GPU and jank on cheap Android. */
@media (prefers-reduced-motion: no-preference) {
  .logo-signal {
    animation: signal 3s ease-in-out infinite;
    will-change: opacity;
  }
}

@keyframes signal {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* ----------------------------------------------------------- breakpoints */

@media (max-width: 560px) {
  .form { flex-direction: column; align-items: stretch; }
  .form input, .form button { flex: 0 0 auto; width: 100%; }
}

@media (max-width: 380px) {
  .shell { gap: 32px; padding: 48px 20px; }
  body { font-size: 16px; }
}
