/*
 * SquareDrop landing page.
 *
 * Colours and type are the campaign's own tokens (SquareDropMedia/src/brand/tokens.ts
 * and fonts.ts), so the page someone lands on looks like the video they came from.
 *
 * ⚠️ `--rust` is deliberately absent. In the campaign that colour is reserved for money
 * a competitor takes, and reusing it here for a border or an error state would quietly
 * break a system that depends on one colour meaning exactly one thing.
 */

:root {
  --base: #0a1f44;
  --depth: #061530;
  --amber: #f5a623;
  --mint: #3ddc97;
  --text: #f7f5f0;
  --muted: rgba(247, 245, 240, 0.62);
  --line: rgba(247, 245, 240, 0.14);

  --headline: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Figures use a monospace so numbers read as a ledger rather than as marketing. */
  --figure: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 68rem;
}

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

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

body {
  margin: 0;
  background: var(--depth);
  color: var(--text);
  font-family: var(--headline);
  font-weight: 500;
  line-height: 1.6;
  font-size: 1.0625rem;
}

a {
  color: var(--amber);
  text-decoration: none;
}
a:hover,
a:focus-visible {
  text-decoration: underline;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ---------- header ---------- */

.masthead {
  padding-block: 1.75rem;
}

.wordmark {
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--text);
}

.wordmark span {
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* ---------- hero ---------- */

.hero {
  background: var(--base);
  border-block: 1px solid var(--line);
  padding-block: clamp(3rem, 9vw, 5.5rem);
}

.eyebrow {
  font-family: var(--figure);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 1.25rem;
}

h1 {
  font-size: clamp(2.125rem, 6.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.lede {
  font-size: clamp(1.0625rem, 2.4vw, 1.3125rem);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 2.25rem;
}

.lede strong {
  color: var(--text);
  font-weight: 700;
}

/* ---------- signup ---------- */

.signup {
  max-width: 30rem;
}

.field {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1 1 15rem;
  min-width: 0;
  padding: 0.85rem 1rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(247, 245, 240, 0.06);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
}

input[type="email"]::placeholder {
  color: rgba(247, 245, 240, 0.4);
}

button {
  padding: 0.85rem 1.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  color: var(--depth);
  background: var(--amber);
  border: 0;
  border-radius: 0.5rem;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.08);
}

button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Honeypot. Off-screen rather than display:none — some bots skip hidden fields. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fineprint {
  font-size: 0.8125rem;
  color: var(--muted);
  margin: 0.85rem 0 0;
}

.formnote {
  margin: 0.85rem 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  min-height: 1.4em;
}
.formnote.ok {
  color: var(--mint);
}
.formnote.err {
  color: var(--amber);
}

/* ---------- sections ---------- */

section {
  padding-block: clamp(3rem, 8vw, 4.75rem);
}

h2 {
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  margin: 0 0 2.25rem;
  max-width: 22ch;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.card {
  background: var(--base);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.5rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.figure {
  font-family: var(--figure);
  font-weight: 700;
  font-size: 1.875rem;
  color: var(--mint);
  display: block;
  margin-bottom: 0.6rem;
  letter-spacing: -0.02em;
}

/* ---------- split CTA ---------- */

.split {
  background: var(--base);
  border-block: 1px solid var(--line);
}

.split .cards {
  gap: 1.25rem;
}

.split .card {
  background: transparent;
}

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

footer {
  padding-block: 2.5rem 3.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--muted);
}

.footlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
  padding: 0;
  list-style: none;
}

.legalese {
  margin: 0;
  max-width: 60ch;
}

/* ---------- legal documents ---------- */

.doc {
  padding-block: 2.5rem 4rem;
  max-width: 46rem;
}

.doc h1 {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  max-width: none;
}

.doc h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  max-width: none;
}

.doc p,
.doc li {
  color: rgba(247, 245, 240, 0.86);
}

.doc ul {
  padding-left: 1.25rem;
}

.doc li {
  margin-bottom: 0.5rem;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9375rem;
  display: block;
  overflow-x: auto;
}

.doc th,
.doc td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.doc th {
  font-weight: 800;
  white-space: nowrap;
}

.meta {
  font-family: var(--figure);
  font-size: 0.8125rem;
  color: var(--muted);
  border-left: 2px solid var(--amber);
  padding-left: 1rem;
  margin-bottom: 2rem;
}

.meta strong {
  color: var(--text);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
