/* RustleUp pre-launch holding page: one sign-up form and one app screen.
   Brand system and design history: drafts/holding/ (brief + 2026-09-23-minimal). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("/fonts/poppins-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --forest: #274542;
  --forest-deep: #1d3532;
  --lime: #d7ff91;
  --cream: #f0eedd;
  --paper: #fefcf1;
  --ink: #14181b;
  --ink-muted: #4f5557;

  --font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 16px;
  --radius-control: 14px;
  --control-h: 56px;

  color-scheme: light;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }
@media (min-width: 1280px) { :root { --gutter: 48px; } }

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, p { margin: 0; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.95;
  text-wrap: balance;
}

/* ---- Holding page -------------------------------------------------------
   Allowed contrast pairs only: lime/forest, cream/forest, ink/paper. */
.hold { flex: 1; display: flex; align-items: center; overflow: hidden; padding-block: 20px 0; }
.hold__grid { display: grid; gap: 8px; }

.logo { width: auto; height: 32px; margin-bottom: 28px; }

.hold__title { color: var(--lime); font-size: clamp(2.25rem, 10.2vw, 5rem); }
.hold__title span { display: block; }

.lede { margin-top: 16px; max-width: 34rem; }

.signup { margin-top: 28px; max-width: 34rem; }
.signup__title { color: var(--lime); font-size: 1.625rem; line-height: 1; }
.signup__text { margin-top: 6px; font-size: 0.9375rem; }
.signup .form { margin-top: 16px; }

.hold__art { position: relative; display: grid; justify-items: center; height: 400px; margin-top: 16px; }
.blob { position: absolute; width: 330px; height: 330px; top: 56px; left: 50%; transform: translateX(-50%) rotate(-12deg); fill: var(--lime); pointer-events: none; z-index: 0; }
.phone { position: relative; z-index: 2; width: 214px; margin-top: 18px; align-self: start; filter: drop-shadow(0 24px 36px rgba(0, 0, 0, 0.35)); }
.fruit { position: absolute; z-index: 1; width: 132px; left: calc(50% - 196px); bottom: -24px; transform: rotate(-10deg); filter: drop-shadow(0 18px 24px rgba(20, 24, 27, 0.28)); pointer-events: none; }
.sparkle { position: absolute; width: 34px; height: 34px; top: 6px; left: calc(50% + 104px); pointer-events: none; }

@media (min-width: 900px) {
  .hold { padding-block: 48px; }
  .hold__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 32px; }
  .logo { height: 40px; margin-bottom: 48px; }
  .lede { margin-top: 24px; font-size: 1.125rem; }
  .signup { margin-top: 40px; }
  .signup__title { font-size: 2rem; }
  .signup__text { font-size: 1rem; }
  .hold__art { height: 640px; margin-top: 0; align-items: center; }
  .blob { width: 520px; height: 520px; top: 60px; }
  .phone { width: 300px; margin-top: 0; align-self: center; }
  .fruit { width: 250px; left: calc(50% - 345px); bottom: 24px; transform: rotate(-12deg); }
  .sparkle { width: 56px; height: 56px; top: 24px; left: calc(50% + 140px); }
}

/* Light entrance for the product visual only; the H1 never waits. */
@media (prefers-reduced-motion: no-preference) {
  .phone { animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) both 120ms; }
  .fruit { animation: rise-tilt 800ms cubic-bezier(0.2, 0.7, 0.2, 1) both 260ms; }
  @keyframes rise { from { opacity: 0; transform: translateY(28px); } }
  @keyframes rise-tilt { from { opacity: 0; transform: translateY(28px) rotate(-24deg); } }
}

/* ---- Form ---------------------------------------------------------------
   States: default · focus · invalid · submitting · success · error+retry. */
.form { position: relative; }

/* Visually hidden: the field keeps an accessible name without a visible label. */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.capture { display: grid; gap: 10px; }
@media (min-width: 480px) { .capture { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; } }

.field {
  width: 100%;
  min-height: var(--control-h);
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.4;
  appearance: none;
}
.field::placeholder { color: var(--ink-muted); opacity: 1; }
.field:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.field[aria-invalid="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.field[readonly] { cursor: progress; }

.field__err,
.form__alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.4;
}
.field__err[hidden],
.form__alert[hidden] { display: none; }
.field__err::before,
.form__alert::before {
  content: "!";
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
}
.form__alert { flex-wrap: wrap; padding: 12px 14px; }
.form__alert p { flex: 1 1 12rem; }
.form__retry {
  min-height: 44px;
  margin: -8px -4px -8px auto;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.form__retry:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--control-h);
  padding: 0 26px;
  border: 0;
  border-radius: var(--radius-control);
  background: var(--lime);
  color: var(--forest);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}
.btn:hover { background: var(--cream); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.btn:disabled { background: var(--lime); cursor: progress; }

.btn__spinner { display: none; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; }
.is-submitting .btn__spinner { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .is-submitting .btn__spinner { animation: spin 700ms linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }
}

/* Honeypot: off-screen, never focusable by keyboard. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Success: replaces the form. */
.form-done {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 16px;
  row-gap: 4px;
  align-items: center;
  margin-top: 16px;
  padding: 20px 22px;
  border-radius: 20px;
  background: var(--forest-deep);
  outline: none;
}
.form-done:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }
.form-done__tick { grid-row: span 2; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); }
.form-done__tick svg { width: 26px; height: 26px; fill: var(--forest); }
.form-done__title { color: var(--lime); font-size: 1.75rem; line-height: 1; }
.form-done__text { font-size: 0.9375rem; }

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