/* Shared styling for the two pre-launch pages: the holding page
   (coming_soon.html) and the interest form (interest_form.html).

   A stylesheet rather than a <style> block in each template, because the two
   pages have to look like one site -- duplicating the tokens in two files is
   how the "coming soon" page and the form it links to end up with different
   greens. /static is allow-listed in the COMING_SOON gate, so this loads. */

:root {
  --plate:  #3b2b46;
  --plate2: #332540;          /* a touch deeper, for page background depth */
  --ink:    #f4f1f6;
  --muted:  #b9aec2;
  --accent: #83c87f;
  --accent-ink: #16301a;      /* text on --accent; 9.6:1 against it */
  --line:   rgba(255, 255, 255, 0.13);
  --field:  rgba(255, 255, 255, 0.07);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--plate2);
  /* Very soft lift behind the content so a wide viewport is not a flat slab.
     Fixed so it does not slide away on the taller form page. */
  background-image:
    radial-gradient(900px 520px at 50% -8%, rgba(131, 200, 127, 0.10), transparent 70%),
    radial-gradient(700px 480px at 50% 108%, rgba(78, 165, 217, 0.08), transparent 70%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;          /* 16px side gutter: no horizontal scroll on a phone */
}

main { width: 100%; }

/* --- type ---------------------------------------------------------------- */

h1 {
  font-size: clamp(1.55rem, 4.4vw, 2.15rem);
  font-weight: 650;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.lede {
  font-size: 1.04rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 46ch;
}
/* The holding page's closing line. Carries real weight now that the CTA note
   below the button is gone -- it is the only thing left saying WHEN. */
.foot {
  font-size: 1.05rem;
  color: rgba(185, 174, 194, 0.92);
  margin: 30px 0 0;
}
a { color: var(--ink); }

.dot {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 10px;
  vertical-align: middle;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 34px;
}

.rule {
  width: 54px; height: 2px;
  background: var(--line);
  border: 0;
  margin: 30px auto;
}

/* --- buttons ------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 15px 30px;
  font-size: 1.02rem;
  font-weight: 650;
  font-family: inherit;
  line-height: 1.2;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  color: var(--accent-ink);
  background: var(--accent);
  transition: filter 0.15s ease, transform 0.15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 3px solid rgba(131, 200, 127, 0.55);
  outline-offset: 3px;
}
.btn-block { width: 100%; }

.btn-quiet {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
}
.btn-quiet:hover { color: var(--ink); text-decoration: underline; }

/* --- cards --------------------------------------------------------------- */

.card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  text-align: left;
}
@media (max-width: 560px) { .card { padding: 24px 18px; } }

.note {
  background: rgba(131, 200, 127, 0.11);
  border: 1px solid rgba(131, 200, 127, 0.32);
  border-radius: var(--radius);
  padding: 30px 28px;
}

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

.row { display: flex; gap: 14px; }
.row > .field { flex: 1; min-width: 0; }
@media (max-width: 560px) { .row { display: block; } }

.field { margin-bottom: 16px; }

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--ink);
  margin-bottom: 7px;
}
label .opt { font-weight: 400; color: var(--muted); }

input[type=text], input[type=email], input[type=tel], input[type=number] {
  width: 100%;
  padding: 12px 13px;
  /* 16px exactly: iOS zooms the whole page when a focused input is smaller. */
  font-size: 16px;
  font-family: inherit;
  color: var(--ink);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 9px;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder { color: rgba(185, 174, 194, 0.55); }
input:hover { border-color: rgba(255, 255, 255, 0.22); }
input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 0 0 3px rgba(131, 200, 127, 0.20);
}
input[aria-invalid="true"] { border-color: #e88080; }

.err { color: #f4aaaa; font-size: 0.82rem; margin-top: 6px; }

.consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 22px 0 24px;
  cursor: pointer;
}
.consent input { margin-top: 3px; flex-shrink: 0; width: 17px; height: 17px; accent-color: var(--accent); }

/* Off-screen rather than display:none -- a naive bot reading the DOM still
   sees a normal field, while aria-hidden + tabindex=-1 keep it away from
   anyone using the page, including with a screen reader. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (prefers-reduced-motion: no-preference) {
  main { animation: rise 0.45s ease-out both; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
  }
}
