/* QuotaPledge site styles. No external fonts or CDNs (keeps it fast and GDPR-friendly). */
:root {
  --ink: #efe6d6;
  --ink-dim: #b9b2a6;
  --ink-mute: #8a857c;
  --accent: #fc8200;          /* the orange from the logo */
  --accent-hover: #ff9a2e;
  --panel: rgba(10, 15, 22, 0.78);
  --panel-solid: #121418;
  --line: rgba(239, 230, 214, 0.14);
  --field: rgba(6, 7, 9, 0.85);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, Menlo, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #0a0b0d;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; }

/* ---------- Backgrounds ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.bg--hands {
  background: #8fb8cc url("assets/bg-hands.jpg") 50% 45% / cover no-repeat;
  background-image: image-set(url("assets/bg-hands.webp") type("image/webp"), url("assets/bg-hands.jpg") type("image/jpeg"));
}
.bg--hands.aligned { position: absolute; bottom: auto; }
.bg--hands.aligned::before {   /* extends the sky above the photo and fades its top edge in */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: calc(var(--gap, 0px) + 180px);
  background: linear-gradient(to bottom, #6f9aad calc(100% - 180px), rgba(111, 154, 173, 0));
}
.bg--hands::after {     /* soft tint behind the logo, tagline and footer for readability */
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 34% 22% at 50% 12%, rgba(8, 14, 24, 0.5), rgba(8, 14, 24, 0) 100%),
    linear-gradient(to bottom, rgba(8, 14, 24, 0.32), rgba(8, 14, 24, 0.08) 40%, rgba(8, 14, 24, 0.08) 75%, rgba(8, 14, 24, 0.5));
}

/* ---------- Layout ---------- */
.page {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 34px 20px 30px;
  gap: 18px;
}

.brand {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; margin-bottom: 4px;
}
.brand img { width: 34px; height: 34px; }
.brand img.logo { width: 60px; height: 60px; border-radius: 10px; box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35); }
.brand span {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(26px, 4.4vw, 38px); letter-spacing: 0.14em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5), 0 2px 24px rgba(0, 0, 0, 0.6);
}

.tagline {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(22px, 3.4vw, 32px); line-height: 1.25;
  text-align: center; margin: 0 0 6px; max-width: 680px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6), 0 2px 26px rgba(0, 0, 0, 0.7);
}
.tagline em { font-style: italic; color: #ffd9c9; }

.card {
  width: 100%; max-width: 680px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
          backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 30px 40px 32px;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .card { background: rgba(14, 16, 20, 0.92); }
}

.label {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-mute); margin: 0 0 18px;
}

.mission {
  font-family: var(--serif); font-size: 22px; line-height: 1.4; margin: 0 0 16px;
}
.what { color: var(--ink-dim); font-size: 15.5px; margin: 0 0 22px; }

/* ---------- Mission card with the coin window ---------- */
.mission-card { position: relative; isolation: isolate; background: none; border: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none; }
.mission-card::before {        /* the visible card surface; gets a round hole punched out by JS */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 3px;
  background: var(--panel); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(120%); backdrop-filter: blur(14px) saturate(120%);
}
.mission-card.has-hole::before {
  -webkit-mask: radial-gradient(circle at var(--hx) var(--hy), transparent calc(var(--hr) - 0.5px), #000 calc(var(--hr) + 0.5px));
          mask: radial-gradient(circle at var(--hx) var(--hy), transparent calc(var(--hr) - 0.5px), #000 calc(var(--hr) + 0.5px));
}
.trio {
  display: grid; grid-template-columns: 1fr 200px 1fr; gap: 20px; align-items: center;
  padding-top: 18px; border-top: 1px solid var(--line);
}
.pillar { display: grid; gap: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-dim); }
.pillar:first-child { text-align: right; }
.pillar b { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: 0.16em; color: var(--accent); }

.coin-window { position: relative; width: 200px; height: 200px; justify-self: center; }
.coin-window::before {         /* thin ring around the hole */
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid rgba(239, 230, 214, 0.32);
  box-shadow: 0 0 0 7px rgba(239, 230, 214, 0.05), inset 0 0 28px rgba(255, 255, 255, 0.10);
}
.coin-ascii { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- Form ---------- */
.signup { display: grid; gap: 10px; }
.signup .row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.signup input[type="email"] {
  width: 100%; font: inherit; font-size: 18px; color: var(--ink);
  background: var(--field); border: 1px solid rgba(239, 230, 214, 0.22);
  padding: 16px 20px; border-radius: 2px; outline: none;
}
.signup input[type="email"]::placeholder { color: #7b776f; }
.signup input[type="email"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(252, 130, 0, 0.25); }
.signup button {
  font: inherit; font-size: 18px; font-weight: 700; color: #fff; white-space: nowrap;
  background: var(--accent); border: 0; border-radius: 2px;
  padding: 16px 28px; cursor: pointer; transition: background 0.15s ease, transform 0.05s ease;
}
.signup button:hover { background: var(--accent-hover); }
.signup button:active { transform: translateY(1px); }
.signup button[disabled] { opacity: 0.7; cursor: progress; }
.signup .arrow { display: inline-block; margin-left: 10px; font-size: 15px; transition: transform 0.15s ease; }
.signup button:hover .arrow { transform: translateX(3px); }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.fineprint { margin: 6px 0 0; font-size: 13px; color: var(--ink-mute); }
.fineprint a { color: var(--ink-dim); }
.status:empty { display: none; }
.status { margin: 2px 0 0; font-size: 15px; }
.status.ok { color: #9fe0b5; }
.status.err { color: #ffab95; }

/* ---------- Footer ---------- */
.foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px;
  margin-top: 18px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.08em;
  color: var(--ink-dim); text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; }
.legal h1 { font-family: var(--serif); font-weight: 400; font-size: 34px; margin: 0 0 6px; }
.legal h2 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin: 30px 0 10px; font-weight: 500; }
.legal p, .legal li { color: var(--ink-dim); font-size: 15.5px; }
.legal .ph { color: #ffcfbf; background: rgba(239, 74, 35, 0.14); padding: 0 4px; border-radius: 2px; }
.back { font-family: var(--mono); font-size: 13px; letter-spacing: 0.1em; text-decoration: none; color: var(--ink-dim); }
.back:hover { color: var(--ink); }

/* ---------- Small screens ---------- */
@media (max-width: 560px) {
  .page { padding: 40px 14px 80px; justify-content: flex-start; }
  .card { padding: 26px 22px 28px; }
  .mission { font-size: 20px; }
  .trio { grid-template-columns: 1fr; gap: 16px; }
  .pillar, .pillar:first-child { text-align: center; }
  .coin-window { width: 180px; height: 180px; }
  .signup .row { grid-template-columns: 1fr; }
}
