/* ==========================================================================
   The Market Directory — waitlist landing page
   A deliberately single-look (light) design; the admin dashboard is the
   theme-aware surface.
   ========================================================================== */

:root {
  --green-900: #0B2E22;
  --green-800: #0F3D2E;
  --green-700: #14513C;
  --green-600: #1B7F5A;
  --green-500: #23996D;
  --green-200: #8FD3B0;
  --green-50:  #E6F4EC;

  --amber-500: #E8A33D;
  --amber-100: #FBEBD2;

  --cream:     #F7F5F0;
  --paper:     #FFFFFF;
  --ink:       #1C1A17;
  --ink-2:     #4A463F;
  --ink-3:     #8A857C;
  --line:      #E5E1D8;

  --danger:    #B4342B;

  --radius:    14px;
  --radius-sm: 10px;

  --shadow-card: 0 1px 2px rgba(28,26,23,.05), 0 12px 32px -12px rgba(15,61,46,.16);
  --shadow-btn:  0 1px 2px rgba(15,61,46,.22), 0 8px 18px -8px rgba(15,61,46,.5);

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
}

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

/* An author `display` rule beats the UA stylesheet's [hidden] { display: none },
   so panels toggled via the hidden property need this to actually hide. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }

a { color: var(--green-600); }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--green-800);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Layout
   ========================================================================== */

.shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: 100vh;
  min-height: 100dvh;
}

.pane--form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px 48px;
}

.pane__inner {
  width: 100%;
  max-width: 520px;
}

/* ==========================================================================
   Brand + headline
   ========================================================================== */

/* Block-level (width-limited) so the eyebrow below starts on its own line. */
.brand {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--green-800);
  margin-bottom: 34px;
}

.brand__mark { width: 30px; height: 30px; display: block; color: var(--green-600); }
.brand__mark svg { width: 100%; height: 100%; display: block; }

.brand__text {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand__text em { font-style: italic; color: var(--green-600); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-50);
  color: var(--green-700);
  border: 1px solid #CFE8DB;
  padding: 6px 13px 6px 10px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 22px;
}

.eyebrow__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px rgba(35,153,109,.2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(35,153,109,.20); }
  50%      { box-shadow: 0 0 0 6px rgba(35,153,109,.06); }
}

.headline {
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 52px);
  font-weight: 600;
  letter-spacing: -0.022em;
  color: var(--green-900);
  margin-bottom: 18px;
}

.subhead {
  font-size: 16.5px;
  color: var(--ink-2);
  line-height: 1.62;
  max-width: 46ch;
  margin-bottom: 30px;
}

/* ==========================================================================
   Card + form
   ========================================================================== */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-card);
}

.form { display: grid; gap: 17px; }

.field { display: grid; gap: 6px; }

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.field input {
  width: 100%;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: #FCFBF9;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.field input::placeholder { color: #B5B0A6; }

.field input:hover { border-color: #D2CDC1; }

.field input:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--green-600);
  box-shadow: 0 0 0 4px rgba(27,127,90,.13);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
  background: #FDF6F5;
}
.field input[aria-invalid="true"]:focus {
  box-shadow: 0 0 0 4px rgba(180,52,43,.12);
}

.field__error,
.form__error {
  font-size: 13px;
  color: var(--danger);
  font-weight: 500;
}

.form__error {
  background: #FDF6F5;
  border: 1px solid #F1D5D2;
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  line-height: 1.5;
}

/* Honeypot — hidden without display:none, which some bots detect. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --- Newsletter opt-in ---------------------------------------------------- */

.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  cursor: pointer;
  background: #FBFAF7;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px;
  transition: border-color .16s ease, background .16s ease;
  -webkit-tap-highlight-color: transparent;
}

.check:hover { border-color: #CFE8DB; background: #FAFDFB; }

.check:has(input:checked) {
  border-color: var(--green-600);
  background: var(--green-50);
}

.check input {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}

.check__box {
  width: 21px; height: 21px;
  border: 1.5px solid #CBC6BA;
  border-radius: 6px;
  background: var(--paper);
  display: grid;
  place-items: center;
  color: transparent;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
  margin-top: 1px;
}

.check__box svg { width: 14px; height: 14px; }

.check input:checked + .check__box {
  background: var(--green-600);
  border-color: var(--green-600);
  color: #fff;
}

.check input:focus-visible + .check__box {
  outline: none;
  box-shadow: 0 0 0 4px rgba(27,127,90,.22);
}

.check__text {
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.5;
}
.check__text strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

/* --- Button --------------------------------------------------------------- */

.btn {
  position: relative;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: var(--green-600);
  border: none;
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: background .16s ease, transform .12s ease, box-shadow .16s ease;
}

.btn:hover:not(:disabled) { background: var(--green-700); }
.btn:active:not(:disabled) { transform: translateY(1px); }

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(27,127,90,.3);
}

.btn:disabled { cursor: progress; opacity: .82; }

.btn__spinner {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  width: 18px; height: 18px;
  margin: -9px 0 0 -9px;
  border: 2.2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.btn.is-loading .btn__label { visibility: hidden; }
.btn.is-loading .btn__spinner { display: block; }

.fineprint {
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
}

.status {
  font-size: 13px;
  color: var(--ink-3);
  margin-top: 14px;
  text-align: center;
  min-height: 1em;
}

/* --- Success state -------------------------------------------------------- */

.success {
  text-align: center;
  padding: 18px 6px 10px;
  animation: rise .4s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.success__icon {
  width: 54px; height: 54px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green-50);
  color: var(--green-600);
  display: grid;
  place-items: center;
}
.success__icon svg { width: 27px; height: 27px; }

.success__title {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 600;
  color: var(--green-900);
  margin-bottom: 9px;
  letter-spacing: -0.015em;
}

.success__body {
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 34ch;
  margin: 0 auto 22px;
  line-height: 1.6;
}

.success__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-600);
  text-decoration: none;
  padding: 9px 4px;
}
.success__link svg { width: 15px; height: 15px; transition: transform .18s ease; }
.success__link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   Right-hand art panel
   ========================================================================== */

.pane--art {
  position: relative;
  background:
    linear-gradient(155deg, var(--green-800) 0%, var(--green-900) 62%, #071F16 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.pane--art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1498837167922-ddd27525d352?ixlib=rb-1.2.1&q=80&fm=jpg&crop=entropy&cs=srgb&w=1400');
  background-size: cover;
  background-position: center;
  opacity: .17;
  filter: saturate(.8);
}

.art__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 15% 0%, rgba(143,211,176,.16) 0%, transparent 58%),
    radial-gradient(90% 60% at 100% 100%, rgba(232,163,61,.14) 0%, transparent 55%);
}

.art__content {
  position: relative;
  padding: 64px 56px;
  max-width: 480px;
  margin: 0 auto;
  color: #fff;
}

.art__kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-200);
  margin-bottom: 26px;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 40px;
  display: grid;
  gap: 26px;
}

.benefits li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}

.benefits__num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 600;
  color: var(--amber-500);
  padding-top: 3px;
  letter-spacing: .04em;
}

.benefits h3 {
  font-size: 16.5px;
  font-weight: 600;
  margin-bottom: 5px;
  letter-spacing: -0.005em;
}

.benefits p {
  font-size: 14.5px;
  line-height: 1.58;
  color: rgba(255,255,255,.68);
}

.quote {
  margin: 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.14);
}

.quote p {
  font-family: var(--display);
  font-size: 17px;
  font-style: italic;
  line-height: 1.5;
  color: rgba(255,255,255,.9);
  margin-bottom: 12px;
}

.quote cite {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--green-200);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  background: var(--cream);
}

.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }

.footer a {
  color: var(--ink-3);
  text-decoration: none;
}
.footer a:hover { color: var(--green-600); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; min-height: 0; }

  .pane--form { padding: 40px 24px 36px; }
  .pane__inner { max-width: 560px; }

  .brand { margin-bottom: 30px; }

  .art__content { padding: 48px 24px 52px; max-width: 560px; }

  .footer { padding: 18px 24px; }
}

@media (max-width: 480px) {
  .card { padding: 20px 18px; }
  .headline { font-size: 32px; }
  .subhead { font-size: 15.5px; }
  .footer { justify-content: center; text-align: center; }
  .footer nav { justify-content: center; gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
