/* ==========================================================================
   FinderMesh — tokens
   Light-first palette: paper throughout, no dark hero. One deliberate
   near-black moment (the "hidden" side of the discretion section and the
   redaction bars) carries the "concealed until unlocked" idea instead.
   ========================================================================== */
:root {
  --paper: #F7F3E9;
  --paper-alt: #EFE6D2;
  --paper-card: #FFFDF7;
  --ink: #20242B;
  --ink-soft: #5B4636;
  --brass: #C9A24B;
  --brass-deep: #9C7A34;
  --clay: #8A3B2B;
  --redaction: #1A1A1A;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-label: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 6px;
  --max-width: 1180px;

  --motion-fast: 180ms;
  --motion-med: 420ms;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
  :root { --motion-fast: 0ms; --motion-med: 0ms; }
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
/* Belt-and-braces: any component class that sets its own `display` would
   otherwise beat the `hidden` attribute on cascade ties. Force it to win
   everywhere, once, instead of chasing this per component. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 500; margin: 0; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brass);
  color: var(--redaction);
  padding: 0.75rem 1rem;
  z-index: 100;
  font-family: var(--font-label);
  font-size: 0.85rem;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5.5rem 1.75rem;
}
.section-inner--narrow { max-width: 640px; }

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--clay);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--clay); }

/* ==========================================================================
   Nav
   ========================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper-alt);
  border-bottom: 1px solid rgba(32, 36, 43, 0.1);
}
.site-nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.1rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.01em;
}
.wordmark__mark { color: var(--clay); }
.site-nav__links {
  display: flex;
  gap: 2rem;
  margin-right: auto;
  margin-left: 2.5rem;
}
.site-nav__links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-label);
}
.site-nav__links a:hover { color: var(--clay); }
.site-nav__signin {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-label);
  margin-right: 1.5rem;
}
.site-nav__signin:hover { color: var(--clay); }
.site-nav__account {
  align-items: center;
  gap: 0.9rem;
}
.site-nav__account:not([hidden]) { display: flex; }
.site-nav__account-name {
  font-family: var(--font-label);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.site-nav__signout {
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--ink-soft);
  text-decoration: underline;
}
.site-nav__signout:hover { color: var(--clay); }

@media (max-width: 720px) {
  .site-nav__links { display: none; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease), background var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
  border: 1px solid transparent;
}
.btn--brass {
  background: var(--brass);
  color: var(--redaction);
}
.btn--brass:hover { background: var(--brass-deep); color: var(--paper); }
.btn--ghost {
  border-color: rgba(32, 36, 43, 0.25);
  color: var(--ink);
}
.btn--ghost:hover { border-color: var(--clay); color: var(--clay); }
.btn--small { padding: 0.6rem 1.1rem; font-size: 0.82rem; }
.btn--wide { width: 100%; padding: 1rem; font-size: 0.95rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  background: var(--paper);
  color: var(--ink);
  background-image:
    radial-gradient(ellipse at 12% 0%, rgba(201, 162, 75, 0.14), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(138, 59, 43, 0.06), transparent 60%);
}
.hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.75rem 6rem;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3.5rem;
  align-items: center;
}
.hero__headline {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}
.hero__sub {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ==========================================================================
   Opportunity card — signature element
   ========================================================================== */
.opp-card__caption {
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
  text-align: center;
}
.opp-card {
  background: var(--paper-card);
  color: var(--ink);
  border-radius: 10px;
  padding: 1.75rem;
  border: 1px solid rgba(32, 36, 43, 0.1);
  box-shadow: 0 24px 48px -28px rgba(32, 36, 43, 0.35), 0 0 0 1px rgba(201,162,75,0.18);
  position: relative;
}
.opp-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid rgba(32, 36, 43, 0.12);
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
}
.opp-card__tag {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
}
.opp-card__id {
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.opp-card__meta { margin-bottom: 1.1rem; }
.opp-card__row {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(32, 36, 43, 0.12);
  font-size: 0.92rem;
}
.opp-card__row:last-child { border-bottom: none; }
.opp-card__row dt {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
}
.opp-card__row dd { margin: 0; }

.opp-card__hidden { margin-bottom: 1.25rem; }
.redaction-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0;
}
.redaction-label {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  width: 5.5rem;
  flex-shrink: 0;
}
.redaction-bar {
  height: 0.95rem;
  width: 55%;
  background: var(--redaction);
  border-radius: 2px;
  transform-origin: left center;
  transition: transform var(--motion-med) var(--ease), opacity var(--motion-med) var(--ease);
}
.redaction-bar--wide { width: 80%; }

.opp-card__unlocked { margin-bottom: 1.25rem; }
.opp-card__stamp {
  font-family: var(--font-label);
  font-size: 0.78rem;
  color: var(--clay);
  border: 1px solid var(--clay);
  display: inline-block;
  padding: 0.3rem 0.6rem;
  border-radius: 3px;
  margin-bottom: 0.75rem;
  transform: rotate(-1.5deg);
}
.redaction-row--revealed .opp-card__reveal-text {
  font-size: 0.88rem;
  color: var(--ink-soft);
  font-style: italic;
}

.opp-card__cta {
  width: 100%;
  background: var(--brass);
  color: var(--redaction);
  padding: 0.85rem;
  border-radius: var(--radius);
  font-family: var(--font-label);
  font-size: 0.88rem;
  text-align: center;
  transition: background var(--motion-fast) var(--ease);
}
.opp-card__cta:hover:not(:disabled) { background: var(--brass-deep); color: var(--paper); }
.opp-card__hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 0.6rem;
}

/* unlocked state: bars collapse */
.opp-card.is-unlocked .redaction-bar {
  transform: scaleX(0);
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .opp-card.is-unlocked .opp-card__hidden { display: none; }
}

/* ==========================================================================
   Problem
   ========================================================================== */
.problem { background: var(--paper); }
.problem h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  max-width: 24ch;
  margin-bottom: 3rem;
}
.problem__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.problem__label {
  font-family: var(--font-label);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--clay);
  margin-bottom: 0.75rem;
}
.problem__col p:not(.problem__label) { color: var(--ink-soft); font-size: 1.02rem; }
.problem__close {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-style: italic;
  border-top: 1px solid rgba(32, 36, 43, 0.15);
  padding-top: 1.75rem;
}

/* ==========================================================================
   How it works
   ========================================================================== */
.how { background: var(--paper-alt); color: var(--ink); }
.how h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 3rem; }
.how__steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.how__step {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid rgba(32, 36, 43, 0.14);
}
.how__step:last-child { border-bottom: 1px solid rgba(32, 36, 43, 0.14); }
.how__num {
  font-family: var(--font-label);
  font-size: 0.95rem;
  color: var(--brass-deep);
}
.how__step h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.how__step p { color: var(--ink-soft); font-size: 0.98rem; max-width: 56ch; }
.how__footnote {
  margin-top: 2.5rem;
  font-family: var(--font-label);
  font-size: 0.85rem;
  color: var(--clay);
  border-left: 2px solid var(--clay);
  padding-left: 1rem;
  max-width: 60ch;
}

/* ==========================================================================
   Discretion — the one deliberate near-black moment on the page
   ========================================================================== */
.discretion { background: var(--paper); }
.discretion h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1rem; }
.discretion__intro { color: var(--ink-soft); max-width: 60ch; margin-bottom: 3rem; font-size: 1.02rem; }
.discretion__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(32, 36, 43, 0.15);
  border: 1px solid rgba(32, 36, 43, 0.15);
  margin-bottom: 2.5rem;
}
.discretion__col { background: var(--paper-card); padding: 2rem; }
.discretion__col--hidden { background: var(--redaction); color: var(--paper); }
.discretion__label {
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  color: var(--clay);
}
.discretion__col--hidden .discretion__label { color: var(--brass); }
.discretion__col ul { display: flex; flex-direction: column; gap: 0.85rem; }
.discretion__col li { font-size: 0.98rem; position: relative; padding-left: 1.1rem; }
.discretion__col li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--ink-soft);
}
.discretion__col--hidden li::before { color: var(--brass); }
.discretion__col--hidden li { color: var(--paper-alt); }
.discretion__why {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  max-width: 62ch;
  color: var(--ink);
}

/* ==========================================================================
   Who it's for
   ========================================================================== */
.who { background: var(--paper-alt); color: var(--ink); }
.who h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 1.25rem; }
.who p { color: var(--ink-soft); max-width: 62ch; font-size: 1.02rem; margin-bottom: 2.5rem; }
.who__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.who__facts li {
  border: 1px solid rgba(138, 59, 43, 0.35);
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  background: var(--paper-card);
}
.who__fact-label {
  font-family: var(--font-label);
  color: var(--brass-deep);
  margin-right: 0.4rem;
}

/* ==========================================================================
   Join form
   ========================================================================== */
.join { background: var(--paper); color: var(--ink); }
.join h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 0.9rem; }
.join__sub { color: var(--ink-soft); margin-bottom: 2.5rem; }

.join-form {
  background: var(--paper-card);
  color: var(--ink);
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid rgba(32, 36, 43, 0.1);
  box-shadow: 0 20px 42px -28px rgba(32, 36, 43, 0.3);
}
.join-form__linkedin-intro {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.join-form__referral-note {
  display: inline-block;
  background: rgba(201, 162, 75, 0.15);
  color: var(--brass-deep);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.join-form__verified {
  background: rgba(62, 107, 79, 0.08);
  border: 1px solid rgba(62, 107, 79, 0.3);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.join-form__verified-label {
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  color: #3E6B4F;
  margin-bottom: 0.35rem;
}
.join-form__verified-identity {
  font-size: 0.95rem;
  color: var(--ink);
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-family: var(--font-label);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid rgba(32, 36, 43, 0.25);
  border-radius: 4px;
  padding: 0.75rem 0.9rem;
  background: #fff;
  font-size: 0.98rem;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  border-color: var(--clay);
}
.field__error {
  color: var(--clay);
  font-size: 0.82rem;
  margin-top: 0.4rem;
  min-height: 1.1em;
}
.join-form__status {
  margin-top: 1.25rem;
  font-family: var(--font-label);
  font-size: 0.9rem;
  min-height: 1.2em;
}
.join-form__status[data-state="success"] { color: #3E6B4F; }
.join-form__status[data-state="error"] { color: var(--clay); }
.join-form__status a { color: inherit; font-weight: 600; text-decoration: underline; margin-left: 0.25rem; }

.field.has-error input, .field.has-error textarea { border-color: var(--clay); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--paper-alt); color: var(--ink-soft); border-top: 1px solid rgba(32, 36, 43, 0.1); }
.site-footer__about {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 1.75rem 2rem;
  border-bottom: 1px solid rgba(32, 36, 43, 0.1);
}
.site-footer__about-tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 0.85rem;
}
.site-footer__about-body {
  max-width: 62ch;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0.75rem;
}
.site-footer__about-body strong { color: var(--ink); }
.site-footer__about-link {
  display: inline-block;
  color: var(--clay);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.88rem;
}
.site-footer__about-link:hover { text-decoration: underline; }
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.88rem;
  flex-wrap: wrap;
}
.wordmark--footer { font-size: 1.05rem; color: var(--ink); }
.site-footer__link {
  color: var(--clay);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  margin-left: auto;
}
.site-footer__link:hover { text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 3.5rem; }
  .problem__grid { grid-template-columns: 1fr; gap: 2rem; }
  .discretion__grid { grid-template-columns: 1fr; }
  .how__step { grid-template-columns: 3rem 1fr; }
}

@media (max-width: 560px) {
  .section-inner { padding: 3.5rem 1.25rem; }
  .hero__inner { padding: 3rem 1.25rem 3.5rem; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .join-form { padding: 1.4rem; }
}
