/* Pind Warfare waitlist
   Palette pulled from the logo: haldi letters, tumbi wood, mitti at dusk. */
:root {
  --mitti: #1c130d;      /* page */
  --mitti-2: #261a11;    /* raised: inputs, panel */
  --mitti-3: #3b2819;    /* borders on raised */
  --haldi: #f4c06e;      /* logo letters: primary action */
  --haldi-hi: #ffd895;   /* hover + focus */
  --tumbi: #9a4a1c;      /* tumbi wood: step numbers, rule */
  --khes: #f3e6cf;       /* main text */
  --dhool: #bba68a;      /* secondary text */
  --err: #ffb39b;
  --line: rgba(243, 230, 207, 0.12);

  --gutter: clamp(20px, 5.5vw, 88px);
  --radius: 10px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--mitti); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--mitti);
  color: var(--khes);
  font-family: "Archivo", "Segoe UI", system-ui, sans-serif;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain, same print texture as the logo. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

[hidden] { display: none !important; }

img { display: block; max-width: 100%; height: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- layout ---------- */

.page { position: relative; }

.shot {
  position: relative;
  margin: 0;
  height: 44svh;
  min-height: 300px;
  max-height: 620px;
  overflow: hidden;
  background: var(--mitti);
}

.shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%; /* phone crop: keep faces and rifles above the logo */
}

@media (max-width: 959px) and (max-height: 700px) {
  /* short in-app browsers (TikTok, Instagram): keep the Join button on the first screen */
  .shot { height: 38svh; min-height: 240px; }
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(28, 19, 13, 0.35) 0%, rgba(28, 19, 13, 0) 22%),
    linear-gradient(0deg, var(--mitti) 0%, rgba(28, 19, 13, 0.85) 18%, rgba(28, 19, 13, 0) 48%);
}

.content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 40px;
  max-width: 640px;
  margin: 0 auto;
}

.brand {
  margin: calc(-1 * clamp(92px, 27vw, 170px)) 0 0;
  line-height: 0;
}

.logo {
  width: min(88%, 440px);
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.55));
}

@media (min-width: 960px) {
  .page {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
  }
  .shot {
    order: 2;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    max-height: none;
  }
  .shot img { object-position: 57% 50%; }
  .shot::after {
    background:
      linear-gradient(90deg, var(--mitti) 0%, rgba(28, 19, 13, 0.45) 8%, rgba(28, 19, 13, 0) 24%),
      linear-gradient(0deg, rgba(28, 19, 13, 0.7) 0%, rgba(28, 19, 13, 0) 30%);
  }
  .content {
    order: 1;
    margin: 0;
    max-width: none;
    padding: clamp(48px, 9vh, 104px) clamp(40px, 5vw, 88px) 48px;
  }
  .content > * { max-width: 560px; }
  .brand { margin: 0; }
  .logo { width: min(100%, 500px); }
  .join { margin-top: 28px; }
  .form { margin-top: 26px; }
}

/* ---------- join ---------- */

.join { margin-top: 18px; }

.headline {
  margin: 0 0 14px;
  font-size: clamp(2.4rem, 5.2vw + 1rem, 4.5rem);
  font-stretch: 62%;
  font-weight: 850;
  line-height: 0.92;
  letter-spacing: -0.005em;
  word-spacing: 0.08em;
  color: var(--khes);
}

.lede, .pitch { margin: 0 0 10px; max-width: 34em; }
.lede { color: var(--khes); font-size: 1.125rem; }
.pitch { color: var(--dhool); }

.form { margin-top: 20px; }

@media (max-width: 959px) {
  .lede { font-size: 1.0625rem; }
  .lede, .pitch { line-height: 1.45; }
}

.field-row, .link-row {
  display: flex;
  gap: 10px;
}

input[type="email"], .link-row input {
  flex: 1 1 auto;
  min-width: 0;
  height: 56px;
  padding: 0 18px;
  border: 1.5px solid var(--mitti-3);
  border-radius: var(--radius);
  background: var(--mitti-2);
  color: var(--khes);
  font: inherit;
  font-size: 1.0625rem;
  transition: border-color 0.15s ease;
}
input[type="email"]::placeholder { color: rgba(187, 166, 138, 0.7); }
input[type="email"]:hover { border-color: #57402a; }
input[aria-invalid="true"] { border-color: var(--err); }

.btn {
  height: 56px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 800;
  font-stretch: 88%;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { cursor: progress; opacity: 0.75; }

.btn-primary { background: var(--haldi); color: #24150a; }
.btn-primary:hover { background: var(--haldi-hi); }

.btn-ghost {
  background: transparent;
  color: var(--khes);
  border: 1.5px solid var(--mitti-3);
}
.btn-ghost:hover { border-color: var(--haldi); }

:focus-visible {
  outline: 3px solid var(--haldi-hi);
  outline-offset: 3px;
}
input:focus-visible { outline-offset: 1px; }

.fine {
  margin: 12px 0 0;
  color: var(--dhool);
  font-size: 0.875rem;
  line-height: 1.45;
}

.form-error {
  margin: 14px 0 0;
  color: var(--err);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 520px) {
  .field-row { flex-direction: column; }
  .field-row .btn { width: 100%; }
}

/* ---------- joined ---------- */

.joined {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--mitti-2);
}
.joined:focus { outline: none; }

.joined-title {
  margin: 0 0 10px;
  font-size: 1.375rem;
  font-weight: 800;
}

.joined-copy { margin: 0 0 16px; color: var(--khes); }

.link-row input {
  font-size: 0.9375rem;
  color: var(--haldi);
  background: var(--mitti);
}

#share-btn { width: 100%; margin-top: 10px; }

.friends { margin: 16px 0 6px; color: var(--dhool); font-size: 0.9375rem; }

.text-btn {
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--dhool);
  font: inherit;
  font-size: 0.9375rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.text-btn:hover { color: var(--khes); }

@media (max-width: 420px) {
  .link-row { flex-direction: column; }
}

/* ---------- steps ---------- */

.steps {
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.steps-title {
  margin: 0 0 18px;
  font-size: 1.5rem;
  font-stretch: 75%;
  font-weight: 800;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
.step-list li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  column-gap: 14px;
  padding: 14px 0;
}
.step-list li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 2.5rem;
  font-stretch: 62%;
  font-weight: 850;
  line-height: 1;
  color: var(--tumbi);
}
.step-list h3 { margin: 2px 0 4px; font-size: 1.125rem; font-weight: 750; }
.step-list p { margin: 0; color: var(--dhool); }

/* ---------- footer ---------- */

.foot {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--dhool);
  font-size: 0.9375rem;
}
.socials { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 14px; }
.socials a { color: var(--khes); text-underline-offset: 3px; }
.socials a:hover { color: var(--haldi); }

.privacy summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.privacy p { margin: 8px 0 0; max-width: 40em; }
.legal { margin: 14px 0 0; }

.noscript { padding: 16px var(--gutter); color: var(--err); }

/* ---------- the one entrance: logo lands on the shot ---------- */

@media (prefers-reduced-motion: no-preference) {
  .shot img { animation: settle 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .logo { animation: slam 0.55s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.18s both; }
  .joined:not([hidden]) { animation: rise 0.35s ease-out both; }
}

@keyframes settle {
  from { transform: scale(1.08); filter: brightness(0.55); }
  to   { transform: none; filter: none; }
}
@keyframes slam {
  0%   { opacity: 0; transform: scale(1.22) rotate(-2deg); }
  60%  { opacity: 1; transform: scale(0.97) rotate(0.4deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
