/* Growth City Digital — onboarding form
   Mobile-first. Big targets. Nothing clever. */

:root {
  --black: #0d0d0d;
  --surface: #141414;
  --input: #1a1a1a;
  --line: #2b2b2b;
  --lime: #b4e01f;
  --lime-dim: #8fb318;
  --white: #ffffff;
  --muted: #a3a3a3;
  --danger: #ff6b5e;

  --radius: 8px;
  --gap: 1.25rem;
  --max: 620px;

  --font-head: 'Anton', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: env(safe-area-inset-bottom);
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  margin: 0;
}

a {
  color: var(--lime);
}

.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--lime);
  color: var(--black);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
}

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

.site-header {
  padding: 1.25rem 1.25rem 0.75rem;
}

.brand {
  max-width: var(--max);
  margin: 0 auto;
}

/* The logo is a stacked lockup (mark over wordmark), so it needs real height
   to stay legible — a wide-logo header height would shrink it to nothing. */
.brand__logo {
  display: block;
  height: 76px;
  width: auto;
}

.brand__tagline {
  margin: 0.15rem 0 0;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- progress ---------- */

.progress {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--black);
  padding: 0.75rem 1.25rem 0.85rem;
  border-bottom: 1px solid var(--line);
}

.progress__track {
  max-width: var(--max);
  margin: 0 auto;
  height: 6px;
  background: #262626;
  border-radius: 99px;
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0%;
  background: var(--lime);
  border-radius: 99px;
  transition: width 260ms ease;
}

.progress__label {
  max-width: var(--max);
  margin: 0.45rem auto 0;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- layout ---------- */

.shell {
  flex: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.75rem 1.25rem 2.5rem;
}

.loading {
  color: var(--muted);
  padding: 2rem 0;
}

.step__title {
  font-size: clamp(1.75rem, 7vw, 2.35rem);
  color: var(--white);
}

.step__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--lime);
  margin: 0 0 0.4rem;
  font-weight: 600;
}

.step__blurb {
  color: var(--muted);
  margin: 0.6rem 0 0;
  font-size: 0.95rem;
}

.fields {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

/* ---------- fields ---------- */

.field__label {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.field__optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  margin-left: 0.4rem;
  text-transform: none;
}

.field__help {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 0.55rem;
}

input[type='text'],
input[type='email'],
input[type='tel'],
input[type='url'],
input[type='number'],
input[type='date'],
textarea,
select {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem; /* never below 16px — iOS zooms otherwise */
  padding: 0.95rem 1rem;
  min-height: 52px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
  appearance: none;
}

textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
  color: #6b6b6b;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--lime);
  box-shadow: 0 0 0 3px rgba(180, 224, 31, 0.18);
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--lime) 50%),
    linear-gradient(135deg, var(--lime) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.75rem;
}

select option {
  background: var(--input);
  color: var(--white);
}

input[type='date'] {
  min-height: 52px;
}
input[type='date']::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.6;
}

/* currency */

.currency {
  position: relative;
}
.currency__symbol {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-weight: 600;
  pointer-events: none;
}
.currency input {
  padding-left: 2.25rem;
}

/* radios & checkbox — rendered as tappable cards */

.choices {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 56px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease;
}

.choice:hover {
  border-color: #3d3d3d;
}

.choice input {
  appearance: none;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  margin: 0;
  border: 2px solid #4a4a4a;
  background: transparent;
  transition: border-color 140ms ease, background 140ms ease;
}

.choice input[type='radio'] {
  border-radius: 50%;
}
.choice input[type='checkbox'] {
  border-radius: 4px;
}

.choice input:checked {
  border-color: var(--lime);
  background: var(--lime);
  box-shadow: inset 0 0 0 4px var(--input);
}
.choice input[type='checkbox']:checked {
  box-shadow: none;
  background-image: linear-gradient(45deg, transparent 45%, var(--black) 45%);
}

.choice:has(input:checked) {
  border-color: var(--lime);
  background: rgba(180, 224, 31, 0.07);
}

.choice input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.choice__text {
  font-size: 1rem;
}

.choice--consent {
  align-items: flex-start;
}
.choice--consent .choice__text {
  font-size: 0.92rem;
  line-height: 1.5;
}

/* date range */

.daterange {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.daterange__leg span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

/* files */

.file {
  border: 1px dashed #3a3a3a;
  border-radius: var(--radius);
  background: var(--input);
  padding: 1.15rem 1rem;
  text-align: center;
}
.file:focus-within {
  border-color: var(--lime);
}
.file input[type='file'] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.file__cta {
  display: inline-block;
  border: 1px solid var(--lime);
  color: var(--lime);
  border-radius: var(--radius);
  padding: 0.65rem 1.15rem;
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  line-height: 1.7;
}
.file__hint {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.file__list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}
.file__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #202020;
  border-radius: 6px;
  padding: 0.5rem 0.65rem;
  font-size: 0.85rem;
}
.file__name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.file__size {
  color: var(--muted);
  font-size: 0.78rem;
}
.file__remove {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
}

.stack-gap {
  margin-top: 0.75rem;
}

/* validation */

.field--error input,
.field--error textarea,
.field--error select,
.field--error .file {
  border-color: var(--danger);
}

.field__error {
  display: block;
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-weight: 500;
}

.form-error {
  margin-top: 1.5rem;
  background: rgba(255, 107, 94, 0.1);
  border: 1px solid var(--danger);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  color: var(--danger);
  font-size: 0.9rem;
}

/* ---------- nav ---------- */

.nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.btn {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  min-height: 54px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 100ms ease, background 140ms ease, opacity 140ms ease;
}

.btn:active {
  transform: translateY(1px);
}

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

.btn--primary {
  background: var(--lime);
  color: var(--black);
  flex: 1;
}
.btn--primary:hover {
  background: #c2ef2a;
}
.btn--primary[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn--secondary {
  background: transparent;
  border-color: var(--lime);
  color: var(--lime);
  flex: 0 0 auto;
  min-width: 96px;
}
.btn--secondary:hover {
  background: rgba(180, 224, 31, 0.1);
}

.saved-note {
  margin: 1.25rem 0 0;
  font-size: 0.78rem;
  color: #6f6f6f;
  text-align: center;
}

/* ---------- review ---------- */

.review__group {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 0.25rem;
}

.review__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.review__title {
  font-size: 1.05rem;
  color: var(--lime);
}

.review__edit {
  background: none;
  border: none;
  color: var(--lime);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.35rem;
}

.review__list {
  margin: 0.75rem 0 0;
}

.review__row {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid #1e1e1e;
}
.review__row:last-child {
  border-bottom: none;
}

.review__label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.review__value {
  margin: 0;
  font-size: 0.98rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.review__value--empty {
  color: #5f5f5f;
  font-style: italic;
}

/* ---------- done ---------- */

.done {
  text-align: center;
  padding: 3rem 0 2rem;
}
.done__tick {
  width: 68px;
  height: 68px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--black);
  display: grid;
  place-items: center;
  font-size: 2.1rem;
  font-weight: 700;
}
.done h1 {
  font-size: clamp(1.9rem, 8vw, 2.6rem);
}
.done p {
  color: var(--muted);
  margin: 1rem auto 0;
  max-width: 42ch;
}
.done__next {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: left;
  background: var(--surface);
}
.done__next h2 {
  font-size: 1rem;
  color: var(--lime);
  margin-bottom: 0.75rem;
}
.done__next ol {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.done__next li + li {
  margin-top: 0.5rem;
}

/* ---------- footer & misc ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 1.25rem 2rem;
  text-align: center;
  color: #5f5f5f;
  font-size: 0.78rem;
}
.site-footer p {
  margin: 0;
  max-width: var(--max);
  margin-inline: auto;
}
.site-footer__fine {
  margin-top: 0.4rem !important;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.noscript {
  max-width: var(--max);
  margin: 2rem auto;
  padding: 1.25rem;
  border: 1px solid var(--lime);
  border-radius: var(--radius);
}

@media (min-width: 700px) {
  .shell {
    padding-top: 2.5rem;
  }
  .brand__logo {
    height: 92px;
  }
}

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